/* =========================================================
   Radiant School 共通スタイル（完全版）
   - 1行ヘッダー（ロゴ画像→タイトル→ナビ&CTA）
   - トップのみナビ下線オフ（body.home）
   - WWH 3カラム（SP縦1）＋画像サイズ可変
   - セクション／カード／フォーム／フッター一式
   ========================================================= */

/* ========== Reset / Base ========== */
*,
*::before,
*::after {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    color: #111;
    background: #fff;
    line-height: 1.7;
    font-size: 16px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

a {
    color: #2B79C2;
    text-decoration: none
}

a:hover {
    text-decoration: underline
}

:focus-visible {
    outline: 3px solid rgba(43, 121, 194, .35);
    outline-offset: 2px
}

.container {
    width: min(1100px, 92%);
    margin-inline: auto
}

.pc-only {
    display: inline
}

@media(max-width:960px) {
    .pc-only {
        display: none
    }
}

.mt-40 {
    margin-top: 40px
}

.mb-24 {
    margin-bottom: 24px
}

.btn {
    display: inline-block;
    padding: 11px 16px;
    border-radius: 10px;
    font-weight: 700;
    border: 1px solid transparent;
    text-align: center;
    transition: transform .04s ease, opacity .2s ease
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px)
}

.btn:active {
    transform: translateY(0)
}

.btn--primary {
    background: #2B79C2;
    color: #fff;
    border-color: #2B79C2
}

.btn--secondary {
    background: #fff;
    color: #2B79C2;
    border-color: #2B79C2
}

.btn--sm {
    padding: 8px 12px;
    font-size: 14px
}

/* ========== セクション共通 ========== */
.section {
    padding: 48px 0
}

.section__title {
    font-size: 24px;
    font-weight: 900;
    margin: 0 0 14px
}

.section__subtitle {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    color: #6b7280;
    font-weight: 600
}

.page-hero {
    padding: 54px 0 32px;
    background: linear-gradient(180deg, #f7fbff 0, #fff 100%)
}

.page-hero__title {
    font-size: 32px;
    font-weight: 900;
    margin: 0 0 8px
}

.page-hero__lead {
    margin: 0;
    color: #444
}

.grid-2 {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px
}

@media(max-width:960px) {
    .grid-2 {
        grid-template-columns: 1fr
    }
}

.figure {
    margin: 0
}

.figure__cap {
    font-size: 13px;
    color: #666;
    margin-top: 8px
}

.checklist {
    padding-left: 1.1em
}

.checklist li {
    margin: 6px 0
}

/* =========================================================
   Header / Global Navigation（横1行レイアウト）
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .03)
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 72px
}

/* 左：ブランド（ロゴ画像＋タイトル） */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #111
}

.logo__mark {
    width: 36px;
    height: 36px;
    object-fit: contain
}

.logo__text {
    font-size: 20px;
    font-weight: 800;
    color: #111
}

/* 右：ナビ＋CTA */
.global-nav {
    display: flex;
    align-items: center;
    gap: 20px
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0
}

.nav-list a {
    color: #111;
    font-weight: 600;
    padding: 8px 0;
    position: relative
}

.nav-list a:hover {
    color: #2B79C2
}

/* 現在ページ強調（下線アクセント） */
.nav-list a[aria-current="page"] {
    color: #2B79C2;
    font-weight: 700
}

.nav-list a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: #2B79C2;
    border-radius: 1px
}

/* トップだけ下線オフ（index.html の <body class="home"> が前提） */
.home .nav-list a[aria-current="page"] {
    color: #111
}

.home .nav-list a[aria-current="page"]::after {
    display: none
}

/* CTAボタン群 */
.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px
}

.nav-cta .btn {
    font-size: 15px;
    padding: 10px 18px
}

/* モバイルナビ（トグル） */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    padding: 6px;
    cursor: pointer
}

.nav-toggle__bar {
    display: block;
    width: 100%;
    height: 3px;
    background: #111;
    margin: 5px 0;
    border-radius: 2px
}

@media(max-width:768px) {
    .header__inner {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 0
    }

    .nav-toggle {
        display: block;
        margin-left: auto
    }

    .global-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-top: 8px
    }

    .global-nav[aria-expanded="true"] {
        display: flex
    }

    .nav-list {
        flex-direction: column;
        gap: 8px
    }

    .nav-cta .btn {
        width: 100%;
        margin: 4px 0 0
    }
}

/* =========================================================
   Top：誰に・何を・どう役立つ（WWH）
   ========================================================= */
#who-what-how {
    padding-top: 24px
}

.wwh-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.wwh-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 18px
}

.wwh-card__title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 800
}

.wwh-figure {
    margin: 0 0 12px;
    text-align: center
}

.wwh-figure img {
    width: 100%;
    max-width: 220px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    display: inline-block
}

.wwh-card__text {
    margin: 0;
    color: #444
}

.wwh-bullets {
    margin: 10px 0 0;
    padding-left: 1.1em;
    color: #444
}

.wwh-bullets li {
    margin: 6px 0
}

.wwh-cta {
    margin-top: 12px
}

/* タブレット：2列・画像やや小さく */
@media(max-width:1024px) {
    .wwh-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .wwh-figure img {
        max-width: 200px
    }
}

/* スマホ：縦1列・画像小さめ */
@media(max-width:640px) {
    .wwh-grid {
        grid-template-columns: 1fr;
        gap: 16px
    }

    .wwh-card {
        padding: 16px
    }

    .wwh-figure img {
        max-width: 160px
    }

    .wwh-card__title {
        font-size: 17px
    }

    .wwh-card__text,
    .wwh-bullets {
        font-size: 15px
    }
}

@media(max-width:360px) {
    .wwh-figure img {
        max-width: 140px
    }
}

/* =========================================================
   Cases（事例）
   ========================================================= */
.case-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 22px;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 18px;
    background: #fff;
    margin-bottom: 24px
}

.case-card__img img {
    border-radius: 8px;
    object-fit: cover
}

.case-card__body h3 {
    margin-top: 0
}

.case-meta {
    font-size: 14px;
    color: #555;
    list-style: none;
    margin: 8px 0 0;
    padding: 0
}

.case-meta li {
    margin-bottom: 4px
}

.case-card--soon {
    opacity: .9;
    background: #fafafa
}

.case-list {
    display: grid;
    gap: 18px
}

@media(max-width:960px) {
    .case-card {
        grid-template-columns: 1fr
    }
}

/* =========================================================
   About（理念・体制）
   ========================================================= */
.link-box {
    background: #f6f9fe;
    border: 1px solid #eaf0fb;
    border-radius: 10px;
    padding: 14px 18px;
    margin-top: 18px
}

.link-box ul {
    list-style: none;
    margin: 8px 0 0;
    padding: 0
}

.link-box a {
    color: #2B79C2
}

@media(max-width:960px) {
    .link-box {
        font-size: 15px
    }
}

/* =========================================================
   Contact（フォーム）
   ========================================================= */
.form {
    max-width: 760px
}

.form__row {
    margin-bottom: 16px
}

.form__label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px
}

.form__input {
    width: 100%;
    padding: 12px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font: inherit;
    background: #fff
}

.form__input:focus {
    outline: none;
    border-color: #2B79C2;
    box-shadow: 0 0 0 3px rgba(43, 121, 194, .12)
}

.form__error {
    color: #c0382b;
    font-size: 13px;
    min-height: 18px
}

.gform-placeholder {
    border: 1px dashed #aac4e6;
    border-radius: 12px;
    padding: 18px;
    background: #f6f9fe
}

.gform-placeholder__inner {
    display: grid;
    gap: 8px
}

.gform-embed {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden
}

/* =========================================================
   CTA Band（共通）
   ========================================================= */
.cta-band {
    background: #0f172a;
    color: #fff;
    padding: 32px 0
}

.cta-band__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center
}

.cta-band__text h2 {
    margin: 0 0 8px;
    font-size: 22px
}

.cta-band__text p {
    margin: 0;
    color: #cbd5e1
}

.cta-band__actions .btn {
    margin-left: 8px
}

.cta-band__actions .btn:first-child {
    margin-left: 0
}

@media(max-width:960px) {
    .cta-band__inner {
        grid-template-columns: 1fr
    }

    .cta-band__actions .btn {
        width: 100%;
        margin: 8px 0 0
    }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
    background: #0b1220;
    color: #cbd5e1;
    padding: 32px 0;
    margin-top: 40px
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px
}

.footer__logo {
    font-weight: 800
}

.footer__copy {
    color: #8aa0bf
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px
}

.footer__title {
    margin: 0 0 8px;
    color: #fff;
    font-size: 16px
}

.footer__links a {
    color: #9ec1e8
}

.footer__links a:hover {
    color: #cfe3f7;
    text-decoration: underline
}

@media(max-width:960px) {
    .footer__inner {
        grid-template-columns: 1fr
    }

    .footer__links {
        grid-template-columns: 1fr
    }
}

/* =========================================================
   Error Pages
   ========================================================= */
.error-page {
    display: grid;
    place-items: center;
    min-height: 60vh
}

/* ===== Top Hero (First View) ===== */
.home-hero {
    padding: 48px 0 32px;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
    /* ヘッダーの影と馴染ませる */
    border-bottom: 1px solid #f1f5fb;
}

.home-hero__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    /* 左テキスト：右画像 */
    gap: 28px;
    align-items: center;
}

.home-hero__copy {
    padding-block: 8px;
}

.home-hero__title {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 900;
    letter-spacing: .02em;
}

.home-hero__lead {
    margin: 0 0 16px;
    color: #475569;
    font-size: clamp(15px, 1.9vw, 18px);
}

.home-hero__actions .btn {
    margin-right: 10px;
}

.home-hero__actions .btn:last-child {
    margin-right: 0;
}

/* 右側のメインビジュアル */
.home-hero__figure {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
    background: #eef3fa;
}

.home-hero__figure img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* モバイル：縦並びにして画像を先頭 or 末尾はお好みで */
@media (max-width: 960px) {
    .home-hero__inner {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .home-hero__figure {
        order: 2;
        /* 画像を下にしたい場合は 2、上にしたい場合は 0 */
    }
}

/* ===== 支援の流れ（4ステップ） ===== */
.flow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.flow-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 20px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flow-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.flow-step {
    font-weight: 700;
    color: #2b79c2;
    margin-bottom: 8px;
    font-size: 14px;
    letter-spacing: 0.05em;
}

.flow-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111;
}

.flow-text {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
}

/* タブレット：2列 */
@media (max-width: 1024px) {
    .flow-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* スマホ：1列 */
@media (max-width: 640px) {
    .flow-grid {
        grid-template-columns: 1fr;
    }

    .flow-card {
        padding: 20px 16px;
    }
}

/* ===== 導入メリット ===== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 18px;
}

.benefit-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 18px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .03);
    transition: transform .2s ease, box-shadow .2s ease;
}

.benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .06);
}

.benefit-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #f1f5fb;
    color: #2b79c2;
    font-size: 22px;
    margin-bottom: 8px;
}

.benefit-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 800;
    color: #111;
}

.benefit-list {
    margin: 8px 0 0;
    padding-left: 1.1em;
    color: #374151;
}

.benefit-list li {
    margin: 6px 0;
}

@media(max-width:1024px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:640px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .benefit-card {
        padding: 18px 16px;
    }
}

/* ===== FAQ（アコーディオン） ===== */
.faq {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    padding: 0;
    overflow: hidden;
}

.faq-summary {
    cursor: pointer;
    list-style: none;
    position: relative;
    padding: 14px 48px 14px 16px;
    font-weight: 700;
    color: #111;
}

.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-summary::after {
    content: "＋";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 900;
    color: #2b79c2;
}

.faq-item[open] .faq-summary::after {
    content: "−";
}

.faq-content {
    padding: 0 16px 16px;
    color: #374151;
    line-height: 1.7;
    font-size: 15px;
    border-top: 1px dashed #e5e7eb;
}

/* キーボード操作の視認性 */
.faq-summary:focus-visible {
    outline: 3px solid rgba(43, 121, 194, .35);
    outline-offset: 2px;
}

/* ===== お問い合わせフォーム ===== */
.contact-form {
    max-width: 720px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field.full {
    grid-column: 1 / -1;
}

label {
    font-weight: 600;
    margin-bottom: 6px;
}

input,
textarea {
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px 12px;
    transition: border-color 0.2s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #2b79c2;
    box-shadow: 0 0 0 3px rgba(43, 121, 194, 0.15);
}

.form-actions {
    margin-top: 12px;
    text-align: center;
}

.form-note {
    margin-top: 8px;
    font-size: 14px;
    color: #555;
}

/* ===== 直接メール案内ブロック ===== */
.contact-direct {
    background: #f7fbff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 20px 0 32px;
    text-align: center;
}

.contact-direct__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #2b79c2;
}

.contact-direct__text {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.contact-direct__address {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-mail {
    color: #2b79c2;
    text-decoration: none;
    border-bottom: 1px solid #2b79c2;
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.contact-mail:hover {
    color: #155e9e;
    border-color: #155e9e;
}

.contact-direct__note {
    font-size: 14px;
    color: #555;
}

/* 区切り線 */
.contact-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 40px 0 30px;
}

/* =========================
   モバイルナビ（スマホ時のみ表示）
   ========================= */
.nav-toggle {
    display: none;
    /* PCでは非表示 */
    width: 40px;
    height: 32px;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
    margin-left: auto;
}

.nav-toggle__bar {
    display: block;
    height: 2px;
    width: 100%;
    background: #111;
    margin: 6px 0;
    transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===== モバイルドロワーの重なり順とタップ可能化 ===== */
.mobile-nav {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1000;
    /* ヘッダーより前面 */
}

.mobile-nav.is-open {
    display: block;
}

/* 背景（タップで閉じる）。背面へ */
.mobile-nav__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .38);
    border: 0;
    z-index: 0;
    /* 重要：背面にする */
}

/* 本体（右からスライド）。前面へ */
.mobile-nav__inner {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: min(86vw, 360px);
    background: #fff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, .2);
    padding: 20px 16px 24px;
    overflow-y: auto;
    z-index: 1;
    /* 重要：前面にする */
    pointer-events: auto;
    /* 念のため明示 */
}

/* リンクのヒット領域を広く／タップ可能に */
.mobile-nav__list a {
    display: block;
    padding: 14px 4px;
    color: #111;
    text-decoration: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
}

/* ===== 現在地ハイライト（PCと同様の“色＋下線”） ===== */
:root {
    --nav-active: #005bd1;
    /* お好みで */
    --nav-underline: currentColor;
    /* 下線色：文字色に追従 */
}

/* PCナビ */
.global-nav .nav-list a[aria-current="page"] {
    color: var(--nav-active);
    border-bottom: 2px solid var(--nav-underline);
}

/* モバイルナビ */
.mobile-nav__list a[aria-current="page"] {
    color: var(--nav-active);
    border-bottom: 2px solid var(--nav-underline);
}

/* ホバー時の視認性（任意） */
.global-nav .nav-list a:hover,
.mobile-nav__list a:hover {
    color: var(--nav-active);
}

/* SP/PC表示切替（既存と重複OK） */
@media (max-width: 960px) {
    .global-nav {
        display: none;
    }

    .nav-toggle {
        display: inline-block;
    }
}

@media (min-width: 961px) {
    .mobile-nav {
        display: none !important;
    }
}

/* 小ボタンのコントラスト改善（WCAG AA 4.5:1 目安） */
.btn.btn--sm.btn--primary {
    /* 例: ネイビー寄り + 白文字でコントラスト確保 */
    background-color: #1e3a8a;
    /* 旧より暗め */
    color: #fff;
}

.btn.btn--sm.btn--primary:hover,
.btn.btn--sm.btn--primary:focus-visible {
    background-color: #172c66;
}

.btn.btn--sm.btn--secondary {
    border-color: #172c66;
    color: #172c66;
}

.btn.btn--sm.btn--secondary:hover,
.btn.btn--sm.btn--secondary:focus-visible {
    background-color: #172c66;
    color: #fff;
}