/* Chocolaterie Nuit クリスマスケーキ予約LP（画像LP）
   見た目の正解は images/*.webp のデザインカンプ。HTMLで作るのは、押せるボタン・PCの左右の帯・スマホの追従ボタンだけ。
   ボタンは mato-button-depth の決まり：ピル型／光は上から左→右／上3分の1の光沢／上端の内側の明部／右下の内側の照り返し／影は黒やグレーでなく濃い緑。 */

:root {
  --k0: #0A0A0B; --k1: #131315; --k2: #1D1C1F;
  --ivory: #EFE6D8; --sub: #BFB2A0; --gold: #B8955A;
  --line: #06C755; --line-hi: #22D86C; --line-lo: #04A847;
  --shadow-rgb: 3, 40, 20;           /* 影の色：LINEの緑を濃く暗くした色 */
  --col: 560px;                      /* PCで最も見やすい画像の幅 */
  --mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--k0); -webkit-text-size-adjust: 100%; }
body {
  background:
    radial-gradient(ellipse 70% 60% at 50% 20%, var(--k2), transparent 70%),
    var(--k0);
  color: var(--ivory);
  font-family: var(--gothic);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 配置 ---------- */
.page { display: grid; grid-template-columns: minmax(0, 1fr); }
.lp { width: 100%; max-width: var(--col); margin: 0 auto; background: var(--k0); box-shadow: 0 0 80px rgba(0, 0, 0, .55); }
.sec { position: relative; container-type: inline-size; }
.sec img { aspect-ratio: 1024 / 1792; }
/* 継ぎ目：2枚目以降は「雪の稜線より上」が透明な画像。前のセクションの下端に --ov だけ重ね、雪が積もったようにつなぐ（tools/snow_join.py・qa/join.json） */
.sec--join { margin-top: calc(-1 * var(--ov, 0%)); }
.foot { padding: 28px 20px calc(96px + env(safe-area-inset-bottom)); text-align: center; color: var(--sub); font-size: 12px; letter-spacing: .08em; }

/* ---------- ボタン（mato-button-depth 8-1） ---------- */
.btn-line {
  --gloss-alpha: .26;
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: .6em;
  border-radius: 9999px;
  color: #fff;
  font-family: var(--gothic);
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(var(--shadow-rgb), .35);
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, var(--gloss-alpha)), rgba(255, 255, 255, 0) 33%),
    linear-gradient(100deg, var(--line-hi), var(--line) 45%, var(--line-lo));
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, .7),          /* 明部：上端の内側 */
    inset -2px -4px 8px rgba(255, 255, 255, .28),     /* 反射光：右下の内側 */
    inset 0 -2px 0 rgba(var(--shadow-rgb), .25),      /* 底面の厚み */
    0 1px 2px rgba(var(--shadow-rgb), .30),
    0 10px 26px rgba(var(--shadow-rgb), .55);         /* 外側のやわらかい影（濃い緑） */
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-line__arrow { font-family: var(--serif); font-size: 1.15em; line-height: 1; transform: translateY(-.04em); }
.btn-line:hover { transform: translateY(-1px); filter: brightness(1.03);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.75), inset -2px -4px 8px rgba(255,255,255,.3), inset 0 -2px 0 rgba(var(--shadow-rgb),.25), 0 2px 3px rgba(var(--shadow-rgb),.32), 0 14px 32px rgba(var(--shadow-rgb),.6); }
.btn-line:active { transform: translateY(1px); }
.btn-line:focus-visible { outline: 2px solid var(--ivory); outline-offset: 4px; }

/* 画像の上に重ねるボタン（焼き込みのボタンを消した場所に置く） */
.btn-line--on-image {
  position: absolute;
  left: 6%; width: 88%;
  top: var(--top); height: var(--height);
  min-height: 44px;
  font-size: clamp(15px, 4.15cqw, 26px);
}

/* スマホの追従ボタン */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(10, 10, 11, .92) 55%, rgba(10, 10, 11, 0));
  transform: translateY(110%); transition: transform .28s ease;
  pointer-events: none;
}
.sticky.is-on { transform: translateY(0); pointer-events: auto; }
.btn-line--sticky { max-width: calc(var(--col) - 32px); margin: 0 auto; min-height: 52px; font-size: 16px; }

/* デモのお知らせ */
.toast {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 30;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  max-width: min(90vw, 420px); padding: 10px 16px; border-radius: 10px;
  background: rgba(29, 28, 31, .96); border: 1px solid rgba(184, 149, 90, .5);
  color: var(--ivory); font-size: 13px; line-height: 1.6; text-align: center;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- PC：左右の帯 ---------- */
.side { display: none; }
@media (min-width: 1100px) {
  .page { grid-template-columns: minmax(0, 1fr) var(--col) minmax(0, 1fr); }
  .lp { grid-column: 2; grid-row: 1; }
  .side {
    display: flex; flex-direction: column; justify-content: center;
    position: sticky; top: 0; height: 100vh; grid-row: 1; padding: 0 48px;
  }
  .side--left { grid-column: 1; align-items: flex-end; text-align: right; }
  .side--right { grid-column: 3; align-items: flex-start; }
  .side__brand { font-family: var(--serif); font-size: 26px; letter-spacing: .14em; }
  .side__en { font-family: var(--serif); font-size: 16px; letter-spacing: .24em; color: var(--sub); margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--gold); }
  .side__copy { font-family: var(--mincho); font-weight: 500; font-size: 34px; line-height: 1.5; letter-spacing: .04em; margin-top: 36px; }
  .side__price { font-size: 15px; color: var(--sub); margin-top: 26px; line-height: 1.9; }
  .side__num { font-family: var(--serif); font-weight: 500; font-size: 44px; font-variant-numeric: lining-nums; color: var(--ivory); letter-spacing: .02em; margin-right: .1em; }
  .side__lead { font-family: var(--mincho); font-weight: 500; font-size: 20px; line-height: 1.7; margin-bottom: 20px; }
  .side--right .btn-line { width: 248px; min-height: 76px; padding: 12px 22px; font-size: 16px; }
  .sticky { display: none; }
  .toast { bottom: 32px; }
}
@media (min-width: 1100px) and (max-width: 1279px) {
  .side { padding: 0 28px; }
  .side__copy { font-size: 28px; }
  .side--right .btn-line { width: 216px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-line, .sticky, .toast { transition: none; }
}
