/* 基本設定とフォント */
body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.7;
    color: #4A4A4A; /* ダークグレー */
    background-color: #F8F5F0; /* やや温かみのあるオフホワイト/ベージュ系 */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body main{
    flex-grow: 1;
}

.container {
    width: 90%;
    max-width: 1100px; /* 少し広めに */
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif; /* 見出しはセリフ体でアクセント */
    color: #386641; /* ダークグリーン */
    font-weight: 700;
}

a {
    color: #6A994E; /* やや明るいグリーン */
    text-decoration: none;
}

a:hover {
    color: #A7C957; /* ホバー時の明るいグリーン */
    text-decoration: underline;
}

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

/* ヘッダー */
header {
    background-color: #FFFFFF;
    padding: 20px 0;
    border-bottom: 1px solid #E0E0E0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

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

header h1 {
    margin: 0;
    font-size: 1.9em;
    font-family: 'Merriweather', serif;
}
header h1 a {
    color: #386641; /* ダークグリーン */
    text-decoration: none;
}
header h1 a:hover{
    color: inherit; /* 親要素の色を継承する、または具体的な色を指定 */
    text-decoration: none;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

header nav ul li {
    margin-left: 25px;
}

header nav ul li a {
    text-decoration: none;
    color: #4A4A4A; /* ダークグレー */
    font-weight: bold;
    font-size: 0.95em;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}
header nav ul li a:hover {
    color: #6A994E; /* やや明るいグリーン */
}

/* ===== Header Active Link ===== */
header nav ul li a.active {
    color: #6A994E; /* やや明るいグリーン (ホバー時の色と同じにしてアクティブを示す) */
    font-weight: bold; /* 必要であれば太字に */
}

/* ヒーローセクション V2 */
.hero-v2 {
    background-color: #E6EFE6; /* 薄いグリーン系背景 */
    padding: 60px 0;
    border-bottom: 1px solid #D4E0D4;
}

.hero-v2-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-v2-text {
    flex: 1;
    max-width: 55%;
}
.hero-v2-text .subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.1em;
    color: #6A994E;
    margin-bottom: 8px;
    font-weight: bold;
}
.hero-v2-text h2 {
    font-size: 2.8em;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 20px;
}
.hero-v2-text .description {
    font-size: 1.05em;
    margin-bottom: 30px;
    color: #5a5a5a;
}

.hero-v2-image {
    flex: 1;
    width: 40%;
    height: 300px;
}
.hero-v2-image img {
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* コンテンツセクション */
.content-section {
    padding: 50px 0;
}
.content-section:nth-child(odd) { /*交互に背景色を変える場合*/
    /* background-color: #FCFBF8; */
}

.content-section h2 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 40px;
}

.text-center {
    text-align: center;
}

.bg-light-green { /* CTAセクションの背景 */
    background-color: #E6EFE6;
    padding: 50px 20px;
    border-radius: 8px; /* セクション自体に角丸 */
    margin: 30px 0;
}
.bg-light-green h2 {
    color: #386641;
}
.bg-light-green p {
    color: #4A4A4A;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 25px;
}

/* 新規生徒受付 */
.cta-contact-icon,.cta-contact-link {
    color: #f04a42;
    font-size:xx-large;
}


/* 特徴 V2 */
.features-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item-v2 {
    background-color: #FFFFFF;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    display: flex;
    align-items: flex-start; /* アイコンとテキストを上揃え */
    gap: 20px;
}
.feature-item-v2-icon img {
    width: 50px;
    height: 50px;
    margin-top: 5px;
}
.feature-item-v2-text h3 {
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 8px;
    color: #386641;
}
.feature-item-v2-text p {
    font-size: 0.95em;
    margin-bottom: 0;
    color: #5a5a5a;
}

/* お知らせ V2 */
.news-list-v2 {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px; /* 中央寄せで幅を制限 */
}
.news-list-v2 li {
    border-bottom: 1px solid #E0E0E0;
    margin-bottom: 15px;
    padding-bottom: 15px;
}
.news-list-v2 li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.news-list-v2 li a {
    display: block;
    text-decoration: none;
    color: #4A4A4A;
    transition: background-color 0.2s ease-in-out;
    padding: 10px;
    border-radius: 4px;
}
.news-list-v2 li a:hover {
    background-color: #F0F0F0;
    color: #386641;
    text-decoration: none;
}
.news-list-v2 .date {
    display: block;
    font-size: 0.9em;
    color: #777;
    margin-bottom: 5px;
    font-family: 'Noto Sans JP', sans-serif;
}
.news-list-v2 .title {
    font-size: 1.1em;
    font-weight: bold;
    font-family: 'Merriweather', serif;
}

/* ボタン V2 */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px; /* 角丸を強くしてピル型に */
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    letter-spacing: 0.5px;
    font-size: 0.95em;
    text-align: center;
    margin: 5px;
}
.btn-primary {
    background-color: #6A994E; /* やや明るいグリーン */
    color: #FFFFFF;
}
.btn-primary:hover {
    background-color: #588142; /* 少し濃いグリーン */
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.btn-secondary {
    background-color: transparent;
    color: #6A994E;
    border-color: #6A994E;
}
.btn-secondary:hover {
    background-color: #6A994E;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(106, 153, 78, 0.2);
}
.cta-buttons .btn {
    margin: 10px 15px;
}


/* 姉妹教室 */
#sister-school {
    background-color: #F8F5F0; /* 本体背景と同じか少し変える */
    padding: 40px 0;
}
.sister-school-content {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}
.sister-school-content p {
    margin-bottom: 1.5em;
    line-height: 1.8;
}
.sub-text {
    font-size: 0.9em;
    color: #666;
}
.notice-text {
    margin-top: 15px;
}

/* フッター */
footer {
    background-color: #386641; /* ダークグリーン */
    color: #E6EFE6; /* 薄いグリーン系テキスト */
    text-align: center;
    padding: 40px 0;
    margin-top: 40px;
}
.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.footer-nav ul li {
    margin: 0 15px;
}
.footer-nav ul li a {
    color: #E6EFE6;
    text-decoration: none;
    font-size: 0.9em;
}
.footer-nav ul li a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}
.copyright {
    font-size: 0.85em;
    margin-bottom: 0;
}

.menu-toggle {
    display: none; /* デスクトップでは非表示 */
}

/* レスポンシブ対応 (簡単な例) */
@media (max-width: 992px) {
    .hero-v2-text h2 {
        font-size: 2.4em;
    }
}

@media (max-width: 768px) {
    .header-row {
        flex-direction: column;
        text-align: center;
    }
    header nav ul {
        flex-direction: column;
        margin-top: 20px;
    }
    header nav ul li {
        margin: 8px 0;
    }

    .hero-v2-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-v2-text {
        max-width: 100%;
        margin-bottom: 30px;
    }
    .hero-v2-text h2 {
        font-size: 2em;
    }
    .hero-v2-image {
        max-width: 80%;
        margin: 0 auto;
    }

    .features-grid-v2 {
        grid-template-columns: 1fr;
    }
    .feature-item-v2 {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .feature-item-v2-icon img {
        margin-bottom: 10px;
    }

    .news-list-v2 .title {
        font-size: 1em;
    }
}

/* ==========================================================================
   スマートフォン向けスタイル (768px以下に適用)
   ========================================================================== */

/* 既存の @media (max-width: 992px) のスタイルはそのまま維持してください */
@media (max-width: 992px) {
    .hero-v2-text h2 {
        font-size: 2.4em;
    }
}

/* スマートフォン向けスタイル */
@media (max-width: 768px) {
    /* ----- 基本レイアウト・フォント調整 ----- */
    .container {
        width: 90%; /* スマホでは左右の余白を少し多めに取る */
        padding: 0 15px; /* 左右のパディングを調整 */
    }

    body {
        font-size: 15px; /* 基本フォントサイズを少し調整 (例: 16px -> 15px) */
        line-height: 1.65; /* 行間を少し広げて可読性を向上 */
    }

    h1 { font-size: 1.8em; } /* 見出しサイズ調整 */
    h2 { font-size: 1.6em; } /* 各セクションタイトルなどで個別調整も考慮 */
    h3 { font-size: 1.25em; }

    /* ----- ヘッダー ----- */
    .header-row {
        flex-direction: column;
        text-align: center;
    }
    header h1 {
        font-size: 1.7em; /* PC版 1.9em から調整 */
        margin: 0 0 15px 0; /* ロゴとナビゲーションの間にマージン */
    }
    header nav ul {
        flex-direction: column;
        margin-top: 10px;
    }
    header nav ul li {
        margin: 10px 0; /* メニューアイテム間のマージン */
    }
    header nav ul li a {
        font-size: 0.9em; /* PC版 0.95em から調整 */
        padding: 5px 0; /* タップエリアを少し確保 */
    }

    /* ----- ヒーローセクション V2 ----- */
    .hero-v2 {
        padding: 40px 0; /* 上下パディング調整 */
    }
    .hero-v2-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-v2-text {
        max-width: 100%;
        margin-bottom: 30px;
    }
    .hero-v2-text .subtitle {
        font-size: 1em; /* PC版 1.1em から調整 */
        margin-bottom: 10px;
    }
    .hero-v2-text h2 {
        font-size: 2.0em; /* PC版 2.8em, 992pxで2.4em から調整 */
        line-height: 1.35;
        margin-bottom: 15px;
    }
    .hero-v2-text .description {
        font-size: 0.9em; /* PC版 1.05em から調整 */
        margin-bottom: 25px;
    }
    .hero-v2-image {
        max-width: 90%; /* PC版の横幅指定から調整 */
        margin: 0 auto;
        height: auto; /* 高さを自動に設定 */
    }
    .hero-v2-image img {
        max-height: 280px; /* 画像の最大高さを指定して、縦長になりすぎないように */
        width: 100%; /* 親要素の幅に合わせる */
        object-fit: cover; /* アスペクト比を保ちつつカバー */
        display: none;
    }
    .hero-v2 .btn-primary {
        padding: 12px 25px;
        font-size: 0.95em;
        width: auto; /* 必要に応じて width: 80%; max-width: 280px; など */
    }

    /* ----- コンテンツセクション ----- */
    .content-section {
        padding: 35px 0;
    }
    .content-section h2 { /* 特徴、お知らせなどの共通セクションタイトル */
        font-size: 1.7em; /* PC版 2.2em から調整 */
        margin-bottom: 30px;
    }

    /* ----- 特徴 V2 ----- */
    .features-grid-v2 {
        grid-template-columns: 1fr; /* 1カラム表示 */
        gap: 20px;
    }
    .feature-item-v2 {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 15px;
    }
    /* HTMLに .feature-item-v2-icon img が存在する場合のスタイル */
    .feature-item-v2-icon img {
        width: 45px;
        height: 45px;
        margin-bottom: 10px;
    }
    .feature-item-v2-text h3 {
        font-size: 1.3em; /* PC版 1.4em から調整 */
        margin-bottom: 10px;
    }
    .feature-item-v2-text p {
        font-size: 0.9em; /* PC版 0.95em から調整 */
    }

    /* ----- CTAセクション (新規生徒募集中) ----- */
    .bg-light-green {
        padding: 30px 15px;
        margin: 25px 0;
        border-radius: 0; /* スマホでは角丸をなくすか、小さくする */
    }
    .bg-light-green h2 {
        font-size: 1.5em;
        line-height: 1.4;
    }
    .cta-guidance {
        font-size: 0.8em;
        line-height: 1.6;
        padding: 0 5px; /* 左右のパディングを少しだけ */
        margin-bottom: 15px;
    }
    .cta-contact-icon {
        font-size: 1.8em; /* PC版 xx-large から調整 */
    }
    .cta-contact-link {
        font-size: 1.5em; /* PC版 xx-large から調整 */
        display: inline-block; /* タップしやすく */
        margin-bottom: 10px;
        word-break: break-all; /* URLやメールアドレスがはみ出ないように */
    }
    .bg-light-green p {
        font-size: 0.85em;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    .cta-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .cta-buttons .btn {
        width: 90%; /* ボタン幅を広げる */
        max-width: 300px; /* 最大幅 */
        margin: 8px 0;
        font-size: 0.95em;
        padding: 12px 15px;
    }

    /* ----- 姉妹教室 ----- */
    #sister-school {
        padding: 30px 0;
    }
    #sister-school h2 {
        font-size: 1.6em;
    }
    .sister-school-content p {
        font-size: 0.9em;
        line-height: 1.7;
    }
    .sub-text {
        font-size: 0.8em;
    }
    #sister-school .btn {
        font-size: 0.9em;
        padding: 10px 20px;
    }

    /* ----- お知らせ V2 ----- */
    .news-list-v2 {
        max-width: 100%; /* 幅制限を解除 */
    }
    .news-list-v2 li {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    .news-list-v2 li a {
        padding: 12px 10px; /* タップエリア確保 */
    }
    .news-list-v2 .date {
        font-size: 0.8em; /* PC版 0.9em から調整 */
        margin-bottom: 3px;
    }
    .news-list-v2 .title {
        font-size: 0.95em; /* PC版 1.1em から調整 */
        line-height: 1.45;
    }
    #news .text-center .btn { /* お知らせの「もっと見る」ボタン */
        font-size: 0.9em;
        padding: 10px 25px;
    }

    /* ----- ボタン V2 (汎用) ----- */
    .btn {
        padding: 10px 22px; /* 全体的なパディング調整 */
        font-size: 0.9em; /* 基本ボタンフォントサイズ */
    }

    /* ----- フッター ----- */
    footer {
        padding: 30px 0 20px;
        margin-top: 25px;
    }
    .footer-nav ul {
        flex-direction: column;
        margin-bottom: 20px;
    }
    .footer-nav ul li {
        margin: 8px 0;
    }
    .footer-nav ul li a {
        font-size: 0.9em; /* PC版 0.9em と同じか少し調整 */
        display: inline-block;
        padding: 4px 0;
    }
    .copyright {
        font-size: 0.8em; /* PC版 0.85em から調整 */
    }

    /* ----- ヘッダーの調整 ----- */
    header {
        position: relative; /* トグルボタンやナビゲーションの位置基準のため */
        padding-top: 15px;  /* トグルボタンのスペース確保のため微調整 */
        padding-bottom: 15px;
    }

    .header-row {
        /* flex-direction: column; を削除または上書きしてrowに */
        flex-direction: row;
        justify-content: center; /* ロゴを中央に配置 */
        align-items: center;
        position: relative; /* トグルボタンの位置基準 */
    }

    header h1 {
        margin: 0; /* columnレイアウト時のマージンをリセット */
        font-size: 1.5em;
        /* text-align: center; は .header-row の justify-content: center で対応 */
    }

    /* ▼▼▼ ハンバーガーメニュー用スタイル ▼▼▼ */
    .menu-toggle {
        display: block; /* スマートフォンでのみ表示 */
        background: transparent;
        border: none;
        padding: 10px;
        cursor: pointer;
        position: absolute;
        right: 10px; /* 左端からの位置 */
        top: 50%;     /* ヘッダーの中央（垂直）に配置 */
        transform: translateY(-50%); /* 垂直中央揃えの微調整 */
        z-index: 1001; /* ナビゲーションより手前に表示 */
    }

    .hamburger-icon {
        display: block;
        width: 24px;
        height: 2px;
        background-color: #386641; /* アイコンの色 (ダークグリーン) */
        position: relative;
        transition: background-color 0.2s ease-in-out;
    }

    .hamburger-icon::before,
    .hamburger-icon::after {
        content: '';
        display: block;
        width: 24px;
        height: 2px;
        background-color: #386641; /* アイコンの色 */
        position: absolute;
        left: 0;
        transition: transform 0.2s ease-in-out, top 0.2s ease-in-out, bottom 0.2s ease-in-out;
    }

    .hamburger-icon::before {
        top: -7px; /* 上の線の位置 */
    }

    .hamburger-icon::after {
        bottom: -7px; /* 下の線の位置 */
    }

    /* メニュー展開時のトグルボタンのスタイル (X印に変化) */
    .menu-toggle.active .hamburger-icon {
        background-color: transparent; /* 中央の線を消す */
    }

    .menu-toggle.active .hamburger-icon::before {
        top: 0;
        transform: rotate(45deg);
    }

    .menu-toggle.active .hamburger-icon::after {
        bottom: 0; /* or top: 0; */
        transform: rotate(-45deg);
    }

    /* ナビゲーションの初期状態 (非表示) */
    header nav#main-navigation {
        display: none; /* 初期状態では非表示 */
        position: absolute;
        top: 100%; /* ヘッダーの真下に配置 */
        left: 0;
        width: 100%;
        background-color: #ffffff; /* 背景色 */
        box-shadow: 0 3px 6px rgba(0,0,0,0.1);
        z-index: 1000;
        max-height: calc(100vh - 60px); /* スクロール可能な高さ（ヘッダー高さを仮に60pxとする） */
        overflow-y: auto;
    }

    /* ナビゲーションが表示されたときのスタイル */
    header nav#main-navigation.nav-open {
        display: block;
    }

    /* ナビゲーションリストのスタイル調整 */
    header nav ul {
        flex-direction: column; /* 縦並び */
        margin-top: 0;          /* 上マージンリセット */
        padding: 15px 0;      /* 上下パディング */
        align-items: center; /* 中央揃えのまま */
    }

    header nav ul li {
        margin: 0; /* 個別のマージンはリセットまたは調整 */
        width: 100%;
    }

    header nav ul li a {
        display: block; /* リンクエリアを広げる */
        padding: 12px 20px; /* パディング調整 */
        text-align: center;
        border-bottom: 1px solid #f0f0f0; /* 区切り線 */
        font-size: 1em;
    }
    header nav ul li:last-child a {
        border-bottom: none;
    }
    /* ▲▲▲ ハンバーガーメニュー用スタイル ▲▲▲ */
}