/* ============================================================
   Yappe 2nd Anniversary Party 招待LP　共通スタイル（全ページ）
   ------------------------------------------------------------
   正とする資料
   - research/H4_design_v2_decisions.md：Noto Sans JPのみ、HPの文字サイズ・行間・余白、
     3列グリッド gap 48px、横罫1種類（1px #D8D0C3）、影なし、フェードインなし
   - research/L_hp_color_usage.md：Yappe公式HPと同じオレンジの使い方だけにする。
     主ボタン＝オレンジ地＋白文字（角丸6px）、副ボタン＝枠線＋墨の文字でホバー・フォーカス時にオレンジ地＋白文字、
     文字リンク＝墨で下線なし・ホバーでオレンジの文字、オレンジの文字は小さなラベル・番号・「2nd」、
     オレンジの面（招待状カードの帯、VIPの帯）、フォーカス枠は2pxのオレンジ。
     オレンジ地に墨の文字、常時のオレンジの下線、#FF7300 以外のオレンジは使わない
   - research/K_orange_redesign.md：ヒーローのオレンジ版ロゴ・カード上端の帯・照り返し・VIPの価格と帯
   - ロゴ：明るい面はオレンジ版、夜の面はホワイト版。高さ44px以上、周りに余白
   下層ページだけの部品は pages.css。使い方は site/README_styles.md
   ============================================================ */


/* ------------------------------------------------------------
   1. 変数（色・文字・余白）
   ------------------------------------------------------------ */
:root {
  /* 色 */
  --paper: #FAF8F3;        /* 生成り：基本の背景・招待状カード */
  --linen: #F3EEE6;        /* リネン：交互の背景 */
  --surface: #FFFDF8;      /* 紙白：カード */
  --night: #1E1A17;        /* 夜：ヘッダー・ヒーロー・アクセス・フッター */
  --night-2: #2A241F;      /* 夜の上のカード */
  --ink: #191919;          /* 墨：本文 */
  --ink-muted: #5E5953;    /* 補助の文字 */
  --ivory: #F3EEE6;        /* 夜の上の文字 */
  --ivory-muted: #B5ACA0;  /* 夜の上の補助の文字 */
  --line: #D8D0C3;         /* 横罫 */
  --line-night: rgba(243, 238, 230, .16);
  --orange: #FF7300;       /* Yappeオレンジ（唯一のオレンジ） */
  --on-orange: #FFFFFF;    /* オレンジ地の上の文字（HPと同じ白。太さ500以上・15px以上で使う） */
  --glow: rgba(255, 115, 0, .22);       /* 照り返し */
  --glow-wide: rgba(255, 115, 0, .08);  /* 照り返しの外側の層 */
  --mark: 4px;             /* 招待状カード・VIPカードの上の帯 */
  --focus: var(--orange);  /* フォーカス枠（HPと同じ2pxのオレンジ） */
  --backdrop: rgba(20, 17, 15, .64);

  /* 動き（HPと同じイージング） */
  --ease: cubic-bezier(.2, .75, .15, 1);
  --dur: .4s;

  /* 文字（HPの値） */
  --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --fs-display: 48px;   /* ヒーローのキャッチ（上限。1行に収まるよう幅に合わせて小さくする） */
  --fs-h2: 28px;
  --fs-lead: 24px;
  --fs-h3: 20px;
  --fs-figure: 44px;    /* 券種の価格 */
  --fs-body: 16px;
  --fs-ui: 15px;        /* ボタン・リンク */
  --fs-small: 14px;     /* 注記・サブ・フッターの小さなリンク */
  --fs-meta: 12px;
  --lh-body: 1.95;
  --lh-heading: 1.6;
  --lh-lead: 1.55;
  --lh-small: 1.8;
  --lh-meta: 1.7;
  --lh-figure: 1.1;
  --ls-heading: -.015em;

  /* レイアウト（HPの値。余白は 8/16/24/32/48/64/88/144、主とサブの間だけ4px） */
  --content: 1120px;
  --gutter: 56px;
  --gap: 48px;
  --section: 144px;
  --heading-after: 64px;
  --paragraph: 24px;
  --header: 88px;
  --sticky-bar: 72px;
}
@media (max-width: 1100px) {
  :root { --gutter: 40px; --gap: 32px; }
}
@media (max-width: 760px) {
  :root {
    --fs-h2: 24px; --fs-lead: 20px; --fs-h3: 18px; --fs-figure: 36px; --fs-ui: 14px;
    --gutter: 28px; --gap: 24px; --section: 88px; --heading-after: 32px; --header: 64px;
  }
}


/* ------------------------------------------------------------
   2. 基本
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--paper);
  scroll-padding-top: calc(var(--header) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink);
  background: var(--paper);
  line-break: strict;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd, ul, ol, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, .lead { word-break: auto-phrase; overflow-wrap: normal; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
small { font-size: inherit; }
.num { font-variant-numeric: tabular-nums; }
.nw { white-space: nowrap; }

html.no-js { scroll-behavior: smooth; }

/* フォーカス表示：HPと同じ2pxのオレンジ。オレンジのボタンは枠を墨（夜の面は象牙）にして見分ける */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.btn--primary:focus-visible, .btn--apply:focus-visible { outline-color: var(--ink); }
.night .btn--primary:focus-visible, .night .btn--apply:focus-visible { outline-color: var(--ivory); }
.invitation .btn--primary:focus-visible, .invitation .btn--apply:focus-visible { outline-color: var(--ink); }
[tabindex="-1"]:focus { outline: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 8px 16px; background: var(--ink); color: var(--paper);
  font-size: var(--fs-ui); text-decoration: none; border-radius: 2px;
}
.skip-link:focus { top: 16px; }


/* ------------------------------------------------------------
   3. レイアウト：wrap・3列グリッド・セクション
   ------------------------------------------------------------ */
.wrap {
  max-width: calc(var(--content) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); }
.col-head { grid-column: 1; }
.col-body { grid-column: 2 / 4; min-width: 0; }
.col-full { grid-column: 1 / 4; }
@media (max-width: 760px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .col-head, .col-body, .col-full { grid-column: 1; }
  .col-head { margin-bottom: var(--heading-after); }
}
.section { padding: var(--section) 0; }
.section--linen { background: var(--linen); }
.section--night { background: var(--night); color: var(--ivory); }
.chapter + .chapter { margin-top: var(--section); }
.flow > * + * { margin-top: var(--paragraph); }


/* ------------------------------------------------------------
   4. 文字の部品
   ------------------------------------------------------------ */
.h2 { font-size: var(--fs-h2); line-height: var(--lh-heading); font-weight: 450; letter-spacing: var(--ls-heading); }
.h3 { font-size: var(--fs-h3); line-height: var(--lh-heading); font-weight: 500; }
.lead { font-size: var(--fs-lead); line-height: var(--lh-lead); font-weight: 400; }
.label { font-size: var(--fs-meta); line-height: var(--lh-meta); font-weight: 500; color: var(--ink-muted); }
.night .label { color: var(--ivory-muted); }
.sub, .note { display: block; font-size: var(--fs-small); line-height: var(--lh-small); }
.sub { color: var(--ink-muted); }
.night .sub { color: var(--ivory-muted); }
.note--strong { font-weight: 500; }
.meta { font-size: var(--fs-meta); line-height: var(--lh-meta); }
.muted { color: var(--ink-muted); }
.night .muted { color: var(--ivory-muted); }
.signature { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink-muted); }

/* 文字リンク（HPと同じ）：墨の文字（夜の面は象牙色）、ホバーでオレンジの文字。
   本文中のリンクだけ、見分けるために墨の細い下線（currentColor）を付ける。
   単独のリンク（矢印付き・行に1つだけ）は下線なし */
.textlink {
  color: var(--ink); font-size: inherit; font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: currentColor; text-underline-offset: 4px;
  transition: color .2s ease-out;
}
.textlink:has(> span[aria-hidden]), p > .textlink:only-child, dd > .textlink:only-child { text-decoration: none; }
.textlink:hover { color: var(--orange); }
.night .textlink { color: var(--ivory); }
.night .textlink:hover { color: var(--orange); }
p > .textlink:only-child { font-size: var(--fs-ui); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* 項目「〇〇」主／サブ */
.item__label { font-size: var(--fs-meta); line-height: var(--lh-meta); font-weight: 500; color: var(--ink-muted); }
.night .item__label { color: var(--ivory-muted); }
.item__main { font-weight: 500; }
.item .sub { margin-top: 4px; }


/* ------------------------------------------------------------
   5. ボタン
   入口の見た目は3種類：その場で開閉＝「＋／−」、ポップアップ＝ボタンの形＋「小さな四角に＋」（フッターと同じ）、
   ページの移動＝文字リンク＋「→」。申込のボタンだけオレンジ地
   ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 12px 24px;
  font: 500 var(--fs-ui)/1.6 var(--font); letter-spacing: 0; text-align: center;
  text-decoration: none; border-radius: 6px; border: 1px solid transparent; cursor: pointer;
  word-break: auto-phrase;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn__arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* 主ボタン（HPの .action-primary と同じ）：オレンジ地＋白文字、15px以上・500。
   申込ボタン（.btn--apply）も同じ見た目。ホバーは色を変えず、矢印の動きだけ */
.btn--primary, .btn--apply {
  background: var(--orange); color: var(--on-orange); border-color: var(--orange);
  font-size: max(15px, var(--fs-ui)); font-weight: 500;
}

/* 副ボタン・ポップアップの入口（HPの枠のボタンと同じ）：枠線＋墨の文字。
   ホバー・フォーカスでオレンジ地＋白文字 */
.btn--secondary, .btn--popup { background: transparent; color: var(--ink); border-color: var(--line); }
.night .btn--secondary, .night .btn--popup { color: var(--ivory); border-color: var(--line-night); }
.btn--secondary:hover, .btn--popup:hover,
.btn--secondary:focus-visible, .btn--popup:focus-visible {
  background: var(--orange); color: var(--on-orange); border-color: var(--orange);
}
/* ポップアップを開く印：フッターと同じ「小さな四角に＋」 */
.btn--popup::after {
  content: ""; flex: 0 0 auto; width: 16px; height: 16px; border: 1px solid currentColor; border-radius: 4px;
  background:
    linear-gradient(currentColor, currentColor) center / 8px 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 8px no-repeat;
}

.btn--small { min-height: 44px; padding: 8px 20px; }
.btn--compact { min-height: 44px; padding: 8px 16px; }
.btn--block { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }


/* ------------------------------------------------------------
   6. 表・箇条書き
   ------------------------------------------------------------ */
.table { border-top: 1px solid var(--line); }
.table__row {
  display: grid; grid-template-columns: 10em minmax(0, 1fr); column-gap: 24px;
  padding: 32px 0; border-bottom: 1px solid var(--line);
}
.table dt { font-weight: 500; }
.table dd .sub { margin-top: 4px; }
.table--night, .table--night .table__row { border-color: var(--line-night); }
.table--compact .table__row { padding: 24px 0; grid-template-columns: 9em minmax(0, 1fr); font-size: var(--fs-small); line-height: var(--lh-small); }
@media (max-width: 760px) {
  .table__row, .table--compact .table__row { grid-template-columns: minmax(0, 1fr); padding: 24px 0; }
  .table dd { margin-top: 4px; }
  /* スマホでも「項目｜内容」の2列にする版 */
  .table--inline .table__row { grid-template-columns: 5.5em minmax(0, 1fr); column-gap: 16px; }
  .table--inline dt { font-size: var(--fs-small); line-height: var(--lh-heading); }
  .table--inline dd { margin-top: 0; line-height: var(--lh-heading); }
}

.data-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.data-table th, .data-table td { padding: 24px 24px 24px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table thead th { font-size: var(--fs-meta); line-height: var(--lh-meta); font-weight: 500; color: var(--ink-muted); padding-top: 8px; padding-bottom: 8px; }
.data-table tbody th { font-weight: 500; width: 60%; }
@media (max-width: 760px) {
  .data-table--keep th, .data-table--keep td { padding-right: 16px; font-size: var(--fs-small); line-height: var(--lh-small); }
  .data-table:not(.data-table--keep) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table:not(.data-table--keep) tr { display: block; padding: 24px 0; border-bottom: 1px solid var(--line); }
  .data-table:not(.data-table--keep) th, .data-table:not(.data-table--keep) td { display: block; width: auto !important; padding: 0; border: 0; }
}

.numbered { counter-reset: n; }
.numbered > li { counter-increment: n; position: relative; padding: 24px 0 24px 2em; border-bottom: 1px solid var(--line); }
.numbered > li:first-child { border-top: 1px solid var(--line); }
.numbered > li::before { content: counter(n); position: absolute; left: 0; top: 16px; font-weight: 500; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.numbered .sub { margin-top: 4px; }


/* ------------------------------------------------------------
   7. ヘッダー（PCは上部に固定、スマホは固定しない・ロゴのみ）
   夜の面なのでロゴはホワイト版、高さ44px
   ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 20; height: var(--header);
  display: flex; align-items: center;
  background: var(--night); color: var(--ivory); border-bottom: 1px solid var(--line-night);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 32px; }
.site-header__logo { display: block; padding: 0; border-radius: 2px; }
.site-header__logo img { display: block; height: 44px; width: auto; }
.site-header__nav { display: flex; align-items: center; gap: 32px; }
.site-header__link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: var(--fs-ui); line-height: 1.6; text-decoration: none; color: var(--ivory-muted);
}
.site-header__link { position: relative; }
.site-header__link:hover { color: var(--orange); }
.site-header__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px;
  background: var(--orange); transform: scaleX(0); transition: transform .24s ease-out;
}
.site-header__link:hover::after { transform: scaleX(1); }
@media (max-width: 1100px) { .site-header__link.is-wide { display: none; } }
@media (max-width: 760px) {
  .site-header { position: relative; }
  .site-header__nav { display: none; }
}


/* ------------------------------------------------------------
   8. ① 招待状（ヒーロー）
   夜の面＋暖炉の照り返し（2層）の上に、細い罫で囲んだ生成りのカード。
   カードの上端にオレンジの帯、頭にオレンジ版ロゴ（差出人の印）
   ------------------------------------------------------------ */
.hero { position: relative; background: var(--night); color: var(--ivory); overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(80% 65% at 50% 100%, rgba(255, 115, 0, .42), transparent 72%),
    radial-gradient(130% 95% at 50% 100%, rgba(255, 115, 0, .16), transparent 80%);
  animation: glow 1.6s cubic-bezier(.4, 0, .2, 1) both;      /* ページで唯一の動き */
}
@keyframes glow { from { opacity: 0; } to { opacity: 1; } }
.hero__inner { position: relative; z-index: 1; padding: 64px var(--gutter) 88px; }

.invitation {
  max-width: var(--content); margin: 0 auto; padding: 16px;
  background: var(--paper); color: var(--ink); border-radius: 2px;
  border-top: var(--mark) solid var(--orange);
}
.invitation__frame {
  container-type: inline-size;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 48px 56px; border: 1px solid var(--line);
}
.invitation .label, .invitation .item__label, .invitation .sub, .invitation .muted, .invitation .thumb__hint { color: var(--ink-muted); }
.invitation .textlink { color: var(--ink); }
/* カードは明るい面なので、夜の面用の副ボタン・リンクの色を明るい面用に戻す */
.invitation .btn--secondary, .invitation .btn--popup { color: var(--ink); border-color: var(--line); }
.invitation .btn--secondary:hover, .invitation .btn--secondary:focus-visible { color: var(--on-orange); border-color: var(--orange); }
.invitation .textlink:hover { color: var(--orange); }
.invitation .rule { border-top-color: var(--line); }

/* ロゴ：明るい面なのでオレンジ版。保護エリアとして上下に余白 */
.invitation__logo { display: block; height: 48px; width: auto; margin: 0 auto 32px; }
.invitation__label { margin-bottom: 16px; }

/* 会の名前：日本語を大きく。PCは1行、狭い幅では「Yappe株式会社／創業2周年パーティー」の2行 */
.invitation__title {
  font-size: clamp(26px, 4.4vw, 44px); line-height: 1.45; font-weight: 500; letter-spacing: var(--ls-heading);
  text-wrap: balance;
}
.invitation__title .nw { display: inline-block; }
.invitation__org { display: block; font-size: .56em; line-height: 1.6; letter-spacing: .04em; }
/* 副題：会の名前の下に小さく */
.invitation__catch {
  display: flex; align-items: center; justify-content: center; gap: 1em;
  margin-top: 8px; font-size: clamp(16px, 2.2vw, 22px); line-height: 1.6; font-weight: 400; letter-spacing: .08em;
}
.invitation__catch::before, .invitation__catch::after { content: ""; flex: 0 0 auto; width: 1.6em; height: 1px; background: currentColor; }
.invitation__words { margin-top: 20px; max-width: 40em; font-size: var(--fs-small); line-height: var(--lh-small); word-break: auto-phrase; }
.invitation__words .is-short { display: none; }
.invitation__rule { align-self: stretch; margin-top: 40px; }

/* 記：日時・会場・参加費。PCは3列 */
.invitation__facts { align-self: stretch; margin-top: 40px; display: flex; justify-content: center; gap: 24px var(--gap); }
.fact { flex: 0 1 calc((100% - var(--gap) * 2) / 3); min-width: 0; }
.fact__label { font-size: var(--fs-meta); line-height: var(--lh-meta); font-weight: 500; color: var(--ink-muted); }
.fact__main { margin-top: 8px; font-size: var(--fs-h3); line-height: var(--lh-heading); font-weight: 500; }
.fact__date { white-space: nowrap; display: block; font-size: var(--fs-lead); line-height: var(--lh-lead); font-weight: 500; }
.fact__time { display: block; }
.fact__price { font-size: var(--fs-body); line-height: 1.5; }   /* 同じ項目の3行なので詰める */
.fact__price .nw { display: block; }   /* 学生・一般・VIPを1行ずつ */
.fact__sub { margin-top: 4px; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink-muted); }

.invitation__reply { margin-top: 16px; display: flex; flex-direction: column; align-items: center; }
.invitation__request { margin-top: 16px; font-size: var(--fs-small); line-height: var(--lh-small); word-break: auto-phrase; }
.invitation__actions { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* 状態による文（満席・締切後・当日・終了後・中止） */
.status-note { margin-top: 16px; font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 500; }
.status-message { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.status-message p { word-break: auto-phrase; }
.status-message__main { font-size: var(--fs-h3); line-height: var(--lh-heading); font-weight: 500; }
.status-message__sub { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink-muted); }
.status-message__body { max-width: 36em; }
.status-message .invitation__actions { margin-top: 16px; }
.status-message .item { margin-top: 16px; }
.status-message--block { align-items: flex-start; text-align: left; gap: 4px; }
.status-message--block .status-message__main { font-size: var(--fs-body); }

@media (max-width: 760px) {
  /* 招待状カードの細い罫を、本文と同じ左右28pxの線に揃える（紙の端は20px） */
  .hero__inner { padding: 0 calc(var(--gutter) - 8px) 32px; }
  .invitation { padding: 8px; }
  .invitation__frame { padding: 24px 12px; }
  .invitation__logo { height: 44px; margin-bottom: 16px; }
  .invitation__words { margin-top: 12px; font-size: 13px; }
  .invitation__words .is-long { display: none; }
  .invitation__words .is-short { display: inline; }
  .invitation__rule { margin-top: 24px; }

  /* 記：項目名を左に置いた行 */
  .invitation__facts { flex-direction: column; gap: 20px; margin-top: 24px; text-align: left; width: fit-content; max-width: 100%; align-self: center; }
  .fact { flex-basis: auto; display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 8px; }
  .fact__label { grid-row: 1 / span 2; line-height: var(--lh-heading); padding-top: 2px; }
  .fact__main { margin-top: 0; font-size: var(--fs-body); }
  .fact__date { display: block; font-size: var(--fs-body); line-height: inherit; }
  .fact .fact__time { display: block; }
  .fact__time { display: inline-block; white-space: nowrap; }
  .fact__sub { margin-top: 2px; font-size: var(--fs-meta); line-height: var(--lh-meta); }

  .invitation__reply { margin-top: 24px; align-self: stretch; }
  .invitation__request { margin-top: 8px; line-height: var(--lh-heading); }
  .status-note { margin-top: 8px; }
  .invitation__actions { margin-top: 16px; align-self: stretch; }
  .invitation__actions .btn { width: 100%; }
  .invitation__actions .is-pc { display: none; }
  .status-message { margin-top: 16px; }
}


/* タブレット：3列では日時と会場が重なるので、スマホと同じ「項目名｜内容」の行にする */
@media (min-width: 761px) and (max-width: 1080px) {
  .invitation__facts { flex-direction: column; gap: 24px; width: fit-content; max-width: 100%; align-self: center; text-align: left; }
  .fact { flex-basis: auto; display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; }
  .fact__label { grid-row: 1 / span 2; line-height: var(--lh-heading); padding-top: 3px; }
  .fact__main { margin-top: 0; }
  .fact__date { display: inline; font-size: inherit; line-height: inherit; }
  .fact__time { display: inline-block; white-space: nowrap; }
  .fact__sub { margin-top: 2px; }
}


/* ------------------------------------------------------------
   9. ② ご招待と開催概要
   ------------------------------------------------------------ */
#about .lead + p { margin-top: 32px; }


/* ------------------------------------------------------------
   10. ③ 参加費・お申し込み
   ------------------------------------------------------------ */
.apply-closed { margin-top: 48px; }

/* 券種カード：3列グリッドに乗せた同じ形のカード。高さとボタンの位置を揃える */
.tickets {
  margin-top: var(--heading-after);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap);
  grid-template-rows: auto auto auto 1fr auto;
}
.ticket {
  grid-row: span 5; display: grid; grid-template-rows: subgrid; row-gap: 0;
  position: relative; background: var(--surface); border-radius: 4px; padding: 32px;
}
.ticket__head { grid-row: 1; }
.ticket__few { position: absolute; top: 24px; right: 24px; font-size: var(--fs-meta); line-height: var(--lh-meta); font-weight: 500; }
.ticket__price { grid-row: 2; margin-top: 16px; font-size: var(--fs-figure); line-height: var(--lh-figure); font-weight: 300; }
.ticket__tax { margin-left: 8px; font-size: var(--fs-meta); font-weight: 400; color: var(--ink-muted); }
.night .ticket__tax { color: var(--ivory-muted); }
.ticket__for { grid-row: 3; margin-top: 24px; }
.ticket__for-main { font-weight: 500; }
.ticket__for .sub { margin-top: 4px; }
.ticket__extra { grid-row: 4; margin-top: 16px; font-size: var(--fs-small); line-height: var(--lh-small); }
.ticket__message { margin-bottom: 8px; color: var(--ivory-muted); }
.perks li { padding-left: 1em; text-indent: -1em; }
.perks li::before { content: "・"; }
.perks + p { margin-top: 16px; }
.ticket__action { grid-row: 5; margin-top: 32px; }
.ticket .btn { padding-left: 16px; padding-right: 16px; gap: 8px; }
.ticket__pending { margin-top: 8px; font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 500; text-align: center; }
.ticket__pending:empty { display: none; }
.ticket__soldout { display: none; }
.ticket__soldout .status-message__main { font-size: var(--fs-body); }
/* VIP：夜のカードに火が灯る（上の帯＋価格がオレンジ。夜の面なので文字に使ってよい） */
.ticket--vip { background: var(--night); color: var(--ivory); border-top: var(--mark) solid var(--orange); }
.ticket--vip .ticket__price { color: var(--orange); }
.tickets__after { margin-top: 24px; }
.tickets__after .meta { color: var(--ink-muted); }
.tickets__after .note { margin-top: 8px; }
.tickets__after .btn { margin-top: 16px; }

/* 券種ごとの売り切れ（config.js の SOLDOUT） */
[data-soldout~="student"] #ticket-student .ticket__buy,
[data-soldout~="general"] #ticket-general .ticket__buy,
[data-soldout~="vip"] #ticket-vip .ticket__buy { display: none; }
[data-soldout~="student"] #ticket-student .ticket__soldout,
[data-soldout~="general"] #ticket-general .ticket__soldout,
[data-soldout~="vip"] #ticket-vip .ticket__soldout { display: block; }

@media (max-width: 900px) {
  .tickets { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 24px; }
  .ticket { grid-row: auto; display: block; }
}
@media (max-width: 760px) {
  .ticket { padding: 24px; }
  .ticket__few { top: 16px; right: 16px; }
}


/* ------------------------------------------------------------
   11. ④ 当日の流れ（数直線）
   左に時刻（開始の位置）、中央に軸、右に内容。縦の長さは時刻に比例（1分＝--k）。
   一瞬で終わるもの＝丸（すべて同じ大きさ。乾杯はオレンジの塗り）、5分を超えるもの＝帯（主要はオレンジ、歓談は枠）。
   引き出し線は、丸は中心から、帯は上下の中央から。デザイナー・UI/UX・アーティストの批評（research/M1〜M3）で決定
   ------------------------------------------------------------ */
.tl {
  --k: 4px; --tc: 64px; --ax: 96px; --band: 16px; --dot: 20px; --lead: 24px;
  --tl-line: rgba(94, 89, 83, .5);   /* --ink-muted の50%：軸・帯の枠・引き出し線 */
  position: relative; height: calc(var(--total) * var(--k)); margin: 32px 0 40px;
}
.tl::before {   /* 軸 */
  content: ""; position: absolute; top: -12px; bottom: -12px; left: var(--ax); width: 3px;
  transform: translateX(-50%); background: var(--tl-line); border-radius: 2px;
}
.tl__item { position: absolute; left: 0; right: 0; top: calc(var(--s) * var(--k)); height: 0; }
.tl__time {
  position: absolute; left: 0; top: 0; width: var(--tc); transform: translateY(-50%);
  text-align: right; font-size: var(--fs-ui); line-height: 1.6; font-weight: 500; font-variant-numeric: tabular-nums;
}
.tl__node {
  position: absolute; z-index: 1; left: var(--ax); top: 0; box-sizing: border-box;
  width: var(--dot); height: var(--dot); transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink-muted); box-shadow: 0 0 0 3px var(--paper);
}
.tl__item.is-key .tl__node { background: var(--orange); border-color: var(--orange); }
.tl__item.is-span .tl__node {   /* 帯：開始から終了まで。隣の帯とのあいだに4pxのすき間 */
  top: 2px; width: var(--band); height: calc(var(--d) * var(--k) - 4px - var(--trim, 0px)); transform: translateX(-50%);
  border-radius: 3px; border-color: var(--tl-line); box-shadow: none;
}
.tl__item.is-span.is-key .tl__node { border-color: var(--orange); }
.tl__text {
  position: absolute; left: calc(var(--ax) + var(--dot) / 2 + var(--lead)); right: 0; top: var(--ly, 0px);
  transform: translateY(-50%); font-size: var(--fs-ui); line-height: 1.6; color: var(--ink-muted);
}
.tl__item.is-span .tl__text { top: var(--ly, calc(var(--d) * var(--k) / 2)); }
.tl__item.is-key .tl__text { color: var(--ink); font-weight: 500; }
.tl__text::before {   /* 引き出し線：丸・帯の端から文字の手前8pxまで */
  content: ""; position: absolute; top: 50%; height: 1px; background: var(--tl-line);
  right: calc(100% + 8px); width: calc(var(--lead) - 8px);
}
.tl__item.is-span .tl__text::before { width: calc(var(--lead) - 8px + (var(--dot) - var(--band)) / 2); }
.program-note { margin-top: 24px; color: var(--ink-muted); }
/* 当日の流れ（一覧型）：時刻・点・内容を1行ずつ。最初の点から最後の点までを1本の線でつなぐ */
.tline { --tc: 64px; --dot: 16px; --gx: 20px; --tl-line: rgba(94, 89, 83, .5); list-style: none; margin: 32px 0 40px; padding: 0; }
.tline__item { position: relative; display: grid; grid-template-columns: var(--tc) var(--dot) minmax(0, 1fr); column-gap: var(--gx); align-items: start; padding-bottom: 28px; font-size: var(--fs-ui); line-height: 1.6; }
.tline__item:last-child { padding-bottom: 0; }
.tline__item:not(:last-child)::after {
  content: ""; position: absolute; left: calc(var(--tc) + var(--gx) + var(--dot) / 2); top: .8em; bottom: -.8em;
  width: 2px; transform: translateX(-50%); background: var(--tl-line);
}
.tline__time { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.tline__dot {
  position: relative; z-index: 1; box-sizing: border-box; width: var(--dot); height: var(--dot); margin-top: calc(.8em - var(--dot) / 2);
  border-radius: 50%; background: var(--paper); border: 2px solid var(--ink-muted);
}
.tline__item.is-key .tline__dot { background: var(--orange); border-color: var(--orange); }
.tline__text { color: var(--ink-muted); }
.tline__item.is-key .tline__text { color: var(--ink); font-weight: 500; }
.tline__sub { display: block; margin-top: 2px; font-size: var(--fs-meta); line-height: var(--lh-meta); font-weight: 400; color: var(--ink-muted); }
@media (max-width: 760px) {
  .tline { --tc: 48px; --dot: 14px; --gx: 14px; }
  .tline__item { padding-bottom: 22px; }
}@media (max-width: 760px) {
  .tl { --k: 4px; --tc: 44px; --ax: 64px; --band: 14px; --dot: 18px; --lead: 16px; }
}


/* ------------------------------------------------------------
   11-2. ⑤ 会場のご紹介
   写真3枚（スマホは横スクロール）、Instagram・Googleマップへのリンク、お席の表
   ------------------------------------------------------------ */
.venue-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
.venue-photo { margin: 0; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; background: var(--night-2); }
.venue-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.venue-photo__placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 100%; padding: 16px;
  font-size: var(--fs-meta); line-height: var(--lh-meta); color: var(--ivory-muted); text-align: center;
}
.venue-photo__placeholder span { color: var(--ivory); font-size: var(--fs-small); }
.venue-credit { margin-top: 8px; color: var(--ivory-muted); }
.venue-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-top: 24px; }
.venue-link {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px;
  min-height: 72px; padding: 14px 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper);
  color: var(--ink); text-decoration: none; transition: background .2s ease-out, color .2s ease-out, border-color .2s ease-out;
}
.venue-link__label { grid-column: 1; font-size: var(--fs-meta); line-height: var(--lh-meta); font-weight: 500; color: var(--ink-muted); }
.venue-link__main { grid-column: 1; font-size: var(--fs-ui); line-height: 1.6; font-weight: 500; }
.venue-link__arrow { grid-column: 2; grid-row: 1 / span 2; }
.venue-link:hover, .venue-link:focus-visible { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
.venue-link:hover .venue-link__label, .venue-link:focus-visible .venue-link__label { color: var(--on-orange); }
.venue-seats { margin-top: 24px; }
.venue-seats__tag {
  display: table; margin-top: 8px; padding: 0 10px; border-radius: 4px;
  background: var(--orange); color: var(--on-orange); font-size: var(--fs-meta); line-height: 1.9; font-weight: 500;
}
.venue-note { margin-top: 16px; }
/* 会場のご紹介は夜の面に、暖炉の火のような照り返し（#FF7300を透かしたものだけ）。下端は夜の色に戻し、アクセスへ続ける */
.section--venue {
  background:
    radial-gradient(75% 40% at 85% 16%, rgba(255, 115, 0, .42), transparent 72%),
    radial-gradient(120% 65% at 50% 28%, rgba(255, 115, 0, .16), transparent 80%),
    var(--night);
  color: var(--ivory);
}
.section--venue + .section--night { padding-top: 0; }
.night .venue-photo { background: var(--night-2); outline: 1px solid var(--line-night); outline-offset: -1px; }
.night .venue-link { background: transparent; border-color: var(--line-night); color: var(--ivory); }
.night .venue-link__label { color: var(--ivory-muted); }
.night .venue-link:hover, .night .venue-link:focus-visible { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
@media (max-width: 760px) {
  .venue-photos {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter);
  }
  .venue-photos::-webkit-scrollbar { display: none; }
  .venue-photo { flex: 0 0 68%; scroll-snap-align: start; }
  .venue-links { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .venue-link { min-height: 64px; }
  .venue-seats .table__row { grid-template-columns: minmax(0, 1fr); }
  .venue-seats dd { margin-top: 4px; }
}


/* ------------------------------------------------------------
   11-3. 灯る夜の演出
   ヒーローの夜空にまたたく星。動きを減らす設定の方には出さない
   ------------------------------------------------------------ */
.hero__stars { position: absolute; inset: 0; pointer-events: none; }
.hero__star {
  position: absolute; width: var(--sz); height: var(--sz); border-radius: 50%;
  background: var(--ivory); box-shadow: 0 0 6px rgba(255, 255, 255, .7);
  opacity: .15; animation: twinkle var(--dur) ease-in-out var(--delay) infinite;
}
.hero__star.is-orange { background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.hero__star.is-sparkle {   /* 十字に光る星 */
  border-radius: 0; box-shadow: none; filter: drop-shadow(0 0 4px rgba(255, 255, 255, .8));
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.hero__star.is-sparkle.is-orange { filter: drop-shadow(0 0 5px var(--orange)); }
@keyframes twinkle {
  0%, 100% { opacity: .12; transform: scale(.6); }
  50% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) { .hero__stars { display: none; } }


/* ------------------------------------------------------------
   12. 画像のサムネイル（タップで拡大）
   画像がない・読み込めないときは「画像を準備中」を出す
   ------------------------------------------------------------ */
.thumb__hint { color: var(--ink-muted); }
.night .thumb__hint { color: var(--ivory-muted); }
.thumb__button {
  position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 4px;
  background: var(--night-2); cursor: zoom-in; overflow: hidden; text-align: left;
}
.thumb__image { position: relative; display: block; }
.thumb--card .thumb__button, .thumb--card .thumb__image { aspect-ratio: 4 / 5; }
.thumb__button img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb__placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 8px;
  font-size: var(--fs-meta); line-height: var(--lh-meta); color: var(--ivory-muted); text-align: center;
}
.thumb.is-missing .thumb__button { cursor: default; }
.thumb.is-missing img { display: none; }
.thumb.is-missing .thumb__hint { visibility: hidden; }
.thumb--card { width: min(100%, 240px); margin-top: 16px; }
.thumb--card .thumb__hint { margin-bottom: 8px; }



/* ------------------------------------------------------------
   13. ⑤ アクセス（夜の帯）
   ------------------------------------------------------------ */
.access__routes { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.access__meta { margin-top: 8px; }
.access__map { margin-top: 32px; border-radius: 4px; overflow: hidden; background: var(--night-2); }
.access__map iframe { display: block; width: 100%; height: 400px; border: 0; }
.access__note { margin-top: 16px; }
@media (max-width: 760px) {
  .access__routes { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .access__map iframe { height: 240px; }
}


/* ------------------------------------------------------------
   14. ⑥ よくある質問（その場で開閉「＋／−」）
   ------------------------------------------------------------ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); overflow: hidden; }
.faq__item summary {
  display: grid; grid-template-columns: 2em minmax(0, 1fr) 24px; align-items: center;
  min-height: 64px; padding: 24px 0; cursor: pointer; list-style: none; font-weight: 500;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { outline-offset: -2px; }
.faq__item summary::after {
  content: ""; width: 12px; height: 12px; justify-self: end; transition: transform var(--dur) var(--ease);
  background: linear-gradient(currentColor, currentColor) center / 12px 1px no-repeat,
              linear-gradient(currentColor, currentColor) center / 1px 12px no-repeat;
}
.faq__item[open] summary::after { transform: rotate(180deg); background: linear-gradient(currentColor, currentColor) center / 12px 1px no-repeat; }
.faq__q, .faq__a { font-weight: 500; color: var(--ink-muted); }
.faq__answer { display: grid; grid-template-columns: 2em minmax(0, 1fr); padding: 0 24px 32px 0; }
.faq__answer .sub { margin-top: 4px; }
.faq__answer .btn { margin-top: 16px; }
.faq__closing { margin-top: 24px; }


/* ------------------------------------------------------------
   15. ⑦ お申し込み
   ------------------------------------------------------------ */
.apply__cta .status-note { margin: 0 0 8px; }
@media (max-width: 760px) { .apply__cta .btn { width: 100%; } }


/* ------------------------------------------------------------
   16. フッター（夜の面・ホワイト版ロゴ・下端に照り返し）
   主催／お問い合わせ／小さなリンク（このページで確認＝ポップアップ、別のページ＝移動）
   ------------------------------------------------------------ */
.site-footer {
  background:
    radial-gradient(85% 70% at 50% 100%, rgba(255, 115, 0, .32), transparent 72%),
    radial-gradient(130% 100% at 50% 100%, rgba(255, 115, 0, .12), transparent 80%), var(--night);
  color: var(--ivory); padding: 88px 0 48px; font-size: var(--fs-small); line-height: var(--lh-small);
}
.site-footer__inner {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px;
  grid-template-areas: "brand nav nav" "contact nav nav" "bottom bottom bottom";
}
.site-footer__brand { grid-area: brand; }
.site-footer__brand img { display: block; height: 44px; width: auto; }
.site-footer__org { margin-top: 16px; color: var(--ivory); }
.site-footer__org-label { margin-right: 16px; color: var(--ivory-muted); }
.site-footer__contact { grid-area: contact; }
.site-footer__heading, .footer-group__title {
  font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 500; color: var(--ivory-muted); letter-spacing: 0;
}
.contact-list { margin-top: 8px; }
.contact-list a { display: inline-flex; align-items: center; min-height: 40px; font-size: var(--fs-body); color: var(--ivory); text-decoration: none; transition: color var(--dur) var(--ease); }
.contact-list a:hover { color: var(--orange); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.site-footer__nav { grid-area: nav; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); align-content: start; }
.footer-links { margin-top: 8px; display: grid; gap: 8px; }
.footer-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 48px; padding: 8px 16px; border: 1px solid var(--line-night); border-radius: 6px;
  color: var(--ivory); text-decoration: none;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.footer-links a:hover, .footer-links a:focus-visible { color: var(--orange); border-color: var(--orange); }
.footer-icon { flex: 0 0 auto; color: var(--ivory-muted); line-height: 1; }
.footer-links a:hover .footer-icon { color: var(--orange); }
/* ポップアップの印：小さな四角に＋ */
.footer-icon--popup { position: relative; width: 16px; height: 16px; border: 1px solid currentColor; border-radius: 4px; }
.footer-icon--popup::before, .footer-icon--popup::after { content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; transform: translate(-50%, -50%); }
.footer-icon--popup::before { width: 8px; height: 1px; }
.footer-icon--popup::after { width: 1px; height: 8px; }

.site-footer__bottom {
  grid-area: bottom; padding-top: 24px; border-top: 1px solid var(--line-night);
  color: var(--ivory-muted); font-size: var(--fs-meta); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px;
}
.site-footer__logo { display: inline-block; border-radius: 4px; transition: opacity var(--dur) var(--ease); }
.site-footer__logo:hover { opacity: .8; }
.site-footer__logo img { display: block; }
.site-footer__top { color: var(--ivory); font-size: var(--fs-small); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; transition: color var(--dur) var(--ease); }
.site-footer__top:hover { color: var(--orange); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (max-width: 1100px) {
  .site-footer__inner { grid-template-areas: "brand contact contact" "nav nav nav" "bottom bottom bottom"; }
}
@media (max-width: 760px) {
  .site-footer { padding: 64px 0 calc(48px + var(--sticky-bar)); }
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "contact" "nav" "bottom"; row-gap: 32px; }
  .site-footer__nav { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  /* スマホは1列の細いタイル（2列だと語の途中で折り返すため） */
  .footer-links { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .footer-links a { min-height: 44px; padding: 8px 14px; font-size: var(--fs-small); line-height: 1.5; gap: 8px; white-space: nowrap; }
}


/* ------------------------------------------------------------
   17. スマホ下部の固定バー
   ------------------------------------------------------------ */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: none; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--sticky-bar);
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: var(--night); color: var(--ivory); border-top: 1px solid var(--line-night);
  transform: translateY(110%); transition: transform .4s cubic-bezier(.2, .75, .15, 1);
}
.sticky-bar.is-visible { transform: none; }
.sticky-bar { gap: 12px; }
.sticky-bar__text { min-width: 0; }
.sticky-bar__main { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; font-size: var(--fs-small); line-height: 1.6; font-weight: 500; }
.sticky-bar .btn { flex: 0 0 auto; padding-left: 16px; padding-right: 16px; }
/* ロゴ：バーの高さの都合でガイドラインの44dpに届かない（表示エリアの都合による例外） */
.sticky-bar__logo { display: block; height: 16px; width: auto; flex: 0 0 auto; }
.sticky-bar__sub { font-size: var(--fs-meta); line-height: 1.6; color: var(--ivory-muted); }
@media (max-width: 760px) and (min-height: 500px) {
  .js[data-status="open"] .sticky-bar,
  .js[data-status="few"] .sticky-bar,
  .js[data-status="today"] .sticky-bar { display: flex; }
  html.has-sticky-bar { scroll-padding-bottom: var(--sticky-bar); }
}


/* ------------------------------------------------------------
   18. ポップアップ（dialog）。スマホは下から出るシート、PCは中央
   ------------------------------------------------------------ */
.modal {
  width: min(640px, calc(100% - 48px)); max-width: none; max-height: min(84vh, 800px);
  padding: 0; border: 0; border-radius: 4px; background: var(--surface); color: var(--ink);
  overflow: hidden;
}
.modal::backdrop { background: var(--backdrop); }
.modal[open] { animation: modal-in var(--dur) var(--ease); }
.modal[open]::backdrop { animation: fade-in var(--dur) var(--ease); }
.modal.is-closing { animation: modal-out .3s var(--ease) forwards; }
.modal.is-closing::backdrop { animation: fade-out .3s var(--ease) forwards; }
@keyframes modal-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes modal-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(.96); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
.modal__panel { display: flex; flex-direction: column; max-height: inherit; }
.modal__head { display: flex; justify-content: flex-end; padding: 16px 16px 0 32px; flex-shrink: 0; }
.modal__close {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 8px 16px;
  font-size: var(--fs-ui); font-weight: 500; background: transparent; border: 0; border-radius: 2px; cursor: pointer;
}
.modal__close::before { content: "×"; font-size: 16px; line-height: 1; }
.modal__close:hover { background: rgba(25, 25, 25, .06); }
.modal__title { padding: 0 32px; flex-shrink: 0; }
.modal__body { padding: 24px 32px 32px; overflow-y: auto; overscroll-behavior: contain; }
.modal__foot {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px;
  padding: 16px 32px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); flex-shrink: 0;
}
.modal__price { font-size: var(--fs-h3); font-weight: 500; }
.perk-list > div { padding: 24px 0; border-bottom: 1px solid var(--line); }
.perk-list > div:first-child { border-top: 1px solid var(--line); }
.perk-list dd { margin-top: 4px; }
.perk-list .h3 { font-size: var(--fs-body); }
.greeting__date { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink-muted); margin-top: 32px !important; }
.greeting__sign { margin-top: 8px !important; }
.modal__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
@media (max-width: 760px) {
  .modal { width: 100%; max-height: 88vh; margin: auto 0 0; border-radius: 12px 12px 0 0; }
  .modal[open] { animation: sheet-in .45s var(--ease); }
  .modal.is-closing { animation: sheet-out .32s var(--ease) forwards; }
  .modal__head { padding: 8px 8px 0 24px; }
  .modal__title { padding: 0 24px; }
  .modal__body { padding: 16px 24px 24px; }
  .modal__foot { padding: 16px 24px calc(16px + env(safe-area-inset-bottom)); }
  .modal__foot .btn { flex: 1 1 auto; }
}
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheet-out { from { transform: none; } to { transform: translateY(100%); } }

/* JavaScriptが動かない環境：ポップアップの中身をそのままページに表示する */
.no-js .dialog-source { padding: 0 var(--gutter); }
.no-js .dialog-source .modal {
  display: block; position: static; width: auto; max-width: var(--content); max-height: none;
  margin: 48px auto 0; border-radius: 4px;
}
.no-js .dialog-source .modal__close, .no-js .dialog-source [data-close] { display: none; }
.js .dialog-source { display: contents; }


/* ------------------------------------------------------------
   19. 画像の拡大表示（ライトボックス）。背景は不透明、タップで原寸表示
   ------------------------------------------------------------ */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #14110F; color: var(--ivory);
}
.lightbox::backdrop { background: #14110F; }
.lightbox[open], .lightbox[open]::backdrop { animation: fade-in var(--dur) var(--ease); }
.lightbox.is-closing, .lightbox.is-closing::backdrop { animation: fade-out .3s var(--ease) forwards; }
.lightbox__panel { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
.lightbox__head { display: flex; justify-content: flex-end; padding: 8px 8px 0; padding-top: max(8px, env(safe-area-inset-top)); }
.lightbox__close { color: var(--ivory); }
.lightbox__close:hover { background: rgba(243, 238, 230, .08); }
.lightbox__stage { position: relative; min-height: 0; overflow: auto; overscroll-behavior: contain; touch-action: pan-x pan-y pinch-zoom; }
.lightbox__img {
  position: absolute; inset: 0; margin: auto; display: block;
  max-width: calc(100% - 32px); max-height: calc(100% - 16px); width: auto; height: auto; object-fit: contain;
  cursor: zoom-in;
}
.lightbox.is-zoomed .lightbox__img {
  position: static; max-width: none; max-height: none; width: min(1200px, 200%); margin: 0 auto; cursor: zoom-out;
}
.lightbox__foot {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 24px calc(24px + env(safe-area-inset-bottom));
}
.lightbox__note { color: var(--ivory-muted); }
html.is-locked, html.is-locked body { overflow: hidden; }


/* ------------------------------------------------------------
   20. 受付状態による出し分け（<html data-status> と data-when）
   data-when に書いた状態のときだけ表示する。書いていない要素は常に表示
   ------------------------------------------------------------ */
[data-status="open"] [data-when]:not([data-when~="open"]),
[data-status="few"] [data-when]:not([data-when~="few"]),
[data-status="full"] [data-when]:not([data-when~="full"]),
[data-status="closed"] [data-when]:not([data-when~="closed"]),
[data-status="today"] [data-when]:not([data-when~="today"]),
[data-status="ended"] [data-when]:not([data-when~="ended"]),
[data-status="canceled"] [data-when]:not([data-when~="canceled"]) { display: none !important; }


/* ------------------------------------------------------------
   21. スクロールで現れる（控えめなフェード＋16px上へ）
   html.motion は JavaScript が付ける（動きを減らす設定では付けない）
   ------------------------------------------------------------ */
.motion .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.motion .reveal.is-in { opacity: 1; transform: none; }


/* ------------------------------------------------------------
   22. 動きを減らす設定
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
