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

/* 基本スタイル */
body {
    font-family: 'Noto Serif JP', serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    background-color: #f5f5f5;
    font-weight: 400;
    letter-spacing: 0.03em;
}

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

/* ヘッダー */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* ヘッダー分のマージン */
body {
    padding-top: 88px; /* ヘッダーの高さ分 */
}

/* WordPress管理バー対応 */
body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

/* サイトブランディング */
.site-branding {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    letter-spacing: 0.08em;
}

.site-title a {
    color: #2c3e50;
    text-decoration: none;
}

.site-description {
    font-size: 14px;
    color: #666;
    margin: 0;
    letter-spacing: 0.04em;
}

/* ナビゲーション */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    letter-spacing: 0.04em;
}

.main-navigation a:hover {
    color: #3498db;
}

/* メニューコンテナのスタイル */
.menu-container {
    display: block;
}

/* モバイルメニュートグル */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-toggle-inner span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s;
}

/* ページヘッダー */
.page-header-wrapper {
    position: relative;
    margin-top: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.breadcrumb-wrapper {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
}

.page-header {
    position: relative;
    background-color: #2c3e50;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 32, 64, 0.8);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 2.8em;
    margin-bottom: 10px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.entry-meta,
.event-header-meta {
    font-size: 1.1em;
    opacity: 0.9;
    margin-top: 10px;
}

.entry-meta a {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.entry-meta a:hover {
    border-bottom-color: white;
}

.archive-description {
    font-size: 1.2em;
    margin-top: 15px;
    opacity: 0.9;
}

/* パンくずリスト */
.breadcrumb {
    font-size: 0.9em;
}

.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: ">";
    margin: 0 10px;
    color: #666;
}

.breadcrumb-item a {
    color: #002040;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumb-item.current {
    color: #666;
}

/* コンテンツエリア */
.site-content {
    min-height: 500px;
    padding: 40px 0;
}

/* フロントページ用 */
body.home .site-content {
    padding: 0;
}

body.home #primary {
    width: 100%;
    margin-top: 0;
    padding-top: 0;
}

body.home #main {
    margin-top: 0;
    padding-top: 0;
}

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

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

/* タブレット：2列 */
@media (min-width: 480px) {
    .executives-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* タブレット・小型PC：3列 */
@media (min-width: 768px) {
    .executives-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* PC：4列 */
@media (min-width: 1200px) {
    .executives-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* カード */
.executive-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.executive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* 役員カード内のスタイル */
.executive-info {
    min-height: 90px;
}

.executive-info h4 {
    margin-bottom: 8px;
    color: #002040;
    font-size: 1.3em;
}

.executive-info .graduation-year {
    margin-bottom: 5px;
    color: #666;
}

.executive-info .remarks {
    margin-top: 5px;
    color: #333;
}

/* セクションタイトル */
section {
    margin: 60px 0;
}

section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #002040;
    font-weight: 400;
    letter-spacing: 0.08em;
}

/* 見出し共通 */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: 0.05em;
    font-feature-settings: "palt";
}

/* 段落 */
p {
    letter-spacing: 0.02em;
}

/* ボタン - モダンで格調高いデザイン */
.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background-color: #002855;
    color: white;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 40, 85, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Noto Serif JP', serif;
}

/* 光沢エフェクト */
.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.button:hover {
    transform: translateY(-2px);
    background-color: white;
    color: #002855;
    border-color: #002855;
    box-shadow: 0 6px 20px rgba(0, 30, 60, 0.2);
}

.button:hover::before {
    opacity: 0;
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 40, 85, 0.3);
}

/* ボタンアイコン */
.button i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.button i:last-child {
    margin-left: 5px;
}

.button:hover i:last-child {
    transform: translateX(3px);
}

/* ボタンサイズバリエーション */
.button.small {
    padding: 10px 24px;
    font-size: 14px;
    border-radius: 6px;
}

.button.small i {
    font-size: 16px;
}

.button.large {
    padding: 18px 40px;
    font-size: 18px;
    border-radius: 10px;
}

.button.large i {
    font-size: 20px;
}

/* ボタンカラーバリエーション */
.button.primary {
    background-color: #ef4444;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.button.primary:hover {
    background-color: white;
    color: #ef4444;
    border-color: #ef4444;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.2);
}

.button.secondary {
    background-color: #6b7280;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.button.secondary:hover {
    background-color: white;
    color: #6b7280;
    border-color: #6b7280;
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.2);
}

.button.accent {
    background-color: #8b5cf6;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.button.accent:hover {
    background-color: white;
    color: #8b5cf6;
    border-color: #8b5cf6;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.2);
}

/* アウトラインボタン */
.button.outline {
    background: transparent;
    border: 2px solid #002855;
    color: #002855;
    box-shadow: none;
}

.button.outline:hover {
    background: #002855;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 40, 85, 0.3);
}

.button.outline.primary {
    border-color: #ef4444;
    color: #ef4444;
}

.button.outline.primary:hover {
    background: #ef4444;
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

/* フッター */
.site-footer {
    background: linear-gradient(135deg, #001e3c 0%, #002855 100%);
    color: white;
    margin-top: 60px;
}

/* メインフッター */
.footer-main {
    padding: 60px 0 40px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}


.footer-column h4 {
    margin-bottom: 20px;
    font-size: 1.1em;
    font-weight: 600;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #3498db;
}

/* ブランドカラム */
.footer-brand .footer-logo {
    margin-bottom: 15px;
}

.footer-brand .footer-logo img {
    max-height: 50px;
    width: auto;
}

.footer-tagline {
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: 500;
    color: #3498db;
}

.footer-description {
    font-size: 0.95em;
    line-height: 1.6;
    opacity: 0.9;
}

/* フッターメニュー */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    padding-left: 15px;
}

.footer-menu a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.footer-menu a:hover {
    color: #3498db;
    padding-left: 20px;
}

.footer-menu a:hover::before {
    opacity: 1;
}

/* 連絡先情報 */
.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    width: 20px;
    text-align: center;
    color: #3498db;
}

/* SNSリンク */
.social-links {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.social-links a:hover {
    transform: translateY(-3px);
    border-color: #3498db;
    background: #3498db;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* メールマガジン */
.newsletter {
    margin-top: 20px;
}

.newsletter h5 {
    font-size: 1em;
    margin-bottom: 8px;
    font-weight: 500;
}

.newsletter p {
    font-size: 0.9em;
    margin-bottom: 15px;
    opacity: 0.8;
}

.newsletter-form {
    display: flex;
    gap: 0;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 25px 0 0 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form button {
    padding: 10px 20px;
    border: none;
    border-radius: 0 25px 25px 0;
    background: #3498db;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-form button:hover {
    background: #2980b9;
}

/* フッターボトム */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
}

.site-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.site-info p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #3498db;
    transition: width 0.3s;
}

.footer-links a:hover {
    color: #3498db;
}

.footer-links a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .site-info {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

/* フロントページ */
.hero-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2c3e50;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    overflow: hidden;
    margin-top: 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    animation: heroBackgroundZoom 5s ease-out;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 32, 64, 0.55);
    z-index: 1;
}


.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.hero-subtitle {
    font-size: 1.4em;
    margin-bottom: 40px;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 300;
}

.hero-cta {
    font-size: 1em;
    padding: 12px 35px;
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: none;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.hero-cta:hover {
    background-color: #fff;
    color: #002040;
}

/* セクション共通 */
.news-events-section,
.about-section,
.join-section,
.access-section {
    padding: 50px 0;
}

.news-events-section {
    padding: 40px 0;
}

.news-events-section {
    background-color: #f8f9fa;
}

/* お知らせ・イベントグリッド */
.news-events-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.news-column,
.event-column {
    background: white;
    padding: 20px;
    border: 1px solid #e0e0e0;
}

.news-column .section-title,
.event-column .section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    text-align: left;
    padding-bottom: 10px;
}

.news-column .section-title::after,
.event-column .section-title::after {
    left: 0;
    transform: translateX(0);
}

.about-section {
    background-color: #f8f9fa;
}

.join-section {
    background-color: #002040;
    color: white;
    text-align: center;
}

/* 数値で見る豆陽会セクション */
.numbers-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 50px 0;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

.numbers-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(220, 53, 69, 0.05);
    border-radius: 50%;
    transform: rotate(45deg);
}

.numbers-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(0, 32, 64, 0.03);
    border-radius: 50%;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.number-item {
    text-align: center;
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.number-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #dc3545 0%, #002040 100%);
    border-radius: 12px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.number-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.number-item:hover::before {
    opacity: 0.1;
}

.number-value {
    font-size: 3.5em;
    font-weight: 700;
    color: #002040;
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.number-value .count {
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: -0.02em;
}

.number-value .unit {
    font-size: 0.5em;
    font-weight: 400;
}

.number-label {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.number-description {
    font-size: 0.9em;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.access-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 35px;
    color: #002040;
    position: relative;
    padding-bottom: 20px;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: #002040;
    border-radius: 0;
}

.join-section .section-title {
    color: white;
}

.join-section .section-title::after {
    background: white;
}

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

.news-item {
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s;
}

.news-item:hover {
    padding-left: 10px;
}

.news-date {
    color: #666;
    font-size: 13px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.news-category {
    display: inline-block;
    padding: 2px 8px;
    background-color: #002040;
    color: white;
    font-size: 11px;
    border-radius: 3px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.news-title {
    font-size: 1.1em;
    margin-top: 3px;
}

.news-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.news-title a:hover {
    color: #002040;
}

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

.news-column .section-more,
.event-column .section-more {
    text-align: center;
    margin-top: 15px;
}

/* イベント表示 */
.event-single {
    /* お知らせ・イベントグリッド内で使用 */
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.event-card {
    background: white;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s;
    cursor: pointer;
}

.event-single .event-card {
    border: none;
    box-shadow: none;
}

.event-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.event-card-inner {
    display: flex;
    flex-direction: column;
}

.event-image {
    height: 200px;
    overflow: hidden;
}

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

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-image.no-image {
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-image.no-image i {
    font-size: 3em;
    color: #ccc;
}

.event-image.no-image a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s;
}

.event-image.no-image a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* イベントアクション */
.event-actions {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

/* イベント詳細メタ情報 */
.event-single .event-meta {
    background: #f8f9fa;
    padding: 30px;
    margin: 30px 0;
    border-radius: 8px;
}

.event-single .event-meta > div {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.6;
}

.event-single .event-meta > div:last-child {
    margin-bottom: 0;
}

.event-single .event-meta strong {
    color: #2c3e50;
    font-weight: 600;
}

/* イベント申し込みボタン */
.event-registration {
    text-align: center;
    margin: 40px 0;
    padding: 30px;
    background: #f8fafc;
    border-radius: 8px;
}


/* イベント個別ページはニュースと同じ画像スタイルを使用 */

.event-info {
    padding: 25px;
}

.event-title {
    font-size: 1.2em;
    margin-bottom: 15px;
    line-height: 1.4;
}

.event-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.event-title a:hover {
    color: #002040;
}

.event-meta {
    margin-top: 20px;
}

.event-meta p {
    margin: 10px 0;
    color: #333;
    font-size: 1em;
    line-height: 1.8;
}

.event-date {
    font-weight: 500;
}

.event-location {
    font-weight: 500;
}

.event-description {
    margin-top: 15px;
    color: #666;
}

.no-events {
    text-align: center;
    color: #666;
    font-size: 1.1em;
    padding: 40px;
}

/* ページレイアウト */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 会長挨拶セクション */
.chairman-greeting {
    background-color: #f8f9fa;
    padding: 80px 0;
    margin: -40px -40px 60px -40px;
    width: calc(100% + 80px);
}

.chairman-greeting .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.chairman-greeting h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 60px;
    color: #002040;
    font-weight: 400;
    letter-spacing: 0.08em;
}

.greeting-content {
    display: block;
    overflow: auto;
}

.chairman-photo {
    float: left;
    width: 350px;
    margin-right: 60px;
    margin-bottom: 30px;
    text-align: center;
}

.chairman-photo img {
    width: 100%;
    max-width: 350px;
    border-radius: 8px;
}

.chairman-photo .photo-info {
    margin-top: 20px;
    font-size: 1.1em;
    color: #333;
}

.chairman-photo .name {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 0.05em;
}

.chairman-photo .title {
    color: #666;
    font-size: 1em;
}

/* 会長挨拶本文 */
.greeting-text {
    font-size: 1.15em;
    line-height: 2.0;
    color: #333;
}

.greeting-text p {
    margin-bottom: 1.5em;
}

.greeting-text h4 {
    font-size: 1em;
    color: #002040;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-left: 4px solid #002040;
    padding-left: 15px;
}

.greeting-text p[style*="text-align: right"] {
    margin-top: 50px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .greeting-text {
        font-size: 1.05em;
        line-height: 1.9;
    }

    .greeting-text h4 {
        font-size: 1em;
        margin-top: 25px;
    }
}

/* 理念・目的セクション */
.philosophy-section {
    background: linear-gradient(135deg, #002040 0%, #003060 100%);
    color: white;
    padding: 100px 0;
    margin: 60px -40px;
    width: calc(100% + 80px);
    position: relative;
    overflow: hidden;
}

.philosophy-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 50%;
    height: 200%;
    background: rgba(255, 255, 255, 0.02);
    transform: rotate(45deg);
}

.philosophy-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.philosophy-section h2 {
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 60px;
    color: white;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.philosophy-content {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 60px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 1000px;
    margin: 0 auto;
}

.philosophy-content h4 {
    font-size: 1.8em;
    color: #002040;
    margin: 40px 0 20px;
    font-weight: 600;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 15px;
}

.philosophy-content h4:first-child {
    margin-top: 0;
}

.philosophy-content h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #002040;
}

.philosophy-content p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #333;
}

.philosophy-content ol {
    counter-reset: philosophy-counter;
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.philosophy-content ol li {
    counter-increment: philosophy-counter;
    position: relative;
    padding: 25px 0 25px 80px;
    border-bottom: 1px solid #e0e0e0;
}

.philosophy-content ol li:last-child {
    border-bottom: none;
}

.philosophy-content ol li::before {
    content: counter(philosophy-counter);
    position: absolute;
    left: 0;
    top: 25px;
    width: 60px;
    height: 60px;
    background: #002040;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: 600;
}

.philosophy-content ol li strong {
    display: block;
    font-size: 1.3em;
    color: #002040;
    margin-bottom: 10px;
    letter-spacing: 0.03em;
}

@media (max-width: 768px) {
    .philosophy-section {
        padding: 60px 0;
    }
    
    .philosophy-section h2 {
        font-size: 2em;
        margin-bottom: 40px;
    }
    
    .philosophy-content {
        padding: 40px 30px;
    }
    
    .philosophy-content ol li {
        padding-left: 60px;
    }
    
    .philosophy-content ol li::before {
        width: 45px;
        height: 45px;
        font-size: 1.2em;
    }
}

/* テーブル */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* 学校歴史セクション */
.school-history-section {
    margin: 60px 0;
}

.school-history-section .section-title {
    text-align: center;
    margin-bottom: 40px;
}

/* モバイル用タブ */
.history-tabs-mobile {
    display: none;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-button {
    background: none;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    flex: 1;
}

.tab-button:hover {
    color: #333;
}

.tab-button.active {
    color: #002040;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #002040;
}

/* PC用並列表示 */
.schools-parallel-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

/* 学校カラム共通 - 格調高いデザイン */
.school-column {
    background: white;
    border: 1px solid #e5e7eb;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.school-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.school-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.school-header h3 {
    font-size: 1.875em;
    margin-bottom: 10px;
    font-weight: 400;
    letter-spacing: 0.08em;
    font-family: 'Noto Serif JP', serif;
}

.school-years {
    color: #64748b;
    font-size: 0.95em;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.school-years .wareki-text {
    display: block;
}

.school-years .seireki-text {
    display: block;
    font-size: 0.85em;
    color: #999;
    margin-top: 2px;
}

/* 各学校のカラーテーマ - シンプルで格調高く */
.north-school::before {
    background: #1e40af;
}

.north-school .school-header h3 {
    color: #1e40af;
}

.south-school::before {
    background: #15803d;
}

.south-school .school-header h3 {
    color: #15803d;
}

.shimoda-school::before {
    background: #6d28d9;
}

.shimoda-school .school-header h3 {
    color: #6d28d9;
}

/* タイムライン共通 */
.timeline {
    position: relative;
    padding: 20px 0;
}

/* 各学校のタイムライン - 格調高いデザイン */
.timeline {
    position: relative;
    padding: 15px 0;
}

/* タイムラインの線 */
.north-timeline::before,
.south-timeline::before,
.shimoda-timeline::before {
    content: '';
    position: absolute;
    left: 100px;
    top: 50px; /* 最初の項目の後から開始 */
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.timeline-item {
    display: block;
    margin-bottom: 35px;
    position: relative;
    padding-left: 140px;
    transition: all 0.3s ease;
}

/* タイムラインポイント */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 91px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 3px solid;
    z-index: 1;
}

.north-timeline .timeline-item::before {
    border-color: #3b82f6;
}

.south-timeline .timeline-item::before {
    border-color: #10b981;
}

.shimoda-timeline .timeline-item::before {
    border-color: #8b5cf6;
}

/* 年を左側に配置するスタイル - 格調高く */
.timeline-year {
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    text-align: right;
    font-weight: 700;
    font-size: 1.1em;
    letter-spacing: 0.05em;
    font-family: 'Noto Serif JP', serif;
}

.north-timeline .timeline-year {
    color: #1e40af;
}

.south-timeline .timeline-year {
    color: #15803d;
}

.shimoda-timeline .timeline-year {
    color: #6d28d9;
}

/* 年号と西暦の表示 */
.timeline-year .wareki {
    display: block;
}

.timeline-year .seireki {
    display: block;
    font-size: 0.7em;
    color: #999;
    font-weight: 400;
    margin-top: 2px;
}

/* コンテンツエリア */
.timeline-content {
    background: transparent;
    padding: 0;
    position: relative;
    transition: all 0.3s;
}


.timeline-content:hover {
    /* ホバー効果なし */
}


.timeline-content h4 {
    margin: 0 0 12px 0;
    color: #1e293b;
    font-size: 1.3em;
    font-weight: 600;
}

.timeline-content p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #475569;
}

/* タイムライン画像 */
.timeline-image {
    margin: 20px 0;
    position: relative;
}

.timeline-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    font-size: 0.85em;
    color: #666;
    padding: 10px 20px;
    background: #f8f9fa;
}

/* 統合の視覚表現 - 格調高いデザイン */
.merger-visual {
    position: relative;
    margin: 50px 0;
    text-align: center;
}

.merger-visual::before,
.merger-visual::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    transform: translateY(-50%);
}

.merger-visual::before {
    left: 0;
    background: linear-gradient(to right, #1e40af, #6d28d9);
}

.merger-visual::after {
    right: 0;
    background: linear-gradient(to left, #15803d, #6d28d9);
}

.merger-text {
    display: inline-block;
    background: #ffffff;
    color: #6d28d9;
    padding: 10px 28px;
    border: 1px solid #6d28d9;
    font-weight: 400;
    font-size: 1.05em;
    position: relative;
    z-index: 1;
    letter-spacing: 0.08em;
    font-family: 'Noto Serif JP', serif;
}

/* 統合後の学校コンテナ */
.merged-school-container {
    margin-top: 40px;
}

.merged-school-container .school-column {
    max-width: 100%;
}

/* 情報がない場合 */
.no-events {
    text-align: center;
    color: #999;
    padding: 40px;
    font-style: italic;
}

/* FAQ */
.faq-item {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1em;
}

.faq-toggle {
    font-size: 24px;
    transition: transform 0.3s;
}

.faq-question.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-section:not(.modern) .faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.faq-section:not(.modern) .faq-answer.active {
    padding: 20px;
    max-height: 500px;
}

/* フォーム */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 20px;
}

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

/* ページネーション */
.pagination,
.page-links {
    text-align: center;
    margin: 40px 0;
}

.pagination a,
.pagination span,
.page-links a,
.page-links span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.pagination a:hover,
.page-links a:hover {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination .current,
.page-links .current {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

/* ウィジェット */
.widget {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.2em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

/* サイドバーレイアウト */
.news-layout,
.award-layout,
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

/* 検索フォーム */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form input[type="search"] {
    flex: 1;
    margin-bottom: 0;
}

.search-form button {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-form button:hover {
    background-color: #2980b9;
}

/* 会の紹介セクション */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.about-item {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.about-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.about-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background-color: #002040;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.icon-text {
    font-size: 2.2em;
    font-weight: 500;
    font-family: 'Noto Serif JP', serif;
}

.about-item h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #2c3e50;
}

.about-item p {
    color: #666;
    line-height: 1.8;
}

/* メールアドレス登録CTAセクション */
.join-description {
    font-size: 1.15em;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.8;
}

.registration-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.email-registration-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

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

.email-registration-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
}

.email-registration-form input[type="email"],
.email-registration-form input[type="text"],
.email-registration-form select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    transition: all 0.3s;
    appearance: none;
}

.email-registration-form select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 45px;
}

.email-registration-form input[type="email"]:focus,
.email-registration-form input[type="text"]:focus,
.email-registration-form select:focus {
    outline: none;
    border-color: #3498db;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.email-registration-form .button.primary {
    width: 100%;
    padding: 15px 35px;
    font-size: 1.1em;
    background-color: white;
    color: #002040;
    border: none;
    transition: all 0.3s;
    cursor: pointer;
}

.email-registration-form .button.primary:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.email-registration-form .button.primary i {
    margin-right: 8px;
}

.privacy-note {
    margin-top: 20px;
    font-size: 0.9em;
    opacity: 0.8;
    text-align: center;
}

.privacy-note i {
    margin-right: 5px;
}

/* 任意項目トグルボタン */
.optional-fields-toggle {
    margin: 0 0 40px 0;
    text-align: center;
}

.toggle-button {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95em;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.toggle-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.toggle-button i {
    transition: transform 0.3s;
    font-size: 0.9em;
}

.toggle-button.active i {
    transform: rotate(180deg);
}

/* 任意項目フィールド */
.optional-fields {
    margin-top: 20px;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.optional-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9em;
    margin-bottom: 15px;
    text-align: center;
}

.email-registration-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    transition: all 0.3s;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.email-registration-form textarea:focus {
    outline: none;
    border-color: #3498db;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

@media (max-width: 768px) {
    .email-registration-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .email-registration-form {
        padding: 30px 20px;
    }
    
    .optional-fields {
        padding: 15px;
    }
}

/* アニメーション */
/* フォーマルなデザインのため、アニメーションは使用しない */

/* 稲葉賞ページ */
.award-origin h3 {
    font-size: 1.5em;
    margin: 30px 0 20px;
    color: #002040;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.award-origin h3:first-child {
    margin-top: 0;
}

.award-origin h4 {
    font-size: 1.3em;
    margin: 25px 0 15px;
    color: #333;
    font-weight: 600;
}

.selection-criteria > h3 {
    font-size: 1.5em;
    margin: 30px 0 20px;
    color: #002040;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.selection-criteria .rule-footer {
    padding: 0;
    background-color: transparent;
    text-align: right;
    margin-top: 30px;
    border-radius: 0;
}

.selection-criteria .rule-footer p {
    color: #999;
    font-size: 0.85em;
    margin: 5px 0;
}

/* 稲葉氏の写真 */
.inaba-photo-container {
    float: left;
    width: 300px;
    margin: 0 25px 20px 0;
    text-align: center;
}

.inaba-photo {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    background-color: #f5f5f5;
}

.photo-caption {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
}

/* 引用文 */
.inaba-quote {
    margin: 20px 0;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-left: 4px solid #002040;
    font-style: italic;
    color: #555;
    clear: right;
}

/* 日付記載 */
.date-note {
    text-align: right;
    margin-top: 30px;
    font-size: 0.9em;
    color: #666;
    clear: both;
}

/* clearfix */
.award-origin::after {
    content: "";
    display: table;
    clear: both;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .inaba-photo-container {
        float: none;
        width: 100%;
        margin: 20px 0;
    }
    
    .inaba-photo {
        max-width: 400px;
        margin: 0 auto;
        display: block;
    }
    
    .greeting-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .chairman-photo img {
        max-width: 300px;
    }
}

/* 役員紹介セクション */
.executives {
    margin: 80px 0;
}

.executive-group {
    margin-bottom: 50px;
}

.executive-group:last-child {
    margin-bottom: 0;
}

.position-title {
    font-size: 1.3em;
    color: #002040;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #002040;
    font-weight: 600;
}

/* アイコン */
.icon-calendar::before { content: ""; }
.icon-location::before { content: ""; }
.icon-users::before { content: ""; }
.icon-school::before { content: ""; }
.icon-heart::before { content: ""; }

/* 卒業生登録完了メッセージ */
.registration-message {
    position: relative;
    padding: 30px;
    margin: 20px auto;
    max-width: 600px;
    text-align: center;
    border-radius: 10px;
    font-size: 1.1em;
    line-height: 1.6;
    animation: slideInFade 0.5s ease-out;
}

@keyframes slideInFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.registration-message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    color: #155724;
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.2);
}

.registration-message.update {
    background: linear-gradient(135deg, #cce5ff 0%, #b8daff 100%);
    border: 2px solid #004085;
    color: #004085;
    box-shadow: 0 5px 20px rgba(0, 64, 133, 0.2);
}

.registration-message i {
    font-size: 2.5em;
    margin-bottom: 15px;
    display: block;
}

.registration-message.success i {
    color: #28a745;
}

.registration-message.update i {
    color: #004085;
}

/* 成功メッセージの装飾 */
.registration-message::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: currentColor;
    border-radius: 2px;
}

.registration-message strong {
    display: block;
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: 600;
}

/* フォームエラー表示 */
.email-registration-form input.error,
.email-registration-form select.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.email-registration-form .error-message {
    display: block;
    color: #dc3545;
    font-size: 0.9em;
    margin-top: 5px;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* フォーム送信中の状態 */
.email-registration-form button[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

.email-registration-form button[disabled] i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* フォームエラーフィールド */
.error {
    border-color: #e74c3c !important;
}

/* ヒーローセクションアニメーション */
@keyframes heroBackgroundZoom {
    from {
        transform: scale(1.1);
    }
    to {
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ヒーローコンテンツアニメーション */

.hero-animated .hero-title {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.hero-animated .hero-subtitle {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.hero-animated .hero-cta {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.9s forwards;
}

/* アニメーション無効化（モーション設定を尊重） */
@media (prefers-reduced-motion: reduce) {
    .hero-section,
    .hero-animated .hero-title,
    .hero-animated .hero-subtitle,
    .hero-animated .hero-cta {
        animation: none !important;
        opacity: 1 !important;
    }
}

/* スムーズスクロール */
html {
    scroll-behavior: smooth;
}

/* アクセスセクション */
.access-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: stretch;
}

.access-info {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.access-info h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #002040;
    font-weight: 600;
}

.access-info h4 {
    font-size: 1.2em;
    margin: 30px 0 15px 0;
    color: #333;
    font-weight: 600;
}

.access-info p {
    line-height: 1.8;
    color: #333;
    margin-bottom: 0;
}

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

.access-list li {
    padding: 8px 0;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
}

.access-list i {
    color: #3498db;
    width: 20px;
    text-align: center;
}

.access-map {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    background: white;
    height: 100%;
    min-height: 400px;
}

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

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .access-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .access-map iframe {
        height: 300px;
    }
    
    .access-info {
        padding: 25px 20px;
    }
}

/* =========================================
   News記事個別ページスタイル
========================================= */

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

/* 2カラムレイアウト */
.news-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.news-main {
    min-width: 0; /* グリッドオーバーフロー防止 */
}

/* 記事本体 */
.news-single {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 40px;
    margin-bottom: 40px;
}

/* ニュースサムネイル画像 */
.news-thumbnail {
    margin: -40px -40px 30px -40px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.news-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.news-thumbnail.no-image {
    background-color: #f0f0f0;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-thumbnail.no-image i {
    font-size: 100px;
    color: #ccc;
}

/* 記事メタ情報 */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.95em;
    color: #666;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item i {
    color: #999;
    font-size: 1.1em;
}

.category-link {
    display: inline-block;
    padding: 3px 12px;
    background-color: #002040;
    color: white;
    border-radius: 15px;
    font-size: 0.9em;
    text-decoration: none;
    transition: all 0.3s;
}

.category-link:hover {
    background-color: #003366;
    transform: translateY(-1px);
}

/* 本文タイポグラフィー */
.news-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 50px;
}

.news-content h2 {
    font-size: 1.8em;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #002040;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.news-content h3 {
    font-size: 1.5em;
    margin: 35px 0 15px;
    font-weight: 600;
    color: #002040;
}

.news-content h4 {
    font-size: 1.3em;
    margin: 30px 0 15px;
    font-weight: 600;
}

.news-content p {
    margin-bottom: 25px;
}

.news-content ul,
.news-content ol {
    margin: 25px 0;
    padding-left: 30px;
}

.news-content li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.news-content blockquote {
    margin: 30px 0;
    padding: 20px 25px;
    background-color: #f8f9fa;
    border-left: 4px solid #002040;
    font-style: italic;
    color: #555;
}

.news-content img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.news-content a {
    color: #3498db;
    text-decoration: underline;
    transition: color 0.3s;
}

.news-content a:hover {
    color: #2980b9;
}

/* 開催要項・プログラム（dl/dt/dd） */
.news-content dl {
    margin: 30px 0;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #002040;
}

.news-content dt {
    font-weight: 700;
    color: #002040;
    font-size: 1.05em;
    margin-top: 20px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.news-content dt:first-child {
    margin-top: 0;
}

.news-content dt::before {
    content: "■";
    color: #002040;
    margin-right: 8px;
    font-size: 0.8em;
}

.news-content dd {
    margin-left: 24px;
    margin-bottom: 20px;
    line-height: 1.8;
    color: #333;
}

.news-content dd:last-child {
    margin-bottom: 0;
}

.news-content dd ul {
    margin-top: 10px;
    margin-bottom: 0;
}

.news-content dd ul li {
    margin-bottom: 8px;
}

/* 資料ダウンロードリンク（PDFファイル）*/
.news-content ul li a[href$=".pdf"] {
    display: inline-flex;
    align-items: center;
    color: #002040;
    font-weight: 500;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.news-content ul li a[href$=".pdf"]::before {
    content: "📄";
    margin-right: 6px;
}

.news-content ul li a[href$=".pdf"]:hover {
    color: #3498db;
}

/* dd内のul（プログラム詳細など） */
.news-content dd ul {
    padding-left: 30px;
}

.news-content dd ul li {
    margin-bottom: 8px;
    list-style: disc;
}

/* ソーシャルシェア */
.social-share {
    padding: 30px 0;
    margin: 40px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

.share-title {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 20px;
    font-weight: 400;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-size: 0.95em;
    transition: all 0.3s;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.share-button.twitter {
    background-color: #1DA1F2;
}

.share-button.facebook {
    background-color: #1877F2;
}

.share-button.line {
    background-color: #00B900;
}

/* 前後記事ナビゲーション */
.news-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.nav-card {
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-card:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.nav-card a {
    display: block;
    padding: 25px;
    text-decoration: none;
    color: #333;
}

.nav-label {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-title {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 5px 0;
    line-height: 1.4;
    color: #002040;
}

.nav-date {
    font-size: 0.85em;
    color: #999;
}

.nav-previous {
    text-align: left;
}

.nav-next {
    text-align: right;
}

/* 関連記事 */
.related-posts {
    margin: 60px 0 40px;
}

.related-posts > .related-title {
    font-size: 1.5em;
    text-align: center;
    margin-bottom: 30px;
    color: #002040;
    font-weight: 600;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.related-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

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

.related-item a {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: #333;
}

.related-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.85em;
    color: #666;
}

.related-category {
    display: inline-block;
    padding: 2px 8px;
    background-color: #002040;
    color: white;
    border-radius: 3px;
    font-size: 0.8em;
}

.related-item .related-title {
    font-size: 1.05em;
    font-weight: 600;
    line-height: 1.5;
    color: #333;
    margin: 0;
}

/* 一覧に戻るボタン */
.back-to-list {
    text-align: center;
    margin-top: 40px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background-color: #002040;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s;
}

.back-link:hover {
    background-color: #003366;
    transform: translateX(-5px);
}

/* サイドバー */
.news-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 20px;
    color: #002040;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

/* 検索フォーム */
.news-sidebar .search-form {
    display: flex;
    gap: 0;
}

.news-sidebar .search-field {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.news-sidebar .search-submit {
    padding: 0 15px;
    background: #002040;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.news-sidebar .search-submit:hover {
    background: #003366;
}

/* カテゴリーリスト */
.category-list,
.recent-posts,
.archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li,
.archive-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.category-list li:last-child,
.archive-list li:last-child {
    border-bottom: none;
}

.category-list a,
.archive-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.category-list a:hover,
.archive-list a:hover {
    color: #002040;
}

.category-list .current-cat a {
    color: #002040;
    font-weight: 600;
}

.count {
    color: #999;
    font-size: 0.9em;
}

/* 最新記事リスト */
.recent-posts li {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.recent-posts li:last-child {
    border-bottom: none;
}

.recent-posts a {
    display: block;
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.recent-posts a:hover {
    color: #002040;
}

.recent-posts .post-date {
    display: block;
    font-size: 0.85em;
    color: #999;
    margin-bottom: 5px;
}

.recent-posts .post-title {
    font-size: 0.95em;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
    .news-layout {
        grid-template-columns: 1fr;
    }
    
    .news-sidebar {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .news-single-container {
        padding: 40px 15px;
    }
    
    .news-single {
        padding: 30px 20px;
    }
    
    .news-content {
        font-size: 16px;
    }
    
    .news-content h2 {
        font-size: 1.5em;
    }
    
    .news-content h3 {
        font-size: 1.3em;
    }

    .news-content dl {
        padding: 20px;
        margin: 20px 0;
    }

    .news-content dt {
        font-size: 1em;
    }

    .news-content dd {
        margin-left: 16px;
        font-size: 0.95em;
    }

    .article-meta {
        font-size: 0.9em;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
    
    .share-button {
        font-size: 0.9em;
        padding: 8px 16px;
    }
    
    .news-navigation {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
}

/* =========================================
   News アーカイブページスタイル
========================================= */

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

/* 2カラムレイアウト */
.news-archive-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.news-archive-main {
    min-width: 0; /* グリッドオーバーフロー防止 */
}

/* 記事リスト */
.news-archive-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 記事アイテム */
.news-archive-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-archive-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.news-archive-link {
    display: flex;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
}

/* サムネイル */
.news-archive-thumbnail {
    flex-shrink: 0;
    width: 280px;
    overflow: hidden;
    background-color: #f0f0f0;
    position: relative;
}

.news-archive-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-archive-item:hover .news-archive-thumbnail img {
    transform: scale(1.05);
}

.news-archive-thumbnail.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.news-archive-thumbnail.no-image i {
    font-size: 48px;
    color: #ddd;
}

/* コンテンツ部分 */
.news-archive-content {
    flex: 1;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
}

/* メタ情報 */
.news-archive-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.9em;
}

.news-archive-date {
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-archive-date i {
    font-size: 0.9em;
}

.news-archive-category {
    display: inline-block;
    padding: 3px 12px;
    background-color: #002040;
    color: white;
    border-radius: 15px;
    font-size: 0.85em;
}

/* タイトル */
.news-archive-title {
    font-size: 1.4em;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #333;
    transition: color 0.3s;
}

.news-archive-item:hover .news-archive-title {
    color: #002040;
}

/* 抜粋 */
.news-archive-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
    font-size: 0.95em;
}

/* 続きを読むリンク */
.news-archive-more {
    color: #3498db;
    font-size: 0.95em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.news-archive-item:hover .news-archive-more {
    gap: 10px;
}

/* 記事がない場合 */
.no-news {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.no-news i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-news p {
    font-size: 1.1em;
    color: #999;
}

/* ページネーション */
.news-pagination {
    margin-top: 50px;
    text-align: center;
}

.news-pagination ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.news-pagination li {
    margin: 0;
}

.news-pagination a,
.news-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.news-pagination a:hover {
    background-color: #002040;
    color: white;
    border-color: #002040;
}

.news-pagination .current span {
    background-color: #002040;
    color: white;
    border-color: #002040;
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
    .news-archive-layout {
        grid-template-columns: 1fr;
    }
    
    .news-archive-link {
        flex-direction: column;
    }
    
    .news-archive-thumbnail {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .news-archive-container {
        padding: 40px 15px;
    }
    
    .news-archive-content {
        padding: 20px;
    }
    
    .news-archive-title {
        font-size: 1.2em;
    }
    
    .news-archive-excerpt {
        font-size: 0.9em;
    }
    
    .news-archive-meta {
        font-size: 0.85em;
    }
    
    .news-pagination a,
    .news-pagination span {
        min-width: 35px;
        height: 35px;
        padding: 0 12px;
        font-size: 0.9em;
    }
}

/* ==========================================================================
   モダンな問い合わせページスタイル
   ========================================================================== */

/* コンテナ */
.contact-modern-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* セクション共通 */
.contact-form-section.modern,
.faq-section.modern,
.contact-info-section.modern {
    margin-bottom: 80px;
}

/* セクションヘッダー */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #002040;
}

.section-description {
    font-size: 1.1em;
    color: #666;
    margin-top: 20px;
}

/* フォームコンテナ */
.modern-form {
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

/* Contact Form 7スタイル */
.modern-form .wpcf7-form p {
    margin-bottom: 25px;
}

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

.modern-form .wpcf7-form input[type="text"],
.modern-form .wpcf7-form input[type="email"],
.modern-form .wpcf7-form input[type="tel"],
.modern-form .wpcf7-form textarea,
.modern-form .wpcf7-form select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s;
    background: #fafafa;
}

.modern-form .wpcf7-form input[type="text"]:focus,
.modern-form .wpcf7-form input[type="email"]:focus,
.modern-form .wpcf7-form input[type="tel"]:focus,
.modern-form .wpcf7-form textarea:focus,
.modern-form .wpcf7-form select:focus {
    outline: none;
    border-color: #002040;
    background: white;
    box-shadow: 0 0 0 3px rgba(0,32,64,0.1);
}

.modern-form .wpcf7-form textarea {
    min-height: 150px;
    resize: vertical;
}

.modern-form .wpcf7-form input[type="submit"] {
    background: #002040;
    color: white;
    padding: 18px 50px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.modern-form .wpcf7-form input[type="submit"]:hover {
    background: #003060;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,32,64,0.3);
}

/* FAQ スタイル */
.modern-faq {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.modern-faq-item {
    border-bottom: 1px solid #f0f0f0;
}

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

.faq-question {
    width: 100%;
    padding: 25px 30px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: background 0.3s;
    text-align: left;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-icon {
    width: 40px;
    height: 40px;
    background: #002040;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.faq-icon.answer {
    background: #3498db;
}

.faq-text {
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

.faq-toggle {
    color: #666;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-toggle {
    transform: rotate(180deg);
}

/* FAQ回答の初期非表示を確実にする */
.modern-faq-item .faq-answer {
    overflow: hidden;
}

.modern-faq .faq-answer {
    display: flex !important;
    padding: 0 30px 25px 30px;
    align-items: flex-start;
    gap: 15px;
    max-height: 0 !important;
    overflow: hidden;
    transition: max-height 0.3s ease;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.modern-faq .faq-question[aria-expanded="true"] + .faq-answer {
    opacity: 1;
}

/* アニメーション中のレイアウト維持 */
.modern-faq .faq-answer > * {
    flex-shrink: 0;
}

.faq-answer-content {
    flex: 1;
    line-height: 1.8;
    color: #666;
}

.faq-answer-content p {
    margin: 0;
}

/* 問い合わせ先情報 */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.info-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.info-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #f0f4f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #002040;
    font-size: 32px;
}

.info-card h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #333;
}

.info-main {
    font-size: 1.3em;
    font-weight: 700;
    color: #002040;
    margin-bottom: 8px;
}

.info-sub {
    color: #666;
    font-size: 0.95em;
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .contact-modern-container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 1.8em;
    }
    
    .modern-form {
        padding: 30px 20px;
    }
    
    .faq-question {
        padding: 20px 15px;
    }
    
    .faq-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9em;
    }
    
    .faq-text {
        font-size: 1em;
    }
    
    .faq-answer {
        padding: 0 15px 20px 15px;
    }
    
    .info-card {
        padding: 30px 20px;
    }
    
    .info-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}



/* ==========================================================================
   静的FAQ（アコーディオンなし）
   ========================================================================== */

.static-faq {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.static-faq-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 30px;
}

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

.faq-question-static {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.faq-answer-static {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 20px;
}

.static-faq .faq-icon {
    width: 40px;
    height: 40px;
    background: #002040;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.static-faq .faq-icon.answer {
    background: #3498db;
}

.static-faq .faq-text {
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    line-height: 1.6;
}

.static-faq .faq-answer-content {
    flex: 1;
    line-height: 1.8;
    color: #666;
}

.static-faq .faq-answer-content p {
    margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .static-faq-item {
        padding: 20px 15px;
    }
    
    .faq-answer-static {
        margin-top: 15px;
    }
    
    .static-faq .faq-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9em;
    }
    
    .static-faq .faq-text {
        font-size: 1em;
    }
}



/* ==========================================================================
   フッターサイトマップ最適化
   ========================================================================== */

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

.footer-sitemap .footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-sitemap .footer-menu li {
    margin-bottom: 10px;
}

.footer-sitemap .footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
    font-size: 0.95em;
}

.footer-sitemap .footer-menu a:hover {
    color: white;
}

.footer-sitemap .footer-menu i {
    font-size: 0.9em;
    width: 16px;
    text-align: center;
    opacity: 0.7;
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
    .footer-sitemap .sitemap-columns {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .footer-sitemap .footer-menu li {
        margin-bottom: 8px;
    }
    
    .footer-sitemap .footer-menu a {
        font-size: 0.9em;
    }
}



/* 最新情報セクション */
.footer-recent-news {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.footer-recent-news li {
    margin-bottom: 12px;
}

.footer-recent-news a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    gap: 10px;
    align-items: baseline;
    transition: color 0.3s;
    font-size: 0.9em;
}

.footer-recent-news a:hover {
    color: white;
}

.footer-recent-news .news-date {
    flex-shrink: 0;
    font-size: 0.85em;
    opacity: 0.7;
}

.footer-recent-news .news-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-follow {
    margin-top: 20px;
}

.social-follow h5 {
    font-size: 1em;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}




/* フッター問い合わせ情報 */
.footer-contact-info {
    margin-top: 20px;
}

.footer-contact-info h5 {
    font-size: 1em;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* 会則セクション */
.rules-section,
.branch-rules-section {
    margin: 80px 0 40px;
    padding: 60px 0;
    border-top: 2px solid #e0e0e0;
}

.rules-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.rule-article {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-left: 4px solid #002040;
    border-radius: 4px;
}

.rule-article h3 {
    color: #002040;
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: 600;
}

.rule-article p {
    line-height: 1.9;
    color: #333;
    margin-bottom: 10px;
}

.rule-article ol {
    margin: 15px 0;
    padding-left: 25px;
}

.rule-article ol li {
    line-height: 1.9;
    color: #333;
    margin-bottom: 12px;
}

.rule-footer {
    margin-top: 50px;
    padding: 30px;
    background-color: #f0f0f0;
    border-radius: 4px;
    text-align: center;
}

.rule-footer p {
    color: #666;
    font-size: 0.95em;
    margin: 5px 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .rules-section,
    .branch-rules-section {
        margin: 50px 0 30px;
        padding: 40px 0;
    }

    .rule-article {
        padding: 10px;
        margin-bottom: 12px;
    }

    .rule-article h3 {
        font-size: 1.1em;
    }

    .rule-article p,
    .rule-article ol li {
        font-size: 0.95em;
        line-height: 1.8;
    }
}

/* 支部役員紹介セクション */
.branch-officers {
    margin: 80px 0;
}

/* 地区長カード */
.leader-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.leader-position {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.leader-name {
    font-size: 1.3em;
    color: #002040;
    font-weight: 600;
}

/* 地区長グリッド - 4列 */
.district-leaders-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

/* タブレット: 2列 */
@media (max-width: 768px) {
    .district-leaders-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* モバイル: 1列 */
@media (max-width: 480px) {
    .district-leaders-grid {
        grid-template-columns: 1fr;
    }

    .leader-name {
        font-size: 1.2em;
    }
}

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

.district-section:first-of-type {
    margin-top: 50px;
}

.district-section h3 {
    font-size: 1.8em;
    color: #002040;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #002040;
}

/* 支部テーブル（歴代会長テーブルと同じスタイル） */
.branches-table-wrapper {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 0;
    overflow-x: auto;
}

.branches-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.branches-table thead {
    background-color: #002040;
}

.branches-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.05em;
    white-space: nowrap;
    color: white;
    background-color: #002040;
}

.branches-table th:first-child {
    width: 15%;
}

.branches-table th:nth-child(2) {
    width: 20%;
}

.branches-table th:last-child {
    width: 65%;
}

.branches-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s;
    background-color: white;
}

.branches-table tbody tr:hover {
    background-color: #f8f9fa;
}

.branches-table tbody tr:last-child {
    border-bottom: none;
}

.branches-table td {
    padding: 15px 20px;
    vertical-align: top;
    color: #333;
}

@media (max-width: 768px) {
    .district-section h3 {
        font-size: 1.4em;
    }

    .branches-table-wrapper {
        padding: 0;
    }

    .branches-table {
        font-size: 0.9em;
    }

    .branches-table th,
    .branches-table td {
        padding: 12px 10px;
    }
}

/* 校歌セクション */
.school-songs-section {
    background-color: white;
    padding: 60px 0;
    margin: 60px 0;
}

.school-songs-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: #002040;
}

/* 校歌タブナビゲーション */
.song-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0;
}

.song-tab-button {
    background: none;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    font-family: 'Noto Serif JP', serif;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    position: relative;
    bottom: -2px;
}

.song-tab-button:hover {
    color: #002040;
}

.song-tab-button.active {
    color: #002040;
    font-weight: 600;
    border-bottom-color: #002040;
}

/* 校歌コンテンツ */
.song-contents {
    max-width: 800px;
    margin: 0 auto;
}

.song-content {
    display: none;
    animation: fadeIn 0.4s ease-in;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.song-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.song-header h3 {
    font-size: 1.8em;
    color: #002040;
    font-weight: 500;
}

.song-info {
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.song-credit {
    font-size: 1em;
    color: #555;
    margin-bottom: 10px;
    font-weight: 500;
}

.song-lyrics {
    margin-top: 20px;
    padding: 15px 20px;
    background-color: white;
    border-radius: 8px;
    border-left: 4px solid #002040;
    line-height: 1.5;
    font-size: 1.1em;
    color: #333;
    white-space: pre-wrap;
}

.song-info .no-data {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-size: 1.1em;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .school-songs-section {
        padding: 40px 0;
        margin: 40px 0;
    }

    .school-songs-section h2 {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .song-tabs {
        flex-direction: column;
        gap: 0;
        border-bottom: none;
    }

    .song-tab-button {
        padding: 15px 20px;
        font-size: 1em;
        border-bottom: 1px solid #e0e0e0;
        border-left: 3px solid transparent;
        bottom: 0;
        text-align: left;
    }

    .song-tab-button.active {
        border-bottom-color: #e0e0e0;
        border-left-color: #002040;
        background-color: #f8f9fa;
    }

    .song-header h3 {
        font-size: 1.5em;
    }

    .song-info {
        padding: 20px;
    }

    .song-lyrics {
        padding: 10px 15px;
        font-size: 1em;
        line-height: 1.5;
    }
}

/* ========================================
   アーカイブ資料
   ======================================== */

.archive-materials {
    background-color: #f8f9fa;
    padding: 60px 0;
    margin: 60px 0;
}

.archive-materials h2 {
    text-align: center;
    font-size: 2em;
    color: #002040;
    margin-bottom: 40px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.archive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.archive-box {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.archive-box h3 {
    font-size: 1.5em;
    color: #002040;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #002040;
}

/* 記念誌リスト */
.memorial-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.memorial-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1em;
    line-height: 1.6;
}

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

.memorial-list a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.memorial-list a:hover {
    color: #002040;
    text-decoration: underline;
}

/* 資料画像ギャラリー */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.photo-gallery .gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 4px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.photo-gallery .gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.photo-gallery .gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .archive-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .photo-gallery {
        grid-template-columns: 1fr;
    }

    .photo-gallery .gallery-item img {
        height: auto;
    }
}

/* 画像モーダル */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    margin: 5vh auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    transition: all 0.3s;
    z-index: 10;
}

.modal-close:hover {
    background: white;
    transform: rotate(90deg);
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        height: 85vh;
        margin: 7.5vh auto;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
}


