:root{
  /* Base */
  --bg:#f3efe6;
  --ink:#111827;
  --muted:#6b7280;

  /* Surfaces */
  --paper: rgba(255,255,255,.86);
  --paper2: rgba(255,255,255,.94);
  --line: rgba(17,24,39,.10);

  /* Effects */
  --shadow: 0 14px 40px rgba(17,24,39,.10);
  --radius: 22px;

  /* Layout */
  --max: 1120px;
  --page: 980px;

  /* Footer */
  --footer-bg: rgba(255,255,255,.55);
}

*{ box-sizing:border-box; }

html,body{ height:100%; }

body{
  margin:0;
  font-family: system-ui,-apple-system,"Hiragino Kaku Gothic ProN","Noto Sans JP","Segoe UI",sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.95;
  letter-spacing: .01em;
}

a{ color:inherit; text-decoration:none; }

/* =================================================
   layout (non-index pages)
================================================= */
.layout{
  display:block;
}

/* =================================================
   index layout (logo only)
================================================= */
.wrap{
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
}

.wrap--logo .center{
  display:grid;
  place-items:center;
  padding: 24px 16px;
}

.logo{
  width: min(240px, 56vw);
  aspect-ratio: 1 / 1;
  display:grid;
  place-items:center;
}

.logo img{
  width:100%;
  height:100%;
  object-fit: contain;
  display:block;
  filter: drop-shadow(0 10px 26px rgba(17,24,39,.10));
}

/* =================================================
   top navigation
================================================= */
.topnav{
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(243,239,230,.95);
  border-bottom: 1px solid rgba(17,24,39,.08);
}

.topbar{
  max-width: var(--page);
  margin: 0 auto;
  padding: 12px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
}

/* brand (image only) */
.brand--image{
  display:flex;
  align-items:center;
}

.brand-logo{
  height: 60px;
  width: auto;
  display:block;
}

.crumb{
  font-size: 12px;
  color: var(--muted);
}

/* =================================================
   page
================================================= */
.page{
  max-width: var(--page);
  margin: 0 auto;
  padding: 22px 18px 18px;
}

.page--compact p,
.page--compact li{
  font-size: 12.8px;
}

.page--compact h3{
  font-size: 13.5px;
}

.page-title{
  display:flex;
  justify-content:space-between;
  margin-bottom: 8px;
}

.page-title h1{
  margin:0;
  font-size: 18px;
  letter-spacing: .14em;
}

.updated{
  font-size: 12px;
  color: var(--muted);
}

/* =================================================
   internal anchor (terms)
================================================= */
.terms-anchor{
  margin: 14px 0 22px;
}

.terms-anchor ul{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  font-size:12.5px;
}

.terms-anchor a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
}

.terms-anchor a:hover{
  text-decoration: none;
  color: rgba(17,24,39,.86);
  background: rgba(255,255,255,.85);
  border-color: rgba(17,24,39,.12);
}

.anchor-icon{
  width:18px;
  height:18px;
  border-radius:50%;
  border:1px solid rgba(17,24,39,.25);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  line-height:1;
  color: rgba(17,24,39,.7);
  background: rgba(255,255,255,.5);
}

.terms-anchor a:hover .anchor-icon{
  background: rgba(255,255,255,.95);
  border-color: rgba(17,24,39,.18);
}

/* anchor position fix */
#terms,
#privacy{
  scroll-margin-top: 84px;
}

/* =================================================
   cards
================================================= */
.stack{
  display:grid;
  gap:14px;
}

.card{
  background: linear-gradient(180deg, var(--paper2), var(--paper));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 24px;
  box-shadow: var(--shadow);
}

.card__head{
  display:flex;
  justify-content:space-between;
  margin-bottom: 10px;
}

.card__head h2{
  font-size:16px;
  letter-spacing:.12em;
}

.card__head .en{
  font-size:12px;
  color: var(--muted);
  letter-spacing:.18em;
  text-transform:uppercase;
}

h3{
  margin:18px 0 8px;
  font-weight:600;
  letter-spacing:.06em;
}

p{
  margin:8px 0;
  text-indent:1em;
}

ul{
  margin:8px 0;
  padding-left:1.4em;
}

li{
  margin:6px 0;
}

.note{
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  text-indent: 0;
}

/* =================================================
   table (page.html)
================================================= */
.table-wrap{
  margin-top: 10px;
  overflow:auto;
  border-radius: 16px;
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.65);
}

.table{
  width:100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 640px;
}

.table th,
.table td{
  padding: 12px 14px;
  font-size: 12.8px;
  text-indent: 0;
  vertical-align: top;
  border-bottom: 1px solid rgba(17,24,39,.08);
}

.table thead th{
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.92);
  letter-spacing: .06em;
  font-weight: 600;
  border-bottom: 1px solid rgba(17,24,39,.10);
}

.table tbody tr:last-child td{
  border-bottom: none;
}

.table tbody tr:hover td{
  background: rgba(255,255,255,.85);
}

.table .col-num{
  white-space: nowrap;
}

/* =================================================
   footer
================================================= */
.site-footer{
  padding:14px 16px 20px;
  background: #e8e4da;
  border-top: 1px solid rgba(17,24,39,.06);
}

.foot{
  max-width: var(--max);
  margin:0 auto;
  text-align:center;
}

.links ul{
  list-style:none;
  padding:0;
  margin:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  font-size:13px;
  letter-spacing:.04em;
}

.links li{
  display:inline-flex;
  align-items:center;
}

.links li:not(:last-child)::after{
  content:"|";
  margin:0 12px;
  color: var(--muted);
}

.links a:hover{
  text-decoration: underline;
  text-underline-offset: 2px;
}

.copyright{
  margin-top:10px;
  font-size:12px;
  color: var(--muted);
}

.notice{
  margin-top:6px;
  font-size:12px;
  color: var(--muted);
}

/* =================================================
   responsive
================================================= */
@media (max-width:720px){
  .crumb{ display:none; }
  .page-title{
    flex-direction:column;
    gap:6px;
  }
  .table{
    min-width: 560px;
  }
}

