/* 全体スタイル */
:root {
    --primary-gold: #b49650;
    /* 指定色: ゴールド */
    --primary-green: #3a6e43;
    /* 指定色: グリーン */
    /* 視認性を調整 */
    --text-color: #333333;
    --navy-blue: #1a2b49;
    --white: #ffffff;
    --background-gray: #f9f9f9;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--white);
}

a {
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

/* ヘッダー */
.header {
    width: 100%;
    background-color: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-gold);
    /* アクセントに追加 */
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.5rem;
}

.logo-img {
    height: 60px;
    /* Adjust if needed, originally 40px */
}

@media (max-width: 768px) {
    .logo-img {
        height: 40px;
    }
}


.global-nav ul {
    display: flex;
    gap: 20px;
}

.global-nav a {
    font-size: 0.9rem;
    font-weight: bold;
    color: #333;
}

/* ヒーローセクション (メインビジュアル) */
.hero {
    position: relative;
    width: 100%;
    height: 700px; /* さらに高さを広げる */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

/* テキスト可読性のためのオーバーレイグラデーション */
.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: absolute;
    bottom: 80px; /* 少し上に調整 */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1000px;
    z-index: 2;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    text-align: left;
    /* 画像では中央寄りだが左揃えのブロックに見える */
    padding: 0 20px;
}

.hero-message {
    font-size: 2.1rem;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
}

.hero-title {
    margin-bottom: 20px;
    line-height: 1;
}

.hero-title img {
    width: 64%;
    /* Shrink further by 20% */
    max-width: 100%;
}

.hero-description {
    font-size: 1.1rem;
    font-weight: 500;
}

/* メインコンテンツグリッド */
.container {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

/* セクション共通 */
.section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: #000;
    text-align: center;
}

.section-title.text-right {
    text-align: right;
    /* レイアウトに応じて調整 */
    /* 画像では右カラムの上部中央 */
    text-align: center;
}


/* メインメッセージセクション */
.main-message-logo-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.main-message-logo {
    max-width: 200px;
    width: 80%;
}

.main-message .section-title {
    font-family: 'Patua One', serif;
    /* フォント変更 */
    font-weight: 400;
    text-align: center;
    margin-bottom: 40px;
}

.section-title-logo-wrapper {
    text-align: center;
    margin-bottom: 40px;
}

.section-title-logo {
    max-width: 400px;
    width: 80%;
    height: auto;
}

.message-text p {
    margin-bottom: 1.5em;
    text-align: justify;
    line-height: 2;
    font-size: 0.95rem;
}

.cta-button-wrapper {
    margin-top: 40px;
    text-align: center;
}

.cta-banner {
    display: inline-block;
    width: 100%;
    max-width: 800px;
    transition: transform 0.3s ease;
}

.cta-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.cta-banner:hover {
    transform: scale(1.03);
    opacity: 1;
    /* Reset global a:hover opacity */
}

/* サイドバー / Xウィジェット */
.sidebar {
    padding-top: 0;
}

.twitter-widget {
    border: 1px solid #ddd;
    border-radius: 10px;
    /* 角丸 */
    overflow: hidden;
    background: #fff;
}

.twitter-placeholder {
    padding: 0;
}

.tweet {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.tweet:last-child {
    border-bottom: none;
}

.tweet-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: #666;
}

.tweet-header .icon {
    background: #000;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    margin-right: 5px;
}

.tweet-body {
    font-size: 0.9rem;
    line-height: 1.4;
}

.widget-note {
    font-size: 0.7rem;
    color: #888;
    text-align: center;
    padding: 10px;
}


/* 賛同選手・OBセクション */
.supporters-section {
    padding: 60px 0;
    background-color: var(--white);
}

.supporters-section .section-title {
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    font-weight: bold;
    margin-bottom: 40px;
    font-size: 1rem;
}

.supporters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* PC: 3列 */
    gap: 30px;
}

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

.supporter-card.js-supporter-card {
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.supporter-card.js-supporter-card:hover .supporter-image {
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.supporter-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    /* 画像比率 (正方形) */
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #eee;
}

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

.founder-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #8B4513; /* 茶色ベタ */
    color: #fff; /* 白抜き文字 */
    padding: 4px 12px;
    font-size: 0.85rem;
    font-weight: bold;
    border-top-right-radius: 8px;
}

.supporter-badge {
    display: inline-block;
    background-color: var(--primary-gold);
    color: #fff;
    padding: 5px 20px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.supporter-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.supporter-name-en {
    font-size: 0.9rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.supporter-team {
    font-size: 0.8rem;
    font-weight: bold;
}

/* プレースホルダーカードのスタイル調整 */
.supporter-card.placeholder .supporter-image img {
    object-fit: contain;
    /* アイコンを全体表示 */
    padding: 20px;
}


/* 支援球児一覧セクション */
.supported-children-section {
    padding: 60px 0;
    background-color: #e0ece3;
}

.supported-children-section .section-title {
    margin-bottom: 10px;
    /* 標準フォント */
}

.children-slider {
    width: 100%;
    height: auto;
    padding-bottom: 40px;
    /* ページネーション用 */
}

/* Swiper Slide (child-card) */
.child-card {
    /* GridシステムではなくSwiperで管理するため、アスペクト比などは維持 */
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    background-color: #ddd;
    /* Swiperのスライドとして高さが必要 */
    height: auto;
}

.child-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

/* Swiper Controls (Pagination + Navigation) */
.swiper-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.swiper-pagination {
    position: static !important;
    /* デフォルトのabsoluteを解除 */
    width: auto !important;
    transform: none !important;
    display: flex;
    align-items: center;
}

.swiper-button-prev,
.swiper-button-next {
    position: static !important;
    /* デフォルトのabsoluteを解除 */
    margin: 0 !important;
    width: auto !important;
    /* テキストに合わせて幅自動 */
    height: auto !important;
    color: var(--primary-green) !important;
    font-size: 0.9rem;
    font-weight: bold;
    white-space: nowrap;
}

/* デフォルトの矢印アイコンを消す */
.swiper-button-prev::after,
.swiper-button-next::after {
    content: none !important;
}

/* ページネーションの色 */
.swiper-pagination-bullet-active {
    background-color: var(--primary-green) !important;
}

/* PCの場合はコントロールエリア全体を隠す */
@media (min-width: 768px) {
    .swiper-controls {
        display: none;
    }
}

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

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

.kid-modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
    padding: 20px;
}

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

.kid-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
    line-height: 1;
    z-index: 10;
}

.kid-modal-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: #eee;
}

.kid-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* 顔が切れないように上揃え */
}

.kid-modal-details {
    padding: 0 10px;
}

.kid-modal-year {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
    font-weight: bold;
}

.kid-modal-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    border-bottom: 2px solid var(--primary-gold);
    display: inline-block;
    padding-bottom: 3px;
}

.kid-modal-message {
    font-size: 1rem;
    line-height: 1.8;
    text-align: left;
    /* 長文なので左揃えに */

    color: #333;
    max-height: 40vh;
    /* 長文の場合にスクロールさせる */
    overflow-y: auto;
    padding-right: 10px;
    /* スクロールバーとの被り防止 */
}

.kid-modal-message p {
    margin-top: 0;
    white-space: pre-wrap; /* 改行を反映 */
}

/* フッターイラスト */
.footer-illust {
    width: 100%;
    margin-top: 60px;
    line-height: 0;
    /* To remove default image gap */
}

.footer-illust img {
    width: 100%;
    height: auto;
    display: block;
}

/* フッター */
.footer {
    background-color: var(--primary-green);
    /* 指定色: グリーン */
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    border-top: 5px solid var(--primary-gold);
    /* ゴールドのアクセント */
}

/* ハンバーガーボタン (PCでは非表示) */
.hamburger-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.hamburger-button span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger-button span:nth-child(1) {
    top: 0;
}

.hamburger-button span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-button span:nth-child(3) {
    bottom: 0;
}

/* ハンバーガーメニューアクティブ時 */
.hamburger-button.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger-button.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-button.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* PC Grid Layout (Swiper無効時) */
.pc-grid .swiper-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    transform: none !important;
    /* Swiperのtransformが残存する場合の対策 */
}

.pc-grid .swiper-slide {
    width: calc((100% - (15px * 5)) / 6) !important;
    /* 6列 */
    margin-right: 0 !important;
    /* Swiperのmarginをリセット */
    margin-bottom: 15px;
    height: auto !important;
}

/* 最後の行の左揃えを維持するために特に何もいらないが、gapで調整 */

/* レスポンシブ (スマホ対応) */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: row;
        /* 横並びに戻す */
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
    }

    .hamburger-button {
        display: block;
    }

    .global-nav {
        display: block !important;
        /* JSで制御する前にblockにしておく */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        /* 上寄せに変更 */
        padding-top: 120px;
        /* 上部に余白を確保 */
    }

    .global-nav.active {
        transform: translateX(0);
    }

    .global-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        margin-top: 0;
    }

    .global-nav a {
        font-size: 1.2rem;
        color: #333;
        display: block;
        padding: 5px;
    }

    .hero {
        height: 700px;
    }

    .hero-message {
        font-size: 1.0rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-title img {
        width: 100%;
    }

    .content-grid {
        grid-template-columns: 1fr;
        /* カラムを縦積みに */
        gap: 40px;
    }

    .hero-content {
        width: 96%;
        padding: 0 10px;
        bottom: 50px; /* 少し上に調整 */
    }

    .supporters-grid {
        grid-template-columns: repeat(2, 1fr);
        /* スマホ: 2列 */
        gap: 15px;
    }

    .hero-description {
        font-size: 1rem;
        font-weight: 500;
    }

    /* 各セクション間の間隔を半分に短縮 */
    .container {
        margin: 30px auto;
    }

    .supporters-section,
    .supported-children-section,
    .guidelines-section,
    .membership-section,
    .organization-section {
        padding: 30px 0;
    }

    .event-section {
        padding: 30px 0 0;
    }

    .footer-illust {
        margin-top: 30px;
    }

    .main-message-logo {
        max-width: 200px;
        /* 元の250pxの80% */
    }

}

/* 募集要項セクション */
.guidelines-section {
    padding: 60px 0;
    background-color: #fcfcf5;
    /* 薄いベージュ */
}

.guidelines-section .section-title {
    margin-bottom: 10px;
    color: var(--primary-gold);
    font-family: 'Patua One', serif;
}

.guidelines-title-main {
    font-size: 3rem;
    /* 元の2remより大きく */
    line-height: 1.2;
}

.guidelines-note {
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 40px;
    font-weight: bold;
}

.guidelines-content {
    background-color: #fff;
    border-top: 2px solid var(--primary-gold);
}

.guidelines-row {
    display: flex;
    border-bottom: 1px solid #ddd;
}

.guidelines-row:last-child {
    border-bottom: 2px solid var(--primary-gold);
}

.guidelines-row dt {
    width: 25%;
    background-color: #f2efe6;
    /* 薄いゴールド/グレー */
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-align: center;
    color: var(--primary-gold);
    border-right: 1px solid #ddd;
}

.guidelines-row dd {
    width: 75%;
    padding: 20px;
    font-size: 0.95rem;
}

.guidelines-lead {
    font-weight: bold;
    margin-bottom: 10px;
}

.guidelines-ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 10px;
}

.guidelines-ul li {
    margin-bottom: 5px;
}

.guidelines-annotation {
    font-size: 0.85rem;
    color: #666;
    margin-top: 10px;
}

.guidelines-annotation p {
    margin-bottom: 3px;
    text-indent: -1em;
    padding-left: 1em;
}

/* スケジュールリスト */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.schedule-item {
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
}

.schedule-item dt {
    width: auto;
    min-width: 120px;
    background: none;
    border: none;
    padding: 0;
    justify-content: flex-start;
    color: #333;
}

.schedule-item dd {
    width: auto;
    padding: 0;
    flex: 1;
    font-weight: bold;
}

/* 募集要項アクションボタン */
.guidelines-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.guidelines-btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 250px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.guidelines-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 1;
}

.guidelines-btn-apply {
    background-color: var(--primary-green);
}

.guidelines-btn-donate {
    background-color: var(--primary-gold);
}

/* メンバーシップセクション */
.membership-section {
    padding: 60px 0;
    text-align: center;
    background-image: url('../images/baseball-back.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* 薄いグリーン */
    border-top: 1px solid #ddd;
}

.membership-title,
.membership-section .section-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff;
    font-family: 'Noto Sans JP', sans-serif;
    text-shadow: 1px 1px 2px #333;
    /* 統一感を出すため変更 */
}

.membership-banner {
    margin-bottom: 20px;
    text-align: center;
}

.membership-banner a {
    display: inline-block;
    width: 100%;
    max-width: 800px;
    transition: transform 0.3s ease;
}

.membership-banner a img {
    width: 100%;
    height: auto;
    display: block;
}

.membership-banner a:hover {
    transform: scale(1.03);
    opacity: 1;
    /* Reset global a:hover opacity */
}

.membership-desc {
    font-size: 1.0rem;
    line-height: 1.6;
    color: rgb(255, 255, 255);
    text-shadow: 1px 1px 2px #333;
}

.pc-only {
    display: inline;
}

/* レスポンシブ (スマホ) */
@media (max-width: 768px) {
    .guidelines-row {
        flex-direction: column;
    }

    .guidelines-row dt {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
        padding: 15px;
        justify-content: flex-start;
        /* スマホは左寄せの方が見やすいかも */
        background-color: #f2efe6;
    }

    .guidelines-row dd {
        width: 100%;
        padding: 15px;
    }

    .guidelines-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .guidelines-btn {
        width: 100%;
        max-width: 300px;
    }

    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }



    .pc-only {
        display: none;
    }
}

/* イベントセクション */
.event-section {
    padding: 60px 0;
    background-color: #fff;
}

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

.event-info {
    width: 40%;
    text-align: left;
}

.event-section .section-subtitle {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.event-title {
    font-family: 'Patua One', serif;
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
    line-height: 1.2;
}

.event-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Slider Wrapper */
.event-slider-wrapper {
    width: 55%;
    position: relative;
}

.event-slider {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.event-slide {
    width: 100%;
}

.event-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Event Slider Controls */
.event-slider .swiper-button-prev,
.event-slider .swiper-button-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%);
    z-index: 10 !important;

    color: #fff !important;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
    width: 40px !important;
    height: 40px !important;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.event-slider .swiper-button-prev::after,
.event-slider .swiper-button-next::after {
    font-size: 20px !important;
    content: 'prev' !important;
}

.event-slider .swiper-button-next::after {
    content: 'next' !important;
}

.event-slider .swiper-pagination {
    position: absolute !important;
    bottom: 10px !important;
    left: 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    z-index: 10 !important;
}

.event-slider .swiper-pagination-bullet-active {
    background-color: var(--primary-gold) !important;
}

/* 運営組織セクション */
.organization-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.organization-logo {
    text-align: center;
    margin-bottom: 20px;
}

.organization-logo img {
    width: 150px;
    height: auto;
}

.organization-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    margin: 0 auto;
}

.org-list {
    display: flex;
    flex-direction: column;
}

.org-row {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

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

.org-row dt {
    width: 25%;
    font-weight: bold;
    color: #333;
    padding-right: 20px;
}

.org-row dd {
    width: 75%;
    color: #444;
}

.officer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.officer-list li {
    margin-bottom: 5px;
}

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

/* スポンサー企業セクション */
.sponsor-section {
    padding: 10px 0;
    background-color: #fff;
    border-top: 1px solid #eee;
}

.sponsor-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.sponsor-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(25% - 20px);
    max-width: 200px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sponsor-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sponsor-item img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

/* 関連団体セクション */
.related-team-section {
    padding: 5px 0 5px;
    background-color: #fff;
}

.related-team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.related-team-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(25% - 20px);
    max-width: 240px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-team-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-team-item img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
}

/* イベントセクションレスポンシブ */
@media (max-width: 768px) {
    .event-row {
        flex-direction: column;
        /* テキストを上に、スライダーを下に */
        gap: 20px;
    }

    .event-info {
        width: 100%;
    }

    .event-slider-wrapper {
        width: 100%;
    }
}

/* 運営組織レスポンシブ */
@media (max-width: 768px) {
    .sponsor-item {
        width: calc(50% - 10px);
    }

    .related-team-item {
        width: calc(50% - 10px);
    }

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

    .org-row dt {
        width: 100%;
        margin-bottom: 5px;
        color: var(--primary-gold);
    }

    .org-row dd {
        width: 100%;
        padding-left: 10px;
    }

    .organization-logo img {
        width: 100px;
    }

    .floating-banner {
        width: 100px !important;
        /* スマホサイズ：画面幅の5%（前回の50%縮小） */
        right: -2px !important;
        bottom: -2px !important;
    }
}

/* フローティングバナー */
.floating-banner {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    width: 200px;
    /* PCサイズ */
    transition: opacity 0.3s;
}

.floating-banner:hover {
    opacity: 0.8;
}

.floating-banner img {
    width: 100%;
    height: auto;
    display: block;
}


/* ==============================
   BLF News Base
   ※主要な上書きは blf-news-list.php 内で行います。
============================== */

.blf-news-sidebar {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.blf-news-heading {
    display: block;
    width: 100%;
    margin: 0 0 24px;
    padding: 0;
    text-align: center;
    font-size: 32px;
    line-height: 1.4;
    font-weight: 800;
    color: #000;
}

.blf-news-widget,
.blf-news-list {
    width: 100%;
    max-width: 100%;
    text-align: left;
    box-sizing: border-box;
}

.blf-news-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.blf-news-card {
    width: 100%;
    max-width: 100%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    text-align: left;
    box-sizing: border-box;
}

.blf-news-image-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.blf-news-image {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
    object-position: center center;
}

.blf-news-content {
    padding: 16px;
    text-align: left;
    box-sizing: border-box;
}

.blf-news-title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 700;
    color: #333;
    text-align: left;
}

.blf-news-date {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #777;
    text-align: left;
}

.blf-news-body {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    text-align: left;
}

.blf-news-actions {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.blf-news-button {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: #8a4f22;
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
    text-decoration: none;
}

.blf-news-button-pdf {
    background: #0e9f6e;
}

.blf-news-empty {
    padding: 20px;
    background: #fff;
    border-radius: 14px;
    text-align: center;
    color: #777;
    font-size: 14px;
}

@media screen and (max-width: 768px) {
    .blf-news-sidebar {
        margin-top: 56px;
        text-align: center;
    }

    .blf-news-heading {
        margin: 0 auto 32px;
        text-align: center;
        font-size: 2rem;
        line-height: 1.25;
        font-weight: 900;
        letter-spacing: 0;
    }

    .blf-news-list {
        gap: 14px;
    }

    .blf-news-card {
        display: flex;
        align-items: stretch;
        border-radius: 14px;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    }

    .blf-news-image-wrap {
        flex: 0 0 96px;
        width: 96px;
        max-width: 96px;
        min-height: 96px;
    }

    .blf-news-image {
        width: 96px;
        min-width: 96px;
        max-width: 96px;
        height: 100%;
        min-height: 96px;
        aspect-ratio: auto;
    }

    .blf-news-content {
        flex: 1;
        min-width: 0;
        padding: 10px 12px;
    }

    .blf-news-title {
        margin: 0 0 5px;
        font-size: 16px;
        line-height: 1.45;
    }

    .blf-news-date {
        margin: 0 0 5px;
        font-size: 14px;
        line-height: 1.4;
    }

    .blf-news-body {
        font-size: 14px;
        line-height: 1.55;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .blf-news-actions {
        margin-top: 8px;
        gap: 6px;
    }

    .blf-news-button {
        padding: 5px 10px;
        font-size: 11px;
    }
}

@media screen and (max-width: 480px) {
    .blf-news-heading {
        font-size: 2rem;
    }

    .blf-news-image-wrap {
        flex-basis: 82px;
        width: 82px;
        max-width: 82px;
        min-height: 82px;
    }

    .blf-news-image {
        width: 82px;
        min-width: 82px;
        max-width: 82px;
        min-height: 82px;
    }

    .blf-news-content {
        padding: 9px 10px;
    }

    .blf-news-title {
        font-size: 15px;
    }

    .blf-news-date {
        font-size: 13px;
    }

    .blf-news-body {
        font-size: 13px;
    }
}


/* ==============================
   BLF News Final Mobile Text Only
   スマホ投稿カード内の文字サイズ調整
============================== */
@media screen and (max-width: 768px) {
    .blf-news-sidebar .blf-news-heading {
        font-size: 2rem !important;
        line-height: 1.25 !important;
        letter-spacing: 0 !important;
    }

    .blf-news-sidebar .blf-news-title {
        font-size: 16px !important;
        line-height: 1.45 !important;
        margin-bottom: 5px !important;
    }

    .blf-news-sidebar .blf-news-date {
        font-size: 14px !important;
        line-height: 1.4 !important;
        margin-bottom: 5px !important;
    }

    .blf-news-sidebar .blf-news-body {
        font-size: 14px !important;
        line-height: 1.55 !important;
    }
}

@media screen and (max-width: 480px) {
    .blf-news-sidebar .blf-news-heading {
        font-size: 2rem !important;
    }

    .blf-news-sidebar .blf-news-title {
        font-size: 15px !important;
    }

    .blf-news-sidebar .blf-news-date {
        font-size: 13px !important;
    }

    .blf-news-sidebar .blf-news-body {
        font-size: 13px !important;
    }
}
