
:root{padding:env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px)} body{margin:0}
/* 学校HP：実写の学習場面で始め、入口（無料→コース→診断）を大きな面で順に見せる。単一のライトテーマ */
:root {
  color-scheme: light;
  --blue: #1d55d6;
  --blue-deep: #123a9e;
  --navy: #0e2247;
  --sky: #eaf1ff;
  --yellow: #ffd23f;
  --line: #0b8440;
  --ink: #16213a;
  --sub: #4c5872;
  --rule: #d6deec;
  --paper: #ffffff;
  --mist: #f5f7fb;
  --flag: #b4530a;
  --flag-bg: #fff6e8;
  --font: "Zen Kaku Gothic New", "Noto Sans KR", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --ko: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.75; font-weight: 500; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.ko { font-family: var(--ko); }
.k { display: inline-block; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.flag { border: 1.5px dashed var(--flag); background: var(--flag-bg); color: var(--flag); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; line-height: 1.6; }
.flag b { display: block; font-size: 12.5px; letter-spacing: .04em; }

/* ヘッダー */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--rule); backdrop-filter: blur(6px); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand span { font-size: 18px; font-weight: 900; letter-spacing: .02em; color: var(--navy); }
.nav { display: none; gap: 26px; font-size: 15px; font-weight: 700; }
.nav a { text-decoration: none; color: var(--navy); }
.nav a:hover { color: var(--blue); }

/* ① メイン画像 */
.hero { background: #fff; }
.hero-banner { position: relative; background: #f3ede4; display: flex; flex-direction: column; }
.hero-banner .wrap { padding-block: 24px 22px; }
.hero-bg { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 78% 50%; order: 2; }
.hero-copy { display: grid; gap: 14px; align-content: center; max-width: 560px; }
.proof .wrap { padding-block: 26px 8px; }
.proof-title { font-size: 15px; font-weight: 900; color: var(--navy); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.proof-title::before { content: ""; width: 26px; height: 3px; background: var(--yellow); border-radius: 2px; }
.eyebrow { color: var(--blue); font-weight: 700; font-size: 14px; letter-spacing: .04em; }
.hero h1 { font-size: clamp(31px, 8.6vw, 56px); line-height: 1.28; font-weight: 900; color: var(--navy); letter-spacing: .01em; }
.hero h1 em { font-style: normal; color: var(--blue); background: linear-gradient(transparent 70%, rgba(255,210,63,.7) 70%); }
.hero .lead { font-size: clamp(16px, 4.2vw, 19px); color: var(--sub); font-weight: 700; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 4px 0 0; list-style: none; }
.facts li { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--rule); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 700; color: var(--navy); }
.facts svg { width: 18px; height: 18px; flex: none; color: var(--blue); }
.scene { display: grid; gap: 12px; align-items: start; }
.scene figure { margin: 0; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 8px 24px rgba(14,34,71,.12); }
.scene .main { position: relative; aspect-ratio: 16 / 9; }
.scene .main img { width: 100%; height: 100%; object-fit: cover; }
.scene .main figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(14,34,71,.88); color: #fff; font-size: 15px; line-height: 1.45; font-weight: 700; padding: 6px 11px; border-radius: 8px; }
.scene .main figcaption b { color: var(--yellow); }

/* セクション共通 */
.band { padding-block: 44px; }
.band.mist { background: var(--mist); }
.sec-head { display: grid; gap: 6px; margin-bottom: 22px; }
.sec-head .tag { color: var(--blue); font-weight: 700; font-size: 14px; letter-spacing: .04em; }
.sec-head h2 { font-size: clamp(25px, 6.4vw, 38px); line-height: 1.35; font-weight: 900; color: var(--navy); text-wrap: balance; }
.sec-head p { color: var(--sub); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 12px 26px; border-radius: 999px; font-size: 17px; font-weight: 900; text-decoration: none; color: #fff; background: var(--blue); letter-spacing: .02em; }
.btn.line { background: var(--line); }
.btn.navy { background: var(--navy); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn { white-space: nowrap; }
.textlink { color: var(--blue); font-weight: 700; text-underline-offset: 4px; }

/* ② 無料バナー */
.free { background: var(--blue); color: #fff; border-radius: 22px; overflow: hidden; display: grid; position: relative; }
.free-body { padding: 26px 20px 24px; display: grid; gap: 14px; position: relative; z-index: 1; align-content: start; }
.free .pill { justify-self: start; background: var(--yellow); color: var(--navy); font-weight: 900; font-size: 14px; border-radius: 999px; padding: 4px 14px; }
.free .name { font-size: clamp(22px, 5.6vw, 30px); font-weight: 900; letter-spacing: .04em; }
.free .big { font-size: clamp(30px, 9vw, 58px); line-height: 1.2; font-weight: 900; }
.free .big b { color: var(--yellow); font-size: 1.35em; }
.free .plus-pdf { justify-self: start; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); border-radius: 10px; padding: 6px 14px; font-size: clamp(16px, 4.4vw, 19px); font-weight: 900; }
.lessons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 0; list-style: none; }
.lessons li { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.lessons small { font-size: 12.5px; color: #cfdcff; font-weight: 700; }
.lessons span { font-weight: 900; font-size: 16px; }
.lessons .ko { font-size: 22px; color: var(--yellow); line-height: 1.2; }
.free-cta { display: grid; gap: 8px; justify-items: start; }
.free-cta .btn { background: #fff; color: var(--line); min-width: min(100%, 320px); }
.free-cta .how { font-size: 14px; color: #e3eaff; }
.free-notes { font-size: 13.5px; color: #dbe5ff; display: grid; gap: 4px; }
.free-notes a { color: #fff; font-weight: 700; }
.free .flag { background: #fff6e8; }

/* 生成画像 */
.free-img { border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.1); }
.free-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.check-img { border-radius: 16px; overflow: hidden; }
.check-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.qchip { justify-self: start; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; background: #fff; border-radius: 12px; padding: 6px 14px; font-weight: 700; color: var(--navy); font-size: 14px; }
.qchip .ko { font-size: 26px; font-weight: 900; white-space: nowrap; }
.card-img { position: relative; aspect-ratio: 3 / 2; background: var(--sky); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .badge { position: absolute; left: 12px; bottom: 12px; background: var(--navy); color: #fff; border-radius: 10px; padding: 4px 12px; font-size: 22px; font-weight: 900; line-height: 1.4; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; max-width: calc(100% - 24px); }
.card-img .badge .ko { white-space: nowrap; font-size: clamp(18px, 5.6vw, 22px); }
.card-img .badge small { font-family: var(--font); font-size: 12px; color: #c9d6ff; font-weight: 700; }
.imgnote { position: absolute; right: 8px; top: 8px; background: rgba(255,255,255,.9); color: var(--sub); font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 5px; }

/* ③ コース */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; text-align: center; font-size: 13px; font-weight: 700; color: var(--sub); padding-top: 26px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px; line-height: 22px; }
.steps li::after { content: ""; position: absolute; top: 11px; left: calc(50% + 14px); right: calc(-50% + 14px); height: 2px; background: var(--rule); }
.steps li:last-child::after { display: none; }
.steps li.free-step::before { background: var(--yellow); color: var(--navy); }
.steps li b { display: block; color: var(--navy); font-size: 14px; }
.steps-note { font-size: 14px; color: var(--sub); text-align: center; margin-bottom: 22px; }
.cards { display: grid; gap: 16px; }
.card { background: #fff; border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.glyph { aspect-ratio: 16 / 8; display: grid; place-items: center; background: var(--navy); color: #fff; position: relative; padding: 14px; }
.glyph .row { display: flex; gap: clamp(10px, 4vw, 26px); align-items: end; }
.glyph .g { display: grid; justify-items: center; gap: 2px; }
.glyph .g .ko { font-size: clamp(40px, 12vw, 60px); font-weight: 900; line-height: 1.05; }
.glyph .g small { font-size: 12.5px; color: #c9d6ff; font-weight: 700; }
.glyph .batchim .ko span { color: var(--yellow); }
.glyph .sentence { font-size: clamp(28px, 8vw, 40px); font-weight: 900; line-height: 1.3; text-align: center; }
.glyph .sentence + small { display: block; text-align: center; color: #c9d6ff; font-size: 13px; font-weight: 700; }
.card-body { padding: 18px 18px 20px; display: grid; gap: 10px; align-content: start; }
.card .for { font-weight: 900; color: var(--blue); font-size: 15px; }
.card h3 { font-size: 23px; font-weight: 900; color: var(--navy); }
.card .learn { color: var(--ink); }
.meta { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.meta li { font-size: 13px; font-weight: 700; color: var(--navy); background: var(--sky); border-radius: 6px; padding: 3px 8px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; border-top: 1px solid var(--rule); padding-top: 10px; }
.price strong { font-size: 26px; font-weight: 900; color: var(--navy); font-variant-numeric: tabular-nums; }
.price span { font-size: 13px; color: var(--sub); }
.card .btn { justify-self: center; width: 100%; max-width: 300px; font-size: 16px; min-height: 50px; }
.course-foot { margin-top: 18px; display: grid; gap: 10px; font-size: 14px; color: var(--sub); }

/* ④ コース診断 */
.check { display: grid; gap: 18px; background: var(--yellow); border-radius: 22px; padding: 22px 20px; align-items: center; }
.quiz { background: #fff; border-radius: 16px; padding: 16px; display: grid; gap: 10px; box-shadow: 0 6px 0 rgba(14,34,71,.12); }
.quiz .q { font-size: 14px; font-weight: 700; color: var(--sub); }
.quiz .word { font-size: 52px; font-weight: 900; color: var(--navy); line-height: 1.1; }
.quiz .opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 0; margin: 0; list-style: none; }
.quiz .opts li { border: 1.5px solid var(--rule); border-radius: 8px; text-align: center; font-weight: 700; padding: 6px; font-size: 15px; }
.check-text { display: grid; gap: 10px; }
.check-text .tag { font-weight: 900; color: var(--navy); }
.check-text h2 { font-size: clamp(27px, 7.2vw, 40px); font-weight: 900; color: var(--navy); line-height: 1.3; }
.check-text h2 b { color: var(--blue); }
.check-text p { color: var(--navy); }
.check-text .btn { justify-self: start; background: var(--navy); }

/* ⑤ サービス画像 */
.services { display: grid; gap: 18px; }
.svc { display: grid; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--rule); }
.svc-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sky); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; }
.svc-img .note { position: absolute; right: 8px; bottom: 8px; background: rgba(255,255,255,.92); color: var(--sub); font-size: 12px; padding: 2px 8px; border-radius: 6px; font-weight: 700; }
.svc-body { padding: 20px; display: grid; gap: 10px; align-content: center; }
.svc .label { justify-self: start; font-size: 13px; font-weight: 900; color: var(--blue); background: var(--sky); border-radius: 999px; padding: 3px 12px; }
.svc h3 { font-size: clamp(22px, 5.8vw, 30px); line-height: 1.38; font-weight: 900; color: var(--navy); text-wrap: balance; }
.svc ul { margin: 0; padding-left: 1.1em; color: var(--ink); display: grid; gap: 2px; }
.svc .dates { display: grid; gap: 6px; margin: 0; }
.svc .dates div { display: flex; gap: 10px; align-items: baseline; }
.svc .dates dt { font-weight: 900; color: var(--blue); font-variant-numeric: tabular-nums; min-width: 6.6em; }
.svc .dates dd { margin: 0; }
.svc .more { justify-self: start; }
.duo { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; height: 100%; }
.duo img { width: 100%; height: 100%; object-fit: cover; }

/* 講師 */
.people { display: grid; gap: 16px; }
.person { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: center; background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: 14px; }
.person img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; }
.person .role { font-size: 13px; font-weight: 700; color: var(--blue); }
.person h3 { font-size: 21px; font-weight: 900; color: var(--navy); line-height: 1.4; }
.person p { font-size: 14.5px; color: var(--sub); }

/* ⑥ 生徒の声 */
.voices { display: grid; gap: 14px; }
.voice { background: #fff; border-radius: 16px; padding: 20px; display: grid; gap: 10px; border: 1px solid var(--rule); }
.voice h3 { font-size: 18px; font-weight: 900; color: var(--blue); }
.voice blockquote { margin: 0; font-size: 16px; }
.voice cite { font-style: normal; font-size: 13px; color: var(--sub); }

/* ⑦ FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--rule); border-radius: 14px; }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 16px; font-weight: 900; color: var(--navy); font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q { width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 14px; }
.faq summary .pm { font-size: 22px; color: var(--blue); line-height: 1; }
.faq details[open] summary .pm { transform: rotate(45deg); }
.faq .a { padding: 0 16px 16px 54px; color: var(--ink); }

/* フッター */
.site-footer { background: var(--navy); color: #fff; }
.site-footer .wrap { padding-block: 34px 40px; display: grid; gap: 22px; }
.site-footer .brand span { color: #fff; }
.foot-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; padding: 0; margin: 0; list-style: none; font-size: 15px; font-weight: 700; }
.foot-links a { text-decoration: none; color: #e6ecff; }
.site-footer small { color: #b8c4e6; font-size: 13px; }

@media (min-width: 760px) {
  .nav { display: flex; }
  .hero-banner { display: block; min-height: 520px; }
  .hero-bg { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; object-position: 60% 50%; }
  .hero-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(247,242,234,.97) 0%, rgba(247,242,234,.9) 34%, rgba(247,242,234,0) 58%); }
  .hero-banner .wrap { position: relative; z-index: 1; padding-block: 64px; }
  .hero h1 { font-size: 54px; }
  .hero-copy { max-width: 540px; }
  .hero .lead { max-width: 400px; }
  .scene { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .free-body { align-content: center; }
  .free-side { grid-template-rows: auto auto; }
    .band { padding-block: 64px; }
  .free { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .free-body { padding: 38px 40px; }
  .free-side { display: grid; align-content: center; padding: 30px 36px 30px 0; gap: 14px; }
  .lessons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .check { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); padding: 32px 40px; gap: 36px; }
  .svc { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .svc.flip .svc-img { order: 2; }
  .svc-img { aspect-ratio: auto; min-height: 320px; }
  .svc-body { padding: 32px 36px; }
  .people { grid-template-columns: 1fr 1fr; }
  .voices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 759px) {
  .free-side { padding: 0 20px 24px; display: grid; gap: 12px; }
}
@media (max-width: 359px) {
  .btn { font-size: 15.5px; padding-inline: 16px; }
  .faq summary { font-size: 15px; gap: 8px; padding: 14px 12px; }
  .faq .a { padding-left: 48px; }
    .steps li b { font-size: 13px; }
  .brand span { font-size: 16px; }
  .brand img { width: 34px; height: 34px; }
  .lessons { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform .15s ease, filter .15s ease; }
  .btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
}
