:root {
    --primary-color: #0284c7;
    /* 洗練されたスカイ・ブルー */
    --primary-dark: #0369a1;
    --secondary-color: #06C755;
    /* LINEグリーン */
    --accent-bg: #e0f2fe;
    /* 薄い水色 */
    --dark-color: #0f172a;
    --light-color: #f8fafc;
    --text-color: #1e293b;
    --border-radius: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f8fafc 100%);
    background-attachment: fixed;
    line-height: 1.7;
    overflow-x: hidden;
}

/* スクロールアニメーション用の基本スタイル */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ヘッダー */
header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    padding: 12px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(224, 242, 254, 0.8);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.header-cta {
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 24px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.3);
    transition: all 0.3s ease;
}

.header-cta:hover {
    background-color: #05b34c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.4);
}

/* ヒーローセクション */
.hero {
    background: radial-gradient(circle at 80% 20%, rgba(224, 242, 254, 0.9) 0%, rgba(255, 255, 255, 0.5) 100%),
        linear-gradient(135deg, rgba(240, 249, 255, 0.8) 0%, rgba(224, 242, 254, 0.6) 100%);
    padding: 160px 5% 100px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(186, 230, 253, 0.5);
}

.hero-tag {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.1);
    border: 1px solid rgba(186, 230, 253, 0.6);
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--dark-color);
    line-height: 1.35;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero h1 span {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 100%;
    height: 8px;
    background-color: rgba(2, 132, 199, 0.2);
    z-index: -1;
}

.hero p {
    font-size: 1.25rem;
    color: #475569;
    max-width: 700px;
    margin: 0 auto 40px;
    font-weight: 500;
}

/* セクション共通 */
section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    background-color: rgba(2, 132, 199, 0.1);
    color: var(--primary-color);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark-color);
}

/* こんな悩みありませんか？ セクション */
.trouble-section {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    margin: 40px auto;
    padding: 80px 5%;
    box-shadow: 0 20px 40px rgba(2, 132, 199, 0.05);
    border: 1px solid rgba(224, 242, 254, 0.8);
}

.trouble-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.trouble-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.trouble-item {
    background-color: #f8fafc;
    padding: 24px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border-left: 5px solid #cbd5e1;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

.trouble-item:hover {
    transform: translateX(5px);
    border-left-color: var(--primary-color);
}

.trouble-emoji {
    font-size: 2.2rem;
    flex-shrink: 0;
}

.trouble-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
}

.trouble-image-container {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(2, 132, 199, 0.1);
}

.trouble-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trouble-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(2, 132, 199, 0.2), rgba(15, 23, 42, 0.8));
    display: flex;
    align-items: flex-end;
    padding: 30px;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

/* 特徴セクション */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 45px 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 35px rgba(2, 132, 199, 0.05);
    border: 1px solid rgba(224, 242, 254, 0.8);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(2, 132, 199, 0.12);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-num {
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(2, 132, 199, 0.15);
    line-height: 1;
    margin-bottom: 10px;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 18px;
    font-size: 1.35rem;
    font-weight: 800;
}

.feature-card p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
}

/* 料金比較セクション */
.pricing-section {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    margin: 40px auto;
    padding: 80px 5%;
    box-shadow: 0 20px 40px rgba(2, 132, 199, 0.05);
    border: 1px solid rgba(224, 242, 254, 0.8);
}

.pricing-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    background: #f0f9ff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.03);
    border: 1px solid rgba(186, 230, 253, 0.8);
}

.course-tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 4px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.pricing-intro h3 {
    font-size: 1.6rem;
    color: var(--dark-color);
    margin-bottom: 10px;
    font-weight: 800;
}

.pricing-intro p {
    font-size: 1.2rem;
    font-weight: 500;
    color: #475569;
}

.pricing-intro p span {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary-color);
}

/* 3つの比較カード */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
}

.price-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    border: 1px solid #cbd5e1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.3s ease;
}

/* 宅塾（Best Value）用のハイライト設定 */
.price-card.highlight {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    border: none;
    box-shadow: 0 20px 45px rgba(2, 132, 199, 0.3);
    transform: scale(1.05);
    z-index: 2;
}

.price-card.highlight::after {
    content: '★ BEST VALUE';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    color: white;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(6, 199, 85, 0.3);
}

.price-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 25px;
}

.price-card.highlight .price-card-title {
    color: rgba(255, 255, 255, 0.9);
}

.price-num {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1;
}

.price-card.highlight .price-num {
    color: #FFFFFF;
    font-size: 3.5rem;
}

.price-unit {
    font-size: 1rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 25px;
}

.price-card.highlight .price-unit {
    color: rgba(255, 255, 255, 0.8);
}

.price-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    border-top: 1px solid #e2e8f0;
    padding-top: 25px;
}

.price-card.highlight .price-features {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.price-features li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
}

.price-card.highlight .price-features li {
    color: rgba(255, 255, 255, 0.95);
}

.price-features i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.price-card.highlight .price-features i {
    color: #4ade80;
}

/* 塾長ストーリー・理念セクション（新規追加） */
.story-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    border-radius: var(--border-radius);
    margin: 40px auto;
    padding: 90px 8%;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
    position: relative;
    overflow: hidden;
}

.story-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(rgba(2, 132, 199, 0.3) 10%, transparent 70%);
    border-radius: 50%;
}

.story-header {
    text-align: center;
    margin-bottom: 50px;
}

.story-tag {
    display: inline-block;
    background-color: rgba(2, 132, 199, 0.3);
    color: #38bdf8;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.story-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    line-height: 1.4;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.9;
    color: #cbd5e1;
}

.story-card-box {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 30px;
    border-radius: 0 16px 16px 0;
    backdrop-filter: blur(5px);
    margin-bottom: 20px;
}

.story-card-box h4 {
    color: #38bdf8;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.story-highlight-box {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.2) 0%, rgba(6, 199, 85, 0.1) 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 35px;
    border-radius: 16px;
    text-align: center;
    margin-top: 10px;
}

.story-highlight-box p {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.story-profile {
    display: inline-block;
    background: rgba(2, 132, 199, 0.3);
    color: #38bdf8;
    padding: 6px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 15px;
}

/* CTAセクション */
.cta-section {
    text-align: center;
    padding: 100px 5% 120px;
    position: relative;
}

.cta-box h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.cta-box p {
    font-size: 1.15rem;
    color: #475569;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #05b34c 100%);
    color: white;
    font-size: 1.4rem;
    font-weight: 900;
    padding: 22px 55px;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(6, 199, 85, 0.4);
    transition: all 0.3s ease;
}

.btn-large:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(6, 199, 85, 0.5);
}

/* フッター */
footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 50px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* レスポンシブ設計 */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 450px;
    }

    .price-card.highlight {
        transform: scale(1);
    }

    .trouble-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .trouble-image-container {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .story-title {
        font-size: 1.7rem;
    }

    .btn-large {
        font-size: 1.15rem;
        padding: 18px 30px;
        width: 100%;
    }

    .logo-img {
        height: 40px;
    }
}