/*
 * Theme Name: Cubic2Biz Single School Styles
 * Description: Styles specific to the enhanced school detail page.
 */

/* =========================================
   1. Hero Section
   ========================================= */
.school-hero-section {
    position: relative;
    height: 500px; /* 適切な高さに調整 */
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden; /* アニメーションの飛び出し防止 */
}

.school-hero-section.new-hero-layout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* オーバーレイ */
    z-index: 1;
}

.hero-content-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
}

.hero-message-box {
    background-color: rgba(255, 255, 255, 0.1); /* 背景を少し透過 */
    padding: 20px 30px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.school-brand-name-top {
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: bold;
}

.school-name {
    font-size: 2.8em;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.school-catchphrase {
    font-size: 1.5em;
    line-height: 1.5;
    overflow: hidden; /* アニメーションの飛び出し防止 */
    margin-bottom: 30px; /* ボタンがなくなるので調整 */
}

/* 黄色の文字のアニメーション */
.animated-highlight {
    color: #ffd700; /* 強調色 */
    display: inline-block; /* アニメーション適用のため */
    animation: pulse 2s infinite alternate; /* アニメーション名、時間、繰り返し、方向 */
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.7); /* 弱い影で光沢感を出す */
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.03); opacity: 0.9; } /* 少し大きくなり、少し透過 */
    100% { transform: scale(1); opacity: 1; }
}


/* =========================================
   2. Hero Bottom Menu Section (教室メニュー)
   ========================================= */
.hero-bottom-menu-section {
    background-color: #f5f5f5;
    padding: 15px 0; /* PC版の上下パディング */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: -5px; /* ヒーローセクションとの間隔を詰める */
    position: relative; /* 必要に応じてz-indexを機能させるため */
    z-index: 10; /* 他のコンテンツの上に表示 */
}

.hero-bottom-menu-wrapper { /* 新しく追加したラッパー */
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px; /* 左右の余白 */
    overflow-x: auto; /* スマホで横スクロール可能に */
    -webkit-overflow-scrolling: touch; /* iOSでの滑らかなスクロール */
    scrollbar-width: none; /* Firefoxでスクロールバーを非表示 */
}
.hero-bottom-menu-wrapper::-webkit-scrollbar { /* Chrome/Safariでスクロールバーを非表示 */
    display: none;
}


.hero-bottom-menu {
    display: flex; /* 横並び */
    justify-content: center; /* 中央寄せ (PC) */
    flex-wrap: nowrap; /* 折り返さない */
    gap: 30px; /* メニュー間の余白を広げる (PC) */
    padding-bottom: 5px; /* スクロールバーのスペース確保用 */
    min-width: max-content; /* メニューがコンテナより小さい場合の幅 */
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 0.9em;
    transition: color 0.3s ease;
    white-space: nowrap; /* テキストの折り返しを防ぐ */
}

.menu-item svg {
    width: 28px;
    height: 28px;
    fill: #007bff;
    margin-bottom: 3px;
    transition: fill 0.3s ease;
}

.menu-item:hover {
    color: #007bff;
}

.menu-item:hover svg {
    fill: #0056b3;
}


/* =========================================
   3. School Info Section (教室基本情報：住所・電話番号・校舎外観)
   ========================================= */
.school-info-section {
    padding: 40px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.school-info-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title { /* 親要素のsectionを追加して詳細度を上げる */
    font-size: 2em;
    color: #333;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 8px;
    border-bottom: none; /* もし style.css で border-bottom が設定されているなら無効化 */
}

.section-title svg {
    fill: #007bff;
    vertical-align: middle;
    margin-right: 8px;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #007bff;
    margin: 8px auto 0;
}

/* 基本情報グリッドのレイアウト調整 */
.info-grid.basic-info-grid {
    display: grid; /* グリッド表示を有効にする */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 自動調整の列幅 */
    gap: 20px; /* カード間の余白 */
    align-items: stretch; /* 各カードの高さを揃える */
}

/* 個々の info-card スタイル */
.info-card {
    background-color: #fff; /* カード背景を白に */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: left;
    height: auto;
    display: flex;
    flex-direction: column;
}

.info-card h3 {
    font-size: 1.3em;
    color: #007bff;
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.info-card p {
    font-size: 1em;
    color: #555;
    line-height: 1.5;
    margin-bottom: 8px;
}
.info-card p:last-child {
    margin-bottom: 0;
}

/* 校舎外観写真カード */
.info-card.basic-outer-view-card img.school-outer-view-photo {
    width: 100%; /* 親要素に合わせる */
    height: auto;
    max-height: 250px; /* 高さを制限 */
    object-fit: cover; /* 比率を維持してトリミング */
    border-radius: 4px;
    display: block;
    margin-top: 15px;
    flex-grow: 1; /* 親の高さに合わせて伸びる */
}

/* 教室ギャラリーカード (基本情報内で使用する場合) */
.info-card.classroom-gallery-card {
    /* grid-column: span 2; */ /* 例: 2列分広げる */
}
.info-card.classroom-gallery-card .swiper {
    width: 100%;
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 15px;
    flex-grow: 1;
}
.info-card.classroom-gallery-card .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.info-card.classroom-gallery-card .classroom-caption {
    font-size: 0.85em;
    color: #777;
    margin-top: 8px;
    text-align: center;
}


/* =========================================
   4. Google Map Section (アクセス：Googleマップ)
   ========================================= */
.google-map-section {
    padding: 40px 0;
    background-color: #fff;
    text-align: center;
}

.google-map-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* マップレスポンシブスタイル（共通） */
.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    border: none;
}


/* =========================================
   5. School Route Section (道順)
   ========================================= */
.school-route-section {
    padding: 40px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.school-route-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.route-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.route-text,
.route-image,
.access-methods-list {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.route-text h3,
.access-methods-list h3 {
    font-size: 1.3em;
    color: #007bff;
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}
.route-text p {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
}

.route-image img.route-access-photo {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.access-methods-list .access-methods {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.access-methods-list .access-methods li {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    color: #555;
    font-size: 0.95em;
}

.access-methods-list .access-methods li:last-child {
    margin-bottom: 0;
}

.access-methods-list .access-icon {
    margin-right: 8px;
    color: #007bff;
    font-size: 1.1em;
}


/* =========================================
   6. School News Section (教室ニュース＆コラム)
   ========================================= */
.school-news-section {
    padding: 40px 0;
    background-color: #fff;
    text-align: center;
}

.school-news-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ニュースリストスタイル（シンプルなリスト形式） */
.news-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.news-list li {
    border-bottom: 1px solid #eee;
    padding: 12px 20px;
    text-align: left;
}

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

.news-list li a {
    text-decoration: none;
    color: #007bff;
    font-size: 1.1em;
    display: block;
    transition: color 0.3s ease;
}

.news-list li a:hover {
    color: #0056b3;
}

.no-news {
    font-size: 1em;
    color: #777;
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 8px;
}


/* =========================================
   7. Results Section (成績アップした生徒の紹介)
   ========================================= */
.results-section {
    padding: 40px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.results-section .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.results-content {
    margin-top: 20px;
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: left;
    color: #555;
    line-height: 1.6;
}

.view-all-results .button {
    margin-top: 30px;
    background-color: #007bff;
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}
.view-all-results .button:hover {
    background-color: #0056b3;
}


/* =========================================
   8. Principal Message Section (教室長挨拶)
   ========================================= */
.principal-message {
    padding: 40px 0;
    background-color: #fff;
    text-align: center;
}

.principal-message .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.message-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.principal-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 4px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

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

.principal-name {
    font-size: 1.6em;
    color: #007bff;
    margin-bottom: 12px;
}

.message-text {
    font-size: 1em;
    color: #555;
    line-height: 1.7;
    text-align: left;
}


/* =========================================
   9. School Features Section (校の特徴)
   ========================================= */
.school-features-section {
    padding: 40px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.school-features-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.features-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: left;
}

.feature-item h3 {
    font-size: 1.2em;
    color: #007bff;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 0.95em;
    color: #555;
    line-height: 1.5;
}

.features-sub-gallery {
    grid-column: 1 / -1; /* 全幅を使う */
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-top: 20px;
}
.features-sub-gallery h3 {
    font-size: 1.3em;
    color: #007bff;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    text-align: left;
}
.features-sub-gallery .swiper {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.features-sub-gallery .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.features-sub-gallery .classroom-caption {
    font-size: 0.85em;
    color: #777;
    margin-top: 8px;
    text-align: center;
}


/* =========================================
   10. Students Schools Section (生徒が通学している学校)
   ========================================= */
.students-schools-section {
    padding: 40px 0;
    background-color: #fff;
    text-align: center;
}

.students-schools-section .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.schools-content {
    margin-top: 20px;
    text-align: left;
    color: #555;
    line-height: 1.6;
    background-color: #f8f8f8;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.school-list-item h4 {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 5px;
}


/* =========================================
   11. Fixed CTA Buttons (ページ下部共通CTA - 追尾・固定)
   ========================================= */
/* PC向け：右サイド追尾 */
.fixed-cta-buttons {
    display: flex;
    flex-direction: column; /* 縦に並べる */
    position: fixed;
    z-index: 1000;
    right: 10px; /* 右端に配置 */
    bottom: 50%; /* 垂直中央の基準点 */
    transform: translateY(50%); /* 垂直中央揃えの補正 */
    background-color: rgba(255, 255, 255, 0.95);
    padding: 10px 5px; /* ボタン全体のパディング */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    gap: 8px; /* ボタン間の余白 */
}

.fixed-cta-button {
    display: flex;
    flex-direction: column; /* アイコンとテキストを縦に並べる */
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    padding: 5px; /* ボタン内のパディングを小さく */
    border-radius: 5px;
    font-size: 0.8em; /* フォントサイズを小さく */
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 65px; /* ボタンのPC版幅 */
    height: 65px; /* ボタンのPC版高さ */
    box-sizing: border-box;
    color: #fff; /* テキスト色 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* 個々のボタンの影 */
}

.fixed-cta-button svg {
    width: 24px; /* アイコンサイズを調整 */
    height: 24px;
    margin-bottom: 3px; /* アイコンとテキストの間隔 */
    fill: currentColor;
}

/* メールボタン */
.fixed-cta-button.fixed-mail {
    background-color: #dc143c; /* サイトの基調色である赤 */
}
.fixed-cta-button.fixed-mail:hover {
    background-color: #c01230;
    transform: translateY(-2px);
}

/* LINEボタン */
.fixed-cta-button.fixed-line {
    background-color: #00c300; /* LINEの緑 */
}
.fixed-cta-button.fixed-line:hover {
    background-color: #00a800;
    transform: translateY(-2px);
}

/* 電話ボタン */
.fixed-cta-button.fixed-phone {
    background-color: #28a745; /* 緑系 */
}
.fixed-cta-button.fixed-phone:hover {
    background-color: #218838;
    transform: translateY(-2px);
}


/* =========================================
   12. Responsive Adjustments (モバイル対応)
   ========================================= */
@media (max-width: 768px) {
    .school-name {
        font-size: 1.8em;
    }
    .school-catchphrase {
        font-size: 1.1em;
    }
    /* ヒーローセクションのボタンは削除済み */
    /* .cta-button-group は single-school.php から削除されました */
    /* .cta-button.primary-hero-new, .cta-button.secondary-hero-new も削除されました */

    /* hero-bottom-menu のモバイル対応 */
    .hero-bottom-menu-section {
        padding: 10px 0; /* モバイルでの上下パディングをさらに小さく */
    }
    .hero-bottom-menu-wrapper {
        padding: 0 10px; /* 左右の余白を調整 */
    }
    .hero-bottom-menu {
        gap: 15px; /* モバイルでの項目間隔を調整 */
        justify-content: flex-start; /* 左寄せ (スクロール対応) */
    }
    .menu-item {
        font-size: 0.8em; /* モバイルでのフォントサイズ */
        min-width: 70px; /* アイテムの最小幅を確保 */
    }
    .menu-item svg {
        width: 24px; /* モバイルでのアイコンサイズ */
        height: 24px;
    }


    .info-grid.basic-info-grid,
    .route-content,
    .features-content,
    .news-grid {
        grid-template-columns: 1fr;
    }
    .message-wrapper {
        padding: 20px;
    }

    .sp-only {
        display: block;
    }

    /* セクションpaddingをモバイルでさらに調整 */
    .school-hero-section,
    .hero-bottom-menu-section,
    .school-info-section,
    .google-map-section,
    .school-route-section,
    .school-news-section,
    .results-section,
    .principal-message,
    .school-features-section,
    .students-schools-section {
        padding: 30px 0; /* モバイルでは全体のpaddingを統一して小さく */
    }

    .section-title-cta {
        font-size: 1.8em;
    }
    .cta-description {
        font-size: 1em;
    }
    /* ページ下部のCTAは fixed-cta-buttons に統一されたため、下記は不要 */
    /* .cta-button.primary-bottom, .cta-button.secondary-bottom は削除 */


    /* 固定CTAボタン (モバイル向けフッター固定) */
    .fixed-cta-buttons {
        width: 100%;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        border-radius: 0;
        padding: 10px 0;
        gap: 0; /* ボタン間の横余白をなくす */
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        border-top: none; /* 上部の線は不要 */
    }
    .fixed-cta-button {
        flex: 1; /* ボタンが均等に幅を占める */
        width: auto;
        min-width: unset;
        height: 60px; /* 高さを調整 */
        border-radius: 0;
        font-size: 0.9em;
        padding: 5px;
    }
    .fixed-cta-button svg {
        width: 24px;
        height: 24px;
    }

    /* PC版で追尾するが、モバイルで非表示にしたい要素があれば追加 */
    /* 例: .pc-only-tracking-element { display: none; } */
}

@media (min-width: 769px) {
    .sp-only {
        display: none;
    }

    /* 固定CTAボタン (PC向け右サイド追尾) */
    .fixed-cta-buttons {
        width: auto;
        flex-direction: column;
        bottom: 50%;
        right: 10px;
        left: auto;
        transform: translateY(50%);
        padding: 10px 5px;
        border-radius: 8px;
        background-color: rgba(255, 255, 255, 0.95);
        border-top: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    .fixed-cta-button {
        width: 65px; /* ボタンのPC版幅 */
        height: 65px; /* ボタンのPC版高さ */
        font-size: 0.8em;
        margin-bottom: 8px;
    }
    .fixed-cta-button:last-child {
        margin-bottom: 0;
    }
    .fixed-cta-button svg {
        width: 28px;
        height: 28px;
    }
}

/* =========================================
   13. General Utility Classes
   ========================================= */
.container {
    padding-left: 20px;
    padding-right: 20px;
}

.achievement-slider-section { padding: 60px 0; }
.achievement-swiper .achievement-item { text-align:center; }
.achievement-thumb img{ width:100%; height:auto; border-radius:8px; }
.achievement-title { font-weight:600; margin:10px 0 4px; }
.achievement-date { font-size:0.85rem; color:#666; }
.swiper-button-next, .swiper-button-prev { color:#0056d6; }
.section-title {
  text-align: center;
}
.results-section {
  padding: 60px 0;
}

.result-slide {
  text-align: center;
  padding: 20px;
}

.result-slide img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.result-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 1em;
  color: #d20035;
}

.result-date {
  font-size: 0.9rem;
  color: #555;
}
/* 成績UP事例スライダー画像サイズ調整 */
.results-swiper .result-image img {
  max-width: 100%;
  height: auto;
  max-height: 300px; /* 必要に応じて調整 */
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.results-swiper {
  padding: 20px 0;
  max-width: 800px;
  margin: 0 auto;
}
.school-manager-section {
  padding: 50px 0;
}
.manager-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}
.manager-photo {
  flex: 1 1 250px;
  max-width: 300px;
}
.manager-photo img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}
.manager-text {
  flex: 2 1 500px;
}
.manager-name {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 0.3em;
}
.manager-title {
  font-weight: 600;
  color: #555;
  margin-bottom: 1em;
}
.manager-greeting {
  line-height: 1.7;
  white-space: pre-line;
}
@media (max-width: 768px) {
  .manager-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .manager-text {
    max-width: 100%;
  }
}
.school-manager-section {
  padding: 60px 0;
}
.manager-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}
.manager-photo {
  flex: 0 0 320px;
  max-width: 320px;
}
.manager-photo img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}
.manager-text {
  flex: 1 1 500px;
  font-size: 16px;
  line-height: 1.8;
}
.manager-name {
  font-size: 1.8rem;
  color: #e60033;
  font-weight: bold;
  margin-bottom: 1em;
  text-align: left;
}
.manager-greeting {
  white-space: normal;
}
@media (max-width: 768px) {
  .manager-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .manager-text {
    text-align: left;
  }
}
.info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}
.info-card {
  flex: 1 1 48%;
}
.news-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
  justify-content: center;
}

.news-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
  width: 300px;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.news-thumb {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #eee;
}

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

.news-meta {
  padding: 16px;
}

.news-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.news-date {
  font-size: 0.85rem;
  color: #666;
}
.school-gallery-lightbox {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.school-gallery-thumb {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}
.school-gallery-thumb:hover {
  transform: scale(1.05);
}
.school-gallery-lightbox {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.school-gallery-thumb {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.school-gallery-thumb:hover {
  transform: scale(1.05);
}
/* ========== 教室長セクション ========== */
.manager-content{
  display:flex;
  flex-wrap:wrap;        /* スマホで縦並び */
  gap:24px;
  align-items:flex-start;
}

.manager-photo{
  flex:0 0 200px;
  max-width:200px;
}
.manager-photo img.manager-image{
  width:100%;
  height:auto;
  border-radius:8px;
}

.manager-text{
  flex:1;
  min-width:0;
}

@media (max-width:768px){
  .manager-content{
    flex-direction:column;
    align-items:center;
    text-align:center;
  }
  .manager-text{
    text-align:left;
    padding:0 10px;
  }
}

/* ========== 校舎フォトギャラリー ========== */
.school-gallery-wrapper{margin-top:2em;}

.school-gallery-lightbox{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:flex-start;
}

.school-gallery-thumb{
  width:120px;
  height:auto;
  border-radius:6px;
  box-shadow:0 2px 6px rgba(0,0,0,.1);
  transition:transform .2s;
}
.school-gallery-thumb:hover{transform:scale(1.05);}

/* レスポンシブ */
@media (max-width:768px){
  .school-gallery-thumb{width:30%;}
}
@media (max-width:480px){
  .school-gallery-thumb{width:46%;}
}
/* ========== 教室ニュースカード レイアウト ========== */
.news-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

.news-card {
  width: calc(33.333% - 13.33px); /* 3列 */
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.news-card:hover {
  transform: scale(1.02);
}

.news-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.news-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-thumb.no-image {
  background-color: #f2f2f2;
  height: 160px;
}

.news-meta {
  padding: 10px 12px;
}

.news-title {
  font-size: 1rem;
  font-weight: bold;
  margin: 0 0 6px;
}

.news-date {
  font-size: 0.85rem;
  color: #777;
  margin: 0;
}

/* ===== レスポンシブ対応 ===== */
@media (max-width: 1024px) {
  .news-card {
    width: calc(50% - 10px); /* 2列 */
  }
}

@media (max-width: 640px) {
  .news-card {
    width: 100%; /* 1列 */
  }
}
/* ========== 修正: 固定CTAボタン 色＆表示条件 ========== */

/* デフォルトは非表示（PC） */
.fixed-cta-buttons {
  display: none;
}

/* モバイルだけ表示 */
@media (max-width: 768px) {
  .fixed-cta-buttons {
    display: flex;
    position: fixed;
    z-index: 9999;
    width: 100%;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
    gap: 0;
  }

  .fixed-cta-button {
    flex: 1;
    height: 60px;
    line-height: 60px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-right: 1px solid #e0e0e0;
  }

  .fixed-cta-button:last-child {
    border-right: none;
  }

  .fixed-mail {
    background-color: #dc143c;
  }

  .fixed-line {
    background-color: #00c300;
  }

  .fixed-phone {
    background-color: #28a745;
  }

  .fixed-mail:hover {
    background-color: #a01030;
  }

  .fixed-line:hover {
    background-color: #009000;
  }

  .fixed-phone:hover {
    background-color: #1f7d36;
  }

  /* フッターが隠れないように下余白追加 */
  body::after {
    content: '';
    display: block;
    height: 100px;
  }
}
/* ========================
   CTAボタン：モバイル表示（横並び）
   ======================== */
@media (max-width: 768px) {
  .fixed-cta-buttons {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 9999;
    background-color: #fff;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
  }

  .fixed-cta-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none;
    color: #fff;
  }

  .fixed-cta-button.fixed-mail {
    background-color: #d20035;
  }

  .fixed-cta-button.fixed-line {
    background-color: #00c300;
  }

  .fixed-cta-button.fixed-phone {
    background-color: #007bff;
  }
}

/* ========================
   CTAボタン：PCでは非表示
   ======================== */
@media (min-width: 769px) {
  .fixed-cta-buttons {
    display: none !important;
  }
}
.school-gallery-lightbox {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  justify-items: center;
  margin-top: 1em;
}

.school-gallery-thumb {
  width: 100%;
  max-width: 140px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.school-gallery-thumb:hover {
  transform: scale(1.05);
}
