/* ===========================
   グローバルスタイル
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-navy: #1a3a5c;
    --secondary-navy: #2c5282;
    --accent-yellow: #ffd700;
    --light-yellow: #fff4cc;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --text-dark: #333333;
    --text-gray: #666666;
}

body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   ヘッダー
   =========================== */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-navy);
}

.logo span {
    color: var(--accent-yellow);
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-navy);
    border-bottom-color: var(--accent-yellow);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-navy);
    transition: all 0.3s ease;
}

/* ===========================
   ヒーローセクション
   =========================== */
.hero {
    position: relative;
    height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.85) 0%, rgba(44, 82, 130, 0.75) 100%);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 0 20px;
}

.hero-subtitle {
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--accent-yellow);
    font-weight: 500;
}

.hero h1 {
    font-size: 52px;
    font-weight: bold;
    margin-bottom: 25px;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    line-height: 1.8;
}

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

.btn {
    padding: 18px 45px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
}

.btn-primary {
    background: var(--accent-yellow);
    color: var(--primary-navy);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn-primary:hover {
    background: #ffed4e;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-navy);
    transform: translateY(-3px);
}

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

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

.section-title h2 {
    font-size: 42px;
    color: var(--primary-navy);
    margin-bottom: 15px;
    font-weight: bold;
}

.section-title .subtitle {
    font-size: 16px;
    color: var(--text-gray);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-bg-gray {
    background: var(--light-gray);
}

/* ===========================
   お悩みセクション
   =========================== */
.problems-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.problem-item {
    background: var(--white);
    padding: 35px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.problem-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.problem-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.problem-item h3 {
    font-size: 20px;
    color: var(--primary-navy);
    margin-bottom: 12px;
}

.problem-item p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* ===========================
   選ばれる理由セクション
   =========================== */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.reason-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reason-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.reason-number {
    background: var(--primary-navy);
    color: var(--accent-yellow);
    font-size: 24px;
    font-weight: bold;
    padding: 15px;
    text-align: center;
}

.reason-content {
    padding: 35px 30px;
}

.reason-content h3 {
    font-size: 24px;
    color: var(--primary-navy);
    margin-bottom: 18px;
}

.reason-content p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* ===========================
   コース・料金セクション
   =========================== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

.course-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid var(--accent-yellow);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.course-header {
    background: var(--primary-navy);
    color: var(--white);
    padding: 30px;
    text-align: center;
}

.course-header h3 {
    font-size: 26px;
    margin-bottom: 10px;
}

.course-header .grade {
    font-size: 16px;
    color: var(--accent-yellow);
}

.course-body {
    padding: 35px 30px;
}

.course-price {
    text-align: center;
    margin-bottom: 25px;
}

.course-price .price {
    font-size: 42px;
    font-weight: bold;
    color: var(--primary-navy);
}

.course-price .period {
    font-size: 16px;
    color: var(--text-gray);
    margin-left: 5px;
}

.course-features {
    list-style: none;
    margin-bottom: 30px;
}

.course-features li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    color: var(--text-gray);
}

.course-features li:before {
    content: '✓';
    color: var(--accent-yellow);
    font-weight: bold;
    margin-right: 10px;
}

.course-card .btn {
    width: 100%;
    padding: 15px;
    font-size: 16px;
}

/* ===========================
   合格実績セクション
   =========================== */
.results-content {
    max-width: 900px;
    margin: 0 auto;
}

.results-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.stat-item {
    text-align: center;
    background: var(--white);
    padding: 35px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-navy);
    margin-bottom: 10px;
}

.stat-number span {
    color: var(--accent-yellow);
}

.stat-label {
    font-size: 16px;
    color: var(--text-gray);
}

.schools-list {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.schools-list h3 {
    font-size: 24px;
    color: var(--primary-navy);
    margin-bottom: 25px;
    text-align: center;
}

.schools-list ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.schools-list li {
    padding: 12px 20px;
    background: var(--light-yellow);
    border-radius: 8px;
    color: var(--text-dark);
    text-align: center;
}

/* ===========================
   講師紹介セクション
   =========================== */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.teacher-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.teacher-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.teacher-info {
    padding: 30px;
}

.teacher-name {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-navy);
    margin-bottom: 8px;
}

.teacher-subject {
    color: var(--accent-yellow);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
}

.teacher-bio {
    color: var(--text-gray);
    line-height: 1.8;
}

/* ===========================
   生徒の声セクション
   =========================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.testimonial-card {
    background: var(--white);
    padding: 35px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.quote-icon {
    font-size: 48px;
    color: var(--accent-yellow);
    opacity: 0.3;
    position: absolute;
    top: 20px;
    left: 20px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-info h4 {
    font-size: 18px;
    color: var(--primary-navy);
    margin-bottom: 5px;
}

.author-info .school {
    font-size: 14px;
    color: var(--text-gray);
}

/* ===========================
   アクセスセクション
   =========================== */
.access-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.access-info {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.access-info h3 {
    font-size: 28px;
    color: var(--primary-navy);
    margin-bottom: 30px;
}

.info-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: bold;
    color: var(--primary-navy);
    margin-bottom: 8px;
    font-size: 16px;
}

.info-text {
    color: var(--text-gray);
    line-height: 1.8;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    height: 450px;
    background: var(--light-gray);
}

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

/* ===========================
   無料体験セクション
   =========================== */
.trial {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-navy) 100%);
    color: var(--white);
    text-align: center;
}

.trial .section-title h2 {
    color: var(--white);
}

.trial .section-title .subtitle {
    color: var(--accent-yellow);
}

.trial-description {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.8;
}

.trial-form {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    color: var(--primary-navy);
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-yellow);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.trial-form .btn-primary {
    width: 100%;
    margin-top: 10px;
}

/* ===========================
   フッター
   =========================== */
.footer {
    background: var(--primary-navy);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--accent-yellow);
}

.footer-section p,
.footer-section ul {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul a:hover {
    color: var(--accent-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

/* ===========================
   レスポンシブ対応
   =========================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 30px 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        gap: 0;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }

    .hero {
        height: 500px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        padding: 15px 35px;
        font-size: 16px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 32px;
    }

    .access-content {
        grid-template-columns: 1fr;
    }

    .trial-form {
        padding: 30px 25px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 26px;
    }

    .section-title h2 {
        font-size: 26px;
    }

    .courses-grid,
    .reasons-grid,
    .teachers-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   アニメーション
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* スクロールアニメーション用 */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}
