:root {
    /* カラーパレット（ブランド適用） */
    --bg: #ffffff;
    --text: #222222;
    --muted: #6b7280;
    --brand: #1EB84C;         /* 吹田塾グリーン */
    --brand-600: #18a443;     /* ホバー用の濃い緑 */
    --navy: #1B2A41;          /* 濃紺（信頼・知性） */
    --danger: #ef4444;        /* 緊急・電話の赤 */
    --accent: #1B2A41;        /* テキストリンクは濃紺へ */
    --surface: #F5F5F5;       /* セクションの下地 */
    --border: #e5e7eb;
    --radius: 16px;
    --shadow: 0 8px 24px rgba(0, 0, 0, .08);
    --maxw: 1000px;
    --container-pad: clamp(14px, 2.6vw, 28px);
    --nav: rgba(255,255,255,.7);
    --focus: 0 0 0 3px rgba(27,42,65,.32); /* フォーカスリング */
    /* フォント */
    --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, system-ui, sans-serif;
    --font-serif: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.6;
}

h1, h2, h3 {
    color: var(--navy);
}
h1, h2, h3 { font-family: var(--font-sans); font-weight: 700; letter-spacing: .02em; }

/* 数値の視認性向上（価格、テーブル、空き状況） */
.table-wrap, .avail { font-variant-numeric: tabular-nums; }

a {
    color: var(--accent);
    text-decoration: none
}

a:hover {
    text-decoration: underline
}

br.mobile-break {
    display: none;
}

@media (max-width:719.98px) {
    br.mobile-break {
        display: inline;
    }

    .map-embed iframe {
        height: 200px;
    }

    .table-wrap {
        margin-inline: calc(var(--container-pad) * -1);
        padding-inline: var(--container-pad);
        padding-bottom: 12px;
    }

    .table-wrap::after {
        content: "";
        display: block;
        height: 1px;
    }

    .table-wrap table {
        min-width: 100%;
    }

    .table-wrap th,
    .table-wrap td {
        white-space: normal;
        padding: 12px 14px;
    }

    .table-wrap td:nth-child(3) {
        white-space: nowrap;
    }
}

.container {
    max-width: var(--maxw);
    margin-inline: auto;
    padding: var(--container-pad);
}

a.skip {
    position: absolute;
    left: -9999px;
}

a.skip:focus {
    left: 16px;
    top: 12px;
    background: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.site-nav {
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
    background: var(--nav);
    z-index: 100;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav-toggle:focus-visible {
    outline: none;
    box-shadow: var(--focus);
    border-radius: 8px;
}

.nav-toggle .bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    transition: transform .2s ease, opacity .2s ease;
}

.site-nav.is-open .nav-toggle .bar:nth-of-type(1) {
    transform: translateY(6px) rotate(45deg);
}

.site-nav.is-open .nav-toggle .bar:nth-of-type(2) {
    opacity: 0;
}

.site-nav.is-open .nav-toggle .bar:nth-of-type(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 8px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
}

.brand__logo {
    height: 40px;
    width: auto;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--border);
    display: block;
}

.brand__name {
    font-weight: 800;
    letter-spacing: .2px;
    font-size: clamp(18px, 2.6vw, 26px);
    line-height: 1.1;
}

.nav-links {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    font-weight: 600;
    white-space: nowrap;
}

.nav-cta {
    padding: .6em 1em;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: clamp(360px, calc(min(100vw, var(--maxw)) * 0.5625), 70svh);
    display: grid;
    justify-items: center;
    align-items: end;
    width: min(100%, calc(var(--maxw) + var(--container-pad) * 2));
    margin-inline: auto;
    scroll-margin-top: 80px;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: min(100%, var(--maxw));
    transform: translateX(-50%);
    background: #fff url('images/hero-1920x1080.png') top center/contain no-repeat;
    filter: none;
    z-index: -2;
}

.hero-inner {
    color: var(--text);
    text-align: center;
    padding: clamp(28px, 6vw, 48px) 16px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(2px);
    border-radius: var(--radius);
    width: 100%;
    max-width: 1040px;
    margin-inline: auto;
}

.kicker {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: .4px;
    margin-bottom: 8px;
}

.hero h1 {
    margin: 0 0 12px;
    font-size: clamp(26px, 6vw, 52px);
    font-weight: 800;
}

.hero h1::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin: 10px auto 0;
    background: var(--brand);
    border-radius: 2px;
}

.hero p {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: clamp(14px, 2.5vw, 18px)
}

/* Hero subcopy list */
.hero-sub {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: grid;
    gap: 10px;
    color: var(--navy);
    font-size: clamp(17px, 3.4vw, 24px);
    line-height: 1.7;
}
.hero-sub li { margin: 0; }
.hero-sub .price {
    color: var(--navy);
    font-weight: 800;
    font-size: clamp(18px, 3.8vw, 26px);
}

/* CTA visual */
#cta {
    position: relative;
    overflow: visible;
}

.cta-visual {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(220px, 45vw, 360px);
    pointer-events: none;
}

.cta-visual img {
    display: block;
    width: 100%;
    height: auto;
}

.cta-inner {
    padding-top: clamp(0px, 8vw, 40px);
}

#cta.section {
    padding: 16px 0 28px;
}

/* CTA section under hero */
.cta--main {
    justify-content: center;
    gap: clamp(14px, 3vw, 28px);
}
.cta--main .btn {
    flex: 1 1 clamp(220px, 32vw, 340px);
    max-width: 360px;
    padding: clamp(16px, 3vw, 22px) clamp(28px, 6vw, 44px);
    font-size: clamp(18px, 2.4vw, 22px);
    border-width: 2px;
    box-shadow: 0 18px 32px rgba(27, 42, 65, .18);
    justify-content: center;
    text-align: center;
    text-decoration: none;
}

.cta--main .btn--line {
    background: linear-gradient(135deg, #1EB84C 0%, #169D40 100%);
    border-color: rgba(255, 255, 255, .5);
}

/* 電話CTAの視認性を強化 */
.cta--main .btn--phone {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    border-color: rgba(255, 255, 255, .35);
    letter-spacing: .03em;
    font-variant-numeric: tabular-nums;
}

/* .cta-note 削除 */

.cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center
}

.btn {
    appearance: none;
    border: 2px solid transparent;
    border-radius: 999px;
    padding: .9em 1.4em;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(27, 42, 65, .12);
    display: inline-flex;
    align-items: center;
    gap: .5em;
    line-height: 1.1;
    text-decoration: none;
    transition: transform .15s ease, filter .2s ease, box-shadow .2s ease;
}

.btn--line {
    background: var(--brand);
    color: #fff
}

.btn--line:hover {
    background: var(--brand-600);
}

.btn--secondary {
    background: var(--navy);
    color: #fff;
}

.btn--secondary:hover {
    background: #162238;
}

.btn--phone {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
}

.btn--phone:hover {
    background: linear-gradient(135deg, #f15f5f 0%, #e53e3e 100%);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(27, 42, 65, .18);
}

.btn:focus-visible {
    outline: none;
    border-color: rgba(255, 255, 255, .9);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), var(--focus);
}

.badges {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.badge {
    background: #e9f9ef;
    color: #0f5132;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    border: 1px solid #bce7cc;
}

/* ===== Sections ===== */
section {
    scroll-margin-top: 80px
}

.section {
    padding: 48px 0
}

.section--alt {
    background: var(--surface)
}

.section h2 {
    font-size: clamp(20px, 3.5vw, 28px);
    margin: 0 0 16px
}

.section p.lead {
    color: var(--muted);
    margin-top: 0
}

/* ===== Notice (季節講習・増枠) ===== */
.notice {
    border: 2px dashed var(--brand);
    background: #eefbf2;
    padding: 16px;
    border-radius: var(--radius);
    margin: 8px 0 16px
}

.notice strong {
    color: #0f5132
}

/* ===== Tables ===== */
.table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow)
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
    table-layout: fixed;
}


tbody tr:nth-child(even) {
    background: #f9fafb;
}

tbody tr:hover {
    background: rgba(30, 184, 76, .08);
}

.pricing-header {
    background: rgba(30, 184, 76, .14);
    color: var(--navy);
    text-align: left;
    border: 1px solid rgba(30, 184, 76, .25);
    border-bottom: none;
}

.pricing-header th {
    padding: 12px 16px;
    font-weight: 700;
}

caption {
    caption-side: top;
    text-align: left;
    font-weight: 700;
    padding: 16px
}

th,
td {
    padding: 14px 16px;
    border-top: 1px solid var(--border);
    text-align: left;
    white-space: normal;
    line-height: 1.6;
    word-break: break-word;
    line-break: strict;
    vertical-align: top;
}

.table-wrap th:nth-child(1),
.table-wrap td:nth-child(1) {
    width: 32%;
}

.table-wrap th:nth-child(2),
.table-wrap td:nth-child(2) {
    width: 44%;
}

.table-wrap th:nth-child(3),
.table-wrap td:nth-child(3) {
    width: 24%;
    white-space: nowrap;
}

thead th {
    position: sticky;
    top: 0;
    background: #F5F5F5;
    z-index: 1
}

/* 空き状況の色分け */
.avail {
    font-weight: 700;
}

.avail--ok {
    color: #1EB84C
}

.avail--few {
    color: #f59e0b
}

.avail--ng {
    color: #ef4444
}

/* ===== Policy list ===== */
.list {
    display: grid;
    gap: 12px
}


.payment-methods {
    margin-top: 20px;
    text-align: center;
}

.payment-methods img {
    max-width: 100%;
    height: auto;
}

.map-embed {
    margin-top: 16px;
}

.map-embed iframe {
    width: 100%;
    max-width: 100%;
    border: 0;
    height: 450px;
}
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow)
}

.card h3 {
    margin-top: 0;
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 800;
}

.card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: calc(var(--radius) - 4px);
    margin-bottom: 12px;
}

.feature-columns {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.feature-columns h4 {
    margin: 0 0 8px;
    font-size: clamp(16px, 3vw, 20px);
    color: var(--navy);
}

.feature-columns p {
    margin: 0;
    color: var(--muted);
    font-size: clamp(14px, 2.6vw, 17px);
    line-height: 1.7;
}


.flow-steps {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    gap: 20px;
}

.flow-steps li {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 20px 20px 24px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: start;
}

.flow-steps h3 {
    margin: 0 0 8px;
    font-size: clamp(16px, 3.2vw, 22px);
    color: var(--navy);
}

.flow-steps p {
    margin: 0;
    color: var(--muted);
    font-size: clamp(14px, 2.6vw, 17px);
    line-height: 1.7;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1EB84C, #3BE082);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: .08em;
}

.step-body {
    display: grid;
    gap: 6px;
}

@media (max-width: 640px) {
    .flow-steps li {
        grid-template-columns: minmax(0, auto);
        padding: 18px;
        text-align: left;
    }

    .step-number {
        width: 48px;
        height: 48px;
        font-size: 12px;
    }
}
.feature-cta {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    margin-inline: auto;
    width: fit-content;
}

.feature-cta + * {
    margin-top: 0;
}

.coach-profile {
    display: grid;
    gap: 16px;
    align-items: start;
    margin-top: 20px;
}

.coach-profile h4 {
    margin: 0 0 8px;
    font-size: clamp(18px, 3.5vw, 22px);
}

.coach-profile ul {
    margin: 0 0 12px;
    padding-left: 1.2em;
    color: var(--muted);
    font-size: clamp(14px, 2.8vw, 17px);
    line-height: 1.7;
}

.coach-profile p {
    margin: 0;
    color: var(--muted);
    font-size: clamp(14px, 2.8vw, 17px);
    line-height: 1.7;
}

@media (min-width:720px) {
    .coach-profile {
        grid-template-columns: auto 1fr;
    }
}

@media (min-width:720px) {
    .feature-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

.qr {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    align-items: center
}

.qr img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border)
}

/* ===== Footer & modal ===== */
footer {
    padding: 24px 0;
    color: var(--muted);
    font-size: 14px
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px
}

.modal[open] {
    display: flex
}

.modal__card {
    background: #fff;
    max-width: min(800px, 95vw);
    max-height: 85vh;
    overflow: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow)
}

.modal__hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border)
}

.modal__bd {
    padding: 18px
}

.modal__close {
    background: none;
    border: 0;
    font-size: 18px;
    cursor: pointer
}

/* ===== Mobile fixed bottom bar ===== */
.mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, .98);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(8px);
    z-index: 50
}

.mobile-cta .btn {
    flex: 1;
    justify-content: center;
    padding: 14px 12px
}

.mobile-cta .btn--phone {
    font-size: 1.1rem;
    font-variant-numeric: tabular-nums;
}

/* ===== Responsive ===== */
@media (min-width:720px) {
    .qr {
        grid-template-columns: 140px 1fr
    }

    .qr img {
        width: 140px;
        height: 140px
    }
}

@media (min-width:960px) {
    .hero {
        min-height: clamp(420px, calc(min(100vw, var(--maxw)) * 0.5625), 70svh);
    }

    .contact-grid {
        grid-template-columns: 1.2fr 1fr
    }

    /* デスクトップでは電話CTAを抑制（視覚ノイズ軽減） */
    .cta--main .btn--phone {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        color: #fff;
        border: 1px solid rgba(255,255,255,.4);
        box-shadow: 0 20px 36px rgba(239, 68, 68, .24);
        font-size: 20px; /* デスクトップで数字をより大きく */
    }
}

/* モバイルのみ固定バーを表示 */
@media (max-width:959.98px) {
    .nav-inner {
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
    }

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

    .nav-links {
        width: 100%;
        display: none;
        flex-direction: column;
        gap: 12px;
        margin-top: 12px;
        padding: 16px;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
    }

    .nav-links a {
        display: block;
        padding: 10px;
        border-radius: var(--radius);
        text-align: center;
        background: rgba(27, 42, 65, .04);
    }

    .nav-links .nav-cta {
        order: -1;
        background: var(--brand);
        color: #fff;
    }

    .site-nav.is-open .nav-links {
        display: flex;
    }

    .mobile-cta {
        display: flex
    }

    /* ヒーロー直下CTAの上下余白をモバイルで詰める */
    #cta.section {
        padding-top: 24px;
        padding-bottom: 24px;
    }
}
