/* =========================================================
   AI×工学 探究学習プログラム  style.css
   テーマ：レトロ・カートゥーン（イラスト素材：Astraで生成）
   色を変えるときは、下の :root の値だけを書き換える。
   ========================================================= */

:root {
  /* --- 色 --- */
  --violet:     #4A4DDE;  /* キーカラー（ブルーバイオレット）*/
  --violet-d:   #3436B8;  /* キーカラーの濃色 */
  --ink:        #0E1430;  /* 線・文字（濃紺）*/
  --cream:      #FFF1DA;  /* クリーム */
  --paper:      #FFFBF3;  /* カードの地 */
  --salmon:     #F9937E;
  --coral:      #FD8065;
  --teal:       #2EC4C0;
  --yellow:     #F5DA3A;
  --pink:       #F48A9A;
  --green:      #4CAF50;
  --lavender:   #E7E6FF;
  --muted:      #3D4260;  /* 補足の文字 */

  /* --- 文字 --- */
  --font-body:    system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Yu Gothic UI", "Meiryo", sans-serif;
  --font-display: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Yu Gothic", "Meiryo", sans-serif;
  --font-round:   "Hiragino Maru Gothic ProN", "ヒラギノ丸ゴ ProN", "BIZ UDPGothic", system-ui, sans-serif;

  --radius: 20px;
  --line: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink);
  background: var(--cream);
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ink); border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.4; margin: 0 0 0.6em; }
p, ul, ol, dl, table { margin: 0 0 1em; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; }
.note { font-size: 0.875rem; color: var(--muted); }
.light, .section--violet .note { color: var(--cream); }
.text-link { color: var(--violet-d); font-weight: bold; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
.text-link, .site-footer a { display: inline-block; padding: 8px 0; }   /* 指で押しやすい高さにする */
#teachers { scroll-margin-top: 16px; }

/* ---------- ボタン ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 56px; padding: 12px 32px;
  background: var(--yellow); color: var(--ink);
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
  text-decoration: none;
  border: var(--line); border-radius: 999px;
  box-shadow: 0 6px 0 var(--ink);
  transition: transform .12s, box-shadow .12s;
}
.button::after { content: "→"; font-weight: 900; transition: transform .15s; }
.button:hover::after { transform: translateX(3px); }
.button:hover { transform: translateY(3px); box-shadow: 0 3px 0 var(--ink); }
.button--small { min-height: 48px; font-size: 0.95rem; padding: 8px 22px; }
.button--cream { background: var(--cream); }
.button--big { min-height: 68px; font-size: 1.3rem; padding: 14px 44px; background: var(--salmon); }
.cta { text-align: center; margin: 0; }
.cta-note { text-align: center; font-size: 0.85rem; color: var(--muted); margin: 10px 0 0; }

/* ---------- 共通パーツ ---------- */
.card {
  background: var(--paper);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.checker {
  height: 46px;                           /* 正方形2段（20px×2）＋上下の線 3px×2 */
  background: conic-gradient(var(--pink) 25%, var(--cream) 0 50%, var(--pink) 0 75%, var(--cream) 0) 0 0 / 40px 40px;
  border-top: var(--line); border-bottom: var(--line);
}

/* セクション */
.section { padding: 56px 16px 48px; position: relative; }
.section > * { max-width: 1040px; margin-left: auto; margin-right: auto; }
.section--cream {
  background-color: var(--cream);
  background-image: radial-gradient(rgba(14,20,48,.08) 1.6px, transparent 2px);
  background-size: 22px 22px;
}
.section--violet {
  background-color: var(--violet);
  background-image: radial-gradient(rgba(255,241,218,.16) 1.6px, transparent 2px);
  background-size: 22px 22px;
  color: var(--cream);
  border-top: var(--line); border-bottom: var(--line);
}
.section--violet .card { color: var(--ink); }
.section--sky { background: var(--lavender); }

/* 見出し */
.heading {
  position: relative;
  text-align: center;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  letter-spacing: 0.04em;
  margin-bottom: 1em;
  padding: 0 44px;
  width: fit-content; max-width: 100%;
}
.heading::before, .heading::after {
  content: ""; position: absolute; top: 0.1em;
  width: 32px; height: 32px;
  background: url("../img/deco_sparkle.webp") center / contain no-repeat;
}
.heading::before { left: 0; }
/* 右側のキラキラは2つ（左上が大きめ・右下が小さめ） */
.heading::after {
  right: 0; top: calc((100% - 24px) / 2 - 22px);
  width: 40px; height: 44px;
  background:
    url("../img/deco_sparkle.webp") left top / 25px auto no-repeat,
    url("../img/deco_sparkle.webp") right bottom / 17px auto no-repeat;
}
.heading { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 14'%3E%3Cpath d='M0 7 Q10 0 20 7 T40 7' fill='none' stroke='%230E1430' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 40px 14px repeat-x; padding-bottom: 24px; }
.heading--light { color: var(--cream); text-shadow: 3px 3px 0 var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 14'%3E%3Cpath d='M0 7 Q10 0 20 7 T40 7' fill='none' stroke='%23F5DA3A' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.subheading { text-align: center; font-family: var(--font-display); font-weight: 900; font-size: 1.35rem; margin-top: 48px; }
.subheading--light { color: var(--cream); text-shadow: 2px 2px 0 var(--ink); }
.sp-only { display: inline; }

/* ---------- ヘッダー ---------- */
.site-header {
  background: var(--cream);
  border-bottom: var(--line);
  padding: 6px 16px 4px;
}
.site-header__univ { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: .06em; }
.site-header__univ a { text-decoration: none; display: inline-block; padding: 6px 0; }
.site-header__univ img { height: 34px; width: auto; }
.site-nav { list-style: none; margin: 0 -16px; padding: 0 12px 6px; display: flex; gap: 6px; overflow-x: auto; white-space: nowrap; font-size: 0.85rem; font-weight: bold; }
.site-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); text-decoration: none; transition: background-color .15s; }
.site-nav a:hover { background: var(--yellow); }
.site-nav li:last-child a { background: var(--yellow); }   /* 「申込み」を強調 */
.site-nav li:last-child a:hover { background: var(--salmon); }

/* =========================================================
   冒頭（ヒーロー）
   ========================================================= */
.hero { background: var(--violet); }
.hero__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 1536;           /* スマホ用背景の縦横比 */
  background: var(--violet) url("../img/hero_bg_sp.webp") center bottom / cover no-repeat;
  overflow: hidden;
}
.hero__text {
  position: absolute; left: 0; right: 0; top: 8%;
  text-align: center; padding: 0 12px;
}
.hero__label {
  display: inline-block; margin: 0 0 8px;
  background: var(--yellow); color: var(--ink);
  border: var(--line); border-radius: 999px;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(0.8rem, 3.4vw, 1.15rem);
  padding: 2px 16px;
}
.hero__label { position: relative; z-index: 3; }
.hero__title { margin: -14px auto 0; width: min(94%, 520px); position: relative; z-index: 1; }
.hero__title img { width: 100%; height: auto; filter: drop-shadow(0 4px 0 rgba(14,20,48,.25)); }

.hero__catch {
  display: inline-block;
  margin: 0.4em 0 0;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1rem, 4.6vw, 1.7rem);
  color: var(--cream);
  text-shadow: 2px 2px 0 var(--ink);
}
.hero__sub { display: inline-block; position: relative; }
.hero__year { margin: 0.2em auto 0; width: min(45vw, 203px); }
.hero__year svg { display: block; width: 100%; height: auto; transform: rotate(-6deg); }
.hero__year span::before { left: -0.42em; top: 0.05em; }
.hero__year span::after { right: -0.5em; bottom: 0.1em; width: 0.32em; height: 0.32em; }

.hero__charas {
  position: absolute; left: 0; right: 0; bottom: 2%;
  display: flex; justify-content: center; align-items: flex-end;
  gap: 0;
}
.hero__chara { width: 31%; max-width: 280px; filter: drop-shadow(0 6px 0 rgba(14,20,48,.25)); }
.hero__chara--tv   { animation: bob 2.4s ease-in-out infinite; }
.hero__chara--bulb { animation: bob 2.4s ease-in-out -0.8s infinite; width: 27%; margin: 0 -2%; position: relative; z-index: 1; }
.hero__chara--gear { animation: bob 2.4s ease-in-out -1.6s infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }

.hero__badge {
  position: absolute; right: 2%; top: 47%;
  width: 26%; aspect-ratio: 1.45;
  display: grid; place-items: center;
  background: url("../img/deco_burst_yellow.webp") center / contain no-repeat;
  margin: 0; transform: rotate(-8deg);
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(0.6rem, 2.6vw, 1.15rem); line-height: 1.25; text-align: center;
  color: var(--ink);
}

.hero__info {
  background: var(--cream);
  border-top: var(--line);
  padding: 28px 16px 36px;
}
.facts {
  max-width: 1040px; margin: 0 auto 28px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.facts__item {
  background: var(--paper); border: var(--line); border-radius: 16px;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 13px 12px; text-align: center;
}
.facts__item--date { grid-column: 1 / -1; background: var(--yellow); }
.facts__item--free { background: var(--salmon); }
.facts dt {
  display: inline-block; font-size: 0.8rem; font-weight: bold;
  background: var(--ink); color: var(--cream);
  padding: 0 12px; border-radius: 999px; margin-bottom: 4px;
}
.facts dd { margin: 0; font-family: var(--font-display); font-weight: 800; line-height: 1.45; }
.facts dd small { font-size: 0.8em; font-weight: bold; }
.facts__item--date dd { font-size: 1.15rem; }
.facts__item--date strong { font-size: 2.1rem; font-weight: 900; margin: 0 2px; letter-spacing: .02em; }
.facts__item--date small { display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--ink); color: var(--cream); font-size: 0.7em; vertical-align: 0.35em; margin-right: 2px; }

.status-pill {
  display: inline-block; background: var(--paper); border: var(--line); border-radius: 999px;
  padding: 10px 20px; font-weight: bold; color: var(--violet-d);
}

/* =========================================================
   得られること
   ========================================================= */
.about__lead { display: flex; align-items: center; gap: 16px; max-width: 820px; }
.about__lead p { margin: 0; }
.about__chara { width: 96px; flex: none; }
.benefits { list-style: none; padding: 0; display: grid; gap: 22px; margin-top: 36px; }
.benefits li { padding: 18px; display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto 1fr; column-gap: 14px; align-items: start; }
.benefits img { width: 64px; grid-row: span 2; }
.benefits h3 { font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; color: var(--violet-d); margin: 4px 0 0.3em; }
.benefits p { margin: 0; font-size: 0.95rem; }
#about > .center { margin-top: 28px; }
.benefits__wide { background: #FFF0F4; }
.benefits li.benefits__wide img { grid-row: auto; }
.benefits__wide h3 { align-self: center; }
.benefits__wide > div { grid-column: 1 / -1; margin-top: 10px; }
.badge-points { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; font-size: 0.92rem; }
.benefits .badge-points li { display: block; padding: 10px 12px; background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; }
.badge-points strong { display: block; color: var(--violet-d); font-family: var(--font-display); font-weight: 900; margin-bottom: 2px; }


/* =========================================================
   3日間の流れ
   ========================================================= */
.days { list-style: none; padding: 0; display: grid; gap: 22px; margin-top: 8px; }
.day { padding: 18px 18px 20px; }
.day img { width: 110px; margin: -2px auto 8px; }
.day h3 { text-align: center; font-family: var(--font-display); font-weight: 900; font-size: 1.25rem; }
.day__no {
  display: inline-block; margin-right: 8px;
  background: var(--violet); color: var(--cream);
  font-size: 0.85rem; padding: 2px 12px; border-radius: 999px; border: 2px solid var(--ink);
  vertical-align: 0.2em; letter-spacing: .08em;
}
.day ul { margin: 0; padding-left: 1.3em; }
.day ul li + li { margin-top: 6px; }
.day ul li::marker { color: var(--coral); }
#schedule > p:last-of-type { margin-top: 20px; }
.day li small { font-size: 0.82em; color: var(--muted); }
.awards {
  margin: 28px auto 28px; text-align: center;
  background: var(--paper); color: var(--ink);
  border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 16px 18px;
}
.awards__title { font-family: var(--font-display); font-weight: 900; font-size: 1.25rem; margin-bottom: 12px; }
.awards__list { list-style: none; padding: 0; margin: 0 0 12px; display: flex; justify-content: center; align-items: center; gap: 3%; }
.awards__list li { width: 214px; max-width: 43%; }
/* プレゼン賞は横長・文字が小さく見えるので、少し大きめに */
.awards__list li:first-child { width: 246px; max-width: 50%; }
.awards__list img { display: block; width: 100%; height: auto; }
.awards__note { margin: 0; font-size: 0.9rem; }

/* =========================================================
   コースとテーマ
   ========================================================= */
.course {
  margin-top: 40px;
  background: var(--paper); border: var(--line); border-radius: 28px; box-shadow: var(--shadow);
  overflow: hidden;
}
.course--ai  { --c: var(--teal);  --c-soft: #DDF6F5; }
.course--eng { --c: var(--coral); --c-soft: #FFE4DC; }
.course__head {
  display: flex; gap: 14px; align-items: center;
  background: var(--c); border-bottom: var(--line);
  padding: 18px 18px;
}
.course__head img { width: 64px; flex: none; }
.course__head h3 { font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; margin: 0 0 4px; color: var(--ink); }
.course__head p { margin: 0; font-size: 0.92rem; }
.courses__notice {
  max-width: 640px; margin: 20px auto 0; padding: 14px 18px;
  background: var(--yellow); border: var(--line); border-radius: 16px;
  box-shadow: 4px 4px 0 var(--ink);
  text-align: center; font-weight: 700; line-height: 1.6;
}
.courses__notice strong { font-family: var(--font-display); font-weight: 900; font-size: 1.05rem; }
.themes__label {
  margin: 0; padding: 14px 18px 0;
  font-family: var(--font-display); font-weight: 900; font-size: 0.95rem; color: var(--violet-d);
}
.themes__label::before { content: ""; display: inline-block; width: 0.6em; height: 0.6em; margin-right: 0.4em; background: var(--coral); border: 2px solid var(--ink); border-radius: 50%; vertical-align: 0.05em; }
.themes { list-style: none; padding: 18px; margin: 0; display: grid; gap: 12px; counter-reset: theme; }
.theme {
  counter-increment: theme;
  position: relative;
  background: var(--c-soft); border: 2px solid var(--ink); border-radius: 16px;
  padding: 14px 14px 14px 52px;
}
.theme::before {
  content: counter(theme, decimal-leading-zero);
  position: absolute; left: 10px; top: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c); border: 2px solid var(--ink);
  font-family: var(--font-display); font-weight: 900; font-size: 0.85rem;
}
.theme h4 { font-family: var(--font-display); font-weight: 800; font-size: 1rem; margin-bottom: 0.3em; }
.theme p { margin: 0; font-size: 0.9rem; }

/* =========================================================
   アンケート
   ========================================================= */
.survey__legend { text-align: center; font-size: 0.875rem; }
.survey__key { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--ink); vertical-align: -2px; margin-right: 4px; }
.survey__key--a, .survey__a { background: var(--yellow); }
.survey__key--b, .survey__b { background: var(--salmon); }
.survey { list-style: none; padding: 0; display: grid; gap: 22px; }
.survey__item { padding: 18px 20px 20px; text-align: center; }
.survey__total {
  width: 150px; aspect-ratio: 1.3; margin: -4px auto 4px;
  display: flex; align-items: center; justify-content: center;
  background: url("../img/deco_burst_teal.webp") center / contain no-repeat;
  font-family: var(--font-display); font-weight: 900; font-size: 2.6rem; line-height: 1; color: var(--ink);
}
.survey__total small { font-size: 0.5em; }
.survey__q { font-weight: 900; font-family: var(--font-display); margin-bottom: 10px; }
.survey__bar { display: flex; height: 20px; background: var(--lavender); border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.survey__a, .survey__b { display: block; width: calc(var(--p) * 1%); }
.survey__a { border-right: 2px solid var(--ink); }
.survey__detail { font-size: 0.82rem; color: var(--muted); margin: 8px 0 0; }

.comments { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.comments li { display: flex; align-items: center; gap: 14px; }
.comments img { width: 76px; flex: none; }
.comments p {
  position: relative; margin: 0; flex: 1;
  background: var(--paper); color: var(--ink);
  border: var(--line); border-radius: 22px;
  padding: 14px 18px; font-weight: bold;
}
.comments p::before {
  content: ""; position: absolute; left: -13px; top: 50%;
  width: 20px; height: 20px; background: var(--paper);
  border-left: var(--line); border-bottom: var(--line);
  transform: translateY(-50%) rotate(45deg);
}


/* =========================================================
   参加までの手順
   ========================================================= */
.steps { list-style: none; padding: 0; display: grid; gap: 36px; counter-reset: step; }
.step { position: relative; padding: 30px 20px 20px; counter-increment: step; }
.step::before {
  content: "STEP " counter(step);
  position: absolute; left: 50%; top: -18px; transform: translateX(-50%);
  background: var(--violet); color: var(--cream); border: var(--line); border-radius: 999px;
  padding: 2px 18px; font-family: var(--font-display); font-weight: 900; font-size: 0.9rem; letter-spacing: .06em;
  white-space: nowrap;
}
.step h3 { text-align: center; font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; color: var(--violet-d); }
.step p { margin: 0; }
.steps__chara { width: 130px; margin: 20px auto 0; }

/* =========================================================
   よくある質問
   ========================================================= */
.heading__chara { position: absolute; left: 50%; top: 0; width: 56px; transform: translateX(-50%); }
.heading--faq { padding-top: 90px; }
.heading--faq::before { top: calc(90px + 0.1em); }
.faq { display: grid; gap: 14px; max-width: 840px; }
.faq .qa { background: var(--paper); border: var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: 4px 4px 0 var(--ink); }
.faq dt, .faq dd { position: relative; padding-left: 42px; }
.faq dt { font-weight: 900; font-family: var(--font-display); }
.faq dd { margin: 10px 0 0; }
.faq dt::before, .faq dd::before {
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 900; font-size: 0.9rem; line-height: 1;
}
.faq dt::before { content: "Q"; background: var(--violet); color: var(--cream); }
.faq dd::before { content: "A"; background: var(--yellow); color: var(--ink); }

/* =========================================================
   申込み
   ========================================================= */
.apply > * { max-width: 680px; }
.apply__box { position: relative; padding: 24px 18px 28px; }
.deadline__title { font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; margin-bottom: 8px; }
.deadline__box { border: var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.deadline { width: 100%; border-collapse: collapse; margin: 0; }
.deadline th, .deadline td { padding: 12px 10px; text-align: left; }
.deadline tr + tr th, .deadline tr + tr td { border-top: 2px dashed var(--ink); }
.deadline th { color: var(--violet-d); white-space: nowrap; background: var(--lavender); }
.deadline__sub { display: block; font-size: 0.75rem; font-weight: normal; color: var(--muted); }
.deadline__group { margin: 12px 0 0; font-size: 0.9rem; font-weight: bold; }
.deadline__group::before { content: "※"; }
.deadline td { padding: 12px 14px; text-align: left; }
.deadline tr + tr th, .deadline tr + tr td { border-top: 2px dashed var(--ink); }
.deadline th { color: var(--violet-d); white-space: nowrap; background: var(--lavender); }
.deadline__sub { display: block; font-size: 0.75rem; font-weight: normal; color: var(--muted); }
.deadline td { font-family: var(--font-display); font-weight: 900; font-size: 1rem; white-space: normal; }
.apply__box .entry-open { margin-top: 28px; }
.apply__chara { position: absolute; width: 96px; right: 6px; top: -78px; transform: scaleX(-1); }
.teacher { margin-top: 28px; padding: 20px; }
.teacher h3 { font-family: var(--font-display); font-weight: 900; color: var(--violet-d); }
.teacher p { margin: 0; }

/* ---------- 申込み受付の切り替え ----------
   index.html 先頭の <html data-entry="〇〇"> の値で表示を切り替える。
   値が空・書き間違いのときは「受付中（open）」の表示になる。 */
.entry-before,
.entry-closed { display: none; }
html[data-entry="before"] .entry-before,
html[data-entry="closed"] .entry-closed { display: block; }
html[data-entry="before"] .entry-open,
html[data-entry="closed"] .entry-open { display: none; }
.entry-status { background: var(--cream); border: 3px dashed var(--ink); border-radius: 16px; padding: 18px; margin-top: 24px; text-align: center; }
.entry-status p { margin: 0 0 0.4em; }
.entry-status p:last-child { margin: 0; }

/* ---------- 画面下の申込みボタン（スマートフォンのみ）---------- */
.fab { position: fixed; right: 10px; bottom: 10px; margin: 0; z-index: 50; transition: transform .25s, opacity .25s; }
.fab.is-hidden { transform: translateY(120%); opacity: 0; pointer-events: none; }
.fab a {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 56px; padding: 6px 20px 6px 8px;
  background: var(--yellow); color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 900;
  border: var(--line); border-radius: 999px; box-shadow: 0 5px 0 var(--ink);
}
.fab img { width: 46px; }

/* =========================================================
   会場・お問い合わせ
   ========================================================= */
.contact { display: grid; gap: 22px; }
.contact .card { padding: 20px; }
.contact dt { font-family: var(--font-display); font-weight: 900; color: var(--violet-d); margin-bottom: 6px; }
.contact dd { margin: 0; }
.contact__chara { width: 130px; margin: 24px auto 0; }

/* ---------- フッター ---------- */
.checker--footer { border-bottom: 0; }
.site-footer { background: var(--ink); color: var(--cream); text-align: center; padding: 32px 16px 104px; font-size: 0.875rem; }
.site-footer a { color: var(--cream); }
.site-footer p { margin: 0 0 0.5em; }
.site-footer__name { font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; letter-spacing: .1em; }

/* 動きを減らす設定の人には動かさない */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__chara { animation: none !important; }
  .button, .button::after, .site-nav a { transition: none; }
}

/* =========================================================
   PC・タブレット幅
   ========================================================= */
@media (min-width: 768px) {
  .sp-only { display: none; }
  .site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 28px; }
  .site-header__univ { flex-shrink: 0; }
  .site-nav { margin: 0; padding: 0; overflow: visible; font-size: 0.9rem; flex-wrap: wrap; justify-content: flex-end; row-gap: 8px; }

  .hero__stage {
    aspect-ratio: auto;
    height: min(56.25vw, 860px);
    min-height: 560px;
    background-image: url("../img/hero_bg_pc.webp");
    background-position: center bottom;
  }
  /* 冒頭の文字まわり：幅1200pxを基準に組み、画面の大きさに合わせて拡大縮小（--u = 基準の1px） */
  .hero__stage {
    --H: clamp(560px, 56.25vw, 860px);
    --u: min(calc(100vw / 1200), calc(var(--H) / 675));
  }
  .hero__text {
    /* 横幅が狭い（768〜995px）ときは、余った高さの半分だけ下げる */
    top: calc((var(--H) - 675 * var(--u)) * 0.5); left: 50%; right: auto; transform: translateX(-50%);
    width: calc(1200 * var(--u)); height: calc(675 * var(--u)); padding: 0;
  }
  .hero__label {
    position: absolute; z-index: 3; left: 50%; transform: translateX(-50%);
    top: calc(37 * var(--u)); margin: 0; white-space: nowrap;
    font-size: max(14px, calc(18.4 * var(--u)));
    padding: calc(2 * var(--u)) calc(16 * var(--u));
  }
  .hero__title {
    position: absolute; z-index: 1; margin: 0;
    left: calc(248 * var(--u)); top: calc(67 * var(--u)); width: calc(705 * var(--u));
  }
  .hero__sub { display: block; position: static; }
  .hero__catch {
    position: absolute; left: 0; right: 0; margin: 0;
    top: calc(353 * var(--u));
    font-size: max(18px, calc(29.6 * var(--u)));
    text-shadow: 3px 3px 0 var(--ink);
  }
  .hero__year {
    position: absolute; z-index: 2; margin: 0;
    left: calc(89 * var(--u)); top: calc(249 * var(--u)); right: auto; bottom: auto;
    width: calc(273 * var(--u));
  }
  .hero__year svg { transform: rotate(-8deg); }
  .hero__charas { bottom: 3%; }
  .hero__chara { width: auto; height: min(21vw, 330px); max-width: none; }
  .hero__chara--bulb { width: auto; height: min(19.5vw, 305px); margin: 0 -1.5vw; }
  .hero__badge { right: 5%; top: 41.4%; width: calc(251 * var(--u)); font-size: max(13px, calc(21 * var(--u))); }

  .hero__info { padding: 36px 24px 44px; }
  .facts { grid-template-columns: 2fr repeat(4, 1fr); gap: 14px; }
  .facts__item--date dd { white-space: nowrap; font-size: 0.95rem; }
  .facts__item--date strong { font-size: clamp(1.35rem, 2.5vw, 2rem); }
  .facts__item--date { grid-column: auto; }
  .facts__item { display: flex; flex-direction: column; justify-content: flex-start; align-items: center; }

  .section { padding: 88px 24px 68px; }
  .about__lead { margin-top: 0; gap: 28px; }
  .about__chara { width: 150px; }
  .benefits { grid-template-columns: 1fr 1fr; gap: 28px; }
  .benefits li { grid-template-columns: 110px 1fr; padding: 24px; column-gap: 18px; }
  .benefits li.benefits__wide { grid-column: 1 / -1; grid-template-columns: 150px 1fr; grid-template-rows: auto auto; align-content: center; }
  .benefits li.benefits__wide img { width: 150px; }
  .benefits li.benefits__wide img { grid-row: span 2; }
  .benefits__wide h3 { align-self: start; }
  .benefits__wide > div { grid-column: auto; margin-top: 0; }
  .badge-points { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .benefits li.benefits__wide h3 { align-self: end; }
  .benefits li.benefits__wide p { align-self: start; }
  .benefits img { width: 110px; }

  .days { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .day img { width: 130px; }

  .course { margin-top: 52px; }
  .course__head { padding: 22px 28px; gap: 22px; }
  .course__head img { width: 110px; }
  .theme { padding-left: 58px; }
  .theme::before { left: 12px; width: 36px; height: 36px; }
  .course__head h3 { font-size: 2rem; }
  .themes { grid-template-columns: 1fr 1fr; padding: 26px; gap: 16px; }

  .survey { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .survey__q { min-height: 3.4em; display: grid; place-items: center; }
  .comments { grid-template-columns: 1fr 1fr; gap: 26px 32px; }
  .comments img { width: 96px; }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 30px; }
  .steps__chara { position: absolute; right: max(24px, calc(50% - 600px)); bottom: 24px; width: 150px; margin: 0; }
  #steps { padding-bottom: 130px; }

  .heading--faq { padding-top: 0; }
  .heading--faq::before { top: 0.1em; }
  .heading__chara { left: auto; right: 100%; top: auto; bottom: 4px; width: 100px; transform: none; }

  .apply__box { padding: 32px 36px 36px; }
  .deadline th, .deadline td { padding: 12px 16px; }
  .deadline td { font-size: 1.05rem; white-space: nowrap; }
  .apply__chara { width: 150px; right: -96px; top: auto; bottom: -20px; }

  .contact { grid-template-columns: 1fr 1fr; }
  .contact__chara { position: absolute; left: max(24px, calc(50% - 620px)); top: 40px; width: 130px; margin: 0; }

  .fab { display: none; }
  .site-footer { padding-bottom: 36px; }
}

@media (min-width: 768px) and (max-width: 1000px) {
  .apply__chara { right: -20px; bottom: auto; top: -110px; width: 110px; }
}
