/* ==========================================================================
   Vage-Table 本体サイト
   配色・フォント・余白は anniversary/（1周年記念特別サイト）を踏襲
   ========================================================================== */

/* Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, picture, video, svg { max-width: 100%; height: auto; display: block; }
input, button, textarea, select { font: inherit; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style-position: outside; }

/* Tokens
   -------------------------------------------------------------------------- */
:root {
  --font-base: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --font-display: "Playfair Display", "Times New Roman", serif;
  --font-mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;

  --color-text: #212529;
  --color-text-muted: #495057;
  --color-bg: #ffffff;

  --color-header: #5f6a2a;        /* オリーブ（anniversary と同じ） */
  --color-header-text: #ffffff;
  --color-footer-bg: #343a40;

  --color-accent: #f8be6e;        /* ヘッダー CTA ボタン */
  --color-accent-text: #3d2e12;

  --color-beige: #f0e7d0;         /* ヒーロー左・帯 */
  --color-beige-text: #5c4a1e;
  --color-brand: #9a6d48;

  --color-olive: #798535;         /* CTA セクション */
  --color-olive-text: #ffffff;

  --color-line: #e3e0d4;
  --color-panel: #faf8f1;
  --color-placeholder: #e9ecef;
  --color-footer-text: #ced4da;

  --focus-ring: #228be6;
}

/* Base
   -------------------------------------------------------------------------- */
body {
  font-family: var(--font-base);
  color: var(--color-text);
  line-height: 1.8;
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

/* Skip link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 10%;
  z-index: 200;
  padding: 10px 16px;
  background-color: var(--color-header);
  color: var(--color-header-text);
  font-weight: 700;
  border-radius: 0 0 6px 6px;
  transition: top 0.15s;
}

.skip-link:focus {
  top: 0;
}

/* Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  transition: opacity 0.15s, transform 0.15s;
}

.btn:hover { opacity: 0.85; }
.btn:active { transform: translateY(1px); }

.btn--header {
  padding: 8px 18px;
  font-size: 0.85rem;
  border-radius: 4px;
  background-color: var(--color-accent);
  color: var(--color-accent-text);
  white-space: nowrap;
}

.btn--header:focus-visible { outline-color: var(--color-accent); }

.btn--primary {
  padding: 12px 28px;
  font-size: 0.95rem;
  border-radius: 6px;
  background-color: var(--color-olive);
  color: var(--color-olive-text);
}

.btn--ghost {
  padding: 12px 28px;
  font-size: 0.95rem;
  border-radius: 6px;
  border: 2px solid var(--color-olive);
  background-color: transparent;
  color: var(--color-olive);
}

.btn--cta {
  padding: 14px 40px;
  font-size: 1rem;
  border-radius: 6px;
  background-color: #ffffff;
  color: var(--color-olive);
}

.btn--cta:focus-visible { outline-color: #ffffff; }

/* Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 20px;
  padding: 12px 10%;
  background-color: var(--color-header);
  color: var(--color-header-text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.site-header__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

/* ロゴ画像。元画像は白背景だが、ヘッダーがオリーブ（--color-header）なので
   外周の白を透過させたものを置いている。文字・野菜の周りにクリーム色の
   縁取りがあるため、オリーブの上でも読める。
   高さだけを指定し、幅は width: auto で比率を保つ
   （Reset の img { height: auto } を上書きするため height を明示する）。 */
.site-header__home { display: inline-block; }

.site-header__logo {
  width: auto;
  height: 52px;
}

.site-header__home:focus-visible { outline-offset: 4px; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

.site-nav__link {
  position: relative;
  padding: 6px 2px;
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav__link:hover { opacity: 0.85; }

.site-nav__link.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: var(--color-accent);
}

/* Hero
   -------------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 55% 45%;
  background-color: var(--color-beige);
}

.hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 6% 64px 10%;   /* 左右 10% 規約準拠（列幅に対する %） */
  background-color: var(--color-beige);
  color: var(--color-beige-text);
}

.hero__heading {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.hero__brand {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.6vw, 4.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.12em;
  color: var(--color-brand);
  white-space: nowrap;
}

.hero__lead {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mincho);
  font-size: clamp(1.15rem, 2.3vw, 1.68rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-beige-text);
}

.hero__lead-line {
  display: inline-block;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.hero__note {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 8px;
}

.hero__date {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 24px;
}

.hero__date-time {
  display: inline-block;
  white-space: nowrap;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__figure { min-height: 100%; }

/* <picture> はただの入れ物なので、高さを子の img に渡すために block + 100% にする。
   これが無いと img の height: 100% の基準が無くなり、写真が潰れる。 */
.hero__figure picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Page head（履歴・各回ページの見出し）
   -------------------------------------------------------------------------- */
.page-head {
  padding: 48px 10% 40px;
  background-color: var(--color-beige);
  color: var(--color-beige-text);
}

.page-head__eyebrow {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.page-head__eyebrow a { text-decoration: underline; }

.page-head__title {
  font-family: var(--font-mincho);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-brand);
  margin-bottom: 12px;
}

.page-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-head__lead {
  font-size: 1rem;
  line-height: 1.9;
}

/* 「想い」配下の行き来ナビ（想い / 料理 / モクテル / サービス）
   項目が増えても折り返せるよう flex-wrap。固定 width は持たせない。
   -------------------------------------------------------------------------- */
.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 16px 10%;
  background-color: var(--color-panel);
  border-bottom: 1px solid var(--color-line);
}

.subnav__link {
  padding: 7px 16px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background-color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-text);
}

.subnav__link:hover { opacity: 0.8; }

.subnav__link.is-current {
  background-color: var(--color-olive);
  border-color: var(--color-olive);
  color: #ffffff;
}

/* Content sections
   -------------------------------------------------------------------------- */
.section { padding: 56px 10%; }

.section + .section { padding-top: 0; }
.section + .section--cards { padding-top: 56px; }

.section__title {
  position: relative;
  font-family: var(--font-mincho);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
  padding-bottom: 12px;
}

.section__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background-color: var(--color-accent);
}

.section__body {
  font-size: 1rem;
  line-height: 2;
  color: var(--color-text-muted);
}

.section__body + .section__body { margin-top: 12px; }

.section__more {
  margin-top: 20px;
  font-size: 1rem;
  font-weight: 700;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-olive);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-arrow::after { content: "→"; }
.link-arrow:hover { opacity: 0.8; }

.list {
  padding-left: 1.5em;
  font-size: 1rem;
  line-height: 2;
  color: var(--color-text-muted);
}

.list li::marker { color: var(--color-brand); }

/* Badge
   -------------------------------------------------------------------------- */
.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}

.badge--next { background-color: var(--color-olive); color: #ffffff; }
.badge--past { background-color: #dee2e6; color: #343a40; }
.badge--tbd  { background-color: var(--color-accent); color: var(--color-accent-text); }

/* 次回開催パネル
   -------------------------------------------------------------------------- */
.section--next { padding-top: 56px; }

.next-panel {
  padding: 32px 32px 36px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background-color: var(--color-panel);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.next-panel--tbd { background-color: #f6f4ec; }

.next-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 8px;
}

.next-panel__title {
  font-family: var(--font-mincho);
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  font-weight: 700;
  line-height: 1.4;
}

.next-panel__theme {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-brand);
  margin-bottom: 16px;
}

.next-panel__lead {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-text-muted);
  margin-top: 16px;
}

.next-panel__note {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-top: 12px;
}

.next-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* 定義リスト（概要）
   -------------------------------------------------------------------------- */
.detail-list {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  gap: 0;
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.9;
}

.detail-list dt {
  padding: 10px 0;
  border-top: 1px solid var(--color-line);
  font-weight: 700;
}

.detail-list dd {
  padding: 10px 0;
  border-top: 1px solid var(--color-line);
  color: var(--color-text-muted);
}

.detail-list dt:first-of-type,
.detail-list dd:first-of-type { border-top: none; }

/* 開催一覧（カード）
   -------------------------------------------------------------------------- */
.event-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.event-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.event-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.event-card__date {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-brand);
}

.event-card__title {
  font-family: var(--font-mincho);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.5;
}

.event-card__title a { text-decoration: underline; text-underline-offset: 3px; }
.event-card__title a:hover { opacity: 0.8; }

.event-card__theme {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-brand);
}

.event-card__meta {
  display: grid;
  grid-template-columns: 4.5em 1fr;
  gap: 2px 8px;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 4px;
}

.event-card__meta dt { font-weight: 700; }
.event-card__meta dd { color: var(--color-text-muted); }

.event-card__lead {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.event-card__more { margin-top: auto; padding-top: 8px; }

/* 前後の回
   -------------------------------------------------------------------------- */
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 10% 56px;
}

.pager__link {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  background-color: var(--color-panel);
}

.pager__link:hover { background-color: #f3f0e6; }

.pager__label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-brand);
}

.pager__title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.5;
}

/* カード（会の過ごし方）
   -------------------------------------------------------------------------- */
.section--cards { background-color: #f6f1e4; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}

/* 枚数が変わっても収まるグリッド（Top の「過ごし方」用）。
   3枚なら3列、4枚なら4列になる。下の @media が 900px 以下で2列・600px 以下で1列に上書きする
   （同じ詳細度で後ろに書かれているため）。
   about.php の3枚組は素の .cards のままなので、この指定の影響を受けない。 */
.cards--auto { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 24px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.card__title {
  font-family: var(--font-mincho);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
}

.card__text {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--color-text-muted);
}

/* 「想い」トップの、各ページへ入るカード */
.card--link { justify-content: flex-start; }

.card__eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--color-brand);
}

.card__title a { text-decoration: underline; text-underline-offset: 3px; }
.card__title a:hover { opacity: 0.8; }

.card__more { margin-top: auto; padding-top: 6px; }

/* 写真（3 列）
   -------------------------------------------------------------------------- */
.photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.photos__item {
  overflow: hidden;
  border-radius: 6px;
  background-color: var(--color-placeholder);
}

.photos__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.photos__caption {
  padding: 8px 10px;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  background-color: #ffffff;
}

/* 写真アルバム（横に流れる帯）
   --------------------------------------------------------------------------
   【ハウスルール「左右パディング 10%」からの意図的な逸脱】
   このサイトは左右 10% の余白を基準にしているが、この帯だけは画面の端から
   端まで使う。理由は2つ。
     (1) 流れている写真が左右の画面端で切れて初めて「まだ続いている」と
         伝わる。10% の余白で両端を止めると、ただ並んだ写真が途切れて
         見えるだけになり、流れていることが読み取れない。
     (2) 両端に余白があると、そこがスクロールの終端だと誤解される。
         実際には無限に回るので、誤解させないほうがよい。
   見出しと本文は .section（padding: 56px 10%）の中に残してあるので、
   10% の基準そのものは守っている。逸脱しているのはこの帯だけ。

   【横スクロールの封じ込め】overflow-x を付けるのは .album__viewport だけ。
   .album 側に overflow: hidden を重ねて、万一中身がはみ出してもページ本体が
   横に伸びないようにしている（ページ全体の横スクロールは出さない）。
   100vw は使わない（スクロールバーの幅ぶん溢れてページが横に動くため）。 */
/* 背景は本文と同じ白のまま。
   直後の .section--cards がベージュ（#f6f1e4）なので、帯にも色を敷くと
   境目が帯の上に移り、写真が「過ごし方」の持ち物に見えてしまう。
   この写真は「Vage-Table とは」の一部なので、上の本文と同じ地色に置く。 */
.album {
  padding: 4px 0 8px;
  background-color: var(--color-bg);
  overflow: hidden;
}

.album__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  /* html { scroll-behavior: smooth } を打ち消す。
     JS が毎フレーム scrollLeft を書き換えるので、補間されると流れが途切れる。 */
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
}

.album__viewport:focus-visible {
  outline: 3px solid var(--color-header);
  outline-offset: -3px;
}

/* つまみ（スクロールバー）は、自動で流れているときだけ隠す。
   .album--live が付くのは「JS が自動送りを始められた」ときだけ
   （assets/js/main.js が付ける）。JS 無効時・写真1枚のとき・
   prefers-reduced-motion のときは付かないので、つまみが出たままになり、
   手で動かす手がかりが残る。 */
.album--live .album__viewport { scrollbar-width: none; cursor: grab; touch-action: pan-x pinch-zoom; }
.album--live .album__viewport::-webkit-scrollbar { display: none; }
.album--live .album__viewport.is-dragging { cursor: grabbing; }

/* つかんで動かしている間は、ページ全体の文字選択を止める。
   帯の中だけに user-select: none を掛けても、ポインタが帯の外に出た時点で
   帯の外の本文が選択されてしまう（ドラッグはポインタキャプチャで続くため）。
   JS が <html> に .album-dragging を付け外しする。 */
.album-dragging,
.album-dragging body { user-select: none; -webkit-user-select: none; }

.album__track {
  display: flex;
  gap: 16px;
  padding: 0 16px;
  width: max-content;
  list-style: none;
}

.album__item {
  flex: 0 0 auto;
  width: 280px;
  overflow: hidden;
  border-radius: 6px;
  background-color: var(--color-placeholder);
}

.album__item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  /* つかんで動かしている最中に、画像自体がドラッグされないようにする */
  -webkit-user-drag: none;
  user-select: none;
}

/* 帯の上の本文との間隔。帯は .section の外にあるので、
   直前のセクションの下パディングで詰めておく */
.section--about { padding-bottom: 32px; }

/* 帯
   -------------------------------------------------------------------------- */
/* 帯には料理の写真を薄く敷く。ベージュを 86% の不透明度で重ねているので、
   写真は 14% しか出ない。全画素で実測したコントラスト比は
   最悪 5.10:1（文字 #5c4a1e）。写真なしのときは 6.95:1 なので、
   AA（4.5:1）に対しては余裕がある。url() は CSS ファイルからの相対パス。 */
.band {
  padding: 40px 10%;
  background-color: var(--color-beige);
  background-image:
    linear-gradient(rgba(240, 231, 208, 0.86), rgba(240, 231, 208, 0.86)),
    url("../images/bg-table.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
}

.band__text {
  font-family: var(--font-mincho);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.7;
  color: var(--color-beige-text);
}

.band__line {
  display: inline-block;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* CTA
   -------------------------------------------------------------------------- */
/* CTA にも料理の写真を敷く。オリーブを少し暗くした #5a6426 を 90% で重ねる。
   写真は 10% しか出ない。全画素で実測したコントラスト比は最悪 5.09:1（文字は白）。
   なお写真を入れる前の #798535 は 4.02:1 で、本文（16px）としては AA に
   届いていなかった。この変更でむしろ読みやすくなっている。
   background-color は画像が読めなかったときの受け皿なので、重ねる色と同じにする。 */
.cta {
  padding: 64px 10%;
  background-color: #5a6426;
  background-image:
    linear-gradient(rgba(90, 100, 38, 0.90), rgba(90, 100, 38, 0.90)),
    url("../images/bg-table.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--color-olive-text);
  text-align: center;
}

.cta__title {
  font-family: var(--font-mincho);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
}

.cta__body {
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 28px;
}

/* Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 28px 10%;
  background-color: var(--color-footer-bg);
  color: var(--color-header-text);
  text-align: center;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  font-weight: 700;
}

.site-footer__nav a { text-decoration: underline; text-underline-offset: 3px; }

.site-footer__note {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--color-footer-text);
  margin-bottom: 8px;
}

.site-footer__contact {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--color-footer-text);
  margin-bottom: 8px;
  word-break: break-word;
}

/* メールアドレス本体。JS が有効なときは中身が <a> に置き換わる */
.mailaddr { font-weight: 700; }
.mailaddr a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.site-footer__copy {
  font-size: 0.8rem;
  line-height: 1.6;
  opacity: 0.85;
}

/* データの状態帯（ローカル確認時のみ表示。本番では出力されない）
   -------------------------------------------------------------------------- */
.data-alert {
  padding: 12px 10%;
  background-color: #fff3bf;
  color: #5c4a1e;
  border-bottom: 2px solid var(--color-accent);
  font-size: 0.9rem;
  line-height: 1.7;
}

.data-alert--error {
  background-color: #ffe3e3;
  color: #842029;
  border-bottom-color: #e03131;
}

.data-alert__title { font-weight: 700; }

.data-alert__list { padding-left: 1.5em; }

/* Reveal（下から遅れてフェードイン）
   JS が動かないときは .js が付かないため、常時表示のまま。
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* グループ内は順番に少しずつ遅らせる（JS で style 属性を書かずに CSS だけで実現） */
.js .reveal-group > .reveal:nth-child(1) { transition-delay: 0s; }
.js .reveal-group > .reveal:nth-child(2) { transition-delay: 0.1s; }
.js .reveal-group > .reveal:nth-child(3) { transition-delay: 0.2s; }
.js .reveal-group > .reveal:nth-child(4) { transition-delay: 0.3s; }
.js .reveal-group > .reveal:nth-child(5) { transition-delay: 0.4s; }
.js .reveal-group > .reveal:nth-child(6) { transition-delay: 0.5s; }
.js .reveal-group > .reveal:nth-child(n+7) { transition-delay: 0.6s; }

/* Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }

  .hero__figure { order: -1; min-height: 0; }

  /* 写真そのものの比率に合わせる（1000x544 ＝ 1.838）。
     16/9 のままだと object-fit: cover が上下を削り、下端の白い紙の先にある
     木のテーブルが戻ってくる。写真の比率と枠の比率を一致させておけば、
     どこも削られない。 */
  .hero__figure img { height: auto; aspect-ratio: 1000 / 544; }

  .site-header__logo { height: 44px; }

  .hero__text { padding: 48px 10%; }

  .cards { grid-template-columns: repeat(2, 1fr); }

  .photos { grid-template-columns: repeat(2, 1fr); }

  .album__item { width: 240px; }
}

@media (max-width: 600px) {
  .site-header {
    padding: 10px 10% 12px;
    gap: 8px;
  }

  .site-header__title { flex-basis: 100%; font-size: 1.15rem; }

  .site-header__logo { height: 40px; }

  /* SP では <picture> が縦長の写真（640x853）に切り替わる。
     900px 以下で掛けた 1000/544（横長の比率）を打ち消し、縦長に合う 4/5 にする。
     3/4 にすると 390px 幅で高さ 520px になり画面を占領しすぎるため 4/5。 */
  .hero__figure img { aspect-ratio: 4 / 5; }

  .site-nav {
    flex-basis: 100%;
    justify-content: space-between;
    gap: 8px 12px;
  }

  .btn--header { padding: 8px 14px; }

  .section { padding: 40px 10%; }

  .section + .section--cards { padding-top: 40px; }

  .section--next { padding-top: 40px; }

  .page-head { padding: 36px 10% 32px; }

  .subnav { padding: 12px 10%; gap: 8px; }

  .subnav__link { padding: 7px 12px; font-size: 0.85rem; }

  .next-panel { padding: 24px 20px 28px; }

  .detail-list { grid-template-columns: 5.5em 1fr; }

  .event-list { grid-template-columns: 1fr; gap: 16px; }

  .photos { grid-template-columns: 1fr; gap: 16px; }

  .album__track { gap: 12px; padding: 0 12px; }

  .album__item { width: 200px; }

  .section--about { padding-bottom: 24px; }

  .cards { grid-template-columns: 1fr; gap: 16px; }

  .pager { padding: 16px 10% 40px; }

  .pager__link { flex-basis: 100%; }

  .cta { padding: 48px 10%; }

  .btn--cta,
  .btn--primary,
  .btn--ghost { width: 100%; }

  .hero__actions { flex-direction: column; }

  .next-panel__actions { flex-direction: column; }
}

/* Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .reveal-group > .reveal { transition-delay: 0s; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }

  /* 写真アルバムは自動で流さない（assets/js/main.js 側でも動き出さない）。
     流れない代わりに、手で動かす手がかりとしてつまみを必ず出す。
     .album__viewport は overflow-x: auto のままなので、指・つまみ・
     矢印キーのどれでも全部の写真を見られる。 */
  .album__viewport { scrollbar-width: thin; }
  .album__viewport::-webkit-scrollbar { display: block; height: 10px; }
  .album__viewport::-webkit-scrollbar-thumb { background-color: #b9b19a; border-radius: 5px; }
}

/* Print
   -------------------------------------------------------------------------- */
@media print {
  body { color: #000; background: #fff; }
  .site-header { position: static; box-shadow: none; }
  .js .reveal { opacity: 1; transform: none; }
  a { color: #000; text-decoration: underline; }
}
