/* 冬の星箱（動きの見本）。このページだけの CSS。
   html.mo ＝ 動き用の並び（ピン留め・重ね）。付いていなければ、全部が上から順に並ぶ静かな形。 */

:root {
  --night: #0e1a2e;
  --night-2: #16263f;
  --cream: #f6f0e4;
  --gold: #e2bd6b;
  --text: #f3ecdf;
  --text-sub: #c9c2b4;
  --dark: #1d2633;
  --ai: #27506A;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  /* 箱の色（「三つの色」の節で書き換える） */
  --out: #1c2d4f;
  --ink: #e2bd6b;
  --in: #f1e7d2;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 16px/1.9 var(--sans);
  letter-spacing: .04em;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: .1em; line-height: 1.5; }
p { margin: 0; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.eyebrow { font-family: var(--serif); font-size: 12px; letter-spacing: .3em; color: var(--gold); margin-bottom: 14px; }

/* ── 3Dの箱 ──────────────────────────────── */
.scene { --w: clamp(150px, 34vmin, 330px); perspective: 1300px; display: grid; place-items: center; position: relative; }
.box {
  /* 🔴 動かす変数の初期値は CSS に置く（2026-10-24 点検で発見: 計り直しで JS の値が消え、0 と読まれて箱が壊れた） */
  --rx: 58deg; --ry: 0deg; --rz: -28deg; --rz2: 0deg;
  --lx: 0px; --ly: 0px; --lz: 0px; --lrx: 0deg; --lry: 0deg; --lrz: 0deg; --lo: 1;
  --ff1: 1; --ff2: 1; --ff3: 1; --ff4: 1; --lf1: 1; --lf2: 1; --lf3: 1; --lf4: 1;
  --fl: 0; --tox: 0px; --toy: 0px; --sho: 1;
  --h: calc(var(--w) * .36);
  --lh: calc(var(--h) * .42);
  width: var(--w); height: var(--w);
  position: relative;
  transform-style: preserve-3d;
}
.box__tilt, .box__spin, .box__body, .box__lid { position: absolute; inset: 0; transform-style: preserve-3d; }
.box__tilt {
  transform-origin: calc(50% + var(--tox, 0px)) calc(50% + var(--toy, 0px)) calc(var(--h) / 2);
  transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 58deg));
}
.box__spin {
  transform-origin: 50% 50% calc(var(--h) / 2);
  transform: rotateZ(calc(var(--rz, -28deg) + var(--rz2, 0deg)));
}
.box__shadow {
  position: absolute; left: -30%; right: -30%; top: 70%; height: 60%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent);
  filter: blur(6px);
  transform: translateZ(-1px);
  opacity: var(--sho, 1);
}
.pf { position: absolute; transform-style: preserve-3d; }
.pf > i { position: absolute; inset: -.5px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }   /* 少し重ねて、角の明るい線を消す */
.pf > i::after {   /* 展開図のときの折り線 */
  content: ""; position: absolute; inset: 0;
  border: 1px dashed rgba(120, 140, 170, .9);
  opacity: var(--fl, 0);
}
/* 外側の柄＝地の色に星。内側の柄＝生成りに星座の線 */
.box .out {
  background:
    radial-gradient(circle at 30% 40%, var(--ink) 0 1.3px, transparent 1.8px) 0 0 / 34px 34px,
    radial-gradient(circle at 70% 75%, var(--ink) 0 .8px, transparent 1.3px) 0 0 / 21px 21px,
    radial-gradient(circle at 50% 20%, color-mix(in srgb, var(--ink) 55%, transparent) 0 .7px, transparent 1.1px) 7px 11px / 15px 15px,
    var(--out);
}
.box .in {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%231c2d4f' stroke-opacity='.32' stroke-width='1'%3E%3Cpath d='M12 30 L38 18 L60 40 L92 26 M60 40 L52 74 L84 96 M20 92 L52 74'/%3E%3C/g%3E%3Cg fill='%231c2d4f' fill-opacity='.5'%3E%3Ccircle cx='12' cy='30' r='2'/%3E%3Ccircle cx='38' cy='18' r='2.6'/%3E%3Ccircle cx='60' cy='40' r='2.2'/%3E%3Ccircle cx='92' cy='26' r='2.8'/%3E%3Ccircle cx='52' cy='74' r='2'/%3E%3Ccircle cx='84' cy='96' r='2.4'/%3E%3Ccircle cx='20' cy='92' r='1.8'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 120px 120px,
    var(--in);
}
/* 本体: 底と4つの側面。側面は底のふちを軸に立てる（--ff* が 1＝立つ／0＝展開図） */
.box__body .pf--base { inset: 0; }
.box__body .pf--front { left: 0; top: 100%; width: 100%; height: var(--h); transform-origin: 50% 0; transform: rotateX(calc(var(--ff1, 1) * 90deg)); }
.box__body .pf--back  { left: 0; bottom: 100%; width: 100%; height: var(--h); transform-origin: 50% 100%; transform: rotateX(calc(var(--ff2, 1) * -90deg)); }
.box__body .pf--left  { top: 0; right: 100%; width: var(--h); height: 100%; transform-origin: 100% 50%; transform: rotateY(calc(var(--ff3, 1) * 90deg)); }
.box__body .pf--right { top: 0; left: 100%; width: var(--h); height: 100%; transform-origin: 0 50%; transform: rotateY(calc(var(--ff4, 1) * -90deg)); }
.box__body .in  { transform: translateZ(.5px); }
.box__body .out { transform: rotateY(180deg) translateZ(.5px); }
.box__body .pf--front .out { transform: rotateX(180deg) translateZ(.5px); }   /* 正面の文字が逆さにならないように */
.box__body .pf--front .fp { opacity: var(--ff1); }   /* 展開図にもどったら消す（裏返したときに鏡文字に見えるため） */
/* ふた: 天面と4つのふち（ふたは +Z 側が外） */
.box__lid {
  transform: translate3d(var(--lx, 0px), var(--ly, 0px), calc(var(--h) + 1px + var(--lz, 0px)))
             rotateX(var(--lrx, 0deg)) rotateY(var(--lry, 0deg)) rotateZ(var(--lrz, 0deg));
  opacity: var(--lo, 1);
}
.box__lid .pf--top { inset: -2px; }
.box__lid .pf--lf { left: -2px; right: -2px; top: calc(100% + 2px); height: var(--lh); transform-origin: 50% 0; transform: rotateX(calc(var(--lf1, 1) * -90deg)); }
.box__lid .pf--lb { left: -2px; right: -2px; bottom: calc(100% + 2px); height: var(--lh); transform-origin: 50% 100%; transform: rotateX(calc(var(--lf2, 1) * 90deg)); }
.box__lid .pf--ll { top: -2px; bottom: -2px; right: calc(100% + 2px); width: var(--lh); transform-origin: 100% 50%; transform: rotateY(calc(var(--lf3, 1) * -90deg)); }
.box__lid .pf--lr { top: -2px; bottom: -2px; left: calc(100% + 2px); width: var(--lh); transform-origin: 0 50%; transform: rotateY(calc(var(--lf4, 1) * 90deg)); }
.box__lid .out { transform: translateZ(.5px); }
.box__lid .in  { transform: rotateY(180deg) translateZ(.5px); }
/* 側面の明るさの差で立体に見せる */
.box__body .pf--left .out, .box__lid .pf--ll .out { filter: brightness(.78); }
.box__body .pf--right .out, .box__lid .pf--lr .out { filter: brightness(1.08); }
.box__body .pf--back .in { filter: brightness(.9); }
/* ふたの柄（文字は画像にせず、ここで組む） */
.lp {
  position: absolute; inset: 9%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--w) * .03);
  border: 1px solid color-mix(in srgb, var(--ink) 70%, transparent);
  border-radius: 50%;
  color: var(--ink); text-align: center;
}
.lp::before { content: ""; position: absolute; inset: 5%; border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 50%; }
.lp__en { font-family: var(--serif); font-size: calc(var(--w) * .038); letter-spacing: .5em; padding-left: .5em; }
.lp__mark { width: 34%; fill: currentColor; stroke: currentColor; stroke-width: 1; }
.lp__mark path { fill: none; opacity: .7; }
.lp__ja { font-family: var(--serif); font-weight: 600; font-size: calc(var(--w) * .12); letter-spacing: .14em; padding-left: .14em; line-height: 1.2; }
.lp__shop { font-family: var(--serif); font-size: calc(var(--w) * .042); letter-spacing: .3em; padding-left: .3em; }
.fp {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-size: calc(var(--w) * .034); letter-spacing: .32em; white-space: nowrap;
  color: var(--ink);
}

/* ── 焼き菓子 ── */
.ck { display: block; width: var(--s); height: var(--s); }
.ck__svg { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); -webkit-user-drag: none; user-select: none; }
.spark { position: absolute; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; pointer-events: none; color: #ffe7a8; }
.spark svg { display: block; width: 100%; height: 100%; fill: currentColor; }

/* ── 1. 最初の画面 ─────────────────────────── */
.fv {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: 80px 16px 96px;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% 115%, #2c4c78 0%, rgba(44, 76, 120, 0) 62%),
    radial-gradient(60% 40% at 80% 10%, rgba(80, 110, 170, .25), transparent 70%),
    linear-gradient(#0a1424, #13233c);
}
.fv__grid {
  width: min(1180px, 100%);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 4vw;
}
.fv__lead { font-family: var(--serif); font-size: clamp(15px, 1.5vw, 19px); line-height: 2.3; letter-spacing: .16em; justify-self: end; }
.scene--fv { width: calc(var(--w) * 1.9); height: calc(var(--w) * 1.75); --w: clamp(150px, 30vmin, 320px); }
.fv__title {
  justify-self: start;
  writing-mode: vertical-rl;
  font-size: clamp(56px, 7.4vw, 112px);
  letter-spacing: .22em; line-height: 1;
  color: #fbf4e4;
  text-shadow: 0 0 40px rgba(255, 214, 140, .25);
}
.fv__title .ch { display: inline-block; }
.fv__tap {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  background: none; border: 0; padding: 8px 14px; cursor: pointer;
  font-size: 12px; letter-spacing: .2em; color: var(--text-sub);
  border-bottom: 1px solid transparent;
  transition: color .3s, border-color .3s;
}
.fv__tap:hover { color: var(--gold); border-bottom-color: var(--gold); }
html:not(.mo) .fv__tap { display: none; }
.fv__cue {
  position: absolute; left: 0; right: 0; bottom: 22px;   /* 🔴 GSAP が動かす部品は transform/translate で真ん中に寄せない（上書きされて消える） */
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .3em; color: var(--text-sub);
}
.fv__cue i { display: block; width: 1px; height: 44px; background: linear-gradient(var(--gold), transparent); animation: cue 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ── 2. ふたが開く ─────────────────────────── */
.open { position: relative; background: radial-gradient(70% 60% at 50% 55%, #1f365c 0%, var(--night) 70%); }
.open__stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 40px; padding: 100px 16px; }
.scene--open { --w: clamp(150px, 30vmin, 300px); width: calc(var(--w) * 1.9); height: calc(var(--w) * 1.7); }
.glow, .burst, .sky { display: none; }
.fly { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; max-width: 640px; }
.ck--hero { --s: clamp(70px, 12vmin, 112px); }
.ck--extra { display: none; }
.names { display: none; }
.cap { font-family: var(--serif); text-align: center; }
.cap--1 { font-size: 15px; letter-spacing: .3em; color: var(--text-sub); }
.cap--2 { font-size: clamp(28px, 4.2vw, 52px); letter-spacing: .16em; }

.mo .open { height: 100vh; height: 100svh; overflow: hidden; }
.mo .open__stage { position: absolute; inset: 0; display: block; padding: 0; }
.mo .scene--open { position: absolute; left: 50%; top: 50%; margin: calc(var(--w) * -.85) 0 0 calc(var(--w) * -.95); }
.mo .glow {
  display: block; position: absolute; left: 50%; top: 50%;
  width: 90vmin; height: 90vmin; margin: -45vmin 0 0 -45vmin; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 236, 190, .95), rgba(255, 196, 110, .45) 38%, rgba(255, 170, 80, .12) 62%, transparent);
  mix-blend-mode: screen; opacity: 0; pointer-events: none;
}
.mo .burst { display: block; position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.mo .sky { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.shoot { display: none; }
.mo .shoot {
  display: block; position: absolute; left: 50%; top: 50%; width: 220px; height: 2px; margin: -1px 0 0 -110px; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 244, 210, .9) 80%, #fff);
  border-radius: 2px; box-shadow: 0 0 10px rgba(255, 236, 180, .9);
}
.sky path { fill: none; stroke: rgba(255, 226, 160, .7); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.mo .fly { display: block; position: absolute; left: 50%; top: 50%; width: 0; height: 0; max-width: none; }
.mo .ck { position: absolute; left: 0; top: 0; margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); opacity: 0; will-change: transform; }
.mo .ck--near { --s: clamp(70px, 12vmin, 112px); }
.ck--near { display: none; }
.mo .ck--near { display: block; }
.rays { display: none; }
.mo .rays {
  display: block; position: absolute; left: 50%; top: 50%; width: 150vmax; height: 150vmax; margin: -75vmax 0 0 -75vmax;
  background: repeating-conic-gradient(from 0deg, rgba(255, 232, 170, .0) 0deg 7deg, rgba(255, 232, 170, .28) 9deg 11deg, rgba(255, 232, 170, 0) 13deg 20deg);
  -webkit-mask: radial-gradient(closest-side, #000 8%, transparent 70%); mask: radial-gradient(closest-side, #000 8%, transparent 70%);
  mix-blend-mode: screen; opacity: 0; pointer-events: none;
}
.spark { opacity: 0; }
.mo .ck--extra { display: block; --s: calc(clamp(70px, 12vmin, 112px) * var(--k, .7)); }
.mo .names { display: block; position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.names span {
  position: absolute; left: 0; top: 0; white-space: nowrap; width: 12em; margin-left: -6em; text-align: center;
  font-family: var(--serif); font-size: clamp(11px, 1.2vw, 14px); letter-spacing: .14em; color: #fbf1d9;
  opacity: 0;
}
.mo .cap { position: absolute; left: 0; right: 0; padding: 0 16px; }
.mo .cap--1 { top: 16%; }
.mo .cap--2 { top: 0; bottom: 0; height: fit-content; margin: auto 0; opacity: 0; text-shadow: 0 2px 24px rgba(8, 16, 30, .8); }

/* ── 3. 六つの焼き菓子 ─────────────────────── */
.kinds { background: linear-gradient(#0e1a2e, #132540 50%, #0e1a2e); }
.kinds__track { display: flex; flex-direction: column; align-items: center; gap: 72px; padding: 110px 16px; }
.kinds__intro { max-width: 460px; }
.kinds__intro h2 { font-size: clamp(30px, 4vw, 50px); margin-bottom: 20px; }
.kinds__intro p:last-child { color: var(--text-sub); }
.kind { position: relative; display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 48px); align-items: center; width: min(100%, 640px); }
.kind__bg {   /* 後ろを逆向きに流れる大きな英字（文字は画像にしない） */
  position: absolute; left: -6%; top: 0; bottom: 0; height: fit-content; margin: auto 0; z-index: -1; pointer-events: none;
  font-family: var(--serif); font-weight: 600; font-size: clamp(90px, 17vw, 260px); line-height: 1; letter-spacing: .06em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(226, 189, 107, .22);
}
html:not(.mo) .kind__bg { display: none; }
.kinds { position: relative; isolation: isolate; }
.kind__ck {
  background: none; border: 0; padding: 0; cursor: pointer; border-radius: 50%;
  width: clamp(120px, 24vmin, 260px); aspect-ratio: 1;
  position: relative; margin-bottom: 30px;
}
.kind__rot, .kind__inner { display: block; width: 100%; height: 100%; }
.kind__ck::after {   /* 触れると、下に光がにじむ（跳ねさせない） */
  content: ""; position: absolute; inset: 8% 8% -6%; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 214, 140, .5), transparent);
  opacity: 0; transition: opacity .4s;
}
.kind__ck:hover::after, .kind__ck:focus-visible::after { opacity: 1; }
.kind__hint {
  position: absolute; left: 50%; top: 100%; translate: -50% 8px; white-space: nowrap;
  font-size: 12px; letter-spacing: .16em; color: var(--gold);
}
html:not(.mo) .kind__hint { display: none; }
.kind__no { font-family: var(--serif); font-size: 12px; letter-spacing: .24em; color: var(--gold); margin-bottom: 8px; }
.kind h3 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 12px; }
.kind__body p:last-child { color: var(--text-sub); font-size: 15px; }
.crumb { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 40%; pointer-events: none; }

.mo .kinds { height: 100vh; height: 100svh; overflow: hidden; }
.mo .kinds__track { flex-direction: row; align-items: center; gap: 0; height: 100%; width: max-content; padding: 0 0 0 max(16px, 8vw); }
.mo .kinds__intro { width: min(80vw, 440px); flex: none; margin-right: 10vw; }
.mo .kind { width: min(86vw, 640px); flex: none; margin-right: 8vw; }
.mo .kind:last-child { margin-right: max(16px, 10vw); }
.mo .kind:nth-child(odd) { margin-top: 18vh; }
.mo .kind:nth-child(even) { margin-bottom: 14vh; }

/* ── 4. 展開図 ─────────────────────────────── */
.unfold { position: relative; background: radial-gradient(80% 70% at 50% 50%, #1a2e4e, var(--night) 75%); }
.unfold__stage { display: flex; flex-direction: column; align-items: center; gap: 40px; padding: 100px 16px; }
.scene--unfold { --w: clamp(130px, 24vmin, 260px); width: calc(var(--w) * 1.9); height: calc(var(--w) * 1.7); }
.ucap { text-align: center; font-family: var(--serif); display: grid; gap: 18px; }
.ucap h2 { font-size: clamp(26px, 3.6vw, 44px); }
.ucap p { font-size: clamp(17px, 1.8vw, 22px); letter-spacing: .14em; color: var(--text-sub); }

.mo .unfold { height: 100vh; height: 100svh; overflow: hidden; }
.mo .unfold__stage { position: absolute; inset: 0; display: block; padding: 0; }
.mo .scene--unfold { position: absolute; left: 50%; top: 58%; margin: calc(var(--w) * -.85) 0 0 calc(var(--w) * -.95); }
.mo .ucap { position: absolute; left: 0; right: 0; top: 12%; display: block; padding: 0 16px; }
.mo .ucap > * { position: absolute; left: 0; right: 0; opacity: 0; }
.mo .ucap .ucap__1 { opacity: 1; }

/* ── 5. 三つの色 ───────────────────────────── */
.colors {
  position: relative; overflow: hidden;
  background: linear-gradient(var(--night), transparent 22%), radial-gradient(70% 70% at 30% 50%, color-mix(in srgb, var(--bg) 70%, #3a5680), var(--bg));
}
.colors__ink { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.colors__grid { position: relative; z-index: 1; }
.colors__grid {
  width: min(1100px, 100%); margin: 0 auto; padding: 110px 16px;
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 4vw;
  min-height: 100vh; min-height: 100svh;
}
.scene--colors { --w: clamp(150px, 30vmin, 300px); width: calc(var(--w) * 1.9); height: calc(var(--w) * 1.75); justify-self: center; }
.cburst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.colors__body h2 { font-size: clamp(28px, 3.6vw, 46px); margin-bottom: 28px; }
.swatches { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.swatch {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px 10px 12px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(243, 236, 223, .25);
  font-family: var(--serif); font-size: 17px; letter-spacing: .2em;
  transition: background-color .35s, border-color .35s;
}
.swatch i { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--d) 0 2px, transparent 2.5px), var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.swatch:hover { background: rgba(255, 255, 255, .14); }
.swatch[aria-pressed="true"] { background: rgba(255, 255, 255, .18); border-color: var(--gold); }
.colors__note { color: var(--text-sub); min-height: 3.8em; }

/* ── 6. 文字が散って、集まる ──────────────── */
.words {
  display: grid; place-content: center; text-align: center; gap: 22px;
  padding: 110px 16px; min-height: 70vh;
  background: linear-gradient(var(--night), #1a2c48);
}
.words__text { font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 8.6vw, 128px); letter-spacing: .12em; line-height: 1.3; color: #fbf4e4; }
.words__text .ch { display: inline-block; }
.words__sub { font-family: var(--serif); font-size: clamp(15px, 1.6vw, 20px); letter-spacing: .24em; color: var(--text-sub); }
.mo .words { height: 100vh; height: 100svh; min-height: 0; overflow: hidden; }

/* ── 7. 売っている時期と場所 ───────────────── */
.info { position: relative; overflow-x: clip; background: var(--cream); color: var(--dark); padding: 40px 16px 110px; }
.info__ridge { position: absolute; left: 0; right: 0; bottom: 100%; width: 100%; height: 60px; fill: var(--cream); display: block; }
.info__in { width: min(760px, 100%); margin: 0 auto; }
.info h2 { font-size: clamp(30px, 4vw, 46px); text-align: center; margin-bottom: 40px; color: #1c2d4f; }
.tray { position: relative; width: min(600px, 100%); margin: 0 auto 14px; padding: clamp(10px, 2.4vw, 18px); border-radius: 6px; background: var(--out); box-shadow: 0 24px 40px -20px rgba(28, 45, 79, .55); }
.tray__in {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(5px, 1.4vw, 10px);
  padding: clamp(8px, 2vw, 14px); border-radius: 3px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%231c2d4f' stroke-opacity='.2'%3E%3Cpath d='M12 30 L38 18 L60 40 L92 26 M60 40 L52 74 L84 96 M20 92 L52 74'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 120px 120px,
    var(--in);
}
.tray__cell { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #fffaf0, #e8dcc4 70%); box-shadow: inset 0 3px 6px rgba(80, 60, 30, .25); }
.tray__ck { display: block; width: 84%; height: 84%; }
.tray__ck .ck__svg { filter: drop-shadow(0 3px 4px rgba(60, 40, 20, .3)); }
.tray__cap { text-align: center; font-family: var(--serif); font-size: 14px; letter-spacing: .14em; color: #6a6255; margin-bottom: 40px; }
.info__dl { margin: 0 0 28px; display: grid; gap: 0; }
.info__dl div { display: grid; grid-template-columns: 10em 1fr; gap: 16px; padding: 18px 4px; border-bottom: 1px solid #ddd3c0; }
.info__dl dt { font-family: var(--serif); color: #6a6255; }
.info__dl dd { margin: 0; word-break: keep-all; overflow-wrap: anywhere; }
.info__fic { font-size: 13px; color: #6a6255; }

/* ── 雪 ── */
.snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }
html:not(.mo) .snow { display: none; }

/* ── 画面の幅ごと ─────────────────────────── */
@media (max-width: 860px) {
  .fv__grid { grid-template-columns: 1fr; justify-items: center; gap: 18px; text-align: center; }
  .fv__title { writing-mode: horizontal-tb; justify-self: center; order: -1; font-size: clamp(44px, 13vw, 76px); letter-spacing: .18em; padding-left: .18em; }
  .fv__lead { justify-self: center; order: 2; line-height: 2; }
  .fv__lead br:nth-of-type(2) { display: none; }
  .scene--fv { --w: clamp(140px, 44vw, 260px); }
  .colors__grid { grid-template-columns: 1fr; text-align: center; padding-top: 90px; gap: 10px; }
  .swatches { justify-content: center; }
  .kind { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .mo .kind { width: 82vw; margin-right: 12vw; }
  .names span { font-size: 11px; letter-spacing: .04em; }
}
@media (max-width: 520px) {
  .info__dl div { grid-template-columns: 1fr; gap: 2px; }
  .scene--open { --w: clamp(130px, 42vw, 220px); }
  .scene--colors { --w: clamp(130px, 46vw, 220px); }
}

/* 最初の画面の箱は、JS が一枚の紙から組み上げる（組む前の閉じた箱を見せない） */
.mo .box--fv { opacity: 0; }
@media (max-width: 699px) {
  .mo .cap--2 { top: 20%; }
}
