@charset "UTF-8";
/* ============================================================
   第51回 幾徳祭 2026「再響 -SAIKYO-」公式サイト
   デザインシステム / 共通スタイル + index.html 固有スタイル
   ------------------------------------------------------------
   共通部品はページ非依存。about / event / information でも
   このファイルを読み込んで同じクラスを使用すること。
   ============================================================ */

/* ------------------------------------------------------------
   1. CSS変数
------------------------------------------------------------ */
:root {
  /* colors */
  --primary:        #5B4FC7;
  --primary-light:  #8B7FE8;
  --primary-dark:   #3F2FA7;
  --lavender:       #A99BE8;
  --bg-tint:        #F1EDFC;
  --bg-base:        #FBFAFF;
  --day-sat:        #3B82F6;
  --day-sun:        #E11D63;
  --ink:            #2B2743;
  --ink-soft:       #6B6685;
  --line:           #E4E0F5;
  --white:          #FFFFFF;

  /* gradients */
  --grad-primary:   linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 55%, var(--primary-dark) 100%);
  --grad-text:      linear-gradient(135deg, var(--lavender) 0%, var(--primary) 45%, var(--primary-dark) 100%);
  --grad-soft:      linear-gradient(160deg, #EFEBFF 0%, #FBFAFF 60%);

  /* typography */
  --font-ja:        "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-en:        "Outfit", sans-serif;
  --font-mincho:    "Shippori Mincho", serif;

  /* layout */
  --header-h:       76px;
  --radius-sm:      6px;
  --radius:         10px;
  --radius-lg:      14px;
  --shadow-sm:      0 3px 12px rgba(91, 79, 199, 0.08);
  --shadow-card:    0 8px 30px rgba(91, 79, 199, 0.10);
  --shadow-hover:   0 18px 44px rgba(91, 79, 199, 0.20);
  --container:      1120px;
  --space-section:    clamp(80px, 12vw, 130px);
  --space-section-sm: clamp(56px, 8vw, 88px);

  /* textures */
  --stripe-soft: repeating-linear-gradient(-45deg, rgba(169, 155, 232, 0.06) 0 12px, rgba(169, 155, 232, 0.12) 12px 24px);

  /* motion */
  --ease-out:       cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------------------------------------
   2. リセット / ベース
------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-ja);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg-base);
  line-height: 1.9;
  letter-spacing: 0.04em;
  overflow-x: hidden;
}

body.is-nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

:focus-visible { outline: 3px solid var(--primary-light); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--primary-light); color: #fff; }

/* 組版の強化（非対応ブラウザでは無視される安全な指定） */
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* 和文見出しはカナ・約物を詰めて引き締める */
h1, h2, h3, h4, .sec-head__ja { font-feature-settings: "palt" 1; }

/* ------------------------------------------------------------
   3. レイアウトユーティリティ
------------------------------------------------------------ */
.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.section {
  padding: var(--space-section) 0;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.section--tint { background: var(--bg-tint); }

/* 関連の強い前セクションに続く場合は上余白を詰めてリズムを作る */
.section--tight-top { padding-top: var(--space-section-sm); }

/* 波形区切りに隣接する側は余白を詰め、区切り前後が間延びしないようにする
   （:has 非対応ブラウザでは前側だけ従来余白のまま＝表示は崩れない） */
.wave-divider + .section { padding-top: var(--space-section-sm); }
.section:has(+ .wave-divider) { padding-bottom: var(--space-section-sm); }

.section__lead {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 40em;
  margin-inline: auto;
  margin-top: -16px;
  margin-bottom: 40px;
}

.section__actions {
  margin-top: clamp(40px, 6vw, 56px);
  text-align: center;
}

.text-center { text-align: center; }

/* 注記を直前のグリッド等から離す（インラインstyleの置き換え用） */
.note--push { margin-top: 28px; }

/* スクリーンリーダー専用テキスト */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* スキップリンク（キーボード操作時のみ表示） */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--primary-dark);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-card);
  transform: translateY(calc(-100% - 24px));
  transition: transform 0.3s var(--ease-out);
}

.skip-link:focus { transform: translateY(0); }

/* ------------------------------------------------------------
   4. フェードイン (JS: IntersectionObserver が .is-visible を付与)
------------------------------------------------------------ */
/* 読み込み失敗・JS無効時も本文を表示。初期化に成功した要素だけを隠す。 */
.fade-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.fade-in.is-reveal-ready:not(.is-visible) {
  opacity: 0;
  transform: translateY(32px);
}

.fade-in-group .fade-in-item {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.fade-in-group.is-reveal-ready:not(.is-visible) .fade-in-item {
  opacity: 0;
  transform: translateY(28px);
}

.fade-in-group.is-visible .fade-in-item:nth-child(2) { transition-delay: 0.1s; }
.fade-in-group.is-visible .fade-in-item:nth-child(3) { transition-delay: 0.2s; }
.fade-in-group.is-visible .fade-in-item:nth-child(4) { transition-delay: 0.3s; }
.fade-in-group.is-visible .fade-in-item:nth-child(5) { transition-delay: 0.4s; }
.fade-in-group.is-visible .fade-in-item:nth-child(6) { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in, .fade-in.is-reveal-ready:not(.is-visible),
  .fade-in-group .fade-in-item, .fade-in-group.is-reveal-ready:not(.is-visible) .fade-in-item { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ------------------------------------------------------------
   5. セクション見出しコンポーネント
   <div class="sec-head fade-in">
     <span class="sec-head__ja">新着情報</span>
     <h2 class="sec-head__en" data-split>News</h2>
   </div>
------------------------------------------------------------ */
.sec-head {
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 3vw, 28px);
  margin-bottom: clamp(48px, 7vw, 72px);
}

.sec-head--center { justify-content: center; }

.sec-head__ja {
  /* vertical-lr: 折り返し列が右側に増える（vertical-rlは左に折り返され読み順が逆になる） */
  writing-mode: vertical-lr;
  /* FVのスクロールインジケータと同じ縦書き明朝＝FVの語彙をエコー */
  font-family: var(--font-mincho);
  font-size: 0.85rem;
  font-weight: 700; /* Shippori Mincho の読込ウェイトに合わせる */
  letter-spacing: 0.35em;
  line-height: 1.6;
  color: var(--primary);
  padding-top: 14px;
  position: relative;
}

/* 折り返し位置はHTML側で列ごとに<span>で区切って指定する
   例: <span class="sec-head__ja"><span>ステージ</span><span>タイムテーブル</span></span>
   → 2列目以降が右側に並び、最後の列だけ下揃えになる */
.sec-head__ja > span {
  display: block;
  text-align-last: start;
}

.sec-head__ja > span:last-child { text-align-last: end; }

.sec-head__ja::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad-primary);
}

.sec-head__en {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: clamp(3rem, 8vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
}

/* JSが1文字ずつ .char に分割し --i を付与 */
.sec-head__en .char {
  display: inline-block;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
  opacity: 1;
  transform: none;
  /* j や g のディセンダが背景クリップで切れないよう、ボックスを下に広げる */
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}

.sec-head.is-reveal-ready:not(.is-visible) .sec-head__en .char {
  opacity: 0;
  transform: translateY(0.55em) rotate(6deg);
}

.sec-head.is-visible .sec-head__en .char {
  animation: char-in 0.7s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 0.055s);
}

@keyframes char-in {
  from { opacity: 0; transform: translateY(0.55em) rotate(6deg); }
  to { opacity: 1; transform: translateY(0) rotate(0deg); }
}

/* JS無効時のフォールバック */
.no-js .sec-head__en .char,
.sec-head__en:not(:has(.char)) {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}

/* ------------------------------------------------------------
   6. ボタン
------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 220px;
  padding: 16px 36px;
  border-radius: 10px;
  background: var(--grad-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 24px rgba(91, 79, 199, 0.35);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "\2192"; /* → */
  font-family: var(--font-en);
  transition: transform 0.3s var(--ease-out);
}

/* hover時に白いハイライトが横切るシャインスイープ */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  transform: translateX(-110%);
  transition: transform 0.6s var(--ease-out);
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(91, 79, 199, 0.45);
}

.btn:hover::after { transform: translateX(5px); }
.btn:hover::before { transform: translateX(110%); }

.btn:active { transform: translateY(-1px) scale(0.98); }

.btn--outline {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}

.btn--outline:hover { box-shadow: 0 10px 26px rgba(91, 79, 199, 0.22); }

.btn--small { min-width: 0; padding: 10px 26px; font-size: 0.85rem; }

.btn--white {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(25, 12, 90, 0.35);
}

/* リンク先が未定のボタンは <button type="button" disabled> で操作を無効化 */
.btn.is-disabled, .btn:disabled {
  pointer-events: none;
  opacity: 0.55;
  box-shadow: none;
}

/* ------------------------------------------------------------
   7. ヘッダー
------------------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, box-shadow 0.4s;
}

/* 背景ブラーは ::before に分離
   （backdrop-filter を .site-header 自身に置くと fixed な
     モバイルドロワーの包含ブロックがヘッダーになってしまうため） */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(251, 250, 255, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(91, 79, 199, 0.08);
}

.header-inner {
  height: 100%;
  width: min(100% - 40px, 1280px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-logo { display: flex; align-items: center; }
.header-logo img { height: 36px; width: auto; transition: opacity 0.3s; }
.header-logo:hover img { opacity: 0.75; }

.header-right { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); }

.global-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 28px);
}

.global-nav__link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 2px;
  position: relative;
  /* 和文はどこでも改行できてしまうため、幅が詰まると項目が2行に折れる。
     901px（ドロワー切替の直上）でも1行を保つ */
  white-space: nowrap;
}

.global-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}

.global-nav__link:hover { color: var(--primary); }
.global-nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

/* 現在ページの表示（各ページの該当リンクに aria-current="page" を付与する） */
.global-nav__link[aria-current="page"] { color: var(--primary); }
.global-nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* SNSアイコン */
.sns-links { display: flex; align-items: center; gap: 14px; }

.sns-links a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--primary);
  background: var(--bg-tint);
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease-out);
}

.sns-links a:hover {
  background: var(--grad-primary);
  color: #fff;
  transform: translateY(-3px);
}

.sns-links svg { width: 18px; height: 18px; fill: currentColor; }

/* ハンバーガー */
.hamburger {
  display: none;
  position: relative;
  z-index: 120;
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.hamburger__line {
  position: absolute;
  left: 50%;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary-dark);
  transform: translateX(-50%);
  transition: transform 0.4s var(--ease-out), opacity 0.3s, background 0.3s;
}

.hamburger__line:nth-child(1) { top: 16px; }
.hamburger__line:nth-child(2) { top: 23px; }
.hamburger__line:nth-child(3) { top: 30px; }

.hamburger[aria-expanded="true"] .hamburger__line { background: var(--primary-dark); }
.hamburger[aria-expanded="true"] .hamburger__line:nth-child(1) { transform: translateX(-50%) translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger__line:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .hamburger__line:nth-child(3) { transform: translateX(-50%) translateY(-7px) rotate(-45deg); }

/* モバイルナビ（フルスクリーンドロワー） */
@media (max-width: 900px) {
  .hamburger { display: block; }

  .global-nav {
    position: fixed;
    inset: 0;
    overflow-y: auto;
    padding: calc(var(--header-h) + 16px) 0 24px;
    z-index: 110;
    display: grid;
    place-items: center;
    align-content: center;
    background: linear-gradient(170deg, #F3F0FF 0%, #FBFAFF 55%, #EFEBFF 100%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s var(--ease-out), visibility 0.45s;
  }

  .global-nav.is-open { opacity: 1; visibility: visible; transition: opacity 0.45s var(--ease-out); }

  .global-nav__list {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .global-nav__link {
    font-size: 1.25rem;
    font-weight: 700;
    padding: 12px 24px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.3s;
  }

  .global-nav.is-open .global-nav__link { opacity: 1; transform: translateY(0); }
  .global-nav.is-open li:nth-child(1) .global-nav__link { transition-delay: 0.10s; }
  .global-nav.is-open li:nth-child(2) .global-nav__link { transition-delay: 0.16s; }
  .global-nav.is-open li:nth-child(3) .global-nav__link { transition-delay: 0.22s; }
  .global-nav.is-open li:nth-child(4) .global-nav__link { transition-delay: 0.28s; }
  .global-nav.is-open li:nth-child(5) .global-nav__link { transition-delay: 0.34s; }
  .global-nav.is-open li:nth-child(6) .global-nav__link { transition-delay: 0.40s; }

  .header-right .sns-links { display: none; }

  /* ドロワー内SNS */
  .global-nav .sns-links {
    display: flex;
    justify-content: center;
    margin-top: 36px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease-out) 0.48s, transform 0.5s var(--ease-out) 0.48s;
  }

  .global-nav.is-open .sns-links { opacity: 1; transform: translateY(0); }
  .global-nav .sns-links a { width: 48px; height: 48px; background: #fff; box-shadow: var(--shadow-card); }
}

@media (min-width: 901px) {
  .global-nav .sns-links { display: none; }
}

/* ------------------------------------------------------------
   8. カード / カードグリッド
------------------------------------------------------------ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  position: relative;
}

a.card:hover, .card--hover:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.card__icon {
  display: grid;
  place-items: center;
  height: 120px;
  background: var(--grad-soft);
  color: var(--primary);
  font-size: 2.4rem;
}

.card__icon svg {
  width: 52px;
  height: 52px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.6;
  transition: transform 0.35s var(--ease-out);
}

/* 企画の内容が伝わる、淡い塗りを添えた線画アイコン */
.card__icon svg.project-icon {
  width: 72px;
  height: 72px;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-icon__backdrop {
  fill: var(--primary);
  fill-opacity: 0.06;
  stroke: none;
}

.project-icon__paper { fill: var(--white); }
.project-icon__accent { fill: var(--bg-tint); }
.project-icon__solid { fill: var(--primary); stroke: none; }

@media (max-width: 600px) {
  .card__icon svg.project-icon { width: 60px; height: 60px; }
}

a.card:hover .card__icon svg,
.card--hover:hover .card__icon svg { transform: scale(1.12) rotate(-4deg); }

.card__body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; gap: 10px; }

.card__title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card__text { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.85; }

.card__arrow {
  margin-top: auto;
  align-self: flex-end;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-tint);
  color: var(--primary);
  font-family: var(--font-en);
  font-weight: 600;
  transition: background 0.3s, color 0.3s, transform 0.35s var(--ease-out);
}

a.card:hover .card__arrow {
  background: var(--grad-primary);
  color: #fff;
  transform: translateX(4px);
}

/* ------------------------------------------------------------
   9. テーブル（他ページ共通）
------------------------------------------------------------ */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-card); }

.table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.92rem;
}

.table th, .table td { padding: 16px 20px; text-align: left; }

.table thead th {
  background: var(--grad-primary);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.table tbody tr:nth-child(even) { background: var(--bg-tint); }
.table tbody tr { border-bottom: 1px solid var(--line); }
.table tbody tr:last-child { border-bottom: none; }

/* ------------------------------------------------------------
   10. バッジ / プレースホルダ / 注記
------------------------------------------------------------ */
.badge-new {
  display: inline-grid;
  place-items: center;
  padding: 2px 16px;
  /* FVの斜め帯と同方向「／」に傾けた平行四辺形（テキストは傾けない） */
  clip-path: polygon(0.45em 0, 100% 0, calc(100% - 0.45em) 100%, 0 100%);
  background: linear-gradient(135deg, var(--day-sun), #FF6B9D);
  color: #fff;
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.7;
  flex-shrink: 0;
}

.placeholder {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  gap: 4px;
  border: 1px solid var(--lavender);
  border-radius: var(--radius);
  background: var(--stripe-soft);
  color: var(--primary);
  text-align: center;
  padding: 24px;
  min-height: 180px;
}

/* 「準備中」をお楽しみに感のあるシマー演出に */
.placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.55) 50%, transparent 68%);
  transform: translateX(-100%);
  animation: placeholder-shimmer 3.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes placeholder-shimmer {
  0%   { transform: translateX(-100%); }
  55%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

.placeholder__label { font-weight: 700; font-size: 1.02rem; letter-spacing: 0.1em; }

.placeholder__note {
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--primary);
  text-transform: uppercase;
}

.note {
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.8;
}

/* ------------------------------------------------------------
   11. マーキー（無限ループ）
------------------------------------------------------------ */
.marquee-band {
  overflow: hidden;
  background: var(--grad-primary);
  padding: 18px 0;
}

.marquee { overflow: hidden; display: flex; }

.marquee__track {
  display: flex;
  flex-shrink: 0;
  width: max-content;
  animation: marquee-scroll 26s linear infinite;
  /* iOS Safariでアニメーション中に文字が一瞬消えるのを防ぐ（コンポジットレイヤーに昇格） */
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.marquee--reverse .marquee__track { animation-direction: reverse; }

.marquee__text {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  white-space: nowrap;
  padding-right: 1.2em;
  color: #fff;
}

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

.marquee--reverse .marquee__text {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.75);
}

@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ------------------------------------------------------------
   12. お問い合わせセクション（全ページ共通）
------------------------------------------------------------ */
.contact-section {
  background:
    radial-gradient(ellipse 60% 50% at 15% 0%, rgba(169, 155, 232, 0.35), transparent),
    radial-gradient(ellipse 50% 60% at 90% 100%, rgba(63, 47, 167, 0.6), transparent),
    linear-gradient(150deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
}

.contact-section .sec-head__ja { color: rgba(255, 255, 255, 0.85); }
.contact-section .sec-head__ja::before { background: #fff; }

/* 濃背景ではフォーカスリングを白系にして視認性を確保 */
.contact-section :focus-visible,
.site-footer :focus-visible { outline-color: #fff; }

.contact-section .sec-head__en .char,
.contact-section .sec-head__en {
  background: linear-gradient(135deg, #FFFFFF 20%, var(--lavender) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.contact-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 36px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.contact-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--lavender);
}

.contact-card__tel {
  font-family: var(--font-en);
  font-size: clamp(1.7rem, 4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fff;
  line-height: 1.2;
  transition: opacity 0.3s;
}

a.contact-card__tel:hover { opacity: 0.8; }

.contact-card__text { font-size: 0.92rem; line-height: 2; color: rgba(255, 255, 255, 0.92); }
.contact-card__note { font-size: 0.8rem; color: rgba(255, 255, 255, 0.65); }

/* ------------------------------------------------------------
   13. フッター
------------------------------------------------------------ */
.site-footer {
  background: #241A5E;
  color: rgba(255, 255, 255, 0.85);
  padding: 70px 0 36px;
  text-align: center;
}

.footer-logo { display: inline-block; margin-bottom: 36px; }

.footer-logo img {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  transition: opacity 0.3s;
}

.footer-logo:hover img { opacity: 0.7; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 32px;
  margin-bottom: 36px;
}

.footer-nav a {
  font-size: 0.88rem;
  padding: 4px 2px;
  opacity: 0.85;
  transition: opacity 0.3s, color 0.3s;
}

.footer-nav a:hover { opacity: 1; color: var(--lavender); }

.site-footer .sns-links { justify-content: center; margin-bottom: 40px; }
.site-footer .sns-links a { background: rgba(255, 255, 255, 0.1); color: #fff; }
.site-footer .sns-links a:hover { background: var(--grad-primary); }

.copyright {
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.72);
}

/* ------------------------------------------------------------
   14. Back to Top
------------------------------------------------------------ */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(91, 79, 199, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), visibility 0.4s;
}

.back-to-top.is-show { opacity: 1; visibility: visible; transform: translateY(0); }

.back-to-top:hover { transform: translateY(-4px); }

/* スクロール進捗ゲージ（丸ボタンの外側のリング）
   JSが --scroll-progress を 0%〜100% で更新する */
.back-to-top::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: conic-gradient(
    var(--primary) var(--scroll-progress, 0%),
    rgba(91, 79, 199, 0.18) 0%
  );
  /* 中央をくり抜いて外周3pxのリングだけ残す */
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
}

.back-to-top svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2.4; }

/* ============================================================
   ▼ ここから index.html 固有スタイル
   ============================================================ */

/* ------------------------------------------------------------
   15. カウントダウン（FVの .fv-countdown 内で使用）
------------------------------------------------------------ */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(36px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.countdown-box {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px clamp(24px, 5vw, 48px) 30px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.countdown-box__caption {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--primary);
}

.countdown {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(10px, 2.5vw, 20px);
}

.countdown__item { display: flex; flex-direction: column; align-items: center; gap: 2px; }

.countdown__num {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: clamp(2rem, 6.5vw, 3.2rem);
  line-height: 1.1;
  min-width: 1.6em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

.countdown__num--days { font-size: clamp(2.6rem, 8vw, 4rem); }

/* JSが値の変化時に .is-tick を付けてポップさせる */
.countdown__num.is-tick { animation: cd-pop 0.3s var(--ease-out); }

@keyframes cd-pop {
  40% { transform: scale(1.14); }
}

.countdown__label {
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--ink-soft);
}

.countdown__sep {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  color: var(--lavender);
  transform: translateY(-0.2em);
}

.countdown__live {
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 8px 0;
}

/* ------------------------------------------------------------
   16. News
------------------------------------------------------------ */
.news-list {
  max-width: 840px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}

.news-item { border-bottom: 1px solid var(--line); }

.news-item__link {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 24px 12px;
  transition: background 0.3s, padding-left 0.35s var(--ease-out);
  border-radius: 4px;
}

.news-item__link::after {
  content: "\2192"; /* → */
  font-family: var(--font-en);
  font-weight: 600;
  color: var(--primary);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s, transform 0.35s var(--ease-out);
}

.news-item__link:hover { background: var(--bg-tint); padding-left: 22px; }
.news-item__link:hover::after { opacity: 1; transform: translateX(0); }

.news-item__date {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  color: var(--primary);
  flex-shrink: 0;
}

.news-item__title { font-size: 0.95rem; font-weight: 500; flex: 1; min-width: 200px; }

/* ページネーション（JSが6件以上の時にボタンを生成して表示） */
.news-item.is-page-hidden { display: none; }

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.pagination__btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: #fff;
  color: var(--primary);
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out),
    background 0.3s, color 0.3s;
}

.pagination__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(91, 79, 199, 0.22);
}

.pagination__btn.is-current {
  background: var(--primary);
  color: #fff;
  pointer-events: none;
}

/* ------------------------------------------------------------
   17. ステージタイムテーブル
------------------------------------------------------------ */
.stage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(24px, 4vw, 40px);
}

.tt-day {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tt-day__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  color: #fff;
}

.tt-day--sat .tt-day__head { background: linear-gradient(135deg, #60A5FA, var(--day-sat)); }
.tt-day--sun .tt-day__head { background: linear-gradient(135deg, #F472B6, var(--day-sun)); }

.tt-day__label {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  opacity: 0.9;
}

.tt-day__title { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.08em; }

.tt-day__body { padding: 28px 28px 30px; display: flex; flex-direction: column; gap: 22px; flex: 1; }

.tt-list { display: flex; flex-direction: column; }

.tt-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 4px;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
  border-radius: 4px;
  transition: background 0.3s, padding 0.35s var(--ease-out);
}

.tt-item:hover { background: var(--bg-tint); padding-left: 14px; padding-right: 14px; }

.tt-item:last-child { border-bottom: none; }

.tt-item__time {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 3px 14px;
  border-radius: 6px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.tt-day--sat .tt-item__time { background: #EFF6FF; color: var(--day-sat); }
.tt-day--sun .tt-item__time { background: #FDF2F8; color: var(--day-sun); }

.tt-item__name { font-weight: 500; }

.tt-day .placeholder { min-height: 150px; }
.tt-day .note { margin-top: auto; }

/* ------------------------------------------------------------
   18. 開催データ（カウントアップ）
------------------------------------------------------------ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(20px, 3vw, 32px);
  text-align: center;
}

.stat {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 40px 20px 34px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat__value {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  line-height: 1.1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat__value .stat__unit,
.stat__value .stat__prefix {
  font-family: var(--font-ja);
  font-size: 0.42em;
  font-weight: 700;
}

.stat__label { font-size: 0.88rem; color: var(--ink-soft); }

/* ------------------------------------------------------------
   19. テーマ / ポスター
------------------------------------------------------------ */
.theme-section {
  position: relative;
  overflow: hidden;
}

.theme-section::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -12%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(169, 155, 232, 0.25), transparent 70%);
  pointer-events: none;
}

.theme-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.theme-copy { display: flex; flex-direction: column; gap: 24px; }

.theme-copy__intro { font-size: 1rem; font-weight: 500; color: var(--primary); letter-spacing: 0.2em; }

.theme-copy__title {
  font-family: var(--font-mincho);
  font-weight: 800; /* Shippori Mincho の読込最大ウェイト */
  font-size: clamp(3.2rem, 9vw, 5.2rem);
  line-height: 1.2;
  letter-spacing: 0.06em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.theme-copy__title small {
  display: block;
  font-family: var(--font-ja);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  margin-top: 10px;
  -webkit-text-fill-color: var(--ink-soft);
}

.theme-copy__lead {
  font-family: var(--font-mincho);
  font-size: 1.05rem;
  line-height: 2.3;
  color: var(--ink);
}

.theme-copy__closing { font-size: 0.95rem; color: var(--ink-soft); }

.theme-poster { display: flex; flex-direction: column; gap: 20px; align-items: center; }

.theme-poster__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2vw, 24px);
  width: 100%;
}

.theme-poster .placeholder {
  width: 100%;
  aspect-ratio: 1 / 1.414; /* A判ポスター比 */
  min-height: 0;
  background: var(--stripe-soft), #fff;
  box-shadow: var(--shadow-card);
}

@media (max-width: 820px) {
  .theme-grid { grid-template-columns: 1fr; }
  .theme-copy { text-align: center; align-items: center; }
  .theme-poster__grid { max-width: 560px; margin-inline: auto; }
}

/* ------------------------------------------------------------
   20. 会場マップ
------------------------------------------------------------ */
.map-figure .placeholder {
  min-height: clamp(260px, 42vw, 420px);
  background: var(--stripe-soft), #fff;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 14px;
  margin-top: 30px;
}

.map-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 0.82rem;
  font-weight: 500;
}

.map-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot, var(--primary));
  flex-shrink: 0;
}

.map-caption { text-align: center; margin-top: 24px; font-size: 0.92rem; color: var(--ink-soft); }

/* ------------------------------------------------------------
   21. アクセス
------------------------------------------------------------ */
.access-card {
  max-width: 1000px;
  margin-inline: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(36px, 6vw, 60px);
  text-align: center;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  position: relative;
  overflow: hidden;
}

.access-card__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* カード内のアクションはセクション既定の大きな余白を使わない */
.access-card .section__actions { margin-top: 12px; }

.access-card__map {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  line-height: 0;
}

.access-card__map iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 0;
}

@media (max-width: 820px) {
  .access-card { grid-template-columns: 1fr; }
  .access-card__map { min-height: 0; }
  .access-card__map iframe { height: clamp(240px, 55vw, 360px); }
}

.access-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--grad-primary);
}

.access-card__name { font-size: clamp(1.3rem, 3.4vw, 1.7rem); font-weight: 700; color: var(--primary-dark); letter-spacing: 0.08em; }

.access-card__addr { font-size: 0.98rem; line-height: 2; }

.access-card__route {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--bg-tint);
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 500;
}

.access-card__route svg { width: 18px; height: 18px; stroke: var(--primary); fill: none; stroke-width: 1.8; flex-shrink: 0; }

/* ============================================================
   レスポンシブ微調整
   ============================================================ */
@media (max-width: 600px) {
  :root { --header-h: 64px; }

  .header-logo img { height: 28px; }

  .sec-head { gap: 14px; }

  .card-grid { grid-template-columns: 1fr 1fr; }
  .card__icon { height: 92px; }
  .card__icon svg { width: 40px; height: 40px; }
  .card__body { padding: 18px 16px 20px; gap: 8px; }
  .card__title { font-size: 0.98rem; }
  .card__text { font-size: 0.8rem; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stat { padding: 28px 12px 24px; }

  .btn { min-width: 190px; padding: 14px 30px; }

  .news-item__link { padding: 18px 6px; }
  .news-item__title { min-width: 100%; }

  .back-to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }

  .marquee__text { font-size: 0.88rem; }
}

@media (max-width: 420px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ▼ 22. 装飾レイヤー（全ページ共通）
   ------------------------------------------------------------
   設計方針: 「フォールバック → 画像あり」の2段構え。
   js/main.js が assets/decor/*.webp をプリロードし、読み込めた
   画像ごとに <html> へ decor-hero-wash / decor-petal-1 … の
   クラスを付与する。画像が無い間はCSSのみのフォールバックで
   表示され、画像を置くと自動でリッチ版に切り替わる。
   使い方の一覧は _shared-snippets.html 末尾を参照。
   ============================================================ */

/* ----- 22-1. 装飾ホスト（CSSのみ・今すぐ効く） ---------------
   セクションに .has-deco を付け、直下に .deco-blob / .deco-dots
   を置く。コンテンツ（.container）は自動で前面(z-index:1)。 */
.has-deco { position: relative; overflow: hidden; }
.has-deco > .container { position: relative; z-index: 1; }

/* 大きなぼかしグラデ円。位置: --tl/--tr/--bl/--br
   色: 既定=紫 / --pink / --blue、サイズ: --sm */
.deco-blob {
  position: absolute;
  z-index: 0;
  width: clamp(280px, 36vw, 480px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(139, 127, 232, 0.30), rgba(169, 155, 232, 0.14) 55%, transparent 75%);
  filter: blur(46px);
  pointer-events: none;
}

/* 上下方向のはみ出しは控えめにする: .has-deco の overflow クリップで
   ぼかしグラデがセクション境界の水平線でスパッと切れるのを防ぐため、
   可視部分がセクション内で自然に消える程度に留める（左右は画面外なので可） */
.deco-blob--tl { top: -40px; left: -140px; }
.deco-blob--tr { top: -40px; right: -140px; }
.deco-blob--bl { bottom: -40px; left: -120px; }
.deco-blob--br { bottom: -40px; right: -120px; }

.deco-blob--pink { background: radial-gradient(circle at 35% 35%, rgba(249, 168, 212, 0.32), rgba(249, 168, 212, 0.12) 55%, transparent 75%); }
.deco-blob--blue { background: radial-gradient(circle at 35% 35%, rgba(147, 197, 253, 0.32), rgba(147, 197, 253, 0.12) 55%, transparent 75%); }
.deco-blob--sm   { width: clamp(180px, 22vw, 300px); }

/* スクロール駆動のゆるいパララックス（対応ブラウザのみ・JS不要） */
@supports (animation-timeline: view()) {
  .deco-blob {
    animation: blob-drift linear both;
    animation-timeline: view();
  }
}

/* 可動域±24px: これ以上動かすとオフセット-40pxと合算で
   セクション境界のクリップに掛かり、水平の切断線が見えてしまう */
@keyframes blob-drift {
  from { translate: 0 24px; }
  to   { translate: 0 -24px; }
}

/* 水玉ドット（radial-gradientタイル・端はマスクでフェード） */
.deco-dots {
  position: absolute;
  z-index: 0;
  width: clamp(130px, 16vw, 210px);
  height: clamp(100px, 12vw, 160px);
  background-image: radial-gradient(rgba(91, 79, 199, 0.16) 1.5px, transparent 2px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 78%);
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 78%);
  pointer-events: none;
}

.deco-dots--tl { top: 44px; left: 4%; }
.deco-dots--tr { top: 44px; right: 4%; }
.deco-dots--bl { bottom: 36px; left: 4%; }
.deco-dots--br { bottom: 36px; right: 4%; }

/* ----- 22-2. セクション区切り（波形） ------------------------
   <div class="wave-divider" aria-hidden="true"><svg…></svg></div>
   ・path は fill="currentColor" — 色は「次に来るセクションの背景色」
   ・既定色 = var(--bg-tint)。--base(白系) / --flip(上下反転=
     tintセクションの直後に置いて白へ戻す) */
.wave-divider {
  line-height: 0;
  color: var(--bg-tint);
  margin-bottom: -1px; /* サブピクセルの継ぎ目防止 */
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: clamp(30px, 5.5vw, 64px);
  /* 波の輪郭をなぞる淡い二重波（flipはscaleY反転で影方向も自動反転） */
  filter: drop-shadow(0 -10px 0 rgba(91, 79, 199, 0.05));
}

.wave-divider--flip { margin-bottom: 0; margin-top: -1px; }
.wave-divider--flip svg { transform: scaleY(-1); }
.wave-divider--base { color: var(--bg-base); }

/* ----- 22-3. ヒーロー: 舞い散るパーティクル ------------------
   フォールバック = 「✿」「❀」文字がゆっくり落下・回転。
   petal-1〜3.webp があれば画像に自動置換（petal--v1〜v3）。
   位置・速さは inline の CSS変数 --x/--d/--delay/--size/--o。 */
.hero-petals {
  /* 下層ページ（page-hero）の花びらはFV基準のシャープ化方針により停止中。
     トップページのFVのみ下の #top .hero-petals で復活させている */
  display: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

/* トップページのFVのみ花びらを復活（下層ページは停止のまま）。
   前後関係の z-index はページ側の style（#top .hero-petals）が指定する。
   FVのイントロ演出（js/intro-core.js）が完了して <html> に
   .fv-intro-done が付くまでは透明にしておき、完了後にふわっと出す */
#top .hero-petals {
  display: block;
  opacity: 0;
  transition: opacity 1.2s ease;
}

html.fv-intro-done #top .hero-petals {
  opacity: 1;
}

.petal {
  position: absolute;
  top: -6%;
  left: var(--x, 50%);
  font-size: var(--size, 1.3rem);
  line-height: 1;
  color: var(--lavender);
  opacity: 0;
  animation: petal-fall var(--d, 18s) linear var(--delay, 0s) infinite;
  will-change: transform, opacity;
}

@keyframes petal-fall {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  6%   { opacity: var(--o, 0.35); }
  30%  { transform: translate3d(2.4vw, 30vh, 0) rotate(100deg); }
  60%  { transform: translate3d(-1.8vw, 62vh, 0) rotate(215deg); }
  88%  { opacity: var(--o, 0.35); }
  100% { transform: translate3d(1.6vw, 108vh, 0) rotate(330deg); opacity: 0; }
}

/* 画像がある時: 文字を消して花びらPNGに置換 */
html.decor-petal-1 .petal--v1,
html.decor-petal-2 .petal--v2,
html.decor-petal-3 .petal--v3 {
  color: transparent;
  width: calc(var(--size, 1.3rem) * 1.7);
  aspect-ratio: 1 / 1;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

html.decor-petal-1 .petal--v1 { background-image: url(../assets/decor/petal-1.webp); }
html.decor-petal-2 .petal--v2 { background-image: url(../assets/decor/petal-2.webp); }
html.decor-petal-3 .petal--v3 { background-image: url(../assets/decor/petal-3.webp); }

@media (prefers-reduced-motion: reduce) {
  .hero-petals,
  #top .hero-petals { display: none; }
}

/* ----- 22-5. バンティング（三角旗・画像がある時のみ） --------
   position:relative + overflow:hidden な親（ヒーロー等）の
   直下に <div class="deco-bunting" aria-hidden="true"></div> */
.deco-bunting { display: none; }

html.decor-bunting .deco-bunting {
  display: block;
  position: absolute;
  top: calc(var(--header-h) - 8px);
  left: 0;
  right: 0;
  height: clamp(52px, 9vw, 96px);
  background: url(../assets/decor/bunting.webp) top center / auto 100% repeat-x;
  pointer-events: none;
  z-index: 2;
}

/* ----- 22-6. 紙吹雪オーバーレイ（画像がある時のみ） ----------
   お祝い感のあるセクションに .deco-confetti-bg を追加 */
.deco-confetti-bg { position: relative; }
.deco-confetti-bg > .container { position: relative; z-index: 1; }

html.decor-confetti .deco-confetti-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../assets/decor/confetti.webp) top center / min(1200px, 160%) auto repeat;
  opacity: 0.3;
  pointer-events: none;
}

/* ----- 22-7. 和紙テクスチャ（画像がある時のみ・全体の下地）
   body::before の固定オーバーレイとして低opacityで敷き、
   テクスチャが強い画像でも上品な質感に留める */
html.decor-washi-texture body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url(../assets/decor/washi-texture.webp) repeat;
  background-size: 480px auto;
  opacity: 0.22;
  pointer-events: none;
}

/* ----- 22-8. イラスト差し込みスロット -------------------------
   <img data-decor="campus-illust" hidden …> と書いておくと、
   JSが画像検出後に src を差し込んで表示する（無ければ非表示のまま） */
.decor-slot {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.decor-slot--campus {
  width: min(100%, 760px);
  margin: clamp(28px, 4.5vw, 44px) auto 0;
}

/* ============================================================
   ▼ 23. ページヒーロー（下層ページ共通）
   ------------------------------------------------------------
   about / event / information の共通ヘッダー。ページ側は
   差分（固有の背景演出・リード文の色等）のみ上書きする。
   ============================================================ */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(56px, 9vw, 96px)) 0 clamp(48px, 7vw, 80px);
  background: linear-gradient(175deg, #F3F0FF 0%, var(--bg-base) 60%, #F0ECFF 100%);
  text-align: center;
}

/* 背景のぼかしブロブ */
.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  pointer-events: none;
}

.page-hero::before { width: 420px; height: 420px; top: -160px; left: -120px; background: var(--lavender); }
.page-hero::after  { width: 360px; height: 360px; bottom: -160px; right: -100px; background: var(--primary-light); }

.page-hero .container { position: relative; z-index: 1; }

.page-hero .sec-head { margin-bottom: clamp(18px, 3vw, 28px); }

.page-hero__title {
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--ink);
  margin-bottom: 10px;
  animation: hero-in 1s var(--ease-out) 0.2s both;
}

.page-hero__lead {
  color: var(--ink-soft);
  font-size: clamp(0.95rem, 2.6vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  animation: hero-in 1s var(--ease-out) 0.35s both;
}

/* 水彩ウォッシュ画像がある時は下層ヒーローにも適用（index と同じ2段構え） */
html.decor-hero-wash .page-hero {
  background-image:
    url(../assets/decor/hero-wash.webp),
    linear-gradient(175deg, #F3F0FF 0%, var(--bg-base) 60%, #F0ECFF 100%);
  background-size: cover, auto;
  background-position: top center, center;
  background-repeat: no-repeat;
}

/* 下層ヒーロー内の花びらは低opacityで控えめに（inline変数 --o で調整） */
.page-hero .hero-petals { z-index: 0; }

/* ------------------------------------------------------------
   26. ファーストビュー（F案: ダイアゴナル・コンポジション）
       ikutokusai26 FVリデザインの base.css + variant-f.css から
       FVに必要なルールのみ移植（body / :root 等のグローバルは除外）
------------------------------------------------------------ */
#top {
  /* FV内でのみ使う配色（元デザインの :root 変数をスコープ内に定義） */
  --themepurple: #593fbe;
  --purple-line40: #dcd5f0;
  height: 100svh;
  padding-top: var(--header-h); /* 固定ヘッダーの下に収める */
  background: #F3F0FF; /* ごく薄い紫の単色（page-hero グラデの起点と同色） */
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 上下に配置 */
}

#top_decoration {
  position: relative;
  margin: 0 auto;
  height: 65%;
  overflow: visible;
}

/* ---------- 装飾レイヤー（共通クラス） ---------- */
.deco-layer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  /* 手前の帯の左下角は viewBox の外(x<0)まで届くため、
     端で切れて見えないよう SVG のはみ出しを表示する */
  overflow: visible;
  /* 外部スクリプトを取得できなくてもタイトル・日付を表示する。 */
  visibility: visible;
}

.deco-layer--back {
  width: 320px;
  z-index: 1;
}

.deco-layer--front {
  width: 320px;
  z-index: 2;
}

.deco-layer--title {
  width: 360px;
  z-index: 3;
  /* 縦型(タイトルが装飾の下に重なるレイアウト)では、
     斜め帯の下端が「第51回幾徳祭」に掛からないようタイトルを下げる */
  margin-top: 84px;
}

/* タイトルSVGはラッパー div の幅に追従（viewBox 比率で高さ自動） */
.deco-layer--title svg {
  display: block;
  width: 100%;
}

/* ---------- FV内カウントダウン（タイトル日付の直下） ---------- */
.fv-countdown {
  display: flex;
  justify-content: center;
  /* SVG下端の余白(45/375=12%)ぶん引き上げて日付バッジ直下に寄せる
     %マージンは幅基準なので全ブレークポイントで追従する */
  margin-top: -10%;
}

/* FV内では 100svh に収まるよう countdown-box をコンパクトにする */
.fv-countdown .countdown-box {
  padding: 14px 28px 16px;
  gap: 6px;
}

.fv-countdown .countdown__num {
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
}

.fv-countdown .countdown__num--days {
  font-size: clamp(2rem, 5.5vw, 3.2rem);
}

.fv-countdown .countdown__sep {
  font-size: clamp(1.3rem, 3.5vw, 2rem);
}

/* モバイル・タブレット(縦積みレイアウト): 日付下に 100svh 内の
   空きが無いため、タイトル層を通常フローに戻して FV 自体を
   内容に合わせて伸ばす（カウントダウンは日付直下のまま） */
@media screen and (max-width: 1023px) {
  #top {
    height: auto;
    min-height: 100svh;
  }

  #top_decoration {
    width: 100%;
    height: auto;
    min-height: calc((100svh - var(--header-h)) * 0.65);
  }

  .deco-layer--title {
    position: relative;
    left: auto;
    transform: none;
    margin-left: auto;
    margin-right: auto;
  }

  .fv-countdown {
    padding-bottom: 28px;
  }
}

/* ---------- タイトル文字（Webフォント / 紫グラデ） ---------- */
.t-line {
  font-family: var(--font-mincho);
  font-weight: 700;
  text-anchor: middle;
  /* グラデ参照が解決できない環境でも単色紫で文字が見えるようにする
     （2行目の fallback color 付き指定が優先され、非対応なら1行目が残る） */
  fill: #5b3fc4;
  fill: url(#titleGrad) #5b3fc4;
}

/* イントロの輪郭描画演出用レイヤー（js/intro-core.js が .t-line を複製して生成）。
   グラデ塗りの本体に dash / fill-opacity を直接アニメさせると
   iOS WebKit で塗りが消える不具合があるため、輪郭はこのクローンが担う */
.title-outline text {
  fill: none;
  stroke: #6b4fcb;
  stroke-width: 1;
}

.t-kai {
  font-size: 30px;
  letter-spacing: 2px;
}

.t-main {
  font-size: 100px;
  font-weight: 800;
  letter-spacing: 4px;
}

.t-year {
  font-size: 40px;
  letter-spacing: 6px;
}

.t-date {
  font-size: 40px;
}

.date-char {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: 22px;
  text-anchor: middle;
}

/* ---------- スクロールインジケータ ---------- */
.scroll_down {
  position: absolute;
  right: 25px;
  bottom: 0px;
  z-index: 50;
  width: 25px;
  padding: 0 10px;
}

.scroll_down p {
  padding-bottom: calc(6svh + 10px);
  color: var(--themepurple);
  font-size: 1.1em;
  line-height: 1;
  writing-mode: vertical-lr;
  transition: 0.5s;
  margin: auto;
  font-family: var(--font-mincho);
  font-weight: 700;
}

.scroll_down p::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 1px;
  height: 6svh;
  background: var(--purple-line40);
  opacity: 0.5;
}

.scroll_down p::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 1px;
  height: 6svh;
  background: var(--themepurple);
}

#type01 p::after {
  animation: sdl-flow 1.5s ease-in-out infinite;
}

@keyframes sdl-flow {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  45% {
    transform: scaleY(1);
    transform-origin: top;
  }
  55% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

#type01 p {
  animation: text-blink 1.5s ease-in-out infinite;
}

@keyframes text-blink {
  0% {
    opacity: 0.5;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0.5;
  }
}

/* ---------- レスポンシブ（元デザインのブレークポイント） ---------- */
@media screen and (min-width: 550px) {
  /* タブレット: 装飾を少し小さくし、下にタイトルを重ならず収める */
  .deco-layer--back,
  .deco-layer--front {
    width: 380px;
    transform: translateX(-50%);
  }
  .deco-layer--title {
    width: 430px;
    margin-top: 100px;
  }
}

@media screen and (min-width: 768px) {
  .deco-layer--back,
  .deco-layer--front {
    width: 380px;
    transform: translateX(-50%);
  }
  .deco-layer--title {
    width: 430px;
    margin-top: 100px;
  }
}

@media screen and (min-width: 1024px) {
  /* PC: タイトルを左・装飾を右に分離し、文字と図形が重ならないようにする */
  .deco-layer--back,
  .deco-layer--front {
    width: 490px;
    transform: translateX(5%);
  }
  .deco-layer--title {
    transform: translateX(-97%);
    width: 540px;
    margin-top: -470px;
  }

  #top {
    height: 100svh;
    min-height: 0;
  }
}

/* ---------- モーション低減：装飾は最終状態で即表示 ---------- */
@media (prefers-reduced-motion: reduce) {
  .deco-layer {
    visibility: visible;
  }
  #type01 p,
  #type01 p::after {
    animation: none;
  }
}

/* ---------- 全ページ共通：画像の拡大ポップアップ ---------- */
html.is-image-popup-open {
  overflow: hidden;
}

.image-popup {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 72px 20px 20px;
  border: 0;
  background: transparent;
  color: #fff;
}

.image-popup::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.image-popup[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-popup__close {
  position: absolute;
  top: 16px;
  right: 20px;
  min-height: 44px;
  padding: 8px 18px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: #222;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.image-popup__close:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.image-popup__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
}

.image-popup__image {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - 160px);
  object-fit: contain;
}

.image-popup__caption {
  flex: 0 1 auto;
  max-width: 70ch;
  overflow: auto;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}
