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

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.header {
    position: sticky;
    top: 0;
    background-color: transparent;
    transition: background-color 0.3s ease;
    z-index: 1000;
    padding: 1rem 0;
}

.header.scrolled {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

/* ロゴのスタイル */
.logo {
    font-size: 1.5rem; /* 必要に応じて調整 */
    font-weight: bold;
}

.logo a {
    text-decoration: none; /* リンクの下線を削除 */
    color: inherit; /* 親要素の色を継承 */
    display: block; /* 画像をブロックレベルに */
}

.logo img {
    max-width: 100%; /* コンテナに収まるように */
    height: auto; /* アスペクト比を維持 */
}

.logo a:hover img {
    opacity: 0.8; /* ホバー時に少し透明に */
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 2rem; /* フォントサイズを大きく */
    color: #2c3e50;
    cursor: pointer;
    padding: 10px; /* タップエリアを拡大 */
}

.nav {
    display: flex; /* PC表示ではデフォルトで表示 */
    align-items: center;
    width: auto; /* モバイル用のwidth: 100%を無効化 */
    position: relative; /* モバイル用のabsoluteを無効化 */
    background-color: transparent; /* モバイル用の背景を無効化 */
    box-shadow: none; /* モバイル用の影を無効化 */
    transform: none; /* アニメーション用のtransformを無効化 */
    opacity: 1; /* デフォルトで表示 */
    transition: none; /* PCではアニメーション不要 */
}

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

.nav a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav a:hover {
    color: #3498db;
    background-color: #f4f9ff;
}



/* モバイル用のスタイル */
@media (max-width: 768px) {
    .nav {
        display: none; /* モバイルではデフォルト非表示 */
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        transform: translateY(-10px);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav.active {
        display: block;
        transform: translateY(0);
        opacity: 1;
    }

    .nav ul {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .nav li {
        text-align: center;
    }

    .nav a {
        font-size: 1.2rem;
        padding: 0.8rem 0;
        display: block;
        min-height: 44px; /* タップエリアを確保 */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hamburger {
        display: block;
    }
}

/* 共通のセクション */
.concept, .teachers, .gallery, .contact, .case-study, .contact-info, .parking, .route-guide {
    padding: 40px 15px; /* モバイルでパディングを調整 */
}

.section-title {
    font-size: 1.6rem; /* モバイルで少し小さく */
    margin-bottom: 1.5rem;
}

.decorated-h2 {
    font-size: 1.8rem; /* モバイルで読みやすく */
}

@media (max-width: 768px) {
    .concept-images {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .concept-img {
        width: 100%;
        max-width: 300px; /* 画像サイズを制限 */
        height: auto;
    }
    .teachers-img {
        max-height: 250px; /* モバイルで画像の高さを抑える */
    }
    .gallery-grid {
        grid-template-columns: 1fr; /* 1列でシンプルに */
    }
    .gallery-img {
        width: 100%;
        max-width: 300px;
        height: auto;
    }
    .contact form {
        padding: 0 10px;
    }
    .contact input,
    .contact textarea {
        font-size: 0.95rem; /* 入力欄の文字サイズを調整 */
    }
}

.concept-img, .gallery-img, .teachers-img, .parking-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}
/* ヒーローセクション（トップページ） */
.hero {
    position: relative;
    height: 80vh; /* モバイルでは高さを抑える */
    background-image: url('images/ukulele-top1-1920.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1s ease; /* transformを削除してシンプルに */
}
.hero-content {
    text-align: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.6); /* 背景を少し濃くしてテキストを読みやすく */
    padding: 1.5rem; /* パディングを調整 */
    border-radius: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
    transition-delay: 0.5s;
    max-width: 90%; /* モバイルで幅を制限 */
}

.hero.visible {
    opacity: 1;
}

.hero-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero h2 {
    font-size: 2.5rem; /* モバイルでも見やすいサイズ */
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem; /* フォントサイズを少し大きく */
}

@media (max-width: 768px) {
    .hero {
        height: 50vh; /* モバイルでさらに短く */
        min-height: 400px;
    }
    .hero h2 {
        font-size: 1.8rem; /* モバイルで読みやすく */
    }
    .hero p {
        font-size: 0.95rem;
    }
}

/* レッスンヒーロー（index2.html） */
.lesson-hero {
    background-color: #f4f4f4;
    padding: 4rem 0;
    text-align: center;
    background-image: url('images/ukulele-top1-1920.jpg'); /* 任意サイズ */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative; /* オーバーレイ用 */
}

.lesson-hero .container {
    position: relative;
    z-index: 1; /* テキストを前景に */
}

.lesson-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* 半透明のオーバーレイ */
    z-index: 0;
}

.lesson-title {
    font-size: 2.5rem;
    color: #fff; /* 明るい背景に合わせて白に変更 */
    margin-bottom: 1rem;
}

.lesson-hero p {
    font-size: 1.2rem;
    color: #fff; /* 明るい背景に合わせて白に変更 */
}

/* 料金表ヒーロー（index3.html） */
.fee-hero {
    background-color: #f4f4f4;
    padding: 4rem 0;
    text-align: center;
    background-image: url('images/ukulele-top1-1920.jpg'); /* 任意サイズ */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative; /* オーバーレイ用 */
}

.fee-hero .container {
    position: relative;
    z-index: 1; /* テキストを前景に */
}

.fee-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* 半透明のオーバーレイ */
    z-index: 0;
}

.fee-hero p {
    font-size: 1.2rem;
    color: #fff; /* 明るい背景に合わせて白に変更 */
}

/* 以降の既存スタイルは変更なし */



/* 装飾されたH2 */
.decorated-h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    background-color: #e6f0fa;
    padding: 0.5rem 1rem;
    border-left: 5px solid #3498db;
    margin-bottom: 2rem;
    text-align: center;
}

/* 装飾されたH3 */
.decorated-h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.decorated-h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #3498db;
}

/* セクションタイトル（トップページ） */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

/* サービスセクション（トップページ） */
.services {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-image {
    width: 100%;
    height: 200px;
    background-color: #ccc;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 1rem;
    color: #666;
}

/* 施工実績セクション（トップページ） */
.works {
    padding: 4rem 0;
}

.work-item {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.work-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.work-image {
    width: 100%;
    height: 250px;
    background-color: #ccc;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.work-item p {
    font-size: 1rem;
    color: #666;
}

/* レッスンカード（index2.html） */
/* レッスンコンテンツセクション */
.lesson-content {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

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

.lesson-content iframe {
    width: 100%; /* 親コンテナにフィット */
    height: 450px; /* 固定高さを維持（必要に応じて調整） */
    border: 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.lesson-content img {
    max-width: 100%; /* 親コンテナにフィット */
    height: auto; /* アスペクト比を維持 */
    border-radius: 8px; /* 見た目を整える（オプション） */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* 影を追加（オプション） */
    display: block; /* インライン要素の余白を排除 */
    margin: 0 auto; /* 中央揃え */
}

/* モバイル用調整 */
@media (max-width: 768px) {
    .lesson-content iframe {
        height: 300px; /* モバイルで高さを小さく */
        max-width: 100%; /* 画面幅を超えない */
    }
}

/* 中間サイズ（タブレット）での調整 */
@media (min-width: 769px) and (max-width: 1024px) {
    .lesson-content iframe {
        height: 400px; /* タブレットで中間サイズ */
    }
}
/* モバイル用調整 */
@media (max-width: 768px) {
    .lesson-content img {
        max-height: 300px; /* モバイルで高さを制限 */
    }
}

/* 中間サイズ（タブレット）での調整 */
@media (min-width: 769px) and (max-width: 1024px) {
    .lesson-content img {
        max-height: 400px; /* タブレットで中間サイズ */
    }
}
.lesson-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.lesson-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.lesson-card p {
    font-size: 1rem;
    color: #666;
}

/* カード画像（サービスセクション） */
.card-image {
    width: 100%;
    height: 200px;
    background-color: #fff;
    background-repeat: no-repeat; /* 繰り返しを無効化 */
    background-position: center;
    margin-bottom: 1rem;
    border-radius: 4px;
    transition: transform 0.3s ease; /* スムーズな拡大アニメーション */
}

.card-image:hover {
    transform: scale(1.1); /* マウスホバー時に1.1倍に拡大 */
}

/* 施工実績画像 */
.work-image {
    width: 100%;
    height: 250px;
    background-color: #ccc;
    margin-bottom: 1rem;
    border-radius: 4px;
    transition: transform 0.3s ease; /* スムーズな拡大アニメーション */
}

.work-image:hover {
    transform: scale(1.1); /* マウスホバー時に1.1倍に拡大 */
}

/* コンセプト画像 */
.concept-img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease; /* スムーズな拡大アニメーション */
}

.concept-img:hover {
    transform: scale(1.1); /* マウスホバー時に1.1倍に拡大 */
}

/* 講師紹介画像（必要に応じて） */
.teachers-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    margin-top: 20px;
    transition: transform 0.3s ease; /* スムーズな拡大アニメーション */
}

.teachers-img:hover {
    transform: scale(1.1); /* マウスホバー時に1.1倍に拡大 */
}

/* ヒーローセクション（背景画像には適用しにくいため除外） */
.hero,
.lesson-hero,
.fee-hero {
    /* 既存のスタイルを維持 */
}

* ギャラリーセクション */
.gallery {
    padding: 50px 20px;
    background-color: #f9f9f9;
}

.gallery .decorated-h2 {
    margin-bottom: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 最小幅を少し小さく */
    gap: 20px;
    justify-items: center;
    overflow: visible; /* はみ出しを許可して確認 */
    padding-bottom: 20px;
}

.gallery-item {
    width: 100%; /* アイテムを親コンテナにフィット */
    max-width: 300px; /* 最大幅を制限 */
}

.gallery-img {
    width: 100%; /* 画像をコンテナにフィット */
    height: auto; /* アスペクト比を維持 */
    object-fit: cover; /* 画像がコンテナに収まるように */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block; /* インライン要素の余白を排除 */
}

/* モバイル用調整 */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* 1列レイアウト */
        gap: 15px;
        padding: 0 10px; /* 左右のパディングを維持 */
    }
    .gallery-item {
        max-width: 100%; /* モバイルではフル幅 */
    }
    .gallery-img {
        max-width: 100%; /* 画像がコンテナを超えない */
        height: auto; /* 高さは自動調整 */
        min-height: 200px; /* 必要に応じて調整 */
        transform: none; /* モバイルではホバーエフェクトを無効化 */
    }
    .gallery-img:hover {
        transform: none; /* モバイルでのスケールアップを無効化 */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 影変化も無効 */
    }
}


/* ウクレレショーケースセクション */
.ukulele-showcase {
    padding: 50px 20px;
    background-color: #f9f9f9;
}

.ukulele-showcase .decorated-h2 {
    margin-bottom: 2rem;
    text-align: center;
}

.ukulele-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.ukulele-item {
    width: 100%;
    max-width: 300px;
    text-align: center;
}

.ukulele-image {
    width: 100%;
    height: 200px; /* 固定高さを設定（必要に応じて調整） */
    object-fit: cover; /* 画像がコンテナに収まるように */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: block; /* インライン要素の余白を排除 */
}

.ukulele-item h3 {
    font-size: 1.2rem;
    margin: 10px 0;
    color: #2c3e50;
}

.ukulele-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* モバイル用調整 */
@media (max-width: 768px) {
    .ukulele-grid {
        grid-template-columns: 1fr; /* 1列レイアウト */
        gap: 15px;
        padding: 0 10px;
    }
    .ukulele-image {
        height: auto; /* モバイルでは高さを自動調整 */
        max-height: 250px; /* 最大高さを制限 */
        aspect-ratio: 4 / 3; /* アスペクト比を指定（必要に応じて調整） */
    }
    .ukulele-item h3 {
        font-size: 1rem;
    }
    .ukulele-item p {
        font-size: 0.85rem;
    }
}

/* 中間サイズ（タブレット）での調整 */
@media (min-width: 769px) and (max-width: 1024px) {
    .ukulele-image {
        height: 180px; /* タブレットで少し小さめに */
    }
}

/* 中間サイズ（タブレット）での調整 */
@media (min-width: 769px) and (max-width: 1024px) {
    .gallery-img {
        max-width: 280px; /* タブレットで少し小さめに */
        height: auto;
    }
}

/* アニメーション時の調整 */
.gallery-item.visible .gallery-img {
    width: 100% !important; /* アニメーション中も幅を維持 */
    height: auto !important;
}

/* アコーディオン（index2.html） */
.faq {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.accordion-item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 1rem;
}

.accordion-title {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.2rem;
    color: #2c3e50;
    padding: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-title:hover {
    background-color: #e6f0fa;
}

.accordion-icon {
    font-size: 1.5rem;
}

.accordion-content {
    display: none;
    padding: 1rem;
    font-size: 1rem;
    color: #666;
}

.accordion-content.active {
    display: block;
}

/* 料金表（index3.html） */
.fee-content {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.fee-table-wrapper {
    overflow-x: auto;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fee-table-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.fee-table th,
.fee-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.fee-table th {
    background-color: #e6f0fa;
    color: #2c3e50;
    font-weight: bold;
}

.fee-table tr:hover {
    background-color: #f4f9ff;
}

.fee-note {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

/* コンセプト（index.html） */
.concept {
    padding: 50px 20px;
}

.concept-images {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.concept-img {
    width: 300px;
    height: 200px;
    object-fit: cover;
}

/* コース（index.html） */
.courses {
    padding: 50px 20px;
    background: #fff;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.course-item {
    text-align: center;
    padding: 20px;
}

.course-item h3 {
    margin-bottom: 10px;
}

/* 講師紹介（index.html） */
.teachers {
    padding: 50px 20px;
}

.teachers-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    margin-top: 20px;
}

/* お問い合わせ（index.html） */
.contact {
    padding: 50px 20px;
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact input,
.contact textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact textarea {
    height: 150px;
}

.contact button {
    padding: 10px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact button:hover {
    background: #0056b3;
}


/* 既存のスタイルはそのまま保持 */

了解しました！デスクトップでの文字サイズを維持しつつ、モバイルで再度文字がはみ出している問題を解消し、先ほどの小ささに戻す修正を行います。原因として、デスクトップ向けにフォントサイズを大きくした際に、モバイルでのmax-widthやパディングの設定が十分でなかった可能性があります。モバイルでは元の小さめなフォントサイズ（.case-line: 1rem, .case-title: 1rem, .case-desc: 0.8rem）に戻し、文字がはみ出ないように調整します。

以下は修正後のCSSです。既存のstyles.cssに適用してください。
修正CSS
css
/* ケーススタディセクション */
.case-study {
    padding: 50px 20px;
    background-color: #f9f9f9;
}

.case-study .decorated-h2 {
    margin-bottom: 2rem;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-items: center;
}

.case-item {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.5s ease;
    will-change: transform;
    min-height: 250px;
    height: auto;
}

.case-item:hover {
    transform: scale(1.04);
}

.case-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.case-text > :first-child {
    display: flex;
    align-items: center;
    line-height: 1.5;
}

.case-line {
    font-size: 1.5rem;
    color: #27ae60;
    margin-right: 5px;
    display: inline-flex;
    align-items: center;
}

.case-title {
    font-size: 1.5rem;
    margin: 0;
    font-weight: bold;
    display: inline;
    vertical-align: middle;
}

.case-desc {
    font-size: 1rem;
    line-height: 1.5;
    margin-top: 10px;
    max-width: 90%;
}

/* モバイル用レスポンシブ調整 */
@media (max-width: 768px) {
    .case-grid {
        grid-template-columns: 1fr;
    }
    .case-item {
        min-height: 200px;
        height: auto;
    }
    .case-text {
        padding: 10px; /* モバイルでパディングを減らす */
    }
    .case-line {
        font-size: 1rem; /* モバイルで小さく戻す */
    }
    .case-title {
        font-size: 1rem; /* モバイルで小さく戻す */
    }
    .case-desc {
        font-size: 0.8rem; /* モバイルで小さく戻す */
        max-width: 95%; /* 文字がはみ出ないように厳しく制限 */
    }
}

/* 中間サイズ（タブレット）での調整 */
@media (min-width: 769px) and (max-width: 1024px) {
    .case-line {
        font-size: 1.3rem;
    }
    .case-title {
        font-size: 1.3rem;
    }
    .case-desc {
        font-size: 0.9rem;
    }
}

1
/* 連絡先情報セクション */
.contact-info {
    padding: 50px 20px;
    background-color: #e6f3e6; /* 薄い緑色 */
}

.contact-info .decorated-h2 {
    margin-bottom: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 固定で3列、均等幅 */
    gap: 20px;
    justify-items: center;
}

.info-box {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    overflow: hidden; /* ホバー時の拡大がはみ出ない */
    width: 100%; /* 親グリッドに合わせる */
    min-height: 300px; /* 高さを統一、内容に合わせて調整可能 */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 内容を均等に配置 */
    align-items: center; /* 水平方向に中央揃えを追加 */
}

.info-box:hover {
    transform: scale(1.05); /* 軽い拡大効果 */
}

.info-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    /* 不要な margin: 0 auto; は削除、align-items で対応 */
}

.info-title {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.info-box p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
    flex-grow: 1; /* 内容が伸びるように */
    text-align: center; /* テキストも中央揃え */
}

.info-sub {
    font-size: 1rem;
    color: #27ae60;
    font-weight: bold;
    margin-top: 10px;
    text-align: center; /* テキストも中央揃え */
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr; /* モバイルでは1列 */
    }
    .info-box {
        min-height: auto; /* モバイルでは高さを自動調整 */
    }
}

/* フッター */
.footer {
    background-color: #008000;
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem; /* リンク間の間隔 */
    flex-wrap: wrap; /* 自然に折り返し */
    max-width: 1000px; /* コンテナの最大幅を制限 */
    margin: 0 auto; /* 中央揃え */
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap; /* リンクが2行に分かれるように */
    justify-content: center; /* 中央揃え */
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-links a:hover,
.footer-links a:active {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    border-radius: 5px;
}

.footer .copyright {
    font-size: 0.9rem;
    margin-top: 1.5rem; /* リンクとの余白を増やす */
}

/* デスクトップ用の調整 */
@media (min-width: 769px) {
    .footer-links {
        flex: 1;
        min-width: 200px; /* 最小幅を指定して2行に */
    }
}

/* モバイル用の調整 */
@media (max-width: 768px) {
    .footer {
        padding: 1rem 0;
    }
    .footer-links-container {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem; /* コンテナ間の間隔を小さく */
    }
    .footer-links {
        flex-direction: row; /* 横に並べる */
        width: 100%; /* フル幅使用 */
        justify-content: center; /* 中央揃え */
    }
    .footer-links a {
        font-size: 0.9rem; /* モバイルでフォントを少し小さく */
        padding: 6px 10px; /* タップエリアを調整 */
        min-height: 40px; /* タップエリアを確保 */
    }
    .footer .copyright {
        font-size: 0.85rem;
        margin-top: 1rem;
    }
}

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

    .nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        display: block;
    }

    .nav ul {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav li {
        text-align: center;
    }

    .nav a {
        font-size: 0.9rem;
        padding: 0.5rem 0;
        display: block;
    }

    .header .container {
        flex-direction: row;
        align-items: center;
    }

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

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

    .lesson-title {
        font-size: 2rem;
    }

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

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

    .decorated-h3 {
        font-size: 1.3rem;
    }

    .accordion-title {
        font-size: 1rem;
    }

    .fee-table th,
    .fee-table td {
        font-size: 0.9rem;
        padding: 0.8rem;
    }

    .concept-images {
        flex-direction: column;
        align-items: center;
    }

    .concept-img {
        width: 100%;
        height: auto;
    }
}
/* 駐車位置セクション */
.parking {
    padding: 50px 20px;
    background-color: #f9f9f9;
}

.parking-content {
    display: flex; /* 横並び */
    align-items: flex-start; /* 垂直方向の揃え */
    gap: 20px; /* 画像とテキストの間隔 */
    max-width: 1200px; /* 必要に応じて調整 */
    margin: 0 auto; /* 中央揃え */
}

.parking-image {
    flex: 1; /* 画像がコンテナの1/2を占める */
    max-width: 40%; /* レスポンシブ対応 */
}

.parking-image img {
    width: 100%; /* コンテナにフィット */
    height: auto; /* アスペクト比を維持 */
    border: 2px solid #27ae60; /* 緑の枠線（オプション） */
    border-radius: 5px; /* 角を丸く（オプション） */
}

.parking-text {
    flex: 1; /* テキストがコンテナの1/2を占める */
    max-width: 60%; /* レスポンシブ対応 */
    color: #333;
}

.parking-text h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.parking-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.parking-text strong {
    color: #27ae60; /* 緑色で強調 */
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .parking-content {
        flex-direction: column; /* モバイルでは縦に */
    }
    .parking-image,
    .parking-text {
        max-width: 100%; /* フル幅 */
    }
}

/* ルート案内セクション */
.route-guide {
    padding: 50px 20px;
    background-color: #e8f5e9; /* 軽い緑色背景 */
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #2c3e50;
}

.route-steps {
    display: flex;
    justify-content: space-between; /* 均等に配置 */
    gap: 20px; /* ステップ間の間隔 */
    max-width: 1200px; /* 必要に応じて調整 */
    margin: 0 auto; /* 中央揃え */
}

.step {
    flex: 1; /* 各ステップが均等に */
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease; /* ホバー効果 */
}

.step:hover {
    transform: translateY(-5px); /* 軽い浮き上がり */
}

.step-icon {
    width: 50px;
    height: 50px;
    background-color: #9b59b6; /* 紫色（画像に合わせた） */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 10px; /* 中央に配置 */
}

.step-text {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #27ae60; /* 緑色で強調 */
}

.step-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .route-steps {
        flex-direction: column; /* モバイルでは縦に */
        gap: 30px; /* 間隔を広げる */
    }
    .step {
        max-width: 100%; /* フル幅 */
    }
}