@font-face {
  font-family: "Libre Caslon Display";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/libre-caslon-display-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Libre Caslon Display";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/libre-caslon-display-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ivory: #F6F3EB;
  --paper-2: #EEE9DC;
  --forest: #192722;
  --forest-2: #22332D;
  --ink: #242424;
  --ink-2: #5A554C;
  --vermilion: #B74732;
  --vermilion-deep: #9C3A28;
  --sand: #C6B28C;
  --rule: #D9CFBA;

  --f-mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-display: "Libre Caslon Display", "Shippori Mincho", Georgia, serif;
  --f-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 5vw, 72px);
  --sec: clamp(104px, 14vw, 208px);
  --maxw: 1440px;
  --head-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font-family: var(--f-sans); font-size: 16px; line-height: 1.85; letter-spacing: 0.02em;
  font-feature-settings: "palt" 0; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; text-decoration-color: var(--vermilion); text-underline-offset: 0.3em; text-decoration-thickness: 1px; }
::selection { background: var(--vermilion); color: var(--ivory); }
:focus-visible { outline: 2px solid var(--vermilion); outline-offset: 3px; border-radius: 1px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--ivory); padding: 10px 16px; }
.skip:focus { top: 12px; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
html { scrollbar-color: var(--sand) transparent; }

/* ---------- 共通の見出し・ボタン ---------- */
.sec-title {
  font-family: var(--f-mincho); font-weight: 500;
  font-size: clamp(1.9rem, 1.2rem + 3.2vw, 3.6rem); line-height: 1.32; letter-spacing: 0.02em;
}
.ln { display: block; overflow: clip; padding-bottom: 0.06em; }
h1, h2, h3, summary, .dev-name { word-break: auto-phrase; text-wrap: balance; }
.ln > span { display: inline-block; }
.sec-lead { margin-top: 28px; max-width: 34em; color: var(--ink-2); }
.showcase .sec-lead { color: #CFC6B2; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px; border-radius: 2px; border: 1px solid transparent;
  font: 600 15px/1 var(--f-sans); letter-spacing: 0.08em; text-decoration: none; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--vermilion); color: #FFF9F0; }
.btn-primary::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: width .35s var(--ease); }
.btn-light { background: var(--ivory); color: var(--forest); }
@media (hover: hover) {
  .btn-primary:hover { background: var(--vermilion-deep); }
  .btn-primary:hover::after { width: 30px; }
  .btn-light:hover { background: #fff; }
}
.link-arrow {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; font-size: 15px; letter-spacing: 0.08em; text-decoration: none;
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--vermilion);
  transform-origin: left; transition: transform .5s var(--ease);
}
@media (hover: hover) { .link-arrow:hover::after { transform: scaleX(0.35); } }

/* ---------- ヘッダー ---------- */
.site-head {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--head-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter); padding-top: env(safe-area-inset-top);
  transition: background-color .4s var(--ease), color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.site-head.is-solid { background: color-mix(in srgb, var(--ivory) 94%, transparent); box-shadow: 0 1px 0 var(--rule); }
.site-head.is-solid.on-dark { color: var(--ivory); background: color-mix(in srgb, var(--forest) 94%, transparent); box-shadow: 0 1px 0 #31443C; }
.site-head.is-hidden { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand .seal { width: 30px; height: 30px; }
.wordmark { font-family: var(--f-display); font-size: 1.45rem; letter-spacing: 0.01em; line-height: 1; padding-top: 3px; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); }
.nav a { font-size: 14px; letter-spacing: 0.08em; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; position: relative; }
.nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: var(--vermilion); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
@media (hover: hover) { .nav a:not(.nav-cta):hover::after { transform: scaleX(1); } }
.nav-cta { border: 1px solid currentColor; padding: 0 18px; border-radius: 2px; transition: background-color .3s, color .3s; }
@media (hover: hover) { .nav-cta:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); } }
.menu-btn { display: none; }

@media (max-width: 959px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; margin-right: -4px;
    background: none; border: 0; color: inherit; font: 500 13px/1 var(--f-sans); letter-spacing: 0.12em; cursor: pointer;
  }
  .menu-btn-bars { width: 22px; height: 7px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; transition: transform .3s var(--ease); }
  .menu-btn[aria-expanded="true"] .menu-btn-bars { transform: scaleY(0.2); }
  .nav {
    position: fixed; inset: var(--head-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 28px; background: var(--ivory); color: var(--ink); box-shadow: 0 18px 30px -24px rgba(25,39,34,.5);
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .45s var(--ease), visibility 0s .45s;
  }
  .nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .45s var(--ease); }
  .nav a { font-family: var(--f-mincho); font-size: 1.25rem; border-bottom: 1px solid var(--rule); min-height: 56px; }
  .nav a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin-top: 20px; justify-content: center; border: 0; background: var(--vermilion); color: #FFF9F0; font-family: var(--f-sans) !important; font-size: 15px !important; font-weight: 600; }
}

/* ヒーロー写真の上にあるときのヘッダー */
.site-head:not(.is-solid) .menu-btn, .site-head:not(.is-solid) .wordmark { color: var(--ivory); }
@media (min-width: 960px) {
  .site-head:not(.is-solid) .wordmark { color: var(--ink); }
  .site-head:not(.is-solid) .nav { color: var(--ivory); text-shadow: 0 1px 10px rgba(0,0,0,.35); }
  .site-head:not(.is-solid) .nav-cta { border-color: rgba(246,243,235,.8); }
  .hero-media::after { height: 160px; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid;
  grid-template-columns: 1fr; grid-template-rows: auto 1fr;
}
.hero-media { position: relative; height: 50svh; min-height: 340px; overflow: hidden; background: #3a3127; }
.hero-media::after { content: ""; position: absolute; inset: 0 0 auto; height: 140px; background: linear-gradient(rgba(20,16,12,.55), rgba(20,16,12,0)); pointer-events: none; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero-copy { position: relative; padding: 30px var(--gutter) 56px; display: flex; flex-direction: column; }
.hero-seal { position: absolute; width: 56px; height: 56px; right: var(--gutter); top: -28px; filter: drop-shadow(0 6px 10px rgba(36,20,10,.25)); }
.hero-title {
  font-family: var(--f-mincho); font-weight: 500;
  font-size: clamp(2.35rem, 1.1rem + 5.6vw, 5.4rem); line-height: 1.22; letter-spacing: 0.02em;
  font-feature-settings: "palt" 1;
}
.hero-en { margin-top: 18px; font-family: var(--f-display); font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.55rem); color: var(--ink-2); letter-spacing: 0.01em; }
.hero-lead { margin-top: 18px; max-width: 26em; color: var(--ink); }
.hero-actions { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.hero-caption { display: none; }

@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 5.5fr) minmax(0, 6.5fr); grid-template-rows: 1fr; min-height: max(100svh, 720px); }
  .hero-title { font-size: clamp(3rem, 4.5vw, 5.4rem); }
  .hero-title .ln > span { white-space: nowrap; }
  .hero-media { order: 2; height: auto; min-height: 0; }
  .hero-copy { order: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--head-h) + 48px) clamp(32px, 4vw, 64px) clamp(56px, 8vh, 96px) var(--gutter); }
  .hero-seal { position: static; order: 2; width: 60px; height: 60px; margin: 20px 0 0 auto; filter: none; }
  .hero-title { order: 1; margin-top: auto; }
  .hero-en, .hero-lead, .hero-actions { order: 3; }
  .hero-caption {
    display: block; position: absolute; right: var(--gutter); bottom: 24px; z-index: 2;
    font-size: 12px; letter-spacing: 0.08em; color: rgba(246,243,235,.86); text-shadow: 0 1px 8px rgba(0,0,0,.4);
  }
}

/* ---------- WHAT ---------- */
.what {
  max-width: var(--maxw); margin: 0 auto; padding: var(--sec) var(--gutter) 0;
  display: grid; gap: 32px;
}
.what-title { font-family: var(--f-mincho); font-weight: 500; font-size: clamp(1.5rem, 0.9rem + 2.6vw, 3rem); line-height: 1.45; }
.what-body { display: grid; gap: 18px; max-width: 36em; }
.what-body p:first-child { font-family: var(--f-mincho); font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); line-height: 1.8; }
@media (min-width: 960px) {
  .what { grid-template-columns: repeat(12, 1fr); }
  .what-title { grid-column: 1 / span 8; }
  .what-body { grid-column: 6 / span 6; margin-top: 24px; }
}

.mats { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; margin-top: 40px; align-items: start; }
.mat { margin: 0; position: relative; }
.mat > img, .mat picture img { width: 100%; height: 100%; object-fit: cover; }
.mat { overflow: hidden; }
.mat figcaption { position: absolute; left: 10px; bottom: 8px; font-family: var(--f-mincho); font-size: 1.05rem; color: var(--ivory); text-shadow: 0 1px 10px rgba(0,0,0,.45); }
.mat-a { grid-column: 1 / span 7; aspect-ratio: 1; }
.mat-b { grid-column: 8 / span 5; aspect-ratio: 3 / 4; margin-top: 22%; }
.mat-c { grid-column: 3 / span 4; aspect-ratio: 3 / 4; margin-top: -12%; }
@media (min-width: 960px) {
  .mats { grid-column: 1 / -1; margin-top: 72px; gap: 24px; }
  .mat-a { grid-column: 1 / span 4; aspect-ratio: 1; }
  .mat-b { grid-column: 6 / span 3; aspect-ratio: 3 / 4; margin-top: 22%; }
  .mat-c { grid-column: 10 / span 3; aspect-ratio: 3 / 4; margin-top: 6%; }
}

/* ---------- BAND ---------- */
.band { margin: var(--sec) 0 0; position: relative; }
.band-media { height: 78svh; min-height: 420px; overflow: hidden; background: #2a2620; }
.band-media img { width: 100%; height: 115%; object-fit: cover; }
.band-cap { position: absolute; left: var(--gutter); bottom: clamp(24px, 5vw, 56px); display: grid; gap: 6px; color: var(--ivory); text-shadow: 0 1px 14px rgba(0,0,0,.5); }
.band-cap [lang="en"] { font-family: var(--f-display); font-size: clamp(1.4rem, 1rem + 2vw, 2.6rem); line-height: 1.15; }
.band-cap span:last-child { font-family: var(--f-mincho); font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem); }

/* ---------- PROBLEM ---------- */
.problem { max-width: var(--maxw); margin: 0 auto; padding: var(--sec) var(--gutter) 0; display: grid; gap: 48px; }
.problem-media { overflow: hidden; aspect-ratio: 4 / 5; max-height: 72svh; background: var(--paper-2); }
.problem-media img { width: 100%; height: 100%; object-fit: cover; }
.asks { list-style: none; margin: 48px 0 0; padding: 0; }
.ask { padding: 32px 0; border-top: 1px solid var(--rule); display: grid; gap: 10px; }
.ask:last-child { border-bottom: 1px solid var(--rule); }
.ask-q { font-family: var(--f-display); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); line-height: 1.25; color: var(--vermilion-deep); }
.ask h3 { font-family: var(--f-mincho); font-weight: 700; font-size: 1.25rem; line-height: 1.5; }
.ask p:last-child { color: var(--ink-2); max-width: 32em; }
@media (min-width: 960px) {
  .problem { grid-template-columns: repeat(12, 1fr); align-items: start; }
  .problem-media { grid-column: 1 / span 5; position: sticky; top: calc(var(--head-h) + 32px); aspect-ratio: 4 / 5; }
  .problem-main { grid-column: 7 / span 6; }
  .ask { grid-template-columns: 1fr; padding: 40px 0; }
}

/* ---------- SERVICE ---------- */
.service { max-width: var(--maxw); margin: 0 auto; padding: var(--sec) var(--gutter) 0; }
.service-head { display: grid; gap: 0; }
.service-body { margin-top: 56px; }
.service-stage { display: none; }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc { padding: 40px 0 44px; border-top: 1px solid var(--rule); }
.svc-thumb { overflow: hidden; aspect-ratio: 3 / 2; margin-bottom: 24px; background: var(--paper-2); }
.svc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.svc-en { font-family: var(--f-display); font-size: 1.05rem; color: var(--ink-2); }
.svc h3 { margin-top: 6px; font-family: var(--f-mincho); font-weight: 500; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); line-height: 1.4; }
.svc p:last-child { margin-top: 16px; max-width: 32em; color: var(--ink-2); }
@media (min-width: 960px) {
  .service-head { grid-template-columns: repeat(12, 1fr); align-items: end; }
  .service-head .sec-title { grid-column: 1 / span 7; }
  .service-head .sec-lead { grid-column: 9 / span 4; margin: 0; }
  .service-body { display: grid; grid-template-columns: repeat(12, 1fr); margin-top: 96px; }
  .service-stage { display: block; grid-column: 1 / span 5; }
  .stage-frame { position: sticky; top: calc(var(--head-h) + 40px); aspect-ratio: 4 / 5; max-height: calc(100svh - var(--head-h) - 80px); overflow: hidden; background: var(--paper-2); }
  .stage-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .9s var(--ease), transform 1.4s var(--ease); }
  .stage-img.is-on { opacity: 1; transform: none; }
  .svc-list { grid-column: 7 / span 6; }
  .svc { min-height: 62svh; display: flex; flex-direction: column; justify-content: center; padding: 64px 0; transition: opacity .5s var(--ease); }
  .js .svc:not(.is-current) { opacity: 0.38; }
  .svc-thumb { display: none; }
}

/* ---------- SHOWCASE（夜の工房） ---------- */
.showcase { margin-top: var(--sec); padding: var(--sec) var(--gutter); color: var(--ivory); background: var(--forest); }
@media (min-width: 960px) { .js .showcase { clip-path: inset(0 var(--gutter) round 2px); } }
.js.is-static .showcase { clip-path: none; }
.showcase-head { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 0; }
.showcase-count { margin-top: 28px; display: flex; align-items: baseline; gap: 12px; font-family: var(--f-mincho); }
.showcase-count .num { font-family: var(--f-display); font-size: clamp(3.4rem, 2rem + 5vw, 6rem); line-height: 1; color: var(--sand); }
.notice { margin-top: 18px; max-width: 34em; font-size: 14px; line-height: 1.8; color: #CFC6B2; padding: 14px 16px; border: 1px solid #3B5047; }
@media (min-width: 960px) {
  .showcase-head { grid-template-columns: repeat(12, 1fr); align-items: end; column-gap: 24px; }
  .showcase-head .sec-title { grid-column: 1 / span 7; }
  .showcase-count { grid-column: 9 / span 4; justify-self: end; margin: 0; }
  .showcase-head .sec-lead { grid-column: 1 / span 6; }
  .notice { grid-column: 8 / span 5; align-self: start; margin-top: 28px; }
}

.viewer { max-width: var(--maxw); margin: 64px auto 0; display: grid; gap: 40px; }
.viewer-stage { position: relative; }
.devices { margin: 0; position: relative; }
.device-pc { position: relative; background: #0f1714; border: 1px solid #3B5047; border-radius: 4px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); width: 88%; }
.pc-bar { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; background: #26352F; }
.pc-bar i { width: 7px; height: 7px; border-radius: 50%; background: #4A5E55; }
.pc-bar span { margin-left: 10px; font-size: 10.5px; color: #9FB0A6; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device-pc img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.device-sp {
  position: absolute; right: 0; bottom: -10%; width: 28%; aspect-ratio: 390 / 844;
  border: 5px solid #0d1411; border-radius: 22px; overflow: hidden; background: #0d1411;
  box-shadow: 0 24px 40px -18px rgba(0,0,0,.8);
}
.device-sp img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.devices img { transition: opacity .35s var(--ease); }
.devices.is-swapping img { opacity: 0; }
.dev-cap { margin-top: 15%; display: grid; gap: 6px; justify-items: start; }
.dev-area { font-size: 13px; color: var(--sand); letter-spacing: 0.06em; }
.dev-name { font-family: var(--f-mincho); font-weight: 500; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); line-height: 1.3; }
.dev-line { color: #DCD4C3; max-width: 28em; }
.dev-cap .btn { margin-top: 18px; }

.demo-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #3B5047; }
.demo-row { display: grid; grid-template-columns: 1fr auto; align-items: stretch; border-bottom: 1px solid #3B5047; }
.demo-pick {
  display: grid; gap: 2px; text-align: left; padding: 16px 12px 16px 0; min-height: 64px;
  background: none; border: 0; color: inherit; font: inherit; cursor: pointer; position: relative;
}
.demo-area { font-size: 12px; color: var(--sand); letter-spacing: 0.06em; }
.demo-name { font-family: var(--f-mincho); font-size: 1.15rem; line-height: 1.45; transition: color .3s var(--ease), transform .4s var(--ease); }
.demo-line { display: none; font-size: 13px; color: #BDB5A3; }
.demo-pick[aria-pressed="true"] .demo-name { color: #fff; }
.demo-pick[aria-pressed="true"]::before { content: ""; position: absolute; left: -16px; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--vermilion); }
.demo-open {
  display: inline-flex; align-items: center; padding: 0 4px 0 16px; min-width: 64px; justify-content: flex-end;
  font-size: 13px; letter-spacing: 0.1em; text-decoration: underline; text-decoration-color: var(--vermilion); text-underline-offset: 0.4em;
}
@media (hover: hover) {
  .demo-pick:hover .demo-name { transform: translateX(6px); color: #fff; }
  .demo-open:hover { color: #fff; }
}
.demo-more { margin-top: 20px; min-height: 48px; width: 100%; background: none; border: 1px solid #5B6F66; color: var(--ivory); border-radius: 2px; font: 500 14px/1 var(--f-sans); letter-spacing: 0.08em; cursor: pointer; }
@media (min-width: 960px) { .demo-more { display: none; } }
.showcase-foot { max-width: var(--maxw); margin: 48px auto 0; font-size: 13px; color: #A9A18F; }

@media (max-width: 959px) {
  .viewer-stage { scroll-margin-top: calc(var(--head-h) + 12px); }
  .demo-list.is-collapsed .demo-row:nth-child(n+7) { display: none; }
  .devices { display: grid; grid-template-columns: 1fr 26%; gap: 12px; align-items: end; }
  .device-pc { width: 100%; }
  .device-sp { position: static; width: 100%; border-width: 3px; border-radius: 12px; }
  .dev-cap { grid-column: 1 / -1; margin-top: 10px; grid-template-columns: 1fr auto; align-items: end; column-gap: 12px; }
  .dev-area { grid-column: 1; }
  .dev-name { grid-column: 1; font-size: 1.3rem; }
  .dev-line { display: none; }
  .dev-cap .btn { grid-column: 2; grid-row: 1 / span 2; margin: 0; min-height: 44px; padding: 0 16px; font-size: 13px; }
  .demo-pick[aria-pressed="true"]::before { left: -12px; }
}
@media (min-width: 960px) {
  .viewer { grid-template-columns: repeat(12, 1fr); column-gap: 24px; margin-top: 96px; align-items: start; }
  .viewer-stage { grid-column: 1 / span 7; position: sticky; top: calc(var(--head-h) + 32px); }
  .demo-list { grid-column: 9 / span 4; }
  .demo-line { display: block; }
  .demo-pick { padding: 18px 12px 18px 0; }
}

/* ---------- FLOW ---------- */
.flow { max-width: var(--maxw); margin: 0 auto; padding: var(--sec) var(--gutter) 0; }
.steps { list-style: none; margin: 64px 0 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.step { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; padding: 24px 0; border-top: 1px solid var(--rule); position: relative; }
.step-n { grid-row: span 2; font-family: var(--f-display); font-size: 2.6rem; line-height: 1; color: var(--vermilion); }
.step h3 { font-family: var(--f-mincho); font-weight: 700; font-size: 1.2rem; line-height: 1.5; }
.step p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(6, 1fr); column-gap: 20px; margin-top: 96px; position: relative; }
  .steps::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink); transform-origin: left; transform: scaleX(var(--progress, 1)); }
  .step { grid-template-columns: 1fr; border-top: 0; padding: 32px 0 0; }
  .step:nth-child(even) { margin-top: 72px; }
  .step-n { grid-row: auto; font-size: 3.6rem; margin-bottom: 20px; }
}

/* ---------- PRICING ---------- */
.pricing { margin-top: var(--sec); padding: var(--sec) var(--gutter); background: var(--paper-2); }
.pricing-head, .plans, .pricing-note { max-width: var(--maxw); margin-inline: auto; }
.plans { margin-top: 64px; display: grid; }
.plan { padding: 32px 0 36px; border-top: 1px solid var(--ink); display: grid; gap: 14px; }
.plan h3 { font-family: var(--f-mincho); font-weight: 500; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.4; display: grid; gap: 4px; }
.plan-en { font-family: var(--f-display); font-size: 1rem; color: var(--ink-2); }
.plan p { color: var(--ink-2); max-width: 30em; }
.plan .plan-fee { margin-top: 6px; font-family: var(--f-mincho); font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.pricing-note { margin-top: 40px; font-size: 14px; color: var(--ink-2); }
@media (min-width: 960px) {
  .pricing-head { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; }
  .pricing-head .sec-title { grid-column: 1 / span 7; }
  .pricing-head .sec-lead { grid-column: 8 / span 5; margin: 0; }
  .plans { grid-template-columns: 1.15fr 1fr 1fr; column-gap: 48px; margin-top: 96px; }
  .plan { grid-template-rows: auto 1fr auto; }
  .plan:nth-child(2) { margin-top: 48px; }
  .plan:nth-child(3) { margin-top: 96px; }
}

/* ---------- ABOUT ---------- */
.about { max-width: var(--maxw); margin: 0 auto; padding: var(--sec) var(--gutter) 0; display: grid; gap: 48px; }
.about-media { overflow: hidden; aspect-ratio: 3 / 4; max-height: 76svh; background: var(--paper-2); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-lead { margin-top: 32px; font-family: var(--f-mincho); font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); line-height: 1.95; max-width: 26em; }
.people { margin: 48px 0 0; display: grid; gap: 0; }
.person { padding: 24px 0; border-top: 1px solid var(--rule); }
.person dt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.role { font-size: 13px; color: var(--ink-2); letter-spacing: 0.08em; }
.pname { font-family: var(--f-mincho); font-weight: 700; font-size: 1.6rem; letter-spacing: 0.08em; }
.person dd { margin: 8px 0 0; color: var(--ink-2); max-width: 30em; }
.about-note { margin-top: 24px; font-size: 13px; color: var(--ink-2); }
@media (min-width: 960px) {
  .about { grid-template-columns: repeat(12, 1fr); align-items: center; }
  .about-media { grid-column: 1 / span 6; margin-left: calc(var(--gutter) * -1); }
  .about-main { grid-column: 8 / span 5; }
}

/* ---------- FAQ ---------- */
.faq { max-width: var(--maxw); margin: 0 auto; padding: var(--sec) var(--gutter) 0; display: grid; gap: 48px; }
.faq-list { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 20px; gap: 16px; align-items: center;
  padding: 22px 0; min-height: 64px; font-family: var(--f-mincho); font-weight: 500; font-size: 1.1rem; line-height: 1.6;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 14px; height: 14px; justify-self: end; background: linear-gradient(var(--vermilion), var(--vermilion)) center / 14px 1.5px no-repeat, linear-gradient(var(--vermilion), var(--vermilion)) center / 1.5px 14px no-repeat; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 36px 26px 0; color: var(--ink-2); max-width: 40em; }
@media (min-width: 960px) {
  .faq { grid-template-columns: repeat(12, 1fr); }
  .faq .sec-title { grid-column: 1 / span 4; }
  .faq-list { grid-column: 6 / span 7; }
}

/* ---------- CONTACT ---------- */
.contact { position: relative; margin-top: var(--sec); color: var(--ivory); background: var(--forest); overflow: hidden; }
.contact-media { position: absolute; inset: 0; }
.contact-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }
.contact-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25,39,34,.55), rgba(25,39,34,.92) 70%); }
.contact-inner { position: relative; max-width: var(--maxw); margin: 0 auto; padding: var(--sec) var(--gutter); display: grid; }
.contact-seal { width: 52px; height: 52px; margin-bottom: 40px; }
.contact .sec-lead { color: #DCD4C3; }
.contact-mail { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.contact-mail a { font-family: var(--f-display); font-size: clamp(1.5rem, 1rem + 2.4vw, 2.8rem); line-height: 1.2; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; word-break: break-all; }
.copy { min-height: 44px; padding: 0 16px; background: none; border: 1px solid #5B6F66; color: inherit; border-radius: 2px; font: 500 13px/1 var(--f-sans); letter-spacing: 0.08em; cursor: pointer; }
@media (hover: hover) { .copy:hover { border-color: var(--ivory); } }
.copy-status { font-size: 13px; color: var(--sand); }
.contact-form { margin-top: 48px; display: grid; gap: 20px; max-width: 720px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; letter-spacing: 0.06em; }
.opt { color: #BDB5A3; font-size: 12.5px; }
.field input, .field textarea {
  width: 100%; font: 16px/1.7 var(--f-sans); color: var(--ivory); background: rgba(246,243,235,.06);
  border: 1px solid #5B6F66; border-radius: 2px; padding: 12px 14px; transition: border-color .25s, background-color .25s;
}
.field input { min-height: 52px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sand); background: rgba(246,243,235,.1); }
.field [aria-invalid="true"] { border-color: #E08A73; }
.form-error { min-height: 1.5em; color: #F0A48F; font-size: 14px; }
.form-actions { display: grid; gap: 12px; justify-items: start; }
.form-help { font-size: 13px; color: #BDB5A3; }
@media (min-width: 960px) {
  .contact-inner { grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
  .contact-inner > * { grid-column: 1 / span 7; }
  .contact-form { grid-column: 1 / span 8; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .field-wide, .form-error, .form-actions { grid-column: 1 / -1; }
  .form-actions { grid-template-columns: auto 1fr; align-items: center; gap: 24px; }
}

/* ---------- FOOTER ---------- */
.site-foot { background: var(--forest); color: #CFC6B2; padding: 64px var(--gutter) calc(40px + env(safe-area-inset-bottom)); display: grid; gap: 28px; border-top: 1px solid #31443C; }
.foot-brand { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
.foot-brand .seal { width: 40px; height: 40px; grid-row: span 2; }
.foot-word { font-family: var(--f-display); font-size: 1.6rem; color: var(--ivory); line-height: 1.1; }
.foot-en { font-family: var(--f-display); font-size: 0.95rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.foot-nav a { font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
@media (hover: hover) { .foot-nav a:hover { color: var(--ivory); text-decoration: underline; } }
.foot-note, .foot-copy { font-size: 12.5px; color: #9E9887; }
@media (min-width: 960px) {
  .site-foot { grid-template-columns: repeat(12, 1fr); align-items: start; }
  .foot-brand { grid-column: 1 / span 4; }
  .foot-nav { grid-column: 6 / span 7; justify-content: flex-end; }
  .foot-note { grid-column: 1 / span 7; }
  .foot-copy { grid-column: 9 / span 4; text-align: right; }
}

/* ---------- 動きの初期状態（JS があるときだけ） ---------- */
.js [data-reveal] { clip-path: inset(100% 0 0 0); }
.js [data-reveal] img { transform: scale(1.12); }
/* ヒーローは GSAP を待たず CSS で開く（LCP を遅らせない） */
@keyframes hero-open { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes hero-zoom { from { scale: 1.12; } to { scale: 1; } }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes stamp { 0% { opacity: 0; transform: scale(1.3) rotate(-5deg); } 60% { opacity: 1; transform: scale(0.96) rotate(0); } 100% { opacity: 1; transform: none; } }
.js .hero-media { animation: hero-open 1.1s var(--ease) both; }
.js .hero-img { animation: hero-zoom 1.6s var(--ease) both; }
.js .hero .ln > span { animation: line-up .9s var(--ease) both; animation-delay: .3s; }
.js .hero .ln:nth-child(2) > span { animation-delay: .39s; }
.js .hero [data-fade] { animation: fade-up .8s var(--ease) both; animation-delay: .6s; }
.js .hero .hero-lead { animation-delay: .68s; }
.js .hero .hero-actions { animation-delay: .76s; }
.js [data-seal] { animation: stamp .55s var(--ease) both; animation-delay: .75s; }
.js [data-lines]:not(.hero-title) .ln > span { transform: translateY(105%); }
.js.is-static [data-reveal] { clip-path: none; }
.js.is-static [data-reveal] img { transform: none; }
.js.is-static [data-lines] .ln > span, .js.is-static [data-fade] { transform: none; opacity: 1; }
.js.is-static [data-seal] { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
