/* =============================================================
   SUGAR RUSH — design system
   ディープセージ × ウォームアイボリー。明朝見出しと細い曲線で
   「記録が積み重なる」編集デザイン。
   ============================================================= */
:root {
  --sage: #48675D;
  --sage-deep: #3A544C;
  --ivory: #FAF8F3;
  --sage-light: #E8EEE8;
  --rose: #B88783;
  --rose-ink: #8E5F5B;   /* 小さい文字用（コントラスト確保） */
  --ink: #333B37;
  --ink-soft: #5B635F;
  --champagne: #D9C8AD;
  --line: #D8DED8;
  --paper: #FFFFFF;

  --f-mincho: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-gothic: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --f-latin: "Cormorant Garamond", "Times New Roman", serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 56px);
  --r-sm: 4px;
  --r-md: 10px;
  --shadow: 0 1px 0 rgba(51, 59, 55, .06), 0 18px 40px -28px rgba(51, 59, 55, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--f-gothic);
  font-size: 1rem;
  line-height: 1.95;
  letter-spacing: .03em;
}
img, svg, canvas { max-width: 100%; display: block; }
a { color: var(--sage); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--sage-deep); }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1.2em; }
h1, h2, h3, h4 { font-family: var(--f-mincho); font-weight: 600; color: var(--ink); line-height: 1.55; letter-spacing: .06em; margin: 0; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--sage); color: #fff; padding: .6em 1em; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 800px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 243, .95); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.brand-en { font-family: var(--f-latin); font-size: 1.32rem; letter-spacing: .16em; font-weight: 500; }
.brand-ja { font-size: .66rem; letter-spacing: .14em; color: var(--ink-soft); }
.gnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.gnav .nav-sub { display: none; }
.gnav a { display: block; white-space: nowrap; padding: .5em .6em; font-size: .86rem; color: var(--ink); text-decoration: none; border-radius: var(--r-sm); }
.gnav a:hover { color: var(--sage); }
.gnav a[aria-current="page"] { color: var(--sage); text-decoration: underline; text-decoration-color: var(--rose); }
.gnav .nav-login a { border: 1px solid var(--sage); color: var(--sage); padding: .45em 1.1em; margin-left: 8px; border-radius: 999px; text-decoration: none; }
.gnav .nav-login a:hover { background: var(--sage); color: #fff; }
.menu-toggle { display: none; }

@media (max-width: 1100px) {
  .gnav .nav-sub { display: block; }
  .menu-toggle { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; background: none; border: 1px solid var(--line); border-radius: 999px; padding: .5em 1.1em; font: inherit; font-size: .85rem; color: var(--ink); cursor: pointer; }
  .menu-toggle .bars { width: 18px; height: 10px; position: relative; }
  .menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .25s; }
  .menu-toggle .bars::before { top: 0; }
  .menu-toggle .bars::after { bottom: 0; }
  .menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(4.25px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-4.25px) rotate(-45deg); }
  .gnav { position: fixed; top: 76px; left: 0; right: 0; background: var(--ivory); border-bottom: 1px solid var(--line); max-height: calc(100vh - 76px); overflow-y: auto; display: none; }
  .gnav.is-open { display: block; }
  .gnav ul { flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 28px; gap: 0; }
  .gnav li { border-bottom: 1px solid var(--line); }
  .gnav a { padding: 1em .2em; font-size: 1rem; }
  .gnav .nav-login { border: 0; padding-top: 20px; }
  .gnav .nav-login a { margin: 0; text-align: center; padding: .8em; }
}
@media (max-width: 1100px) and (prefers-reduced-motion: no-preference) {
  .gnav.is-open { animation: navIn .22s ease-out; }
  @keyframes navIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 52px; padding: .8em 2em; border-radius: 999px; font-size: .95rem; letter-spacing: .08em; text-decoration: none; border: 1px solid var(--sage); background: var(--sage); color: #fff; cursor: pointer; font-family: var(--f-gothic); transition: background .2s, color .2s; }
.btn:hover { background: var(--sage-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--sage); }
.btn-ghost:hover { background: var(--sage-light); color: var(--sage-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-sm { min-height: 40px; padding: .4em 1.3em; font-size: .85rem; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(32px, 6vw, 80px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-copy h1 { font-size: clamp(1.5rem, 3.4vw, 2.55rem); line-height: 1.62; letter-spacing: .08em; font-weight: 500; }
.hero-copy h1 .line { display: block; white-space: nowrap; }
@media (max-width: 360px) { .hero-copy h1 .line { white-space: normal; } }
.hero-copy h1 .line + .line { padding-left: 1.2em; }
.hero-sub { margin-top: 1.6em; font-size: clamp(1rem, 1.4vw, 1.12rem); color: var(--ink-soft); max-width: 30em; }
.hero-copy .btn-row { margin-top: 2.4em; }
.hero-figure { position: relative; aspect-ratio: 4 / 5; margin: 0 calc(var(--gutter) * -1) 0 0; }
.hero-figure canvas { width: 100%; height: 100%; }
.hero-figure figcaption { position: absolute; left: 0; bottom: 0; font-family: var(--f-latin); font-style: italic; color: var(--ink-soft); font-size: 1rem; letter-spacing: .06em; }
.hero-steps { list-style: none; padding: 0; margin: clamp(44px, 6vw, 76px) 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.hero-steps li { padding: 20px 14px 0 0; position: relative; }
.hero-steps li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
.hero-steps li:last-child::before { background: var(--rose); }
.hero-steps b { display: block; font-family: var(--f-mincho); font-size: 1.15rem; font-weight: 600; letter-spacing: .1em; }
.hero-steps span { font-size: .8rem; color: var(--ink-soft); line-height: 1.7; display: block; margin-top: .3em; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { aspect-ratio: 16 / 10; margin: 0 calc(var(--gutter) * -1); order: -1; }
  .hero-figure figcaption { left: var(--gutter); }
  .hero-copy h1 .line + .line { padding-left: 0; }
  .hero-steps { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line); margin-left: 4px; }
  .hero-steps li { padding: 0 0 18px 22px; }
  .hero-steps li::before { left: -4px; top: .7em; }
}

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section.tint { background: var(--sage-light); }
.section.paper { background: var(--paper); }
.curve { display: block; width: 100%; height: clamp(28px, 4vw, 56px); margin-bottom: -1px; }
.curve path { fill: var(--sage-light); }
.curve.c-paper path { fill: var(--paper); }
.curve.c-ivory path { fill: var(--ivory); }
.curve.c-sage path { fill: var(--sage); }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4em 1.2em; margin-bottom: clamp(24px, 4vw, 44px); }
.sec-head h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 500; }
.sec-head .latin { font-family: var(--f-latin); font-style: italic; font-size: 1.15rem; color: var(--rose-ink); letter-spacing: .04em; }
.sec-lead { max-width: 40em; color: var(--ink-soft); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.split.reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.center { align-items: center; }
@media (max-width: 860px) { .split, .split.reverse { grid-template-columns: 1fr; } }
.more { margin-top: 28px; }

/* page header (下層) */
.page-head { padding: clamp(40px, 6vw, 88px) 0 clamp(32px, 5vw, 56px); position: relative; overflow: hidden; }
.page-head h1 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 500; letter-spacing: .1em; position: relative; }
.page-head .latin { font-family: var(--f-latin); font-style: italic; color: var(--rose-ink); font-size: 1.2rem; display: block; margin-top: .3em; position: relative; }
.page-head p.lead { margin-top: 1.4em; max-width: 40em; color: var(--ink-soft); position: relative; }
.page-head .thread { position: absolute; right: -30px; top: 0; width: min(560px, 70vw); pointer-events: none; }
.breadcrumb { font-size: .78rem; color: var(--ink-soft); margin-bottom: 1.6em; position: relative; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4em; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .4em; color: var(--champagne); }
.breadcrumb a { color: var(--ink-soft); }

/* ---------- prose ---------- */
.prose { font-size: 1.03rem; }
.prose h2 { font-size: 1.4rem; margin: 2.6em 0 .9em; padding-left: .9em; position: relative; }
.prose h2::before { content: ""; position: absolute; left: 0; top: .3em; bottom: .3em; width: 3px; border-radius: 2px; background: var(--sage); }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.14rem; margin: 2em 0 .6em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.prose li { margin: .3em 0; }
.prose ul li::marker { color: var(--rose); }
.prose ol li::marker { font-family: var(--f-latin); color: var(--sage); font-weight: 600; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0 2em; font-size: .95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .9em .7em; text-align: left; vertical-align: top; }
.prose th { width: 30%; font-weight: 700; background: rgba(232, 238, 232, .5); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.note { border-left: 3px solid var(--champagne); background: var(--paper); padding: 1.1em 1.3em; font-size: .92rem; color: var(--ink-soft); margin: 1.6em 0; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.section.paper .note { background: var(--ivory); }

/* ---------- articles ---------- */
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.cat-nav a { padding: .35em 1em; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; text-decoration: none; color: var(--ink); background: var(--paper); }
.cat-nav a:hover { border-color: var(--sage); color: var(--sage); }
.index-group { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 0 40px; padding: 30px 0; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.index-group:last-child { border-bottom: 1px solid var(--line); }
.index-group h2 { font-size: 1.15rem; font-weight: 600; }
.index-group h2 small { display: block; font-family: var(--f-latin); font-style: italic; font-weight: 400; color: var(--rose-ink); font-size: .98rem; letter-spacing: .04em; }
.entry { display: block; padding: 4px 0 22px; text-decoration: none; color: var(--ink); }
.entry + .entry { border-top: 1px dashed var(--line); padding-top: 22px; }
.entry:last-child { padding-bottom: 0; }
.entry h3 { font-size: 1.16rem; font-weight: 600; transition: color .2s; }
.entry:hover h3 { color: var(--sage); }
.entry p { margin: .5em 0 0; font-size: .92rem; color: var(--ink-soft); line-height: 1.85; }
.entry .meta { font-size: .78rem; color: var(--ink-soft); margin-top: .6em; display: flex; flex-wrap: wrap; gap: 1em; }
@media (max-width: 760px) { .index-group { grid-template-columns: 1fr; } .index-group h2 { margin-bottom: 12px; } }

.article-head { padding: clamp(36px, 6vw, 72px) 0 28px; }
.article-head .cat { display: inline-block; font-size: .8rem; color: var(--sage); border: 1px solid var(--sage); border-radius: 999px; padding: .1em .9em; text-decoration: none; }
.article-head h1 { font-size: clamp(1.55rem, 3.1vw, 2.2rem); margin-top: .7em; font-weight: 500; letter-spacing: .07em; }
.article-head .meta { font-size: .82rem; color: var(--ink-soft); margin-top: 1.2em; display: flex; flex-wrap: wrap; gap: .4em 1.4em; }
.article-body { padding-bottom: clamp(56px, 8vw, 96px); }
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.3em 1.6em; margin: 2em 0 2.6em; }
.toc p { font-family: var(--f-mincho); font-weight: 600; margin-bottom: .5em; }
.toc ol { margin: 0; padding-left: 1.4em; font-size: .93rem; }
.tool-link { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; align-items: center; margin: 3em 0 1em; padding: 24px; background: var(--sage-light); border-radius: var(--r-md); text-decoration: none; color: var(--ink); }
.tool-link svg { width: 64px; height: 64px; }
.tool-link b { font-family: var(--f-mincho); font-size: 1.1rem; display: block; }
.tool-link span { font-size: .9rem; color: var(--ink-soft); display: block; margin-top: .3em; line-height: 1.75; }
.tool-link:hover b { color: var(--sage); }
.refs { font-size: .86rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 1.4em; margin-top: 3em; }
.refs h2 { font-size: 1rem; margin-bottom: .6em; }
.refs ul { padding-left: 1.2em; margin: 0; }
.disclaimer { font-size: .82rem; color: var(--ink-soft); margin-top: 1.6em; }
.related { margin-top: 3.4em; }
.related h2 { font-size: 1.15rem; margin-bottom: .8em; }
.related a { display: block; padding: .9em 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.related a:last-child { border-bottom: 1px solid var(--line); }
.related a:hover { color: var(--sage); }

/* ---------- plans ---------- */
.plan-list { border-top: 1px solid var(--ink); }
.plan { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: 24px 48px; padding: 36px 0; border-bottom: 1px solid var(--line); align-items: start; }
.plan h3 { font-size: 1.32rem; font-weight: 600; }
.plan .lead { font-size: .9rem; color: var(--ink-soft); margin: .6em 0 0; }
.plan .price { font-family: var(--f-latin); font-size: 2.5rem; line-height: 1; color: var(--sage); letter-spacing: .02em; white-space: nowrap; }
.plan .price small { font-family: var(--f-gothic); font-size: .8rem; color: var(--ink-soft); margin-left: .3em; letter-spacing: .04em; }
.plan .term { display: block; font-size: .85rem; margin-top: .8em; }
.plan ul { list-style: none; padding: 0; margin: 0; }
.plan li { padding: .3em 0 .3em 1.5em; position: relative; font-size: .95rem; }
.plan li::before { content: ""; position: absolute; left: 0; top: .95em; width: 9px; height: 9px; border: 1.5px solid var(--sage); border-radius: 50%; }
.plan.featured { background: linear-gradient(90deg, var(--paper) 0%, rgba(255, 255, 255, 0) 100%); padding-left: 20px; margin-left: -20px; }
.section.paper .plan.featured { background: linear-gradient(90deg, var(--sage-light) 0%, rgba(232, 238, 232, 0) 100%); }
.plan .tag { display: inline-block; font-size: .72rem; background: var(--rose); color: #fff; border-radius: 999px; padding: .1em .8em; margin-left: .6em; vertical-align: .3em; font-family: var(--f-gothic); font-weight: 400; letter-spacing: .06em; }
@media (max-width: 900px) { .plan { grid-template-columns: 1fr; gap: 14px; } .plan.featured { margin-left: 0; padding-left: 16px; padding-right: 16px; } }
.compare { min-width: 560px; }
.compare th:first-child { width: 42%; }
.compare th:not(:first-child), .compare td:not(:first-child) { text-align: center; width: auto; }
.compare .yes { color: var(--sage); font-weight: 700; }
.compare .no { color: #A9A08F; }

/* ---------- flow ---------- */
.flow { list-style: none; counter-reset: flow; padding: 0; margin: 0; position: relative; }
.flow::before { content: ""; position: absolute; left: 23px; top: 10px; bottom: 30px; width: 1px; background: var(--champagne); }
.flow li { counter-increment: flow; position: relative; padding: 0 0 34px 76px; }
.flow li::before { content: counter(flow); position: absolute; left: 0; top: 0; width: 47px; height: 47px; border-radius: 50%; background: var(--ivory); border: 1px solid var(--sage); color: var(--sage); font-family: var(--f-latin); font-size: 1.3rem; display: flex; align-items: center; justify-content: center; }
.section.tint .flow li::before { background: var(--sage-light); }
.section.paper .flow li::before { background: var(--paper); }
.flow h3 { font-size: 1.14rem; padding-top: .45em; }
.flow p { margin: .4em 0 0; font-size: .93rem; color: var(--ink-soft); }
.flow .who { display: inline-block; font-size: .72rem; border: 1px solid var(--champagne); border-radius: 999px; padding: 0 .7em; margin-left: .6em; color: var(--ink-soft); font-family: var(--f-gothic); font-weight: 400; vertical-align: .15em; }
.flow .state { display: inline-block; font-size: .72rem; background: var(--sage); color: #fff; border-radius: 999px; padding: 0 .7em; margin-left: .4em; font-family: var(--f-gothic); font-weight: 400; vertical-align: .15em; }

/* ---------- features ---------- */
.feature { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 28px; padding: 32px 0; border-top: 1px solid var(--line); }
.feature:last-child { border-bottom: 1px solid var(--line); }
.feature svg { width: 92px; height: 92px; }
.feature h3 { font-size: 1.22rem; }
.feature p { margin: .6em 0 0; color: var(--ink-soft); font-size: .95rem; }
.feature .more-link { display: inline-block; margin-top: .8em; font-size: .9rem; }
@media (max-width: 600px) { .feature { grid-template-columns: 1fr; gap: 10px; } .feature svg { width: 68px; height: 68px; } }

.sample-figure { margin: 0; background: var(--paper); border-radius: var(--r-md); padding: clamp(14px, 2.4vw, 24px); box-shadow: var(--shadow); }
.sample-figure img { width: 100%; height: auto; border: 1px solid var(--line); }
.sample-figure figcaption { font-size: .82rem; color: var(--ink-soft); margin-top: 12px; line-height: 1.7; }
.sample-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 600px) { .sample-pair { grid-template-columns: 1fr; } }
.badge-sample { display: inline-block; font-size: .74rem; background: var(--rose); color: #fff; padding: .05em .8em; border-radius: 999px; letter-spacing: .08em; vertical-align: .15em; }
.plan-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: .4em; }
.plan-chip { font-size: .72rem; border: 1px solid var(--sage); color: var(--sage); border-radius: 999px; padding: 0 .7em; white-space: nowrap; }

/* ---------- definition list ---------- */
.dl { display: grid; grid-template-columns: 200px minmax(0, 1fr); border-top: 1px solid var(--line); margin: 0; }
.dl dt, .dl dd { padding: 1.1em .4em; border-bottom: 1px solid var(--line); margin: 0; }
.dl dt { font-weight: 700; font-size: .92rem; }
.dl dd ul { margin: 0; padding-left: 1.2em; }
.dl dd small { display: block; color: var(--ink-soft); font-size: .8rem; }
@media (max-width: 600px) { .dl { grid-template-columns: 1fr; } .dl dt { border-bottom: 0; padding-bottom: 0; } .dl dd { padding-top: .3em; } }

/* ---------- faq ---------- */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.25em 2.6em 1.25em 2.2em; position: relative; list-style: none; font-family: var(--f-mincho); font-weight: 600; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 0; top: .95em; font-family: var(--f-latin); font-size: 1.35rem; color: var(--sage); }
.faq summary::after { content: ""; position: absolute; right: .7em; top: 1.65em; width: 9px; height: 9px; border-right: 1.5px solid var(--ink-soft); border-bottom: 1.5px solid var(--ink-soft); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.9em; }
.faq .a { padding: 0 0 1.4em 2.2em; color: var(--ink-soft); font-size: .96rem; }
.faq .a p:last-child { margin-bottom: 0; }
.faq h2 { font-size: 1.22rem; margin: 2.4em 0 .8em; }
.faq h2:first-child { margin-top: 0; }

/* ---------- forms ---------- */
.form { display: grid; gap: 26px; }
.field label, .field .label { display: block; font-weight: 700; font-size: .93rem; margin-bottom: .5em; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.field legend { font-weight: 700; font-size: .93rem; margin-bottom: .5em; padding: 0; }
.req { font-size: .72rem; background: var(--rose-ink); color: #fff; border-radius: 3px; padding: .05em .5em; margin-left: .6em; font-weight: 400; vertical-align: .1em; }
.opt { font-size: .72rem; border: 1px solid #BFC8C2; color: var(--ink-soft); border-radius: 3px; padding: 0 .5em; margin-left: .6em; font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="number"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid #BFC8C2; border-radius: var(--r-sm); padding: .75em 1em; line-height: 1.6;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.6em; }
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--sage); outline-offset: 0; border-color: var(--sage); }
.field .hint { font-size: .82rem; color: var(--ink-soft); margin-top: .5em; line-height: 1.7; }
.field input[type="file"] { font-size: .9rem; max-width: 100%; }
.radios { display: grid; gap: .5em; }
.check { display: flex; gap: .7em; align-items: flex-start; font-size: .93rem; font-weight: 400 !important; }
.check input { width: 20px; height: 20px; margin-top: .35em; accent-color: var(--sage); flex: none; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-box { background: var(--paper); padding: clamp(22px, 4vw, 48px); border-radius: var(--r-md); box-shadow: var(--shadow); }
.alert { padding: 1em 1.2em; border-radius: var(--r-sm); font-size: .93rem; margin-bottom: 1.4em; }
.alert-error { background: #F6E9E7; color: #6E3833; border-left: 3px solid var(--rose); }
.alert-ok { background: var(--sage-light); color: var(--sage-deep); border-left: 3px solid var(--sage); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--sage); color: #EEF2EE; padding: clamp(56px, 8vw, 96px) 0; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; font-size: clamp(1.35rem, 2.6vw, 1.85rem); font-weight: 500; }
.cta-band p { color: #E3EAE5; margin: 1em 0 0; max-width: 34em; }
.cta-band .btn { background: var(--ivory); color: var(--sage-deep); border-color: var(--ivory); }
.cta-band .btn:hover { background: #fff; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.cta-band .thread { position: absolute; right: -80px; bottom: -60px; width: 560px; opacity: .5; pointer-events: none; }
.cta-inner { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }

/* ---------- footer ---------- */
.site-footer { background: #2F3E39; color: #CBD5CF; padding: 64px 0 28px; font-size: .88rem; }
.site-footer a { color: #E6ECE8; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-ja { color: #B9C5BE; }
.site-footer address { font-style: normal; margin-top: 1.4em; line-height: 1.95; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: .45em 0; }
.footer-links h2 { font-family: var(--f-gothic); font-size: .78rem; color: #A8B8AF; letter-spacing: .12em; margin-bottom: .6em; font-weight: 400; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 48px; padding-top: 22px; font-size: .78rem; color: #A8B8AF; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.copyright p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } .footer-links { grid-template-columns: 1fr 1fr; } }

/* ---------- members ---------- */
.member-bar { background: var(--sage-deep); color: #E8EEE8; font-size: .82rem; }
.member-bar .wrap { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; justify-content: space-between; min-height: 44px; padding-top: 6px; padding-bottom: 6px; }
.member-bar form { margin: 0; }
.member-bar button { background: none; border: 1px solid rgba(255, 255, 255, .5); color: #fff; border-radius: 999px; padding: .25em 1em; font: inherit; cursor: pointer; }
.member-bar button:hover { background: rgba(255, 255, 255, .12); }
.member-main { padding: clamp(32px, 5vw, 56px) 0 clamp(64px, 8vw, 96px); }
.member-main h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 500; margin-bottom: .8em; }
.member-nav { margin-bottom: 32px; }
.member-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.member-nav a { display: block; padding: .4em 1em; border-radius: 999px; font-size: .86rem; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--paper); }
.member-nav a[aria-current="page"] { background: var(--sage); color: #fff; border-color: var(--sage); }
.panel { background: var(--paper); border-radius: var(--r-md); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); margin-bottom: 24px; }
.panel h2 { font-size: 1.18rem; margin-bottom: .8em; }
.panel > p:last-child { margin-bottom: 0; }
.status-dl { display: grid; grid-template-columns: max-content 1fr; gap: .4em 1.6em; margin: 0; font-size: .95rem; }
.status-dl dt { color: var(--ink-soft); }
.status-dl dd { margin: 0; font-weight: 700; }
.file-list { list-style: none; padding: 0; margin: 0; }
.file-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.file-list li:last-child { border-bottom: 1px solid var(--line); }
.file-list .t { flex: 1 1 320px; }
.file-list b { font-family: var(--f-mincho); font-size: 1.05rem; }
.file-list .desc { display: block; font-size: .86rem; color: var(--ink-soft); margin-top: .2em; line-height: 1.7; }
.file-list .locked { font-size: .82rem; color: var(--ink-soft); }
.empty { padding: 28px; text-align: center; color: var(--ink-soft); background: var(--sage-light); border-radius: var(--r-md); }
.login-box { max-width: 480px; margin: 0 auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

@media print {
  .site-header, .site-footer, .member-bar, .member-nav, .cta-band, .menu-toggle { display: none !important; }
  body { background: #fff; }
}
.prose ul.plain { list-style: none; padding-left: .4em; }
.field label.check { display: flex; }

/* tables & checklists in articles */
.prose table.data { min-width: 480px; }
.prose table.data th { width: auto; white-space: nowrap; }
.prose ul.checklist { list-style: none; padding: 1.1em 1.3em; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); }
.prose ul.checklist li { position: relative; padding-left: 1.9em; margin: .45em 0; }
.prose ul.checklist li::before { content: ""; position: absolute; left: 0; top: .42em; width: 1.05em; height: 1.05em; border: 1.5px solid var(--sage); border-radius: 3px; }
/* photos */
.photo { margin: 0; overflow: hidden; border-radius: var(--r-md); background: var(--sage-light); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-band { margin: 0; height: clamp(220px, 34vw, 460px); overflow: hidden; }
.photo-band img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-note { font-size: .72rem; color: var(--ink-soft); text-align: right; margin: .4em var(--gutter) 0; }
.split .photo { aspect-ratio: 4 / 3; }
.index-group .cat-photo { width: 100%; aspect-ratio: 3 / 2; border-radius: var(--r-sm); overflow: hidden; margin-top: 14px; }
.index-group .cat-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) { .index-group .cat-photo { display: none; } }
.article-eyecatch { margin: 0 0 2.2em; aspect-ratio: 16 / 7; border-radius: var(--r-md); overflow: hidden; }
.article-eyecatch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reading-guide ol { margin: .4em 0 0; padding-left: 1.4em; }
.member-cat { margin-top: 36px; }
.member-cat h2 { font-size: 1.2rem; display: flex; align-items: baseline; gap: .8em; flex-wrap: wrap; }
.member-cat h2 small { font-family: var(--f-latin); font-style: italic; font-weight: 400; color: var(--rose-ink); font-size: .95rem; }
.member-cat .entry .num { font-family: var(--f-latin); color: var(--sage); margin-right: .5em; }

.photo-band + .section { padding-top: clamp(48px, 7vw, 88px) !important; }
