/* ===== 色と基本（チラシの紺と黄） ===== */
:root {
  --navy: #0f3470;
  --yellow: #f7cf1d;
  --blue: #2d6fc4;
  --ink: #1d1d1f;
  --paper: #ffffff;
  --soft: #eef3fb;
  --red: #b3261e;   /* 【要確認】の印 */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; } /* script.js が動く時は #093 のスムーススクロールに切り替わる */
body {
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 16px; line-height: 1.8; color: var(--ink); background: var(--navy);
  padding-bottom: 76px; /* 固定ボタンの分 */
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
/* 日本語を文節で折り返す（対応ブラウザのみ） */
h1, h2, h3, p, dd, summary, a { word-break: auto-phrase; }
@media (min-width: 768px) { br.sp { display: none; } }
.tbd { color: var(--red); font-weight: 700; font-size: 15px; }

/* ページ全体を紺の枠で囲む（チラシの枠） */
.hero, main, .footer { background: var(--paper); max-width: 760px; margin-inline: auto; }
.hero { border: 6px solid var(--navy); border-bottom: 0; position: relative; overflow: hidden; padding-bottom: 32px; }
main { border-inline: 6px solid var(--navy); }

/* 制作見本の表示 */
.sample-note { max-width: 760px; margin-inline: auto; background: #fff; color: var(--navy); font-size: 12px; font-weight: 700; text-align: center; line-height: 24px; letter-spacing: .05em; }

/* ===== 1. ファーストビュー ===== */
.hero::before { content: ""; position: absolute; left: -44px; top: -44px; width: 104px; height: 104px; border-radius: 50%; background: var(--yellow); }
.hero__catch { position: relative; color: var(--navy); font-weight: 700; font-size: 15px; line-height: 1.6; text-align: center; padding: 26px 16px 10px; margin: 0 28px; border-bottom: 2px solid var(--blue); }
.hero__title { color: var(--navy); font-weight: 900; font-size: 92px; line-height: 1.05; text-align: center; letter-spacing: .02em; margin: 16px 0 10px; }
.hero__lead { font-weight: 700; font-size: 16px; line-height: 1.75; text-align: center; padding: 0 16px; word-break: keep-all; overflow-wrap: anywhere; }
.hero__photo { width: 100%; height: 130px; object-fit: cover; margin: 18px 0 16px; }
.facts { padding: 0 18px; display: grid; gap: 12px; }
.facts div { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.facts dt { background: var(--yellow); color: var(--navy); font-weight: 900; font-size: 16px; padding: 6px 12px; border-radius: 8px; }
.facts dd strong { display: block; font-weight: 900; font-size: 27px; line-height: 1.2; }
.facts dd span { display: block; font-weight: 700; font-size: 18px; line-height: 1.3; }

/* ボタン */
.btn { display: block; margin: 22px 18px 0; min-height: 56px; padding: 14px 16px; background: var(--navy); color: #fff; text-align: center; font-weight: 900; font-size: 19px; line-height: 1.4; text-decoration: none; border-radius: 12px; }
.btn small { display: block; font-size: 13px; font-weight: 700; color: var(--yellow); }
.btn:hover { background: #0a2552; }
.btn:focus-visible, .fixed-cta:focus-visible, summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.btn--big { margin-inline: 0; font-size: 20px; padding-block: 18px; }

/* ===== 共通セクション ===== */
.sec { padding: 48px 20px 0; }
.sec__title { color: var(--navy); font-weight: 900; font-size: 24px; line-height: 1.4; border-left: 8px solid var(--yellow); padding-left: 12px; margin-bottom: 18px; }

/* ===== 2. 当日のお楽しみ ===== */
.program { list-style: none; display: flex; gap: 14px; margin-inline: -20px; padding: 6px 20px 18px; overflow-x: auto; scroll-snap-type: x mandatory; }
.program::after { content: ""; flex: 0 0 6px; }
.program li { flex: 0 0 78%; scroll-snap-align: center; min-height: 160px; background: #fff; border: 2px solid var(--navy); border-radius: 12px; padding: 16px 18px; }
.program h3 { font-size: 20px; font-weight: 900; color: var(--navy); line-height: 1.4; margin: 4px 0 6px; }
.program__no { font-size: 15px; font-weight: 900; color: var(--blue); letter-spacing: .08em; }

/* ===== 3. 主催者の想い（大きく見せる区切り） ===== */
.wish { margin-top: 56px; background: var(--navy); color: #fff; padding: 52px 24px; position: relative; overflow: hidden; }
.wish::after { content: ""; position: absolute; right: -50px; bottom: -50px; width: 120px; height: 120px; border-radius: 50%; background: var(--yellow); }
.wish__label { display: inline-block; background: var(--yellow); color: var(--navy); font-size: 15px; font-weight: 900; padding: 4px 12px; border-radius: 6px; margin-bottom: 20px; }
.wish__text { font-size: 26px; font-weight: 900; line-height: 1.7; position: relative; z-index: 1; }
.wish__from { margin-top: 18px; font-size: 15px; font-weight: 700; color: #cdd9ee; position: relative; z-index: 1; }

/* ===== 4. はじめての方へ ===== */
.welcome p { font-size: 17px; font-weight: 500; line-height: 1.9; }
.welcome p + p { margin-top: 14px; }
.welcome p:first-of-type { font-size: 20px; font-weight: 900; color: var(--navy); line-height: 1.6; }

/* ===== 5. よくある質問 ===== */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--soft); border-radius: 10px; }
.faq summary { cursor: pointer; list-style: none; min-height: 48px; padding: 12px 44px 12px 16px; font-weight: 700; font-size: 16px; line-height: 1.6; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--blue); font-weight: 900; margin-right: 8px; }
.faq summary::after { content: "＋"; position: absolute; right: 16px; top: 12px; color: var(--navy); font-weight: 900; }
.faq details[open] summary::after { content: "－"; }
.faq details p { padding: 0 16px 14px 36px; }

/* ===== 6. 申込 ===== */
.apply__deadline { font-size: 18px; font-weight: 700; line-height: 1.7; }
.apply__deadline strong { font-size: 24px; color: var(--navy); font-weight: 900; }
.tbd-on-dark { color: #ffd9d4 !important; }

/* ===== 7. 開催概要 ===== */
.outline { border-top: 2px solid var(--navy); }
.outline div { display: grid; grid-template-columns: 6.5em 1fr; gap: 10px; padding: 12px 4px; border-bottom: 1px dashed var(--blue); }
.outline dt { font-weight: 900; color: var(--navy); }
.outline a { font-weight: 700; display: inline-block; min-height: 44px; line-height: 44px; margin-block: -12px; }

/* ===== フッター ===== */
.footer { border: 6px solid var(--navy); border-top: 0; padding: 40px 20px 32px; font-size: 15px; font-weight: 700; color: var(--navy); }

/* ===== 画面下の固定ボタン（スマホ） ===== */
.fixed-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 10; min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--yellow); color: var(--navy); font-weight: 900; font-size: 18px; text-decoration: none; border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.fixed-cta small { font-size: 13px; font-weight: 700; }

/* ===== PC（広い画面） ===== */
@media (min-width: 768px) {
  body { padding: 40px 0 0; font-size: 17px; }
  .hero { border-width: 10px; border-bottom: 0; padding-bottom: 48px; }
  main { border-inline-width: 10px; }
  .footer { border-width: 10px; border-top: 0; margin-bottom: 40px; }
  .hero::before { left: -60px; top: -60px; width: 150px; height: 150px; }
  .hero__catch { font-size: 22px; margin: 0 64px; padding-top: 44px; }
  .hero__title { font-size: 168px; margin: 24px 0 16px; }
  .hero__lead { font-size: 21px; }
  .hero__photo { height: 220px; margin: 32px 0 28px; }
  .facts { padding: 0 64px; gap: 16px; }
  .facts dt { font-size: 20px; padding: 8px 18px; }
  .facts dd strong { font-size: 40px; display: inline; margin-right: 12px; }
  .facts dd span { font-size: 24px; display: inline; }
  .btn { margin: 32px 64px 0; font-size: 22px; padding: 18px; }
  .btn--big { margin-inline: 0; }
  .sec { padding: 64px 64px 0; }
  .sec__title { font-size: 30px; }
  .program { margin-inline: -64px; padding-inline: 64px; gap: 20px; }
  .program li { flex-basis: 300px; min-height: 190px; }
  .wish { margin-top: 72px; padding: 72px 64px; }
  .wish__text { font-size: 36px; }
  .welcome p:first-of-type { font-size: 24px; }
  .footer { padding: 56px 64px 40px; }
  .fixed-cta { display: none; }
}

/* ===== 演出（script.js と組み合わせて使う） ===== */
/* #017 想いの帯：広がる前は隠しておき、ふちに黄色い線 */
.wish.fx-mask { clip-path: circle(0 at 100% 100%); }
.fx-ring { position: absolute; border: 7px solid var(--yellow); border-radius: 50%; pointer-events: none; z-index: 2; box-sizing: border-box; }
/* #075 お知らせの帯と、上に止まるヘッダー */
.notice { max-width: 760px; margin-inline: auto; background: var(--navy); color: var(--yellow); font-size: 13px; font-weight: 700; text-align: center; line-height: 30px; letter-spacing: .05em; }
.gnav { position: sticky; top: 0; z-index: 20; max-width: 760px; margin-inline: auto; display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 10px 0 14px; background: var(--paper); border: 6px solid var(--navy); border-block: 0; box-shadow: inset 0 -1px 0 #dfe6f2; }
.gnav::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; background: linear-gradient(rgba(15, 52, 112, .16), rgba(15, 52, 112, 0)); opacity: var(--sh, 0); pointer-events: none; }
.gnav__logo { font-weight: 900; font-size: 19px; color: var(--navy); text-decoration: none; margin-right: auto; min-height: 44px; display: flex; align-items: center; }
.gnav__menu { list-style: none; display: flex; }
.gnav__menu a { display: flex; align-items: center; min-height: 44px; padding: 0 9px; font-size: 15px; font-weight: 700; color: var(--navy); text-decoration: none; }
.gnav__btn { display: none; }
.hero { border-top: 0; }
#program, #faq, #outline, #apply, #welcome { scroll-margin-top: 64px; }
/* #080 マーカー：文字の下寄りに黄色の線を、左から0.8秒で引く（文字の後ろに描く） */
.marker { background-image: linear-gradient(#FFE36B, #FFE36B); background-repeat: no-repeat; background-position: 0 88%; background-size: 100% .5em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.marker.is-ready { background-size: 0% .5em; transition: background-size .8s cubic-bezier(.33, 1, .68, 1); }
.marker.is-ready.is-on { background-size: 100% .5em; }

/* #003 見出しのバースト */
.hero__title { position: relative; z-index: 1; }
.hero { isolation: isolate; }
.fx-burst { position: absolute; left: 0; pointer-events: none; z-index: -1; } /* 文字の後ろに描く */
/* #094 マーキー：4組並べて、1組分（25%）を4.8秒で等速に左へ。くり返してもつなぎ目が出ない */
.marquee { background: var(--navy); height: 58px; overflow: hidden; display: flex; align-items: center; }
.marquee__track { display: flex; flex: none; animation: marquee 4.8s linear infinite; }
.marquee__set { display: flex; align-items: center; flex: none; }
.marquee__set span { color: #fff; font-size: 30px; font-weight: 900; letter-spacing: 1px; white-space: nowrap; line-height: 1; }
.marquee__set i { width: 12px; height: 12px; border-radius: 50%; background: #e8553f; margin: 0 26px; flex: none; }
@keyframes marquee { to { transform: translateX(-25%); } }
/* #077 横スクロール：見出しとカードを画面の上（ヘッダーの下）に止め、カードを横へ流す */
.hs { overflow-x: clip; }
.hs.is-hs .hs__pin { position: sticky; }
.hs.is-hs .program { overflow: visible; scroll-snap-type: none; will-change: transform; }
/* #081 ホバーで浮き上がる（マウスのある端末だけ） */
@media (hover: hover) and (pointer: fine) {
  .program li { transition: transform .3s cubic-bezier(.33, 1, .68, 1), box-shadow .3s cubic-bezier(.33, 1, .68, 1); box-shadow: 0 2px 6px rgba(15, 52, 112, .08); }
  .program li:hover { transform: translateY(-10px); box-shadow: 0 12px 22px rgba(15, 52, 112, .22); }
}
/* #083 マウスストーカー */
.fx-stalker { position: fixed; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: #e8553f; opacity: 0; pointer-events: none; z-index: 30; transition: opacity .2s; }
.fx-stalker.is-on { opacity: .88; }
/* #093 今いる欄のメニューと「先頭へ」ボタン */
.gnav__menu a.is-current { color: #c8432b; }
.fx-totop { position: fixed; right: 16px; bottom: 84px; z-index: 15; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); color: var(--navy); border: 2px solid var(--navy); display: grid; place-items: center; box-shadow: 0 3px 10px rgba(0,0,0,.2); opacity: 0; visibility: hidden; }
@media (min-width: 768px) { .fx-totop { bottom: 28px; right: 28px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .wish.fx-mask { clip-path: none; }
  .marker.is-ready { background-size: 100% .5em; transition: none; }
  .program li, .program li:hover { transition: none; transform: none; }
}

/* PCのヘッダー（共通の指定より後に書く） */
@media (min-width: 768px) {
  .notice { font-size: 14px; line-height: 34px; }
  .gnav { border-width: 0 10px; height: 60px; padding: 0 20px 0 28px; gap: 12px; }
  .gnav__logo { font-size: 22px; }
  .gnav__menu a { font-size: 16px; padding: 0 12px; }
  .gnav__btn { display: flex; align-items: center; min-height: 44px; padding: 0 18px; background: var(--navy); color: #fff; font-weight: 900; font-size: 16px; text-decoration: none; border-radius: 10px; }
  .gnav__btn:hover { background: #0a2552; }
}
