/* 唐津JC 公開サイト CSS */
/* 福岡JCスタイル参考 */

/* Google Fonts - Noto Sans JP */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

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

:root {
    /* primary-color と secondary-color は public_header.php で設定される */
    --text-color: #333;
    --text-light: #666;
    --bg-gray: #f5f5f5;
    --border-color: #e0e0e0;
}

body {
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-color);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    writing-mode: horizontal-tb;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* ========================================
   ヘッダー
======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    height: 90px;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: stretch;
    height: 100%;
}

/* ロゴ（2段にまたがる） */
.logo {
    display: flex;
    align-items: center;
    padding: 15px 30px 15px 0;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.05em;
}

/* 右側: 2段構成 */
.header-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 上段: SNS・ボタン */
.header-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    padding: 8px 0;
}

/* ナビゲーション */
.main-nav {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 0;
}

.main-nav a {
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 100%;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    letter-spacing: 0.05em;
    position: relative;
    transition: color 0.3s;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

/* ドロップダウン */
.main-nav .has-dropdown {
    position: relative;
}


.main-nav .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 100;
    display: block;
}

.main-nav .has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
}

.main-nav .dropdown li {
    display: block;
}

.main-nav .dropdown a {
    display: block;
    padding: 12px 20px;
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
}

.main-nav .dropdown a::after {
    display: none;
}

.main-nav .dropdown li:last-child a {
    border-bottom: none;
}

.main-nav .dropdown a:hover {
    background: var(--bg-gray);
}

.main-nav .mobile-only {
    display: none;
}


/* ヘッダーボタン */
.header-buttons {
    display: flex;
    gap: 10px;
}

.header-btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
    border-radius: 4px;
    transition: all 0.3s;
}

.header-btn-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.header-btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.header-btn-primary {
    background: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
}

.header-btn-primary:hover {
    opacity: 0.85;
}

/* SNSリンク */
.sns-links {
    display: flex;
    gap: 8px;
}

.sns-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: opacity 0.3s;
}

.sns-links a:hover {
    opacity: 0.7;
}

/* SNS公式カラー */
.sns-links a.sns-facebook {
    background: #1877F2;
    color: #fff;
}

.sns-links a.sns-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
}

.sns-links a.sns-youtube {
    background: #FF0000;
    color: #fff;
}

.sns-links a.sns-line {
    background: #06C755;
    color: #fff;
}

.sns-links svg {
    width: 14px;
    height: 14px;
}

/* モバイル用ボトムナビ */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 10px;
    transition: color 0.3s;
}

.mobile-nav-item svg {
    width: 24px;
    height: 24px;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: var(--primary-color);
}

/* ========================================
   メインコンテンツ
======================================== */
.main-content {
    padding-top: 90px;
}

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

/* セクション */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title-en {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.2em;
    margin-bottom: 10px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 0.1em;
}

/* ========================================
   トップページ ヒーロー
======================================== */
.hero {
    position: relative;
    height: 75vh;
    min-height: 500px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

/* ヒーロースライダー */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.hero-slider-track {
    display: flex;
    height: 100%;
    animation: heroScroll 30s linear infinite;
}

.hero-slide {
    flex-shrink: 0;
    width: 80vw;
    height: 100%;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.9;
}

@keyframes heroScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(var(--translate-amount, -240vw));
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero-year {
    font-size: 14px;
    letter-spacing: 0.3em;
    opacity: 0.8;
    margin-bottom: 20px;
}

.hero-slogan {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    line-height: 1.4;
}

.hero-slogan-sub {
    font-size: clamp(14px, 2vw, 18px);
    line-height: 2;
    opacity: 0.9;
}

.hero-slogan-image {
    width: 100%;
    height: auto;
    max-width: 1000px;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 10px var(--primary-color)) drop-shadow(0 0 20px var(--primary-color)) drop-shadow(0 0 40px var(--primary-color)) drop-shadow(0 0 60px var(--primary-color)) drop-shadow(0 0 80px var(--primary-color));
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 10px var(--primary-color)) drop-shadow(0 0 20px var(--primary-color)) drop-shadow(0 0 40px var(--primary-color)) drop-shadow(0 0 60px var(--primary-color)) drop-shadow(0 0 80px var(--primary-color));
    }
    50% {
        filter: drop-shadow(0 0 15px var(--primary-color)) drop-shadow(0 0 30px var(--primary-color)) drop-shadow(0 0 60px var(--primary-color)) drop-shadow(0 0 100px var(--primary-color)) drop-shadow(0 0 140px var(--primary-color));
    }
}

/* ========================================
   理事長セクション
======================================== */
.president-card {
    display: flex;
    justify-content: center;
    gap: 80px;
    max-width: 900px;
    margin: 0 auto;
}

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

.president-photo-wrap {
    margin-bottom: 15px;
}

.president-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
}

.president-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--bg-gray);
}

.president-slogan-wrap {
    margin-bottom: 15px;
}

.president-slogan-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: contain;
    background: var(--primary-color);
}

.president-slogan-year {
    font-size: 13px;
    color: var(--text-light);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.president-slogan-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.05em;
}

.president-slogan-sub {
    font-size: 14px;
    color: var(--secondary-color);
    line-height: 1.8;
    margin-top: 10px;
}

.president-org {
    font-size: 14px;
    color: var(--primary-color);
    letter-spacing: 0.1em;
    margin-bottom: 5px;
}

.president-label {
    font-size: 13px;
    color: var(--text-light);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.president-name {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.president-message {
    font-size: 15px;
    line-height: 2;
    color: var(--text-light);
    margin-bottom: 25px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.85;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ========================================
   お知らせセクション
======================================== */
.news-list {
    list-style: none;
    border-top: 1px solid var(--border-color);
}

.news-item {
    border-bottom: 1px solid var(--border-color);
}

.news-item a {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    transition: opacity 0.3s;
}

.news-item a:hover {
    opacity: 0.7;
}

.news-date {
    font-size: 13px;
    color: var(--text-light);
    flex-shrink: 0;
    width: 100px;
}

.news-title {
    font-size: 15px;
    color: var(--text-color);
}

.news-more {
    text-align: center;
    margin-top: 40px;
}

/* トップページお知らせ */
.top-news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.top-news-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    transition: box-shadow 0.3s, transform 0.3s;
}

.top-news-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.top-news-thumbnail {
    width: 100%;
    aspect-ratio: 4/3;
}

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

.top-news-no-image {
    width: 100%;
    height: 100%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
}

.top-news-content {
    padding: 15px;
    text-align: center;
}

.top-news-date {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.top-news-title {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
}

/* お知らせ一覧ページ */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.topics-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    transition: box-shadow 0.3s, transform 0.3s;
}

.topics-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.topics-thumbnail {
    width: 100%;
    aspect-ratio: 4/3;
}

.topics-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topics-no-image {
    width: 100%;
    height: 100%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
}

.topics-content {
    padding: 15px;
    text-align: center;
}

.topics-date {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.topics-title {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
}

/* ========================================
   クイックリンク
======================================== */
.quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.quick-link-item {
    display: block;
    background: var(--bg-gray);
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s;
}

.quick-link-item:hover {
    background: var(--primary-color);
    color: #fff;
}

.quick-link-item:hover .quick-link-icon {
    color: #fff;
}

.quick-link-icon {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: color 0.3s;
}

.quick-link-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* ========================================
   フッター
======================================== */
.site-footer {
    background: var(--primary-color);
    color: #fff;
}

.footer-main {
    padding: 30px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-sitemap h3,
.footer-links-external h3 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-sitemap ul,
.footer-links-external ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.footer-sitemap a,
.footer-links-external a {
    font-size: 12px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-sitemap a:hover,
.footer-links-external a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 15px 0;
    text-align: center;
}

.footer-org-info {
    font-size: 11px;
    opacity: 0.7;
    margin-bottom: 5px;
}

.footer-copyright {
    font-size: 11px;
    opacity: 0.5;
}

/* フッターSNS（モバイル用） */
.footer-sns {
    display: none;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-sns-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: opacity 0.3s;
}

.footer-sns-link svg {
    width: 20px;
    height: 20px;
}

.footer-sns-link:hover {
    opacity: 0.7;
}

.footer-sns-link.sns-facebook {
    background: #1877F2;
    color: #fff;
}

.footer-sns-link.sns-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
}

.footer-sns-link.sns-youtube {
    background: #FF0000;
    color: #fff;
}

.footer-sns-link.sns-line {
    background: #06C755;
    color: #fff;
}

/* ========================================
   ページタイトル
======================================== */
.page-hero {
    background: var(--primary-color);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.page-hero-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.15em;
}

/* ========================================
   理事長所信ヒーロー（2カラム）
======================================== */
.greeting-hero {
    margin-top: -110px;
    padding-top: 110px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.greeting-hero-title-area {
    text-align: center;
    color: #fff;
    padding: 60px 20px;
}

.greeting-hero-label {
    display: inline-block;
    padding: 8px 40px;
    background: #fff;
    color: var(--text-color);
    font-size: 14px;
    letter-spacing: 0.1em;
    margin-bottom: 30px;
}

.greeting-hero-title {
    font-size: 42px;
    font-weight: 400;
    letter-spacing: 0.15em;
    line-height: 1.4;
}

/* 理事長プロフィールセクション */
.president-profile-section {
    padding: 60px 0;
    background: var(--bg-gray);
}

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

.president-profile .president-photo-wrap {
    margin-bottom: 20px;
}

.president-profile .president-photo {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
}

.president-profile .president-org {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.president-profile .president-year {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.president-profile .president-name {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-color);
}

/* スローガンセクション */
.slogan-section {
    padding: 60px 0;
    background: #fff;
}

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

.slogan-content .slogan-image {
    max-width: 900px;
    height: auto;
}

.slogan-content .slogan-label {
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.slogan-content .slogan-main-text {
    margin-top: 10px;
    font-size: 44px;
    font-weight: 700;
    color: var(--primary-color);
}

.slogan-content .slogan-sub-text {
    margin-top: 5px;
    font-size: 36px;
    color: var(--primary-color);
}

/* 所信タイトルバナー */
.belief-banner {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 40px 20px;
}

.belief-banner-org {
    font-size: 14px;
    margin-bottom: 10px;
}

.belief-banner-title {
    font-size: 24px;
    font-weight: 700;
}


/* ========================================
   メンバー紹介ページ
======================================== */

/* ヒーロー */
.members-hero {
    margin-top: -110px;
    padding-top: 110px;
    background: var(--primary-color);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.members-hero-inner {
    text-align: center;
    color: #fff;
    padding: 60px 20px;
}

.members-hero-label {
    display: inline-block;
    padding: 8px 40px;
    background: #fff;
    color: var(--text-color);
    font-size: 14px;
    letter-spacing: 0.1em;
    margin-bottom: 30px;
}

.members-hero-title {
    font-size: 42px;
    font-weight: 400;
    letter-spacing: 0.15em;
    line-height: 1.4;
}

/* セクション */
.members-section {
    padding: 60px 0 80px;
}

.members-section-provisional {
    background: var(--bg-gray);
}

/* タブ */
.members-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
}

.members-tab {
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s;
}

.members-tab:first-child {
    border-radius: 4px 0 0 4px;
}

.members-tab:last-child {
    border-radius: 0 4px 4px 0;
    border-left: none;
}

.members-tab.active {
    background: var(--primary-color);
    color: #fff;
}

.members-tab:hover:not(.active) {
    background: rgba(26, 58, 92, 0.1);
}

.members-tab-content {
    display: none;
}

.members-tab-content.active {
    display: block;
}

/* 委員会グループ */
.committee-group {
    margin-bottom: 50px;
}

.committee-group-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    background: var(--primary-color);
    padding: 15px 20px;
    margin-bottom: 25px;
    text-align: center;
    border-radius: 4px;
}

/* メンバーグリッド */
.members-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 35px 25px;
}

/* メンバーカード */
.member-card {
    text-align: center;
}

.member-photo-wrap {
    position: relative;
    margin-bottom: 15px;
}

.member-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.member-photo-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.member-photo-placeholder span {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
}

.member-info {
    padding: 0 5px;
}

.member-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: 0.05em;
}

.members-empty {
    text-align: center;
    color: var(--text-light);
    padding: 60px 20px;
}

/* 仮入会員ヘッダー */
.provisional-header {
    text-align: center;
    margin-bottom: 40px;
}

.provisional-label {
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.provisional-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.1em;
}

/* ========================================
   唐津青年会議所についてページ
======================================== */

/* ヒーロー */
.about-hero {
    margin-top: -110px;
    padding-top: 110px;
    background: var(--primary-color);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-hero-inner {
    text-align: center;
    color: #fff;
    padding: 60px 20px;
}

.about-hero-label {
    display: inline-block;
    padding: 8px 40px;
    background: #fff;
    color: var(--text-color);
    font-size: 14px;
    letter-spacing: 0.1em;
    margin-bottom: 30px;
}

.about-hero-title {
    font-size: 42px;
    font-weight: 400;
    letter-spacing: 0.15em;
    line-height: 1.4;
}

/* 歩み画像 */
.about-history-image {
    width: 100%;
    text-align: center;
    background: #f8f8f8;
}

.about-history-image img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 本文 */
.about-section {
    padding: 60px 0 80px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto 60px;
}

.about-content p {
    font-size: 15px;
    line-height: 2;
    color: var(--text-color);
    margin-bottom: 1.5em;
}

/* 沿革 */
.about-history {
    max-width: 800px;
    margin: 0 auto;
}

.about-history-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.about-history-list {
    display: table;
    margin: 0 auto;
}

.about-history-item {
    display: table-row;
}

.about-history-item dt {
    display: table-cell;
    font-weight: 700;
    color: var(--primary-color);
    text-align: right;
    padding: 15px 30px 15px 0;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.about-history-item dd {
    display: table-cell;
    color: var(--text-color);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

/* 育LOM・SDGsリンク */
.about-links-section {
    padding: 60px 0;
    background: var(--bg-gray);
}

.about-links {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.about-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    transition: opacity 0.3s;
}

.about-link-item:hover {
    opacity: 0.7;
}

.about-link-item img {
    max-width: 200px;
    height: auto;
    margin-bottom: 15px;
}

.about-link-item p {
    font-size: 13px;
    text-align: center;
    line-height: 1.8;
    color: var(--text-light);
}

/* ========================================
   JCニュースページ
======================================== */

/* ヒーロー */
.news-hero {
    margin-top: -110px;
    padding-top: 110px;
    background: var(--primary-color);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-hero-inner {
    text-align: center;
    color: #fff;
    padding: 60px 20px;
}

.news-hero-label {
    display: inline-block;
    padding: 8px 40px;
    background: #fff;
    color: var(--text-color);
    font-size: 14px;
    letter-spacing: 0.1em;
    margin-bottom: 30px;
}

.news-hero-title {
    font-size: 42px;
    font-weight: 400;
    letter-spacing: 0.15em;
    line-height: 1.4;
}

/* ニュース一覧 */
.news-section {
    padding: 60px 0 80px;
}

.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    transition: background 0.2s;
}

.news-item:hover {
    background: #f8f9fa;
    padding-left: 10px;
    padding-right: 10px;
    margin-left: -10px;
    margin-right: -10px;
}

.news-date {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.news-title {
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
}

.news-icon {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #e74c3c;
    font-size: 12px;
    font-weight: bold;
}

.news-empty {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

/* ========================================
   入会案内ページ
======================================== */

/* ヒーロー */
.join-hero {
    margin-top: -110px;
    padding-top: 110px;
    background: var(--primary-color);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.join-hero-inner {
    text-align: center;
    color: #fff;
    padding: 60px 20px;
}

.join-hero-label {
    display: inline-block;
    padding: 8px 40px;
    background: #fff;
    color: var(--text-color);
    font-size: 14px;
    letter-spacing: 0.1em;
    margin-bottom: 30px;
}

.join-hero-title {
    font-size: 42px;
    font-weight: 400;
    letter-spacing: 0.15em;
    line-height: 1.4;
}

/* セクション */
.join-section {
    padding: 60px 0;
}

.join-section-gray {
    background: var(--bg-gray);
}

.join-block {
    max-width: 800px;
    margin: 0 auto;
}

.join-block-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.join-block-text {
    font-size: 15px;
    line-height: 2;
    color: var(--text-color);
}

.join-block-note {
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-light);
    margin-top: 15px;
}

/* 入会資格リスト */
.join-list {
    list-style: none;
    counter-reset: join-counter;
}

.join-list li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.8;
    counter-increment: join-counter;
}

.join-list li::before {
    content: counter(join-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

/* 入会手続き */
.join-procedure {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.join-procedure-item {
    background: var(--bg-gray);
    padding: 25px 30px;
    border-radius: 8px;
}

.join-procedure-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.join-procedure-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-color);
}

.join-tel {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: underline;
}

/* 唐津青年会議所とはセクション */
.about-jc-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-jc-video {
    flex: 1;
    max-width: 500px;
}

.video-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    aspect-ratio: 16/9;
    background: #000;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.video-wrapper.playing video {
    display: block;
}

.video-wrapper.playing .video-thumbnail,
.video-wrapper.playing .video-play-btn {
    display: none;
}

/* 一時停止中は再生ボタンを表示 */
.video-wrapper.playing.paused .video-play-btn {
    display: flex;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background 0.3s;
    color: var(--primary-color);
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #fff;
}

.about-jc-text {
    flex: 1;
}

.about-jc-text p {
    font-size: 16px;
    line-height: 2;
    margin-bottom: 20px;
    color: var(--text-color);
}

.about-jc-text .about-jc-cta {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color) !important;
    margin-bottom: 25px;
}

.about-jc-buttons {
    display: flex;
    gap: 15px;
}

.about-jc-buttons .btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: opacity 0.3s;
}

.about-jc-buttons .btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.about-jc-buttons .btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.about-jc-buttons .btn:hover {
    opacity: 0.8;
}

/* JCニュースグリッド（トップページ用） */
.jc-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.jc-news-item {
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s;
}

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

.jc-news-thumbnail {
    aspect-ratio: 3/4;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

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

.jc-news-title {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========================================
   レスポンシブ
======================================== */

/* タブレット (1200px以下) */
@media (max-width: 1200px) {
    .members-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px 20px;
    }
}

/* タブレット (992px以下) */
@media (max-width: 992px) {
    /* ヘッダー */
    .site-header {
        height: 60px;
    }

    .header-inner {
        height: 100%;
        align-items: center;
        justify-content: center;
    }

    .logo {
        padding: 10px 0;
    }

    .logo img {
        height: 35px;
    }

    .header-main {
        display: none;
    }

    /* モバイルボトムナビ表示 */
    .mobile-nav {
        display: flex;
        justify-content: space-around;
    }

    /* フッターSNS表示 */
    .footer-sns {
        display: flex;
    }

    /* メインコンテンツ */
    .main-content {
        padding-top: 60px;
        padding-bottom: 70px;
    }


    /* ヒーロー共通 */
    .greeting-hero,
    .members-hero,
    .about-hero,
    .join-hero,
    .news-hero {
        margin-top: -60px;
        padding-top: 60px;
        min-height: 200px;
    }

    .greeting-hero-title,
    .members-hero-title,
    .about-hero-title,
    .join-hero-title,
    .news-hero-title {
        font-size: 28px;
    }

    /* グリッド */
    .members-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px 15px;
    }

    .jc-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .top-news-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .quick-links {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 理事長 */
    .president-card {
        flex-direction: column;
        gap: 40px;
    }

    .president-photo,
    .president-slogan-img {
        width: 150px;
        height: 150px;
    }

    /* フッター */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .site-footer {
        padding-bottom: 70px;
    }
}

/* スマホ (768px以下) */
@media (max-width: 768px) {
    /* セクション */
    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 22px;
    }

    /* ヒーロー */
    .hero {
        height: 40vh;
        min-height: 250px;
    }

    .hero-slogan-image {
        max-width: 280px;
        max-height: 30vh;
    }

    /* スローガン（理事長所信タブ） */
    .slogan-section {
        padding: 30px 0;
    }

    .slogan-content .slogan-image {
        max-width: 100%;
        padding: 0 15px;
    }

    .slogan-content .slogan-main-text {
        font-size: 22px;
        padding: 0 10px;
    }

    .slogan-content .slogan-sub-text {
        font-size: 18px;
        padding: 0 10px;
    }

    /* メンバー */
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .member-photo,
    .member-photo-placeholder {
        width: 80px;
        height: 80px;
    }

    .member-photo-placeholder span {
        font-size: 28px;
    }

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

    .members-tabs {
        flex-wrap: wrap;
    }

    .members-tab {
        padding: 10px 20px;
        font-size: 13px;
    }

    /* 唐津JCとは */
    .about-jc-content {
        flex-direction: column;
    }

    .about-jc-video {
        max-width: 100%;
        width: 100%;
    }

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

    .about-jc-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* ニュース */
    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 15px 0;
    }

    .news-date {
        font-size: 12px;
        width: auto;
    }

    .news-title {
        font-size: 14px;
    }

    /* 沿革 */
    .about-history-item {
        display: block;
    }

    .about-history-item dt {
        display: block;
        text-align: left;
        padding: 10px 0 5px;
        border-bottom: none;
    }

    .about-history-item dd {
        display: block;
        padding: 0 0 10px;
        border-bottom: 1px solid var(--border-color);
    }
}

/* スマホ小 (576px以下) */
@media (max-width: 576px) {
    .jc-news-grid {
        gap: 15px;
    }

    .jc-news-title {
        font-size: 12px;
    }

    .quick-links {
        grid-template-columns: 1fr;
    }

    /* お知らせスワイプ */
    .top-news-slider {
        margin: 0 -20px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-snap-type: x mandatory;
    }

    .top-news-slider::-webkit-scrollbar {
        display: none;
    }

    .top-news-list {
        display: flex;
        gap: 15px;
        padding: 0 20px;
    }

    .top-news-item {
        width: calc(100vw - 80px);
        flex-shrink: 0;
        scroll-snap-align: center;
    }

    /* お知らせ一覧ページ スワイプ */
    .topics-slider {
        margin: 0 -20px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-snap-type: x mandatory;
    }

    .topics-slider::-webkit-scrollbar {
        display: none;
    }

    .topics-grid {
        display: flex;
        gap: 15px;
        padding: 0 20px;
    }

    .topics-item {
        width: calc(100vw - 80px);
        flex-shrink: 0;
        scroll-snap-align: center;
    }

    .topics-date {
        font-size: 14px;
    }

    .topics-title {
        font-size: 12px;
    }

    .topics-content {
        padding: 10px;
    }
}

/* スマホ極小 (480px以下) */
@media (max-width: 480px) {
    .about-jc-buttons {
        flex-direction: column;
    }

    .about-jc-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

/* ========================================
   お知らせページ タブ（topics.php）
======================================== */
.topics-tabs-section {
    background: #fff;
    padding: 30px 0 0;
}

.topics-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    border-bottom: 2px solid var(--border-color);
}

.topics-tab {
    padding: 15px 40px;
    font-size: 15px;
    font-weight: 500;
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.topics-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.topics-tab:hover {
    color: var(--primary-color);
}

.topics-tab.active {
    color: var(--primary-color);
    font-weight: 700;
}

.topics-tab.active::after {
    transform: scaleX(1);
}

.topics-tab-content {
    display: none;
}

.topics-tab-content.active {
    display: block;
}

/* JCニュースグリッド（topics.php内） */
.jcnews-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.jcnews-item {
    cursor: pointer;
    transition: transform 0.3s;
}

.jcnews-item:hover {
    transform: translateY(-5px);
}

.jcnews-thumbnail {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

.jcnews-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jcnews-hover {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.jcnews-item:hover .jcnews-hover {
    opacity: 1;
}

.jcnews-hover span {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 20px;
    border: 2px solid #fff;
    border-radius: 4px;
}

.jcnews-title {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    color: var(--text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 事業紹介グリッド */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* PDFモーダル */
.pdf-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pdf-modal.active {
    display: flex;
}

.pdf-modal-content {
    background: #fff;
    border-radius: 8px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pdf-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-gray);
}

.pdf-modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdf-modal-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pdf-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pdf-nav-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.pdf-nav-btn:hover:not(:disabled) {
    background: var(--bg-gray);
}

.pdf-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#pdf-page-info {
    font-size: 13px;
    color: var(--text-light);
    min-width: 60px;
    text-align: center;
}

.pdf-modal-btn {
    padding: 8px 16px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s;
}

.pdf-modal-btn:hover {
    opacity: 0.85;
}

.pdf-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 28px;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.pdf-modal-close:hover {
    color: var(--text-color);
}

.pdf-modal-body {
    flex: 1;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
    padding: 20px;
}

.pdf-loading {
    color: #fff;
    font-size: 14px;
}

.pdf-loading.hidden {
    display: none;
}

#pdf-canvas {
    max-width: 100%;
    height: auto;
}

/* レスポンシブ: タブ・JCニュース */
@media (max-width: 992px) {
    .jcnews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .topics-tab {
        padding: 12px 20px;
        font-size: 13px;
    }

    .jcnews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .pdf-modal-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .pdf-modal-header h3 {
        width: 100%;
    }

    .pdf-modal-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    .topics-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
        padding: 0 10px;
    }

    .topics-tabs::-webkit-scrollbar {
        display: none;
    }

    .topics-tab {
        padding: 12px 15px;
        font-size: 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* JCニュースもスワイプ */
    .jcnews-grid {
        display: flex;
        gap: 15px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-snap-type: x mandatory;
        padding: 0 20px;
        margin: 0 -20px;
    }

    .jcnews-grid::-webkit-scrollbar {
        display: none;
    }

    .jcnews-item {
        width: 45vw;
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   組織図タブ
======================================== */
.org-main-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.org-section {
    margin-bottom: 50px;
}

.org-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 25px;
}

/* 執行部グリッド */
.org-exec-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.org-exec-card {
    background: var(--bg-gray);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 25px;
    text-align: center;
    min-width: 150px;
}

.org-exec-pos {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.org-exec-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
}

/* 委員会グリッド */
.org-committees-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.org-committee-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.org-committee-name {
    background: var(--primary-color);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 15px;
    text-align: center;
}

.org-committee-members {
    padding: 15px;
}

.org-member-item {
    padding: 6px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 13px;
}

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

.org-member-pos {
    display: inline-block;
    background: var(--bg-gray);
    color: var(--text-light);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
    margin-right: 8px;
}

.org-member-name {
    font-weight: 500;
}

/* 組織図シンプル表示 */
.org-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.org-members {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.org-member {
    background: var(--bg-gray);
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
}

.org-position {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
    margin-right: 8px;
}

.org-name {
    font-weight: 500;
}

/* 年間スケジュールタブ */
.schedule-main-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

/* スマホ対応 */
@media (max-width: 768px) {
    .org-exec-grid {
        gap: 10px;
    }

    .org-exec-card {
        padding: 12px 15px;
        min-width: 120px;
    }

    .org-committees-grid {
        grid-template-columns: 1fr;
    }

    .org-main-title,
    .schedule-main-title {
        font-size: 20px;
    }
}

/* ========================================
   委員会タブ切り替え
======================================== */
.committee-tabs-wrap {
    margin-bottom: 30px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.committee-tabs {
    display: flex;
    justify-content: center;
    gap: 5px;
    min-width: max-content;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
}

.committee-tab {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    background: var(--bg-gray);
    border: none;
    border-radius: 8px 8px 0 0;
    color: var(--text-light);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.committee-tab:hover {
    background: #e8e8e8;
    color: var(--primary-color);
}

.committee-tab.active {
    background: var(--primary-color);
    color: #fff;
}

/* 委員会詳細 */
.committee-detail {
    display: none;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0 0 8px 8px;
    padding: 40px;
}

.committee-detail.active {
    display: block;
}

.committee-detail-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.committee-detail-year {
    font-size: 14px;
    color: var(--text-light);
    margin: 0 0 5px;
}

.committee-detail-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.committee-detail-officers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
}

.officer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 120px;
}

.officer-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 10px;
    background: var(--bg-gray);
}

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

.officer-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-light);
    background: var(--bg-gray);
}

.officer-position {
    font-size: 11px;
    color: #fff;
    background: var(--primary-color);
    padding: 3px 12px;
    border-radius: 15px;
    margin-bottom: 5px;
}

.officer-name {
    font-size: 14px;
    font-weight: 500;
}

.committee-detail-section {
    margin-bottom: 40px;
}

.committee-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    text-align: center;
}

.committee-section-content {
    text-align: left;
}

.committee-section-content p {
    font-size: 15px;
    line-height: 2;
    color: var(--text-color);
}

.committee-plan-list {
    margin: 0 auto;
    padding-left: 0;
    list-style: none;
    display: inline-block;
    text-align: left;
}

.committee-detail-section:has(.committee-plan-list) {
    text-align: center;
}

.committee-plan-list li {
    font-size: 15px;
    line-height: 1.8;
    padding: 8px 0 8px 25px;
    border-bottom: 1px dashed var(--border-color);
    position: relative;
}

.committee-plan-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 15px;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

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

.committee-members-list {
    font-size: 15px;
    line-height: 2;
    color: var(--text-color);
}

.committee-detail-section .org-member {
    background: var(--primary-color);
    color: #fff;
}


@media (max-width: 768px) {
    .committee-tabs {
        padding: 0 10px;
    }

    .committee-tab {
        padding: 8px 12px;
        font-size: 12px;
    }

    .committee-detail {
        padding: 20px 15px;
    }

    .committee-detail-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .committee-detail-year {
        font-size: 12px;
    }

    .committee-detail-title {
        font-size: 18px;
    }

    .committee-detail-officers {
        gap: 12px;
    }

    .officer-card {
        width: 80px;
    }

    .officer-photo {
        width: 60px;
        height: 60px;
    }

    .officer-photo-placeholder {
        font-size: 22px;
    }

    .officer-position {
        font-size: 10px;
        padding: 2px 8px;
    }

    .officer-name {
        font-size: 12px;
    }

    .committee-detail-section {
        margin-bottom: 30px;
    }

    .committee-section-title {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .committee-section-content p {
        font-size: 14px;
        line-height: 1.8;
    }

    .committee-plan-list li {
        font-size: 14px;
        padding: 6px 0 6px 20px;
    }

    .committee-plan-list li::before {
        top: 12px;
        width: 6px;
        height: 6px;
    }
}

/* ========================================
   組織図
======================================== */
.org-chart {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.org-chart-row {
    display: flex;
    justify-content: center;
}

.org-chart-box {
    padding: 12px 40px;
    font-weight: bold;
    font-size: 16px;
    border-radius: 4px;
    text-align: center;
}

.org-chart-primary {
    background: var(--primary-color);
    color: white;
}

.org-chart-line {
    width: 2px;
    height: 20px;
    background: var(--primary-color);
    margin: 0 auto;
}

.org-chart-top-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
}

.org-chart-shikkoubu {
    padding: 20px;
    position: relative;
    min-width: 300px;
    max-width: 700px;
    margin: 0 auto;
}

.org-chart-shikkoubu-border {
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 70px;
    border: 2px dashed var(--primary-color);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}

.org-chart-shikkoubu-border::before {
    content: '';
    position: absolute;
    top: 68px;
    left: 50%;
    transform: translateX(-50%);
    width: 650px;
    height: calc(100% + 230px);
    border: 2px dashed var(--primary-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.org-chart-shikkoubu-label {
    position: absolute;
    top: 58px;
    left: 50%;
    transform: translateX(-50%) translateX(-305px);
    background: white;
    padding: 0 10px;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 14px;
}

.org-chart-person {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px 15px;
    text-align: center;
    min-width: 120px;
}


.org-chart-center-row {
    display: flex;
    justify-content: center;
}

.org-chart-position {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.org-chart-name {
    display: block;
    font-weight: bold;
    font-size: 14px;
}

.org-chart-shitsucho-row {
    display: grid;
    grid-template-columns: 1fr auto auto auto 1fr;
    gap: 15px;
}

.org-chart-shitsucho-row > *:nth-child(1) {
    grid-column: 2;
    justify-self: end;
}

.org-chart-shitsucho-row > *:nth-child(2) {
    grid-column: 3;
}

.org-chart-shitsucho-row > *:nth-child(3) {
    grid-column: 4;
    justify-self: start;
}

.org-chart-shitsucho-row > *:nth-child(4) {
    grid-column: 5;
    justify-self: start;
}

/* 副理事長→室長 ツリー構造 */
.org-chart-tree {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
}

.org-chart-tree-line-down {
    width: 2px;
    height: 20px;
    background: var(--primary-color);
}

.org-chart-tree-line-horizontal {
    display: none;
}

.org-chart-tree-children {
    display: flex;
    justify-content: center;
    gap: 0;
    position: relative;
}

.org-chart-tree-children::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    background: var(--primary-color);
    width: calc(100% - 60px);
}

.org-chart-tree-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
}

.org-chart-tree-child .org-chart-tree-line-to-child {
    width: 2px;
    height: 15px;
    background: var(--primary-color);
}


.org-chart-top-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
}

.org-chart-top-row > .org-chart-person {
    align-self: flex-start;
    margin-top: 30px;
}

.org-chart-kanji-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: flex-start;
    margin-top: 30px;
}

.org-chart-top-row-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.org-chart-top-row-inner > *:first-child {
    justify-self: end;
}

.org-chart-top-row-inner > *:last-child {
    justify-self: start;
}



.org-chart-kanji-inner {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.org-chart-committees {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.org-chart-committee {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    min-width: 180px;
    flex: 1;
}

.org-chart-committee-name {
    background: var(--primary-color);
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    text-align: center;
    font-size: 14px;
}

.org-chart-committee-members {
    padding: 15px;
    background: white;
}

.org-chart-member {
    padding: 5px 0;
    border-bottom: 1px solid var(--bg-gray);
}

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

.org-chart-member-position {
    display: inline-block;
    font-size: 11px;
    color: white;
    background: var(--primary-color);
    padding: 2px 8px;
    border-radius: 3px;
    margin-right: 8px;
}

.org-chart-member-name {
    font-size: 13px;
}

@media (max-width: 768px) {
    .org-chart {
        padding: 20px 10px;
    }
    .org-chart-box {
        padding: 10px 20px;
        font-size: 14px;
    }
    .org-chart-top-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .org-chart-shikkoubu {
        min-width: auto;
        width: 100%;
    }
    .org-chart-outside {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    .org-chart-shitsucho-row {
        gap: 10px;
    }
    .org-chart-person {
        min-width: 100px;
        padding: 8px 10px;
    }
    .org-chart-committees {
        flex-direction: column;
        gap: 15px;
    }
    .org-chart-committee {
        min-width: auto;
        width: 100%;
    }
}

/* 委員会カラム構造 */
.org-chart-committee-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 180px;
}

.org-chart-tantou {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

.org-chart-tantou-person {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px 12px;
    text-align: center;
    min-width: 100px;
}

.org-chart-line-short {
    width: 2px;
    height: 15px;
    background: var(--primary-color);
}

/* 委員会横並び（5列対応） */
.org-chart-committees {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
}

.org-chart-committee {
    min-width: 150px;
    flex: 1;
}

@media (max-width: 768px) {
    .org-chart-committees {
        flex-wrap: wrap;
    }
    .org-chart-committee-column {
        min-width: 140px;
        flex: 1 1 45%;
    }
}

/* ========================================
   年間スケジュール
======================================== */
.schedule-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 80px 20px 60px;
    text-align: center;
    color: white;
    margin-top: 90px;
}

.schedule-hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.schedule-hero-label {
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.schedule-hero-title {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 4px;
}

.schedule-section {
    padding: 60px 20px;
    background: #fff;
}

.schedule-container {
    overflow-x: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    min-width: 1200px;
}

.schedule-table th,
.schedule-table td {
    border: 1px solid #ddd;
    padding: 10px 8px;
    text-align: center;
    vertical-align: middle;
}

.schedule-table thead th {
    background: var(--primary-color);
    color: white;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 10;
}

.schedule-table .row-header {
    min-width: 120px;
}

.schedule-table .month-header {
    min-width: 100px;
}

.schedule-table .row-name {
    background: #f8f9fa;
    font-weight: bold;
    text-align: left;
    padding-left: 15px;
    white-space: nowrap;
}

.schedule-table .cell {
    font-size: 11px;
    line-height: 1.5;
    white-space: pre-line;
}

@media (max-width: 768px) {
    .schedule-hero {
        padding: 60px 15px 40px;
    }

    .schedule-hero-title {
        font-size: 32px;
    }

    .schedule-section {
        padding: 40px 15px;
    }

    .schedule-table {
        font-size: 10px;
    }
}

/* 年間スケジュールタブ用 */
.schedule-main-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.schedule-half-title {
    font-size: 18px;
    font-weight: 600;
    margin: 30px 0 15px;
    padding-left: 10px;
    border-left: 4px solid var(--primary-color);
    color: var(--text-color);
}

.schedule-half-title:first-of-type {
    margin-top: 0;
}

.schedule-table-container {
    overflow-x: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
}

.public-schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.public-schedule-table th,
.public-schedule-table td {
    border: 1px solid #ddd;
    padding: 10px 8px;
    text-align: center;
    vertical-align: middle;
}

.public-schedule-table thead th {
    background: var(--primary-color);
    color: white;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 10;
}

.public-schedule-table .row-header {
    min-width: 100px;
}

.public-schedule-table .row-name {
    background: #f8f9fa;
    font-weight: bold;
    text-align: left;
    padding-left: 15px;
    white-space: nowrap;
    vertical-align: middle;
}

.public-schedule-table .cell {
    min-width: 160px;
    font-size: 11px;
    line-height: 1.5;
    white-space: pre-line;
    text-align: center;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .schedule-main-title {
        font-size: 18px;
    }

    .public-schedule-table {
        font-size: 10px;
        min-width: 900px;
        table-layout: auto;
    }
}

/* ========================================
   お問い合わせ・入会申し込みページ
======================================== */
.contact-section {
    padding: 60px 20px;
}

.contact-section-gray {
    background: #f8f9fa;
}

.contact-block {
    max-width: 700px;
    margin: 0 auto;
}

.contact-block-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.contact-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
}

.contact-success p {
    margin: 10px 0;
    font-size: 16px;
}

.contact-errors {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.contact-errors p {
    margin: 5px 0;
}

.application-intro {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.application-intro p {
    margin: 5px 0;
    color: #1565c0;
}

.application-intro-label {
    font-weight: bold;
    margin-top: 15px !important;
    color: var(--text-color);
}

.application-intro-list {
    text-align: left;
    display: inline-block;
    margin: 10px 0;
    padding-left: 20px;
    color: var(--text-color);
}

.application-intro-list li {
    margin: 5px 0;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.form-section-title:first-of-type {
    margin-top: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group.half {
    flex: 1;
}

.form-group.third {
    flex: 0 0 33%;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-label .required {
    color: #dc3545;
    font-size: 12px;
    margin-left: 5px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 26, 54, 93), 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    margin-top: 30px;
    text-align: center;
}

.btn-submit {
    background: var(--primary-color);
    color: white;
    padding: 15px 60px;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn-submit:hover {
    background: var(--primary-dark, #1a365d);
    transform: translateY(-2px);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.contact-info-item {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.contact-info-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-info-text {
    font-size: 18px;
    margin: 0;
}

.contact-tel {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
}

.contact-info-note {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

/* タブ */
.contact-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.contact-tab {
    padding: 15px 40px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
}

.contact-tab:hover {
    background: rgba(var(--primary-rgb, 26, 54, 93), 0.1);
}

.contact-tab.active {
    background: var(--primary-color);
    color: white;
}

.contact-tab-content {
    display: none;
}

.contact-tab-content.active {
    display: block;
}

@media (max-width: 768px) {
    .contact-tabs {
        flex-direction: column;
        gap: 10px;
    }

    .contact-tab {
        width: 100%;
        padding: 12px 20px;
    }

    .contact-form {
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group.half,
    .form-group.third {
        flex: none;
    }

    .btn-submit {
        width: 100%;
        padding: 15px 30px;
    }
}

/* プライバシーポリシー同意 */
.form-privacy {
    margin-top: 30px;
    text-align: center;
}

.privacy-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
}

.privacy-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.privacy-link {
    color: var(--primary-color);
    text-decoration: underline;
}

.privacy-link:hover {
    color: var(--primary-dark, #1a365d);
}

/* プライバシーポリシーモーダル */
.privacy-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.privacy-modal.active {
    display: flex;
}

.privacy-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.privacy-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
}

.privacy-modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: var(--primary-color);
}

.privacy-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
}

.privacy-modal-close:hover {
    color: #333;
}

.privacy-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.privacy-modal-body h3 {
    font-size: 16px;
    color: var(--primary-color);
    margin: 20px 0 10px;
}

.privacy-modal-body h3:first-child {
    margin-top: 0;
}

.privacy-modal-body p {
    font-size: 14px;
    line-height: 1.8;
    margin: 0 0 10px;
    color: var(--text-color);
}

.privacy-modal-body ul {
    margin: 10px 0;
    padding-left: 20px;
}

.privacy-modal-body li {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-color);
}

.privacy-modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.btn-modal-close {
    padding: 12px 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-modal-close:hover {
    background: var(--primary-dark, #1a365d);
}

@media (max-width: 768px) {
    .privacy-modal-content {
        max-height: 90vh;
    }

    .privacy-modal-body {
        padding: 20px;
    }
}

/* ========================================
   アーカイブバナー（過去年度閲覧中）
======================================== */
.archive-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: #fff;
    padding: 8px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.archive-banner .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.archive-banner-text {
    font-size: 14px;
    font-weight: 500;
}

.archive-banner-link {
    display: inline-block;
    background: #fff;
    color: #8B4513;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}

.archive-banner-link:hover {
    background: #f0e6d2;
    transform: scale(1.05);
}

/* アーカイブバナーがある時のヘッダー位置調整 */
.site-header.has-archive-banner {
    top: 40px;
}

.main-content.has-hero {
    margin-top: 90px;
}

body:has(.archive-banner) .main-content.has-hero {
    margin-top: 130px;
}

body:has(.archive-banner) .main-content:not(.has-hero) {
    margin-top: 170px;
}

body:has(.archive-banner) .mobile-nav {
    bottom: 0;
}

/* 過去年度一覧ページ */
.archive-page {
    padding: 60px 0;
}

.archive-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

.archive-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.archive-card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    padding: 30px 20px;
    text-align: center;
}

.archive-card-year {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.archive-card-label {
    font-size: 14px;
    opacity: 0.9;
}

.archive-card-body {
    padding: 20px;
}

.archive-card-info {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.archive-card-link {
    display: block;
    text-align: center;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s;
}

.archive-card-link:hover {
    background: var(--secondary-color);
}

@media (max-width: 768px) {
    .archive-banner {
        padding: 6px 10px;
    }

    .archive-banner .container {
        gap: 10px;
    }

    .archive-banner-text {
        font-size: 12px;
    }

    .archive-banner-link {
        font-size: 11px;
        padding: 3px 12px;
    }

    .site-header.has-archive-banner {
        top: 34px;
    }
}

/* フッター 過去年度セクション */
.footer-archive h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

.footer-archive ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-archive ul li a {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    transition: all 0.3s;
}

.footer-archive ul li a:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* 写真集ページ */
.photos-page {
    padding: 60px 0;
}

.photos-count {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.photo-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.photo-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
}
