/* 生成物: tools/build_shaten_lp.py が experiments/hero-lab/shaten-lp4.html から作る。手で直さない */
  /* 今の写展ページの中身をすべて持ち込み、試作のデザインで組み直した版（展示室版）。
     見せ場は最初の画面だけ（国立新美術館の展示室を3Dで歩き、突き当たりに SHATEN）。以降は明るい紙の上で静かに読ませる */
  :root {
    --ink: #131214;
    --halo: #ff6a2b;
    --red: #c42f00;
    --silver: #f4efe6;
    --paper: #f6f3ec;
    --paper-2: #ece7de;
    --white: #ffffff;
    --text: #1d1b1c;
    --sub: #5c564f;
    --line: rgba(29,27,28,.14);
    --display: "Anton", "Impact", "Arial Narrow", sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, "Consolas", monospace;
    --jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body { background: var(--paper); color: var(--text); font-family: var(--jp); -webkit-font-smoothing: antialiased; }
  a { color: inherit; }
  a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
  .wrap { width: min(1120px, 100%); margin: 0 auto; }
  section { padding-inline: 16px; scroll-margin-top: calc(var(--top) + var(--hh)); }
  .eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--red); }
  .h2 { margin-top: 10px; font-size: clamp(28px, 4.4vw, 50px); font-weight: 900; line-height: 1.35; text-wrap: balance; }
  .lead { margin-top: 16px; font-size: 16px; line-height: 2; color: var(--sub); max-width: 38em; }
  .note-s { margin-top: 12px; font-size: 13px; line-height: 1.8; color: var(--sub); }

  /* サイト共通のヘッダー（photogenic.co.jp のテーマのヘッダーに合わせる：白・高さ80px・左にロゴ・右にメニュー。スマホは60px・メニューは開閉） */
  :root { --hh: 80px; --top: 0px; }
  .site-head { position: sticky; top: var(--top); z-index: 50; display: flex; align-items: center; justify-content: space-between; height: var(--hh); padding: 0 24px 0 40px; background: #fff; border-bottom: 1px solid #ddd; font-family: Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; }
  .site-logo { display: block; flex: none; line-height: 0; }
  .site-logo img { display: block; width: auto; height: 59px; }
  .site-nav .menu { list-style: none; display: flex; }
  .site-nav .menu > li { position: relative; }
  .site-nav .menu > li > a { display: block; padding: 0 20px; line-height: var(--hh); font-size: 18px; font-weight: 500; color: #000; text-decoration: none; white-space: nowrap; }
  .site-nav .menu > li > a:hover, .site-nav .current-menu-item > a { color: #ff4000; }
  .site-nav .sub-menu { list-style: none; position: absolute; top: 100%; left: 0; width: 250px; background: #000; opacity: 0; visibility: hidden; transition: opacity .2s; }
  .site-nav .menu > li:hover > .sub-menu, .site-nav .menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; }
  .site-nav .sub-menu a { display: block; padding: 14px 20px; color: #fff; font-size: 14px; text-decoration: none; }
  .site-nav .sub-menu a:hover { background: #222; }
  .site-menu-btn { display: none; }
  @media (max-width: 1100px) {
    :root { --hh: 60px; }
    .site-head { padding: 0 0 0 16px; }
    .site-logo img { height: 40px; }
    .site-menu-btn { display: grid; place-content: center; gap: 6px; width: 60px; height: 60px; border: 0; background: none; cursor: pointer; }
    .site-menu-btn span { display: block; width: 24px; height: 2px; background: #000; transition: transform .2s, opacity .2s; }
    .site-head.open .site-menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .site-head.open .site-menu-btn span:nth-child(2) { opacity: 0; }
    .site-head.open .site-menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .site-nav { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100svh - var(--hh) - var(--top)); overflow-y: auto; background: #000; display: none; }
    .site-head.open .site-nav { display: block; }
    .site-nav .menu { display: block; }
    .site-nav .menu > li > a { padding: 0 24px; line-height: 56px; font-size: 16px; color: #fff; border-bottom: 1px solid #222; }
    .site-nav .sub-menu { position: static; width: auto; opacity: 1; visibility: visible; background: #111; }
    .site-nav .sub-menu a { padding: 14px 24px 14px 40px; border-bottom: 1px solid #222; }
  }
  /* ログイン中の管理バーの分 */
  .admin-bar { --top: 32px; }
  @media (max-width: 782px) { .admin-bar { --top: 46px; } }
  @media (max-width: 600px) { .admin-bar { --top: 0px; } }   /* 600px 以下では WordPress の管理バーは固定されない */
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: var(--halo); color: var(--ink); font: 900 14px var(--jp); text-decoration: none; white-space: nowrap; border: 0; cursor: pointer; }
  .btn.big { padding: 18px 34px; font-size: 17px; }

  /* ===== 最初の画面：国立新美術館の展示室を3Dで歩く ===== */
  .hero { position: relative; height: calc(100vh - var(--hh) - var(--top)); height: calc(100svh - var(--hh) - var(--top)); min-height: 540px; padding: 0; overflow: hidden; background: #ebeae6; color: var(--text); touch-action: pan-y; cursor: grab; }
  .hero:active { cursor: grabbing; }
  .hero canvas.room { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
  .hero-hint { position: absolute; right: 16px; top: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--sub); background: rgba(235,234,230,.8); padding: 5px 9px; border-radius: 3px; pointer-events: none; }
  .hero-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 64px 16px calc(24px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, rgba(235,234,230,.97) 80%, rgba(235,234,230,0)); pointer-events: none; }
  .hero-info > .wrap { display: grid; gap: 12px; }
  .hero-eye { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 13px; font-weight: 900; letter-spacing: .12em; color: var(--red); }
  .hero-eye b { font-weight: 900; color: var(--text); }
  .hero-eye small { font-size: 11px; font-weight: 500; letter-spacing: .04em; color: var(--sub); }
  .hero h1 { font-size: clamp(30px, 5.4vw, 66px); font-weight: 900; line-height: 1.25; letter-spacing: .01em; text-wrap: balance; }
  .hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
  .hero-tags span { padding: 5px 12px; border: 2px solid var(--text); border-radius: 999px; font-weight: 900; font-size: 13px; }
  .hero-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; padding-top: 14px; border-top: 1px solid var(--line); }
  .hero-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
  .hero-meta li { white-space: nowrap; }
  .hero-meta li span { color: var(--sub); font-weight: 500; margin-right: 6px; }
  .hero-meta li b { font-family: var(--display); font-weight: 400; font-size: 17px; letter-spacing: .03em; }
  .hero-row .btn { pointer-events: auto; }
  .hero-err { position: absolute; inset: 0; display: grid; place-content: center; color: var(--sub); font-size: 13px; }
  /* 絞り：最初は羽根が画面をふさぎ、スクロールに合わせて回りながら開いて展示室が見えてくる */
  .hero-stage { position: relative; height: 230vh; height: 230svh; }
  .hero-stage .hero { position: sticky; top: calc(var(--top) + var(--hh)); }
  .hero canvas.blades { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: 3; }
  .hero .fstop { position: absolute; right: 16px; top: 14px; z-index: 4; font-family: var(--mono); font-size: 13px; letter-spacing: .1em; color: #cfc8bd; font-variant-numeric: tabular-nums; pointer-events: none; }
  .hero .fstop b { font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: .02em; color: var(--silver); margin-left: 4px; }
  .hero .scrollcue { position: absolute; left: 0; right: 0; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); z-index: 4; text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: .24em; color: #cfc8bd; pointer-events: none; }
  .hero .scrollcue b { display: block; margin-bottom: 10px; font-family: var(--jp); font-size: 15px; font-weight: 900; letter-spacing: .12em; color: var(--silver); }
  .hero-info { z-index: 2; }
  @media (max-width: 720px) { .hero .scrollcue { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); } }   /* 下の「締切まで」の帯に隠れないように */
  @media (prefers-reduced-motion: reduce) {
    .hero-stage { height: auto; }
    .hero-stage .hero { position: relative; }
    .hero canvas.blades, .hero .fstop, .hero .scrollcue { display: none; }
  }
  @media (max-width: 720px) {
    .hero-info { padding-top: 48px; }
    .hero-meta { font-size: 12px; gap: 4px 16px; }
    .hero-row .btn { display: none; }
  }
  /* ===== 現在の出展申込（最初の画面のすぐ下） ===== */
  .tally { padding-block: 44px 48px; background: var(--ink); color: var(--silver); }
  .tally-grid { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 20px 56px; align-items: end; }
  .tally .eyebrow { color: var(--halo); }
  .tally-num { margin-top: 6px; display: flex; align-items: baseline; gap: 10px; font-weight: 900; font-size: 18px; white-space: nowrap; }
  .tally-num b { font-family: var(--display); font-weight: 400; font-size: clamp(64px, 9vw, 112px); line-height: .95; color: var(--halo); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
  .tally-asof { margin-top: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: #a39c92; }
  .tally-bar { position: relative; height: 10px; border-radius: 999px; background: rgba(244,239,230,.14); }
  .tally-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; background: var(--halo); transition: width 1.4s cubic-bezier(.2,.7,.2,1); }
  .tally-mark { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--silver); opacity: .55; }
  .tally-scale { position: relative; height: 18px; margin-top: 10px; font-family: var(--mono); font-size: 11px; color: #a39c92; font-variant-numeric: tabular-nums; }
  .tally-scale span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
  .tally-scale span:first-child { transform: none; }
  .tally-scale span:last-child { transform: translateX(-100%); }
  .tally-msg { margin-bottom: 14px; font-size: 15px; line-height: 1.8; font-weight: 700; }
  .tally-msg em { font-style: normal; color: var(--halo); }
  @media (max-width: 720px) {
    .tally { padding-block: 36px 40px; }
    .tally-grid { grid-template-columns: 1fr; gap: 18px; }
  }
  @media (prefers-reduced-motion: reduce) { .tally-fill { transition: none; } }

  /* ===== はじめに ===== */
  .intro { padding-block: 110px 90px; }
  .intro-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .intro .msg { font-size: clamp(20px, 2.4vw, 26px); font-weight: 900; line-height: 1.9; }
  .intro .body { margin-top: 18px; font-size: 16px; line-height: 2.05; color: var(--sub); }
  .points { display: grid; gap: 12px; }
  .point { background: var(--white); border-radius: 4px; padding: 22px 22px 20px; }
  .point b { display: block; font-size: 19px; font-weight: 900; }
  .point span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.8; color: var(--sub); }
  .point.dark { background: var(--ink); color: var(--silver); }
  .point.dark span { color: #cfc8bd; }
  .point.dark b em { font-style: normal; font-family: var(--display); font-weight: 400; font-size: 30px; letter-spacing: .03em; color: var(--halo); margin-left: 6px; }

  /* ===== 前回の写展（全幅の写真） ===== */
  .past { padding: 0; background: var(--ink); }
  .past figure { position: relative; }
  .past img { display: block; width: 100%; height: min(86svh, 64vw); min-height: 420px; object-fit: cover; max-width: 100%; }
  .past figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 120px 16px 36px; background: linear-gradient(180deg, rgba(19,18,20,0), rgba(19,18,20,.88)); color: var(--silver); }
  .past figcaption > * { width: min(1120px, 100%); margin-inline: auto; }
  .past .eyebrow { color: var(--halo); }
  .past h2 { margin-top: 8px; font-size: clamp(24px, 3.6vw, 42px); font-weight: 900; line-height: 1.4; text-wrap: balance; }
  .past p { margin-top: 8px; font-size: 15px; line-height: 1.8; color: #e3dbcf; }

  /* 写真の共通 */
  .craft figure, .attend-grid figure { margin: 0; }
  .craft img, .attend-grid img { display: block; width: 100%; height: 100%; object-fit: cover; max-width: 100%; border-radius: 4px; }
  .craft figcaption, .attend-grid figcaption { margin-top: 8px; font-size: 13px; color: var(--sub); }
  .craft { margin-top: 36px; max-width: 760px; }
  .craft .ph-big img { aspect-ratio: 3 / 2; height: auto; }
  @media (max-width: 720px) {
    .past img { height: 72svh; }
  }

  .past-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding-top: 4px; background: var(--ink); }
  .past-strip img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; max-width: 100%; }

  /* 美術館の写真：大小をつけたモザイク */
  /* 美術館の写真：トリミングしない。1段ごとに高さをそろえ、写真の縦横比（--a）に比例した幅で横いっぱいに並べる */
  .mosaic { margin-top: 36px; display: grid; gap: 18px; }
  .m-row { display: flex; gap: 12px; }
  .m-row figure { margin: 0; flex: var(--a) 1 0; min-width: 0; }
  .mosaic img { display: block; width: 100%; height: auto; max-width: 100%; }
  .mosaic figcaption { margin-top: 6px; font-size: 12px; color: #a39c92; }

  .caps { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 160px)) minmax(0, 1fr); gap: 16px; align-items: end; }
  .caps figure { margin: 0; }
  .caps img { display: block; width: 100%; height: auto; max-width: 100%; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
  .caps p { font-size: 14px; line-height: 1.8; color: var(--sub); }

  .entry-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: center; }
  .poster { margin: 0; }
  .poster img { display: block; width: 100%; height: auto; max-width: 420px; margin-left: auto; box-shadow: 0 30px 70px rgba(0,0,0,.5); }

  @media (max-width: 720px) {
    .past-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* スマホ: 2枚ずつ3段（全景と夜・正面と昼・館内と展示室）。組ごとに縦横比の合計（--p）で幅を割り、高さをそろえる */
    .mosaic { display: flex; flex-wrap: wrap; gap: 14px 8px; }
    .m-row { display: contents; }
    .m-row figure { order: var(--o); flex: 0 0 calc((100% - 9px) * var(--a) / var(--p)); }   /* 9px: 小数の丸めで2枚目が次の段に落ちないよう1px余らせる */
    .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .caps p { grid-column: 1 / -1; }
    .entry-grid { grid-template-columns: 1fr; }
    .poster img { margin: 0 auto; max-width: 320px; }
  }

  /* ===== GALLERY ===== */
  .gallery { padding-block: 100px; background: var(--ink); color: var(--silver); }
  .gallery .eyebrow { color: var(--halo); }
  .gallery .lead { color: #cfc8bd; }
  .photos { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .slot { aspect-ratio: 3 / 2; max-width: 100%; border: 1px dashed rgba(244,239,230,.3); display: grid; place-items: center; text-align: center; padding: 10px; font-size: 13px; line-height: 1.6; color: #a39c92; background: repeating-linear-gradient(135deg, rgba(244,239,230,.03) 0 10px, transparent 10px 20px); }
  .slot.wide { grid-column: span 2; aspect-ratio: auto; }
  .gallery .note-s { color: #a39c92; }

  /* ===== FORMAT ===== */
  .format { padding-block: 100px; }
  .size-grid { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .size-grid svg { width: 100%; height: auto; max-width: 100%; display: block; background: var(--white); border-radius: 4px; }
  .rows div { padding: 16px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 14px; }
  .rows dt { font-size: 13px; font-weight: 700; color: var(--sub); }
  .rows dd { font-size: 15px; font-weight: 700; line-height: 1.75; }
  .rows dd small { display: block; font-weight: 400; color: var(--sub); font-size: 13px; }
  .cap-slot { margin-top: 28px; }
  .cap-slot .slot { color: var(--sub); border-color: rgba(29,27,28,.25); background: repeating-linear-gradient(135deg, rgba(29,27,28,.03) 0 10px, transparent 10px 20px); aspect-ratio: 16 / 5; }

  /* ===== 開催概要・料金・その他 ===== */
  .details { padding-block: 100px; background: var(--paper-2); }
  .detail-grid { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
  .price h3, .others h3, .ban h3 { font-size: 18px; font-weight: 900; }
  .price-wrap { overflow-x: auto; margin-top: 14px; }
  table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 320px; }
  th, td { padding: 13px 10px; border-bottom: 1px solid var(--line); text-align: right; font-size: 15px; }
  th:first-child, td:first-child { text-align: left; }
  thead th { font-size: 13px; color: var(--sub); font-weight: 700; }
  tbody td { font-weight: 700; }
  .others, .ban { margin-top: 36px; }
  .others p, .ban li { font-size: 14px; line-height: 1.9; color: var(--sub); }
  .others p + p { margin-top: 8px; }
  .ban ul { margin-top: 10px; padding-left: 1.2em; }

  /* ===== 流れ・在廊 ===== */
  .flow { padding-block: 100px; }
  .steps { margin-top: 40px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
  .steps li { list-style: none; padding: 22px 16px 20px; background: var(--white); border-radius: 4px; }
  .steps li::before { counter-increment: s; content: "0" counter(s); font-family: var(--display); font-size: 30px; color: var(--halo); display: block; line-height: 1; }
  .steps b { display: block; margin-top: 10px; font-size: 17px; font-weight: 900; }
  .steps span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.7; color: var(--sub); }
  .steps li.us { background: var(--ink); color: var(--silver); }
  .steps li.us span { color: #cfc8bd; }
  .flow .msg { margin-top: 24px; font-size: 18px; font-weight: 900; }
  .flow .msg em { font-style: normal; color: var(--red); }
  .attend { margin-top: 40px; padding: 26px 24px; border-left: 4px solid var(--halo); background: var(--white); }
  .attend b { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--red); }
  .attend p { margin-top: 8px; font-size: 16px; line-height: 1.9; font-weight: 700; }

  /* ===== Q&A ===== */
  .qa { padding-block: 100px; background: var(--paper-2); }
  .qa-list { margin-top: 32px; border-top: 1px solid var(--line); }
  .qa details { border-bottom: 1px solid var(--line); }
  .qa summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-size: 17px; font-weight: 900; }
  .qa summary::-webkit-details-marker { display: none; }
  .qa summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--red); }
  .qa details[open] summary::after { content: "−"; }
  .qa details div { padding: 0 0 22px; font-size: 15px; line-height: 1.95; color: var(--sub); max-width: 46em; }

  /* ===== 申し込み ===== */
  .entry { padding-block: 100px 110px; background: var(--ink); color: var(--silver); }
  .entry .eyebrow { color: var(--halo); }
  .entry .lead { color: #cfc8bd; }
  .entry-cta { margin-top: 30px; }
  .entry-cta .note-s { color: #a39c92; }
  .count { margin-top: 18px; font-weight: 900; font-size: 17px; }
  .count b { font-family: var(--display); font-weight: 400; font-size: 52px; color: var(--halo); margin: 0 6px; font-variant-numeric: tabular-nums; }
  form { margin-top: 36px; background: var(--paper); color: var(--text); border-radius: 6px; padding: clamp(20px, 3vw, 36px); display: grid; gap: 28px; }
  fieldset { border: 0; display: grid; gap: 14px; }
  legend { font-size: 17px; font-weight: 900; margin-bottom: 4px; }
  legend .req { display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 3px; background: var(--red); color: #fff; font-size: 11px; vertical-align: 2px; }
  legend .opt { display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 3px; background: #8f887e; color: #fff; font-size: 11px; vertical-align: 2px; }
  .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
  label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--sub); }
  input[type=text], input[type=email], input[type=tel], select, textarea { width: 100%; font: 500 16px var(--jp); color: var(--text); padding: 12px 14px; border: 1px solid rgba(29,27,28,.25); border-radius: 4px; background: var(--white); }
  textarea { min-height: 96px; resize: vertical; }
  .check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 700; color: var(--text); }
  .check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--red); }
  .radios { display: flex; flex-wrap: wrap; gap: 10px; }
  .radios label { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border: 1px solid rgba(29,27,28,.25); border-radius: 4px; background: var(--white); font-size: 15px; color: var(--text); cursor: pointer; }
  .radios input { accent-color: var(--red); width: 18px; height: 18px; }
  .total { background: var(--ink); color: var(--silver); border-radius: 4px; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
  .total .lines { font-size: 13px; color: #cfc8bd; line-height: 1.8; }
  .total .sum { text-align: right; }
  .total .sum b { font-family: var(--display); font-weight: 400; font-size: 36px; color: var(--halo); }
  .total .sum small { display: block; font-size: 12px; color: #cfc8bd; }
  .hint-pay { font-size: 13px; line-height: 1.8; color: var(--sub); }
  .error { color: var(--red); font-size: 14px; font-weight: 700; min-height: 1.2em; }
  .sent { display: none; padding: 16px 18px; border-radius: 4px; background: #fff3ec; border: 1px solid var(--halo); font-size: 14px; line-height: 1.8; font-weight: 700; color: var(--text); }
  .sent.show { display: block; }

  footer { padding: 40px 16px 120px; background: var(--ink); color: #a39c92; font-size: 13px; line-height: 1.9; border-top: 1px solid rgba(244,239,230,.1); }

  .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(19,18,20,.92); color: var(--silver); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .3s; }
  .dock.away { transform: translateY(110%); }
  .dock .d { font-size: 13px; font-weight: 700; line-height: 1.4; }
  .dock .d b { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--halo); margin: 0 3px; }

  @media (max-width: 900px) {
    .intro-grid, .size-grid, .detail-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .steps li { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); align-items: baseline; column-gap: 8px; }
    .steps li::before { grid-row: span 2; }
    .steps b { margin-top: 0; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 720px) {
    .dock { display: flex; }
    .rows div { grid-template-columns: 5.5em minmax(0, 1fr); }
    .two { grid-template-columns: 1fr; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
  }
