/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4A90E2;
    --primary-dark: #357ABD;
    --accent: #FFB84D;
    --text: #333;
    --text-light: #666;
    --bg: #fff;
    --bg-light: #f8f9fa;
    --border: #e0e0e0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    color: var(--text);
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* リンク：初期表示は本文色・下線なし（.news-link等は個別に上書き） */
a {
    color: var(--text);
    text-decoration: none;
}
a:hover {
    color: var(--primary);
}
.logo a,
.main-nav a {
    color: inherit;
}
.logo a:hover,
.main-nav a:hover {
    color: var(--primary);
}

main {
    min-height: calc(100vh - 200px);
}

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

/* ヘッダー */
header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.1em;
}

.logo a {
    color: inherit;
    text-decoration: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    padding: 0.5rem 0;
    display: block;
}

.main-nav a:hover {
    color: var(--primary);
}

/* PC表示：menu-closeボタンを非表示 */
.menu-close {
    display: none;
}

/* PC表示：縦並び */
.nav-footer {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    align-items: center;
    margin-top: auto;
    padding-top: 2rem;
}

.nav-phone-button {
    display: inline-block;
    background: white;
    border: 1px solid #9CA3AF;
    padding: 1rem 2rem;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    width: 100%;
    max-width: 280px;
    border-radius: 3rem;
    text-align: center;
    color: var(--text);
    font-weight: 400;
}

.nav-phone-button:hover {
    color: #6B7280;
    border-color: #6B7280;
}

.nav-link-button {
    display: inline-block;
    background: none;
    border: none;
    color: #6B7280;
    padding: 0;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 400;
    text-align: center;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-link-button:hover {
    color: #6B7280;
}

/* ヒーロー */
.hero {
    background: var(--primary);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
    background: #FFA833;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* セクション（トップページ：見出し・コンテンツ間の余白を統一） */
.section {
    padding: 3.5rem 0;
}

.section-container {
    width: 100%;
}

.section-container .section-title {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
    padding: 0 20px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text);
    position: relative;
    padding-bottom: 0.75rem;
}

/* 見出し下線（タイトル文字とのGAPは padding-bottom で統一） */
.section-title::after,
.news-heading-wrap .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    min-height: 3px;
    background: var(--primary);
    display: block;
}
/* トップページ「お知らせ」のみコンテンツ幅の左端に揃え */
.news-section--top .news-heading-wrap .section-title {
    text-align: left;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}
.news-section--top .news-heading-wrap .section-title::after {
    left: 20px;
    transform: none;
}

/* 塾について */
.about-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
    padding: 0 20px;
}

.about-text {
    text-align: left;
}

.about-text p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 2;
}

.about-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 特徴 */
.features-section {
    background: #fff;
}

.features-list {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 0 20px;
}

.feature-item {
    background: #fff;
    border-radius: 10px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.feature-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #f0f0f0 100%);
    border-radius: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.feature-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.02) 100%);
    pointer-events: none;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature-content {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 2rem;
}

.feature-icon {
    width: 52px;
    height: 52px;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    background: rgba(74, 144, 226, 0.08);
    border-radius: 10px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.feature-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text);
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.feature-text p {
    color: var(--text-light);
    line-height: 1.95;
    font-size: 1rem;
    margin: 0;
}

/* コース */
.courses-container {
    width: 100%;
    padding: 0 20px;
}

.courses-container .section-title {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
    padding: 0 20px;
}

.courses-slider-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.courses-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.course-card {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    min-height: 450px;
}

.course-image {
    width: 100%;
    height: 200px;
    background: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

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

.course-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.course-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
    flex-grow: 1;
    font-size: 1.05rem;
}

.course-link {
    display: inline-block;
    text-align: center;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.2s;
}

.course-link:hover {
    background: var(--primary-dark);
}

.slider-btn {
    display: none;
}

.slider-indicators {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 0 20px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #d0d0d0;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.slider-dot:hover {
    background: #a0a0a0;
    transform: scale(1.2);
}

.slider-dot.active {
    background: var(--primary);
    width: 24px;
    height: 8px;
    border-radius: 4px;
}



/* お知らせ（見出しのみ背景・全幅・上余白なし・タイトル以下は背景なし） */
.news-section,
.news-list-section,
.news-detail-section {
    padding-top: 0;
}
.news-heading-wrap {
    width: 100%;
    background: var(--bg-light);
    padding: 3rem 20px 2rem 20px;
    margin: 0 0 2.5rem;
    box-sizing: border-box;
}
.news-heading-wrap .section-title {
    margin-bottom: 0;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 0.75rem;
}
/* トップページのみお知らせ見出しの背景なし・margin・paddingなし */
.news-section--top .news-heading-wrap {
    background: transparent;
    margin: 0;
    padding: 0;
}
.news-section .section-title,
.news-list-section .section-title {
    margin-bottom: 2rem;
}

.news-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-item {
    display: flex;
    gap: 2.5rem;
    padding: 2rem 0;
    border-bottom: 1px solid #e5e5e5;
}

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

.news-heading-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.625rem;
}

.news-heading-row h3 {
    margin-bottom: 0;
}

.news-badge {
    flex-shrink: 0;
    /* margin-left: auto; */
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.5;
    color: #fff;
    background: var(--accent);
    padding: 0.3rem 0.7rem;
    border-radius: 3px;
    margin: 0 0 0.625rem 0;
}

.news-date {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
    min-width: 100px;
    flex-shrink: 0;
    letter-spacing: 0.05em;
    padding-top: 0.125rem;
}

.news-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.625rem;
    line-height: 1.5;
    letter-spacing: -0.01em;
}
.news-text h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.news-text h3 a:hover {
    color: var(--primary);
}

.news-text p {
    color: var(--text-light);
    line-height: 1.95;
    margin: 0;
    font-size: 1rem;
}

/* 授業内容 */
.classes-section {
    background: var(--bg-light);
}

.classes-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.class-item {
    background: var(--bg);
    padding: 2.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.class-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.badge {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
    background: #e8f0f8;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    white-space: nowrap;
}

.class-item p {
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.link-button {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border: 2px solid var(--primary);
    border-radius: 4px;
    transition: all 0.2s;
    text-align: center;
    font-size: 1rem;
}

.link-button:hover {
    background: var(--primary);
    color: white;
}

/* 料金 */
.fee-section {
    background: var(--bg);
}

.fee-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.fee-lead {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.9;
}

/* アクセス・お問い合わせ */
.access-section {
    background: var(--bg-light);
}

.access-container {
    width: 100%;
}

.access-container .section-title {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
    padding: 0 20px;
}

.access-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
    padding: 0 20px;
}

.access-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.access-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.access-info h3:first-child {
    margin-top: 0;
}

.address-text,
.phone-text {
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.hours-table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
    background: #fff;
    table-layout: fixed;
}

.hours-table thead {
    background: #f5f5f5;
}

.hours-table th {
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    border: 1px solid #e0e0e0;
    width: calc(100% / 7);
}

.hours-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

.hours-table tbody tr:last-child {
    border-bottom: none;
}

.hours-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: var(--text-light);
    line-height: 1.6;
}

.hours-symbol {
    display: inline-block;
    font-size: 1.2rem;
    line-height: 1;
}

.hours-symbol.symbol-a {
    color: #ff6b9d;
}

.hours-symbol.symbol-b {
    color: #ffa500;
}

.hours-symbol.symbol-c {
    color: #ffd700;
}

.hours-notes {
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.8;
}

.hours-notes p {
    margin: 0.5rem 0;
}

.hours-notes .hours-symbol {
    margin-right: 0.5rem;
}

.hours-link {
    margin-top: 1rem;
    margin-bottom: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid #d0d0d0;
}

.hours-link a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.hours-link a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.phone-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.2s;
}

.phone-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.map-container {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.contact-lead {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.9;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 2rem;
    background: var(--bg);
    border: 2px solid var(--primary);
    border-radius: 4px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    min-height: 48px;
}

.contact-button:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.contact-button svg {
    width: 24px;
    height: 24px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* フッター */
footer {
    background: var(--text);
    color: white;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}

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

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--bg);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s;
        z-index: 999;
        padding: 1rem;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .menu-close {
        display: flex;
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 32px;
        height: 32px;
        background: none;
        border: none;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        padding: 0;
        z-index: 1000;
    }

    .menu-close span {
        position: absolute;
        width: 24px;
        height: 2px;
        background: var(--text);
        transition: all 0.3s;
    }

    .menu-close span:nth-child(1) {
        transform: rotate(45deg);
    }

    .menu-close span:nth-child(2) {
        transform: rotate(-45deg);
    }

    .menu-close:hover span {
        background: var(--primary);
    }

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

    /* メニューオーバーレイ */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
        z-index: 998;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }


    .main-nav ul {
        flex-direction: column;
        gap: 0;
        margin-top: 3rem;
        flex: 1;
    }

    .main-nav li {
        border-bottom: 1px solid var(--border);
    }

    .main-nav a {
        padding: 1rem 0;
    }

    /* SP表示：縦並び、メニュー下部に配置 */
    .nav-footer {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        align-items: center;
        margin-top: auto;
        padding-top: 2rem;
    }

    .nav-phone-button {
        display: inline-block;
        background: white;
        border: 1px solid #9CA3AF;
        padding: 1rem 2rem;
        text-decoration: none;
        font-size: 1rem;
        transition: all 0.2s ease;
        white-space: nowrap;
        width: 100%;
        max-width: 280px;
        border-radius: 3rem;
        text-align: center;
        color: var(--text);
        font-weight: 400;
    }

    .nav-phone-button:hover {
        color: #6B7280;
        border-color: #6B7280;
    }

    .nav-link-button {
        display: inline-block;
        background: none;
        border: none;
        color: #6B7280;
        padding: 0;
        text-decoration: none;
        font-size: 0.75rem;
        font-weight: 400;
        text-align: center;
        transition: color 0.2s ease;
        white-space: nowrap;
    }

    .nav-link-button:hover {
        color: #6B7280;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero h2 {
        font-size: 2rem;
    }

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

    .section {
        padding: 2.5rem 0;
    }

    .section.news-detail-section,
    .section.news-list-section {
        padding: 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .section-container .section-title {
        padding: 0 20px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 20px;
    }

    .about-image {
        position: static;
    }

    .news-item {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1.5rem 0;
        border-bottom: 1px solid #e5e5e5;
    }

    .news-heading-row {
        margin-bottom: 0.5rem;
    }

    .news-date {
        min-width: auto;
        font-size: 0.8125rem;
        padding-top: 0;
        width: 100%;
    }

    .news-text h3 {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }

    .news-text p {
        font-size: 0.9375rem;
    }

    .features-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 20px;
    }

    .features-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-item {
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    }

    .feature-item:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .feature-image {
        height: 160px;
    }

    .feature-content {
        gap: 1rem;
        padding: 1.5rem;
    }

    .feature-icon {
        width: 44px;
        height: 44px;
    }

    .feature-icon svg {
        width: 24px;
        height: 24px;
    }

    .feature-text h3 {
        font-size: 1.125rem;
    }

    .contact-buttons {
        gap: 0.75rem;
    }

    .access-container .section-title {
        padding: 0 20px;
    }

    .access-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 3rem;
    }

    .map-container {
        position: static;
    }

    .map-container iframe {
        height: 300px;
    }

    .contact-button {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        max-width: 400px;
    }

    .courses-container .section-title {
        padding: 0 20px;
    }

    .courses-container .section-title {
        padding: 0 20px;
    }

    .courses-slider-wrapper {
        padding: 0 20px;
        overflow: hidden;
        position: relative;
    }

    .courses-slider {
        display: flex;
        gap: 1.25rem;
        transition: transform 0.3s ease;
        padding: 0;
    }

    .course-card {
        flex: 0 0 100%;
        min-height: auto;
        padding: 2rem 1.5rem;
        box-sizing: border-box;
    }

    .course-image {
        height: 200px;
        margin-bottom: 1.5rem;
    }

    .course-card h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .course-description {
        font-size: 1rem;
        line-height: 1.8;
        margin-bottom: 1.5rem;
    }

    .course-link {
        width: 100%;
        text-align: center;
        padding: 0.875rem 1.5rem;
    }

    .slider-indicators {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 1.5rem;
        padding: 0 20px;
    }

    .classes-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 20px;
    }

    .class-item {
        padding: 2rem 1.5rem;
    }

    .fee-row {
        flex-direction: column;
    }

    .fee-label {
        width: 100%;
        padding: 0.75rem 1rem;
    }

    .fee-value {
        width: 100%;
        padding: 0.75rem 1rem;
    }


    .page-hero h2 {
        font-size: 1.75rem;
    }
}

html {
    scroll-behavior: smooth;
}

/* 下層ページ */
.page-hero {
    background: var(--primary);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-hero h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.page-content {
    max-width: 1200px;
    margin: 0 auto;
}

.page-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
}

.page-content h3:first-child {
    margin-top: 0;
}

.page-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.page-content h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.page-content p {
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.page-content > div {
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}

.page-content > div:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.course-section {
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}

.course-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.highlight-section {
    background: var(--bg-light);
    padding: 2rem;
    margin-top: 3rem;
    border-radius: 4px;
}

.info-box {
    background: var(--bg-light);
    padding: 2rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    line-height: 1.8;
    color: var(--text-light);
}

.info-box h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.info-box p {
    margin-bottom: 0;
}

.content-list {
    padding-left: 1.5rem;
    margin: 1.25rem 0;
}

.content-list li {
    padding: 0.5rem 0;
    color: var(--text-light);
    line-height: 1.9;
}

.content-list li::before {
    content: '';
}

.fee-table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.fee-table thead {
    background: var(--bg-light);
}

.fee-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.fee-table td {
    padding: 1rem 1.5rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}

.fee-table tbody tr:last-child td {
    border-bottom: none;
}

.fee-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

@media (max-width: 768px) {
    .fee-table {
        font-size: 0.875rem;
    }

    .fee-table th,
    .fee-table td {
        padding: 0.75rem 1rem;
    }
}

.fee-row {
    display: flex;
    border-bottom: 1px solid var(--border);
}

.fee-row:last-child {
    border-bottom: none;
}

.fee-label {
    width: 40%;
    padding: 1rem 1.5rem;
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text);
}

.fee-value {
    width: 60%;
    padding: 1rem 1.5rem;
    color: var(--text-light);
}

.fee-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 1rem;
}

.cta-section {
    margin-top: 2rem;
    text-align: center;
}

.back-link {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

/* 春期講習ページ */
.season-course {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.season-intro {
    margin-bottom: 3rem;
}

.season-course__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.season-course__subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
}

.season-intro__text {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 2;
    margin-bottom: 1.5rem;
}

.season-course__period {
    margin: 0 0 2rem;
    color: var(--text-light);
    font-size: 1rem;
}

.season-course__period strong {
    color: var(--text);
    font-weight: 600;
}

.season-courses-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.course-info-block {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.course-info__title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.course-info__lead {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 1rem;
}

.course-info__list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.course-info__list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
    line-height: 1.8;
}

.course-info__list li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 600;
}

.course-info__note {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-top: 1rem;
    margin-bottom: 0;
}

.season-feature {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 3rem;
}

.season-feature__title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.season-feature__text {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 1rem;
}

.season-message {
    background: var(--bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 3rem;
    text-align: center;
}

.season-message__title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.season-message__text {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 1rem;
}

.season-message__emoji {
    font-size: 1.125rem;
    color: var(--text);
    font-weight: 500;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.course-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
    background: var(--bg);
}

.course-table th,
.course-table td {
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    vertical-align: top;
    text-align: left;
}

.course-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text);
}

.course-table td {
    color: var(--text-light);
}

.course-table td strong {
    font-size: 1rem;
    color: var(--text);
    font-weight: 600;
}

.course-cards {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.course-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    background: var(--bg);
}

.course-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.course-card .badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    background: var(--bg-light);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text);
}

.course-card .price {
    margin: 0;
    font-size: 1.125rem;
    color: var(--text);
    font-weight: 600;
}

.course-card h3 {
    margin: 0.5rem 0 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
}

.course-card ul {
    margin: 0;
    padding-left: 1.5rem;
    color: var(--text-light);
    list-style: disc;
}

.course-card li {
    margin: 0.5rem 0;
    line-height: 1.8;
    font-size: 0.9375rem;
}

.notes {
    margin: 2rem 0 0;
    padding-left: 1.5rem;
    color: var(--text-light);
    list-style: disc;
}

.notes li {
    margin: 0.5rem 0;
    line-height: 1.8;
    font-size: 0.9375rem;
}

.only-mobile {
    display: none;
}

@media (max-width: 768px) {
    .season-course {
        padding: 0 16px;
    }

    .season-course__title {
        font-size: 1.5rem;
    }

    .season-course__subtitle {
        font-size: 1.3rem;
    }

    .season-courses-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .course-info-block,
    .season-feature,
    .season-message {
        padding: 1.5rem;
    }

    .only-desktop {
        display: none;
    }

    .only-mobile {
        display: block;
    }
}

/* モーダル */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg);
    border-radius: 8px;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 10001;
}

.modal-close span {
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
}

.modal-close span:nth-child(1) {
    transform: rotate(45deg);
}

.modal-close span:nth-child(2) {
    transform: rotate(-45deg);
}

.modal-close:hover span {
    background: var(--primary);
}

.modal-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
    margin-top: 0;
}

.modal-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.modal-link-text {
    margin: 0;
    text-align: center;
}

.modal-link-text a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.modal-link-text a:hover {
    color: var(--primary);
}

.modal-phone-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    width: 100%;
}

.modal-phone-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modal-phone-button svg {
    width: 24px;
    height: 24px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .modal-content h3 {
        font-size: 1.25rem;
    }

    .modal-link-text a {
        font-size: 0.85rem;
    }

    .modal-phone-button {
        font-size: 1.1rem;
        padding: 0.875rem 1.5rem;
    }
}

/* お知らせリンク */
.news-link-wrapper {
    text-align: center;
    margin-top: 2rem;
}

.news-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.news-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.back-link-wrapper {
    text-align: center;
    margin-top: 3rem;
}

.back-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--primary);
}

.section.news-detail-section .section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.news-detail-section .section-title {
    margin-bottom: 2rem;
}
/* アイキャッチ画像用（画像を配置すると表示されます） */
.news-eyecatch {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    background: var(--border);
    min-height: 0;
}
.news-eyecatch:not(:empty) {
    min-height: 200px;
}
.news-eyecatch img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    display: block;
    vertical-align: top;
}
.news-detail {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.news-detail-date {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}
.news-detail-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.news-detail-body p {
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 1rem;
}

.news-detail-cta {
    margin-top: 1.5rem;
}

.news-detail-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s;
}

.news-detail-button:hover {
    background: var(--primary-dark);
}
