/* =============================================
   Pattern 25: Education
   みらい塾 — 個別指導塾 — 品質向上版
   ★ 独自構成: スプリットヒーロー, ノート風カード, ステッパー, 合格実績
   ============================================= */

:root {
    --c-green: #10B981;
    --c-green-light: #D1FAE5;
    --c-green-dark: #059669;
    --c-mint: #F0FDF9;
    --c-orange: #F97316;
    --c-orange-light: #FFF7ED;
    --c-blue: #3B82F6;
    --c-purple: #8B5CF6;
    --c-white: #ffffff;
    --c-text: #1F2937;
    --c-muted: #6B7280;
    --c-bg: #FAFBFC;
    --f-display: "Klee One", serif;
    --f-body: "Noto Sans JP", sans-serif;
    --radius: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--f-body);
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.9;
}

.container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ===== ヘッダー（丸みのある中央寄せナビ） ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 1.3rem;
}

.logo-text {
    font-family: var(--f-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--c-green-dark);
}

.nav-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--c-mint);
    border-radius: 50px;
    padding: 5px;
}

.nav-pill a {
    text-decoration: none;
    font-size: 0.8rem;
    color: var(--c-text);
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-pill a:hover {
    background: var(--c-white);
    color: var(--c-green-dark);
}

.nav-highlight {
    background: var(--c-green) !important;
    color: var(--c-white) !important;
}

.nav-highlight:hover {
    background: var(--c-green-dark) !important;
}

/* ===== ヒーロー（スプリットレイアウト） ===== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 100vh;
    padding: 0 60px;
    gap: 50px;
    background: linear-gradient(135deg, var(--c-white) 60%, var(--c-mint) 100%);
}

.hero-left {
    padding-top: 80px;
}

.hero-badge {
    display: inline-block;
    background: var(--c-green-light);
    color: var(--c-green-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.hero-title {
    font-family: var(--f-display);
    font-size: 3rem;
    line-height: 1.5;
    margin-bottom: 18px;
}

.title-accent {
    color: var(--c-green);
    position: relative;
}

.title-accent::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--c-green-light);
    z-index: -1;
    border-radius: 5px;
}

.hero-sub {
    color: var(--c-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
    line-height: 2;
}

.hero-right {
    position: relative;
    padding-top: 80px;
}

.hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.15);
}

.hero-bubble {
    position: absolute;
    background: var(--c-white);
    border-radius: 14px;
    padding: 10px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 500;
}

.hero-bubble span {
    font-size: 1.2rem;
}

.hero-bubble--1 {
    top: 100px;
    right: -15px;
    animation: float 3s ease-in-out infinite;
}

.hero-bubble--2 {
    bottom: 60px;
    left: -15px;
    animation: float 3s ease-in-out infinite 1.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ===== ボタン ===== */
.btn-primary {
    display: inline-block;
    padding: 15px 35px;
    background: var(--c-green);
    color: var(--c-white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    background: var(--c-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
}

.btn-primary--lg {
    padding: 18px 45px;
    font-size: 1.1rem;
}

/* ===== セクション ===== */
.section {
    padding: 100px 0;
}

.section--mint {
    background: var(--c-mint);
}

.section-head {
    text-align: center;
    margin-bottom: 50px;
}

.section-label {
    display: inline-block;
    font-family: var(--f-display);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--c-green);
    font-weight: 600;
    margin-bottom: 8px;
}

.section-head h2 {
    font-family: var(--f-display);
    font-size: 1.8rem;
}

.marker {
    background: linear-gradient(transparent 60%, var(--c-green-light) 60%);
}

.marker--white {
    background: linear-gradient(transparent 60%, rgba(255, 255, 255, 0.3) 60%);
}

/* ===== 選ばれる理由（写真+ノートカード） ===== */
.reason-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.reason-card {
    background: var(--c-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.reason-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.reason-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.reason-body {
    padding: 22px;
    background-image: repeating-linear-gradient(transparent, transparent 27px, rgba(16, 185, 129, 0.08) 28px);
}

.reason-num {
    font-family: var(--f-display);
    font-size: 1.5rem;
    color: var(--c-green);
    font-weight: 600;
    margin-bottom: 5px;
}

.reason-body h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.reason-body p {
    font-size: 0.85rem;
    color: var(--c-muted);
}

/* ===== 写真帯 ===== */
.photo-band {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.band-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.band-overlay {
    position: absolute;
    inset: 0;
    background: rgba(16, 185, 129, 0.25);
}

.band-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.band-text {
    font-family: var(--f-display);
    font-size: 2.5rem;
    color: var(--c-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ===== コースカード ===== */
.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.course-card {
    background: var(--c-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.course-card--popular {
    border-color: var(--c-orange);
}

.popular-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--c-orange);
    color: var(--c-white);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    z-index: 2;
}

.course-tab {
    padding: 12px 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--c-white);
    text-align: center;
}

.course-tab--green {
    background: var(--c-green);
}

.course-tab--blue {
    background: var(--c-blue);
}

.course-tab--purple {
    background: var(--c-purple);
}

.course-body {
    padding: 25px;
}

.course-body h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.course-body p {
    font-size: 0.85rem;
    color: var(--c-muted);
    margin-bottom: 15px;
}

.course-features {
    list-style: none;
    margin-bottom: 15px;
}

.course-features li {
    font-size: 0.8rem;
    padding: 4px 0;
    color: var(--c-text);
}

.course-features li::before {
    content: '✓ ';
    color: var(--c-green);
    font-weight: 700;
}

.course-price {
    font-family: var(--f-display);
    font-size: 1.4rem;
    color: var(--c-text);
    font-weight: 600;
}

.course-price small {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--c-muted);
}

/* ===== 合格実績 ===== */
.results-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.results-numbers {
    display: flex;
    gap: 30px;
}

.result-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--c-white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
}

.result-val {
    font-family: var(--f-display);
    font-size: 3rem;
    color: var(--c-green);
    font-weight: 600;
    line-height: 1;
}

.result-unit {
    font-size: 1.2rem;
    color: var(--c-green);
    font-weight: 600;
}

.result-label {
    font-size: 0.75rem;
    color: var(--c-muted);
    margin-top: 5px;
}

.results-list h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.school-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.school-tag {
    background: var(--c-white);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--c-text);
}

/* ===== 入塾の流れ（ステッパー） ===== */
.stepper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step {
    text-align: center;
    position: relative;
}

.step-circle {
    width: 50px;
    height: 50px;
    background: var(--c-green);
    color: var(--c-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 auto 15px;
}

.step-connector {
    position: absolute;
    top: 25px;
    left: 75%;
    width: 50%;
    height: 2px;
    background: var(--c-green-light);
}

.step:last-child .step-connector {
    display: none;
}

.step h3 {
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.step p {
    font-size: 0.8rem;
    color: var(--c-muted);
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--c-white);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--radius);
    margin-bottom: 20px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s;
}

.faq-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
    border-color: var(--c-green-light);
}

.faq-q {
    font-family: var(--f-display);
    font-size: 1.15rem;
    color: var(--c-green-dark);
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.faq-q::before {
    content: 'Q.';
    color: var(--c-green);
    font-size: 1.5rem;
    line-height: 1;
}

.faq-a {
    color: var(--c-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.faq-a::before {
    content: 'A.';
    color: var(--c-text);
    font-family: var(--f-display);
    font-size: 1.4rem;
    line-height: 1.1;
    opacity: 0.5;
}

/* ===== CTA ===== */
.cta-section {
    background: var(--c-green);
}

.cta-layout {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
}

.cta-text h2 {
    font-family: var(--f-display);
    font-size: 1.8rem;
    color: var(--c-white);
    margin-bottom: 8px;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.cta-actions {
    text-align: center;
}

.cta-actions .btn-primary {
    background: var(--c-white);
    color: var(--c-green-dark);
}

.cta-actions .btn-primary:hover {
    background: var(--c-green-light);
}

.cta-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
}

/* ===== フッター ===== */
.footer {
    padding: 40px 30px;
    background: var(--c-white);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-inner {
    max-width: 1050px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-name {
    font-family: var(--f-display);
    font-size: 1rem;
    color: var(--c-green-dark);
    font-weight: 600;
}

.footer p {
    font-size: 0.7rem;
    color: var(--c-muted);
}

/* ===== アニメーション ===== */
.anim {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.anim.anim-up {
    transform: translateY(40px);
}

.anim.anim-left {
    transform: translateX(-40px);
}

.anim.anim-right {
    transform: translateX(40px);
}

.anim.is-visible {
    opacity: 1;
    transform: translate(0);
}

.anim-d1 {
    transition-delay: 0.15s;
}

.anim-d2 {
    transition-delay: 0.3s;
}

.anim-d3 {
    transition-delay: 0.45s;
}

.anim-hero {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.anim-hero.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 0 25px;
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 50px;
    }

    .hero-right {
        display: none;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .nav-pill {
        display: none;
    }

    .reason-grid {
        grid-template-columns: 1fr;
    }

    .course-grid {
        grid-template-columns: 1fr;
    }

    .results-layout {
        grid-template-columns: 1fr;
    }

    .results-numbers {
        justify-content: center;
    }

    .stepper {
        grid-template-columns: 1fr 1fr;
    }

    .step-connector {
        display: none;
    }

    .cta-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}