:root {
  /* === ブランドカラー（厳守）===
     生成り #F6F5F0 / 新橋 #72B6C3 / 弁柄 #BA6B5E
     濃紺 #1C2A35 / 金茶 #C19E64（暗変種） */
  --kinari: #f6f5f0;    /* 地（明） */
  --shinbashi: #72b6c3; /* 主アクセント */
  --seal: #ba6b5e;      /* アクセント（明）弁柄 */
  --navy: #1c2a35;      /* 地（暗）濃紺 */
  --kincha: #c19e64;    /* アクセント（暗）金茶 */
  --sumi: #111111;
  --sumi-soft: rgba(17, 17, 17, 0.72);
  --sumi-hairline: rgba(17, 17, 17, 0.18);
  --paper: rgba(255, 252, 245, 0.62);
  --paper-strong: rgba(255, 252, 245, 0.82);
  --ukiyo-blue: #1d4f78;
  --ukiyo-deep: #12365c;
  --ukiyo-line: rgba(18, 54, 92, 0.28);
  --foam: rgba(255, 252, 245, 0.92);
  --paper-fiber: rgba(82, 64, 42, 0.06);
  --ink-line: rgba(17, 17, 17, 0.74);
  --ink-line-soft: rgba(17, 17, 17, 0.28);
  --splash: rgba(114, 182, 195, 0.72);
  --wood: #463124;
  --wood-dark: #211712;
  --matcha: #4b5530;
  --matcha-deep: #353c1e;
  --matcha-rod: #3a2a1c;
  --footer-height: 104px;
  --sidebar-width: clamp(106px, 10vw, 154px);
  --page-inline: clamp(20px, 5vw, 72px);
  --content-width: 1080px;
  --scroll-progress: 0;
  --world-bg-y: 0px;
  --world-bg-y-reverse: 0px;
  --world-line-y: 0px;
  --world-blue-wash: rgba(29, 79, 120, 0.14);
  --world-section-wash: rgba(29, 79, 120, 0.04);
  --world-wave-shift: 0px;
  --world-wave-scale: 1;
  --world-wave-tilt: -2deg;
  --world-wave-opacity: 0.82;
  --world-shadow: rgba(18, 54, 92, 0.06);
  --world-ink-density: 0.72;
  --brush: "Kaisei Tokumin", "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --serif: var(--brush);
  --sans: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--sumi);
  background: var(--kinari);
  font-family: var(--sans);
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-width: 320px;
  margin: 0;
  padding: 0 0 calc(var(--footer-height) + 56px);
  color: var(--sumi);
  background-color: var(--shinbashi);
  background-image:
    radial-gradient(ellipse at 75% 12%, var(--world-blue-wash), transparent 32%),
    radial-gradient(ellipse at 12% 28%, rgba(114, 182, 195, 0.09), transparent 24%),
    none,
    radial-gradient(circle at 18% 74%, rgba(17, 17, 17, 0.028) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 62%, rgba(82, 64, 42, 0.035) 0 1px, transparent 1.6px),
    none,
    none,
    none;
  background-position:
    center var(--world-bg-y),
    left var(--world-bg-y-reverse),
    center top,
    center top,
    center var(--world-bg-y-reverse),
    center var(--world-line-y),
    center top,
    center top;
  background-size:
    100% 100%,
    100% 100%,
    100% 100%,
    170px 150px,
    210px 190px,
    100% 100%,
    100% 100%,
    100% 100%;
  line-height: 1.9;
  letter-spacing: 0;
}

body.is-entrance-locked {
  overflow: hidden;
}

body.is-entrance-locked .hero,
body.is-entrance-locked .site-main,
body.is-entrance-locked .chat-footer {
  pointer-events: none;
  user-select: none;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 82% 20%, transparent 0 8%, rgba(29, 79, 120, 0.045) 8.4% 9%, transparent 9.4% 16%, rgba(29, 79, 120, 0.026) 16.4% 17%, transparent 17.4%),
    radial-gradient(circle at 18% 38%, rgba(114, 182, 195, 0.16) 0 2px, transparent 2.6px),
    radial-gradient(circle at 24% 46%, rgba(114, 182, 195, 0.13) 0 1.5px, transparent 2.2px),
    radial-gradient(circle at 66% 18%, rgba(17, 17, 17, 0.11) 0 1.2px, transparent 1.8px),
    linear-gradient(90deg, transparent 0 49.6%, rgba(29, 79, 120, 0.07) 49.6% 50.1%, transparent 50.1% 100%),
    none;
  background-position:
    center var(--world-bg-y-reverse),
    center var(--world-bg-y),
    center var(--world-bg-y-reverse),
    center var(--world-bg-y),
    center top,
    center var(--world-line-y);
  background-size:
    100% 100%,
    180px 160px,
    230px 210px,
    260px 230px,
    100% 100%,
    100% 100%;
  opacity: var(--world-ink-density);
}

body::after {
  position: fixed;
  top: 0;
  bottom: var(--footer-height);
  left: var(--page-inline);
  z-index: -1;
  width: 1px;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(114, 182, 195, 0.34) 24%, rgba(17, 17, 17, 0.12) 66%, transparent);
  opacity: 0.46;
}

a {
  color: inherit;
}

p,
figure,
ul,
dl,
dd {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

.noren {
  pointer-events: none;
}

.noren {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100svh;
  padding: clamp(48px, 8vh, 84px) var(--page-inline) clamp(40px, 8vh, 72px);
  place-items: center;
  overflow: visible;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  content: "";
}

.hero::before {
  z-index: 1;
  inset: clamp(20px, 4vw, 44px);
  background:
    radial-gradient(circle at 22% 38%, var(--splash) 0 3px, transparent 3.5px),
    radial-gradient(circle at 28% 52%, rgba(114, 182, 195, 0.44) 0 1.6px, transparent 2.2px),
    radial-gradient(circle at 72% 36%, rgba(17, 17, 17, 0.22) 0 1.5px, transparent 2.2px),
    linear-gradient(var(--sumi-hairline), var(--sumi-hairline)) left top / clamp(64px, 10vw, 144px) 1px no-repeat,
    linear-gradient(var(--sumi-hairline), var(--sumi-hairline)) right top / clamp(64px, 10vw, 144px) 1px no-repeat,
    linear-gradient(var(--sumi-hairline), var(--sumi-hairline)) left bottom / clamp(64px, 10vw, 144px) 1px no-repeat,
    linear-gradient(var(--sumi-hairline), var(--sumi-hairline)) right bottom / clamp(64px, 10vw, 144px) 1px no-repeat,
    linear-gradient(90deg, var(--sumi-hairline), var(--sumi-hairline)) left top / 1px clamp(64px, 10vw, 144px) no-repeat,
    linear-gradient(90deg, var(--sumi-hairline), var(--sumi-hairline)) right top / 1px clamp(64px, 10vw, 144px) no-repeat,
    linear-gradient(90deg, var(--sumi-hairline), var(--sumi-hairline)) left bottom / 1px clamp(64px, 10vw, 144px) no-repeat,
    linear-gradient(90deg, var(--sumi-hairline), var(--sumi-hairline)) right bottom / 1px clamp(64px, 10vw, 144px) no-repeat;
}

.hero::after {
  display: none;
  top: clamp(14px, 4vh, 62px);
  right: max(-7vw, -92px);
  width: min(96vw, 1180px);
  height: min(62vw, 650px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 680'%3E%3Crect width='1200' height='680' fill='none'/%3E%3Cpath d='M-42 351C118 322 194 204 314 118C405 52 505 17 583 45' fill='none' stroke='%23111111' stroke-width='11' stroke-linecap='round' stroke-opacity='.8'/%3E%3Cpath d='M-35 364C118 338 205 224 323 137C417 68 502 40 574 54' fill='none' stroke='%23111111' stroke-width='3' stroke-linecap='round' stroke-opacity='.38'/%3E%3Cpath d='M151 548C283 438 360 355 421 257C471 177 548 102 683 131C782 152 871 218 963 308C1015 359 1068 394 1137 406C1080 381 1017 326 956 264C860 167 761 94 642 82C533 71 432 120 358 220C287 317 248 431 151 548Z' fill='%2372b6c3' fill-opacity='.8'/%3E%3Cpath d='M151 548C312 458 401 362 455 260C503 170 575 104 689 128C594 139 528 202 483 287C422 402 324 509 151 548Z' fill='%231d8793' fill-opacity='.38'/%3E%3Cpath d='M28 575C189 536 352 529 497 580C614 621 764 647 955 615C731 690 502 654 311 600C192 566 97 567 28 575Z' fill='%2372b6c3' fill-opacity='.75'/%3E%3Cpath d='M-6 574C178 548 351 536 528 598M109 520C267 452 398 379 472 254M268 545C380 488 501 451 645 466M365 541C502 489 675 487 827 561M439 221C536 122 659 110 790 188M517 181C636 114 779 150 923 299M16 590C211 573 361 600 519 641' fill='none' stroke='%23fffaf0' stroke-width='7' stroke-linecap='round' stroke-opacity='.72'/%3E%3Cpath d='M164 531C313 438 406 332 459 232M198 563C330 495 455 461 609 486M436 156C536 87 660 88 798 178M507 202C640 180 768 235 907 338' fill='none' stroke='%2312365c' stroke-width='5' stroke-linecap='round' stroke-opacity='.36'/%3E%3Cpath d='M626 120C592 69 532 48 468 62C526 95 558 132 571 186C589 165 610 144 626 120Z' fill='%23fffaf0' fill-opacity='.9'/%3E%3Cpath d='M706 146C672 101 613 82 558 96C617 124 648 164 660 210C681 190 699 169 706 146Z' fill='%23fffaf0' fill-opacity='.88'/%3E%3Cpath d='M778 187C756 138 706 112 651 118C701 153 729 194 733 240C756 223 773 208 778 187Z' fill='%23fffaf0' fill-opacity='.84'/%3E%3Cpath d='M378 414C342 365 286 350 235 376C286 390 322 419 340 468C357 452 371 437 378 414Z' fill='%23fffaf0' fill-opacity='.9'/%3E%3Cpath d='M470 384C434 336 379 321 328 346C381 361 415 390 431 438C450 421 465 404 470 384Z' fill='%23fffaf0' fill-opacity='.82'/%3E%3Cpath d='M775 126C839 146 895 183 940 236M702 110C745 110 791 125 838 158M585 52C642 48 704 71 764 118' fill='none' stroke='%23111111' stroke-width='4' stroke-linecap='round' stroke-opacity='.72'/%3E%3Cpath d='M541 70C589 103 612 139 622 180M614 94C657 127 684 164 704 210M687 122C733 160 760 195 777 236M250 374C304 393 335 430 347 468M339 345C391 365 427 401 445 439' fill='none' stroke='%23111111' stroke-width='4' stroke-linecap='round' stroke-opacity='.66'/%3E%3Ccircle cx='578' cy='112' r='5' fill='%2372b6c3' fill-opacity='.82'/%3E%3Ccircle cx='632' cy='74' r='3' fill='%2372b6c3' fill-opacity='.7'/%3E%3Ccircle cx='710' cy='104' r='4' fill='%2372b6c3' fill-opacity='.75'/%3E%3Ccircle cx='802' cy='154' r='3' fill='%2372b6c3' fill-opacity='.7'/%3E%3Ccircle cx='867' cy='222' r='5' fill='%2372b6c3' fill-opacity='.62'/%3E%3Ccircle cx='325' cy='388' r='5' fill='%2372b6c3' fill-opacity='.78'/%3E%3Ccircle cx='226' cy='435' r='4' fill='%2372b6c3' fill-opacity='.66'/%3E%3Ccircle cx='146' cy='507' r='3' fill='%2372b6c3' fill-opacity='.62'/%3E%3Cpath d='M782 480C923 450 1047 389 1220 342' fill='none' stroke='%23111111' stroke-width='6' stroke-linecap='round' stroke-opacity='.72'/%3E%3Cpath d='M786 500C928 471 1048 410 1226 360' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-opacity='.34'/%3E%3Cpath d='M808 574C918 538 1029 507 1190 493' fill='none' stroke='%2372b6c3' stroke-width='9' stroke-linecap='round' stroke-opacity='.62'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: var(--world-wave-opacity);
  transform: translateX(var(--world-wave-shift)) scale(var(--world-wave-scale)) rotate(var(--world-wave-tilt));
}

.hero__concept {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
  pointer-events: none;
}

.hero__concept::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(ellipse at 52% 48%, rgba(247, 240, 227, 0.1), transparent 48%),
    linear-gradient(90deg, rgba(247, 240, 227, 0.16), transparent 18%, transparent 72%, rgba(247, 240, 227, 0.42));
}

.hero__concept-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.92;
  mix-blend-mode: multiply;
  filter: saturate(0.95) contrast(1.04);
  transform: translateX(var(--world-wave-shift)) scale(var(--world-wave-scale)) rotate(var(--world-wave-tilt));
  transform-origin: 52% 54%;
}

.hero__concept-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  width: 100%;
  height: 100%;
}

/* WebGL 初期化に成功したら canvas を表示し、画像フォールバックを隠す */
body.is-wave-3d .hero__concept-canvas {
  display: block;
}

body.is-wave-3d .hero__concept-image {
  opacity: 0;
}

.hero__title {
  position: relative;
  z-index: 6;
  display: grid;
  place-items: center;
  margin: 0;
  padding: clamp(18px, 2.2vw, 30px);
  font-family: var(--serif);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  width: min(34vw, 372px);
  max-width: 72vw;
}

.hero__title-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.hero__title-art,
.hero__title-image {
  display: block;
}

.hero__title-art {
  position: relative;
  z-index: 2;
}

.hero__title-image {
  width: auto;
  max-width: min(34vw, 372px);
  height: clamp(320px, 64svh, 744px);
  object-fit: contain;
  filter:
    drop-shadow(0 18px 28px rgba(17, 17, 17, 0.13))
    drop-shadow(0 0 1px rgba(17, 17, 17, 0.24));
}

.hero__title::before {
  position: absolute;
  inset: clamp(-58px, -4.4vw, -34px) clamp(-86px, -6vw, -46px);
  z-index: -1;
  content: "";
  background: radial-gradient(ellipse 44% 62% at 50% 50%, rgba(246, 245, 240, 0.96) 0%, rgba(255, 252, 245, 0.9) 38%, rgba(255, 252, 245, 0.5) 58%, transparent 78%);
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.95;
}

.hero__title::after {
  position: absolute;
  inset: clamp(-44px, -3.4vw, -24px) clamp(-64px, -4.8vw, -34px);
  z-index: -1;
  content: "";
  background: radial-gradient(ellipse 52% 72% at 50% 50%, rgba(247, 240, 227, 0.76), rgba(247, 240, 227, 0.36) 52%, transparent 80%);
  border-radius: 50%;
  filter: blur(16px);
  opacity: 0.88;
}

.hero__intro {
  position: absolute;
  top: calc(100% + 24px);
  right: var(--page-inline);
  left: var(--page-inline);
  z-index: 3;
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 26px;
  background:
    linear-gradient(90deg, var(--ukiyo-line), transparent 1px) left top / 1px 100% no-repeat,
    linear-gradient(90deg, transparent calc(100% - 1px), var(--ukiyo-line) calc(100% - 1px)) right top / 100% 100% no-repeat,
    radial-gradient(circle at 96% 12%, rgba(29, 79, 120, 0.12) 0 5%, transparent 5.4%),
    radial-gradient(circle at 10% 84%, rgba(114, 182, 195, 0.09) 0 9%, transparent 9.6%),
    repeating-linear-gradient(106deg, rgba(18, 54, 92, 0.02) 0 1px, transparent 1px 23px),
    rgba(255, 252, 245, 0.74);
  border-top: 1px solid var(--ukiyo-line);
  border-bottom: 1px solid var(--ukiyo-line);
  box-shadow:
    0 18px 38px rgba(18, 54, 92, 0.055),
    inset 0 0 0 1px rgba(255, 252, 245, 0.42);
}

.wood-nav {
  position: absolute;
  right: var(--page-inline);
  left: var(--page-inline);
  top: calc(100% + 286px);
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 760px;
  padding: 6px;
  margin: 0 auto;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.08), transparent 18%, transparent 82%, rgba(17, 17, 17, 0.08)),
    repeating-linear-gradient(90deg, rgba(18, 54, 92, 0.025) 0 1px, transparent 1px 18px),
    rgba(255, 252, 245, 0.68);
  border: 1px solid rgba(18, 54, 92, 0.24);
  box-shadow: 0 12px 26px rgba(18, 54, 92, 0.055);
}

.wood-nav__item {
  display: inline-flex;
  min-width: 9.5em;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  color: var(--kinari);
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  background:
    linear-gradient(90deg, rgba(246, 245, 240, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(29, 79, 120, 0.2), transparent 58%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.12), transparent 12%, transparent 88%, rgba(0, 0, 0, 0.14)),
    repeating-linear-gradient(0deg, rgba(246, 245, 240, 0.04) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, rgba(255, 252, 245, 0.025) 0 1px, transparent 1px 16px),
    var(--wood);
  border: 1px solid rgba(17, 17, 17, 0.5);
  box-shadow:
    inset 0 0 0 1px rgba(247, 240, 227, 0.12),
    0 8px 18px rgba(17, 17, 17, 0.08);
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.wood-nav__item:focus-visible,
.wood-nav__item:hover {
  color: var(--kinari);
  background-color: var(--wood-dark);
  outline: 2px solid rgba(114, 182, 195, 0.72);
  outline-offset: 3px;
  transform: translateY(-1px);
}

.site-main {
  position: relative;
  z-index: 1;
  width: min(100%, calc(var(--content-width) + var(--page-inline) * 2));
  margin: 0 auto;
  padding: clamp(380px, 46vh, 440px) var(--page-inline) 0;
}

.section {
  position: relative;
  scroll-margin-top: 32px;
}

.section + .section {
  margin-top: clamp(96px, 14vh, 148px);
}

.section__inner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(150px, 0.32fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  padding: clamp(52px, 7vw, 84px) clamp(24px, 6vw, 72px);
  background:
    linear-gradient(180deg, var(--world-section-wash), transparent 52%),
    linear-gradient(90deg, var(--ukiyo-line), transparent 1px) left top / 1px 100% no-repeat,
    linear-gradient(90deg, transparent calc(100% - 1px), var(--ukiyo-line) calc(100% - 1px)) right top / 100% 100% no-repeat,
    radial-gradient(circle at 92% 9%, rgba(29, 79, 120, 0.08) 0 7%, transparent 7.4% 100%),
    radial-gradient(circle at 11% 88%, rgba(114, 182, 195, 0.08) 0 5%, transparent 5.6%),
    linear-gradient(180deg, rgba(246, 245, 240, 0.26), transparent 34%),
    var(--paper);
  border-top: 1px solid var(--ukiyo-line);
  border-bottom: 1px solid var(--ukiyo-line);
  box-shadow: 0 18px 46px var(--world-shadow);
}

.section__inner::before,
.section__inner::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.section__inner::before {
  inset: 12px;
  border: 1px solid rgba(18, 54, 92, 0.08);
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.045), transparent 1px) left top / 1px 100% no-repeat,
    linear-gradient(90deg, transparent calc(100% - 1px), rgba(17, 17, 17, 0.035) calc(100% - 1px)) right top / 100% 100% no-repeat;
}

.section__inner::after {
  top: 18px;
  right: clamp(18px, 4vw, 52px);
  width: clamp(90px, 13vw, 180px);
  height: clamp(90px, 13vw, 180px);
  background:
    radial-gradient(circle at 44% 42%, transparent 0 48%, rgba(29, 79, 120, 0.08) 49% 51%, transparent 52%),
    radial-gradient(circle at 42% 44%, transparent 0 68%, rgba(17, 17, 17, 0.04) 69% 70%, transparent 71%);
  opacity: 0.78;
}

.section__title {
  grid-column: 1;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  font-weight: 700;
  line-height: 1.28;
  text-decoration: underline;
  text-decoration-color: rgba(29, 79, 120, 0.26);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

.section__seal {
  grid-column: 1;
  display: inline-grid;
  width: 44px;
  height: 44px;
  margin: 0 0 4px;
  place-items: center;
  color: var(--seal);
  font-family: var(--serif);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  border: 2px solid currentColor;
  background: rgba(255, 252, 245, 0.58);
}

.intro__eyebrow {
  width: fit-content;
  padding: 3px 9px;
  color: var(--sumi-soft);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
  background: rgba(255, 252, 245, 0.7);
  border-left: 2px solid rgba(114, 182, 195, 0.7);
}

.intro__copy {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.35;
}

.intro__description {
  color: var(--sumi-soft);
  font-size: 1.02rem;
  line-height: 2.05;
}

.today__figure {
  grid-column: 2;
  grid-row: 1 / span 4;
  display: grid;
  gap: 12px;
  margin: 0;
}

.today__image-placeholder {
  position: relative;
  width: 100%;
  min-height: clamp(220px, 44vw, 420px);
  background:
    radial-gradient(circle at 14% 18%, var(--foam) 0 4%, transparent 4.4%),
    radial-gradient(circle at 28% 10%, var(--foam) 0 3%, transparent 3.4%),
    radial-gradient(circle at 72% 15%, var(--foam) 0 2.8%, transparent 3.2%),
    radial-gradient(circle at 84% 32%, rgba(114, 182, 195, 0.68) 0 2px, transparent 2.7px),
    radial-gradient(circle at 18% 70%, rgba(17, 17, 17, 0.18) 0 1.3px, transparent 2px),
    radial-gradient(circle at 25% 63%, transparent 0 24%, rgba(255, 252, 245, 0.72) 24.5% 28%, var(--ukiyo-blue) 28.5% 35%, transparent 35.5%),
    radial-gradient(ellipse at 66% 68%, rgba(18, 54, 92, 0.18) 0 38%, transparent 39%),
    linear-gradient(136deg, transparent 0 42%, rgba(17, 17, 17, 0.12) 42.4% 43.2%, transparent 43.6%),
    repeating-radial-gradient(ellipse at 62% 72%, rgba(18, 54, 92, 0.22) 0 1px, transparent 2px 14px),
    repeating-linear-gradient(107deg, rgba(18, 54, 92, 0.03) 0 1px, transparent 1px 24px),
    rgba(247, 240, 227, 0.72);
  background-size: 100% 100%;
  border: 1px solid rgba(18, 54, 92, 0.28);
}

img.today__image-placeholder {
  display: block;
  height: clamp(220px, 44vw, 420px);
  min-height: 0;
  object-fit: cover;
}

.today__image-placeholder::after {
  position: absolute;
  inset: 18px;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(18, 54, 92, 0.14);
}

.today__caption {
  color: var(--sumi-soft);
  font-size: 0.86rem;
}

.today__content {
  grid-column: 1;
  display: grid;
  gap: 12px;
  align-self: end;
}

.today__name {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  font-weight: 700;
  line-height: 1.35;
}

.today__description {
  max-width: 42rem;
  color: var(--sumi-soft);
}

.today__price {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 700;
}

/* ---- 店のQ&A: 切箔グリッド × 封緘カード（C＋B）---- */
.rules__qa-list {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--sumi-hairline);
  border: 1px solid var(--sumi-hairline);
}

.rules__qa-item {
  position: relative;
  display: block;
  padding: clamp(22px, 2.4vw, 30px) clamp(22px, 2.4vw, 32px);
  background-color: var(--kinari);
  background-image: url("assets/washi-kinari.png");
  background-size: 340px auto;
  background-repeat: repeat;
  overflow: hidden;
  transition: filter 0.25s ease;
}

.rules__qa-item:hover {
  filter: brightness(1.02);
}

/* ホバーで出る折り紙の角（切箔グリッドの要素）*/
.rules__qa-item::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  content: "";
  border-style: solid;
  border-width: 0 0 20px 20px;
  border-color: transparent transparent var(--shinbashi) transparent;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.rules__qa-item:hover::after {
  opacity: 1;
}

.rules__qa-item dt {
  min-width: 0;
  padding-right: 48px; /* 朱印のぶん空ける */
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.5vw, 1.32rem);
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
}

/* 右上の丸い「問」朱印（封緘カードの要素）*/
.rules__qa-item dt::before {
  position: absolute;
  top: clamp(18px, 2vw, 26px);
  right: clamp(18px, 2vw, 26px);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--kinari);
  background: var(--seal);
  border-radius: 50%;
  box-shadow: 0 4px 10px -4px rgba(186, 107, 94, 0.7);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  content: "問";
}

.rules__qa-item dd {
  min-width: 0;
  margin-top: 12px;
  color: var(--sumi-soft);
  line-height: 1.85;
}

/* ---- 店舗情報: 切箔グリッド（C＋B・弁柄ラベル）---- */
.info__list {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--sumi-hairline);
  border: 1px solid var(--sumi-hairline);
}

.info__row {
  position: relative;
  display: block;
  padding: clamp(20px, 2.2vw, 28px) clamp(22px, 2.4vw, 30px);
  background-color: var(--kinari);
  background-image: url("assets/washi-kinari.png");
  background-size: 340px auto;
  background-repeat: repeat;
  overflow: hidden;
  transition: filter 0.25s ease;
}

.info__row:hover {
  filter: brightness(1.02);
}

.info__row::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  content: "";
  border-style: solid;
  border-width: 0 0 20px 20px;
  border-color: transparent transparent var(--shinbashi) transparent;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.info__row:hover::after {
  opacity: 1;
}

.info__row dt {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 10px;
  color: var(--shinbashi);
  background: rgba(114, 182, 195, 0.12);
  border: 1px solid rgba(114, 182, 195, 0.34);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.info__row dd {
  min-width: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.6;
}

.info__row a[aria-disabled="true"] {
  color: var(--sumi-soft);
  pointer-events: none;
  text-decoration: none;
}

.chat-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  min-height: var(--footer-height);
  padding: 16px var(--page-inline);
  color: var(--sumi);
  background:
    radial-gradient(ellipse at 18% 0%, rgba(114, 182, 195, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 252, 245, 0.96), rgba(247, 240, 227, 0.985)),
    repeating-linear-gradient(90deg, rgba(17, 17, 17, 0.015) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(5deg, rgba(82, 64, 42, 0.022) 0 1px, transparent 1px 20px),
    var(--kinari);
  border-top: 1px solid rgba(17, 17, 17, 0.22);
  box-shadow: 0 -10px 26px rgba(17, 17, 17, 0.06);
}

.chat-footer__form {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: min(720px, 100%);
  min-width: 0;
}

.chat-footer__label {
  padding: 9px 13px;
  color: var(--kinari);
  font-family: var(--serif);
  font-weight: 700;
  background: var(--wood);
  border: 1px solid rgba(17, 17, 17, 0.46);
  box-shadow:
    inset 0 0 0 1px rgba(247, 240, 227, 0.1),
    inset 12px 0 28px rgba(0, 0, 0, 0.12);
}

.chat-footer__input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  color: var(--sumi);
  font: inherit;
  background: var(--paper-strong);
  border: 1px solid var(--sumi-hairline);
  border-radius: 0;
}

.chat-footer__input:focus {
  outline: 2px solid rgba(114, 182, 195, 0.72);
  outline-offset: 2px;
}

.chat-footer__submit {
  min-width: 48px;
  min-height: 46px;
  padding: 8px 14px;
  color: var(--kinari);
  font: 700 1rem/1 var(--serif);
  cursor: pointer;
  background: var(--wood-dark);
  border: 1px solid rgba(17, 17, 17, 0.5);
  border-radius: 0;
}

.chat-footer__submit:focus-visible,
.chat-footer__submit:hover {
  outline: 2px solid rgba(114, 182, 195, 0.72);
  outline-offset: 2px;
}

.chat-footer__answer {
  position: absolute;
  bottom: calc(100% + 10px);
  left: var(--page-inline);
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  width: min(720px, calc(100vw - (var(--page-inline) * 2)));
  min-height: 0;
  padding: 12px 14px;
  color: var(--sumi-soft);
  font-size: 0.92rem;
  line-height: 1.6;
  background:
    radial-gradient(circle at 96% 22%, rgba(114, 182, 195, 0.1) 0 12%, transparent 12.8%),
    rgba(255, 252, 245, 0.58);
  border-left: 3px solid rgba(114, 182, 195, 0.72);
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.12);
}

.chat-footer__answer[hidden] {
  display: none;
}

.chat-footer__answer-close {
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--sumi);
  font: 700 1.05rem/1 var(--sans);
  cursor: pointer;
  background: transparent;
  border: 1px solid rgba(17, 17, 17, 0.22);
  border-radius: 999px;
}

.chat-footer__answer-close:focus-visible,
.chat-footer__answer-close:hover {
  outline: 2px solid rgba(114, 182, 195, 0.72);
  outline-offset: 2px;
}

.noren {
  z-index: 50;
  display: flex;
  overflow: hidden;
  isolation: isolate;
  opacity: 0;
  visibility: hidden;
  transform-origin: top center;
  transition:
    opacity 260ms ease,
    visibility 260ms ease;
}

/* 上の横木（暖簾を吊る棒） */
.noren::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  height: clamp(14px, 2vh, 22px);
  content: "";
  background:
    linear-gradient(180deg, #5a4128 0 35%, var(--matcha-rod) 60%, #241608),
    var(--matcha-rod);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

.noren::after {
  position: absolute;
  top: clamp(14px, 2vh, 22px);
  bottom: 0;
  left: 50%;
  z-index: 1;
  width: clamp(56px, 15vw, 190px);
  pointer-events: none;
  content: "";
  background:
    radial-gradient(ellipse at 50% 42%, rgba(247, 240, 227, 0.92), rgba(247, 240, 227, 0.34) 48%, transparent 72%),
    linear-gradient(90deg, transparent, rgba(255, 252, 245, 0.46) 46%, rgba(255, 252, 245, 0.46) 54%, transparent);
  opacity: 0;
  filter: blur(10px);
  transform: translateX(-50%) scaleX(0.08);
  transform-origin: center;
}

.noren__panel {
  position: relative;
  z-index: 2;
  display: flex;
  width: 50%;
  height: 100%;
  /* 反物の隙間から覗く濃い谷（地色） */
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0 8px, rgba(0, 0, 0, 0.14) 14px, transparent 34px),
    radial-gradient(140% 86% at 50% 0%, var(--matcha-deep), #2a3017 96%);
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.28);
  transition: transform 980ms cubic-bezier(0.77, 0, 0.18, 1);
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
}

.noren__panel::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 252, 245, 0.08), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.22)),
    repeating-linear-gradient(88deg, rgba(255, 252, 245, 0.028) 0 1px, transparent 1px 16px);
  mix-blend-mode: soft-light;
}

/* 縦の反物（はぎ）。布のように揺れる単位 */
.noren__strip {
  position: relative;
  z-index: 0;
  flex: 1;
  height: 100%;
  transform-origin: top center;
  --cloth-pull: 0px;
  --cloth-pull-soft: 0px;
  --cloth-tilt: 0deg;
  --cloth-tilt-soft: 0deg;
  --cloth-skew: 0deg;
  --cloth-skew-soft: 0deg;
  --cloth-skew-start: 0deg;
  background:
    /* 麻の織り目 */
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(255, 252, 245, 0.05) 0 1px, transparent 1px 3px),
    /* 反内の陰影（丸みのある布の張り） */
    linear-gradient(90deg, rgba(0, 0, 0, 0.26), rgba(255, 252, 245, 0.05) 18%, rgba(255, 252, 245, 0.05) 82%, rgba(0, 0, 0, 0.26)),
    /* 抹茶の地色 */
    radial-gradient(150% 88% at 50% 0%, var(--matcha) 0%, var(--matcha-deep) 94%);
  /* 反の縫い目（左右端のステッチ） */
  box-shadow:
    inset 1px 0 0 rgba(255, 252, 245, 0.05),
    inset -1px 0 0 rgba(0, 0, 0, 0.3);
  animation: noren-breeze 5.5s ease-in-out infinite;
  will-change: transform, opacity;
}
.noren__strip:nth-child(1) { animation-delay: 0s; }
.noren__strip:nth-child(2) { animation-delay: 0.5s; }
.noren__strip:nth-child(3) { animation-delay: 1s; }
.noren__strip:nth-child(4) { animation-delay: 1.5s; }
.noren__panel--right .noren__strip:nth-child(1) { animation-delay: 2s; }
.noren__panel--right .noren__strip:nth-child(2) { animation-delay: 2.5s; }
.noren__panel--right .noren__strip:nth-child(3) { animation-delay: 3s; }
.noren__panel--right .noren__strip:nth-child(4) { animation-delay: 3.5s; }

/* 吊り下げの微風そよぎ（上端を支点に裾が揺れる） */
@keyframes noren-breeze {
  0%, 100% { transform: skewX(0deg) translateX(0) scaleY(1); }
  25%      { transform: skewX(1.1deg) translateX(1px) scaleY(1.004); }
  50%      { transform: skewX(0deg) translateX(0) scaleY(1); }
  75%      { transform: skewX(-1.1deg) translateX(-1px) scaleY(1.004); }
}

/* 開く瞬間：反が時間差ではためく */
body.is-noren-opening .noren__strip {
  animation: none;
}
body.is-noren-opening .noren__panel--left .noren__strip:nth-child(4) { animation-delay: 0ms; }
body.is-noren-opening .noren__panel--left .noren__strip:nth-child(3) { animation-delay: 60ms; }
body.is-noren-opening .noren__panel--left .noren__strip:nth-child(2) { animation-delay: 120ms; }
body.is-noren-opening .noren__panel--left .noren__strip:nth-child(1) { animation-delay: 180ms; }
body.is-noren-opening .noren__panel--right .noren__strip:nth-child(1) { animation-delay: 0ms; }
body.is-noren-opening .noren__panel--right .noren__strip:nth-child(2) { animation-delay: 60ms; }
body.is-noren-opening .noren__panel--right .noren__strip:nth-child(3) { animation-delay: 120ms; }
body.is-noren-opening .noren__panel--right .noren__strip:nth-child(4) { animation-delay: 180ms; }

body.is-noren-opening .noren__panel--left .noren__strip:nth-child(1) {
  --cloth-pull: -18px;
  --cloth-pull-soft: -8px;
  --cloth-tilt: -4deg;
  --cloth-tilt-soft: -2deg;
  --cloth-skew: -2deg;
  --cloth-skew-soft: -1deg;
  --cloth-skew-start: -0.5deg;
}
body.is-noren-opening .noren__panel--left .noren__strip:nth-child(2) {
  --cloth-pull: -28px;
  --cloth-pull-soft: -14px;
  --cloth-tilt: -7deg;
  --cloth-tilt-soft: -3deg;
  --cloth-skew: -3deg;
  --cloth-skew-soft: -1.5deg;
  --cloth-skew-start: -0.8deg;
}
body.is-noren-opening .noren__panel--left .noren__strip:nth-child(3) {
  --cloth-pull: -42px;
  --cloth-pull-soft: -22px;
  --cloth-tilt: -10deg;
  --cloth-tilt-soft: -5deg;
  --cloth-skew: -4.4deg;
  --cloth-skew-soft: -2.2deg;
  --cloth-skew-start: -1.2deg;
}
body.is-noren-opening .noren__panel--left .noren__strip:nth-child(4) {
  --cloth-pull: -64px;
  --cloth-pull-soft: -34px;
  --cloth-tilt: -14deg;
  --cloth-tilt-soft: -7deg;
  --cloth-skew: -6deg;
  --cloth-skew-soft: -3deg;
  --cloth-skew-start: -1.8deg;
}
body.is-noren-opening .noren__panel--right .noren__strip:nth-child(1) {
  --cloth-pull: 64px;
  --cloth-pull-soft: 34px;
  --cloth-tilt: 14deg;
  --cloth-tilt-soft: 7deg;
  --cloth-skew: 6deg;
  --cloth-skew-soft: 3deg;
  --cloth-skew-start: 1.8deg;
}
body.is-noren-opening .noren__panel--right .noren__strip:nth-child(2) {
  --cloth-pull: 42px;
  --cloth-pull-soft: 22px;
  --cloth-tilt: 10deg;
  --cloth-tilt-soft: 5deg;
  --cloth-skew: 4.4deg;
  --cloth-skew-soft: 2.2deg;
  --cloth-skew-start: 1.2deg;
}
body.is-noren-opening .noren__panel--right .noren__strip:nth-child(3) {
  --cloth-pull: 28px;
  --cloth-pull-soft: 14px;
  --cloth-tilt: 7deg;
  --cloth-tilt-soft: 3deg;
  --cloth-skew: 3deg;
  --cloth-skew-soft: 1.5deg;
  --cloth-skew-start: 0.8deg;
}
body.is-noren-opening .noren__panel--right .noren__strip:nth-child(4) {
  --cloth-pull: 18px;
  --cloth-pull-soft: 8px;
  --cloth-tilt: 4deg;
  --cloth-tilt-soft: 2deg;
  --cloth-skew: 2deg;
  --cloth-skew-soft: 1deg;
  --cloth-skew-start: 0.5deg;
}

@keyframes noren-cloth-peel {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateY(0deg) skewX(0deg) scaleY(1);
  }
  18% {
    opacity: 1;
    transform: translate3d(0, 1.8%, 0) rotateY(0deg) skewX(var(--cloth-skew-start)) scaleY(1.016);
  }
  46% {
    opacity: 1;
    transform: translate3d(var(--cloth-pull-soft), 0.4%, 34px) rotateY(var(--cloth-tilt-soft)) skewX(var(--cloth-skew-soft)) scaleY(1.03);
  }
  76% {
    opacity: 0.98;
    transform: translate3d(var(--cloth-pull), -0.6%, 72px) rotateY(var(--cloth-tilt)) skewX(var(--cloth-skew)) scaleY(1.012);
  }
  100% {
    opacity: 0.34;
    transform: translate3d(var(--cloth-pull), -1.2%, 88px) rotateY(var(--cloth-tilt)) skewX(var(--cloth-skew-soft)) scaleY(0.998);
  }
}

/* 店名（割れる暖簾）：縦書き・継ぎ目で 寿司処｜まさ に分かれる */
.noren__panel::after {
  position: absolute;
  top: clamp(48px, 12vh, 120px);
  color: rgba(247, 240, 227, 0.92);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4.4vh, 3rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
  text-orientation: upright;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.noren__panel--left {
  border-right: 1px solid rgba(247, 240, 227, 0.18);
}

/* 右パネル＝先頭（右から読む）：寿司処 を継ぎ目側へ */
.noren__panel--right::after {
  left: clamp(12px, 2.2vw, 30px);
  content: "寿司処";
}

/* 左パネル＝続き：まさ を継ぎ目側へ */
.noren__panel--left::after {
  right: clamp(12px, 2.2vw, 30px);
  content: "まさ";
}

body.is-noren-closed .noren,
body.is-noren-opening .noren {
  opacity: 1;
  visibility: visible;
}

/* 布を人ひとり分だけ僅かに分け、視点がその隙間を潜り抜ける */
body.is-noren-opening .noren {
  perspective: 1300px;
  perspective-origin: 50% 42%;
  transform-origin: 50% 42%;
  animation: noren-pass-through 1450ms cubic-bezier(0.5, 0, 0.12, 1) forwards;
}
body.is-noren-opening .noren::after {
  animation: noren-slit-light 1450ms cubic-bezier(0.5, 0, 0.12, 1) forwards;
}
body.is-noren-opening .noren__panel {
  backface-visibility: hidden;
}
/* 中央の継ぎ目を、布は上げず人が通れるだけ僅かに分ける */
body.is-noren-opening .noren__panel--right {
  transform-origin: left center;
  animation: noren-part-r 1450ms cubic-bezier(0.34, 0.1, 0.2, 1) forwards;
}
body.is-noren-opening .noren__panel--left {
  transform-origin: right center;
  animation: noren-part-l 1450ms cubic-bezier(0.34, 0.1, 0.2, 1) 50ms forwards;
}

@keyframes noren-part-r {
  0%   { transform: translateX(0) rotateY(0deg); }
  30%  { transform: translateX(2.5%) rotateY(5deg); }
  100% { transform: translateX(7%) rotateY(12deg); }
}
@keyframes noren-part-l {
  0%   { transform: translateX(0) rotateY(0deg); }
  30%  { transform: translateX(-2.5%) rotateY(-5deg); }
  100% { transform: translateX(-7%) rotateY(-12deg); }
}

@keyframes noren-slit-light {
  0%, 14% {
    opacity: 0;
    filter: blur(12px);
    transform: translateX(-50%) scaleX(0.04);
  }
  46% {
    opacity: 0.5;
    filter: blur(8px);
    transform: translateX(-50%) scaleX(0.42);
  }
  76% {
    opacity: 0.88;
    filter: blur(6px);
    transform: translateX(-50%) scaleX(1);
  }
  100% {
    opacity: 0;
    filter: blur(18px);
    transform: translateX(-50%) scaleX(1.24);
  }
}

@keyframes noren-pass-through {
  0% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
  38% {
    opacity: 1;
    transform: scale(1.32);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: scale(3.4);
    filter: blur(7px);
  }
}

.wood-nav__item.is-active {
  color: var(--kinari);
  background-color: var(--wood-dark);
  outline: 2px solid rgba(114, 182, 195, 0.48);
  outline-offset: 3px;
}

.section.is-current .section__inner {
  border-color: rgba(114, 182, 195, 0.38);
}

body[data-world-stage="wave"] .today .section__inner,
body[data-world-stage="question"] .rules .section__inner,
body[data-world-stage="shore"] .info .section__inner {
  border-color: rgba(29, 79, 120, 0.46);
}

body[data-world-stage="wave"] .today__image-placeholder {
  filter: saturate(1.18) contrast(1.04);
}

body[data-world-stage="wave"] .hero::after {
  filter: saturate(1.12) contrast(1.04);
}

body[data-world-stage="question"] .rules__qa-item dt::before {
  box-shadow: 0 5px 12px -4px rgba(186, 107, 94, 0.85);
}

body[data-world-stage="question"] .section__title {
  text-decoration-color: rgba(143, 46, 32, 0.34);
}


body[data-world-stage="shore"] .chat-footer {
  border-top-color: rgba(18, 54, 92, 0.34);
}

.chat-footer__answer.is-updated {
  color: var(--sumi);
}

@media (max-width: 760px) {
  :root {
    --footer-height: 96px;
  }

  body {
    padding-bottom: calc(var(--footer-height) + 32px);
  }

  .hero {
    min-height: 100svh;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .hero::before {
    inset: 14px;
  }

  .hero::after {
    top: 42px;
    right: -116px;
    width: min(118vw, 560px);
    height: min(82vw, 420px);
    opacity: var(--world-wave-opacity);
  }

  .hero__concept-image {
    object-position: 43% center;
    opacity: 0.9;
    transform: scale(var(--world-wave-scale)) rotate(var(--world-wave-tilt));
  }

  .hero__title {
    width: min(44vw, 260px);
    max-width: 58vw;
  }

  .hero__title::before {
    inset: -32px -48px;
    opacity: 0.9;
  }

  .hero__title::after {
    inset: -22px -34px;
  }

  .hero__title-image {
    max-width: min(44vw, 260px);
    height: clamp(280px, 54svh, 520px);
  }

  .hero__intro {
    right: 20px;
    left: 20px;
    top: calc(100% + 22px);
    padding: 18px 18px;
  }

  .wood-nav {
    right: 20px;
    left: 20px;
    top: calc(100% + 306px);
    gap: 8px;
    padding: 5px;
  }

  .wood-nav__item {
    flex: 1 1 8.5em;
    min-width: 0;
    padding: 10px 8px;
    font-size: 0.86rem;
  }

  .site-main {
    padding-top: 430px;
  }

  .section + .section {
    margin-top: 76px;
  }

  .section__inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 18px;
  }

  .section__seal,
  .section__title,
  .today__figure,
  .today__content,
  .rules__qa-list,
  .info__list {
    grid-column: 1;
    grid-row: auto;
  }

  .rules__qa-list,
  .info__list {
    grid-template-columns: 1fr;
  }

  .today__figure {
    gap: 8px;
  }

  .today__image-placeholder {
    min-height: 160px;
  }

  .today__content {
    gap: 8px;
  }

  .today__price {
    margin-top: 0;
  }

  .intro__copy {
    font-size: 2rem;
  }

  .rules__qa-item {
    padding: 20px 20px;
  }

  .rules__qa-item dt {
    padding-right: 42px;
    font-size: 1.02rem;
    line-height: 1.4;
  }

  .rules__qa-item dt::before {
    top: 18px;
    right: 18px;
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }

  .rules__qa-item dd {
    margin-top: 10px;
    line-height: 1.7;
  }

  .info__row {
    padding: 18px 20px;
  }

  .chat-footer {
    padding: 10px 14px;
  }

  .chat-footer__form {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .chat-footer__input {
    min-width: 0;
    min-height: 40px;
  }

  .chat-footer__submit {
    min-height: 40px;
  }

  .chat-footer__answer {
    bottom: calc(100% + 8px);
    left: 14px;
    width: calc(100vw - 28px);
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 420px) {
  :root {
    --footer-height: 96px;
  }

  body {
    padding-bottom: calc(var(--footer-height) + env(safe-area-inset-bottom) + 24px);
  }

  .hero__title {
    width: min(40vw, 220px);
    max-width: 54vw;
  }

  .hero__title::before {
    inset: -24px -36px;
  }

  .hero__title::after {
    inset: -16px -28px;
  }

  .hero__title-image {
    max-width: min(40vw, 220px);
    height: clamp(300px, 48svh, 420px);
  }

  .chat-footer {
    min-height: calc(var(--footer-height) + env(safe-area-inset-bottom));
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  }

  .chat-footer__input {
    min-height: 42px;
    padding: 8px 12px;
    font-size: 0.92rem;
  }

  .chat-footer__submit {
    min-width: 44px;
    min-height: 42px;
    padding: 8px 12px;
  }

  .wood-nav {
    top: calc(100% + 392px);
  }

  .site-main {
    padding-top: 520px;
  }

  .intro__copy {
    font-size: 1.72rem;
  }

  .chat-footer__form {
    grid-template-columns: 1fr auto;
  }

  .site-sidebar {
    width: 68px;
  }

  body[data-current-section="home"] .site-sidebar {
    width: 56px;
  }

  body[data-current-section="home"] .site-sidebar .site-nav {
    padding: 0 5px;
  }

  body[data-current-section="home"] .site-sidebar .site-nav__link {
    min-height: 32px;
    font-size: 0.5rem;
  }

  .rules__qa-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

}

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

/* ============================================================
   Hero — awwwards 級 エディトリアル層（墨絵 × シネマティック）
   ============================================================ */
.hero { isolation: isolate; }

/* 上部ナビ：極細レタースペース */
.site-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(18px, 3.4vh, 34px) clamp(20px, 5vw, 64px);
}
.site-nav__brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  letter-spacing: 0.42em;
  padding-left: 0.42em;
  color: var(--sumi);
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 252, 245, 0.6);
}
.site-nav__links { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.site-nav__link {
  position: relative;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  padding-left: 0.28em;
  color: var(--sumi-soft);
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 252, 245, 0.5);
  transition: color 200ms ease;
}
.site-nav__link::after {
  position: absolute;
  right: 100%;
  bottom: -0.55em;
  left: 0;
  height: 1px;
  background: var(--sumi);
  content: "";
  transition: right 280ms cubic-bezier(0.4, 0, 0.2, 1);
}
.site-nav__link:hover,
.site-nav__link.is-active { color: var(--sumi); }
.site-nav__link:hover::after,
.site-nav__link.is-active::after { right: 0.28em; }

/* タイトル：縦書きの主役 */
.hero__title { align-self: center; justify-self: center; }

/* エディトリアル・コピー（左下） */
.hero__lead {
  position: absolute;
  bottom: clamp(86px, 16vh, 152px);
  left: clamp(20px, 5vw, 64px);
  z-index: 5;
  max-width: min(52ch, 50vw);
}
.hero__lead::before {
  position: absolute;
  z-index: -1;
  inset: -32px -44px -24px -48px;
  background: radial-gradient(130% 108% at 0% 96%, rgba(247, 240, 227, 0.86), rgba(247, 240, 227, 0.36) 52%, transparent 76%);
  content: "";
  pointer-events: none;
}
.hero__eyebrow {
  margin: 0 0 1em;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  padding-left: 0.42em;
  color: var(--ukiyo-blue);
}
.hero__eyebrow::before {
  display: inline-block;
  width: 2.6em;
  height: 1px;
  margin-right: 1em;
  vertical-align: middle;
  background: var(--shinbashi);
  content: "";
}
.hero__copy {
  margin: 0;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.62;
  letter-spacing: 0.16em;
  color: var(--sumi);
  text-shadow: 0 2px 22px rgba(247, 240, 227, 0.66);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  width: max-content;
  max-height: min(56vh, 560px);
}
.hero__note {
  margin: 1.5em 0 0;
  max-width: 34ch;
  font-family: var(--serif);
  font-size: clamp(0.86rem, 1.1vw, 1rem);
  line-height: 2.05;
  color: var(--sumi);
}

/* 浮遊ガラスカード（右） */
.hero__cards {
  position: absolute;
  top: 50%;
  right: clamp(20px, 5vw, 64px);
  z-index: 5;
  display: grid;
  gap: 14px;
  width: min(282px, 32vw);
  transform: translateY(-46%);
}
.glass-card {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  color: var(--sumi);
  text-decoration: none;
  background: linear-gradient(135deg, rgba(255, 252, 245, 0.5), rgba(255, 252, 245, 0.22));
  border: 1px solid rgba(255, 252, 245, 0.55);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(18, 54, 92, 0.16), inset 0 1px 0 rgba(246, 245, 240, 0.5);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  transition: transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 320ms ease, background 320ms ease;
}
.glass-card:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, rgba(255, 252, 245, 0.62), rgba(255, 252, 245, 0.32));
  box-shadow: 0 24px 52px rgba(18, 54, 92, 0.22), inset 0 1px 0 rgba(246, 245, 240, 0.6);
}
.glass-card__label { font-family: var(--serif); font-weight: 700; font-size: 1.06rem; letter-spacing: 0.08em; }
.glass-card__sub { font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.06em; color: var(--sumi-soft); }
.glass-card__icon {
  position: absolute;
  top: 16px;
  right: 18px;
  color: var(--shinbashi);
  font-size: 0.95rem;
  transition: transform 300ms ease;
}
.glass-card:hover .glass-card__icon { transform: translateX(5px); }
.glass-card--status {
  place-items: center;
  text-align: center;
  color: var(--kinari);
  background: linear-gradient(135deg, rgba(29, 79, 120, 0.36), rgba(114, 182, 195, 0.22));
  border-color: rgba(255, 252, 245, 0.4);
}
.glass-card__num { font-family: var(--serif); font-weight: 800; font-size: 2.5rem; line-height: 1; }
.glass-card--status .glass-card__sub { color: rgba(255, 252, 245, 0.88); }

/* スクロール誘導（下中央・墨のシェブロン） */
.scroll-cue {
  position: absolute;
  bottom: calc(var(--footer-height, 104px) + clamp(16px, 2.4vh, 26px));
  left: 50%;
  z-index: 5;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-decoration: none;
  transform: translateX(-50%);
}
.scroll-cue__text {
  font-family: var(--serif);
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  color: var(--sumi-soft);
  writing-mode: vertical-rl;
}
.scroll-cue__chevron {
  width: 13px;
  height: 13px;
  border-right: 1.5px solid var(--sumi);
  border-bottom: 1.5px solid var(--sumi);
  transform: rotate(45deg);
  animation: cue-bob 1.8s ease-in-out infinite;
}
@keyframes cue-bob {
  0%, 100% { opacity: 0.45; transform: rotate(45deg) translate(0, 0); }
  50%      { opacity: 1; transform: rotate(45deg) translate(3px, 3px); }
}

/* below-fold の旧 intro/nav は廃止 → site-main の上余白を詰める */
.site-main { padding-top: clamp(110px, 16vh, 180px); }

@media (max-width: 760px) {
  .site-nav { padding: 18px 20px; }
  .site-nav__links { gap: 16px; }
  .site-nav__link { font-size: 0.7rem; letter-spacing: 0.16em; }
  .site-nav__brand { font-size: 1rem; letter-spacing: 0.3em; }
  .hero__lead { right: 20px; bottom: calc(var(--footer-height) + 28px); max-width: none; }
  .hero__copy { font-size: clamp(1.65rem, 7.2vw, 2.35rem); max-height: 34vh; }
  .hero__cards { display: none; }
}

/* ============================================================
   下層セクション — 高級トーンへ統一（エディトリアル＋スクロール演出）
   ============================================================ */
/* アイブロウ（Heroと共通の作法：細線＋レタースペース） */
.section__eyebrow {
  grid-column: 1;
  margin: 0 0 0.7em;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.36em;
  padding-left: 0.36em;
  color: var(--ukiyo-blue);
}
.section__eyebrow::before {
  display: inline-block;
  width: 2.2em;
  height: 1px;
  margin-right: 0.9em;
  vertical-align: middle;
  background: var(--shinbashi);
  content: "";
}

/* 見出し：下線をやめ、字間を整える */
.section__title {
  text-decoration: none;
  letter-spacing: 0.06em;
}

/* スクロール・リビール（JSが reveal-ready を付けたときだけ作動） */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* セクション見出し群をひとまとめにして密度を整える */
.section__head {
  grid-column: 1;
  align-self: start;
  display: grid;
  justify-items: start;
  gap: 0.12em;
}
.section__head .section__eyebrow,
.section__head .section__title { grid-column: auto; }
.today__figure { grid-row: 1 / span 2; }

/* ============================================================
   Horizontal progression layout
   All viewports advance panels horizontally.
   ============================================================ */
body.is-entrance-locked .site-sidebar,
body.is-entrance-locked .site-header {
  pointer-events: none;
  user-select: none;
}

.site-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: var(--footer-height);
  z-index: 34;
  display: flex;
  width: var(--sidebar-width);
  padding: clamp(16px, 2.6vh, 30px) 0 clamp(18px, 3vh, 34px);
  pointer-events: none;
}

.site-sidebar::before {
  position: absolute;
  inset: 0 0 0 auto;
  width: 1px;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(17, 17, 17, 0.18) 18%, rgba(114, 182, 195, 0.34) 58%, transparent);
}

.site-sidebar .site-nav {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 4vh, 42px);
  width: calc(100% - clamp(16px, 2vw, 24px));
  height: 100%;
  margin: 0 auto;
  padding: clamp(18px, 3vh, 30px) clamp(8px, 1.2vw, 14px);
  pointer-events: auto;
  background:
    linear-gradient(90deg, rgba(247, 240, 227, 0.88), rgba(247, 240, 227, 0.64)),
    repeating-linear-gradient(92deg, rgba(17, 17, 17, 0.024) 0 1px, transparent 1px 18px);
  border: 1px solid rgba(17, 17, 17, 0.14);
  box-shadow: 18px 0 42px rgba(18, 54, 92, 0.08);
}

.site-sidebar .site-nav__brand {
  flex: 0 0 auto;
  display: inline-block;
  padding: 0;
  font-size: clamp(1.05rem, 1.35vw, 1.28rem);
  line-height: 1.25;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.site-sidebar .site-nav__links {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  gap: clamp(8px, 2vh, 18px);
}

.site-sidebar .site-nav__link {
  display: grid;
  width: 100%;
  min-height: clamp(34px, 5vh, 48px);
  padding: 0;
  place-items: center;
  font-size: clamp(0.64rem, 0.76vw, 0.74rem);
  letter-spacing: 0.2em;
}

.site-sidebar .site-nav__link::after {
  right: auto;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 1px;
  transform: translateX(-50%);
  transition: width 260ms cubic-bezier(0.4, 0, 0.2, 1);
}

.site-sidebar .site-nav__link:hover::after,
.site-sidebar .site-nav__link.is-active::after {
  right: auto;
  width: min(56px, calc(100% - 18px));
}

body[data-current-section="home"] .site-sidebar {
  width: clamp(86px, 8vw, 118px);
}

body[data-current-section="home"] .site-sidebar::before {
  opacity: 0;
}

body[data-current-section="home"] .site-sidebar .site-nav {
  width: 100%;
  justify-content: center;
  padding: 0 clamp(10px, 1.3vw, 16px);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

body[data-current-section="home"] .site-sidebar .site-nav__brand {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

body[data-current-section="home"] .site-sidebar .site-nav__links {
  flex: 0 1 auto;
  padding: clamp(12px, 2vh, 18px) 0;
}

.horizontal-main {
  position: relative;
  z-index: 1;
  padding: 0;
}

.horizontal-panel {
  position: relative;
  flex: 0 0 100vw;
  width: 100vw;
  height: 100svh;
  min-height: 100svh;
  padding: clamp(64px, 10vh, 118px) var(--page-inline) calc(var(--footer-height) + clamp(44px, 8vh, 78px)) calc(var(--sidebar-width) + var(--page-inline));
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scrollbar-width: thin;
}

.horizontal-panel::before {
  position: absolute;
  inset: clamp(20px, 4vw, 44px) clamp(20px, 4vw, 44px) clamp(20px, 4vw, 44px) calc(var(--sidebar-width) + clamp(20px, 4vw, 44px));
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(var(--sumi-hairline), var(--sumi-hairline)) left top / clamp(52px, 8vw, 120px) 1px no-repeat,
    linear-gradient(var(--sumi-hairline), var(--sumi-hairline)) right bottom / clamp(52px, 8vw, 120px) 1px no-repeat,
    linear-gradient(90deg, var(--sumi-hairline), var(--sumi-hairline)) left top / 1px clamp(52px, 8vw, 120px) no-repeat,
    linear-gradient(90deg, var(--sumi-hairline), var(--sumi-hairline)) right bottom / 1px clamp(52px, 8vw, 120px) no-repeat;
  opacity: 0.65;
}

.horizontal-panel > * {
  position: relative;
  z-index: 1;
}

.horizontal-panel--home {
  display: grid;
  place-items: center;
  isolation: isolate;
  padding-left: var(--page-inline);
}

.horizontal-panel--home::before {
  inset: clamp(20px, 4vw, 44px);
}

.horizontal-panel--home .hero__concept {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.horizontal-panel--home .hero__title {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-right: 0;
  transform: translate(-50%, -50%);
}

.horizontal-panel--home .scroll-cue {
  bottom: calc(var(--footer-height) + 26px);
}

.horizontal-panel--home .scroll-cue__chevron {
  transform: rotate(-45deg);
}

.horizontal-panel--home .scroll-cue:hover .scroll-cue__chevron {
  transform: rotate(-45deg) translate(2px, -2px);
}

.horizontal-copy {
  display: grid;
  gap: 1.1em;
  max-width: 38rem;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 2.2;
  color: var(--sumi);
}

.horizontal-main .section__inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--content-width));
  min-height: auto;
  margin: 0 auto;
}

.horizontal-main .about .section__inner,
.horizontal-main .profile .section__inner,
.horizontal-main .contact .section__inner {
  align-content: center;
}

body[data-world-stage="wave"] .about .section__inner,
body[data-world-stage="question"] .profile .section__inner,
body[data-world-stage="shore"] .contact .section__inner {
  border-color: rgba(114, 182, 195, 0.38);
  box-shadow: 0 26px 64px var(--world-shadow);
}

html,
body {
  min-height: var(--horizontal-scroll-height, 500svh);
  overflow-x: hidden;
  overflow-y: auto;
}

.horizontal-main {
  position: fixed;
  inset: 0;
  display: flex;
  width: 100vw;
  height: 100svh;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}

.horizontal-main::-webkit-scrollbar {
  display: none;
}

@media (max-width: 760px) {
  :root {
    --sidebar-width: 76px;
  }

  .site-sidebar {
    bottom: var(--footer-height);
    padding: 12px 0;
  }

  .site-sidebar .site-nav {
    width: calc(100% - 12px);
    padding: 12px 6px;
  }

  .site-sidebar .site-nav__brand {
    font-size: 0.92rem;
    letter-spacing: 0.12em;
  }

  .site-sidebar .site-nav__links {
    gap: 6px;
  }

  .site-sidebar .site-nav__link {
    min-height: 34px;
    font-size: 0.54rem;
    letter-spacing: 0.08em;
  }

  body[data-current-section="home"] .site-sidebar {
    width: 64px;
  }

  body[data-current-section="home"] .site-sidebar .site-nav {
    padding: 0 6px;
  }

  body[data-current-section="home"] .site-sidebar .site-nav__links {
    gap: 5px;
    padding: 8px 0;
  }

  .horizontal-panel {
    padding: clamp(56px, 10vh, 88px) 14px calc(var(--footer-height) + 34px) calc(var(--sidebar-width) + 14px);
  }

  .horizontal-panel::before {
    inset: 14px 14px 14px calc(var(--sidebar-width) + 10px);
  }

  .horizontal-main .works .section__head {
    grid-row: 1;
  }

  .horizontal-main .works .today__figure {
    grid-row: 2;
    gap: 6px;
  }

  .horizontal-main .works .today__content {
    grid-row: 3;
  }

  img.today__image-placeholder {
    height: clamp(112px, 19vh, 160px);
  }
}

@media (max-width: 420px) {
  :root {
    --sidebar-width: 68px;
  }

  body[data-current-section="home"] .site-sidebar {
    width: 56px;
  }

  body[data-current-section="home"] .site-sidebar .site-nav {
    padding: 0 5px;
  }

  body[data-current-section="home"] .site-sidebar .site-nav__link {
    min-height: 32px;
    font-size: 0.5rem;
  }

  .horizontal-panel {
    padding-right: 12px;
    padding-left: calc(var(--sidebar-width) + 12px);
  }

  .horizontal-panel--home {
    padding-left: 12px;
  }
}

/* ===== 縦スクロール化：ページ横移動を廃止（横→縦フロー） ===== */
html,
body {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.site-main.horizontal-main {
  position: static;
  inset: auto;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: visible;
  scroll-snap-type: none;
  touch-action: auto;
  padding-top: 0;
}

.horizontal-panel {
  flex: none;
  width: 100%;
  height: auto;
  min-height: 100svh;
  overflow: visible;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}

/* ホームのスクロール誘導は下向きに */
.horizontal-panel--home .scroll-cue__chevron {
  transform: rotate(45deg);
}
.horizontal-panel--home .scroll-cue:hover .scroll-cue__chevron {
  transform: rotate(45deg) translate(3px, 3px);
}

/* 各セクションの内容を縦中央寄せ（ホームのグリッド中央配置は維持）＋空白最適化 */
.horizontal-panel:not(.horizontal-panel--home) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(560px, 86vh, 900px);
}

/* 背面ゴースト大英字：空白を品よく満たすアンカー（参考：和モダン定番） */
.horizontal-panel[data-ghost]::after {
  content: attr(data-ghost);
  position: absolute;
  right: clamp(16px, 5vw, 96px);
  bottom: clamp(24px, 9vh, 120px);
  z-index: 0;
  font-family: var(--serif);
  font-size: clamp(5.5rem, 20vw, 17rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: 0.01em;
  color: rgba(114, 182, 195, 0.07);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .horizontal-panel[data-ghost]::after {
    right: 10px;
    bottom: clamp(16px, 5vh, 64px);
    font-size: clamp(4rem, 34vw, 9rem);
  }
}

/* ===== モバイルナビ：ハンバーガー + ドロワー ===== */
/* デスクトップは従来の常時サイドバー。トグルとバックドロップは隠す */
.nav-toggle { display: none; }
.nav-backdrop { display: none; }

.nav-toggle {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 60;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(247, 240, 227, 0.94), rgba(247, 240, 227, 0.8));
  box-shadow: 0 10px 26px rgba(18, 54, 92, 0.12);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle__bar {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 1.6px;
  background: var(--sumi);
  transform: translateX(-50%);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1), opacity 180ms ease;
}
.nav-toggle__bar:nth-child(1) { top: 16px; }
.nav-toggle__bar:nth-child(2) { top: 22px; }
.nav-toggle__bar:nth-child(3) { top: 28px; }
body.nav-open .nav-toggle__bar:nth-child(1) { top: 22px; transform: translateX(-50%) rotate(45deg); }
body.nav-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle__bar:nth-child(3) { top: 22px; transform: translateX(-50%) rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 33;
  background: rgba(17, 17, 17, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 360ms ease;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-backdrop { display: block; }

  body.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }

  /* サイドバーをオフキャンバスのドロワーに */
  .site-sidebar {
    top: 0;
    bottom: 0;
    width: min(74vw, 300px);
    padding: 0;
    transform: translateX(-120%);
    transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }
  body.nav-open .site-sidebar { transform: none; }
  body:not(.nav-open) .site-sidebar { pointer-events: none; }

  .site-sidebar .site-nav {
    width: 100%;
    height: 100%;
    padding: clamp(72px, 12vh, 108px) 24px clamp(28px, 6vh, 56px);
    gap: clamp(24px, 5vh, 44px);
    background:
      linear-gradient(90deg, rgba(247, 240, 227, 0.98), rgba(247, 240, 227, 0.95));
  }

  /* ドロワー内は横組みで読みやすく */
  .site-sidebar .site-nav__brand {
    writing-mode: horizontal-tb;
    font-size: 1.3rem;
    letter-spacing: 0.26em;
    text-align: center;
  }
  .site-sidebar .site-nav__links { gap: clamp(14px, 3vh, 26px); }
  .site-sidebar .site-nav__link {
    min-height: 46px;
    font-size: 0.82rem;
    letter-spacing: 0.26em;
  }

  /* サイドバーが退避したぶん本文の左余白を回収 */
  .horizontal-panel {
    padding-left: 18px;
  }
  .horizontal-panel::before { left: 18px; }
  .horizontal-panel--home { padding-left: 18px; }
}

/* モバイル：HOME専用のサイドバー特別扱いを無効化し、全セクション共通のドロワーに */
@media (max-width: 760px) {
  body[data-current-section="home"] .site-sidebar {
    width: min(74vw, 300px);
  }
  body[data-current-section="home"] .site-sidebar::before {
    opacity: 0;
  }
  body[data-current-section="home"] .site-sidebar .site-nav {
    justify-content: flex-start;
    padding: clamp(72px, 12vh, 108px) 24px clamp(28px, 6vh, 56px);
    background: linear-gradient(90deg, rgba(247, 240, 227, 0.98), rgba(247, 240, 227, 0.95));
    border-color: rgba(17, 17, 17, 0.14);
    box-shadow: 18px 0 42px rgba(18, 54, 92, 0.12);
  }
  body[data-current-section="home"] .site-sidebar .site-nav__brand {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }
  body[data-current-section="home"] .site-sidebar .site-nav__links {
    flex: 1 1 auto;
    padding: 0;
  }
}

/* ===== WebGL暖簾クロス：キャンバスとDOM暖簾の切替 ===== */
.noren-cloth-canvas {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  width: 100vw;
  height: 100svh;
  pointer-events: none;
  transition: opacity 400ms ease;
}
body.is-cloth-3d .noren-cloth-canvas { display: block; }
body.is-cloth-3d .noren { display: none !important; }
