/* =========================================================
   クリスマスマーケット  style.css
   デザイン：「招待状」をテーマにした大人のクリスマス
   配色：ボルドー×シャンパンゴールド（案Aで決定）
   ========================================================= */

/* ---------- 色・文字・余白の決まり ---------- */
:root {
  /* 文字の大きさ：はじめの指定から1.5pt大きくしたあと、1pt（約1.3px）小さくしている */
  /* 色 */
  --accent: #8E1B2C;          /* ボルドー：縦帯・封蝋の丸・強調 */
  --seal: #8E1B2C;            /* 「入場無料」の封蝋 */
  --champagne: #C2A36B;       /* シャンパンゴールド：細線・飾り（文字には使わない） */
  --champagne-light: #EAD9B0; /* 濃い地の上の文字・アイコン */
  --ivory: #F6EEDC;           /* 写真の上の文字 */
  --gold-text: #7A5A1C;       /* 金色の文字・白文字を載せる金の帯 */
  --gold-script: #9E7B3A;     /* 筆記体の英字（About us、Follow us!! など）の金色 */
  --white: #FFFFFF;
  --panel: #F4F3F1;           /* 表の値・注意事項・アクセスの枠 */
  --text: #2E2A2B;            /* 本文（温かみのある墨色） */
  --sub-text: #666062;
  --line-green: #00B900;      /* LINEボタンのみ */

  /* 文字 */
  --font-jp: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --font-latin: "Cormorant Garamond", "Zen Old Mincho", "Hiragino Mincho ProN", serif;
  --font-script: "Pinyon Script", "Snell Roundhand", cursive;

  /* 寸法 */
  --band-width: 56px;
  --main-width: 520px;
  --sidebar-width: 352px;
  --side-padding: 24px;
  --radius-photo: 0;          /* 写真・店舗カードは角丸なし */
  --radius-panel: 12px;
}

/* ---------- 基本 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 16.7px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold-text);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--white);
  color: var(--text);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ---------- 4列の骨組み（1200px以上） ---------- */
.page {
  display: grid;
  grid-template-columns: var(--band-width) 1fr var(--main-width) 1fr;
  min-height: 100vh;
}

.band,
.sidebar,
.photo-stream {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  height: 100dvh;
}

/* ---------- 1列目：縦帯 ---------- */
.band {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: var(--accent);
  color: var(--champagne-light);
  /* 右端にシャンパンゴールドの細線（招待状の縁取り） */
  box-shadow: inset -1px 0 0 rgba(194, 163, 107, 0.7);
}

.band__sns {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.band__title {
  writing-mode: vertical-rl;
  font-family: var(--font-latin);
  font-size: 15.7px;
  font-weight: 500;
  letter-spacing: 0.34em;
  line-height: 1;
}

.icon-link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.icon {
  width: 21px;
  height: 21px;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.icon-link--light {
  color: var(--champagne-light);
  transition: color 0.2s;
}

.icon-link--light:hover {
  color: var(--white);
}

.icon-link--light:focus-visible {
  outline-color: var(--champagne-light);
  outline-offset: 0;
}

/* ---------- 2列目：サイドメニュー ---------- */
.sidebar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
  overflow-y: auto;
}

.sidebar__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 250px;
}

/* ノートPCなど縦が低い画面では、ロゴを画面の高さに合わせて小さくする
   （画面の高さ620pxほどでも、サイドメニュー全体が1画面に収まる） */
.sidebar__logo {
  display: block;
  width: min(100%, clamp(160px, 28vh, 250px));
}

/* ロゴの下の日付と「入場無料」（トップ画像と同じ組み方を、白地用の色で） */
.sidebar__date-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

.sidebar__date {
  font-family: var(--font-latin);
  line-height: 1;
  color: var(--text);
}

/* 日付の組み方：大きな「12.7」の右に、「2026」と「SUN」を2段で小さく置く
   「SUN」の下端を「12.7」の下端（文字の並ぶ線）にそろえる */
.sidebar__date-lockup {
  display: flex;
  align-items: stretch;
  gap: 10px;
  /* 数字の高さをそろえる（下に長く出る昔風の数字にしない） */
  font-variant-numeric: lining-nums;
}

/* 「2026」の上端を「12.7」の上端に、「SUN」の下端を「12.7」の下端にそろえる
   （文字の上下の余白を切り詰めて、文字の形そのものの高さで並べる） */
.sidebar__date-num,
.sidebar__date-year,
.sidebar__date-day {
  text-box: trim-both cap alphabetic;
}

.sidebar__date-meta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar__date-year {
  font-size: 15.7px;
  font-weight: 600;
  letter-spacing: 0.3em;
}

.sidebar__date-num {
  font-size: 44.7px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.sidebar__date-day {
  font-size: 15.7px;
  font-weight: 600;
  letter-spacing: 0.3em;
}

.sidebar__badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--seal);
  color: var(--ivory);
  outline: 1px solid rgba(234, 217, 176, 0.75);
  outline-offset: -4px;
  font-size: 14.7px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-align: center;
}

/* 開催時間（日付の下に1行） */
.event-time {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  font-family: var(--font-latin);
  font-variant-numeric: lining-nums;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
}

.event-time--side {
  margin-top: 8px;
  color: var(--text);
  font-size: 16.7px;
}

.mobile-menu .event-time--side {
  color: var(--ivory);
}

.event-time--hero {
  margin-top: 12px;
  color: var(--ivory);
  font-size: 22.7px;
}

/* 飾り線：細線＋小さな星＋細線 */
.ornament {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 14px;
  color: var(--seal);
}

.ornament::before,
.ornament::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--champagne);
}

.ornament__star {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.side-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-left: 36px;
}

.side-nav__link {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  font-size: 16.7px;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: color 0.2s;
}

/* 項目の印：小さな菱形 */
.side-nav__link::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--champagne);
  transform: rotate(45deg);
  transition: background-color 0.2s;
}

.side-nav__link:hover {
  color: var(--accent);
}

.side-nav__link:hover::before {
  background: var(--accent);
}

/* PCのサイドメニューだけ、縦が低い画面では項目の間隔を画面の高さに合わせて詰める
   （スマホのメニューは、指で押しやすい44pxのまま） */
.sidebar .side-nav__link {
  min-height: clamp(31px, 5vh, 44px);
}

/* 文章を「言葉のまとまり（文節）」の区切りでだけ改行させる
   （HTMLの <wbr> の位置で改行し、単語の途中では折り返さない。
     最後の行が1〜2文字だけにならないよう、行の長さもそろえる） */
.u-phrase {
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

/* 見出しの頭に置く金の雪の結晶（プレゼントの3つの見出し） */
.title-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 0.45em;
  vertical-align: -0.12em;
  color: var(--gold-script);
}

/* 途中で改行させないひとかたまり（「当たる！」の「！」だけが次の行に残るのを防ぐ） */
.u-nowrap {
  white-space: nowrap;
}

/* 赤字で強調する文章（ボルドー） */
.u-red {
  color: var(--accent);
}

/* スマホのときだけ改行する（PCでは1行） */
.u-sp {
  display: none;
}

/* PCだけ／スマホだけに出すアイコンなど */
.u-only-sp {
  display: none !important;
}

@media (max-width: 1023px) {
  .u-sp {
    display: inline;
  }

  .u-only-sp {
    display: inline-block !important;
  }

  .u-only-pc {
    display: none !important;
  }
}

/* ボタン（両端が丸い形） */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 32px;
  border-radius: 999px;
  font-family: var(--font-jp);
  font-size: 16.7px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: opacity 0.2s;
}

.button:hover {
  opacity: 0.85;
}

.button__icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.button--line {
  background: var(--line-green);
  color: var(--white);
}

/* Instagramをフォロー：サイトのボルドーで */
.button--instagram {
  background: var(--accent);
  color: var(--white);
}

.sidebar__line {
  margin-top: 20px;
}

/* ---------- 左下の会場の外観 ----------
   縦帯とサイドメニューの幅いっぱいに、画面の下に固定して置く。
   ・外観の高さ（--scene-h）は「本来の大きさ」と「メニューを除いた残りの高さ」の小さいほう
   ・サイドメニューは、外観の上に残った場所の中で上下中央にそろえる
   ・縦の高さが880px以上の画面で表示する（FHDのモニターでブラウザを最大化した大きさを含む）
     880〜1299px：外観の場所を空けるため、サイドメニューをひと回りコンパクトにする
     1300px以上 ：サイドメニューは通常の大きさのまま
   ・1200px未満の画面と、縦が880px未満の画面では表示しない
   ・右端は本文に向かって白く溶け込ませる */
.venue-scene {
  display: none;
}

@media (min-width: 1200px) and (min-height: 880px) {
  :root {
    /* 縦帯＋サイドメニューの幅 */
    --scene-column: calc(var(--band-width) + (100vw - var(--band-width) - var(--main-width)) / 2);
    /* メニューの高さ＋上下の余白（コンパクト時） */
    --scene-menu: 660px;
    /* 外観の高さ：本来の大きさ（幅いっぱい）か、メニューと余白を除いた残りの高さ */
    --scene-h: min(calc(var(--scene-column) * 1301 / 1400), calc(100vh - var(--scene-menu)));
  }

  .sidebar {
    padding-bottom: calc(var(--scene-h) + 28px);
  }

  /* サイドメニューをひと回りコンパクトに（外観の場所を空ける） */
  .sidebar__logo {
    width: min(100%, 200px);
  }

  .sidebar .side-nav__link {
    min-height: 36px;
  }

  .sidebar .ornament {
    margin: 14px 0 10px;
  }

  .sidebar__line {
    margin-top: 16px;
  }

  .venue-scene {
    display: block;
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 1;
    width: calc(var(--scene-h) * 1400 / 1301);
    height: var(--scene-h);
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, #000 78%, transparent 100%);
    mask-image: linear-gradient(to right, #000 78%, transparent 100%);
  }

  .venue-scene img {
    width: 100%;
    height: 100%;
  }
}

/* 縦に十分な高さがある画面では、サイドメニューを通常の大きさに戻す */
@media (min-width: 1200px) and (min-height: 1300px) {
  :root {
    --scene-menu: 790px;
  }

  .sidebar__logo {
    width: min(100%, 250px);
  }

  .sidebar .side-nav__link {
    min-height: 44px;
  }

  .sidebar .ornament {
    margin: 18px 0 14px;
  }

  .sidebar__line {
    margin-top: 20px;
  }
}

/* ---------- 3列目：本文 ---------- */
.main {
  min-width: 0;
}

/* トップ画像 */
.hero {
  position: relative;
  height: calc(100vh - 32px);
  height: calc(100dvh - 32px);
  min-height: 480px;
  margin: 16px 0;
  overflow: hidden;
  border-radius: var(--radius-photo);
  background: #1C1413;
  color: var(--ivory);
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 下へスクロールすると少しずつ拡大する（下の @supports か main.js で動かす） */
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
}

/* スクロールに合わせた動きをCSSだけで作れるブラウザでは、
   ブラウザ側で動かす（JavaScriptより滑らか）。対応していない場合は main.js が動かす */
@keyframes hero-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.15); }
}

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__photo {
      animation: hero-zoom linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 100vh;
    }
  }
}

/* 招待状のような飾り枠（装飾.png を8つの部品に分けたもの）
   四隅の飾りはそのままの形で置き、その間のまっすぐな線だけを伸ばす。
   トップ画像の縦横比が変わっても飾りがゆがまない。
   （iPhoneのSafari・Chromeでも確実に表示されるよう、背景画像の重ね合わせで描いている） */
.hero__frame {
  --corner: 56px;
  position: absolute;
  inset: 12px;
  z-index: 1;
  background:
    url("../img/frame-tl.png") left top / var(--corner) var(--corner) no-repeat,
    url("../img/frame-tr.png") right top / var(--corner) var(--corner) no-repeat,
    url("../img/frame-bl.png") left bottom / var(--corner) var(--corner) no-repeat,
    url("../img/frame-br.png") right bottom / var(--corner) var(--corner) no-repeat,
    url("../img/frame-t.png") center top / calc(100% - var(--corner) * 2) var(--corner) no-repeat,
    url("../img/frame-b.png") center bottom / calc(100% - var(--corner) * 2) var(--corner) no-repeat,
    url("../img/frame-l.png") left center / var(--corner) calc(100% - var(--corner) * 2) no-repeat,
    url("../img/frame-r.png") right center / var(--corner) calc(100% - var(--corner) * 2) no-repeat;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 52px;
}

/* ロゴを主役に大きく（本文の幅の約8割） */
.hero__logo {
  /* 縦が低い画面（ノートPCなど）では、トップの高さに合わせてロゴを小さくする */
  width: min(80%, 48vh);
  max-width: 420px;
  margin: 0;
}

/* 日付はロゴの下に寄せ、ロゴより控えめな大きさに */
.hero__date-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.hero__date {
  font-family: var(--font-latin);
  line-height: 1;
}

/* 日付の組み方：大きな「12.7」の右に、「2026」と「SUN」を2段で小さく置く */
.hero__date-lockup {
  display: flex;
  align-items: stretch;
  gap: 14px;
  /* 数字の高さをそろえる（下に長く出る昔風の数字にしない） */
  font-variant-numeric: lining-nums;
}

/* 「2026」の上端を「12.7」の上端に、「SUN」の下端を「12.7」の下端にそろえる
   （文字の上下の余白を切り詰めて、文字の形そのものの高さで並べる） */
.hero__date-num,
.hero__date-year,
.hero__date-day {
  text-box: trim-both cap alphabetic;
}

.hero__date-meta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero__date-year {
  font-size: 19.7px;
  font-weight: 600;
  letter-spacing: 0.32em;
}

.hero__date-num {
  font-size: 68.7px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero__date-day {
  font-size: 19.7px;
  font-weight: 600;
  letter-spacing: 0.32em;
}

/* 「入場無料」：封蝋（シーリングスタンプ）の丸 */
.hero__badge {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--seal);
  color: var(--ivory);
  outline: 1px solid rgba(234, 217, 176, 0.75);
  outline-offset: -5px;
  font-size: 14.7px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-align: center;
}

/* ---------- 4列目：流れる会場写真 ---------- */
.photo-stream {
  overflow: hidden;
  /* 本文との間を広めに（左32px）、画面の端側は12px */
  padding: 0 12px 0 32px;
}

.photo-stream__track {
  animation: photo-stream 50s linear infinite;
}

.photo-stream:hover .photo-stream__track {
  animation-play-state: paused;
}

.photo-stream__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 12px;
}

.photo-stream__item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-photo);
}

@keyframes photo-stream {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .photo-stream__track {
    animation: none;
  }
}

/* ---------- トップ画像：ロゴと日付を読みやすくする黒の重ね（PC・スマホ共通） ----------
   写真の上に、上から下へ薄くなる黒を重ねる。飾り枠・ロゴ・日付はこの上に表示される */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 62%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.62) 40%,
    rgba(0, 0, 0, 0.3) 72%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
}

/* ---------- 1024〜1199px：写真の列を隠した3列 ---------- */
@media (max-width: 1199px) {
  .page {
    grid-template-columns: var(--band-width) var(--sidebar-width) 1fr;
  }

  .main {
    justify-self: center;
    width: 100%;
    max-width: var(--main-width);
  }

  .photo-stream {
    display: none;
  }
}

/* =========================================================
   本文の各セクション
   ========================================================= */
.contents {
  padding: 64px var(--side-padding) 0;
}

.section + .section {
  margin-top: 64px;
}

[id] {
  scroll-margin-top: 24px;
}

/* セクション見出し：金の丸に筆記体を重ねる＋明朝の見出し */
.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.section-heading__en {
  position: relative;
  z-index: 0;
  padding: 0 2px 0 16px;
  font-family: var(--font-script);
  font-size: 25.7px;
  line-height: 36px;
  white-space: nowrap;
  color: var(--gold-script);
}

.section-heading__en::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--champagne);
  opacity: 0.5;
}

.section-heading__ja {
  margin: 0;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.1em;
}

/* 枠の中で中央そろえにする見出し（幅が足りないときは英字と日本語を2行に） */
.section-heading--center {
  flex-direction: column;
  justify-content: center;
  row-gap: 2px;
  margin-bottom: 28px;
  text-align: center;
}

/* 枠の中の大見出しは、中の項目の見出しと差がつくよう大きめに、色はボルドー */
.section-heading--center .section-heading__ja {
  color: var(--seal);
  font-size: 25px;
}

/* 英字の下の金の丸をつけない見出し */
.section-heading--no-dot .section-heading__en {
  padding-left: 0;
}

.section-heading--no-dot .section-heading__en::before {
  content: none;
}

/* 2. About */
.about {
  text-align: center;
}

.about .section-heading {
  justify-content: flex-start;
}

.about__catch {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.12em;
}

/* キャッチコピーの両側の金のツリー（絵文字🎄の代わり。どの端末でも同じ見た目になる） */
.about__icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin: 0 0.35em;
  vertical-align: -0.2em;
  color: var(--gold-script);
}

.about__catch::after {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  margin: 20px auto;
  background: var(--champagne);
}

.about__text {
  display: grid;
  gap: 1.2em;
  font-size: 14.5px;
}

/* 3. 情報テーブル */
.info-table {
  display: grid;
  gap: 8px;
  margin: 0;
}

.info-table__row {
  display: grid;
  /* 文字を大きくしたので、ラベルの幅を96pxから108pxに */
  grid-template-columns: 108px 1fr;
}

.info-table__label {
  display: flex;
  align-items: center;
  padding: 12px 10px;
  background: var(--accent);
  color: var(--white);
  font-size: 14.7px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.info-table__value {
  margin: 0;
  padding: 12px 16px;
  background: var(--panel);
  font-size: 15.7px;
  line-height: 1.7;
}

/* 4. プレゼント */
/* 2つのプレゼントの間の仕切り線（LINE登録ボタンの下） */
.present-item + .present-item {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--champagne);
}

.present-item__banner {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-photo);
}

.present-item__title {
  margin: 20px 0 14px;
  font-size: 18.7px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-align: center;
}

.present-item__text {
  font-size: 15.7px;
  /* 見出しと同じくセンター揃え */
  text-align: center;
}

.present-item__action {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

/* 5. 大聖堂イベント */
.collage {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  aspect-ratio: 710 / 330;
}

.collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-photo);
}

.collage__main {
  grid-row: span 2;
}

/* 3つのイベント：写真の下に企画名・条件・説明。イベントの間は金の細い仕切り線 */
.event-item + .event-item {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--champagne);
}

.event-block {
  margin-top: 20px;
  /* すべてのセクションの文章はセンター揃え */
  text-align: center;
}

/* 各イベント名：頭に金の雪の結晶。大見出し（大聖堂イベント）より一段小さく */
.event-block__title {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

/* 2行になる長い見出し：マークを文字のすぐ横に置いたまま中央揃えにする */
.event-block__title--multi {
  display: block;
  text-align: center;
}

.event-block__icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 0.3em;
  color: var(--gold-script);
}

.event-block__conditions {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
  margin: 12px 0 14px;
  padding: 8px 16px;
  background: var(--accent);
  color: var(--white);
  font-size: 14.7px;
  letter-spacing: 0.06em;
  line-height: 1.7;
}

.event-block__text {
  font-size: 15.7px;
}

/* 企画の中の「ご注意」：線の枠 */
.caution {
  margin-top: 20px;
  padding: 16px 20px 18px;
  border: 1px solid var(--champagne);
  border-radius: 4px;
}

.caution__title {
  margin-bottom: 8px;
  font-size: 15.7px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
}

/* 注意事項の箇条書きは、印（菱形）と文字の頭をそろえるため、
   ひとかたまりを枠の中央に置いたうえで、中は左揃えにする */
.caution__list {
  display: inline-block;
  text-align: left;
}

.caution__list li {
  position: relative;
  padding-left: 1.2em;
  font-size: 14.7px;
  line-height: 1.8;
}

.caution__list li::before {
  content: "";
  position: absolute;
  top: 0.8em;
  left: 0.15em;
  width: 5px;
  height: 5px;
  background: var(--champagne);
  transform: rotate(45deg);
}

.event-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-photo);
}

/* 金の二重線の枠（プレゼント・大聖堂イベント・DJパーティー） */
/* 金の飾り枠（プレゼント・大聖堂イベント・DJパーティー・3つのブース）
   トップ画像と同じ装飾（装飾.png を8つに分けた部品）を、ひと回り小さく品よく使う。
   四隅の飾りの大きさは --corner。四隅の飾りに中身がかからないよう、上下は広め、左右は線の内側まで */
.gold-frame {
  --corner: 44px;
  padding: 40px 28px 44px;
  background:
    url("../img/frame-tl.png") left top / var(--corner) var(--corner) no-repeat,
    url("../img/frame-tr.png") right top / var(--corner) var(--corner) no-repeat,
    url("../img/frame-bl.png") left bottom / var(--corner) var(--corner) no-repeat,
    url("../img/frame-br.png") right bottom / var(--corner) var(--corner) no-repeat,
    url("../img/frame-t.png") center top / calc(100% - var(--corner) * 2) var(--corner) no-repeat,
    url("../img/frame-b.png") center bottom / calc(100% - var(--corner) * 2) var(--corner) no-repeat,
    url("../img/frame-l.png") left center / var(--corner) calc(100% - var(--corner) * 2) no-repeat,
    url("../img/frame-r.png") right center / var(--corner) calc(100% - var(--corner) * 2) no-repeat;
}

 
/* 6. DJパーティー */
.dj-frame {
  text-align: center;
}

.dj-frame__catch {
  margin: 0 0 24px;
  font-size: 18.7px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.dj-frame__text {
  margin: 12px 0 24px;
  font-size: 15.7px;
}

.dj-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 16px;
}

.dj-card__photo {
  width: 100%;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  border-radius: var(--radius-photo);
}

.dj-card__name {
  margin-top: 8px;
  font-size: 15.7px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

/* DJ名の下に改行して小さく添える所属名（例：(Vente Sonido Colectivo)） */
.dj-card__unit {
  display: block;
  margin-top: 0;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* 7〜9. 店舗カード（2列、奇数のとき最後の1枚は中央） */
.shop-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.shop-card {
  flex: 0 0 calc(50% - 8px);
  overflow: hidden;
  border-radius: var(--radius-photo);
  background: var(--accent);
}

.shop-card__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.shop-card__name {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 10px;
  color: var(--white);
  font-size: 14.7px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-align: center;
}

/* Instagramのリンクは帯全体を押せるようにする（押せる範囲を44px以上に） */
.shop-card__name a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: stretch;
  width: calc(100% + 20px);
  min-height: 48px;
  margin: -8px -10px;
  padding: 8px 10px;
  text-decoration: none;
}

.shop-card__name a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shop-card__name a:focus-visible {
  outline-color: var(--white);
}

.shop-card__icon {
  flex: none;
  width: 16px;
  height: 16px;
}

.shop-empty {
  padding: 24px;
  background: var(--panel);
  border-radius: var(--radius-panel);
  font-size: 15.7px;
  text-align: center;
}

/* 10. アクセス
   地図は角ばった形で枠いっぱいに。住所は箱やラベルの塗りをやめ、
   金の「住所」と細い縦線で区切っただけのシンプルな1行にする */
.access-panel {
  padding: 0;
}

.access-panel__map {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 0;
  background: #DAD6D0;
}

.access-panel__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  /* 地図の色を抑えてモノトーンに（サイトの落ち着いた配色になじませる） */
  filter: grayscale(1) sepia(0.12) contrast(1.02);
}

.access-panel__address {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 16px;
  font-size: 15.7px;
  letter-spacing: 0.06em;
}

.access-panel__label {
  flex: none;
  padding-right: 14px;
  border-right: 1px solid var(--champagne);
  color: var(--gold-text);
  font-size: 14.7px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.16em;
}

/* 11. 昨年の様子 */
/* 6つに区切った格子に、写真を2つ分ずつ置く（見た目は3列）
   枚数が3で割り切れないときも、最後の行が欠けて見えないようにする */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.gallery-grid li {
  grid-column: span 2;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-photo);
}

/* 最後の行が1枚だけのとき：横いっぱいに */
.gallery-grid li:last-child:nth-child(3n + 1) {
  grid-column: 1 / -1;
}

.gallery-grid li:last-child:nth-child(3n + 1) img {
  aspect-ratio: 2 / 1;
}

/* 最後の行が2枚のとき：半分ずつ */
.gallery-grid li:nth-last-child(2):nth-child(3n + 1),
.gallery-grid li:last-child:nth-child(3n + 2) {
  grid-column: span 3;
}

.gallery-grid li:nth-last-child(2):nth-child(3n + 1) img,
.gallery-grid li:last-child:nth-child(3n + 2) img {
  aspect-ratio: 3 / 2;
}

/* PC（1200px以上）では右の写真の列で見せるので、「昨年の様子」は隠す */
@media (min-width: 1200px) {
  .gallery {
    display: none;
  }
}

/* 12. フッター */
.footer {
  margin-top: 88px;
}

.footer__follow {
  color: var(--gold-script);
  font-family: var(--font-script);
  font-size: 42.7px;
  line-height: 1;
  text-align: center;
}

.footer__body {
  margin-top: 8px;
  padding: 52px 24px 40px;
  border-radius: 50% 50% 0 0 / 56px 56px 0 0;
  background: var(--accent);
  color: var(--champagne-light);
  text-align: center;
}

/* 主催（フッターの中にシンプルに1行） */
/* 団体名の途中で改行されないよう、1かたまりにする */
.footer__organizer-name {
  display: inline-block;
}

.footer__organizer {
  margin-top: 24px;
  color: var(--champagne-light);
  font-size: 14.7px;
  letter-spacing: 0.08em;
}

.footer__title {
  margin-top: 10px;
  font-family: var(--font-latin);
  letter-spacing: 0.3em;
}

.footer__title small {
  font-size: 15.7px;
}

/* 注意事項（フッターの一番下にシンプルに） */
.footer__notes {
  max-width: 400px;
  margin: 28px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(234, 217, 176, 0.4);
  text-align: left;
}

.footer__notes-title {
  margin: 0 0 8px;
  color: var(--champagne-light);
  font-size: 14.7px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
}

.footer__notes-list li {
  position: relative;
  padding-left: 1em;
  color: var(--ivory);
  font-size: 13px; /* 1行に収まる項目を増やすため小さめ */
  line-height: 1.8;
}

.footer__notes-list li::before {
  content: "・";
  position: absolute;
  left: -0.2em;
}

/* SNSの丸いアイコン（フッター・スマホメニュー） */
.sns-circles {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.sns-circle {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.sns-circle .icon {
  width: 24px;
  height: 24px;
}

.sns-circle--filled {
  background: var(--white);
  color: var(--accent);
}

.sns-circles--outline .sns-circle {
  border: 1px solid var(--champagne-light);
  color: var(--white);
}

.footer .sns-circle:focus-visible,
.mobile-menu .sns-circle:focus-visible,
.mobile-menu a:focus-visible {
  outline-color: var(--white);
}

/* 本文のフェードイン（main.jsが html に js-fade を付けたときだけ働く） */
/* 隠すときは一瞬で（読み込み直後のちらつきを防ぐ）、表示するときだけ0.8秒かける */
.js-fade .contents > .section,
.js-fade .footer {
  opacity: 0;
}

.js-fade .contents > .section.is-visible,
.js-fade .footer.is-visible {
  opacity: 1;
  transition: opacity 0.8s ease;
}

/* =========================================================
   スマホ用：menuボタンとメニューパネル（PCでは非表示）
   ========================================================= */
.menu-button,
.mobile-menu {
  display: none;
}

/* ---------- 1023px以下：スマホ表示 ---------- */
@media (max-width: 1023px) {
  .page {
    display: block;
  }

  .band,
  .sidebar,
  .photo-stream {
    display: none;
  }

  .main {
    max-width: var(--main-width);
    margin: 0 auto;
  }

  [id] {
    scroll-margin-top: 80px;
  }

  #top {
    scroll-margin-top: 0;
  }

  .hero {
    /* スクロールでアドレスバーが出入りしても高さが変わらないよう、
       バーが出ているときの画面の高さ（svh）に固定する（カタつき防止） */
    height: 100vh;
    height: 100svh;
    min-height: 560px;
    margin: 0;
    border-radius: 0;
  }

  .hero__content {
    padding-top: 80px;
  }

  .hero__logo {
    width: 84%;
  }

  .hero__frame {
    --corner: 48px;
    inset: 10px;
  }

  .hero__date-num {
    font-size: 56.7px;
  }

  .hero__date-day {
    font-size: 16.7px;
  }

  .hero__date-year {
    font-size: 16.7px;
  }

  .hero__badge {
    width: 60px;
    height: 60px;
  }

  .section-heading__en {
    font-size: 22.7px;
  }

  .section-heading__ja {
    /* 小さいスマホでも「トリプルチャンス！プレゼント」が1行に収まるよう、画面幅に合わせて少し縮める */
    font-size: clamp(17.8px, calc(5vw + 1.3px), 21px);
    letter-spacing: 0.06em;
  }

  .section-heading--center .section-heading__ja {
    /* 枠の中の大見出しは、枠の外の見出しより少し大きく
       （長い「トリプルチャンス！プレゼント」は、スマホでは「！」のあとで改行する） */
    font-size: clamp(18.5px, calc(5.3vw + 1.3px), 23px);
  }

  .gold-frame {
    --corner: 34px;
    padding: 32px 18px 34px;
  }

  /* 枠の中で店名が細かく折り返さないよう、スマホでは間隔を詰める */
  .shop-list {
    gap: 10px;
  }

  .shop-card {
    flex-basis: calc(50% - 5px);
  }

  .shop-card__name {
    padding: 8px 6px;
    letter-spacing: 0;
  }

  .shop-card__name a {
    gap: 6px;
    width: calc(100% + 12px);
    margin: -8px -6px;
    padding: 8px 6px;
  }

  /* menuボタン */
  .menu-button {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 0;
    /* menu／closeボタンは白の地に金の線と文字
       （白地でも読みやすいよう、文字用の濃いめの金を使う） */
    background: var(--white);
    color: var(--gold-text);
    /* 白い本文の上でもボタンの形がわかるよう、ふちにシャンパンゴールドの細い線 */
    box-shadow: inset 0 0 0 1px rgba(194, 163, 107, 0.6);
    font-family: var(--font-latin);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .menu-button__lines {
    position: relative;
    display: grid;
    gap: 6px;
    width: 26px;
  }

  .menu-button__lines span {
    display: block;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.3s, opacity 0.3s;
  }

  .menu-button__label {
    font-size: 14.7px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.08em;
  }

  .menu-button[aria-expanded="true"] .menu-button__lines span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] .menu-button__lines span:nth-child(2) {
    opacity: 0;
  }

  .menu-button[aria-expanded="true"] .menu-button__lines span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  /* メニューパネル */
  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: block;
    visibility: hidden;
    transition: visibility 0s 0.3s;
  }

  .mobile-menu.is-open {
    visibility: visible;
    transition: visibility 0s;
  }

  .mobile-menu__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 12, 12, 0.55);
    opacity: 0;
    transition: opacity 0.3s;
  }

  .mobile-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 72px 24px;
    overflow-y: auto;
    background: var(--accent);
    color: var(--white);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .mobile-menu.is-open .mobile-menu__backdrop {
    opacity: 1;
  }

  .mobile-menu.is-open .mobile-menu__panel {
    transform: none;
  }

  /* メニューの中身を、パネルの上下中央にまとめる
     （画面が低くて入りきらないときは、上から並べてスクロールできるようにする） */
  .mobile-menu__panel > :first-child {
    margin-top: auto;
  }

  .mobile-menu__panel > :last-child {
    margin-bottom: auto;
  }

  /* PC版のサイドメニューと同じ組み方。ボルドーの地に合わせて色だけ変える */
  .mobile-menu__logo {
    display: block;
    width: 100%;
    max-width: 230px;
  }

  .mobile-menu .sidebar__date {
    color: var(--ivory);
  }

  /* 入場無料：ボルドーの地では、アイボリーの丸にボルドーの文字 */
  .mobile-menu .sidebar__badge {
    background: var(--ivory);
    color: var(--seal);
    outline-color: rgba(142, 27, 44, 0.55);
  }

  .mobile-menu .ornament {
    color: var(--champagne-light);
  }

  .mobile-menu .side-nav {
    width: auto;
    padding-left: 0;
  }

  .mobile-menu .side-nav__link {
    color: var(--white);
  }

  .mobile-menu .side-nav__link:hover {
    color: var(--champagne-light);
  }

  .mobile-menu .side-nav__link:hover::before {
    background: var(--champagne-light);
  }

  .mobile-menu .sns-circles {
    margin-top: 28px;
  }

  /* 背景のスクロールを止める */
  .is-menu-open,
  .is-menu-open body {
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu,
  .mobile-menu__backdrop,
  .mobile-menu__panel,
  .menu-button__lines span {
    transition: none !important;
  }
}

/* ---------- スマホ：各セクションの文章を1pt（約1.3px）小さく ----------
   （箇条書きは、読みやすさの基準の14pxを下回らないよう14pxまで）
   ※ほかの指定より後に書いておく必要があるため、ファイルの最後に置いている */
@media (max-width: 1023px) {
  .present-item__text,
  .event-block__text,
  .dj-frame__text,
  .info-table__value {
    font-size: 14.4px;
  }

  /* About usの文章は7行の改行をそろえるため、さらに小さく */
  .about__text {
    font-size: 13.5px;
  }

  .caution__list li {
    font-size: 14px;
  }

  .footer__notes-list li {
    font-size: 12.5px;
  }
}

/* ---------- 各文章の行間（0.5pt詰めた値を四捨五入した、きりのよいpx） ---------- */
.present-item__text,
.event-block__text,
.dj-frame__text {
  line-height: 29px;
}

.about__text {
  line-height: 27px;
}

.info-table__value {
  line-height: 26px;
}

.caution__list li {
  line-height: 26px;
}

.footer__notes-list li {
  line-height: 24px;
}

@media (max-width: 1023px) {
  .present-item__text,
  .event-block__text,
  .dj-frame__text {
    line-height: 27px;
  }

  .about__text {
    line-height: 25px;
  }

  .info-table__value {
    line-height: 24px;
  }

  .caution__list li {
    line-height: 25px;
  }

  .footer__notes-list li {
    line-height: 23px;
  }
}

/* ---------- スマホのメニュー：実機（iPhone）の表示の高さでも1画面に収まるように ----------
   Safariはアドレスバーなどで実際に見える高さが短くなるため、
   見えている高さ（dvh）に合わせて、ロゴ・項目の間隔・アイコンを伸び縮みさせる */
@media (max-width: 1023px) {
  /* 上の余白：ロゴは中央にあり、右上のcloseボタンとは横に重ならないので、余白は小さくてよい */
  .mobile-menu__panel {
    padding: clamp(16px, 5dvh, 72px) 24px clamp(16px, 3dvh, 48px);
  }

  /* 日付などを外して場所が空いたので、ロゴは少し大きめに */
  .mobile-menu__logo {
    max-width: clamp(170px, 30vh, 230px);
    max-width: clamp(170px, 30dvh, 230px);
  }

  /* ロゴとメニュー項目の間（日付・飾り線を外したので、そのぶん少し間をあける） */
  .mobile-menu nav {
    margin-top: clamp(20px, 4dvh, 36px);
  }

  .mobile-menu .ornament {
    margin: clamp(8px, 1.6dvh, 18px) 0 clamp(8px, 1.4dvh, 14px);
  }

  /* メニュー項目（箱なし。見える高さに合わせて間隔だけ伸び縮み） */
  .mobile-menu .side-nav__link {
    min-height: clamp(36px, 5vh, 44px);
    min-height: clamp(36px, 5dvh, 44px);
  }

  .mobile-menu .sns-circles {
    margin-top: clamp(14px, 2.6dvh, 28px);
  }

  .mobile-menu .sns-circle {
    width: clamp(44px, 6dvh, 56px);
    height: clamp(44px, 6dvh, 56px);
  }
}

/* menu／closeボタンをキーボードで選んだときの枠 */
@media (max-width: 1023px) {
  .menu-button:focus-visible {
    outline: 2px solid var(--gold-text);
    outline-offset: -4px;
  }
}

/* ---------- スマホ：「ご注意」の枠の右側の空きを小さく ----------
   枠の左右の内側の余白を詰め、文字を少し小さく・字間を狭くして、1行に入る文字数を増やす */
@media (max-width: 1023px) {
  .caution {
    padding: 16px 14px 18px;
  }

  .caution__list li {
    padding-left: 1.1em;
    font-size: 13px;
    line-height: 22px;
    letter-spacing: 0;
  }
}

/* プレゼントの注意書き（※無くなり次第…）：本文の下に小さく */
/* 囲みつきの注記（「ご注意」の枠と同じ線の色） */
.present-item__note--box {
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid var(--champagne);
  border-radius: 4px;
}

.present-item__note {
  margin-top: 6px;
  color: var(--sub-text);
  font-size: 14px;
  line-height: 22px;
  text-align: center;
  word-break: keep-all;
}
