/*
Theme Name: 甲南高校同窓会テーマ 2026
Description: 鹿児島県立甲南高等学校同窓会の公式Webサイト用WordPressテーマ
Version: 1.0.0
Author: 甲南高校同窓会
Text Domain: kounan-dousoukai
*/

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

/**************************************************
* カラーパレット、基本スタイル、ユーティリティクラス
**************************************************/

/* カラーパレット */
:root {
    --primary-color: #660099;      /* 濃紫 */
    --secondary-color: #9966CC;    /* 薄紫 */
    --accent-color: #FFD700;       /* ゴールド */
    --accent-dark: #003366;        /* 深いネイビー */
    --base-white: #FFFFFF;         /* ホワイト */
    --base-light-gray: #F5F5F5;    /* ライトグレー */
    --text-dark: #333333;          /* テキスト色 */
    --text-light: #666666;         /* ライトテキスト */
    --border-color: #DDDDDD;       /* ボーダー色 */
}

/* 基本スタイル */
body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--base-white);
}

li {
    margin-bottom: 5px;
    margin-top: 5px;
}

ol, ul {
    padding-left: 20px;
    margin-bottom: 10px;
    margin-top: 10px;
}

/* ユーティリティクラス */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.p-20 { padding: 20px; }
.p-30 { padding: 30px; }

/* ボタンスタイル */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--base-white);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--base-white);
}

.btn-secondary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--base-white);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
    text-align: center;
}

.btn-accent {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-dark);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
    text-align: center;
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--primary-color);
    background-color: var(--base-white);
    color: var(--primary-color);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s;
    text-align: center;
}

.btn-primary.in-widget {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 0;
    margin-right: 0;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--base-white);
    background-color: var(--primary-color);
}

.btn-primary.in-widget a {
    color: var(--base-white);
    font-weight: 600;
    text-decoration: none;
}

/**************************************************
* ヘッダー、フッター
**************************************************/

/* ヘッダー */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0;
    background: linear-gradient(165deg, var(--primary-color), var(--primary-color), var(--accent-dark));
}

.header-top {
    background-color: var(--primary-color);
    color: var(--base-white);
    padding: 8px 0;
    text-align: center;
    font-size: 14px;
}

.header-main {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

/* 校章・タイトルグループ */
.header-top-row {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    position: relative;
    height: 70px; /* 高さを固定 */
}

.emblem-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

img.emblem {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.title-text {
    font-family: "游明朝", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Hiragino Mincho Pro", "HiraMinProN-W3", "HGS明朝E", "ＭＳ 明朝", "MS Mincho", serif;
    font-size: 44px;
    font-weight: bold;
    color: var(--base-white);
    text-decoration: none;
    white-space: nowrap;
}

.header-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 0 0 auto;
    gap: 30px;
}

/* SNSアイコン */
.header-sns {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.sns-icons {
    display: flex;
    align-items: center;
    margin: 16px;
    flex-shrink: 0;
}

.sns-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sns-icon:hover {
    transform: translateY(-2px);
}

.sns-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* モバイル用SNSアイコン */
.mobile-sns-icons {
    margin-top: 20px;
    justify-content: center;
    width: 100%;
}

/* ナビゲーション */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
    align-items: center;
    align-self: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--base-white);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--base-white);
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding-top: 24px;
    padding-bottom: 0px;
    padding-left: 16px;
    padding-right: 16px;
    background: none;
    border: none;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--base-white);
    margin: 3px 0;
    transition: 0.3s;
}

/* ヘッドライン */
.headline-ticker {
    background-color: var(--secondary-color);
    padding: 10px 0;
    margin-top: 0; /* JavaScriptで動的に設定 */
    overflow: hidden;
    position: relative;
}

.headline-ticker-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.headline-label {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.headline-label-text {
    background-color: var(--accent-color);
    color: var(--text-dark);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.headline-divider {
    width: 1px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.ticker-container {
    position: relative;
    height: 32px;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.ticker-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.ticker-item.active {
    opacity: 1;
    transform: translateX(0);
}

.ticker-item.sliding-out {
    opacity: 0;
    transform: translateX(-100%);
    pointer-events: none;
}

.ticker-item a {
    color: var(--base-white);
}

.ticker-item.marquee .ticker-text {
    animation: marquee 10s linear infinite; /* 2秒待機 + 8秒スクロール */
}

.ticker-item.marquee.active .ticker-text {
    animation-play-state: running;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(0); /* 2秒間待機 */
    }
    100% {
        transform: translateX(calc(-1 * var(--scroll-distance, 0px)));
    }
}

.ticker-date {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    margin-right: 10px;
}

.ticker-label {
    background-color: var(--primary-color);
    color: var(--base-white);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: bold;
}

.ticker-text {
    font-size: 18px;
    font-weight: 500;
    padding-left: 0;
    white-space: nowrap;
}

/* モバイル レスポンシブデザイン */
@media (max-width: 768px) {
    /* モバイル */
    .header-main {
        flex-direction: column;
        padding: 10px;
        gap: 0px;
    }
    
    .header-top-row {
        width: 100%;
        justify-content: center;
        padding-right: 50px; /* hamburgerのスペース確保 */
    }
    
    .header-bottom-row {
        width: 100%;
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
        position: absolute;
        top: 0; 
        right: 12px;
        height: 70px; /* header-top-rowと同じ高さに固定 */
        margin-top: 26px;
        margin-right: 10px;
        margin-bottom: 10px;
        margin-left: 10px;
        display: flex;
        align-items: center;
        z-index: 1001;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .header-sns {
        display: none; /* PC用SNSアイコンは非表示 */
    }

    .header-sns.active {
        display: flex;
    }
    
    .headline-ticker {
        margin-top: 0; /* JavaScriptで動的に設定 */
    }
    
    .headline-ticker-content {
        padding: 0 15px;
        gap: 10px;
    }
    
    .headline-label-text {
        font-size: 12px;
        padding: 3px 10px;
    }
    
    .headline-divider {
        height: 20px;
    }

    .title-text {
        font-size: 32px;
        white-space: normal;
        line-height: 1.2;
    }
    
    .emblem-group {
        gap: 10px;
    }
    
    img.emblem {
        height: 45px;
    }

} 

/* フッター */
.site-footer {
    background-color: var(--accent-dark);
    color: var(--base-white);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-flex {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

.footer-left {
    flex: 2;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-right {
    flex: 1;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
}

.footer-menu-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-menu-parent {
    color: var(--base-white);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.footer-menu-parent:hover {
    opacity: 0.8;
}

.footer-menu-children {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-left: 12px;
    font-size: 14px;
}

.footer-menu-child {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-menu-child:hover {
    opacity: 0.8;
    color: var(--base-white);
}

.footer-cookie-settings {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 20px;
    padding-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* フッターのモバイル対応 */
@media (max-width: 768px) {
    .footer-info {
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .footer-flex {
        width: 100%;
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-left {
        flex: 1;
        width: 100%;
        text-align: center;
    }
    
    .footer-right {
        flex: 1;
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .footer-menu {
        justify-content: center;
        align-items: center;
    }
    
    .footer-menu-group {
        align-items: center;
        text-align: center;
    }
    
    .footer-menu-children {
        justify-content: center;
        padding-left: 0;
    }
}

/**************************************************
* サイドバー
**************************************************/

/* サイドバー */
.sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar-list {
    list-style: disc;
    padding: 0 20px;
    margin: 0;
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.6;
}

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

.sidebar-list a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.sidebar-list a:hover {
    color: var(--primary-color);
}

.sidebar-section {
    background-color: var(--base-light-gray);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-title {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

/* バナー */
.banner {
    width: 100%;
    height: 100px;
    background-color: var(--secondary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--base-white);
    text-decoration: none;
    text-align: center;
    margin-bottom: 15px;
    transition: background-color 0.3s;
}

.banner.primary {
    background-color: var(--primary-color);
    color: var(--base-white);
}

.banner.secondary {
    background-color: var(--secondary-color);
    color: var(--base-white);
}

.banner.accent {
    background-color: var(--accent-color);
    color: var(--text-dark);
}

/* カウントダウンウィジェット */
.countdown-display {
    font-size: 24px;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 10px;
}

.countdown-display .countdown-number {
    font-size: 36px;
    margin: 0 5px;
    color: #dc3232;
}

.countdown-time-display {
    font-size: 16px;
    color: #333;
    margin-top: 10px;
}

.countdown-time-display span {
    font-weight: bold;
    margin: 0 2px;
}

/* 寄附進捗状況ウィジェット */
.progress-bar {
    width: 100%;
    height: 20px;
    background-color: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 0.3s;
}

.progress-text {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
}

.countdown-widget-message,
.donation-widget-message {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.4;
}

.countdown-widget-content,
.donation-widget-content {
    text-align: center;
}

.donation-progress-bar {
    width: 100%;
    height: 24px;
    background-color: #e0e0e0;
    border-radius: 12px;
    margin: 15px 0;
    overflow: hidden;
    position: relative;
}

.donation-progress-bar .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0073aa, #005a87);
    border-radius: 12px;
    transition: width 0.8s ease-in-out;
    position: relative;
}

.donation-progress-bar .progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.donation-progress-text {
    font-size: 14px;
    color: #333;
}

.donation-amounts {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.donation-current,
.donation-target {
    flex: 1;
    min-width: 120px;
}

.donation-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.donation-value {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.donation-percentage {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.percentage-label {
    font-size: 14px;
    color: #666;
    margin-right: 5px;
}

.percentage-value {
    font-size: 18px;
    font-weight: bold;
    color: #0073aa;
}

/* 年選択ウィジェット */
.year-selector-widget-content,
.child-pages-selector-widget-content {
    font-size: 14px;
}

.child-pages-selector-widget-content {
    text-align: left;
}

.year-selector,
.child-pages-selector {
    position: relative;
    width: 100%;
}

.year-selector select,
.child-pages-selector select {
    width: 100%;
    padding: 12px 45px 12px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    background-color: var(--base-white);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.year-selector select:hover,
.child-pages-selector select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.15);
}

.year-selector select:focus,
.child-pages-selector select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.15);
}

.year-selector select:active,
.child-pages-selector select:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* カスタム矢印アイコン */
.year-selector::after,
.child-pages-selector::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--text-dark);
    pointer-events: none;
    transition: transform 0.3s ease, border-top-color 0.3s ease;
}

/* プルダウンが開いている時の矢印 */
.year-selector select:focus ~ .year-selector::after,
.year-selector select[aria-expanded="true"] ~ .year-selector::after,
.child-pages-selector select[aria-expanded="true"] ~ .child-pages-selector::after {
    transform: translateY(-50%) rotate(180deg);
}

.year-selector select option,
.child-pages-selector select option {
    padding: 12px;
    background-color: var(--base-white);
    color: var(--text-dark);
    font-size: 15px;
}

.year-selector select option:hover,
.child-pages-selector select option:hover {
    background-color: var(--base-light-gray);
}

.year-selector select option:checked,
.child-pages-selector select option:checked {
    background-color: var(--primary-color);
    color: var(--base-white);
}

@media (max-width: 768px) {
    .year-selector select,
    .child-pages-selector select {
        padding: 10px 35px 10px 12px;
        font-size: 16px;
    }
}

.year-display,
.child-pages-display {
    margin-top: 15px;
}

.year-info,
.child-pages-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5em;
}

.info-label {
    white-space: nowrap;
}

.info-value {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    white-space: nowrap;
}

.btn-in-widget a {
    color: var(--base-white);
    text-decoration: none;
    padding: 10px;
}

.year-selector-widget-content .btn-in-widget,
.child-pages-selector-widget-content .btn-in-widget {
    margin-top: 15px;
}

.year-selector-widget-content .btn-in-widget a,
.child-pages-selector-widget-content .btn-in-widget a {
    width: 100%;
    margin: 0;
    display: block;
}

/* 子ページ選択ウィジェット - アイキャッチ画像 */
.child-pages-selector-widget-content .child-pages-thumbnail {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
}

.child-pages-selector-widget-content .child-pages-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

/* イベント案内ウィジェット */
.event-info-widget {
    font-size: 14px;
}

.event-info-details {
    margin-bottom: 15px;
}

.event-info-item {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.event-info-item:last-child {
    border-bottom: none;
}

.event-info-item strong {
    color: var(--primary-color);
    display: inline-block;
    min-width: 60px;
}

.event-info-actions {
    margin: 15px 0;
    text-align: center;
}

.event-info-calendar-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--base-white);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s;
    font-size: 14px;
}

.event-info-calendar-button:hover {
    background-color: var(--secondary-color);
    color: var(--base-white);
}

.event-info-map {
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.event-info-map iframe {
    display: block;
    width: 100%;
    max-width: 100%;
}

/* カウントダウン */
.countdown {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.countdown-number {
    font-size: 44px;
    font-weight: bold;
    color: var(--primary-color);
    display: inline-block;
}

.countdown-prefix {
    font-size: 14px;
    color: var(--text-light);
    display: inline-block;
}

.countdown-suffix {
    font-size: 14px;
    color: var(--text-light);
}

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

    .kounan-countdown-customizer-widget,
    .kounan-donation-customizer-widget {
        padding: 15px;
        margin: 15px 0;
    }
    
    .countdown-display {
        font-size: 20px;
    }
    
    .countdown-display .countdown-number {
        font-size: 28px;
    }
    
    .countdown-time-display {
        font-size: 14px;
    }
    
    .donation-amounts {
        flex-direction: column;
        align-items: center;
    }
    
    .donation-current,
    .donation-target {
        min-width: auto;
        width: 100%;
        max-width: 200px;
    }
    
    .donation-progress-bar {
        height: 20px;
    }
    
    .donation-value {
        font-size: 14px;
    }
    
    .percentage-value {
        font-size: 16px;
    }
}

/**************************************************
* Cookieポリシー フローティング
**************************************************/

.cookie-notice {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--base-white);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-width: 400px;
    min-width: 300px;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease-in-out;
}

.cookie-notice.show {
    opacity: 1;
    transform: translateY(0);
}

.cookie-notice.hide {
    opacity: 0;
    transform: translateY(100px);
    pointer-events: none;
}

.cookie-content {
    padding: 20px;
}

.cookie-text {
    margin-bottom: 15px;
}

.cookie-text p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-dark);
    margin: 0;
}

.cookie-text a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-text a:hover {
    color: var(--secondary-color);
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.cookie-btn.accept {
    background-color: var(--primary-color);
    color: var(--base-white);
}

.cookie-btn.accept:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
}

.cookie-btn.decline {
    background-color: var(--base-light-gray);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.cookie-btn.decline:hover {
    background-color: var(--border-color);
    transform: translateY(-1px);
}

/* モバイル レスポンシブデザイン */
@media (max-width: 768px) {
    .cookie-notice {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
    }
    
    .cookie-content {
        padding: 15px;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        max-width: 120px;
    }
}

/* Cookie設定モーダル */
.cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.cookie-settings-modal.show {
    opacity: 1;
}

.cookie-modal-content {
    background-color: var(--base-white);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
}

.cookie-settings-modal.show .cookie-modal-content {
    transform: scale(1);
}

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

.cookie-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--text-dark);
}

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

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

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

.cookie-modal-link {
    margin: 15px 0;
    font-size: 14px;
}

.cookie-modal-link a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-modal-link a:hover {
    color: var(--secondary-color);
}

.cookie-purpose-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.cookie-purpose-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.cookie-detail-list {
    list-style: disc;
    padding-left: 25px;
    margin: 8px 0 0 0;
    font-size: 13px;
    color: var(--text-light);
}

.cookie-detail-list li {
    padding: 4px 0;
    border-bottom: none;
}

.cookie-consent-options {
    margin: 20px 0;
}

.cookie-option {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    margin: 10px 0;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-option:hover {
    border-color: var(--primary-color);
    background-color: rgba(0, 123, 255, 0.05);
}

.cookie-option input[type="radio"] {
    margin-right: 12px;
    margin-top: 2px;
    cursor: pointer;
}

.cookie-option span {
    flex: 1;
    color: var(--text-dark);
    line-height: 1.5;
}

.cookie-option input[type="radio"]:checked + span {
    color: var(--primary-color);
    font-weight: 500;
}

.cookie-option:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background-color: rgba(0, 123, 255, 0.1);
}

.cookie-modal-note {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 15px;
    padding: 10px;
    background-color: var(--base-light-gray);
    border-radius: 6px;
}

.cookie-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

/* フッターリンク */
.footer-links {
    margin-top: 10px;
    font-size: 14px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Cookieトーストメッセージ */
.cookie-toast {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--base-white);
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
}

.cookie-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* モバイル対応 - Cookie設定モーダル */
@media (max-width: 768px) {
    .cookie-modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 15px;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-modal-footer .cookie-btn {
        width: 100%;
    }
    
    .cookie-toast {
        bottom: 60px;
        right: 10px;
        left: 10px;
    }
}

/**************************************************
* トップページ
**************************************************/

/* ヒーローセクション */
.hero-section {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 600px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--base-white);
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--base-white);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    border: 1px solid var(--primary-color);
}

.hero-button:hover {
    background-color: var(--secondary-color);
    border: 1px solid var(--accent-color);
}

/* 非アクティブなスライドのボタンはクリック不可 */
.hero-slide:not(.active) .hero-button {
    pointer-events: none;
    cursor: default;
}


/**************************************************
* 個別ページ
**************************************************/

/* サブヒーローセクション */
.sub-hero {
    position: relative;
    height: 150px;
    background: linear-gradient(135deg, var(--accent-dark), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    color: var(--base-white);
}

/* ページタイトル */
.page-title {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-color);
}

/* メインコンテンツ */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.main-area {
    min-height: 500px;
}

.editable-content h1 {
    font-size: 32px;
    color: var(--primary-color);
    margin: 30px auto 30px auto;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-color);
}

.editable-content h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin: 20px auto 20px auto;
    font-weight: bold;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.editable-content h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin: 10px auto 10px auto;
    font-weight: bold;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 5px;
}

.editable-content h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin: 5px auto 5px auto;
    font-weight: bold;
    padding-bottom: 5px;
}

.editable-content h5 {
    font-size: 16px;
    margin: 5px auto 5px auto;
    font-weight: bold;
    padding-bottom: 5px;
}

.editable-content p {
    margin: 10px auto 10px auto;
    line-height: 1.6;
}

.editable-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

.editable-content em {
    color: var(--text-dark);
    font-style: italic;
}

.editable-content hr {
    width: 80%;
    align-self: center;
    margin: 40px;
    border: 3px solid var(--secondary-color);
}

.section-title {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.section-container {
    margin-bottom: 40px;
    border-radius: 8px;
}

.content-details {
    display: grid;
}

.content-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.content-item h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 24px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

.content-item h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: bold;
    padding-bottom: 5px;
}

.content-item p {
    margin-bottom: 8px;
    line-height: 1.6;
}

.content-item strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* 組織連絡先 - 事務局連絡先とGoogleMapの横並び表示 */
.organization-contact-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 画面幅が十分な場合の横並びレイアウト */
@media (min-width: 769px) {
    .organization-contact-main {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .organization-contact-container {
        flex: 1;
        min-width: 0;
    }
    
    .organization-contact-map {
        flex: 1;
        min-width: 0;
    }
}

.organization-contact-container {
    display: flex;
    flex-direction: column;
}

.organization-contact-map {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 200px;
}

.organization-map {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    height: 100%;
    min-height: 200px;
}

.organization-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 200px;
}

/* グリッドレイアウト */
.grid-1 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.grid-item {
    background-color: var(--base-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.grid-item-title {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
}

.grid-item-title:hover {
    color: var(--primary-color);
}

.grid-item p {
    color: var(--text-light);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .organization-contact-main {
        flex-direction: column;
    }
    
    .organization-map iframe {
        min-height: 150px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr 250px;
        gap: 30px;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/**************************************************
* 404ページ
**************************************************/

.error-content {
    background-color: var(--base-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.error-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.error-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.error-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.error-actions .btn.primary {
    margin: 0 10px 10px 0;
    display: inline-block;
}

@media (max-width: 768px) {
    .error-actions {
        display: flex;
        flex-direction: column;
    }

    .error-actions .btn.primary {
        width: 100%;
    }
}

/**************************************************
* トップページ、関連ニュース　(一覧)
**************************************************/

/* 新着情報 */
.news-section {
    margin-bottom: 40px;
}

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

.news-item-featured {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    border-radius: 8px;
}

.news-item-flex {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.news-thumbnail {
    width: 240px;
    height: 160px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.topnews-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* 1件目：サムネイルありの場合（PC） */
.news-item-featured-with-thumbnail {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.news-item-featured-with-thumbnail .news-thumbnail {
    flex-shrink: 0;
}

.news-item-featured-with-thumbnail .topnews-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-item-featured-with-thumbnail .topnews-content .news-meta {
    margin-bottom: 8px;
}

.news-item-featured-with-thumbnail .topnews-content .news-title {
    margin-bottom: 8px;
}

.news-item-featured-with-thumbnail .topnews-content .news-excerpt {
    margin-top: 0;
}

/* 1件目：サムネイルなしの場合（PC） */
.news-item-featured-no-thumbnail {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.news-item-featured-no-thumbnail .news-content {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    width: 100%;
    margin-bottom: 8px;
}

.news-item-featured-no-thumbnail .news-content .news-meta {
    flex-shrink: 0;
    margin-bottom: 0;
}

.news-item-featured-no-thumbnail .news-content .news-title {
    flex: 1;
    margin-bottom: 0;
}

/* サムネイルなしの場合の抜粋（PC） */
.news-item-featured-no-thumbnail > .news-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-top: 0;
}

.news-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-top: 8px;
}

.news-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.news-category {
    background-color: var(--primary-color);
    color: var(--base-white);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    height: fit-content
}

.news-category.category-posts {
    background-color: var(--primary-color);
}

.news-category.category-newsletters {
    background-color: green;
}

.news-content {
    display: flex;
    gap: 20px;
    align-items: center;
    width: 100%;
}

.news-content .news-meta {
    flex-shrink: 0;
    margin-bottom: 0;
}

.news-content .news-title {
    flex: 1;
    margin-bottom: 0;
}

.news-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--text-dark);
    text-decoration: none;
}

.news-title:hover {
    color: var(--primary-color);
}

.news-summary {
    color: var(--text-light);
    line-height: 1.6;
}

/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    padding: 20px 0;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    background-color: var(--base-white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination .page-numbers:hover {
    background-color: var(--primary-color);
    color: var(--base-white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 0, 153, 0.2);
}

.pagination .page-numbers.current {
    background-color: var(--primary-color);
    color: var(--base-white);
    border-color: var(--primary-color);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(102, 0, 153, 0.3);
    cursor: default;
}

.pagination .page-numbers.current:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(102, 0, 153, 0.3);
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    font-weight: 600;
    padding: 0 20px;
}

.pagination .page-numbers.prev:hover,
.pagination .page-numbers.next:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.pagination .page-numbers.dots {
    border: none;
    background-color: transparent;
    cursor: default;
    min-width: auto;
    padding: 0 8px;
}

.pagination .page-numbers.dots:hover {
    background-color: transparent;
    color: var(--text-dark);
    transform: none;
    box-shadow: none;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {

    /* ヘッダータイトルのモバイル対応 */
    .hero-slider {
        height: 400px;
    }
    
    .hero {
        height: 200px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
        
    /* 1件目：サムネイルありの場合（モバイル） */
    .news-item-featured-with-thumbnail {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .news-item-featured-with-thumbnail .news-thumbnail {
        width: 100%;
        height: 200px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* アイキャッチ画像がない場合（thumbnail-noimage.pngが表示されている場合）のみモバイルで非表示 */
    .news-item-featured-with-thumbnail .news-thumbnail.no-thumbnail {
        display: none;
    }
    
    .news-item-featured-with-thumbnail .news-thumbnail a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .news-item-featured-with-thumbnail .topnews-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .news-item-featured-with-thumbnail .topnews-content .news-meta {
        justify-content: center;
    }
    
    /* 2件目以降のモバイル対応 */
    .news-item:not(.news-item-featured) .news-item-flex {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .news-item-featured-no-thumbnail .news-content {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        width: 100%;
        margin-bottom: 0;
    }
    
    .news-item-featured-no-thumbnail .news-content .news-meta {
        margin-bottom: 0;
        justify-content: center;
    }
    
    .news-item-featured-no-thumbnail .news-content .news-title {
        margin-bottom: 0;
        text-align: center;
    }
    
    .news-item-featured-no-thumbnail > .news-excerpt {
        text-align: center;
        margin-top: 8px;
    }
    
    /* 1件目：サムネイルなしの場合（モバイル） */
    .news-item-featured-no-thumbnail {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    /* 2件目以降のモバイル対応（既存のスタイル） */
    .news-content {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .news-content .news-meta {
        margin-bottom: 0;
        justify-content: center;
    }
    
    .news-content .news-title {
        margin-bottom: 0;
        text-align: center;
    }
    
    /* モバイル用ページネーション */
    .pagination {
        gap: 6px;
        margin: 30px 0;
        padding: 15px 0;
    }
    
    .pagination .page-numbers {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 14px;
    }
    
    .pagination .page-numbers.prev,
    .pagination .page-numbers.next {
        padding: 0 16px;
        font-size: 14px;
    }
}

/**************************************************
* 投稿
**************************************************/

.post-section {
    margin-bottom: 40px;
}

.post-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.post-content {
    margin-bottom: 40px;
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
    justify-content: flex-end;
}

.post-category {
    background-color: var(--primary-color);
    color: var(--base-white);
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    height: fit-content
}

.post-tag {
    background-color: var(--secondary-color);
    color: var(--base-white);
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    height: fit-content
}

.post-date {
    font-size: 18px;
    color: var(--text-light);
}

.post-thumbnail {
    width: 100%;
    margin-bottom: 20px;
}

.thumbnail-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 前後記事ナビゲーション */
.post-navigation {
    margin-top: 60px;
    margin-bottom: 40px;
}

.post-navigation-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: stretch;
}

.nav-previous,
.nav-next {
    flex: 1;
    min-width: 0;
}

.nav-previous.nav-empty,
.nav-next.nav-empty {
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background-color: var(--base-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    min-height: 100px;
}

.nav-previous-half,
.nav-next-half {
    flex: 1;
    min-width: 0;
}

.nav-link-half {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background-color: var(--base-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    min-height: 50px;
}

.nav-previous .nav-link {
    text-align: left;
    justify-content: flex-start;
}

.nav-next .nav-link {
    text-align: right;
    justify-content: flex-end;
}

.nav-link:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(102, 0, 153, 0.15);
    transform: translateY(-2px);
    background-color: var(--base-light-gray);
}

.nav-icon {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: bold;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.nav-previous .nav-link:hover .nav-icon {
    transform: translateX(-4px);
}

.nav-next .nav-link:hover .nav-icon {
    transform: translateX(4px);
}

.nav-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.nav-previous .nav-content {
    align-items: flex-start;
    text-align: left;
}

.nav-next .nav-content {
    align-items: flex-end;
    text-align: right;
}

.nav-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-link:hover .nav-title {
    color: var(--primary-color);
}

/* 前の年代ページが2つ設定されている場合のスタイル */
.nav-previous-multiple {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
}

.nav-previous-multiple .nav-link-half {
    min-height: 40px;
    padding: 0 20px;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .post-navigation {
        margin-top: 40px;
        margin-bottom: 30px;
    }
    
    .post-navigation-container {
        flex-direction: column;
        gap: 16px;
    }
    
    .nav-link {
        padding: 16px 20px;
        min-height: auto;
    }
    
    .nav-previous .nav-link,
    .nav-next .nav-link {
        justify-content: flex-start;
        text-align: left;
    }
    
    .nav-next .nav-content {
        align-items: flex-start;
        text-align: left;
    }
    
    .nav-icon {
        font-size: 20px;
    }
    
    .nav-title {
        font-size: 14px;
    }
    
    .nav-label {
        font-size: 11px;
    }
}

/**************************************************
* 沿革
**************************************************/

/* 沿革 タイムラインデザイン */
.history-timeline {
    margin-top: 40px;
    padding: 30px;
    background-color: var(--base-light-gray);
    border-radius: 8px;
}

.history-timeline h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 24px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.timeline-container {
    position: relative;
    padding: 20px 0;
}

.timeline-axis {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
}

.timeline {
    list-style: none;
    position: relative;
    margin: 0;
    padding: 0;
}

.timeline-year-group {
    margin-bottom: 40px;
    position: relative;
}

.year-marker {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: var(--base-white);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 16px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.timeline-item {
    margin: 20px 0;
    position: relative;
    display: flex;
    justify-content: center;
}

.timeline-content {
    background-color: var(--base-white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    width: 80%;
    max-width: 600px;
    position: relative;
    text-align: center;
}

.timeline-date {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-dark);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 18px;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

/* モバイル用レイアウト */
@media (max-width: 639px) {
    .timeline-axis {
        left: 20px;
        transform: none;
    }
    
    .year-marker {
        left: 20px;
        transform: none;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
        margin-top: 30px;
        text-align: left;
    }
    
    /* ヘッダータイトルのモバイル対応 */
    .title-text {
        font-size: 28px;
        white-space: normal;
        line-height: 1.2;
    }
    
    .emblem-group {
        gap: 8px;
    }
    
    img.emblem {
        height: 40px;
    }
}

/* さらに小さい画面サイズ対応 */
@media (max-width: 480px) {
    .title-text {
        font-size: 22px;
    }
    
    .emblem-group {
        gap: 6px;
    }
    
    img.emblem {
        height: 35px;
    }
    
    .header-main {
        padding-left: 15px;
        padding-right: 15px;
    }

    .headline-ticker {
        padding: 5px 0;
    }

    .ticker-item {
        top: 3px;
    }

    .headline-ticker-content {
        padding: 0 10px;
    }
    
    .headline-label-text {
        font-size: 10px;
    }
    
    .ticker-text {
        font-size: 16px;
    }
}

/**************************************************
* 問い合わせ
**************************************************/

.btn-contacts {
   display: block;
   text-align: center;
}

.btn-contacts a{
    width: 80%;
    margin: 20px auto;
}

/**************************************************
* 問い合わせメールフォーム
**************************************************/

/* フォーム専用スタイル */
.mailform {
    background-color: var(--base-light-gray);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.mailform span.wpcf7-spinner {
    display: none;
}

.mailform label {
    display: flex;
    margin-top: 20px;
    font-weight: bold;
    color: var(--text-dark);
}

.mailform .required-notice {
    color: var(--text-dark);
    font-size: 16px;
    margin-bottom: 20px;
    text-align: right;
    font-weight: bold;
}

.mailform .required {
    color: #ff0000;
    font-size: 16px;
    font-weight: bold;
    margin-left: 10px;
}

.mailform input[type="text"],
.mailform input[type="email"],
.mailform input[type="url"],
.mailform input[type="tel"],
.mailform input[type="number"],
.mailform input[type="date"],
.mailform textarea {
    font-size: 16px;
    width: fit-content;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.mailform input[type="text"]:focus,
.mailform input[type="email"]:focus,
.mailform input[type="url"]:focus,
.mailform input[type="tel"]:focus,
.mailform input[type="number"]:focus,
.mailform input[type="date"]:focus,
.mailform textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.mailform select {
    width: fit-content;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
}

.mailform select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.mailform select option {
    font-size: 16px;
}   

.mailform input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    vertical-align: middle;
    display: inline-block;
    position: relative;
    top: 2px;
}

.mailform input[type="checkbox"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.mailform input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.mailform input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    vertical-align: middle;
    display: inline-block;
    position: relative;
    top: 2px;
}

.mailform input[type="radio"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.mailform input[type="radio"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.mailform input[type="file"] {
    width: fit-content;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    vertical-align: middle;
    display: inline-block;
    position: relative;
    top: 2px;
}

.mailform input[type="file"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.mailform input[type="file"] option {
    font-size: 16px;
}
.mailform input[type="submit"] {
    background-color: var(--primary-color);
    color: var(--base-white);
    margin-top: 20px;
    margin-right: 20px;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

.mailform input[type="reset"] {
    background-color: var(--base-white);
    color: var(--primary-color);
    margin-top: 20px;
    margin-right: 20px;
    padding: 12px 20px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

@media (max-width: 768px) {
    .mailform .required-notice {
        text-align: left;
    }
}

/* ========================================
   FAQページ用スタイル
   ======================================== */

/* FAQカテゴリ */
.faq-category {
    margin-bottom: 40px;
}

.faq-category-title {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

/* FAQセクション */
.faq-section {
    border-radius: 8px;
    margin-bottom: 30px;
}

/* FAQ項目 */
.faq-item-simple {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.faq-item-simple:last-child {
    border-bottom: none;
}

/* FAQ質問 */
.faq-question-simple {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: bold;
}

/* FAQ回答 */
.faq-answer-simple {
    line-height: 1.8;
    color: var(--text-dark);
    padding-left: 20px;
}

.faq-answer-simple p {
    margin-bottom: 10px;
}

.faq-answer-simple p:last-child {
    margin-bottom: 0;
}

/* FAQ項目が見つからない場合 */
.no-faq-message {
    text-align: center;
    padding: 20px 20px 40px;
    color: var(--text-light);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .faq-category-title {
        font-size: 1.3em;
    }
    
    .faq-question-simple {
        font-size: 1.1em;
    }
    
    .faq-answer-simple {
        padding-left: 10px;
    }
    
    .faq-section {
        padding: 20px;
    }
}    