/* ============================================================
   style.css — サイト本体のデザイン
   色は content.json の「配色」から自動で流し込まれます。
   ============================================================ */

:root {
  --primary: #1668a5;
  --primary-dark: #3b4043;
  --accent: #bcd400;
  --green: #b8d576;
  --light-bg: #ebf1ff;
  --text: #3b4043;
  --line: #dce4f2;
  --muted: #6b7783;
  --radius: 14px;
  --shadow: 0 2px 16px rgba(22, 104, 165, .1);
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  font-size: 15.5px;
  line-height: 2;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.5; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }

.ph {
  background: repeating-linear-gradient(45deg, rgba(22, 104, 165, .05) 0 10px, rgba(22, 104, 165, .1) 10px 20px), var(--light-bg);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; letter-spacing: .08em; font-weight: 700;
  border: 1px dashed rgba(22, 104, 165, .3);
  width: 100%; height: 100%; min-height: 90px; text-align: center; padding: 10px;
}
.frame { overflow: hidden; border-radius: 10px; background: var(--light-bg); }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.logo img { height: 42px; width: auto; }
.logo-text { font-weight: 800; font-size: 14px; letter-spacing: .1em; color: var(--primary); line-height: 1.3; }
.logo-sub { display: block; font-size: 10px; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.gnav { margin-left: auto; display: flex; gap: 20px; }
.gnav a { text-decoration: none; font-size: 13.5px; font-weight: 700; padding: 6px 0; border-bottom: 2px solid transparent; }
.gnav a:hover { border-bottom-color: var(--primary); }
.btn-cta {
  margin-left: auto; background: var(--primary); color: #fff; text-decoration: none;
  padding: 11px 26px; border-radius: 999px; font-weight: 800; font-size: 14px; white-space: nowrap;
}
.gnav + .btn-cta { margin-left: 0; }
.btn-cta:hover { filter: brightness(1.1); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; font-size: 25px; cursor: pointer; color: var(--primary); }

/* ---------- ヒーロー ---------- */
.hero { position: relative; }
.hero-media { position: relative; height: clamp(360px, 44vw, 560px); overflow: hidden; background: var(--light-bg); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
/* 見出しが読めるように、左側を白くぼかす（XDと同じ処理） */
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 255, 255, .93) 0%, rgba(255, 255, 255, .78) 32%, rgba(255, 255, 255, .12) 64%, rgba(255, 255, 255, 0) 100%);
}
.hero-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; }
.hero h1 {
  font-size: clamp(30px, 4.4vw, 52px); margin: 0; color: var(--primary-dark);
  font-weight: 800; letter-spacing: .02em; text-shadow: 0 2px 14px rgba(255, 255, 255, .85);
}
.hero h1 span { display: block; }
.hero-sub {
  display: inline-block; margin: 22px 0 0; background: var(--primary); color: #fff;
  font-size: clamp(13px, 1.5vw, 17px); font-weight: 700; padding: 7px 20px; line-height: 1.6;
}
.hero-cta {
  position: absolute; right: max(20px, calc((100% - var(--maxw)) / 2 + 20px)); bottom: 8%;
  display: inline-flex; align-items: center; gap: 14px; text-decoration: none;
  background: var(--primary); color: #fff; padding: 12px 22px 12px 12px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.hero-cta .badge { background: #fff; color: var(--primary); font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.hero-cta .label { font-weight: 800; font-size: 16px; }
.hero-cta .arrow { font-size: 15px; }
.hero-cta:hover { filter: brightness(1.1); }

/* ---------- 共通 ---------- */
section { padding-bottom: 78px; }
section.pt { padding-top: 78px; }

.sec-heading {
  font-size: clamp(20px, 2.8vw, 30px); font-weight: 800; color: var(--primary-dark);
  margin: 0 0 18px; letter-spacing: .02em;
}
.sec-heading.en-heading { color: var(--primary); letter-spacing: .12em; }
.sec-lead { margin: 0 auto 34px; max-width: 800px; color: var(--muted); font-size: 15px; }

/* 全幅の見出し帯 */
.band { background: var(--primary); color: #fff; text-align: center; padding: 22px 20px; margin-bottom: 44px; }
.band-label { display: block; font-size: 11px; letter-spacing: .24em; opacity: .85; margin-bottom: 4px; }
.band h2 { margin: 0; font-size: clamp(19px, 2.6vw, 28px); font-weight: 800; letter-spacing: .04em; }

/* ---------- リード文 ---------- */
.intro-heading { font-size: clamp(19px, 2.8vw, 30px); font-weight: 800; color: var(--primary-dark); margin: 0 0 26px; }
.intro-body { max-width: 820px; margin: 0 auto; color: #4c5a66; }

/* ---------- 長い文章の折りたたみ ＋ もっと読む ---------- */
.clamp-wrap { position: relative; }
/* 畳んだ文章の後に別の文章が続くときは間をあける */
.clamp-wrap + .clamp-wrap, .clamp-wrap + p, .clamp-wrap + div { margin-top: 1.6em; }
.js-clamp.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--clamp-lines, 6);
  line-clamp: var(--clamp-lines, 6);
  overflow: hidden;
  margin-bottom: 0;
}
/* 文末をふわっと消して、続きがあることを伝える */
.clamp-wrap::before {
  /* 46px =「もっと読む」ボタンの高さ34px + 上の余白12px */
  content: ""; position: absolute; left: 0; right: 0; bottom: 46px; height: 1.9em;
  background: linear-gradient(to bottom, transparent, var(--clamp-bg, #fff) 88%);
  pointer-events: none;
}
.note-card .clamp-wrap, .point .clamp-wrap, .bullets .clamp-wrap { --clamp-bg: transparent; }
.qsec .note-card .clamp-wrap { --clamp-bg: var(--light-bg); }
.qsec.alt .note-card .clamp-wrap { --clamp-bg: #fff; }
.point .clamp-wrap, .cpoint .clamp-wrap, .voice-card .clamp-wrap { --clamp-bg: #fff; }
.cpoint .clamp-wrap { --clamp-bg: var(--light-bg); }
.intro .clamp-wrap, .trial-top .clamp-wrap, .caution .clamp-wrap { --clamp-bg: #fff; }
.act-card .clamp-wrap, .course-concept .clamp-wrap { --clamp-bg: #fff; }

.more-btn {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 12px; padding: 9px 22px; border-radius: 999px; cursor: pointer;
  background: #fff; color: var(--primary); border: 1.5px solid var(--primary);
  font-family: inherit; font-size: 13.5px; font-weight: 800; line-height: 1;
  transition: background .2s ease, color .2s ease;
}
.more-btn::after { content: "＋"; font-size: 13px; }
.more-btn:hover { background: var(--primary); color: #fff; }
.center .more-btn, .intro .more-btn { margin-left: auto; margin-right: auto; }

/* ポップアップ本体 */
.rmodal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.rmodal[hidden] { display: none; }
.rmodal-backdrop { position: absolute; inset: 0; background: rgba(28, 40, 52, .55); opacity: 0; transition: opacity .2s ease; }
.rmodal.is-open .rmodal-backdrop { opacity: 1; }
.rmodal-card {
  position: relative; background: #fff; border-radius: 18px;
  width: min(760px, 100%); max-height: 84vh; overflow: hidden;
  padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
  opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .22s ease, transform .22s ease;
}
.rmodal.is-open .rmodal-card { opacity: 1; transform: none; }
.rmodal-card h3 {
  margin: 0 0 20px; font-size: clamp(17px, 2.2vw, 21px); color: var(--primary);
  padding: 0 40px 16px 0; border-bottom: 2px solid var(--light-bg); line-height: 1.7;
}
.rmodal-card h3[hidden] { display: none; }
.rmodal-body { overflow-y: auto; font-size: 15px; line-height: 2.2; color: #4c5a66; padding-right: 4px; }
.rmodal-body::-webkit-scrollbar { width: 8px; }
.rmodal-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.rmodal-close {
  position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  font-size: 15px; cursor: pointer; line-height: 1; z-index: 2;
}
.rmodal-close:hover { background: var(--light-bg); color: var(--primary); }

@media (max-width: 680px) {
  .rmodal { padding: 12px; }
  .rmodal-card { padding: 24px 20px; max-height: 88vh; }
  .rmodal-card h3 { margin-bottom: 16px; padding-right: 36px; }
}

/* ---------- スクロール演出 ---------- */
/* パララックス：中の画像を少し大きく描いて、はみ出さないように動かす */
[data-parallax] { overflow: hidden; }
[data-parallax] > img,
[data-parallax] > .ph { will-change: transform; }

/* テキストスライド：画面に入ると背景とずらして滑り込む
   （.fx は演出の準備ができたときだけ付きます。JSが動かない環境では
     最初から表示されたままになり、内容が消えることはありません） */
.fx .reveal, .fx .slide-l, .fx .slide-r {
  opacity: 0;
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, .8, .3, 1);
}
.fx .reveal { transform: translate3d(0, 26px, 0); }
.fx .slide-l { transform: translate3d(-48px, 0, 0); }
.fx .slide-r { transform: translate3d(48px, 0, 0); }
.fx .reveal.is-in, .fx .slide-l.is-in, .fx .slide-r.is-in { opacity: 1; transform: none; }

/* 並んだカードは少しずつ遅らせて表示する */
.fx .goal-cards .reveal:nth-child(2), .act-cards .reveal:nth-child(2),
.brand-grid .reveal:nth-child(2), .points .reveal:nth-child(2) { transition-delay: .08s; }
.fx .goal-cards .reveal:nth-child(3), .act-cards .reveal:nth-child(3),
.brand-grid .reveal:nth-child(3), .points .reveal:nth-child(3) { transition-delay: .16s; }
.act-cards .reveal:nth-child(4), .brand-grid .reveal:nth-child(4), .points .reveal:nth-child(4) { transition-delay: .24s; }
.act-cards .reveal:nth-child(5) { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .fx .reveal, .fx .slide-l, .fx .slide-r { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 動画・スライド帯 ---------- */
.movie { padding-bottom: 0; }
.movie-frame { border-radius: var(--radius); overflow: hidden; background: var(--light-bg); min-height: 240px; }
.movie-frame iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }
.movie-note { text-align: center; color: var(--muted); font-size: 13px; margin: 16px 0 0; }

.slider { position: relative; height: clamp(240px, 34vw, 440px); overflow: hidden; background: var(--light-bg); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.slide.is-active { opacity: 1; pointer-events: auto; }
.slide-media { position: absolute; inset: 0; }
.slide-media img, .slide-media .ph { width: 100%; height: 100%; object-fit: cover; }
.slide-caption {
  position: absolute; inset: 0; display: flex; align-items: center;
  padding: 0 max(24px, calc((100% - var(--maxw)) / 2 + 20px));
}
.slide-caption span {
  background: rgba(255, 255, 255, .9); color: var(--primary-dark);
  font-size: clamp(16px, 2.4vw, 26px); font-weight: 800; line-height: 1.6;
  padding: 14px 26px; border-left: 6px solid var(--primary); will-change: transform;
}
.slide-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.slide-dots .dot {
  width: 10px; height: 10px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .6); padding: 0;
}
.slide-dots .dot.is-active { background: var(--primary); box-shadow: 0 0 0 2px rgba(255, 255, 255, .8); }

/* ---------- 目指すこと ---------- */
.goal { background: var(--light-bg); }
.goal-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.goal-card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); text-align: center; }
.goal-card .frame { aspect-ratio: 4/3; margin-bottom: 16px; transition: transform .3s ease; }
.goal-card:hover .frame { transform: scale(1.04); }
.goal-card .en { margin: 0; color: var(--primary); font-size: 12.5px; font-weight: 800; letter-spacing: .1em; }
.goal-card h3 { margin: 2px 0 10px; font-size: 19px; color: var(--primary-dark); }
.goal-card .body { margin: 0; font-size: 14px; color: #4c5a66; text-align: left; line-height: 1.9; }

/* ---------- Q1 / Q2 ----------
   このセクションはゆったり見せたいので、余白・行間を他より大きめに取っています。
   間隔をまとめて変えたいときは下の --q-* を調整してください。            */
section.qsec {
  --q-gap: clamp(30px, 4vw, 52px);      /* ブロックどうしの間隔 */
  --q-pad: clamp(28px, 4vw, 56px);      /* 白いカードの内側の余白 */
  padding-top: clamp(84px, 10vw, 140px);
  padding-bottom: clamp(84px, 10vw, 140px);
}
.qsec .wrap { max-width: 960px; }
.qsec.alt { background: var(--light-bg); }

.q-head { display: flex; align-items: flex-start; gap: clamp(18px, 2.4vw, 28px); margin-bottom: clamp(22px, 2.6vw, 34px); }
.q-label {
  flex: 0 0 auto; min-width: 64px; height: 64px; padding: 0 12px; border-radius: 999px;
  background: var(--primary); color: #fff; font-weight: 800; font-size: 21px;
  display: flex; align-items: center; justify-content: center;
}
.q-head h2 { margin: 8px 0 0; font-size: clamp(19px, 2.5vw, 27px); color: var(--primary-dark); line-height: 1.7; }
.q-answer {
  margin: 0 0 var(--q-gap); padding: clamp(20px, 2.6vw, 30px) clamp(24px, 3vw, 38px);
  border-left: 6px solid var(--accent);
  background: #fff; font-size: clamp(16px, 2vw, 22px); font-weight: 800; color: var(--primary);
  line-height: 1.9;
}

.qsec .card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--q-pad); margin-bottom: var(--q-gap);
}
.qsec .card h3 {
  margin: 0 0 clamp(16px, 2vw, 24px); font-size: clamp(17px, 2vw, 19px); color: var(--primary);
  padding-left: 14px; border-left: 4px solid var(--primary); line-height: 1.7;
}
.qsec .card p { margin: 0 0 1.6em; font-size: 15px; line-height: 2.2; color: #4c5a66; }
.qsec .card p:last-child { margin-bottom: 0; }

.fig { margin: clamp(24px, 3vw, 36px) 0 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
/* 縦長の図版はカード幅いっぱいに広げず、中央に収める */
.qsec .card .fig { max-width: 420px; margin-left: auto; margin-right: auto; }
.fig.wide { margin: 0 0 var(--q-gap); }

.note-card {
  background: var(--light-bg); border-radius: var(--radius);
  padding: var(--q-pad); margin-bottom: var(--q-gap);
}
.qsec.alt .note-card { background: #fff; }
.note-card h4 { margin: 0 0 clamp(12px, 1.6vw, 18px); font-size: 16px; color: var(--primary); }
.note-card p { margin: 0; font-size: 14.5px; line-height: 2.15; color: #4c5a66; }

.points-lead {
  text-align: center; font-size: clamp(17px, 2.1vw, 23px); font-weight: 800;
  color: var(--primary-dark); line-height: 2;
  margin: calc(var(--q-gap) + 16px) 0 clamp(26px, 3vw, 38px);
}
.points { display: grid; gap: clamp(14px, 1.8vw, 22px); }
.point {
  display: grid; grid-template-columns: 56px 1fr; gap: clamp(18px, 2.4vw, 28px); align-items: start;
  background: #fff; border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3.2vw, 40px);
  border: 1px solid var(--line);
}
.point:has(.point-img) { grid-template-columns: 56px 1fr 200px; }
.point-no {
  width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: #fff;
  font-weight: 800; font-size: 21px; display: flex; align-items: center; justify-content: center;
}
.point h4 { margin: 10px 0 10px; font-size: 17.5px; color: var(--primary-dark); line-height: 1.7; }
.point p { margin: 0; font-size: 14.5px; line-height: 2.15; color: #4c5a66; }
.point-img { border-radius: 8px; overflow: hidden; }

/* ---------- レポート ---------- */
.report {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: var(--q-pad); margin-top: calc(var(--q-gap) + 16px);
}
.report-title { margin: 0 0 clamp(22px, 2.6vw, 32px); text-align: center; font-size: clamp(18px, 2.2vw, 24px); color: var(--primary); }
.report-inner { display: grid; grid-template-columns: 1fr 300px; gap: clamp(26px, 3.4vw, 44px); align-items: start; }
.report-inner h4 { margin: 0 0 16px; font-size: 16.5px; color: var(--primary-dark); line-height: 1.7; }
.report-inner p { margin: 0; font-size: 14.5px; line-height: 2.15; color: #4c5a66; }
.report-img { border-radius: 10px; overflow: hidden; min-height: 180px; }
.bullets { list-style: none; margin: clamp(26px, 3vw, 38px) 0 0; padding: clamp(22px, 2.6vw, 32px) clamp(24px, 3vw, 34px); background: var(--light-bg); border-radius: 10px; }
.bullets li { font-size: 14.5px; font-weight: 700; line-height: 2.2; color: var(--primary-dark); }

/* ---------- Q1・Q2 タブ表示 ---------- */
.qa { --qa-bg: #fff; background: var(--qa-bg); transition: background .3s ease; }
.qa.alt { --qa-bg: var(--light-bg); }
section.qa { padding-top: clamp(56px, 7vw, 96px); }

/* 問いのタブ。画面上部（ヘッダーの下）に貼り付きます。
   フォルダの見出しのように、上だけ角を丸めたタブが下の青い線につながる形です。
   選ばれているタブは青く一段高くなり、線と一体になります。                    */
.qa-tabs-bar {
  position: sticky; top: 68px; z-index: 30;
  background: var(--qa-bg); transition: background .3s ease;
  padding-top: 14px;
}
.qa-tabs {
  display: flex; align-items: flex-end; gap: 8px;
  border-bottom: 4px solid var(--primary);
}
.qa-tab {
  position: relative; flex: 1 1 0; min-width: 0;
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 12px 22px 12px 18px; margin: 0;
  border: 0; border-radius: 14px 14px 0 0; cursor: pointer;
  background: #dfe6f0; color: #5d6b78;
  font-family: inherit;
  transition: background .2s ease, color .2s ease, padding .2s ease;
}
.qa-tab:hover { background: #cfdaea; color: var(--primary); }
.qa-tab .q-label {
  min-width: 42px; height: 42px; font-size: 15px;
  background: #fff; color: #8795a4; transition: background .2s ease, color .2s ease;
}
.qa-tab:hover .q-label { color: var(--primary); }
.qa-tab-q {
  font-size: 14.5px; font-weight: 800; line-height: 1.6;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}

/* 選ばれているタブ：青く塗り、少し背を高くして下の線とつなげる */
.qa-tab.is-active {
  background: var(--primary); color: #fff; cursor: default;
  padding-top: 18px; padding-bottom: 16px;
  box-shadow: 0 -4px 14px rgba(22, 104, 165, .18);
}
.qa-tab.is-active .q-label { background: #fff; color: var(--primary); }
/* 下の線の上に小さな三角をのせて「このタブの中身」を指す */
.qa-tab.is-active::after {
  content: ""; position: absolute; left: 34px; bottom: -22px;
  border: 9px solid transparent; border-top-color: var(--primary);
}
.qa-tab:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

.qa-panel { padding-top: var(--q-gap); }
.qa-panel[hidden] { display: none; }
.qa-panel .q-answer { background: #fff; }

/* 本文と図を横に並べて、縦の長さを抑える */
.qsec .card.q-split { display: grid; grid-template-columns: 1fr 300px; gap: clamp(26px, 3.4vw, 44px); align-items: start; }
.qsec .card.q-split.img-left { grid-template-columns: minmax(0, 42%) 1fr; }
.qsec .card.q-split.no-fig { grid-template-columns: 1fr; }
.qsec .card.q-split .fig { margin: 0; max-width: none; }
.qsec .card .note-card { margin: clamp(22px, 2.6vw, 32px) 0 0; padding: clamp(20px, 2.4vw, 28px); }
.qsec.alt .card .note-card, .qa .card .note-card { background: var(--light-bg); }

/* ポイントは2列に */
.qsec .points { grid-template-columns: 1fr 1fr; }

/* パネルの最後：もう一方の問いへ */
.qa-next {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left;
  margin-top: calc(var(--q-gap) + 8px); padding: 18px 24px; border-radius: var(--radius); cursor: pointer;
  background: #fff; color: var(--primary-dark); border: 2px solid var(--primary);
  font-family: inherit; transition: background .2s ease, color .2s ease;
}
.qa-next .q-label { min-width: 44px; height: 44px; font-size: 15px; }
.qa-next-q { flex: 1 1 auto; font-size: 15.5px; font-weight: 800; line-height: 1.6; }
.qa-next-arrow { font-size: 20px; color: var(--primary); transition: transform .2s ease; }
.qa-next:hover { background: var(--primary); color: #fff; }
.qa-next:hover .q-label { background: #fff; color: var(--primary); }
.qa-next:hover .qa-next-arrow { color: #fff; transform: translateX(4px); }

@media (max-width: 900px) {
  .qsec .card.q-split, .qsec .card.q-split.img-left { grid-template-columns: 1fr; }
  .qsec .card.q-split .fig { max-width: 420px; margin: 0 auto; }
  .qsec .points { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .qa-tabs-bar { padding-top: 8px; }
  .qa-tabs { gap: 5px; border-bottom-width: 3px; }
  .qa-tab { flex-direction: column; align-items: flex-start; gap: 5px; padding: 9px 11px; border-radius: 10px 10px 0 0; }
  .qa-tab.is-active { padding-top: 13px; padding-bottom: 11px; }
  .qa-tab.is-active::after { left: 16px; bottom: -20px; border-width: 8px; }
  .qa-tab .q-label { min-width: 32px; height: 32px; font-size: 12.5px; }
  .qa-tab-q { font-size: 12px; line-height: 1.5; }
  .qa-next { padding: 14px 16px; gap: 12px; }
  .qa-next-q { font-size: 14px; }
}

/* ---------- アクティビティ ---------- */
.act-sub {
  background: var(--primary-dark); color: #fff; text-align: center; font-weight: 800;
  padding: 12px 20px; border-radius: 8px; margin: 0 0 24px; font-size: clamp(14px, 1.8vw, 18px);
}
.act-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.act-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.act-card .frame { aspect-ratio: 4/3; margin-bottom: 14px; }
.act-card h3 { margin: 0 0 10px; font-size: 19px; color: var(--primary); }
.act-card h3 span { display: block; font-size: 13px; color: var(--primary-dark); font-weight: 700; }
.act-card p { margin: 0; font-size: 13.5px; color: #4c5a66; line-height: 1.9; }

/* ---------- ブランドの特徴 ---------- */
.brand { background: var(--light-bg); }
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.brand-box { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.brand-box .frame { aspect-ratio: 4/3; border-radius: 0; }
.brand-box h3 { margin: 0; padding: 16px 14px; font-size: 15px; text-align: center; color: var(--primary-dark); }

/* ---------- コース ---------- */
.course-block { margin-bottom: 66px; }
/* XDの1920×280の帯写真。スクロールでゆっくり動きます */
.course-banner { height: clamp(140px, 16vw, 280px); margin-bottom: 30px; background: var(--light-bg); }
.course-banner img, .course-banner .ph { width: 100%; height: 100%; object-fit: cover; }
.course-title { border-bottom: 3px solid var(--primary); padding-bottom: 10px; margin-bottom: 26px; }
.course-title h3 { margin: 0; font-size: clamp(19px, 2.4vw, 26px); color: var(--primary-dark); }
.course-title .en { margin: 2px 0 0; color: var(--primary); font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.course-block.alt .course-title { border-bottom-color: var(--accent); }
.course-concept { max-width: 820px; margin: 0 auto 34px; text-align: center; }
.concept-label { margin: 0; color: var(--primary); font-size: 12.5px; font-weight: 800; letter-spacing: .1em; }
.course-concept h4 { margin: 6px 0 18px; font-size: clamp(17px, 2.2vw, 23px); color: var(--primary-dark); }
.concept-body { margin: 0; font-size: 14.5px; color: #4c5a66; }
.cpoints-title {
  margin: 0 0 18px; text-align: center; font-size: clamp(16px, 2vw, 20px);
  color: #fff; background: var(--primary); padding: 12px; border-radius: 999px;
}
.course-block.alt .cpoints-title { background: var(--primary-dark); }
.cpoints { display: grid; gap: 16px; margin-bottom: 34px; }
.cpoint { display: grid; grid-template-columns: 190px 1fr; gap: 22px; align-items: center; background: var(--light-bg); border-radius: var(--radius); padding: 20px; }
.cpoint-img { border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; }
.cpoint h4 { margin: 0 0 8px; font-size: 17px; color: var(--primary); }
.cpoint p { margin: 0; font-size: 14px; color: #4c5a66; }
.schedule { max-width: 720px; margin: 0 auto; }
.schedule h4 { margin: 0 0 14px; text-align: center; font-size: 17px; color: var(--primary-dark); }
.schedule table { width: 100%; border-collapse: collapse; }
.schedule td { padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.schedule tr:nth-child(odd) td { background: var(--light-bg); }
.schedule td:first-child { width: 38%; font-weight: 700; color: var(--primary); white-space: nowrap; }

/* ---------- 会員種別 ---------- */
.membership { background: var(--light-bg); }
.mplans { max-width: 860px; margin: 0 auto; }
.mplan { background: #fff; border: 2px solid var(--primary); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.mplan-head { background: var(--primary); color: #fff; padding: 14px 24px; display: flex; align-items: baseline; gap: 14px; }
.mplan-head h3 { margin: 0; font-size: 18px; }
.mplan-head span { font-size: 12.5px; opacity: .9; }
.mcols { padding: 22px 24px; }
.mcols.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mcol h4 { margin: 0 0 12px; font-size: 15px; color: var(--primary); border-bottom: 2px solid var(--light-bg); padding-bottom: 8px; white-space: pre-line; }
.mcol ul { list-style: none; margin: 0; padding: 0; }
.mcol li { position: relative; padding-left: 26px; font-size: 14px; color: #4c5a66; line-height: 1.9; margin-bottom: 4px; }
.mcol li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }
.mfoot { margin: 0; padding: 0 24px 18px; font-size: 12.5px; color: var(--muted); }

/* ---------- お客様の声 ---------- */
.voice-card { display: grid; grid-template-columns: 220px 1fr; gap: 26px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; margin-bottom: 20px; align-items: start; }
.voice-photo { border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; }
.voice-author { margin: 0 0 6px; font-size: 13px; font-weight: 800; color: var(--primary); }
.voice-body h3 { margin: 0 0 12px; font-size: 18px; color: var(--primary-dark); }
.voice-body p { margin: 0; font-size: 14.5px; color: #4c5a66; }

/* ---------- 校舎 ---------- */
.school-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.school-grid figure { margin: 0; }
.school-grid .frame { aspect-ratio: 4/3; }
.school-grid figcaption { margin-top: 10px; text-align: center; font-size: 14px; font-weight: 700; color: var(--primary-dark); }

/* ---------- 無料体験 ---------- */
.trial-top { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; margin-bottom: 48px; }
.trial-top h3 { margin: 0 0 16px; font-size: clamp(20px, 2.6vw, 28px); color: var(--primary-dark); }
.trial-top p { margin: 0; font-size: 14.5px; color: #4c5a66; }
.trial-top .frame { aspect-ratio: 4/3; }

.flow { max-width: 860px; margin: 0 auto 48px; }
.flow h3 { margin: 0 0 6px; text-align: center; font-size: 20px; color: var(--primary-dark); }
.flow-note { margin: 0 0 16px; text-align: center; font-size: 12.5px; color: var(--muted); }
.flow table { width: 100%; border-collapse: collapse; }
.flow th { background: var(--primary); color: #fff; padding: 10px; font-size: 14px; }
.flow th:nth-child(2) { background: var(--primary-dark); width: 90px; }
.flow td { border: 1px solid var(--line); padding: 16px 12px; font-size: 14px; text-align: center; vertical-align: middle; }
.flow td.time { background: var(--primary-dark); color: #fff; font-weight: 800; white-space: nowrap; }
.flow td.parent { background: var(--light-bg); }

.candos { max-width: 860px; margin: 0 auto 48px; }
.candos h3 { margin: 0 0 18px; text-align: center; font-size: 20px; color: var(--primary-dark); }
.cando-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.candido { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.candido .frame { aspect-ratio: 16/9; border-radius: 0; }
.candido h4 { margin: 0; padding: 14px; text-align: center; font-size: 16px; color: var(--primary); white-space: pre-line; }

.form-card { background: var(--light-bg); border-radius: 20px; padding: 34px; max-width: 820px; margin: 0 auto; }
.form-card h3 { margin: 0 0 18px; text-align: center; font-size: 21px; color: var(--primary-dark); }
.form-note { font-size: 12.5px; color: var(--muted); margin: 0 0 24px; line-height: 1.9; }
.form-empty { margin: 0; text-align: center; font-size: 13.5px; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: 10px; padding: 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--primary-dark); }
.req { background: #d64545; color: #fff; font-size: 10px; padding: 2px 7px; border-radius: 4px; margin-left: 8px; vertical-align: 2px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 15px; font-family: inherit; background: #fff; color: var(--text);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--primary); border-color: transparent; }
.field textarea { min-height: 120px; resize: vertical; }
.submit {
  display: block; width: 100%; padding: 16px; border: 0; border-radius: 999px;
  background: var(--primary); color: #fff; font-size: 16px; font-weight: 800; cursor: pointer; font-family: inherit;
}
.submit:hover { filter: brightness(1.1); }
.form-done { background: #e6f4e6; border: 1px solid #9fd39f; color: #245c24; border-radius: 10px; padding: 14px; font-size: 14px; margin-top: 16px; }

.caution { max-width: 820px; margin: 34px auto 0; border: 1px solid var(--line); border-radius: 10px; padding: 20px 24px; }
.caution h4 { margin: 0 0 10px; font-size: 15px; color: var(--primary-dark); }
.caution p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.9; }

.map { margin-top: 48px; }
.map h3 { text-align: center; font-size: 17px; color: var(--primary-dark); margin: 0 0 16px; }
.map-frame { border-radius: var(--radius); overflow: hidden; background: #dcdfe3; }
.map-frame iframe { width: 100%; height: 400px; border: 0; display: block; }

/* ---------- フッター ---------- */
.site-footer { background: var(--primary-dark); color: #fff; padding: 46px 0 24px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: start; }
.site-footer h2 { margin: 0 0 12px; font-size: 18px; }
.site-footer dl { margin: 0; font-size: 14px; color: #d3dae0; }
.site-footer dl div { display: flex; gap: 12px; margin-bottom: 4px; }
.site-footer dt { flex: 0 0 74px; color: #a8b4bd; font-weight: 700; }
.site-footer dd { margin: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; text-align: right; }
.footer-links a { font-size: 13px; color: #d3dae0; text-decoration: none; }
.copyright { margin: 30px 0 0; text-align: center; font-size: 12px; color: #a8b4bd; }

/* ---------- 編集バッジ ---------- */
.edit-badge {
  position: fixed; right: 18px; bottom: 18px; z-index: 100;
  background: #1c2b3a; color: #fff; border-radius: 999px; padding: 10px 18px;
  font-size: 13px; font-weight: 700; text-decoration: none; box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .goal-cards, .act-cards { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .report-inner, .trial-top, .voice-card { grid-template-columns: 1fr; }
  .point:has(.point-img) { grid-template-columns: 52px 1fr; }
  .point-img { grid-column: 1 / -1; }
  .cpoint { grid-template-columns: 150px 1fr; gap: 16px; }
}

@media (max-width: 680px) {
  body { font-size: 15px; }
  section { padding-bottom: 54px; }
  section.pt { padding-top: 54px; }
  .gnav {
    position: absolute; top: 68px; left: 0; right: 0; background: #fff;
    flex-direction: column; gap: 0; padding: 8px 20px 16px; border-bottom: 1px solid var(--line); display: none;
  }
  .gnav.open { display: flex; }
  .gnav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .header-inner .btn-cta { display: none; }
  /* 狭い画面では写真に文字を重ねず、写真の下に置く */
  .hero-media { height: 240px; }
  .hero-media::after { background: none; }
  .hero-overlay { position: static; background: #fff; padding: 26px 0 30px; }
  .hero h1 { text-shadow: none; }
  .hero-cta { position: static; margin: 22px 20px 0; align-self: flex-start; }
  .goal-cards, .act-cards, .brand-grid, .school-grid, .cando-grid, .mcols.two { grid-template-columns: 1fr; }
  .cpoint { grid-template-columns: 1fr; }
  .q-head { gap: 14px; }
  .q-label { min-width: 46px; height: 46px; font-size: 16px; }
  .form-card { padding: 22px 18px; }
  .qsec { --q-pad: 22px 18px; --q-gap: 26px; }
  .flow td, .flow th { padding: 10px 6px; font-size: 12.5px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { text-align: left; }
}

@media print { .site-header, .edit-badge, .submit { display: none; } }
