@charset "utf-8";

/* =========================================================
   京大M予備の自由登校（shugaku.m-yobi.jp）
   資料①（水彩・ぬくもり系ストーリーボード）のトーンを踏襲：
   クリーム地 × やわらかな陽だまりイエロー × パステル3色。
   角丸は大きく、影はやわらかく。見出しはこげ茶。
   ========================================================= */

:root {
  --cream: #faf6ee;
  --paper: #ffffff;
  --sun: #e0c185;
  --sun-soft: #f6efe0;
  --sun-deep: #c7a55c;
  --brown: #0a3d70;
  --ink: #233247;
  --muted: #54617a;
  --line: #dbe2ee;
  --blue: #eaf2fb;
  --green: #f6efe0;
  --pink: #ffe4dc;
  --cta: #e23a1c;
  --cta-deep: #b02a10;
  --line-green: #06c755;
  --radius: 22px;
  --shadow: 0 12px 30px rgba(10, 61, 112, .14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  font-weight: 500;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown); }

/* =========================================================
   日本語の折り返し
   ブラウザ既定は文字単位で折るため「変わりま／す。」のような
   不自然な改行が出る。文節で折り、禁則を厳格にし、
   見出しは行の長さを揃えて最終行の孤立をなくす。
   ========================================================= */
/* word-break / line-break / text-wrap は継承プロパティ。
   div ベースの箱（.band など）にも効かせるため body に一括で指定する。 */
body {
  word-break: auto-phrase;  /* 文節単位で折る（対応外のブラウザは無視する） */
  line-break: strict;       /* 禁則処理を厳格に */
  text-wrap: pretty;        /* 最終行に1語だけ残さない */
}

/* 見出し・短いコピーは行長を揃える（孤立行を作らない） */
h1, h2, h3, .hero-sub, .hero-no, .hero-concept, .tail, .orb-center,
.bubble-line, .lead, .hero-figure figcaption, .photo-strip figcaption,
.brandbar-list b, .link-card b, .timeline b, .q-head, .print-offer h3 {
  text-wrap: balance;
}

/* 途中で切ってはいけない語（時刻・電話番号など） */
.nb { white-space: nowrap; }

/* 幅に余裕がある画面でだけ効かせる改行 */
.pc-br { display: none; }
@media (min-width: 721px) { .pc-br { display: block; } }


.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.wrap-narrow { width: min(820px, calc(100% - 40px)); }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.center { text-align: center; }
.sp-br { display: none; }

/* ---------- 見出し ---------- */
.kicker {
  margin: 0 0 10px;
  text-align: center;
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .16em;
  color: #005bac;
}
.kicker-light { color: var(--sun); }

.h2 {
  margin: 0 0 26px;
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  font-weight: 900;
  line-height: 1.5;
  color: var(--brown);
}
.h2-light { color: var(--cream); }

.lead {
  max-width: 780px;
  margin: 0 auto 34px;
  font-size: clamp(1rem, 2.2vw, 1.08rem);
  line-height: 2.05;
}
.lead b { color: var(--cta); font-weight: 800; }
.lead.light { color: rgba(250, 246, 238, .96); }
.lead.light b { color: var(--sun); }

.note { color: var(--muted); font-size: .9rem; }
.tail {
  margin: 34px auto 0;
  max-width: 760px;
  text-align: center;
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  font-weight: 900;
  color: var(--brown);
  line-height: 1.8;
}
.tail b {
  color: var(--cta);
  background: linear-gradient(transparent 62%, var(--sun-soft) 62%);
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 15px 30px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: clamp(.95rem, 2.2vw, 1.05rem);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-lg { padding: 18px 44px; font-size: 1.12rem; }

.btn-main { background: linear-gradient(180deg, #e8401f, #d63114); color: #fff; box-shadow: 0 6px 0 #a1240c; }
.btn-soft { background: #fff; color: var(--brown); border: 3px solid var(--sun); }
.btn-gold { background: var(--sun); color: var(--brown); box-shadow: 0 6px 0 var(--sun-deep); }
.btn-line { background: var(--line-green); color: #fff; box-shadow: 0 6px 0 #04a045; }
.btn-tel { background: var(--sun); color: var(--brown); }

/* =========================================================
   ヘッダー
   ========================================================= */
.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px clamp(14px, 3vw, 28px);
  background: rgba(250, 246, 238, .95);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--sun);
}
.bar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.bar-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--brown);
  color: var(--sun);
  font-weight: 900;
  font-size: 1.2rem;
}
.bar-name strong { display: block; font-size: .95rem; font-weight: 900; color: var(--brown); line-height: 1.3; }
.bar-name small { display: block; font-size: .7rem; color: var(--muted); }
.bar-nav { display: flex; gap: 20px; }
.bar-nav a { font-size: .9rem; font-weight: 800; text-decoration: none; color: var(--brown); }
.bar-nav a:hover { color: var(--cta); }
.bar-cta {
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--cta);
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--cta-deep);
}

/* =========================================================
   ヒーロー
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--sun);
  background:
    radial-gradient(circle at 86% 10%, rgba(224, 193, 133, .4), transparent 46%),
    radial-gradient(circle at 8% 88%, rgba(234, 242, 251, .9), transparent 44%),
    radial-gradient(circle at 92% 80%, rgba(255, 228, 220, .5), transparent 40%),
    linear-gradient(165deg, #fffdf8 0%, #f6efe0 55%, #eef3fa 100%);
}
.hero-inner {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
  padding: clamp(32px, 5vw, 64px) 0 clamp(36px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 3.4vw, 44px);
  align-items: center;
}
.hero-copy { grid-column: 1; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 14px;
  padding: 8px 18px 8px 12px;
  border-radius: 999px;
  background: var(--brown);
  color: var(--sun);
  font-size: clamp(.78rem, 2vw, .92rem);
  font-weight: 800;
}
.sun-mark {
  flex: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #f9ecd2 0 30%, var(--sun) 31% 70%, transparent 71%);
  box-shadow: 0 0 10px rgba(224, 193, 133, .95);
}

.hero-title { margin: 0 0 10px; line-height: 1.1; }
.hero-no {
  display: block;
  font-size: clamp(1.15rem, 3vw, 1.7rem);
  font-weight: 900;
  color: var(--brown);
  margin-bottom: 2px;
}
.hero-big {
  display: inline-block;
  font-size: clamp(3.4rem, 12vw, 6.4rem);
  font-weight: 900;
  letter-spacing: .02em;
  color: var(--brown);
  background: linear-gradient(transparent 66%, var(--sun) 66%);
  border-radius: 6px;
  text-shadow: 0 3px 0 rgba(255, 255, 255, .8);
}
.hero-sub {
  margin: 6px 0 14px;
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 900;
  color: var(--brown);
}
.hero-sub b { color: var(--cta); }
.hero-lead {
  max-width: 560px;
  margin: 0 0 14px;
  font-size: clamp(.98rem, 2.4vw, 1.1rem);
  font-weight: 700;
  line-height: 2;
}
.hero-lead b { color: var(--cta); }
.hero-concept {
  display: inline-block;
  margin: 0 0 22px;
  padding: 10px 18px;
  border-radius: 14px;
  background: #fff;
  border: 2px dashed var(--sun);
  font-size: clamp(.88rem, 2.2vw, 1rem);
  font-weight: 800;
  color: var(--brown);
  line-height: 1.8;
}
.hero-concept b { color: var(--cta); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-figure { grid-column: 2; margin: 0; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 26px;
  border: 6px solid #fff;
  box-shadow: var(--shadow);
}
.hero-figure figcaption {
  position: relative;
  margin: -24px 16px 0;
  padding: 12px 18px;
  border-radius: 16px;
  background: #fff;
  border: 3px solid var(--sun);
  box-shadow: 0 8px 20px rgba(182, 141, 64, .16);
  font-size: clamp(.84rem, 2vw, .94rem);
  font-weight: 800;
  line-height: 1.7;
  color: var(--brown);
  text-align: center;
}

.hero-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.hero-facts li {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: #fff;
  border: 2px solid var(--line);
  box-shadow: 0 8px 18px rgba(182, 141, 64, .1);
}
.hero-facts span {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--sun-soft);
  color: var(--brown);
  font-size: .74rem;
  font-weight: 800;
}
.hero-facts b { display: block; font-size: clamp(1rem, 2.4vw, 1.14rem); font-weight: 900; color: var(--brown); line-height: 1.5; }
.hero-facts small { display: block; margin-top: 4px; font-size: .76rem; color: var(--muted); line-height: 1.7; }

/* =========================================================
   カード
   ========================================================= */
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card {
  padding: 26px;
  border-radius: var(--radius);
  background: #fff;
  border: 2px solid var(--line);
  box-shadow: 0 10px 24px rgba(182, 141, 64, .1);
}
.card h3 { margin: 0 0 10px; font-size: 1.06rem; font-weight: 900; color: var(--brown); line-height: 1.6; }
.card h3::before { content: "☀ "; color: var(--sun-deep); }
.card p { margin: 0; font-size: .93rem; line-height: 1.95; }

.bubble { position: relative; border-color: var(--blue); }
.bubble-line {
  margin: 0 0 10px;
  font-size: 1.02rem;
  font-weight: 900;
  color: var(--brown);
  line-height: 1.7;
  background: linear-gradient(transparent 68%, var(--blue) 68%);
  display: inline;
}
.bubble p { margin-top: 10px; }

/* =========================================================
   いいとこどり（陽だまりセクション）
   ========================================================= */
.sun-section {
  background:
    radial-gradient(circle at 12% 8%, rgba(224, 193, 133, .35), transparent 42%),
    radial-gradient(circle at 90% 90%, rgba(234, 242, 251, .8), transparent 42%),
    linear-gradient(180deg, #f6efe0, #f8f5ec);
}
.orbs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 34px);
  margin: 8px 0 18px;
}
.orb {
  width: clamp(120px, 17vw, 168px);
  height: clamp(120px, 17vw, 168px);
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 900;
  color: var(--brown);
  line-height: 1.5;
  box-shadow: inset 0 -10px 18px rgba(255, 255, 255, .8), 0 12px 24px rgba(182, 141, 64, .18);
}
.orb b { display: block; font-size: .72em; font-weight: 800; color: var(--muted); }
.orb-blue { background: radial-gradient(circle at 32% 26%, #fff 0 18%, var(--blue) 60%); }
.orb-green { background: radial-gradient(circle at 32% 26%, #fff 0 18%, var(--green) 60%); }
.orb-pink { background: radial-gradient(circle at 32% 26%, #fff 0 18%, var(--pink) 60%); }
.orb-center {
  margin: 0 0 22px;
  text-align: center;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 900;
  color: var(--brown);
}
.orb-center b {
  color: var(--cta);
  background: linear-gradient(transparent 64%, var(--sun-soft) 64%);
}
.band {
  max-width: 820px;
  margin: 0 auto;
  padding: 22px 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 2px solid var(--sun);
  box-shadow: var(--shadow);
  font-size: .98rem;
  line-height: 2;
  text-align: center;
}
.band b { color: var(--cta); }

/* =========================================================
   比較表
   ========================================================= */
.table-scroll { overflow-x: auto; }
.compare {
  width: min(920px, 100%);
  min-width: 640px;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .93rem;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.compare th, .compare td { padding: 15px 16px; border-bottom: 2px solid var(--line); text-align: center; }
.compare thead th { background: var(--sun-soft); color: var(--brown); font-weight: 900; }
.compare thead th.is-us { background: var(--sun); font-size: 1rem; }
.compare tbody th { background: #f4f0e4; color: var(--brown); font-weight: 800; white-space: nowrap; }
.compare td.is-us { background: #f9f3e4; font-weight: 800; color: var(--brown); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: none; }
.compare i {
  display: block;
  margin: 0 auto 4px;
  font-style: normal;
  font-weight: 900;
  font-size: 1.05rem;
  color: #c05b5b;
}
.compare td.is-us i { color: var(--sun-deep); font-size: 1.2rem; }

/* =========================================================
   コンセプト・ピラミッド
   ========================================================= */
.cream-section { background: #f4eedf; }
.pyramid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 8px 0 18px;
}
.pyr {
  padding: 16px 22px;
  border-radius: 16px;
  text-align: center;
  font-weight: 900;
  color: var(--brown);
  font-size: clamp(.92rem, 2.4vw, 1.06rem);
  line-height: 1.6;
  box-shadow: 0 8px 18px rgba(182, 141, 64, .14);
}
.pyr span {
  display: inline-block;
  margin-right: 10px;
  padding: 1px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  font-size: .74rem;
  font-weight: 800;
  color: var(--muted);
}
.pyr-top { width: min(420px, 92%); background: linear-gradient(180deg, #ecd7ae, var(--sun)); }
.pyr-mid { width: min(600px, 96%); background: linear-gradient(180deg, #faf5e9, var(--sun-soft)); }
.pyr-base { width: min(780px, 100%); background: linear-gradient(180deg, #eef4fc, #dce9f8); }

/* =========================================================
   タイムライン
   ========================================================= */
.timeline {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 0 0 8px;
  list-style: none;
  border-left: 5px dotted var(--sun);
}
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -15px; top: 6px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--sun);
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(182, 141, 64, .3);
}
.timeline .t {
  display: inline-block;
  margin-right: 10px;
  padding: 2px 14px;
  border-radius: 999px;
  background: var(--brown);
  color: var(--sun);
  font-size: .82rem;
  font-weight: 800;
}
.timeline b { font-size: 1.06rem; font-weight: 900; color: var(--brown); }
.timeline p { margin: 4px 0 0; font-size: .92rem; line-height: 1.9; }

/* =========================================================
   確かめテスト
   ========================================================= */
.check-section { background: #fff; border-block: 4px solid var(--sun); }

.tabs { display: flex; justify-content: center; gap: 10px; margin: 0 0 22px; }
.tab {
  padding: 12px 30px;
  border: 3px solid var(--brown);
  border-radius: 999px;
  background: #fff;
  color: var(--brown);
  font-family: inherit;
  font-size: clamp(.95rem, 2.4vw, 1.05rem);
  font-weight: 900;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.tab:hover { transform: translateY(-2px); }
.tab.is-active { background: var(--brown); color: var(--sun); }

.quiz-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}
.q-wide { grid-column: 1 / -1; }
.q {
  padding: 16px 18px 18px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  transition: border-color .2s ease, background-color .2s ease;
}
.q.is-ok { border-color: #64b57d; background: #f2fff7; }
.q.is-ng { border-color: #c05b5b; background: #fff5f4; }
.q-head {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 8px;
  font-size: .98rem;
  font-weight: 900;
  color: var(--brown);
}
.q-no {
  flex: none;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brown);
  color: var(--sun);
  font-size: .85rem;
}
.q-grade {
  margin-left: auto;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--brown);
  font-size: .68rem;
  font-weight: 800;
}
.q-body { margin: 0 0 8px; font-size: .86rem; color: var(--muted); line-height: 1.8; }
.q-expr {
  margin: 0;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  font-weight: 800;
  color: var(--brown);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.q input {
  width: 5.5em;
  padding: 6px 8px;
  border: 2px solid var(--sun-deep);
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  color: var(--brown);
  text-align: center;
}
.q input:focus { outline: 3px solid var(--sun); outline-offset: 1px; }
.q-hint {
  margin: 10px 0 0;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--sun-soft);
  font-size: .76rem;
  color: var(--brown);
  line-height: 1.7;
}

.frac { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; line-height: 1.15; }
.frac i { font-style: normal; }
.frac i:first-child { border-bottom: 2px solid currentColor; padding: 0 .25em; }
.frac-in input { width: 3.2em; padding: 3px 4px; font-size: .9rem; }
.frac-in input:first-child { border-bottom-width: 3px; margin-bottom: 2px; }
.ans-mixed { display: inline-flex; align-items: center; gap: 4px; }

.q-fig { margin: 10px 0; padding: 8px; background: #fff; border-radius: 10px; border: 1px dashed var(--line); }
.q-fig-shapes { padding: 12px 8px; }
.shapes {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.shapes li { text-align: center; }
.shape-label { display: block; font-size: .78rem; font-weight: 800; color: var(--muted); }
.shape-glyph {
  display: block;
  font-size: clamp(2.2rem, 7vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--brown);
}
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; }
.choices label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border: 2px solid var(--sun-deep);
  border-radius: 999px;
  background: #fff;
  font-weight: 800;
  color: var(--brown);
  cursor: pointer;
}
.choices input { width: 18px; height: 18px; accent-color: var(--cta); cursor: pointer; }
.choices label:has(input:checked) { background: var(--brown); color: var(--sun); border-color: var(--brown); }

.quiz-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.result {
  max-width: 640px;
  margin: 26px auto 0;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--brown);
  color: var(--cream);
  text-align: center;
  box-shadow: var(--shadow);
}
.result-score { margin: 0 0 6px; font-size: 1.1rem; font-weight: 800; color: rgba(253, 249, 238, .85); }
.result-score b { font-size: 2.6rem; color: var(--sun); }
.result-judge { margin: 0 0 10px; font-size: 1.2rem; font-weight: 900; color: var(--sun); line-height: 1.7; }
.result-note { margin: 0 0 20px; font-size: .93rem; line-height: 1.95; color: rgba(253, 249, 238, .92); }

.judge-table {
  width: min(760px, 100%);
  margin: 30px auto 0;
  border-collapse: collapse;
  font-size: .92rem;
}
.judge-table caption { margin-bottom: 10px; font-weight: 900; color: var(--brown); }
.judge-table th, .judge-table td { padding: 11px 14px; border: 2px solid var(--line); }
.judge-table th { width: 8.5em; background: var(--sun-soft); color: var(--brown); font-weight: 800; white-space: nowrap; }
.judge-table td { background: #fff; }

.print-offer {
  max-width: 820px;
  margin: 34px auto 0;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f6efe0, #efe5cd);
  border: 3px solid var(--sun);
  text-align: center;
  box-shadow: var(--shadow);
}
.print-offer h3 {
  margin: 0 0 12px;
  font-size: clamp(1.15rem, 3.2vw, 1.5rem);
  font-weight: 900;
  color: var(--brown);
  line-height: 1.6;
}
.print-offer p { margin: 0 0 20px; font-size: .96rem; line-height: 2; }
.print-offer b { color: var(--cta); font-weight: 800; }

.parents-note {
  max-width: 820px;
  margin: 34px auto 0;
  padding: 26px 28px;
  border: 3px solid var(--cta);
  border-radius: var(--radius);
  background: #fff;
}
.parents-note h3 {
  display: inline-block;
  margin: -42px 0 12px;
  padding: 5px 18px;
  border-radius: 999px;
  background: var(--cta);
  color: #fff;
  font-size: .95rem;
  font-weight: 900;
}
.parents-note p { margin: 0 0 12px; font-size: .95rem; line-height: 2; }
.parents-note b { color: var(--cta); font-weight: 800; }
.parents-cta { margin: 0; padding-top: 12px; border-top: 2px dashed var(--line); }

/* =========================================================
   FAQ
   ========================================================= */
.faq details {
  margin-bottom: 12px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(182, 141, 64, .08);
}
.faq summary {
  padding: 16px 48px 16px 20px;
  font-weight: 900;
  color: var(--brown);
  cursor: pointer;
  list-style: none;
  position: relative;
  line-height: 1.7;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "＋";
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  color: var(--cta);
  font-weight: 900;
}
.faq details[open] summary::after { content: "－"; }
.faq p { margin: 0; padding: 0 20px 18px; font-size: .94rem; line-height: 2; }

/* =========================================================
   申込・アクセス（あたたかい夜）
   ========================================================= */
.access-section {
  background:
    radial-gradient(circle at 82% 12%, rgba(224, 193, 133, .22), transparent 42%),
    linear-gradient(180deg, #11497f, var(--brown));
  color: var(--cream);
}
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.access-actions { display: flex; flex-direction: column; gap: 14px; }
.access-actions .btn { width: 100%; }
.access-info {
  padding: 24px 26px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
  border: 2px solid rgba(253, 249, 238, .3);
}
.access-info h3 { margin: 0 0 12px; font-size: 1.05rem; font-weight: 900; color: var(--sun); line-height: 1.7; }
.addr { margin: 0 0 14px; font-size: .95rem; line-height: 1.95; }
.maplink { color: #e0c185; font-weight: 800; }
.access-way { margin: 10px 0 0; font-size: .9rem; color: rgba(253, 249, 238, .88); }
.access-way b { color: var(--sun); }

.line-qr {
  display: none;
  margin: 6px 0 0;
  padding: 18px;
  border-radius: var(--radius);
  background: #fff;
  border: 3px solid var(--line-green);
  text-align: center;
}
.line-qr img { width: 180px; height: 180px; margin: 0 auto 12px; }
.line-qr figcaption { font-size: .84rem; font-weight: 700; line-height: 1.7; color: var(--brown); }
.line-qr figcaption b { display: inline-block; margin-top: 6px; font-size: .95rem; color: var(--brown); letter-spacing: .04em; }
@media (min-width: 721px) { .line-qr { display: block; } }

/* =========================================================
   フッター
   ========================================================= */
.site-footer { padding: 40px 0 108px; background: #0a2540; color: rgba(253, 249, 238, .8); }
.footer-inner { text-align: center; }
.footer-brand { margin: 0 0 12px; font-weight: 900; color: var(--sun); }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin: 0 0 16px; }
.footer-links a { color: #fdf9ee; font-size: .9rem; font-weight: 700; }
.footer-note { margin: 0; font-size: .78rem; line-height: 1.9; color: rgba(253, 249, 238, .6); }

/* =========================================================
   固定CTA（モバイル）
   ========================================================= */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(10, 61, 112, .96);
}
.sticky-cta .btn { flex: 1; padding: 13px 10px; font-size: .95rem; box-shadow: none; }
.sticky-cta .btn-tel { flex: 0 0 88px; }

/* =========================================================
   グループのサイト（ヒーロー直下のバナースクロール）
   協賛バナー風に横へ流す。ホバー／フォーカスで停止し、
   prefers-reduced-motion では流さず手動スクロールにする。
   ========================================================= */
.brandbar {
  padding: 18px 0 20px;
  background: linear-gradient(180deg, #f6efe0, #eef3fa);
  border-bottom: 2px solid var(--line);
  overflow: hidden;
}
.brandbar-title {
  margin: 0 0 12px;
  text-align: center;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .18em;
  color: #005bac;
}
.brandbar-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.brandbar-track {
  display: flex;
  width: max-content;
  animation: brandscroll 38s linear infinite;
}
.brandbar:hover .brandbar-track,
.brandbar:focus-within .brandbar-track { animation-play-state: paused; }

.brandbar-list {
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin: 0;
  padding: 0 7px;
  list-style: none;
}
.brandbar-list li { margin: 0; }
.brandbar-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 12px 22px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--line);
  box-shadow: 0 6px 16px rgba(10, 61, 112, .1);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.brandbar-list a:hover,
.brandbar-list a:focus-visible {
  border-color: var(--sun);
  box-shadow: 0 10px 22px rgba(10, 61, 112, .18);
  transform: translateY(-2px);
}
.brandbar-list img { width: 34px; height: auto; flex: none; }
.brandbar-mark { font-size: 1.6rem; line-height: 1; flex: none; }
.brandbar-list b {
  display: block;
  font-size: .95rem;
  font-weight: 900;
  color: var(--brown);
  line-height: 1.4;
}
.brandbar-list span:not(.brandbar-mark) {
  display: block;
  font-size: .74rem;
  color: var(--muted);
  line-height: 1.5;
}

@keyframes brandscroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .brandbar-track { animation: none; width: auto; }
  .brandbar-track .brandbar-list[aria-hidden="true"] { display: none; }
  .brandbar-viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

@media (max-width: 720px) {
  .brandbar-list a { padding: 10px 16px; gap: 9px; }
  .brandbar-list b { font-size: .88rem; }
  .brandbar-list span:not(.brandbar-mark) { font-size: .7rem; }
}

/* =========================================================
   ロゴ・イラスト・写真
   ========================================================= */
.bar-logo { width: 46px; height: auto; flex: none; }

.illust { margin: 0 auto 30px; max-width: 760px; }
.illust img, .section-photo img {
  border-radius: var(--radius);
  border: 5px solid #fff;
  box-shadow: var(--shadow);
}
.section-photo { margin: 0 auto 26px; max-width: 780px; }
.section-photo img { aspect-ratio: 21 / 9; object-fit: cover; width: 100%; }

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 900px;
  margin: 0 auto 32px;
}
.photo-strip figure { margin: 0; }
.photo-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  border: 4px solid #fff;
  box-shadow: var(--shadow);
}
.photo-strip figcaption {
  margin-top: 8px;
  text-align: center;
  font-size: .85rem;
  font-weight: 800;
  color: var(--brown);
}

.access-illust { margin: 0 auto 30px; max-width: 860px; }
.access-illust img {
  width: 100%;
  border-radius: var(--radius);
  border: 4px solid rgba(255, 255, 255, .85);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .25);
}

/* =========================================================
   Webマンガ（Codex実装枠。sectionのhiddenを外すと公開）
   ========================================================= */
.manga-section { background: #fff; border-block: 4px solid var(--sun); }
.manga-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 900px;
  margin: 0 auto 14px;
  padding: 0;
  list-style: none;
}
.manga-strip li { margin: 0; }
.manga-strip img {
  width: 100%;
  border-radius: 14px;
  border: 3px solid var(--line);
  box-shadow: var(--shadow);
}
@media (max-width: 720px) {
  .manga-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 8px;
  }
  .manga-strip li { flex: 0 0 84%; scroll-snap-align: center; }
}

/* =========================================================
   関連リンク
   ========================================================= */
.links-section { background: var(--blue); }
.links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 26px 22px;
  border-radius: var(--radius);
  background: #fff;
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  text-decoration: none;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.link-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(10, 61, 112, .2); }
.link-card img { width: 74px; height: auto; }
.link-emoji { font-size: 2.6rem; line-height: 1.4; }
.link-card b { font-size: 1.06rem; font-weight: 900; color: var(--brown); }
.link-card span:not(.link-emoji) { font-size: .85rem; color: var(--muted); line-height: 1.8; }
.link-card::after { content: "詳しく見る →"; margin-top: 6px; font-size: .82rem; font-weight: 800; color: #005bac; }

.footer-logo { width: 190px; height: auto; margin: 0 auto 12px; }

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 900px) {
  .cards-3, .quiz-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .links-grid { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy, .hero-figure, .hero-facts { grid-column: 1; }
  .access-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 66px; }
  .sp-br { display: block; }
  .bar-nav { display: none; }
  .bar-name strong { font-size: .85rem; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .cards-3, .cards-2, .quiz-list, .photo-strip { grid-template-columns: 1fr; }
  .hero-figure figcaption { margin: -20px 10px 0; }
  .judge-table th { width: 7em; }
  .parents-note { padding: 26px 20px; }
  .sticky-cta { display: flex; }
}

/* =========================================================
   印刷（チェックテストを紙で使う）
   ========================================================= */
@media print {
  .bar, .sticky-cta, .hero, #pazuru, #jiyutoko, #hikaku, #concept, #suiyobi, #pro, #manga, #links,
  #faq, .access-section, .site-footer, .quiz-actions, .result, .tabs, .print-offer { display: none !important; }
  body { background: #fff; }
  .quiz-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .q { break-inside: avoid; border-color: #333; }
  .q-hint { background: #f2f2f2; }
}
