@charset "UTF-8";

/*
 Theme Name:   GeneratePress Child
 Description:  GeneratePress Child Theme for Taka-Spo
 Template:     generatepress
 Version:      1.0.0
*/

/* ==========================================================================
   【共通CSS】高松市スポーツ協会 - 全ページ共通デザイン
   ========================================================================== */

/* --- 基本設定 --- */
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background: #f4f7f9;
    overflow-x: hidden;
}

/* ナビゲーション内の丸ポチ除去 */
nav,
nav ul,
nav li,
.sp-nav,
.sp-nav li,
.sp-nav .sub-menu,
.sp-nav .sub-menu li,
.g-nav-pc,
.g-nav-pc li,
.g-nav-pc .sub-menu,
.g-nav-pc .sub-menu li {
    list-style: none !important;
    list-style-type: none !important;
}

/* --- 検索フィルター枠 --- */
.search-filter-box {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 100%;
    box-sizing: border-box;
}

.filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: flex-end;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 150px;
}

.filter-item label {
    font-size: 12px;
    font-weight: bold;
    color: #555;
}

.filter-item select {
    width: 100%;
    padding: 0 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
    height: 48px;
    outline: none;
    box-sizing: border-box;
}

.filter-btn {
    background-color: #005bac;
    color: #fff;
    border: none;
    padding: 0 35px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
    height: 48px;
    white-space: nowrap;
}

.filter-btn:hover {
    background-color: #004482;
}

/* --- 共通フッター --- */
footer {
    background: #333;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 14px;
}

/* --- レスポンシブ調整 --- */
@media (max-width: 900px) {

    .g-nav-pc,
    .btn-contact {
        display: none !important;
    }

    .btn-reserve {
        margin-right: 0 !important;
        font-size: 12px;
        padding: 8px 10px;
    }

    .filter-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .filter-item,
    .filter-btn {
        width: 100% !important;
    }
}

/* ==========================================================================
   【施設詳細ページ共通デザイン】アコーディオン・スペック表・料金表・ギャラリー
   ========================================================================== */

/* --- アコーディオン枠・ボタン --- */
.accordion-wrapper {
    margin-top: 30px;
    contain: content;
}

.accordion-trigger {
    width: 100%;
    text-align: left;
    background: #005bac;
    color: #fff;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    transition: none !important;
    -webkit-tap-highlight-color: transparent !important;
    user-select: none !important;
    touch-action: manipulation !important;    
}

.accordion-trigger:hover {
    background: #004482;
}

.accordion-trigger:focus,
.accordion-trigger:active,
.my-acc-trigger:focus,
.my-acc-trigger:active {
    outline: none !important;
    -webkit-user-select: none !important;
    -webkit-touch-callout: none !important;
}

.accordion-content,
.my-acc-content {
    display: none;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    padding: 20px;
    border-radius: 0 0 5px 5px;
    overflow: hidden !important;
}

/* --- スペックカード・テーブル --- */
.room-spec-card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.room-spec-table {
    width: 100%;
    border-collapse: collapse;
}

.room-spec-table th {
    width: 140px;
    text-align: left;
    vertical-align: top;
    padding: 8px 10px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.room-spec-table td {
    padding: 8px 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.sub-room-title {
    font-size: 16px;
    font-weight: bold;
    color: #005bac;
    border-left: 4px solid #005bac;
    padding-left: 10px;
    margin: 20px 0 10px 0;
}

.sub-fee-title {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

/* --- 画像サイズ制限 & 表示効果 --- */
.accordion-content img,
.room-main-content img,
.equipment-content-td img,
.room-gallery-wrapper img,
.price-table-wrapper img,
.entry-content img,
figure img,
p img,
div[class*="-content"] img {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
    display: block !important;
    margin: 15px auto !important;
    cursor: pointer !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
    transition: transform 0.2s ease, opacity 0.2s ease !important;
}

.accordion-content img:hover,
.room-main-content img:hover,
.equipment-content-td img:hover,
.room-gallery-wrapper img:hover,
div[class*="-content"] img:hover {
    opacity: 0.88 !important;
    transform: scale(1.01) !important;
}

/* 親要素の横幅オーバー防止 */
.accordion-content figure,
.accordion-content p,
.room-main-content figure,
.room-main-content p {
    max-width: 100% !important;
    overflow: hidden !important;
}

/* --- 料金表デザイン --- */
.price-table-wrapper table,
.accordion-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 15px 0 !important;
    background-color: #ffffff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #dce4ec !important;
}

.price-table-wrapper th,
.price-table-wrapper td,
.accordion-content table th,
.accordion-content table td {
    padding: 12px 14px !important;
    text-align: center !important;
    font-size: 14px !important;
    border: 1px solid #e2e8f0 !important;
    height: auto !important;
    line-height: 1.5 !important;
}

.price-table-wrapper tr:first-child th,
.accordion-content table tr:first-child th,
.price-table-wrapper tr:first-child td,
.accordion-content table tr:first-child td {
    background-color: #005bac !important;
    color: #ffffff !important;
    font-weight: bold !important;
    border-color: #004b8d !important;
}

.price-table-wrapper tr td:first-child,
.accordion-content table tr td:first-child {
    background-color: #f0f5fa !important;
    font-weight: bold !important;
    color: #2c3e50 !important;
}

.price-table-wrapper tr:nth-child(even) td,
.accordion-content table tr:nth-child(even) td {
    background-color: #f8fafc !important;
}

.price-table-wrapper tr:hover td,
.accordion-content table tr:hover td {
    background-color: #e6f0fa !important;
}

/* --- タブボタンのデザイン --- */
.auto-tab-buttons {
    display: flex !important;
    gap: 8px !important;
    border-bottom: 3px solid #005bac !important;
    margin: 20px 0 15px 0 !important;
    padding-bottom: 0 !important;
}

.auto-tab-btn {
    padding: 10px 22px !important;
    background: #eef4f9 !important;
    border: 1px solid #d0dfea !important;
    border-bottom: none !important;
    border-radius: 6px 6px 0 0 !important;
    cursor: pointer !important;
    font-weight: bold !important;
    font-size: 14px !important;
    color: #005bac !important;
    transition: all 0.2s ease !important;
}

.auto-tab-btn:hover {
    background: #dceaf7 !important;
}

.auto-tab-btn.active {
    background: #005bac !important;
    color: #ffffff !important;
    border-color: #005bac !important;
}

/* --- 画像拡大モーダル --- */
.custom-img-modal {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ===================================================
   スマホ表示最終調整（左右幅拡大＆パンくず周り極小化）
=================================================== */
@media screen and (max-width: 767px) {

    /* 1. サイト全体の左右外枠余白を詰める */
    body,
    #page,
    .site-content,
    .container,
    .inside-article {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .site-main,
    article,
    .entry-content {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    /* 2. パンくずリストおよび余白リセット */
    .breadcrumb,
    .breadcrumbs,
    #breadcrumbs,
    nav.breadcrumb,
    .grid-container.breadcrumb-container,
    .site-header+.breadcrumb-container,
    .entry-header {
        margin-top: 0px !important;
        margin-bottom: 1px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        padding-left: 8px !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
    }

    header,
    .site-header {
        margin-bottom: 0 !important;
    }

    .room-spec-card,
    .accordion-content,
    .search-filter-box {
        padding: 10px !important;
    }

    /* 3. ヘッダー自体の左右調整 */
    header,
    .site-header {
        padding-left: 4px !important;
        padding-right: 4px !important;
        gap: 4px !important;
    }

    /* 4. ロゴサイズ */
    .logo,
    header a:first-child img,
    header .logo img {
        max-width: 240px !important;
        height: auto !important;
    }

    /* 5. 施設予約ボタン */
    .btn-reserve {
        padding: 5px 6px !important;
        font-size: 11px !important;
        letter-spacing: -0.05em !important;
        white-space: nowrap !important;
        margin-right: 0 !important;
        flex-shrink: 0 !important;
    }

    /* 6. ハンバーガーボタン位置調整 */
    .sp-header-controls {
        position: relative !important;
        right: 0 !important;
        flex-shrink: 0 !important;
        margin-left: 2px !important;
        margin-right: 4px !important;
    }
}

/* --- Swiperレイアウト・表示補正 --- */
header,
.site-header,
.header,
#header,
main,
.site-main,
#main {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.swiper,
.swiper-container,
.main-swiper {
    width: 100% !important;
    height: 450px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

.swiper-slide {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.swiper-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.swiper-button-next,
.swiper-button-prev,
.swiper-pagination {
    z-index: 100 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

@media (max-width: 768px) {
    .swiper,
    .swiper-container,
    .main-swiper {
        height: 250px !important;
    }
}

.custom-hero-swiper .swiper-slide {
    position: relative !important;
    overflow: hidden !important;
}

.custom-hero-swiper .hero-slide-link {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 20 !important;
    display: block !important;
    cursor: pointer !important;
}

.custom-hero-swiper .slide-overlay-content {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    z-index: 10 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 30px !important;
    box-sizing: border-box !important;
    pointer-events: none !important;
}

.custom-hero-swiper .slide-overlay-title {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    word-break: break-word !important;
    white-space: pre-wrap !important;
    display: block !important;
    text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.7);
    box-sizing: border-box !important;
}

@media screen and (max-width: 768px) {
    .custom-hero-swiper .slide-overlay-content {
        padding: 15px 20px !important;
    }
    .custom-hero-swiper .slide-overlay-title {
        font-size: clamp(16px, 5vw, 22px) !important;
        line-height: 1.35 !important;
    }
}
/* ===================================================
   教室・イベントページ（archive-lesson.php）スタイル
=================================================== */

.lesson-page {
    background-color: #f8f9fa;
    padding: 40px 16px;
}

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

/* ---------------------------------------------------
   1. 絞り込み検索フォーム
--------------------------------------------------- */
.lesson-search-box {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-form-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.search-item {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-item label {
    font-weight: bold;
    font-size: 0.9rem;
    color: #333333;
}

.search-item select {
    width: 100%;
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    background-color: #ffffff;
    font-size: 0.95rem;
}

.search-btn-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-search {
    background-color: #0056b3;
    color: #ffffff;
    border: none;
    padding: 11px 24px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-search:hover {
    background-color: #003d82;
}

.btn-reset {
    display: inline-block;
    padding: 10px 16px;
    color: #666666;
    background-color: #eeeeee;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.btn-reset:hover {
    background-color: #dddddd;
}

/* ---------------------------------------------------
   2. セクション＆レイアウト（グリッド）
--------------------------------------------------- */
.lesson-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: #111111;
    border-left: 5px solid #0056b3;
    padding-left: 12px;
    margin-bottom: 24px;
}

.lesson-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.no-data {
    background: #ffffff;
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    color: #666666;
}

/* ==========================================
   高松市スポーツ協会 教室一覧（完全修正・一本化版）
   ========================================== */

/* 全体コンテナ */
.tsa-lesson-container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    color: #333333 !important;
    overflow: hidden !important;
}

/* パンくずリスト・タイトル */
.tsa-breadcrumb {
    font-size: 13px !important;
    color: #666666 !important;
    margin-bottom: 16px !important;
}
.tsa-breadcrumb a {
    color: #0056b3 !important;
    text-decoration: none !important;
}
.tsa-page-title {
    font-size: 28px !important;
    font-weight: bold !important;
    color: #0d2b45 !important;
    padding-left: 12px !important;
    border-left: 5px solid #0056b3 !important;
    margin: 0 0 24px 0 !important;
    line-height: 1.2 !important;
}

/* ==========================================
   検索エリア（共通ベース）
========================================== */
.tsa-search-card {
    background: #ffffff !important;
    border-radius: 8px !important;
    padding: 20px 24px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 24px !important;
    border: 1px solid #e2e8f0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.tsa-search-field label {
    font-size: 13px !important;
    font-weight: bold !important;
    color: #4a5568 !important;
    margin-bottom: 6px !important;
}

.tsa-search-field select {
    width: 100% !important;
    height: 40px !important;
    padding: 0 10px !important;
    border: 1px solid #cbd5e0 !important;
    border-radius: 6px !important;
    background-color: #fff !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
}

.tsa-search-buttons .btn-submit {
    height: 40px !important;
    padding: 0 24px !important;
    background-color: #0056b3 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: bold !important;
    font-size: 14px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

.tsa-search-buttons .btn-reset {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 40px !important;
    padding: 0 16px !important;
    background-color: #edf2f7 !important;
    color: #4a5568 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-size: 13px !important;
    white-space: nowrap !important;
}

/* PC・タブレットではアコーディオンボタンを非表示 */
.lesson-search-toggle {
    display: none !important;
}


/* ==========================================
   1. PC表示（992px以上）：元通り1行に収める
========================================== */
@media screen and (min-width: 992px) {
    .tsa-search-grid {
        display: flex !important;
        align-items: flex-end !important;
        gap: 16px !important;
    }

    .tsa-search-field {
        flex: 1 !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .tsa-search-buttons {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        flex-shrink: 0 !important;
    }
}


/* ==========================================
   2. タブレット表示（768px〜991px）：上段3条件、下段に全幅ボタン（2段）
========================================== */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .tsa-search-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: flex-end !important;
        gap: 16px !important;
    }

    /* 3つの条件枠を上段に均等横並び */
    .tsa-search-field {
        flex: 1 1 calc(33.333% - 11px) !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* 下段にボタンを全幅配置 */
    .tsa-search-buttons {
        width: 100% !important;
        display: flex !important;
        gap: 10px !important;
        margin-top: 4px !important;
    }

    .tsa-search-buttons .btn-submit {
        flex: 1 !important;
        text-align: center !important;
    }
}


/* ==========================================
   3. スマホ表示（767px以下）：アコーディオン＆余白詰めの縦並び
========================================== */
@media screen and (max-width: 767px) {
    .tsa-search-card {
        padding: 12px !important;
    }

    /* 開閉トグルボタン */
    .lesson-search-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        padding: 12px 16px !important;
        background-color: #f0f3f5 !important;
        border: 1px solid #dcdfe3 !important;
        border-radius: 8px !important;
        color: #0055a5 !important;
        font-size: 15px !important;
        font-weight: bold !important;
        cursor: pointer !important;
        box-sizing: border-box !important;
    }

    .lesson-search-toggle:hover {
        background-color: #e4e8eb !important;
    }

    /* 初期非表示 */
    .lesson-search-body {
        display: none !important;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid #eef0f2;
    }

    .lesson-search-body.is-open {
        display: block !important;
    }

    /* スマホ用のシンプルなブロックレイアウト（広い上下余白を防ぐ） */
    .tsa-search-grid {
        display: block !important;
    }

    .tsa-search-field {
        width: 100% !important;
        margin-bottom: 12px !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .tsa-search-buttons {
        width: 100% !important;
        display: flex !important;
        gap: 10px !important;
        margin-top: 16px !important;
    }

    .tsa-search-buttons .btn-submit {
        flex: 1 !important;
        text-align: center !important;
    }
}

/* 該当件数 */
.tsa-count-bar {
    font-size: 15px !important;
    color: #4a5568 !important;
    margin-bottom: 20px !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid #e2e8f0 !important;
}
.tsa-count-bar .count-num {
    font-size: 20px !important;
    font-weight: bold !important;
    color: #0056b3 !important;
    margin: 0 4px !important;
}

/* 2列グリッド */
.tsa-card-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* カード本体（重なり・巨大化防止） */
.tsa-card {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid #cbd5e0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    padding: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    z-index: 1 !important;
    transform: none !important; /* 拡大表示の誤動作防止 */
}

/* 受付終了 */
.tsa-card.tsa-is-closed {
    background-color: #fafafa !important;
}
.tsa-closed-stamp {
    position: absolute !important;
    top: 22px !important;
    right: -35px !important;
    width: 140px !important;
    transform: rotate(45deg) !important;
    background-color: #c53030 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: bold !important;
    text-align: center !important;
    padding: 6px 0 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
    letter-spacing: 1px !important;
    z-index: 2 !important;
}

/* ヘッダー・タイトル */
.tsa-card-header {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 12px !important;
    padding-right: 60px !important;
}
.tsa-facility-badge {
    display: inline-block !important;
    background-color: #0056b3 !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: bold !important;
    padding: 4px 12px !important;
    border-radius: 4px !important;
}
.tsa-card-title {
    font-size: 18px !important;
    font-weight: bold !important;
    color: #1a202c !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.4 !important;
}
.tsa-card-desc {
    font-size: 13.5px !important;
    color: #4a5568 !important;
    line-height: 1.6 !important;
    margin-bottom: 16px !important;
}

/* テーブル（折り返し＆枠内固定） */
.tsa-card-table {
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    margin-top: auto !important;
    font-size: 13.5px !important;
}
.tsa-card-table tr {
    border-bottom: 1px solid #e2e8f0 !important;
}
.tsa-card-table tr:last-child {
    border-bottom: none !important;
}
.tsa-card-table th {
    width: 28% !important;
    padding: 10px 12px !important;
    color: #4a5568 !important;
    font-weight: bold !important;
    text-align: left !important;
    vertical-align: middle !important;
    background-color: #f8fafc !important;
    border-right: 1px solid #e2e8f0 !important;
}
.tsa-card-table td {
    width: 72% !important;
    padding: 10px 14px !important;
    color: #2d3748 !important;
    vertical-align: middle !important;
    line-height: 1.5 !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
}
.price-text {
    color: #e53e3e !important;
    font-weight: bold !important;
}

/* 申込エリア＆QRコード制限 */
.tsa-apply-box {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
}
.tsa-apply-qr {
    flex-shrink: 0 !important;
    width: 100px !important;
    height: 100px !important;
}
.tsa-apply-qr img,
.tsa-card-table img {
    width: 100px !important;
    height: 100px !important;
    max-width: 100px !important;
    max-height: 100px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 !important;
    box-shadow: none !important;
}
.tsa-apply-text {
    font-size: 13px !important;
    color: #4a5568 !important;
    line-height: 1.5 !important;
    flex: 1 !important;
}

/* レスポンシブ */
@media screen and (max-width: 1024px) {
    .tsa-card-grid {
        grid-template-columns: 1fr !important;
    }
}
@media screen and (max-width: 600px) {
    .tsa-search-grid {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .tsa-apply-box {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}
/* ==========================================
   過去の開催実績 セクション表示の復元
   ========================================== */
.tsa-past-section {
    margin-top: 60px !important;
    padding-top: 30px !important;
    border-top: 2px dashed #cbd5e0 !important;
    width: 100% !important;
    clear: both !important;
}

.tsa-past-header {
    background: #edf2f7 !important;
    padding: 14px 20px !important;
    border-left: 5px solid #64748b !important;
    border-radius: 4px !important;
    margin-bottom: 24px !important;
}

.tsa-past-title {
    font-size: 20px !important;
    font-weight: bold !important;
    color: #2d3748 !important;
    margin: 0 !important;
}
/* ==========================================
   地区別 施設バッジカラー設定
   ========================================== */
/* 中央地区（青） */
.tsa-facility-badge.area-chuo {
    background-color: #0056b3 !important;
    color: #ffffff !important;
}

/* 西部地区（オレンジ） */
.tsa-facility-badge.area-seibu {
    background-color: #ed8936 !important;
    color: #ffffff !important;
}

/* 東部地区（緑） */
.tsa-facility-badge.area-tobu {
    background-color: #38a169 !important;
    color: #ffffff !important;
}

/* 南部地区（ピンク） */
.tsa-facility-badge.area-nanbu {
    background-color: #ed64a6 !important;
    color: #ffffff !important;
}

/* ② 申込ボタンのデザイン */
.tsa-card-btn-wrapper {
    margin-top: 16px !important;
    width: 100% !important;
}

.tsa-btn-apply {
    display: block !important;
    width: 100% !important;
    padding: 12px 16px !important;
    background-color: #ff6b00 !important; /* 目立つオレンジ色 */
    color: #ffffff !important;
    font-weight: bold !important;
    font-size: 15px !important;
    text-align: center !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    transition: background-color 0.2s ease !important;
}

.tsa-btn-apply:hover {
    background-color: #e05e00 !important;
    color: #ffffff !important;
}

/* カードが並ぶ親コンテナ（外枠）を上揃えに強制 */
.tsa-card-grid,
.tsa-lesson-list,
.tsa-search-results {
    align-items: flex-start !important;
}

/* カード自体の内部レイアウトを上揃えに固定 */
.tsa-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    height: 100% !important;
}

/* タイトルや概要文の下余白を整える */
.tsa-card-title,
.tsa-card-desc {
    margin-bottom: 12px !important;
}

/* 表を上寄せに固定（下のボタンがある場合はボタンだけ最下部へ配置） */
.tsa-card-table {
    margin-top: 0 !important;
    margin-bottom: auto !important;
}

/* 申込ボタンエリア */
.tsa-card-btn-wrapper {
    margin-top: 16px !important;
    width: 100% !important;
}

.tsa-btn-apply {
    display: block !important;
    width: 100% !important;
    padding: 12px 16px !important;
    background-color: #ff6b00 !important;
    color: #ffffff !important;
    font-weight: bold !important;
    font-size: 15px !important;
    text-align: center !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    transition: background-color 0.2s ease !important;
}

.tsa-btn-apply:hover {
    background-color: #e05e00 !important;
    color: #ffffff !important;
}

/* リッチエディター自動中黒（・）リスト共通スタイル */
.custom-formatted-notes-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important; /* 行（段落）同士の余白間隔 */
}

.custom-formatted-note-item {
    position: relative !important;
    padding-left: 1.2em !important; /* 「・」のインデント確保 */
    line-height: 1.6 !important;
    color: #333333 !important;
}

/* 先頭に自動で「・」を付与 */
.custom-formatted-note-item::before {
    content: "・" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    color: inherit !important;
}

/* ==================================================
   教室・イベント一覧：開催施設エリア
================================================== */
.lesson-facility-info {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}

.lesson-facility-name {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 4px;
}

.lesson-facility-name a {
    color: #005bac;
    text-decoration: none;
}

.lesson-facility-name a:hover {
    text-decoration: underline;
}

.lesson-facility-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    font-size: 13px;
    color: #475569;
}

.lesson-facility-sub .facility-sub-tel a {
    color: #475569;
    text-decoration: none;
}

/* マップボタン（コンパクト仕様） */
.lesson-map-btn {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    color: #005bac;
    font-size: 11.5px;
    font-weight: bold;
    text-decoration: none;
}

.lesson-map-btn:hover {
    background-color: #005bac;
    color: #ffffff;
}

/* ==================================================
   教室・イベント一覧：開催施設セル専用スタイル
================================================== */
.lesson-facility-cell img {
    display: none !important; /* 万が一画像が含まれても強制非表示 */
}

.lesson-fac-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
}

.lesson-fac-title a {
    color: #005bac !important;
    text-decoration: none;
}

.lesson-fac-title a:hover {
    text-decoration: underline;
}

.lesson-fac-address {
    font-size: 12.5px;
    color: #475569;
    margin-bottom: 6px;
    line-height: 1.4;
}

.lesson-fac-sub-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12.5px;
    color: #475569;
}

.lesson-fac-tel a {
    color: #475569 !important;
    text-decoration: none;
}

.lesson-fac-map-btn {
    display: inline-flex !important;
    align-items: center !important;
    padding: 2px 8px !important;
    background-color: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    color: #005bac !important;
    font-size: 11px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
}

.lesson-fac-map-btn:hover {
    background-color: #005bac !important;
    color: #ffffff !important;
}
/* ==========================================
   教室・イベント一覧下 バナーエリア（複数対応・PC2列/スマホ1列）
   ========================================== */
.lp-banner-container {
    max-width: 1100px;
    margin: 50px auto 30px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* --- 装飾付きヘッダー --- */
.lp-banner-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.lp-banner-sub-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #1a5b83; /* テーマカラー */
    margin-bottom: 6px;
    text-transform: uppercase;
}

.lp-banner-main-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    display: inline-block;
    position: relative;
    padding: 0 20px;
}

/* タイトル左右のグラデーションライン */
.lp-banner-main-title::before,
.lp-banner-main-title::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, transparent, #1a5b83);
}

.lp-banner-main-title::before {
    right: 100%;
}

.lp-banner-main-title::after {
    left: 100%;
    background: linear-gradient(to left, transparent, #1a5b83);
}

/* --- グリッドレイアウト：PCは横2列 --- */
.lp-banner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2列固定 */
    gap: 20px; /* バナー同士の間隔 */
}

/* バナー1個のみの場合は中央寄せ幅広表示 */
.lp-banner-grid:has(.lp-banner-item:only-child) {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto;
}

.lp-banner-link {
    display: block;
    width: 100%;
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lp-banner-link:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.lp-banner-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* --- スマホ表示（768px以下） --- */
@media (max-width: 768px) {
    .lp-banner-container {
        margin: 35px auto 20px auto;
        padding: 0 10px;
    }

    .lp-banner-main-title {
        font-size: 1.2rem;
    }

    .lp-banner-main-title::before,
    .lp-banner-main-title::after {
        width: 30px; /* スマホでは線を短く */
    }

    .lp-banner-grid {
        grid-template-columns: 1fr !important; /* スマホは横1列（縦並び） */
        gap: 15px;
    }
}
/* ===================================================
   施設予約のご案内ページ専用スタイル
=================================================== */
.content-wrapper {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
}

.breadcrumb {
    font-size: 12px;
    margin-bottom: 20px;
    color: #666;
}

.breadcrumb a {
    color: #005bac;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

h1.page-title {
    text-align: center;
    color: #005bac;
    margin: 20px 0 10px 0;
    font-size: 26px;
}

.lead-text {
    text-align: center;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* 案内メッセージ */
.tab-nav-notice {
    text-align: center;
    font-size: 13px;
    color: #005bac;
    font-weight: bold;
    margin-bottom: 12px;
}

/* --- タイプ選択ボタン --- */
.type-select-container {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.type-btn {
    flex: 1;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.type-btn:hover {
    border-color: #005bac;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.type-btn.active {
    border-color: #005bac;
    background: #f0f7ff;
    position: relative;
}

.type-btn.active::after {
    content: "▼";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    color: #005bac;
    font-size: 16px;
}

.pc-large-badge {
    display: inline-block;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 6px 16px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.badge-blue-large { background-color: #005bac; }
.badge-green-large { background-color: #2ecc71; }

.pc-subtitle {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
}

.type-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* --- コンテンツエリアの表示切り替え --- */
.section-content {
    display: none;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

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

.section-title {
    font-size: 20px;
    color: #005bac;
    border-left: 5px solid #005bac;
    padding-left: 12px;
    margin: 0 0 25px 0;
}

/* --- 時系列ステップ --- */
.step-block {
    background: #f9fbfd;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.step-num {
    font-size: 13px;
    font-weight: bold;
    color: #005bac;
    background: #e0e9f4;
    padding: 3px 10px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 10px;
}

.step-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 12px 0;
    color: #333;
}

/* 注意書き共通 */
.alert-box {
    background: #fff5f5;
    border-left: 4px solid #e74c3c;
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 4px 4px 0;
}

.alert-box p {
    margin: 0;
    font-size: 13px;
    color: #c0392b;
    line-height: 1.5;
    font-weight: bold;
}

/* --- 専用使用：3つの期間カード --- */
.period-grid {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.period-card {
    flex: 1;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    box-sizing: border-box;
}

.period-title {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 2px solid #ddd;
    margin: 0 0 10px 0;
}

.title-red { color: #e74c3c; border-color: #e74c3c !important; }
.title-orange { color: #e67e22; border-color: #e67e22 !important; }
.title-gray { color: #7f8c8d; border-color: #7f8c8d !important; }

.period-list {
    font-size: 12px;
    line-height: 1.6;
    padding-left: 15px;
    margin: 0;
    color: #444;
}

.period-list li { margin-bottom: 6px; }

.info-list {
    padding-left: 20px;
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: #444;
}

.info-list li { margin-bottom: 8px; }

/* --- リンクボタン＆補足テキストレイアウト --- */
.step-block .link-btn {
    display: inline-block !important;
    background: #005bac !important;
    color: #fff !important;
    text-decoration: none !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    font-size: 13px !important;
    font-weight: bold !important;
    margin-top: 10px !important;
    transition: 0.2s !important;
    vertical-align: middle;
}

.step-block .link-btn:hover { 
    background: #004482 !important; 
    color: #fff !important;
    text-decoration: none !important;
}

.step-block .ext-link-btn { 
    background: #2c3e50 !important; 
}

.step-block .ext-link-btn:hover { 
    background: #1a252f !important; 
    color: #fff !important;
}

/* STEP3下部大型ボタン専用クラス */
.step3-large-btn {
    background: #005bac !important;
    padding: 12px 30px !important;
    font-size: 15px !important;
}

.step3-large-btn:hover {
    background: #004482 !important;
    color: #fff !important;
}

.step-block .ext-note {
    display: inline-block !important;
    font-size: 12px !important;
    color: #666 !important;
    margin-left: 10px !important;
    vertical-align: middle !important;
    line-height: 1.5 !important;
}

.step3-bottom-btn-wrapper {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
}

.step3-bottom-btn-wrapper .ext-note {
    display: block !important;
    margin-left: 0 !important;
    margin-top: 8px !important;
}


/* ==========================================
   アコーディオン (FAQ親エリア)
========================================== */
.faq-container { 
    margin-top: 50px; 
}

.faq-title {
    font-size: 20px;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.accordion-item {
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 5px;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-header {
    background: #f9f9f9;
    padding: 15px 20px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.accordion-header::before {
    content: "Q. ";
    color: #005bac;
    font-size: 16px;
    font-weight: bold;
    margin-right: 8px;
}

.accordion-header::after {
    content: "＋";
    font-size: 16px;
    color: #005bac;
    transition: 0.3s;
    margin-left: auto;
}

/* 親アコーディオンが開いた時の「ー」切り替え */
.accordion-item.open .accordion-header::after {
    content: "ー";
}

/* 親アコーディオン（初期状態は非表示） */
.accordion-content {
    display: none;
    padding: 20px;
    font-size: 13px;
    line-height: 1.6;
    border-top: 1px solid #ddd;
    background: #fff;
    color: #555;
}


/* ==========================================
   FAQコンテンツ内の装飾ボックスパーツ
========================================== */
.faq-lead-text {
    font-weight: bold;
    margin-bottom: 20px;
}

.faq-sub-title {
    font-size: 16px;
    font-weight: bold;
    margin: 20px 0 10px;
}
.faq-sub-title.title-orange {
    color: #d96d00;
    border-bottom: 2px solid #d96d00;
    padding-bottom: 5px;
}

/* 共通ボックス */
.faq-box {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 15px;
}

/* オレンジ枠 */
.faq-box.box-orange {
    background-color: #fff9f3;
    border: 1px solid #fcdcb8;
}
.faq-box.box-orange h5 {
    color: #333;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 8px;
}

/* 水色枠 */
.faq-box.box-blue {
    background-color: #f2f8ff;
    border: 1px solid #cce3ff;
}
.faq-box.box-blue h5 {
    color: #0066cc;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 8px;
}

/* ピンク枠 */
.faq-box.box-pink {
    background-color: #fff5f7; /* 薄いピンクの背景 */
    border: 1px solid #e2e8f0;
}
/* タイトル（h5）の文字色をピンク・赤系統の濃い色に合わせる */
.faq-box.box-pink h5 {
    color: #b91c1c !important; /* 落ち着いた濃い赤・ピンク系 */
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 8px;
}

/* 点線ボックス */
.faq-inner-dashed {
    border: 1px dashed #0066cc;
    background-color: #fff;
    padding: 10px 15px;
    margin-top: 10px;
    border-radius: 4px;
}

/* グレー枠 */
.faq-box.box-gray {
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
}

/* 白いカード（本人・代理人） */
.faq-card-white {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 10px 15px;
    margin-top: 8px;
    border-radius: 4px;
}

/* ユーティリティ */
.text-red {
    color: #d9534f;
    font-weight: bold;
}
.margin-none {
    margin: 0 0 10px 0;
}


/* ==========================================
   内アコーディオン (キャンセル受付可能施設一覧)
========================================== */
.faq-inner-acc {
    margin-top: 20px;
    border: 1px solid #cce0f0;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
}

.faq-inner-header {
    background: #eef5fc;
    color: #005bac;
    padding: 12px 16px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    border-bottom: 1px solid #cce0f0;
}

.faq-inner-header::after {
    content: "＋";
    font-size: 18px;
    color: #005bac;
    font-weight: bold;
    margin-left: auto;
}

/* 子アコーディオンが開いた時の「ー」切り替え */
.faq-inner-acc.open .faq-inner-header::after {
    content: "ー";
}

/* 子アコーディオン（初期状態は非表示） */
.faq-inner-content {
    display: none;
    padding: 15px;
    background: #ffffff !important;
}

.sub-note {
    font-size: 12px;
    color: #666666;
    margin-bottom: 12px;
    line-height: 1.5;
}
/* ==========================================
   ② 施設予約のご案内ページ：追加調整用スタイル
   ========================================== */

/* 大見出しを他ページと完全に統一（左寄せ・黒文字・左青線） */
h1.page-title {
    text-align: left !important;
    color: #333333 !important;
    font-size: 26px !important;
    font-weight: bold !important;
    border-left: 5px solid #005bac !important;
    padding-left: 15px !important;
    margin: 0 0 30px 0 !important;
}


/* ==========================================
   施設一覧テーブルスタイル
========================================== */
.facility-table-wrapper {
    width: 100%;
}

.facility-faq-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-top: 5px;
    font-size: 13px;
    table-layout: fixed;
}

/* 背景色と文字色の固定（1件目データへの青背景被りを強力リセット） */
.facility-faq-table tbody tr td,
.facility-faq-table tbody tr td * {
    background-color: #ffffff !important;
    color: #333333 !important;
}

.facility-faq-table th,
.facility-faq-table td {
    border: 1px solid #dcdcdc !important;
    padding: 10px 8px;
    vertical-align: middle;
}

/* ヘッダーのみ紺色固定 */
.facility-faq-table thead th {
    background-color: #005bac !important;
    color: #ffffff !important;
    text-align: center;
    font-weight: bold;
    white-space: nowrap;
    border: 1px solid #005bac !important;
}

/* 列幅設定 (PC時) */
.facility-faq-table .col-name    { width: 34% !important; text-align: left; font-weight: bold; }
.facility-faq-table .col-time    { width: 18% !important; text-align: center; white-space: nowrap; }
.facility-faq-table .col-holiday { width: 32% !important; text-align: left; }
.facility-faq-table .col-tel     { width: 16% !important; text-align: center; white-space: nowrap; }

/* 施設リンク */
.facility-link {
    color: #005bac !important;
    text-decoration: underline !important;
}
.facility-link:hover {
    color: #d96d00 !important;
}


/* ==========================================
   レスポンシブ（スマホ・768px以下）
========================================== */
.dynamic-toggle-container .sp-only-flex { 
    display: none; 
}

@media (max-width: 768px) {
    .period-grid { 
        flex-direction: column; 
    }

    .dynamic-toggle-container {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        margin-bottom: 20px !important;
    }

    .dynamic-toggle-container .type-btn {
        padding: 12px 8px !important;
        text-align: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .dynamic-toggle-container .type-btn.active::after {
        display: none;
    }

    .dynamic-toggle-container .sp-only-flex {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        margin: 0 !important;
    }

    .sp-small-badge {
        display: inline-block;
        color: #fff;
        font-size: 11px;
        font-weight: bold;
        padding: 2px 8px;
        border-radius: 3px;
        white-space: nowrap;
    }

    .sp-text-phrase { 
        font-size: 11px !important; 
        font-weight: bold; 
        line-height: 1.3;
        text-align: center;
    }

    .dynamic-toggle-container .pc-large-badge,
    .dynamic-toggle-container .pc-subtitle,
    .dynamic-toggle-container .type-desc {
        display: none !important;
    }

    .section-content { 
        padding: 18px; 
    }
    
    .step-block .ext-note {
        display: block !important;
        margin-left: 0 !important;
        margin-top: 5px !important;
    }

    /* スマホ時の施設表レイアウト調整 */
    .facility-faq-table {
        table-layout: auto;
    }
    .facility-faq-table .col-name    { width: 35%; font-size: 12px; }
    .facility-faq-table .col-time    { width: 22%; font-size: 11px; }
    .facility-faq-table .col-holiday { width: 23%; font-size: 11px; }
    .facility-faq-table .col-tel     { width: 20%; font-size: 11px; text-align: center; }
    
    .facility-faq-table th,
    .facility-faq-table td {
        padding: 8px 4px;
    }
}
/* ==========================================
   details/summary タグ用デザイン調整
========================================== */
/* ブラウザ標準の矢印（三角アイコン）を非表示にする */
.faq-details-item summary::-webkit-details-marker,
.faq-inner-details summary::-webkit-details-marker {
    display: none;
}

/* 親アコーディオン */
.faq-details-item {
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 5px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-details-header {
    background: #f9f9f9;
    padding: 15px 20px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    list-style: none; /* 標準矢印を削除 */
}

.faq-details-header::before {
    content: "Q. ";
    color: #005bac;
    font-size: 16px;
    font-weight: bold;
    margin-right: 8px;
}

.faq-details-header::after {
    content: "＋";
    font-size: 16px;
    color: #005bac;
    margin-left: auto;
}

/* 開いたときのアイコン切り替え */
.faq-details-item[open] > .faq-details-header::after {
    content: "ー";
}

.faq-details-content {
    padding: 20px;
    font-size: 13px;
    line-height: 1.6;
    border-top: 1px solid #ddd;
    background: #fff;
    color: #555;
}

/* 子アコーディオン */
.faq-inner-details {
    margin-top: 20px;
    border: 1px solid #cce0f0;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
}

.faq-inner-details-header {
    background: #eef5fc;
    color: #005bac;
    padding: 12px 16px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    list-style: none; /* 標準矢印を削除 */
    border-bottom: 1px solid #cce0f0;
}

.faq-inner-details-header::after {
    content: "＋";
    font-size: 18px;
    color: #005bac;
    font-weight: bold;
    margin-left: auto;
}

/* 子が開いたときのアイコン切り替え */
.faq-inner-details[open] > .faq-inner-details-header::after {
    content: "ー";
}

.faq-inner-details-content {
    padding: 15px;
    background: #ffffff !important;
}
/* ==========================================
   スマホ時の施設一覧「カード型」最適化（修正版）
========================================== */
@media (max-width: 768px) {
    /* 親・子アコーディオンの余白を最適化 */
    .faq-details-content {
        padding: 12px 10px !important;
    }
    .faq-inner-details-content {
        padding: 10px 8px !important;
    }

    /* 表のヘッダー（紺色の見出し行）を非表示にする */
    .facility-faq-table thead {
        display: none !important;
    }

    /* テーブルの各要素をブロック化して1施設ごとにカード化 */
    .facility-faq-table,
    .facility-faq-table tbody,
    .facility-faq-table tr {
        display: block !important;
        width: 100% !important;
    }

    /* 1施設ごとのカード枠デザイン */
    .facility-faq-table tr {
        margin-bottom: 12px !important;
        border: 1px solid #cce0f0 !important;
        border-radius: 6px !important;
        padding: 10px 12px !important;
        background: #fff !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
    }

    /* スマホ時はPC用の幅指定（34%など）を完全にリセットして100%にする */
    .facility-faq-table td,
    .facility-faq-table .col-name,
    .facility-faq-table .col-time,
    .facility-faq-table .col-holiday,
    .facility-faq-table .col-tel {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        border: none !important;
        padding: 4px 0 !important;
        text-align: left !important;
        font-size: 13px !important;
        line-height: 1.5 !important;
        white-space: normal !important;
    }

    /* 施設名（カードの見出し） */
    .facility-faq-table td.col-name {
        font-size: 15px !important;
        border-bottom: 1px dashed #cce0f0 !important;
        padding-bottom: 6px !important;
        margin-bottom: 6px !important;
    }

    /* 各項目の前にラベルをCSSで自動付与 */
    .facility-faq-table td.col-time::before {
        content: "【営業時間】 ";
        font-weight: bold;
        color: #005bac;
    }
    .facility-faq-table td.col-holiday::before {
        content: "【休館日】 ";
        font-weight: bold;
        color: #005bac;
    }
    .facility-faq-table td.col-tel::before {
        content: "【TEL】 ";
        font-weight: bold;
        color: #005bac;
    }

    .facility-faq-table td.col-tel {
        color: #333 !important;
        font-size: 14px !important;
    }
}
/* ==================================================
   施設別 貸切利用ルール ページスタイル（メリハリ・トーン調整版）
================================================== */
.rules-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 0 40px;
  font-family: inherit;
  color: #333;
}

/* ヘッダー */
.rules-header {
  border-bottom: 3px solid #0c3774;
  padding-bottom: 15px;
  margin-bottom: 30px;
}
.rules-title {
  font-size: 26px;
  color: #0c3774;
  margin-bottom: 10px;
  font-weight: bold;
}
.rules-lead {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}

/* セクション共通 */
.rules-section {
  margin-bottom: 40px;
}

/* 各セクション見出し（専用・制限・個人使用で色分け） */
.section-title {
  font-size: 20px;
  color: #0c3774;
  border-left: 5px solid #0c3774;
  padding-left: 12px;
  margin-bottom: 20px;
  font-weight: bold;
}
.section-title-personal {
  font-size: 20px;
  color: #2e7d32; /* 個人使用の緑 */
  border-left: 5px solid #2e7d32;
  padding-left: 12px;
  margin-bottom: 20px;
  font-weight: bold;
}

/* ① 施設利用方法カード（白背景＆メリハリ調整） */
.usage-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.usage-card {
  background: #ffffff; /* 背景を白にしてすっきり */
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}
.usage-card.dedicated-card {
  border-color: #0c3774; /* 専用使用は青枠 */
  background: #f8fafc;
}
.usage-card.personal-card {
  border-color: #2e7d32; /* 個人使用は緑枠 */
  background: #f4fbf7;
}

.usage-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 10px;
}
.usage-badge.dedicated { background-color: #0c3774; }
.usage-badge.personal { background-color: #2e7d32; }

.usage-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #222;
}
.usage-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

/* ② タブボタン */
.rules-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 10px;
}
.tab-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tab-btn:hover {
  background: #e2e8f0;
}
.tab-btn.active {
  background: #0c3774;
  color: #ffffff;
  border-color: #0c3774;
}

/* タブコンテンツ表示制御 */
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/* 施設ルールカード（余白を圧縮して縦長感を解消＋立体感） */
.facility-rule-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  margin-bottom: 14px !important; /* カード間隔を少し凝縮 */
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04) !important;
}
.facility-head {
  background: #f8fafc !important;
  padding: 10px 16px !important; /* ヘッダー上下余白を圧縮 */
  border-bottom: 1px solid #e2e8f0 !important;
  display: flex;
  align-items: center;
  gap: 12px;
}
.facility-cat {
  background: #718096;
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
}
.facility-name {
  font-size: 16px;
  font-weight: bold;
  margin: 0;
  color: #1a202c;
}
.facility-body {
  padding: 12px 16px !important; /* ボディ余白を圧縮 */
}
.rule-row {
  display: flex;
  flex-wrap: wrap;
  padding: 6px 0 !important; /* 行の上下余白を詰めて縦幅短縮 */
  border-bottom: 1px dashed #edf2f7;
}
.rule-row:last-child {
  border-bottom: none;
}
.rule-label {
  width: 180px;
  font-weight: bold;
  font-size: 13.5px;
  color: #4a5568;
}
.rule-value {
  flex: 1;
  min-width: 200px;
  font-size: 14px;
  color: #2d3748;
}

/* ③ 制限事項・重要注意書き（オレンジ・イエローで強調） */
.limit-box {
  background: #f8fafc;
  border-radius: 8px;
  padding: 18px;
  margin-top: 25px;
  border: 1px solid #e2e8f0;
}
.limit-title {
  font-size: 15px;
  font-weight: bold;
  color: #d97706; /* オレンジ */
  margin-bottom: 12px;
}
.limit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}
.limit-card {
  background: #fff;
  padding: 12px 15px;
  border-radius: 6px;
  border-left: 4px solid #d97706;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.limit-tag {
  font-size: 11px;
  font-weight: bold;
  color: #d97706;
  display: block;
  margin-bottom: 4px;
}
.limit-desc {
  font-size: 13px;
  margin: 0;
  font-weight: bold;
}

.important-notice {
  background: #fffbe3;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 16px;
  margin-top: 15px;
}
.notice-title {
  color: #b45309;
  font-size: 14.5px;
  font-weight: bold;
  margin-bottom: 8px;
}
.notice-list {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  color: #78350f;
  line-height: 1.6;
}

/* ④ 個人使用カード（緑のテーマカラーで区分け） */
.personal-facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
}
.personal-card {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-top: 4px solid #2e7d32; /* 緑のアクセントライン */
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
.personal-facility-name {
  font-size: 15px;
  font-weight: bold;
  color: #2e7d32;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.personal-room-item {
  margin-bottom: 8px;
}
.room-name {
  display: block;
  font-weight: bold;
  font-size: 13px;
  color: #334155;
}
.room-sports {
  font-size: 13px;
  color: #64748b;
}

/* レスポンシブ調整（スマホ対応） */
@media (max-width: 600px) {
  .rule-label {
    width: 100%;
    margin-bottom: 4px;
  }
  .tab-btn {
    flex: 1 1 auto;
    text-align: center;
    padding: 8px 12px;
    font-size: 13px;
  }
}
/* --- スムーススクロール有効化 --- */
html {
  scroll-behavior: smooth;
}

/* --- 個人使用タイトルの色（上部緑アイコンと同色） --- */
.section-title-personal {
  font-size: 20px;
  color: #2e7d32 !important; /* 上部個人使用と同色の緑 */
  border-left: 5px solid #2e7d32 !important;
  padding-left: 12px;
  margin-bottom: 20px;
  font-weight: bold;
}

.facility-cat.personal-badge {
  background-color: #2e7d32 !important;
}

/* --- クリック可能な利用方法カード --- */
a.usage-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
a.usage-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.click-guide {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: bold;
  color: #0c3774;
}
.click-guide.personal {
  color: #2e7d32;
}

/* アンカー移動時の見出し位置ズレ防止（固定ヘッダー対策余白） */
#sec-dedicated, #sec-personal {
  scroll-margin-top: 30px;
}
/* ==================================================
   レイアウト修正・バッジ位置完全固定・上部カード枠線補正
================================================== */

/* --- 1. 上部枠線の太さ均一化（aタグの競合防止） --- */
a.usage-card,
.usage-card {
  border: 1px solid #e2e8f0 !important;
  box-sizing: border-box !important;
}

a.usage-card.dedicated-card {
  border: 2px solid #0c3774 !important;
}

a.usage-card.personal-card {
  border: 2px solid #2e7d32 !important;
}

/* --- 2. 施設カードヘッダー内の不要な余白・タグの影響をリセット --- */
.facility-head {
  display: flex !important;
  align-items: flex-start !important; /* 常に上揃え */
  gap: 10px !important;
  padding: 12px 16px !important;
}

/* 余分な空行タグ（br）を無視する処理 */
.facility-head br {
  display: none !important;
}

/* 施設名（見出し）のマージンと行高さを固定 */
.facility-name {
  font-size: 16px !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #1a202c !important;
}

/* --- 3. バッジ（アイコン）を施設名1行目の文字高さに完全にピタッと合わせる --- */
.facility-cat {
  flex-shrink: 0 !important; /* 縮小・型崩れ防止 */
  white-space: nowrap !important; /* 改行防止 */
  display: inline-block !important;
  padding: 3px 8px !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  border-radius: 4px !important;
  /* 1行目の高さ（16px×1.4＝約22px）の中央に揃える微調整 */
  margin-top: 1px !important;
  margin-bottom: 0 !important;
}

/* --- 4. 固定ヘッダー対策（アンカー位置の余白） --- */
#sec-dedicated, #sec-personal {
  scroll-margin-top: 110px !important;
}
/* 「重要注意事項」ボックス下の余白および内部リストの余白を最適化 */
.important-notice {
  margin-bottom: 10px !important; /* ボックス自体の下余白を縮小 */
}

.important-notice .notice-list {
  margin-bottom: 0 !important; /* リスト最下部の余白をゼロに */
  padding-bottom: 0 !important;
}

.important-notice p:last-child,
.important-notice ul:last-child {
  margin-bottom: 0 !important;
}
/* ルールページの大見出しを他ページと完全に統一 */
h1.page-title.rules-title {
    text-align: left !important;
    color: #333333 !important;
    font-size: 26px !important;
    font-weight: bold !important;
    border-left: 5px solid #005bac !important;
    padding-left: 15px !important;
    margin-bottom: 30px !important;
}

/* スマホ表示時：パンくずリストと大見出しの間に適切なスペースを確保 */
@media screen and (max-width: 768px) {
    h1.page-title {
        margin-top: 20px !important;
        margin-bottom: 20px !important;
    }
}


/* ===================================================
   全施設アクセスマップ専用スタイル調整
=================================================== */
.content-wrapper {
    padding: 20px;
    max-width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
}

.breadcrumb {
    font-size: 12px;
    margin-bottom: 20px;
    color: #666;
}

.breadcrumb a {
    color: #005bac;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ① 他ページと統一された大見出し（左側ブルーの縦棒＋左詰め） */
.page-title {
    font-size: 26px;
    color: #333;
    border-left: 5px solid #005bac;
    padding-left: 15px;
    margin-bottom: 30px;
    line-height: 1.4;
    text-align: left;
}

.page-intro {
    font-size: 14.5px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* 全体画像マップエリア */
.map-image-container {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.scrollable-map-box {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #edf2f7;
    border-radius: 4px;
    background-color: #f7fafc;
}

.overall-map-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    min-width: 600px;
}

.map-caption {
    font-size: 12px;
    color: #718096;
    margin-top: 10px;
    text-align: center;
}

/* ===================================================
   アクセスマップ・アコーディオン用スタイル
=================================================== */

.area-section {
    margin-bottom: 15px;
}

.area-toggle {
    width: 100%;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: bold;
    padding: 15px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.area-toggle-text {
    text-align: left;
}

.arrow-icon {
    font-size: 12px;
    transition: transform 0.2s ease;
}

/* 地区別の基本カラー定義 */
.area-toggle.area-central { background-color: #005bac; }
.area-toggle.area-western { background-color: #ed8936; }
.area-toggle.area-eastern { background-color: #48bb78; }
.area-toggle.area-southern { background-color: #ed64a6; }

/* マウスホバー時：少し暗くする */
.area-toggle:hover {
    opacity: 0.85;
}

/* アコーディオンが開いている時の矢印反転 */
.area-section.open .arrow-icon {
    transform: rotate(180deg);
}

/* アコーディオンの中身（初期は非表示） */
.area-content {
    display: none;
    padding: 20px 10px;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 6px 6px;
}

/* ★ここが抜けていました：セクションがopenの時に中身を表示するルール */
.area-section.open .area-content {
    display: block !important;
}

/* 施設カードグリッド */
.facility-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.facility-card {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 18px;
    background-color: #f8fafc;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.access-facility-name {
    font-size: 15.5px;
    font-weight: bold;
    color: #2d3748;
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 2px solid #cbd5e0;
    padding-bottom: 6px;
}

.facility-info {
    font-size: 13.5px;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 15px;
}

.facility-info p {
    margin: 4px 0;
}

/* ② アクションボタン（ベースデザインに合わせた枠線・角丸・ホバーエフェクト） */
.facility-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s;
    text-align: center;
    box-sizing: border-box;
    background-color: #fff;
}

.detail-btn {
    border: 1px solid #005bac;
    color: #005bac;
}
.detail-btn:hover {
    background-color: #005bac;
    color: #fff;
}

.gmap-btn {
    border: 1px solid #4285F4;
    color: #4285F4;
}
.gmap-btn:hover {
    background-color: #4285F4;
    color: #fff;
}

.facility-actions.single-btn {
    grid-template-columns: 1fr;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .facility-grid {
        grid-template-columns: 1fr;
    }
    .area-toggle {
        font-size: 15px;
        padding: 12px 15px;
    }
    .facility-actions {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* ===================================================
   「当協会について」ページ専用スタイル
   =================================================== */

/* --- 1. 大見出し設定 --- */
.about-page-title {
    font-size: 26px !important;
    color: #333333 !important;
    border-left: 5px solid #005bac !important;
    padding-left: 15px !important;
    margin-bottom: 40px !important;
    line-height: 1.4 !important;
    text-align: left !important;
}

@media screen and (max-width: 768px) {
    .about-page-title {
        margin-top: 20px !important;
        margin-bottom: 25px !important;
    }
}


/* --- 2. セクション・概要テーブル共通設定 --- */
.about-section {
    margin-bottom: 50px;
    border: none !important;
    box-shadow: none !important;
}

.about-section h2 {
    font-size: 20px;
    color: #005bac;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 10px;
    margin-bottom: 30px;
    font-weight: bold;
}

/* 概要エリアのテーブル枠線・縦線をクリア */
.about-section table,
.about-section th,
.about-section td,
.about-section tr {
    border: none !important;
    background: transparent !important;
}

.profile-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    margin-bottom: 20px;
}

.profile-table tr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #edf2f7;
    padding: 12px 0;
}

.profile-table th,
.profile-table td {
    border-bottom: none;
    padding: 0;
    font-size: 15px;
}

.profile-table th {
    color: #333;
    font-weight: bold;
    width: 280px;
    text-align: left;
    flex-shrink: 0;
}

.profile-table td {
    color: #4a5568;
    line-height: 1.6;
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left !important;
}

.profile-table tr td span {
    display: inline-block;
    text-align: left;
}


/* --- 3. 理念・方針ボックス設定 --- */
.concept-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.concept-catch {
    font-size: 18px;
    font-weight: bold;
    color: #005bac;
    margin-bottom: 15px;
    text-align: center;
}

.concept-text,
.policy-text {
    font-size: 14.5px;
    color: #4a5568;
    line-height: 1.8;
    margin: 0;
}

.policy-box {
    background-color: #f8fafc;
    border-top: 3px solid #005bac;
    padding: 25px;
    border-radius: 4px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.policy-box h3 {
    font-size: 16px;
    color: #1a202c;
    margin: 0 0 12px 0;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.policy-box h3::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 16px;
    background-color: #005bac;
    border-radius: 2px;
}


/* --- 4. 概要エリアのPDFリンクボタン（PCサイズ：幅を広げ、文字を調整して枠内に収める） --- */
@media screen and (min-width: 769px) {
    .about-section td:last-child {
        text-align: right;
        white-space: nowrap;
    }
    .about-section td:last-child a.btn-pdf,
    .about-section td:last-child a {
        display: inline-block;
        width: 190px; /* ← 【変更】150px から 180px に広げる */
        font-size: 11px;
        text-align: center;
        padding-left: 5px;  /* ← 【追加】左右の余白を少し確保 */
        padding-right: 5px; /* ← 【追加】左右の余白を少し確保 */
        box-sizing: border-box; /* ← 【追加】パディングを含めた幅計算にする */
    }
}


/* --- 5. 事業・財務に関する資料エリア（アーカイブ一覧） --- */
.archive-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 1年ごとのカードボックス */
.archive-item {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 15px 20px;
}

/* 年度表示の横書き固定 */
.archive-year {
    font-weight: bold;
    font-size: 1.1rem;
    color: #2d3748;
    min-width: 120px;
    writing-mode: horizontal-tb !important;
}

/* PC時：ボタンエリアの幅を固定し、左詰めで配置 */
.archive-links {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start !important;
    align-items: center;
    gap: 10px;
    width: 360px;
    max-width: 100%;
}

/* PDFボタンのデザイン */
.btn-pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: #fff;
    color: #d9383a;
    border: 1px solid #d9383a;
    padding: 8px 0;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    width: 70px;
    text-align: center;
}

.btn-pdf:hover {
    background-color: #d9383a !important;
    color: #fff !important;
}

/* --- 6. スマホ・タブレット用レスポンシブ調整 --- */
@media screen and (max-width: 768px) {
    /* 概要テーブルを縦積みに変更 */
    .profile-table tr {
        display: block !important;
        padding: 15px 0;
    }

    .profile-table th {
        display: block !important;
        width: 100% !important;
        margin-bottom: 8px;
    }

    .profile-table td {
        display: block !important;
        width: 100% !important;
    }

    .profile-table td span {
        display: block !important;
        margin-bottom: 12px;
        width: 100%;
    }

    .profile-table td .btn-pdf,
    .about-section td:last-child a.btn-pdf {
        display: flex !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        padding: 10px !important;
        font-size: 13px !important;
        justify-content: center !important;
    }

    /* 事業・財務資料：スマホ時 */
    .archive-item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 12px 15px;
    }

    .archive-year {
        font-size: 1rem;
        min-width: 75px;
    }

    /* スマホ時：ボタン群全体は右側に寄せつつ、内部は4つ分の幅で左詰め */
    .archive-links {
        width: 210px; /* スマホ用ボタン4つ分（45px*4 + 余白30px）の固定幅 */
        margin-left: auto;
        flex-wrap: nowrap;
        gap: 5px;
        justify-content: flex-start !important; /* 右寄せではなく左詰めに変更 */
    }

    .archive-links a.btn-pdf {
        padding: 6px 0;
        font-size: 0.8rem;
        width: 45px;
        min-width: auto;
    }
}

/* ===================================================
   「関係団体・賛助会員」ページ専用スタイル
   =================================================== */
.association-section {
    margin-bottom: 50px;
}

.association-section h2 {
    font-size: 19px;
    color: #005bac;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: bold;
}

/* 賛助会員用の特別案内エリア */
.recruitment-box {
    background-color: #f0f7ff;
    border: 1px solid #bcd7f5;
    border-radius: 6px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.recruitment-text {
    font-size: 14px;
    color: #2d3748;
    line-height: 1.5;
}

.btn-recruit {
    background-color: #005bac;
    color: #fff !important; /* 文字色を常に白に固定 */
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.btn-recruit:hover {
    background-color: #004480;
    color: #fff !important; /* ホバー時も文字色を白に固定 */
}

/* ----------------------------------------------------
   賛助会員のランク別・凡例スタイル
---------------------------------------------------- */
.sponsor-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding: 12px 18px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: bold;
    color: #4a5568;
}

.legend-badge {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
}

.badge-platinum { background-color: #334e68; }
.badge-gold     { background-color: #cca010; }
.badge-silver   { background-color: #64748b; }
.badge-bronze   { background-color: #c05621; }

/* ----------------------------------------------------
   団体一覧のグリッドレイアウト（PC2列、スマホ1列）
---------------------------------------------------- */
.association-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 10px;
}

.association-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 15px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden; /* 左端の線の角丸はみ出しを防止 */
}

.assoc-name {
    font-size: 15px;
    font-weight: bold;
    color: #2d3748;
    line-height: 1.4;
}

/* ----------------------------------------------------
   賛助会員カード：左端のアクセント縦ライン（太さを10pxに拡大）
---------------------------------------------------- */
/* プラチナ：ダークブルーグレー系 */
.association-card.card-platinum {
    border-left: 7px solid #334e68;
}

/* ゴールド：マスタードイエロー系 */
.association-card.card-gold {
    border-left: 7px solid #cca010;
}

/* シルバー：落ち着いたグレー系 */
.association-card.card-silver {
    border-left: 7px solid #64748b;
}

/* ブロンズ：赤みがかった濃いブロンズブラウン系 */
.association-card.card-bronze {
    border-left: 7px solid #c05621;
}

/* ----------------------------------------------------
   外部サイトリンクボタン＆リンクなし表示
---------------------------------------------------- */
.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    color: #005bac;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12.5px;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-link:hover {
    background-color: #005bac;
    color: #fff !important;
    border-color: #005bac;
}

.no-link {
    font-size: 12px;
    color: #a0aec0;
    white-space: nowrap;
}

/* ----------------------------------------------------
   レスポンシブ（スマホ時：1列）
---------------------------------------------------- */
@media (max-width: 768px) {
    .recruitment-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-recruit {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .sponsor-legend {
        gap: 12px;
        padding: 10px 14px;
    }

    .legend-item {
        font-size: 12.5px;
    }

    .association-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .association-card {
        padding: 12px 15px;
    }

    .assoc-name {
        font-size: 14px;
    }
}

/* ===================================================
   採用情報ページ専用スタイル（完全版フルコード）
=================================================== */

/* ページ紹介文 */
.content-wrapper .page-intro {
    font-size: 14.5px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* 募集ゼロ時の一括朱書きアナウンス */
.content-wrapper #no-recruits-alert {
    background-color: #fff5f5;
    border: 2px solid #e53e3e;
    color: #c53030;
    padding: 15px 20px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 30px;
    text-align: center;
}

/* 項目ショートカットナビ */
.content-wrapper .recruit-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
}

.content-wrapper .recruit-nav a {
    flex: 1;
    text-align: center;
    background-color: #bdd7f8;
    color: #2b6cb0;
    border: 1px solid #bee3f8;
    padding: 14px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: background 0.2s, color 0.2s;
}

.content-wrapper .recruit-nav a:hover {
    background-color: #005bac;
    color: #fff;
}

/* 固定ヘッダー対策 */
.content-wrapper .section-title {
    font-size: 20px;
    color: #005bac;
    border-bottom: 2px solid #005bac;
    padding-bottom: 8px;
    margin-top: 50px;
    margin-bottom: 20px;
    scroll-margin-top: 100px;
}

/* 募集要項カード */
.content-wrapper .recruit-card {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: relative;
}

/* ===================================================
   🌟 ステータスバッジ（超・強力強制固定版）
   ※テーマの干渉を100%ブロックし、サイズと位置を完全に統一
=================================================== */
.content-wrapper .recruit-card span.custom-badge,
.content-wrapper .recruit-card .custom-badge {
    display: inline-block !important;
    width: auto !important;
    min-width: unset !important;
    max-width: none !important;
    height: auto !important;
    font-size: 12px !important;
    font-weight: bold !important;
    padding: 4px 12px !important;
    line-height: 1.5 !important;
    border-radius: 4px !important;
    margin: 0 0 15px 0 !important;
    text-align: center !important;
    vertical-align: middle !important;
    float: none !important;
    position: static !important;
    box-sizing: border-box !important;
}

/* 募集中 */
.content-wrapper .recruit-card span.custom-badge.is-active,
.content-wrapper .recruit-card .custom-badge.is-active {
    background-color: #e6fffa !important;
    color: #319795 !important;
    border: 1px solid #b2f5ea !important;
}

/* 募集終了 */
.content-wrapper .recruit-card span.custom-badge.is-closed,
.content-wrapper .recruit-card .custom-badge.is-closed {
    background-color: #fff5f5 !important;
    color: #e53e3e !important;
    border: 1px solid #fed7d7 !important;
}

.content-wrapper .job-title {
    font-size: 18px;
    font-weight: bold;
    color: #2d3748;
    margin: 0 0 15px 0;
}

/* 情報テーブル */
.content-wrapper .info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.content-wrapper .info-table th,
.content-wrapper .info-table td {
    border: 1px solid #e2e8f0;
    padding: 12px;
    font-size: 14px;
    text-align: left;
}

.content-wrapper .info-table th {
    background-color: #f7fafc;
    color: #4a5568;
    width: 20%;
}

/* ダウンロードエリア */
.content-wrapper .download-box {
    background-color: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 6px;
    padding: 15px 20px;
}

.content-wrapper .download-box h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #2d3748;
}

.content-wrapper .dl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.content-wrapper .dl-item {
    background: #fff;
    border: 1px solid #cbd5e0;
    padding: 10px;
    border-radius: 4px;
    font-size: 13px;
}

.content-wrapper .dl-label {
    font-weight: bold;
    color: #4a5568;
    margin-bottom: 6px;
    display: block;
}

.content-wrapper .dl-links {
    display: flex;
    gap: 8px;
}

.content-wrapper .dl-links a {
    flex: 1;
    text-align: center;
    padding: 4px 0;
    border-radius: 3px;
    text-decoration: none;
    font-weight: bold;
    font-size: 11px;
}

.content-wrapper .btn-word {
    background-color: #ebf8ff;
    color: #2b6cb0;
    border: 1px solid #bee3f8;
}

.content-wrapper .btn-word:hover {
    background-color: #2b6cb0;
    color: #fff;
}

.content-wrapper .btn-pdf {
    background-color: #fff5f5;
    color: #c53030;
    border: 1px solid #fed7d7;
}

.content-wrapper .btn-pdf:hover {
    background-color: #c53030;
    color: #fff;
}

/* 先輩の声 */
.content-wrapper .staff-section {
    background-color: #f7fafc;
    padding: 40px 20px;
    border-radius: 8px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.content-wrapper .staff-section h2 {
    text-align: center;
    font-size: 22px;
    color: #2d3748;
    margin-top: 0;
    margin-bottom: 30px;
}

.content-wrapper .staff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.content-wrapper .staff-card {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.content-wrapper .staff-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #cbd5e0;
    margin: 0 auto 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.content-wrapper .staff-meta {
    font-size: 12px;
    color: #718096;
    margin-bottom: 4px;
}

.content-wrapper .staff-name {
    font-size: 16px;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 12px;
}

.content-wrapper .staff-voice {
    font-size: 13px;
    color: #4a5568;
    line-height: 1.5;
    text-align: left;
    border-top: 1px dashed #e2e8f0;
    padding-top: 10px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .content-wrapper .recruit-nav {
        flex-direction: column;
        gap: 5px;
    }

    .content-wrapper .info-table th,
    .content-wrapper .info-table td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }

    .content-wrapper .info-table th {
        border-bottom: none;
    }

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

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

/* ===================================================
   スポーツサークル紹介ページ専用スタイル（ページネーション拡張版）
   ================================================   */

/* 非表示用クラス */
.circle-page-wrapper .circle-card.is-hidden {
    display: none !important;
}

/* ページ全体の外枠・パンくず */
.circle-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}
.circle-page-wrapper .breadcrumb {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}
.circle-page-wrapper .page-title {
    font-size: 26px;
    font-weight: bold;
    border-left: 5px solid #2b6cb0;
    padding-left: 12px;
    margin-bottom: 20px;
    color: #2d3748;
}
.circle-page-wrapper .page-intro {
    font-size: 15px;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 20px;
}

/* ⚠️ 注意事項枠（種目絞り込みの上） */
.circle-page-wrapper .circle-disclaimer-top {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 13px;
    color: #d46b08;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* 📥 申請誘導バナー */
.circle-page-wrapper .banner-box {
    background: #f0f4f8;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}
.circle-page-wrapper .banner-text strong {
    display: block;
    font-size: 16px;
    color: #2b6cb0;
    margin-bottom: 5px;
}
.circle-page-wrapper .banner-text {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
}
.circle-page-wrapper .banner-btn {
    display: inline-block;
    background: #2b6cb0;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
    transition: background 0.2s;
}
.circle-page-wrapper .banner-btn:hover {
    background: #1a4971;
    color: #fff;
}

/* 🔍 絞り込みフィルター */
.circle-page-wrapper .filter-container {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
}
.circle-page-wrapper .filter-title {
    font-weight: bold;
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 10px;
}
.circle-page-wrapper .filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.circle-page-wrapper .filter-btn {
    background: #edf2f7;
    border: 1px solid #cbd5e0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    color: #4a5568;
}
.circle-page-wrapper .filter-btn.active,
.circle-page-wrapper .filter-btn:hover {
    background: #2b6cb0;
    color: #fff;
    border-color: #2b6cb0;
}
.circle-page-wrapper .sp-only-select {
    display: none;
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #cbd5e0;
    font-size: 14px;
}

.circle-page-wrapper .result-count {
    font-size: 14px;
    color: #718096;
    margin-bottom: 20px;
    text-align: right;
}

/* 🎴 サークルカードグリッド（PC2カラム） */
.circle-page-wrapper .circle-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.circle-page-wrapper .circle-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.circle-page-wrapper .card-inner-top {
    display: flex;
    flex-direction: column;
}
.circle-page-wrapper .card-inner-bottom {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-top: auto;
}
.circle-page-wrapper .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 12px;
    margin-bottom: 15px;
}
.circle-page-wrapper .circle-name {
    font-size: 18px;
    font-weight: bold;
    color: #2d3748;
    margin: 0;
}
.circle-page-wrapper .type-badge {
    background-color: #2b6cb0;
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}
.circle-page-wrapper .circle-pr {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
    background: #fffaf0;
    border-left: 3px solid #dd6b20;
    padding: 10px 12px;
    margin-bottom: 15px;
    border-radius: 0 4px 4px 0;
}
.circle-page-wrapper .circle-pr p:last-child {
    margin-bottom: 0;
}

/* 📋 情報テーブル */
.circle-page-wrapper .info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}
.circle-page-wrapper .info-table th {
    width: 28%;
    white-space: nowrap;
    text-align: left;
    padding: 8px;
    background: #f7fafc;
    font-size: 13px;
    color: #4a5568;
    border-bottom: 1px solid #edf2f7;
    font-weight: normal;
}
.circle-page-wrapper .info-table td {
    padding: 8px;
    font-size: 13px;
    color: #2d3748;
    border-bottom: 1px solid #edf2f7;
}

/* 📞 連絡先アコーディオン */
.circle-page-wrapper .contact-box {
    margin-top: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}
.circle-page-wrapper .contact-toggle {
    width: 100%;
    background: #f7fafc;
    border: none;
    padding: 10px;
    text-align: left;
    font-weight: bold;
    font-size: 13px;
    color: #2b6cb0;
    cursor: pointer;
    transition: background 0.2s;
}
.circle-page-wrapper .contact-toggle:hover {
    background: #edf2f7;
}
.circle-page-wrapper .contact-content {
    display: none;
    padding: 12px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
    line-height: 1.6;
}
.circle-page-wrapper .contact-box.open .contact-content {
    display: block;
}
.circle-page-wrapper .contact-content p {
    margin: 4px 0;
}

/* カードフッター */
.circle-page-wrapper .card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #a0aec0;
    border-top: 1px solid #edf2f7;
    padding-top: 10px;
    margin-top: 15px;
}

/* 🔢 ページネーションのデザイン（共通仕様） */
.circle-page-wrapper .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 40px 0;
}
.circle-page-wrapper .pagination button {
    background: #fff;
    border: 1px solid #cbd5e0;
    color: #4a5568;
    padding: 6px 14px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}
.circle-page-wrapper .pagination button:hover:not(:disabled) {
    background: #edf2f7;
    border-color: #a0aec0;
}
.circle-page-wrapper .pagination button.active {
    background: #2b6cb0;
    color: #fff;
    border-color: #2b6cb0;
    font-weight: bold;
}
.circle-page-wrapper .pagination button:disabled {
    color: #cbd5e0;
    border-color: #e2e8f0;
    cursor: not-allowed;
    background: #f7fafc;
}
.circle-page-wrapper .pagination .page-dots {
    padding: 0 4px;
    color: #718096;
    font-weight: bold;
}

/* 📱 スマホ対応（768px以下） */
@media screen and (max-width: 768px) {
    .circle-page-wrapper .circle-grid {
        grid-template-columns: 1fr;
    }
    .circle-page-wrapper .banner-box {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .circle-page-wrapper .pc-only-tags {
        display: none;
    }
    .circle-page-wrapper .sp-only-select {
        display: block;
    }
}

/* ===================================================
   教室・イベント一覧 ページネーション＆非表示用スタイル
   ================================================   */
.tsa-card.is-hidden {
    display: none !important;
}

.tsa-lesson-container .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 40px 0;
}
.tsa-lesson-container .pagination button {
    background: #fff;
    border: 1px solid #cbd5e0;
    color: #4a5568;
    padding: 6px 14px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}
.tsa-lesson-container .pagination button:hover:not(:disabled) {
    background: #edf2f7;
    border-color: #a0aec0;
}
.tsa-lesson-container .pagination button.active {
    background: #2b6cb0;
    color: #fff;
    border-color: #2b6cb0;
    font-weight: bold;
}
.tsa-lesson-container .pagination button:disabled {
    color: #cbd5e0;
    border-color: #e2e8f0;
    cursor: not-allowed;
    background: #f7fafc;
}
.tsa-lesson-container .pagination .page-dots {
    padding: 0 4px;
    color: #718096;
    font-weight: bold;
}

/* ===================================================
   各種申請書ダウンロードページ専用スタイル
   =================================================== */
.content-wrapper {
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
}

.breadcrumb {
    font-size: 12px;
    margin-bottom: 20px;
    color: #666;
}
.breadcrumb a {
    color: #005bac;
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}

.page-title {
    font-size: 26px;
    color: #333;
    border-left: 5px solid #005bac;
    padding-left: 15px;
    margin-bottom: 30px;
}

.page-intro {
    font-size: 14.5px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* 📁 各種申請書セクション共通スタイル（内部余白を極小に調整） */
.download-section {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 15px 25px 20px 25px !important; /* 上のパディングを15pxまでギュッと圧縮 */
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    scroll-margin-top: 100px; /* アンカーリンク用 */
}

.section-title {
    font-size: 18px;
    color: #005bac;
    margin-top: 0 !important;      /* 見出しの上の余白を完全にゼロに */
    margin-bottom: 15px;            /* 見出しから下（提出方法やリスト）への間隔 */
    padding-top: 0 !important;     /* 見出し内部の上の余白もゼロに */
    padding-bottom: 8px;
    border-bottom: 2px solid #005bac;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 📝 提出方法・説明文エリア */
.method-box {
    background-color: #f7fafc;
    border-left: 4px solid #718096;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #2d3748;
    line-height: 1.6;
}

.method-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #1a202c;
}

/* ===================================================
   🔗 ダウンロードリンク一覧（カード風スッキリレイアウト）
   =================================================== */
.file-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.file-item {
    background-color: #fafbfc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.file-item:hover {
    background-color: #ffffff;
    border-color: #005bac;
    box-shadow: 0 2px 8px rgba(0, 91, 172, 0.08);
}

.file-item:last-child {
    margin-bottom: 0;
}

.file-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 15px;
}

.file-name-label {
    font-size: 14.5px;
    color: #2d3748;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ファイル名の頭に小さなアイコン */
.file-name-label::before {
    content: "📄";
    font-size: 14px;
}

.file-link {
    font-size: 15px;
    color: #2d3748;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.file-link:hover {
    color: #005bac;
    text-decoration: underline;
}

/* 🏷️ ファイル形式バッジ（ボタン風にリッチ化） */
.f-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    text-align: center;
    min-width: 65px;
    font-family: sans-serif;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: transform 0.1s ease, opacity 0.2s ease;
}

.f-badge:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    color: #fff;
}

.f-pdf {
    background-color: #e53e3e; /* 赤 */
}
.f-excel {
    background-color: #2f855a; /* 緑 */
}
.f-word {
    background-color: #2b6cb0; /* 青 */
}

/* 📥 複数形式の並び */
.file-formats {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
    margin-left: 0;
}

/* ===================================================
   WYSIWYG（リッチエディター）エリアの余白最適化
   =================================================== */
.method-content-wysiwyg p {
    margin: 0 0 8px 0 !important;
    line-height: 1.6 !important;
}
.method-content-wysiwyg p:last-child {
    margin-bottom: 0 !important;
}
.page-intro p {
    margin: 0 0 10px 0 !important;
}
.page-intro p:last-child {
    margin-bottom: 0 !important;
}

/* ===================================================
   レスポンシブ（スマホ対応）
   =================================================== */
@media screen and (max-width: 768px) {
    .download-section {
        padding: 20px 15px;
    }
    .section-title {
        font-size: 16px;
    }
    .file-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .file-formats {
        width: 100%;
        justify-content: flex-end;
    }
    .file-item {
        padding: 12px 14px;
    }
}

/* ===================================================
   アクセス・お問い合わせ ページ専用スタイル（調整版）
=================================================== */
.page-access-wrapper .access-section {
    margin-bottom: 50px;
}

.page-access-wrapper .access-section h2 {
    font-size: 20px;
    color: #005bac;
    border-bottom: 2px solid #005bac;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-access-wrapper .contact-lead-text {
    font-size: 14.5px;
    color: #4a5568;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* 連絡先・アクセステーブル */
.page-access-wrapper .info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    border-top: 1px solid #c8d4e0; /* 上部外枠 */
    border-bottom: 1px solid #c8d4e0; /* 下部外枠 */
}

.page-access-wrapper .info-table th,
.page-access-wrapper .info-table td {
    padding: 16px 18px;
    border-bottom: 1px solid #c8d4e0; /* ② 境目をくっきりした色に変更 */
    text-align: left;
}

.page-access-wrapper .info-table th {
    background-color: #f7fafc;
    color: #2d3748;
    font-size: 14.5px; /* ③ 見出し文字サイズ微調整 */
    font-weight: bold;
    width: 260px; /* ③ 見出し幅を拡張して「コミュニティスポーツ専門部」の折り返しを防止 */
    vertical-align: top;
    line-height: 1.6;
}

.page-access-wrapper .info-table td {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.7;
}

/* 最終行の不要な2重線を防止 */
.page-access-wrapper .info-table tr:last-child th,
.page-access-wrapper .info-table tr:last-child td {
    border-bottom: none;
}

/* ===================================================
   アクセス・お問い合わせ：マップコンテナの確実な表示対応
=================================================== */
.page-access-wrapper .map-container {
    position: relative;
    width: 100%;
    height: 450px; /* パディング比率ではなく固定高を指定して確実に出す */
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    background: #f1f5f9; /* 読み込み前の背景色 */
}

.page-access-wrapper .map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* 電話番号リンク */
.page-access-wrapper .tel-link {
    color: #005bac;
    text-decoration: none;
    font-weight: bold;
}

/* レスポンシブ対応 (768px以下) */
@media (max-width: 768px) {
    .page-access-wrapper .info-table th,
    .page-access-wrapper .info-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .page-access-wrapper .info-table th {
        border-bottom: none;
        padding-bottom: 5px;
        background-color: transparent;
        width: 100%;
    }

    .page-access-wrapper .info-table td {
        padding-top: 0;
        padding-bottom: 20px;
        border-bottom: 1px solid #c8d4e0;
    }

    .page-access-wrapper .tel-link {
        display: inline-block;
        background-color: #f0fdf4;
        color: #166534;
        border: 1px solid #bbf7d0;
        padding: 5px 12px;
        border-radius: 4px;
        margin-top: 5px;
    }
}

/* ===================================================
   お問い合わせフォーム 最終・完全レイアウト修正CSS
=================================================== */

/* ページ全体コンテナ */
.contact-page-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 30px 15px 60px;
    box-sizing: border-box;
    color: #333;
    font-size: 15px;
    line-height: 1.6;
}

.contact-page-container .page-title {
    font-size: 26px;
    font-weight: bold;
    border-left: 5px solid #0056b3;
    padding-left: 12px;
    margin-bottom: 25px;
    color: #222;
}

/* 注意事項ボックス */
.contact-notice-box {
    background-color: #fffdf2;
    border: 1px solid #f2e2c4;
    border-radius: 6px;
    padding: 20px 25px;
    margin-bottom: 35px;
}
.contact-notice-box .notice-title {
    color: #c05621;
    font-size: 17px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 10px;
}
.contact-notice-box ul.notice-list {
    margin: 0;
    padding-left: 20px;
}
.contact-notice-box ul.notice-list > li {
    margin-bottom: 6px;
}

/* セクション */
.contact-section {
    margin-bottom: 35px;
}
.contact-section .section-title {
    font-size: 20px;
    font-weight: bold;
    color: #0056b3;
    margin-bottom: 12px;
}
.contact-section .section-desc {
    margin-bottom: 15px;
    color: #4a4a4a;
}

/* お電話窓口カード */
.tel-info-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 15px 25px;
}
.tel-info-card .info-row {
    display: flex;
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid #edf2f7;
}
.tel-info-card .info-row:last-child {
    border-bottom: none;
}
.tel-info-card dt {
    width: 140px;
    font-weight: bold;
    color: #333;
    flex-shrink: 0;
}
.tel-info-card dd {
    margin: 0;
}
.tel-info-card dd.tel-number a {
    font-size: 18px;
    font-weight: bold;
    color: #0056b3;
    text-decoration: none;
}

/* ACF 注意事項表示領域 */
.privacy-info-box {
    background-color: #f8fafc;
    border-left: 4px solid #cbd5e1;
    padding: 12px 18px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #475569;
}

/* --- Contact Form 7 フォームスタイル --- */
.cf7-form-area .form-wrapper {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
}

.cf7-form-area form p {
    margin: 0 !important;
    padding: 0 !important;
}

.cf7-form-area .form-item {
    display: flex;
    border-bottom: 1px solid #e9ecef;
    margin: 0;
    padding: 0;
    align-items: stretch;
    background-color: #fff;
}

.cf7-form-area .form-item:last-of-type {
    border-bottom: none;
}

/* 左側：項目名 */
.cf7-form-area .form-label {
    width: 220px;
    background-color: #f8f9fa;
    padding: 18px 20px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    flex-shrink: 0;
    margin: 0;
    border-right: 1px solid #e9ecef;
}

.cf7-form-area .form-label.required::after {
    content: "必須";
    background-color: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: normal;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    white-space: nowrap;
}

.cf7-form-area .form-label.optional::after {
    content: "任意";
    background-color: #8c98a4;
    color: #fff;
    font-size: 11px;
    font-weight: normal;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    white-space: nowrap;
}

/* 右側：入力欄 */
.cf7-form-area .form-input-wrapper {
    flex: 1;
    background-color: #fff;
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    margin: 0;
}

.cf7-form-area .wpcf7-form-control-wrap {
    width: 100%;
}

.cf7-form-area input.input-text,
.cf7-form-area select.input-select {
    width: 100% !important;
    max-width: 420px;
    height: 40px;
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    box-sizing: border-box;
}

.cf7-form-area textarea.input-textarea {
    width: 100% !important;
    height: 150px;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    box-sizing: border-box;
    resize: vertical;
}

.cf7-form-area .file-note {
    font-size: 12px;
    color: #6c757d;
    margin-top: 6px;
    display: block;
}

/* --- 個人情報同意エリア（チェックボックス左面を送信ボタン左面に揃える） --- */
.cf7-form-area .form-consent-wrapper {
    width: 280px;
    margin: 30px auto 12px auto !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: flex-start !important;
}

.cf7-form-area .form-consent-wrapper label {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    white-space: nowrap !important;
    margin: 0 !important;
}

.cf7-form-area .form-consent-wrapper input[type="checkbox"] {
    margin: 0 8px 0 0 !important;
    flex-shrink: 0;
}

.cf7-form-area .form-consent-wrapper a {
    color: #0056b3;
    text-decoration: underline;
}

/* --- 送信ボタンおよびメッセージエリア（縦積みに強制固定） --- */
.cf7-form-area .form-submit-wrapper {
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 25px;
    display: flex !important;
    flex-direction: column !important; /* 縦方向（上から下）に積み上げる */
    align-items: center !important;    /* 完全に中央に寄せる */
    justify-content: center !important;
}

.cf7-form-area .wpcf7-submit.form-submit {
    display: block !important;
    width: 280px !important;
    margin: 0 auto !important;
    background-color: #0066c0 !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: bold !important;
    padding: 12px 0 !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

/* 非活性時ボタン（赤色禁止カーソル） */
.cf7-form-area .wpcf7-submit.form-submit:disabled,
.cf7-form-area .wpcf7-submit.form-submit.is-disabled {
    background-color: #cccccc !important;
    color: #666666 !important;
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><circle cx='12' cy='12' r='9' fill='none' stroke='%23dc3545' stroke-width='2.5'/><line x1='5.6' y1='5.6' x2='18.4' y2='18.4' stroke='%23dc3545' stroke-width='2.5'/></svg>") 12 12, not-allowed !important;
    box-shadow: none !important;
    opacity: 0.7;
}

.cf7-form-area .wpcf7-submit.form-submit:hover:not(:disabled) {
    background-color: #004a8d !important;
}

/* 追加の赤字警告メッセージ（ボタンの真下に配置） */
.cf7-form-area .custom-form-alert-msg {
    width: 100% !important;
    text-align: center !important;
    margin-top: 10px !important;
}

/* --- CF7標準アラート枠 --- */
.cf7-form-area .wpcf7-response-output {
    margin: 15px auto 0 !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    border-radius: 4px !important;
    text-align: center !important;
    max-width: 550px !important;
    box-sizing: border-box !important;
}

/* 送信成功時の緑色メッセージ */
.cf7-form-area .wpcf7-mail-sent-ok {
    border: 2px solid #28a745 !important;
    background-color: #d4edda !important;
    color: #155724 !important;
}

/* ===================================================
   スマホ表示（767px以下）の設定
=================================================== */
@media (max-width: 767px) {
    .cf7-form-area .form-item {
        flex-direction: column;
    }
    .cf7-form-area .form-label {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        padding: 10px 15px;
    }
    .cf7-form-area .form-input-wrapper {
        padding: 12px 15px;
    }
    .cf7-form-area input.input-text,
    .cf7-form-area select.input-select {
        max-width: 100%;
    }

    /* スマホ時：同意欄を中央寄せ・1行に固定 */
    .cf7-form-area .form-consent-wrapper {
        width: 100% !important;
        margin: 20px auto 12px auto !important;
        justify-content: center !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }

    .cf7-form-area .form-consent-wrapper label {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        font-size: 13px !important;
    }

    /* スマホ時：送信ボタン＆メッセージを縦並び中央に固定 */
    .cf7-form-area .form-submit-wrapper {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .cf7-form-area .wpcf7-submit.form-submit {
        width: 280px !important;
        max-width: 90% !important;
        margin: 0 auto !important;
    }
}

/* ===================================================
   賛助会員募集ページ専用スタイル（他ページへの影響防止）
=================================================== */
.sup-lead-section {
    border-radius: 8px;
    padding: 50px 30px;
    margin-bottom: 50px;
    text-align: center;
    border: 1px solid #e2e8f0;
}
.sup-lead-tag {
    display: inline-block;
    background-color: #009688;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.sup-lead-title {
    font-size: 24px;
    color: #005bac;
    line-height: 1.5;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 0 0 10px #fff, 0 0 10px #fff, 0 0 5px #fff;
}
/* ✨ 背景写真を100%生かしつつ、文字の輪郭をくっきり際立たせるスタイル */
.sup-lead-text {
    font-size: 15.5px;
    color: #050608;
    line-height: 1.85;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    font-weight: 600;
    background-color: transparent; /* 白カード背景を解除 */
    padding: 0;                     * 余白を解除 */
    border-radius: 0;
    box-shadow: none;
    border: none;
    /* 白い縁取り（シャドウ）を全方位に多重付与して背景写真から文字を浮かせる */
    text-shadow: 
        2px  2px 3px #fff,
       -2px  2px 3px #fff,
        2px -2px 3px #fff,
       -2px -2px 3px #fff,
        0px  0px 8px #fff,
        0px  0px 12px #fff;
}
.sup-about-box {
    margin-bottom: 40px;
    line-height: 1.7;
    font-size: 15px;
    color: #4a5568;
}
/* 価値セクション：PC2列2行 / スマホ1列 */
.sup-value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}
.sup-value-card {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}
.sup-value-num {
    font-size: 24px;
    font-weight: bold;
    color: #009688;
    font-family: sans-serif;
    margin-bottom: 10px;
}
.sup-value-card h3 {
    font-size: 16px;
    color: #005bac;
    font-weight: bold;
    margin-bottom: 12px;
}
.sup-value-card p {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}
/* 会員区分・特典（4ランク対応） */
.sup-tier-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}
.sup-tier-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}
.sup-tier-header {
    padding: 20px;
    text-align: center;
    color: #fff;
    font-weight: bold;
}
.sup-tier-platinum .sup-tier-header { background: linear-gradient(135deg, #718096, #a0aec0); }
.sup-tier-gold .sup-tier-header     { background: linear-gradient(135deg, #b7791f, #ecc94b); }
.sup-tier-silver .sup-tier-header   { background: linear-gradient(135deg, #4a5568, #718096); }
.sup-tier-bronze .sup-tier-header   { background: linear-gradient(135deg, #c05621, #ed8936); }

.sup-tier-name { font-size: 20px; margin-bottom: 5px; }
.sup-tier-price { font-size: 16px; opacity: 0.9; }
.sup-tier-body { padding: 20px; flex-grow: 1; background-color: #f8fafc; }
.sup-tier-body h4 {
    font-size: 14px;
    color: #2d3748;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: bold;
    border-left: 3px solid #005bac;
    padding-left: 8px;
}
.sup-tier-features {
    margin: 0;
    padding-left: 20px;
    font-size: 13.5px;
    color: #4a5568;
    line-height: 1.7;
}
.sup-tier-features ul, .sup-tier-features li { margin-bottom: 8px; }

/* アクションエリア */
.sup-action-area {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    margin-bottom: 60px;
}
.sup-action-title { font-size: 18px; font-weight: bold; color: #333; margin-bottom: 15px; }
.sup-action-text { font-size: 14.5px; color: #666; margin-bottom: 25px; line-height: 1.6; }
.sup-btn-container { display: flex; justify-content: center; gap: 20px; }
.sup-btn-download, .sup-btn-contact-link {
    display: inline-block;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s, transform 0.2s, color 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.sup-btn-download { background-color: #fff; color: #005bac; border: 2px solid #005bac; }
.sup-btn-download:hover { background-color: #f0f7ff; color: #005bac; }

/* ✨ ホバー時も確実に白抜き文字を維持 */
.sup-btn-contact-link { background-color: #005bac; color: #fff !important; border: 2px solid #005bac; }
.sup-btn-contact-link:hover { background-color: #003a70; color: #fff !important; border-color: #003a70; }

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .sup-value-grid, .sup-tier-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .sup-btn-container {
        flex-direction: column;
        gap: 12px;
    }
    .sup-btn-download, .sup-btn-contact-link {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        padding: 15px 20px;
    }
}
/* ===================================================
   当日の個人使用可能施設ページ専用スタイル（完全統合版）
=================================================== */
.today-personal-page {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.today-personal-intro {
    background-color: #f8fafc;
    border-left: 4px solid #005bac;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.tp-intro-title {
    font-size: 18px;
    font-weight: bold;
    color: #005bac;
    margin: 0 0 10px 0;
}

.tp-intro-text {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.7;
}

.tp-intro-text p {
    margin: 0 0 10px 0;
}
.tp-intro-text p:last-child {
    margin-bottom: 0;
}

/* 凡例エリア */
.tp-legend-box {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    justify-content: flex-end;
    font-size: 13.5px;
    font-weight: bold;
    color: #2d3748;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-color {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    display: inline-block;
}

.legend-available { background-color: #005bac; }
.legend-unavailable { background-color: #e2e8f0; }

/* --------------------------------------------------
   施設ブロック ＆ インデックス風タブデザイン
-------------------------------------------------- */
.tp-facility-block {
    margin-top: 30px;
    margin-bottom: 30px;
}
.tp-facility-block:first-child {
    margin-top: 10px;
}

/* 施設名見出し（インデックス風タブ：全施設統一幅） */
.tp-facility-heading {
    display: inline-block;
    width: 395px;          /* 全施設で揃える横幅 */
    max-width: 100%;
    font-size: 14.5px;
    font-weight: bold;
    color: #1e3a8a;        /* 引き締まった濃い青文字 */
    background-color: #e2e8f0; /* 表本体と差別化する落ち着いたグレーブルー */
    padding: 9px 16px;
    border-radius: 8px 8px 0 0; /* 上の角だけ丸く */
    border: 1px solid #a0aec0;   /* 表の罫線と統一 */
    border-bottom: none;         /* 下の表とシームレスに接合 */
    margin: 0;
    text-align: left;
    box-sizing: border-box;
}

/* --------------------------------------------------
   横スクロール対応表エリア（枠線・スクロールバー）
-------------------------------------------------- */
.tp-table-scroll-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #a0aec0;
    border-radius: 0 8px 8px 8px; /* 右上・右下・左下を丸く */
    background-color: #fff;
    margin-bottom: 15px;
    padding-bottom: 2px;
}

/* スクロールバーのデザイン（常時くっきり表示） */
.tp-table-scroll-container::-webkit-scrollbar {
    height: 12px;
}
.tp-table-scroll-container::-webkit-scrollbar-track {
    background: #edf2f7;
    border-radius: 6px;
}
.tp-table-scroll-container::-webkit-scrollbar-thumb {
    background: #718096;
    border-radius: 6px;
}
.tp-table-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #4a5568;
}

/* --------------------------------------------------
   スケジュールテーブル設定
-------------------------------------------------- */
.tp-schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    white-space: nowrap;
}

/* 表の罫線（Border）をハッキリ濃く調整 */
.tp-schedule-table,
.tp-schedule-table th,
.tp-schedule-table td {
    border: 1px solid #a0aec0 !important;
}

.tp-schedule-table th,
.tp-schedule-table td {
    padding: 8px 10px;
    text-align: center;
    vertical-align: middle;
}

/* ヘッダーの固定（Sticky Header：上下スクロール追従） */
.tp-schedule-table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #f0f4f8;
    color: #005bac;
    font-weight: bold;
    border-bottom: 2px solid #718096 !important;
}

/* 2行目の時間帯ヘッダーは1行目の下にくっつける */
.tp-schedule-table tr:nth-child(2) th {
    top: 41px;
    background-color: #f8fafc;
    color: #334155;
    font-size: 12px;
}

/* ①日付ヘッダーの色分け・デザイン調整 */
.th-date-header {
    padding: 10px 15px !important;
    font-size: 14px;
}

.th-date-today {
    background-color: #1e3a8a !important; /* 当日は濃い青ネイビー */
    color: #ffffff !important;
}

.th-date-tomorrow {
    background-color: #0f766e !important; /* 翌日は深めの青緑（ティール系） */
    color: #ffffff !important;
}

.th-date-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.th-date-text {
    font-weight: bold;
}

/* 17時更新の赤文字案内 */
.th-update-notice {
    font-size: 11.5px;
    color: #fca5a5 !important;
    font-weight: normal;
}

/* 室場名列の固定（Sticky Column：左端固定） */
.tp-schedule-table td.td-room-name {
    position: sticky;
    left: 0;
    z-index: 5;
    background-color: #ffffff;
    color: #4a5568;
    font-weight: bold;
    text-align: left !important;
    border-right: 2px solid #a0aec0 !important;
}

/* 青色・グレーの塗りつぶしセル */
.cell-available {
    background-color: #005bac !important;
    color: #ffffff !important;
    font-weight: bold;
}

.cell-unavailable {
    background-color: #e2e8f0 !important;
    color: #a0aec0 !important;
}

/* テーブルセルの幅をコンパクトに統一 */
.tp-schedule-table th.th-time-col {
    min-width: 52px;
    font-size: 12px;
}

/* 表下の注釈エリア */
.tp-table-note {
    font-size: 13px;
    color: #e53e3e;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 30px;
    padding-left: 5px;
}

/* スクロール誘導メッセージ */
.tp-scroll-hint {
    font-size: 13px;
    font-weight: bold;
    color: #1a202c;
    background-color: #e2e8f0;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
    border: 1px solid #cbd5e0;
}

/* ==========================================================
   スマホ表示（レスポンシブ最適化）
   ================================================---------- */
@media screen and (max-width: 768px) {
    .tp-facility-heading {
        width: 347px; /* スマホ用タブ幅 */
        font-size: 13px;
        padding: 7px 12px;
    }
    
    .tp-schedule-table {
        font-size: 12px;
    }
    
    .tp-schedule-table td.td-room-name {
        min-width: 100px;
        max-width: 120px;
        white-space: normal;
        font-size: 11px;
        padding: 8px 6px;
    }
    
    .tp-schedule-table td.td-status {
        min-width: 42px;
    }
}

/* ===================================================
   【完全版】すべてのニュースバッジを強制的に完全同サイズ化
   =================================================== */

.news-item .news-tag,
.news-list .news-tag,
.p-postList__cat,
.tag-news,
.news-tag.tag-news,
.tag-holiday,
.category-holiday,
.news-tag.tag-holiday,
.tag-important,
.category-important,
.news-tag.tag-important,
.tag-recruit,
.category-recruit,
.news-tag.tag-recruit,
.tag-info,
.tag-告知,
.tag-お知らせ {
    display: inline-block !important;
    width: 68px !important;            /* すべてのバッジの横幅を強制的に完全統一 */
    min-width: 68px !important;
    max-width: 68px !important;
    height: 20px !important;           /* 高さを強制的に完全統一 */
    min-height: 20px !important;
    max-height: 20px !important;
    font-size: 11px !important;        /* 文字サイズを統一 */
    line-height: 20px !important;      /* 上下中央揃え */
    padding: 0 !important;             /* 余白による膨らみを完全にシャットアウト */
    margin: 0 !important;
    box-sizing: border-box !important;
    border-radius: 3px !important;
    font-weight: bold !important;
    text-align: center !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
    overflow: hidden !important;       /* はみ出た部分を綺麗に収める */
}

/* 各カテゴリーごとの色指定 */

/* 「お知らせ」 ➔ 濃い青 */
.tag-news,
.news-tag.tag-news,
.tag-お知らせ {
    background-color: #005bac !important;
    color: #ffffff !important;
}

/* 「休館」 ➔ 薄い青（※スラッグ holiday に対応） */
.tag-holiday,
.category-holiday,
.news-tag.tag-holiday {
    background-color: #0299c7 !important;
    color: #ffffff !important;
}

/* 「重要」 ➔ 赤 */
.tag-important,
.category-important,
.news-tag.tag-important {
    background-color: #d9383a !important;
    color: #ffffff !important;
}

/* 「募集」 ➔ オレンジ */
.tag-recruit,
.category-recruit,
.news-tag.tag-recruit {
    background-color: #e67e22 !important;
    color: #ffffff !important;
}

/* 「告知」 ➔ 緑 */
.tag-info,
.tag-告知 {
    background-color: #2ecc71 !important;
    color: #ffffff !important;
}
/* ==========================================================
   高松市スポーツ協会 行事予定一覧ページ専用スタイル
   ========================================================== */
.takamatsu-schedule-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 15px;
    box-sizing: border-box;
}

.takamatsu-schedule-wrap .page-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.takamatsu-schedule-wrap .schedule-test-notice {
    background: #fff3cd;
    color: #856404;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ffeeba;
    border-radius: 4px;
}

/* タブボタンデザイン（他ページのトーンに統一） */
.takamatsu-schedule-wrap .schedule-tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
    flex-wrap: wrap;
}

.takamatsu-schedule-wrap .sched-tab-btn {
    background-color: #e2e8f0;
    color: #4a5568;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 130px;
}

.takamatsu-schedule-wrap .sched-tab-btn:hover {
    background-color: #cbd5e1;
    color: #1e293b;
}

.takamatsu-schedule-wrap .sched-tab-btn.active {
    background-color: #0056b3;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* パネル表示切替 */
.takamatsu-schedule-wrap .sched-panel {
    display: none;
}

.takamatsu-schedule-wrap .sched-panel.active {
    display: block;
}

/* 施設カードグリッドレイアウト（PC2カラム） */
.takamatsu-schedule-wrap .facility-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .takamatsu-schedule-wrap .facility-grid {
        grid-template-columns: 1fr; /* スマホでは1カラムに */
    }
}

.takamatsu-schedule-wrap .facility-card {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 施設名の帯（サンプルPDFに合わせたパープル系トーン） */
.takamatsu-schedule-wrap .facility-card-title {
    background-color: #831843;
    color: #ffffff;
    font-size: 16px;
    padding: 12px 16px;
    margin: 0;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.takamatsu-schedule-wrap .facility-card-body {
    padding: 0;
    flex-grow: 1;
}

.takamatsu-schedule-wrap .event-items-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* イベント行のデザイン（交互のストライプ背景） */
.takamatsu-schedule-wrap .event-items-list li {
    display: flex;
    align-items: flex-start;
    padding: 10px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.takamatsu-schedule-wrap .event-items-list li:nth-child(even) {
    background-color: #f0f4f8; /* 1行おきに薄いブルーグレーの背景 */
}

.takamatsu-schedule-wrap .event-items-list li:nth-child(odd) {
    background-color: #ffffff;
}

.takamatsu-schedule-wrap .ev-day {
    font-weight: bold;
    color: #831843;
    min-width: 75px;
    flex-shrink: 0;
}

.takamatsu-schedule-wrap .ev-title {
    color: #334155;
    line-height: 1.5;
    word-break: break-all;
}

.takamatsu-schedule-wrap .no-events {
    color: #a0aec0;
    font-size: 0.9rem;
    text-align: center;
    margin: 20px 0;
}

.takamatsu-schedule-wrap .schedule-note-text {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    color: #64748b;
    font-size: 13px;
    text-align: right;
}

/* ==========================================================
   印刷最適化スタイル (Ctrl+P / 印刷時)
   ========================================================== */
@media print {
    body {
        background: #fff !important;
        color: #000 !important;
    }
    header.site-header, footer.site-footer, .schedule-tab-buttons, .schedule-test-notice {
        display: none !important;
    }
    .takamatsu-schedule-wrap .sched-panel {
        display: block !important;
        page-break-after: always;
    }
    .takamatsu-schedule-wrap .facility-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    .takamatsu-schedule-wrap .facility-card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
        break-inside: avoid;
    }
    .takamatsu-schedule-wrap .facility-card-title {
        background: #831843 !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ===================================================
   「スポーツ専門部会」ページ専用スタイル
   =================================================== */
.bukai-page-wrap {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 30px 20px 0; /* ← 上部に30pxの余白を追加 */
    box-sizing: border-box;
}

.bukai-intro-section {
    margin-bottom: 40px;
}

.bukai-section-heading {
    font-size: 20px;
    color: #005bac;
    border-left: 5px solid #005bac;
    padding-left: 12px;
    margin-bottom: 15px;
    font-weight: bold;
}

.bukai-description-text {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.7;
}

/* 4部会カードのグリッドレイアウト（PC2列、スマホ1列） */
.bukai-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.bukai-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bukai-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 91, 172, 0.1);
    border-color: #cbd5e1;
}

.bukai-card-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #f1f5f9;
}

.bukai-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bukai-card:hover .bukai-card-img img {
    transform: scale(1.03);
}

.bukai-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bukai-card-title {
    font-size: 17px;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 10px;
}

.bukai-card-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.bukai-card-btn-wrap {
    text-align: right;
}

.bukai-external-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #005bac;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 13.5px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s;
}

.bukai-external-btn:hover {
    background-color: #004085;
}

/* レスポンシブ対応（スマホ時：1列） */
@media (max-width: 768px) {
    .bukai-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bukai-card-img {
        height: 150px;
    }

    .bukai-card-body {
        padding: 16px;
    }

    .bukai-card-title {
        font-size: 16px;
    }

    .bukai-external-btn {
        width: 100%;
    }
}

/* ===================================================
   施設詳細の料金表列：横幅均等配置
   =================================================== */
/* 注意！！　制御できない部分を、WordPressの外観  →  追加CSSにコード追加している*/
/* PC・タブレット（768px以上）：タイトル列を固定し、料金列を均等幅にする */
@media (min-width: 768px) {
    .price-table-wrapper table {
        width: 100%;
        table-layout: fixed;
    }
    .price-table-wrapper table th:first-child,
    .price-table-wrapper table td:first-child {
        width: 22%;
    }
}

/* スマホ（767px以下）：料金表の列幅を均等にし、横スクロール・折り返しに対応 */
html body .entry-content .custom-fee-wrapper .table-scroll-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}
html body .entry-content .custom-fee-wrapper table {
    width: 640px !important;
    min-width: 640px !important;
    max-width: none !important;
    table-layout: fixed !important;
}
html body .entry-content .custom-fee-wrapper table tr:first-child th,
html body .entry-content .custom-fee-wrapper table tr:first-child td,
html body .entry-content .custom-fee-wrapper table tr td:first-child,
html body .entry-content .custom-fee-wrapper table th,
html body .entry-content .custom-fee-wrapper table td {
    white-space: normal !important;
    word-break: break-word !important;
    max-width: none !important;
}

.custom-fee-wrapper .scroll-note-text,
.scroll-note-text {
    color: #c62828 !important;
    font-weight: 700;
    padding: 4px 10px;
    background-color: #fff5f5;
    border-left: 3px solid #c62828;
    border-radius: 2px;
}

.scroll-note-text,
.scroll-note-text strong {
    color: inherit;
}

/* ===================================================
   ノーコードページ用：左側アクセント縦線付き見出し
   =================================================== */
h2.is-style-blue-border,
h3.is-style-blue-border,
.is-style-blue-border {
    border-left: 5px solid #005bac !important;
    padding-left: 12px !important;
    color: #005bac !important;
    font-weight: bold !important;
}

/* ===================================================
   ノーコードページ ブロック用：カード枠＆画像・ボタン調整
   =================================================== */

/* カード枠スタイル（上下の余分な隙間を自動調整し、ホバーでフワッと浮く設定） */
.is-style-custom-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;/* ← カードの高さを抑えたい場合、13px などに変更*/
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* カード内の要素を上下に綺麗に分散 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* マウスオンしたときにカード全体が少し浮き上がる演出 */
.is-style-custom-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 91, 172, 0.1);
}

/* カード内の画像アスペクト比固定（高さを統一してトリミング） */
.is-style-custom-card .wp-block-image img,
.is-style-aspect-ratio img {
    aspect-ratio: 16 / 7;/* ← 画像の高さを抑えたい場合、16/5 などに変更*/
    object-fit: cover;
    width: 100%;
    border-radius: 4px;
}

/* ボタンを一番手前に配置して、確実にクリックできるようにする */
.is-style-custom-card .wp-block-button {
    position: relative;
    z-index: 2;
    margin-top: auto; /* ボタンをカードの一番下に綺麗に揃える */
}
/* ===================================================
   ノーコードページ用：グループ枠など背景＋枠線のシンプルなカード枠
   =================================================== */
/* ブロックエディタ汎用カード枠 */
.box-card {
  background-color: #f8f9fa; /* 薄いグレーの背景 */
  border: 1px solid #d0d7de; /* 1pxの枠線 */
  border-radius: 6px;        /* 角丸 */
  padding: 20px;             /* 内側の余白 */
  margin-bottom: 20px;       /* 下の余白 */
}

/* 枠内の最初に見出し(H3・H4)や段落が来たときの上余白をリセット */
.box-card > :first-child {
  margin-top: 0;
}

/* 枠内の最後の要素の下余白をリセット（上下の余白を均一にする） */
.box-card > :last-child {
  margin-bottom: 0;
}
/* ===================================================
   ノーコードページ用：ボタンホバー時の文字色維持＆背景のみ少し暗め＆「ぷるん」動き
   ※親の「ボタン」ブロック、または個別ボタンの「追加 CSS クラス」に btn-purun を指定
   =================================================== */
.btn-purun .wp-block-button__link,
.wp-block-button.btn-purun .wp-block-button__link {
    color: #ffffff;
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-purun .wp-block-button__link:hover,
.btn-purun .wp-block-button__link:focus,
.wp-block-button.btn-purun .wp-block-button__link:hover,
.wp-block-button.btn-purun .wp-block-button__link:focus {
    color: #ffffff !important;
    box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.08); /* 文字はそのまま、背景だけ約15%暗くする */
    animation: purun-bounce 0.45s ease;
}

@keyframes purun-bounce {
    0%   { transform: scale(1, 1); }
    30%  { transform: scale(1.06, 0.92); }
    50%  { transform: scale(0.96, 1.05); }
    70%  { transform: scale(1.02, 0.98); }
    100% { transform: scale(1, 1); }
}

/* ===================================================
   ノーコードページ用：　アンカーリンク時の見出し位置ズレ補正
   ※ジャンプ先となる見出し（H2など）の「追加 CSS クラス」に anchor-offset を指定
   ※数値（80px）は固定ヘッダーの高さに合わせて調整してください
   =================================================== */
.anchor-offset {
    scroll-margin-top: 80px;
}