/* 基本カラーと共通寸法を定義します。 */
:root {
  --navy: #062f68;
  --blue: #075d8e;
  --teal: #047f9d;
  --sky: #e9f7fc;
  --gold: #d79a0b;
  --yellow: #ffd93d;
  --red: #e83f4f;
  --ink: #172538;
  --muted: #5e6875;
  --line: #cddce7;
  --white: #fff;
  --container: 1180px;
}

/* すべての要素で幅計算を統一します。 */
*, *::before, *::after { box-sizing: border-box; }

/* ページ全体の文字と背景を設定します。 */
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif; line-height: 1.75; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }

/* 画像のはみ出しを防止します。 */
img { display: block; max-width: 100%; height: auto; }

/* リンクの既定装飾を整えます。 */
a { color: inherit; text-decoration: none; }

/* ボタンの基本フォントを継承します。 */
button { color: inherit; font: inherit; }

/* 見出しの基本余白をリセットします。 */
h1, h2, h3, p { margin-top: 0; }

/* アクセシビリティ用の非表示クラスです。 */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* キーボード利用者向けリンクを設定します。 */
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 9999; padding: 10px 16px; color: var(--white); background: var(--navy); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

/* 共通コンテナ幅を設定します。 */
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.container.narrow { max-width: 900px; }

/* セクション共通余白を設定します。 */
.section { padding: 92px 0; }
.section-kicker { margin-bottom: 8px; color: var(--teal); font-size: 13px; font-weight: 900; letter-spacing: .16em; text-align: center; }
.section-kicker.light { color: #7edcf2; }
.section-title { margin-bottom: 16px; color: var(--navy); font-size: clamp(30px, 4vw, 46px); line-height: 1.3; letter-spacing: .02em; text-align: center; }
.section-title span { color: var(--gold); font-size: 1.18em; }
.section-title.light { color: var(--white); }
.section-title.align-left { text-align: left; }
.section-lead { max-width: 700px; margin: 0 auto 44px; color: var(--muted); font-size: 17px; text-align: center; }

/* 共通ボタンを設定します。 */
.button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; padding: 13px 28px; border: 2px solid transparent; border-radius: 10px; font-weight: 800; line-height: 1.35; text-align: center; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.button:hover { transform: translateY(-3px); }
.button:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.button-primary { color: var(--white); background: var(--red); box-shadow: 0 8px 22px rgba(232, 63, 79, .25); }
.button-primary:hover { background: #d93042; box-shadow: 0 12px 28px rgba(232, 63, 79, .32); }
.button-large { min-width: 340px; flex-direction: column; padding: 15px 34px; font-size: 20px; }
.button-large span { margin-top: 3px; font-size: 12px; font-weight: 500; }
.button-outline { color: var(--navy); border-color: var(--navy); background: var(--white); }
.button-plan { color: var(--navy); border-color: var(--navy); background: var(--white); }

/* ヘッダーを画面上部に固定します。 */
.site-header { position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(6, 47, 104, .12); background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); }
.header-inner { display: flex; width: min(calc(100% - 48px), var(--container)); height: 78px; align-items: center; gap: 28px; margin-inline: auto; }
.brand { display: flex; flex-direction: column; color: var(--navy); line-height: 1.15; }
.brand-main { font-size: 19px; font-weight: 900; letter-spacing: .03em; }
.brand-sub { margin-top: 5px; color: var(--teal); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.desktop-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.desktop-nav a { position: relative; font-size: 14px; font-weight: 700; }
.desktop-nav a::after { position: absolute; right: 0; bottom: -7px; left: 0; height: 2px; background: var(--teal); content: ""; transform: scaleX(0); transition: transform .25s; }
.desktop-nav a:hover::after { transform: scaleX(1); }
.header-cta { padding: 11px 20px; border-radius: 8px; color: var(--white); background: var(--red); font-size: 14px; font-weight: 800; }
.menu-button, .mobile-menu { display: none; }

/* ファーストビューを横長画像中心に構成します。 */
.hero { overflow: hidden; background: linear-gradient(180deg, #fff 0%, #effaff 100%); }
.hero-image-wrap { max-width: 1500px; margin: 0 auto; }
.hero-image-wrap img { width: 100%; }
.hero-action { display: grid; width: min(calc(100% - 48px), 1120px); grid-template-columns: 1fr auto; align-items: center; gap: 32px; margin: -54px auto 42px; padding: 26px 30px; border: 1px solid rgba(6, 47, 104, .18); border-radius: 14px; background: rgba(255, 255, 255, .96); box-shadow: 0 15px 45px rgba(6, 47, 104, .14); position: relative; }
.hero-points { display: grid; grid-template-columns: repeat(3, 1fr); }
.hero-points span { min-height: 68px; padding: 8px 18px; border-right: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; }
.hero-points span:last-child { border-right: 0; }
.hero-points b { display: block; color: var(--navy); font-size: 16px; }
.hero-cta-area { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.text-link { color: var(--navy); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* 悩みカードは直角寄りのデザインにします。 */
.worries { background: var(--white); }
.worry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 42px; border-top: 3px solid var(--navy); border-bottom: 1px solid var(--line); }
.worry-item { min-height: 220px; padding: 30px 24px; border-right: 1px solid var(--line); }
.worry-item:last-child { border-right: 0; }
.line-icon { display: block; margin-bottom: 14px; color: var(--gold); font-size: 14px; font-weight: 900; letter-spacing: .12em; }
.worry-item h3 { margin-bottom: 10px; color: var(--navy); font-size: 19px; line-height: 1.5; }
.worry-item p { margin-bottom: 0; color: var(--muted); font-size: 14px; }

/* 解決策の帯はバナーとして角丸を使用します。 */
.solution-banner { padding: 34px 0; color: var(--white); background: linear-gradient(110deg, var(--navy), var(--teal)); }
.solution-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 30px; border: 1px solid rgba(255, 255, 255, .34); border-radius: 14px; }
.solution-inner p { margin: 0; font-size: 20px; }
.solution-inner strong { color: var(--yellow); }
.solution-inner span { font-size: 14px; }

/* 5つの理由を縦罫線のカードで表示します。 */
.reasons { background: #f5fbfe; }
.reason-grid { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 46px; border: 1px solid var(--line); border-top: 7px solid var(--teal); background: var(--white); }
.reason-card { position: relative; padding: 30px 22px 32px; border-right: 1px solid var(--line); }
.reason-card:last-child { border-right: 0; }
.reason-number { margin-bottom: 16px; color: var(--teal); font-size: 18px; font-weight: 900; }
.reason-symbol { display: grid; width: 64px; height: 64px; place-items: center; margin: 0 auto 18px; border: 2px solid var(--navy); color: var(--navy); font-size: 26px; font-weight: 900; transform: rotate(-3deg); }
.reason-card h3 { min-height: 58px; margin-bottom: 12px; color: var(--navy); font-size: 18px; line-height: 1.55; text-align: center; }
.reason-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* 講師紹介は濃紺背景に写真カードを配置します。 */
.support { color: var(--white); background: var(--navy); }
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 44px; }
.support-panel { overflow: hidden; border: 1px solid rgba(255, 255, 255, .28); background: var(--white); color: var(--ink); }
.support-panel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.support-copy { padding: 28px 30px 32px; }
.panel-label { color: var(--teal); font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.support-copy h3 { margin: 7px 0 12px; color: var(--navy); font-size: 25px; }
.support-copy p { color: var(--muted); }
.check-list { margin: 20px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 9px 0 9px 28px; border-top: 1px solid var(--line); font-size: 14px; }
.check-list li::before { position: absolute; top: 8px; left: 3px; color: var(--teal); content: "✓"; font-weight: 900; }

/* 受講シーンを2カラムで表示します。 */
.use-scene { background: var(--white); }
.scene-layout { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 64px; }
.scene-photo { position: relative; }
.scene-photo::before { position: absolute; top: 22px; right: -22px; bottom: -22px; left: 22px; z-index: -1; background: var(--sky); content: ""; }
.scene-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.scene-caption { position: absolute; right: -14px; bottom: 26px; padding: 13px 20px; border-radius: 8px; color: var(--white); background: var(--teal); font-weight: 800; }
.scene-copy .section-kicker { text-align: left; }
.scene-copy > p { color: var(--muted); font-size: 17px; }
.target-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 26px 0 30px; }
.target-list span { padding: 12px 14px; border-left: 4px solid var(--gold); background: #f7fafc; font-size: 14px; font-weight: 700; }

/* 料金カードを3列で表示します。 */
.pricing { background: var(--sky); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: stretch; gap: 20px; margin-top: 56px; }
.price-card { position: relative; padding: 0 24px 28px; border: 1px solid #a9c3d6; background: var(--white); text-align: center; }
.price-card.recommended { border: 3px solid var(--gold); transform: translateY(-12px); box-shadow: 0 18px 40px rgba(6, 47, 104, .14); }
.recommend-label { position: absolute; top: -35px; right: -3px; left: -3px; padding: 5px; border-radius: 10px 10px 0 0; color: var(--white); background: var(--gold); font-size: 14px; font-weight: 900; }
.price-head { margin: 0 -24px 24px; padding: 15px; color: var(--white); font-size: 18px; font-weight: 900; }
.price-head.blue { background: var(--teal); }
.price-head.gold { background: var(--gold); }
.price-head.deep-gold { background: #a97800; }
.price-frequency { display: inline-block; margin-bottom: 5px; padding: 4px 18px; border-radius: 999px; background: #eef6fa; font-weight: 800; }
.price-value { margin-bottom: 7px; color: var(--navy); line-height: 1; }
.price-value strong { font-family: Arial, sans-serif; font-size: clamp(48px, 5vw, 66px); letter-spacing: -.04em; }
.price-value span { margin-left: 5px; font-size: 14px; font-weight: 700; }
.price-note { min-height: 32px; color: var(--muted); font-size: 13px; }
.price-card ul { margin: 20px 0 25px; padding: 0; border-top: 1px solid var(--line); list-style: none; text-align: left; }
.price-card li { padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
.price-card li::before { margin-right: 8px; color: var(--teal); content: "✓"; font-weight: 900; }
.price-card .button { width: 100%; }
.price-caution { margin: 18px 0 0; color: var(--muted); font-size: 12px; text-align: center; }

/* 無料体験は背景写真付きバナーにします。 */
.trial-banner { position: relative; min-height: 560px; overflow: hidden; background: #fff4f1; }
.trial-image { position: absolute; inset: 0; background-image: linear-gradient(90deg, #fff 5%, rgba(255,255,255,.96) 38%, rgba(255,255,255,.1) 70%), url("images/05.png"); background-position: center; background-size: cover; }
.trial-content { position: relative; display: flex; min-height: 560px; flex-direction: column; align-items: flex-start; justify-content: center; }
.trial-content > * { max-width: 570px; }
.trial-limited { margin-bottom: 8px; color: var(--red); font-weight: 900; }
.trial-content h2 { margin-bottom: 20px; color: var(--red); font-size: clamp(34px, 5vw, 56px); line-height: 1.25; }
.trial-content h2 span { display: inline-block; padding: 4px 13px; border-radius: 8px; color: var(--navy); background: var(--yellow); font-size: .45em; vertical-align: middle; }
.trial-content > p:not(.trial-limited) { color: var(--ink); font-size: 17px; }
.trial-content .button { margin-top: 15px; }
.trial-tel { margin-top: 12px; color: var(--navy); font-size: 16px; font-weight: 900; text-decoration: underline; text-underline-offset: 4px; }

/* 無料体験の手順を3列で表示します。 */
.flow { background: var(--white); }
.flow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 48px; border-top: 4px solid var(--navy); }
.flow-item { position: relative; min-height: 290px; padding: 32px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.flow-item:last-child { border-right: 0; }
.flow-number { color: var(--teal); font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.flow-icon { display: grid; width: 70px; height: 70px; place-items: center; margin: 20px 0 14px; border: 2px solid var(--gold); color: var(--gold); font-size: 28px; font-weight: 900; }
.flow-item h3 { margin-bottom: 8px; color: var(--navy); font-size: 23px; }
.flow-item p { margin: 0; color: var(--muted); font-size: 14px; }

/* FAQは控えめな角丸のアコーディオンです。 */
.faq { background: #f5f8fa; }
.faq-list { margin-top: 44px; }
.faq-item { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.faq-item summary { display: flex; align-items: center; gap: 16px; padding: 20px 56px 20px 22px; color: var(--navy); cursor: pointer; font-weight: 800; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { position: absolute; top: 50%; right: 22px; content: "+"; font-size: 27px; transform: translateY(-52%); }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary span, .faq-answer > span { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; color: var(--white); background: var(--navy); font-weight: 900; }
.faq-answer { display: flex; gap: 16px; padding: 20px 24px; border-top: 1px solid var(--line); }
.faq-answer > span { color: var(--navy); background: var(--yellow); }
.faq-answer p { margin: 3px 0 0; color: var(--muted); }

/* 教室情報を濃紺の3列エリアで表示します。 */
.school-info { padding: 58px 0; color: var(--white); background: var(--navy); }
.school-grid { display: grid; grid-template-columns: 1.1fr .9fr .8fr; align-items: center; gap: 36px; }
.school-label { margin-bottom: 6px; color: #8cdff1; font-size: 13px; }
.school-main h2 { margin-bottom: 20px; font-size: 32px; line-height: 1.3; }
.school-contact-title { margin-bottom: 2px; font-size: 13px; }
.school-phone { display: block; margin-bottom: 4px; font-family: Arial, sans-serif; font-size: 34px; font-weight: 900; }
.school-main > p:last-child { margin: 0; font-size: 13px; }
.school-details { margin: 0; padding-left: 34px; border-left: 1px solid rgba(255,255,255,.3); }
.school-details div { margin-bottom: 14px; }
.school-details div:last-child { margin-bottom: 0; }
.school-details dt { color: #8cdff1; font-size: 12px; font-weight: 800; }
.school-details dd { margin: 2px 0 0; font-size: 14px; }
.map-placeholder { position: relative; display: flex; min-height: 180px; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; border-radius: 12px; color: var(--navy); background: repeating-linear-gradient(35deg, #eef2f5 0 16px, #fff 16px 32px); text-align: center; }
.map-pin { width: 26px; height: 34px; margin-bottom: 8px; border: 7px solid var(--red); border-radius: 50% 50% 50% 0; background: var(--white); transform: rotate(-45deg); }
.map-placeholder strong { font-size: 17px; }
.map-placeholder small { padding: 2px 8px; color: var(--white); background: var(--red); }

/* フッターの情報を整えます。 */
.site-footer { padding: 23px 0 95px; color: #cbd5e2; background: #03214b; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; font-size: 12px; }
.footer-inner p { margin: 0; }
.footer-inner div { display: flex; gap: 20px; }

/* スマートフォン固定CTAはPCで非表示にします。 */
.sticky-cta { display: none; }

/* スクロール表示アニメーションの初期状態です。 */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* モーションを望まない環境ではアニメーションを停止します。 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* タブレット表示を調整します。 */
@media (max-width: 1023px) {
  .desktop-nav { display: none; }
  .header-cta { margin-left: auto; }
  .hero-action { grid-template-columns: 1fr; margin-top: -25px; }
  .hero-points { width: 100%; }
  .worry-grid, .reason-grid { grid-template-columns: repeat(2, 1fr); }
  .worry-item, .reason-card { border-bottom: 1px solid var(--line); }
  .worry-item:nth-child(2n), .reason-card:nth-child(2n) { border-right: 0; }
  .reason-card:last-child { grid-column: 1 / -1; }
  .support-grid { gap: 18px; }
  .scene-layout { gap: 42px; }
  .school-grid { grid-template-columns: 1fr 1fr; }
  .map-placeholder { grid-column: 1 / -1; }
}

/* スマートフォン表示を1列へ変更します。 */
@media (max-width: 767px) {
  html { scroll-padding-top: 64px; }
  body { padding-bottom: 70px; }
  .container { width: min(calc(100% - 40px), var(--container)); }
  .section { padding: 64px 0; }
  .section-title { font-size: 30px; }
  .section-lead { margin-bottom: 32px; font-size: 15px; }
  .sp-only { display: block; }
  .header-inner { width: calc(100% - 32px); height: 64px; gap: 12px; }
  .brand-main { font-size: 15px; }
  .brand-sub { font-size: 7px; }
  .header-cta { display: none; }
  .menu-button { display: flex; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto; padding: 8px; border: 0; background: transparent; cursor: pointer; }
  .menu-button span { width: 100%; height: 2px; background: var(--navy); transition: transform .2s, opacity .2s; }
  .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mobile-menu { position: fixed; inset: 64px 0 auto; z-index: 999; display: grid; padding: 14px 20px 24px; border-top: 1px solid var(--line); background: var(--white); box-shadow: 0 16px 30px rgba(6,47,104,.16); }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a { padding: 14px 8px; border-bottom: 1px solid var(--line); font-weight: 700; }
  .mobile-menu .mobile-menu-cta { margin-top: 12px; border: 0; border-radius: 8px; color: var(--white); background: var(--red); text-align: center; }
  .hero-image-wrap { width: 100%; }
  .hero-image-wrap img { min-height: 265px; object-fit: cover; object-position: center; }
  .hero-action { width: calc(100% - 30px); gap: 20px; margin: -12px auto 28px; padding: 20px 16px; }
  .hero-points { grid-template-columns: 1fr; }
  .hero-points span { min-height: auto; padding: 9px; border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-points span:last-child { border-bottom: 0; }
  .button-large { width: 100%; min-width: 0; font-size: 17px; }
  .worry-grid, .reason-grid, .support-grid, .scene-layout, .price-grid, .flow-grid, .school-grid { grid-template-columns: 1fr; }
  .worry-grid { margin-top: 30px; }
  .worry-item { min-height: auto; padding: 24px 18px; border-right: 0; }
  .solution-inner { flex-direction: column; align-items: flex-start; padding: 20px; }
  .solution-inner p { font-size: 18px; }
  .reason-card { border-right: 0; }
  .reason-card:last-child { grid-column: auto; }
  .reason-card h3 { min-height: 0; }
  .support-copy { padding: 24px 22px 28px; }
  .scene-layout { gap: 54px; }
  .scene-copy { order: -1; }
  .scene-caption { right: -5px; bottom: 16px; }
  .target-list { grid-template-columns: 1fr; }
  .price-grid { gap: 22px; margin-top: 38px; }
  .price-card.recommended { margin-top: 24px; transform: none; }
  .trial-banner { min-height: 760px; padding-top: 350px; }
  .trial-image { background-image: linear-gradient(180deg, rgba(255,255,255,0) 18%, #fff 52%), url("images/05.png"); background-position: 64% top; background-size: auto 430px; background-repeat: no-repeat; }
  .trial-content { min-height: 410px; justify-content: flex-start; padding-top: 20px; }
  .trial-content h2 { font-size: 34px; }
  .flow-item { min-height: 0; border-right: 0; }
  .faq-item summary { padding: 18px 48px 18px 16px; font-size: 14px; }
  .faq-answer { padding: 18px 16px; font-size: 14px; }
  .school-details { padding: 24px 0 0; border-top: 1px solid rgba(255,255,255,.3); border-left: 0; }
  .school-phone { font-size: 30px; }
  .footer-inner { flex-direction: column; }
  .site-footer { padding-bottom: 24px; }
  .sticky-cta { position: fixed; right: 0; bottom: 0; left: 0; z-index: 1200; display: grid; height: calc(68px + env(safe-area-inset-bottom)); grid-template-columns: 34% 66%; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 18px rgba(6,47,104,.18); }
  .sticky-cta a { display: grid; place-items: center; color: var(--white); font-size: 15px; font-weight: 900; }
  .sticky-phone { background: var(--teal); }
  .sticky-trial { background: var(--red); }
}

/* PCではスマートフォン専用改行を無効にします。 */
@media (min-width: 768px) { .sp-only { display: none; } }
