/* Section reveal (1回のフェード+スライド) */
@keyframes revealUp {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-reveal {
    opacity: 0;
    animation: revealUp .6s ease-out .05s both;
}

/* 役職カードの並びとアニメーション */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.role-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    padding: 1rem 1.1rem;
    transition: transform .18s ease, box-shadow .18s ease;
}

.role-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}

.role-card h3 {
    margin-bottom: .4rem;
}

.role-card h3 i {
    color: var(--primary-color);
    margin-right: .4rem;
}

/* 段階的にふわっと見せる（簡易ステッガー） */
.roles-grid .role-card:nth-child(1) {
    animation: revealUp .5s ease-out .06s both;
}

.roles-grid .role-card:nth-child(2) {
    animation: revealUp .5s ease-out .12s both;
}

.roles-grid .role-card:nth-child(3) {
    animation: revealUp .5s ease-out .18s both;
}

.roles-grid .role-card:nth-child(4) {
    animation: revealUp .5s ease-out .24s both;
}

.roles-grid .role-card:nth-child(5) {
    animation: revealUp .5s ease-out .30s both;
}

/* プロセス／ポリシー／FAQの整え */
.process-steps {
    padding-left: 1.2rem;
    line-height: 1.9;
}

.policy-list {
    padding-left: 1.2rem;
    line-height: 1.9;
}

.faq-list details {
    background: #fff;
    border-radius: 10px;
    padding: .8rem 1rem;
    margin: .6rem 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.faq-list summary {
    cursor: pointer;
    font-weight: 600;
}

/* 新規詳細セクションの縦間隔調整 */
.council-roles,
.council-process,
.council-policy,
.council-faq {
    margin-top: 2.2rem;
    margin-bottom: 2.2rem;
}

/* タイトル下の間隔をやや短めに */
.council-roles .section-title,
.council-process .section-title,
.council-policy .section-title,
.council-faq .section-title {
    margin-bottom: 1.2rem;
}

/* 超小型処理中インジケータ */
.processing-indicator {
    position: fixed;
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    z-index: 99999;
    opacity: 0;
    transform: translateY(0);
    pointer-events: none;
    display: block;
}

.processing-indicator.show {
    opacity: 0.9;
    animation: tiny-bounce 0.8s ease-in-out infinite;
}

@keyframes tiny-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* Modal positioning enforcement - Viewport center */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#auth-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

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

/* ===== PWA Update Notification ===== */
.pwa-update-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.pwa-update-notification.pwa-update-notification-show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.pwa-update-notification-content {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    padding: 16px 20px;
    max-width: 400px;
    min-width: 320px;
}

.pwa-update-notification-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.pwa-update-notification-text {
    flex: 1;
    min-width: 0;
}

.pwa-update-notification-text h3 {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.pwa-update-notification-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.3;
}

.pwa-update-notification-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.pwa-update-notification-actions .btn {
    height: 32px;
    padding: 0 12px;
    font-size: 0.85rem;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .pwa-update-notification {
        top: 12px;
        right: 12px;
        left: 12px;
    }

    .pwa-update-notification-content {
        max-width: none;
        min-width: auto;
        padding: 12px 16px;
    }

    .pwa-update-notification-actions {
        flex-direction: column;
        gap: 6px;
    }

    .pwa-update-notification-actions .btn {
        width: 100%;
        height: 36px;
    }
}

/* ===== PWA Smart Banner (Top-right toast) ===== */
.pwa-smart-banner {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.pwa-smart-banner.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.pwa-smart-banner .pwa-smart-banner-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--surface-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 16px 20px;
    max-width: 380px;
    min-width: 320px;
    position: relative;
}

.pwa-smart-banner .pwa-smart-banner-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pwa-smart-banner .pwa-smart-banner-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--background-color);
    color: var(--primary-color);
    flex-shrink: 0;
}

.pwa-smart-banner .pwa-smart-banner-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.pwa-smart-banner .pwa-smart-banner-text strong {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pwa-smart-banner .pwa-smart-banner-text span {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pwa-smart-banner .pwa-smart-banner-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-light);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.pwa-smart-banner .pwa-smart-banner-close:hover {
    background: var(--background-color);
    color: var(--text-color);
}

.pwa-smart-banner .pwa-smart-banner-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.pwa-smart-banner .pwa-smart-banner-actions .btn {
    height: 32px;
    padding: 0 12px;
    font-size: 0.85rem;
    white-space: nowrap;
    min-width: 80px;
}

@media (max-width: 480px) {
    .pwa-smart-banner {
        top: 12px;
        right: 12px;
        left: 12px;
    }

    .pwa-smart-banner .pwa-smart-banner-content {
        max-width: none;
        min-width: auto;
        padding: 14px 16px;
    }

    .pwa-smart-banner .pwa-smart-banner-text strong,
    .pwa-smart-banner .pwa-smart-banner-text span {
        white-space: normal;
        overflow: visible;
        text-overflow: initial;
    }

    .pwa-smart-banner .pwa-smart-banner-actions {
        justify-content: center;
    }

    .pwa-smart-banner .pwa-smart-banner-actions .btn {
        min-width: 70px;
        padding: 0 8px;
        font-size: 0.8rem;
    }

    .pwa-smart-banner .pwa-smart-banner-close {
        top: 6px;
        right: 6px;
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
}

html {
    margin: 0;
    padding: 0;
    height: 100%;
}

/* 基本スタイル */
:root {
    /* 新しいカラーパレット - 淡い緑、オレンジ、赤を主調 */
    --primary-color: #4a7c59;
    /* ソフトグリーン */
    --secondary-color: #d4a574;
    /* ソフトオレンジ */
    --accent-color: #e74c3c;
    /* 鮮やかなレッド */
    --success-color: #6b9b7a;
    /* より明るいグリーン */
    --warning-color: #e6a85c;
    /* より明るいオレンジ */
    --error-color: #e74c3c;
    /* 鮮やかなレッド（エラー用） */
    --danger-color: #c0392b;
    /* より濃いレッド（危険・削除用） */
    --background-color: #f8faf9;
    /* 非常に淡いグリーンティント */
    --surface-color: #ffffff;
    --text-color: #2d3a2d;
    /* ダークグリーン */
    --text-light: #6b7c6b;
    /* ミディアムグリーン */
    --border-color: #e8f0e8;
    /* 淡いグリーンボーダー */
    --shadow-sm: 0 1px 3px 0 rgba(74, 124, 89, 0.1), 0 1px 2px 0 rgba(74, 124, 89, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(74, 124, 89, 0.1), 0 2px 4px -1px rgba(74, 124, 89, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(74, 124, 89, 0.1), 0 4px 6px -2px rgba(74, 124, 89, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(74, 124, 89, 0.1), 0 10px 10px -5px rgba(74, 124, 89, 0.04);
    --gradient-primary: linear-gradient(135deg, #a8d5ba 0%, #d4a574 100%);
    /* グリーンからオレンジ */
    --gradient-secondary: linear-gradient(135deg, #ff6b6b 0%, #e74c3c 100%);
    /* 鮮やかなピンクからレッド */
    --gradient-hero: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-warm: linear-gradient(135deg, #d4a574 0%, #e74c3c 100%);
    /* オレンジから鮮やかなレッド */
    --gradient-cool: linear-gradient(135deg, #a8d5ba 0%, #4a7c59 100%);
    /* ライトグリーンからダークグリーン */
}

/* 汎用アニメーション/トランジション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pageEnter {
    0% {
        opacity: 0;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pageExit {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.2), inset 0 0 30px rgba(255, 255, 255, 0.1);
    }

    100% {
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.4), inset 0 0 40px rgba(255, 255, 255, 0.2);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes textShimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroShimmer {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

@keyframes heroGlow {
    0% {
        box-shadow:
            0 0 40px rgba(255, 255, 255, 0.2),
            inset 0 0 40px rgba(255, 255, 255, 0.1);
    }

    100% {
        box-shadow:
            0 0 60px rgba(255, 255, 255, 0.4),
            inset 0 0 60px rgba(255, 255, 255, 0.2);
    }
}

@keyframes heroRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes heroIconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* 控えめな浮遊アニメーション（画像用） */
@keyframes heroFloatSoft {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-6px) rotate(0.5deg);
    }
}

/* ホバー時の小刻みな震え */
@keyframes heroTremble {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    20% {
        transform: translate(-1px, 0.5px) rotate(-0.2deg);
    }

    40% {
        transform: translate(1px, -0.5px) rotate(0.2deg);
    }

    60% {
        transform: translate(-1px, 0.5px) rotate(-0.2deg);
    }

    80% {
        transform: translate(1px, -0.5px) rotate(0.2deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* 一度だけ大きめに震える */
@keyframes heroTrembleBig {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    15% {
        transform: translate(-4px, 1.5px) rotate(-0.6deg);
    }

    35% {
        transform: translate(4px, -1.5px) rotate(0.6deg);
    }

    55% {
        transform: translate(-3px, 1px) rotate(-0.5deg);
    }

    75% {
        transform: translate(3px, -1px) rotate(0.5deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* 豪華なオープニングアニメーション */
@keyframes openingBackgroundShift {

    0%,
    100% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 20% 80%, 80% 20%;
    }

    25% {
        background-position: 25% 25%, 75% 75%, 75% 25%, 40% 60%, 60% 40%;
    }

    50% {
        background-position: 50% 50%, 50% 50%, 100% 0%, 60% 40%, 40% 60%;
    }

    75% {
        background-position: 75% 75%, 25% 25%, 25% 75%, 80% 20%, 20% 80%;
    }
}

@keyframes openingShimmer {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1) rotate(0deg);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.1) rotate(180deg);
    }
}

@keyframes openingGrain {
    0% {
        transform: translateX(0) translateY(0);
    }

    25% {
        transform: translateX(-10px) translateY(-5px);
    }

    50% {
        transform: translateX(10px) translateY(-10px);
    }

    75% {
        transform: translateX(-5px) translateY(5px);
    }

    100% {
        transform: translateX(0) translateY(0);
    }
}

@keyframes openingLogoFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-8px) rotate(1deg);
    }

    50% {
        transform: translateY(-15px) rotate(0deg);
    }

    75% {
        transform: translateY(-8px) rotate(-1deg);
    }
}

@keyframes openingLogoGlow {
    0% {
        box-shadow:
            0 0 50px rgba(255, 255, 255, 0.3),
            inset 0 0 50px rgba(255, 255, 255, 0.15),
            0 0 100px rgba(168, 213, 186, 0.2);
    }

    100% {
        box-shadow:
            0 0 80px rgba(255, 255, 255, 0.5),
            inset 0 0 80px rgba(255, 255, 255, 0.25),
            0 0 150px rgba(168, 213, 186, 0.4);
    }
}


@keyframes openingTitleSlide {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes openingTitleShimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes openingTitleGlow {
    0% {
        background-position: 0% 50%;
        opacity: 0.8;
    }

    50% {
        background-position: 100% 50%;
        opacity: 1;
    }

    100% {
        background-position: 0% 50%;
        opacity: 0.8;
    }
}

@keyframes openingSubtitleSlide {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes openingSubtitleFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes openingLoaderSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes openingProgressFill {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

@keyframes openingLoadingTextFade {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

@keyframes openingParticleFloat {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
        transform: translateY(90vh) translateX(10px) scale(1);
    }

    90% {
        opacity: 1;
        transform: translateY(10vh) translateX(-10px) scale(1);
    }

    100% {
        transform: translateY(-10vh) translateX(0) scale(0);
        opacity: 0;
    }
}

/* モーダル（共通） - Viewport center */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay.opening {
    display: flex;
    opacity: 0;
    pointer-events: none;
}

.modal-overlay.closing {
    opacity: 0;
}

.modal {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: translateY(8px) scale(0.98);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    margin: 20px;
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

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

.modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.modal-close {
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-light);
    transition: background-color 0.2s ease, color 0.2s ease;
}

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

.modal-body {
    padding: 16px;
}

/* 認証モーダルの中央揃え */
#auth-modal .modal-body {
    text-align: center;
}

#auth-modal .auth-step {
    text-align: center;
}

#auth-modal .form-group {
    display: inline-block;
    text-align: left;
    width: 100%;
    max-width: 360px;
}

/* パスワード入力フィールドのラッパー */
.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper .form-control {
    padding-right: 45px;
}

/* パスワード表示切替ボタン */
.password-toggle-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    transition: all 0.2s ease;
    z-index: 10;
}

.password-toggle-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
}

.password-toggle-btn:active {
    background-color: rgba(0, 0, 0, 0.1);
}

.password-toggle-btn i {
    font-size: 16px;
    line-height: 1;
}

/* 名前確認表示 */
.student-name-display {
    padding: 0.75rem;
    background-color: #f8f9fa;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    color: var(--text-color);
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    font-weight: 500;
}

#auth-modal .form-control {
    max-width: 320px;
    margin: 0 auto;
}

#auth-modal .btn {
    margin-left: auto;
    margin-right: auto;
}

/* スマホサイズでの閉じるボタン統一 */
@media (max-width: 768px) {

    .modal-close,
    .sidebar-close-btn {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

    .modal-close i,
    .sidebar-close-btn i {
        font-size: 1.1rem;
    }
}

@media (min-width: 768px) {
    .news-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1200px) {
    .news-container {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.login-error {
    display: none;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.25);
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* ページトランジション */
body.page-enter {
    opacity: 0;
    transform: translateY(20px);
}

body.page-enter-active {
    animation: pageEnter 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

body.page-exit {
    animation: pageExit 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--background-color);
    font-size: 16px;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* ナビゲーション */
.navbar {
    background: var(--surface-color);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    cursor: pointer;
    transition: color 0.3s ease;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-spacer {
    width: 50px;
    /* Same as back button width */
}

/* 戻るボタン */
.back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: var(--background-color);
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.back-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(-3px);
    box-shadow: var(--shadow-md);
}

.back-button i {
    font-size: 1.2rem;
}

/* member-detail.htmlでのハンバーガーメニュー非表示 */
.member-detail-page .hamburger {
    display: none;
}

.logo:hover {
    color: var(--secondary-color);
}

/* Old nav-menu styles removed - now using sidebar only */

/* ハンバーガーメニューのアクセシビリティ */
@media (prefers-reduced-motion: reduce) {

    .hamburger,
    .hamburger span,
    .sidebar,
    .sidebar-overlay {
        transition: none !important;
        animation: none !important;
    }
}

/* フォーカス時のアクセシビリティ */
.hamburger:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 3px;
    box-shadow:
        0 12px 40px rgba(52, 152, 219, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 0 3px rgba(52, 152, 219, 0.2);
}

.sidebar-nav a:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
    background: rgba(52, 152, 219, 0.1);
}

/* ハンバーガーメニュー */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 14px;
    z-index: 1002 !important;
    position: fixed;
    left: 16px;
    top: 16px;
    pointer-events: auto;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: var(--surface-color);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(52, 152, 219, 0.4);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    /* ボタンのリセット */
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    outline: none;
}

.hamburger:hover {
    background: var(--surface-color);
    border-color: var(--secondary-color);
    transform: scale(1.08) translateY(-2px);
    box-shadow:
        0 12px 40px rgba(52, 152, 219, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hamburger:active {
    transform: scale(1.02);
    transition: transform 0.1s ease;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    margin: 2px 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
    border-radius: 1px;
    position: relative;
}

.hamburger span::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 1px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hamburger:hover span::after {
    opacity: 1;
}

.hamburger.active {
    background: var(--surface-color);
    border-color: var(--accent-color);
    box-shadow:
        0 8px 32px rgba(231, 76, 60, 0.3),
        0 2px 8px rgba(231, 76, 60, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hamburger.active span {
    background: var(--accent-color);
}

.hamburger.active span::after {
    background: var(--accent-color);
    opacity: 1;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* サイドバーが開いている時のハンバーガーボタンの位置 */
.sidebar-open .hamburger {
    left: 336px;
    /* サイドバー幅(320px) + マージン(16px) */
    z-index: 1002 !important;
    background: var(--surface-color);
    border: 2px solid rgba(52, 152, 219, 0.6);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 0 2px rgba(255, 255, 255, 0.2);
}

/* スマホ画面でのハンバーガーボタン位置調整 */
@media (max-width: 768px) {
    .sidebar-open .hamburger {
        left: 316px;
        /* サイドバー幅(300px) + マージン(16px) */
        z-index: 1002 !important;
        background: var(--surface-color);
        border: 2px solid rgba(52, 152, 219, 0.6);
        box-shadow:
            0 12px 40px rgba(0, 0, 0, 0.3),
            0 4px 12px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            0 0 0 2px rgba(255, 255, 255, 0.2);
    }
}

@media (max-width: 480px) {
    .sidebar-open .hamburger {
        left: 16px;
        /* スマホでは元の位置に戻す */
        z-index: 1002 !important;
        background: var(--surface-color);
        border: 2px solid rgba(52, 152, 219, 0.6);
        box-shadow:
            0 12px 40px rgba(0, 0, 0, 0.3),
            0 4px 12px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            0 0 0 2px rgba(255, 255, 255, 0.2);
    }
}

/* ハンバーガーボタンのパルス効果（初回訪問時） */
.hamburger.pulse {
    animation: hamburgerPulse 2s infinite;
}

@keyframes hamburgerPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.12),
            0 2px 8px rgba(0, 0, 0, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    50% {
        transform: scale(1.05);
        box-shadow:
            0 12px 40px rgba(52, 152, 219, 0.25),
            0 4px 12px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            0 0 0 4px rgba(52, 152, 219, 0.1);
    }
}

/* サイドバーナビゲーション */
.sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: var(--surface-color);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.05),
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar.active {
    left: 0;
    transform: translateX(0);
}

.sidebar-header {
    padding: 2.5rem 2rem 2rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    position: relative;
    overflow: visible;
}

.sidebar-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 50%,
            rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.sidebar-header h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.sidebar-header p {
    margin: 0.75rem 0 0;
    opacity: 0.95;
    font-size: 0.95rem;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* スマホ用の閉じるボタン */
.sidebar-close-btn {
    display: none;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.sidebar-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.sidebar-close-btn i {
    color: white;
    font-size: 1.2rem;
}

/* タブレット・スマホ画面での閉じるボタン表示 */
@media (max-width: 768px) {
    .sidebar-close-btn {
        display: flex;
    }
}

/* デスクトップでは閉じるボタンを非表示 */
@media (min-width: 769px) {
    .sidebar-close-btn {
        display: none !important;
    }
}

.sidebar-nav {
    padding: 1.5rem 0;
}

.sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav li {
    margin: 0.25rem 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    margin: 0 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-weight: 500;
    border: 1px solid transparent;
}

.sidebar-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(52, 152, 219, 0.08),
            transparent);
    transition: left 0.4s ease;
    z-index: 0;
}

.sidebar-nav a:hover::before {
    left: 100%;
}

.sidebar-nav a:hover {
    background: rgba(52, 152, 219, 0.05);
    border-color: rgba(52, 152, 219, 0.2);
    color: var(--secondary-color);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.sidebar-nav a.active {
    background: linear-gradient(135deg,
            rgba(52, 152, 219, 0.1) 0%,
            rgba(52, 152, 219, 0.05) 100%);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    font-weight: 600;
    box-shadow:
        0 4px 12px rgba(52, 152, 219, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sidebar-nav a.active::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.6);
}

.sidebar-nav i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.sidebar-nav span {
    position: relative;
    z-index: 1;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background:
        radial-gradient(circle at 30% 40%, rgba(44, 62, 80, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    backdrop-filter: blur(3px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* 端末を横向きにした際のハンバーガー位置補正（高さ基準） */
@media (max-height: 480px) {
    .sidebar-open .hamburger {
        left: 16px;
        z-index: 1002 !important;
    }
}

/* オープニングページ */
/* オープニングページ - Artistic Fluid Design */
.opening-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #f0f4f8;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    opacity: 1;
    transition: opacity 1.2s ease, transform 1.2s ease;
    overflow: hidden;
}

/* Canvas Texture */
.opening-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
    opacity: 1;
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: overlay;
}

/* Fluid Mesh Gradient */
.opening-art-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.8), transparent 60%),
        radial-gradient(circle at 20% 30%, #a8d5ba, transparent 50%),
        radial-gradient(circle at 80% 20%, #d4a574, transparent 50%),
        radial-gradient(circle at 40% 80%, #e74c3c, transparent 50%),
        radial-gradient(circle at 90% 90%, #a8d5ba, transparent 50%),
        radial-gradient(circle at 10% 60%, #d4a574, transparent 50%);
    filter: blur(80px) saturate(1.4);
    animation: artFlow 20s infinite alternate ease-in-out;
    z-index: 0;
    opacity: 0.9;
}

@keyframes artFlow {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(10deg) scale(1.1);
    }

    100% {
        transform: rotate(-5deg) scale(1.05);
    }
}

/* Content Wrapper */
.opening-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation: contentFadeIn 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.opening-logo-img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    animation: logoBreathe 6s ease-in-out infinite;
}

@keyframes logoBreathe {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

.opening-title {
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: 0.1em;
    color: #2c3e50;
    opacity: 0;
    animation: textElegantReveal 1.5s ease forwards 0.5s;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
}

@keyframes textElegantReveal {
    from {
        opacity: 0;
        transform: translateY(10px);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.opening-subtitle {
    font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #5d6d7e;
    margin-bottom: 3rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1s;
}

/* Minimalist Progress Bar */
.opening-progress {
    width: 180px;
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

.opening-progress-bar {
    height: 100%;
    background: #2c3e50;
    width: 0%;
    border-radius: 0;
    animation: progressFill 3s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.5s;
}

.opening-loading-text {
    margin-top: 1.5rem;
    font-size: 0.7rem;
    color: #95a5a6;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards 1.2s;
}

/* Fade Out Transition */
.opening-screen.fade-out {
    opacity: 0;
    pointer-events: none;
    filter: blur(15px);
    transform: scale(1.05);
}




@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* PWA通知スタイル */
.pwa-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--surface-color);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    z-index: 500;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 350px;
}

.pwa-notification.pwa-notification-show {
    transform: translateX(0);
}

.pwa-notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.pwa-notification-content i {
    font-size: 1.5rem;
}

.pwa-notification-success i {
    color: var(--success-color);
}

.pwa-notification-error i {
    color: var(--accent-color);
}

.pwa-notification-info i {
    color: var(--secondary-color);
}

.pwa-notification-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.25rem;
    margin-left: auto;
    border-radius: 0.25rem;
    transition: background-color 0.3s ease;
}

.pwa-notification-close:hover {
    background: var(--background-color);
}

/* PWAアップデート通知 */
.pwa-update-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: var(--surface-color);
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    z-index: 500;
    transition: transform 0.3s ease;
    max-width: 400px;
    width: 90%;
}

.pwa-update-notification.pwa-update-notification-show {
    transform: translateX(-50%) translateY(0);
}

.pwa-update-content {
    padding: 1.5rem;
}

.pwa-update-icon {
    text-align: center;
    margin-bottom: 1rem;
}

.pwa-update-icon i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.pwa-update-text h3 {
    margin: 0 0 0.5rem;
    color: var(--primary-color);
    text-align: center;
}

.pwa-update-text p {
    margin: 0 0 1.5rem;
    color: var(--text-light);
    text-align: center;
    line-height: 1.5;
}

.pwa-update-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.pwa-update-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: var(--surface-color);
    color: var(--text-color);
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pwa-update-btn:hover {
    background: var(--background-color);
}

.pwa-update-btn-primary {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.pwa-update-btn-primary:hover {
    background: #2980b9;
    border-color: #2980b9;
}

/* PWAアップデートモジュール */
.pwa-update-module {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--surface-color);
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    z-index: 1000;
    max-width: 400px;
    width: 90%;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.pwa-update-module.pwa-update-module-show {
    transform: translateX(0);
}

.pwa-update-module-content {
    padding: 1.5rem;
}

.pwa-update-module-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.pwa-update-module-icon {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.pwa-update-module-title {
    flex: 1;
}

.pwa-update-module-title h3 {
    margin: 0 0 0.25rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.pwa-update-module-title p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.pwa-update-module-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.pwa-update-module-close:hover {
    background: var(--background-color);
}

.pwa-update-module-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pwa-update-module-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pwa-update-module-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

.pwa-update-module-item i {
    color: var(--secondary-color);
    width: 1rem;
}

.pwa-update-module-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pwa-update-module-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    background: var(--surface-color);
    color: var(--text-color);
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pwa-update-module-btn:hover {
    background: var(--background-color);
    border-color: var(--secondary-color);
}

.pwa-update-module-btn-primary {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.pwa-update-module-btn-primary:hover {
    background: #2980b9;
    border-color: #2980b9;
}

/* PWAアップデート詳細モーダル */
.pwa-update-details {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pwa-update-details.pwa-update-details-show {
    opacity: 1;
}

.pwa-update-details-content {
    background: var(--surface-color);
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.pwa-update-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.pwa-update-details-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.pwa-update-details-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.pwa-update-details-close:hover {
    background: var(--background-color);
}

.pwa-update-details-body {
    padding: 1.5rem;
}

.pwa-update-details-section {
    margin-bottom: 2rem;
}

.pwa-update-details-section h4 {
    margin: 0 0 1rem;
    color: var(--primary-color);
    font-size: 1rem;
}

.pwa-update-details-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.pwa-update-details-item:last-child {
    border-bottom: none;
}

.status-active {
    color: #27ae60;
    font-weight: 500;
}

.status-inactive {
    color: #e74c3c;
    font-weight: 500;
}

.pwa-update-details-cache {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pwa-update-details-cache-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: var(--background-color);
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

.pwa-update-details-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
}

/* PWAアップデートローディング */
.pwa-update-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pwa-update-loading.pwa-update-loading-show {
    opacity: 1;
    visibility: visible;
}

.pwa-update-loading-content {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-xl);
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.pwa-update-loading.pwa-update-loading-show .pwa-update-loading-content {
    transform: scale(1);
}

.pwa-update-loading-spinner {
    margin-bottom: 1.5rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.pwa-update-loading-text h3 {
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pwa-update-loading-text p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* PWAアップデートエラー */
.pwa-update-error {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pwa-update-error.pwa-update-error-show {
    opacity: 1;
    visibility: visible;
}

.pwa-update-error-content {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-xl);
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.pwa-update-error.pwa-update-error-show .pwa-update-error-content {
    transform: scale(1);
}

.pwa-update-error-icon {
    margin-bottom: 1.5rem;
}

.pwa-update-error-icon i {
    font-size: 3rem;
    color: var(--accent-color);
}

.pwa-update-error-text h3 {
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pwa-update-error-text p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0 0 1.5rem 0;
}

.pwa-update-error-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* データなしメッセージ */
.no-data-message {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.no-data-icon {
    width: 80px;
    height: 80px;
    background: var(--background-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    border: 2px solid var(--border-color);
}

.no-data-icon i {
    font-size: 2rem;
    color: var(--text-light);
}

.no-data-message h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.no-data-message p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* メインコンテンツ */
main {
    margin-top: 0;
    padding-top: 0;
}

/* オープニング画面表示時のみメインコンテンツを隠す */
body.opening-active main {
    opacity: 0;
    transform: translateY(0);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

main.page-ready {
    opacity: 1;
    transform: translateY(0);
}

.section {
    padding: 60px 0;
}

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

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* ヒーローセクション */
.hero {
    background:
        radial-gradient(circle at 20% 20%, rgba(168, 213, 186, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 165, 116, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(214, 123, 123, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #4a7c59 0%, #d4a574 50%, #e74c3c 100%);
    color: white;
    padding: 120px 0 80px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 70%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    opacity: 0.6;
    animation: heroShimmer 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic {
    width: 220px;
    height: 220px;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 70%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 0 40px rgba(255, 255, 255, 0.2),
        inset 0 0 40px rgba(255, 255, 255, 0.1);
    animation: heroFloat 4s ease-in-out infinite, heroGlow 3s ease-in-out infinite alternate;
    position: relative;
}

.hero-graphic::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    background: linear-gradient(45deg, #a8d5ba, #d4a574, #e74c3c, #a8d5ba);
    background-size: 300% 300%;
    animation: heroRotate 6s linear infinite;
    z-index: -1;
    opacity: 0.7;
}

.hero-graphic i {
    font-size: 4.5rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
    animation: heroIconPulse 2.5s ease-in-out infinite;
}

/* 画像版ヒーローアイコン（丸く馴染ませる） */
.hero-graphic img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
    outline: none;
    will-change: transform;
    animation: heroFloatSoft 6s ease-in-out infinite;
}

/* ヒーロー背景の円装飾を無効化し、画像をフルサイズで表示 */
.hero-graphic {
    background: none !important;
    box-shadow: none !important;
    animation: none !important;
}

.hero-graphic::before {
    content: none !important;
    display: none !important;
}

/* ホバー時に小刻みに震える（元の浮遊は維持） */
.hero-graphic:hover img {
    animation: heroFloatSoft 6s ease-in-out infinite, heroTrembleBig 0.6s ease-out 1;
}

/* 部活動グリッド */
.clubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.club-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(74, 124, 89, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.45s ease forwards;
}

.club-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-warm);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.club-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(74, 124, 89, 0.2);
}

.club-card:hover::before {
    opacity: 1;
}

.club-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.club-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* フォーラム */
.forum-container {
    max-width: 800px;
    margin: 0 auto;
}

.post-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

#forum-content {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 1rem;
}

/* ボタン */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: var(--gradient-warm);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.btn-primary:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(214, 123, 123, 0.4);
}

.btn-secondary {
    background: var(--surface-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(74, 124, 89, 0.1);
}

.btn-secondary:hover {
    background: var(--gradient-cool);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 124, 89, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.1);
}

.btn-outline:hover {
    background: var(--gradient-warm);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.3);
}

/* 投稿リスト */
.post-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: fadeInUp 0.45s ease forwards;
}

.post-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.post-content {
    margin-bottom: 1rem;
}

.post-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.status-pending {
    background: #f39c12;
    color: white;
}

.status-resolved {
    background: #27ae60;
    color: white;
}

/* ローディング */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

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

    .logo {
        font-size: 1.4rem;
    }

    .hamburger {
        left: 12px;
        top: 12px;
        width: 44px;
        height: 44px;
        padding: 12px;
    }

    .hamburger span {
        width: 18px;
        height: 2px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100vw;
        left: -100vw;
        border-radius: 0;
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar-nav {
        padding: 2rem 0;
    }

    .sidebar-nav a {
        padding: 1.25rem 2rem;
        margin: 0.5rem 1rem;
        font-size: 1.1rem;
    }

    .sidebar-header {
        padding: 3rem 2rem 2.5rem 2rem;
    }

    .sidebar-header h2 {
        font-size: 1.8rem;
    }

    .hamburger {
        left: 8px;
        top: 8px;
        width: 52px;
        height: 52px;
        padding: 16px;
        background: var(--surface-color);
        border: 2px solid rgba(52, 152, 219, 0.3);
    }

    .hamburger span {
        width: 20px;
        height: 2px;
    }
}

.hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

.hero-text h1 {
    font-size: 2.5rem;
}

.page-header-content h1 {
    font-size: 2rem;
    flex-direction: column;
    gap: 0.5rem;
}

.clubs-grid,
.features-grid,
.activities-grid,
.info-grid,
.about-cards {
    grid-template-columns: 1fr;
}

.about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

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

.news-item {
    flex-direction: column;
    gap: 1rem;
}

.news-date {
    align-self: flex-start;
}

.filter-buttons {
    flex-direction: column;
    align-items: center;
}

.filter-btn {
    width: 200px;
    justify-content: center;
}

.hero-buttons,
.join-buttons,
.new-club-buttons,
.notification-buttons,
.request-buttons {
    flex-direction: column;
    align-items: center;
}

.btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
}

.request-steps {
    flex-direction: column;
    align-items: center;
}

.footer-content {
    grid-template-columns: 1fr;
    text-align: center;
}

/* 生徒会セクションのタブレット最適化 */
.council-about {
    padding: 60px 0;
}

.about-content {
    gap: 3rem;
}

.about-text h2 {
    font-size: 1.75rem;
}

.mission-points .about-image .council-image {
    max-width: 280px;
}

.council-graphic {
    width: 200px;
    height: 200px;
}

.council-graphic i {
    font-size: 4rem;
}

.council-members-section {
    padding: 60px 0;
}

.council-members {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.council-activities {
    padding: 60px 0;
}

.activities-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.join-council {
    padding: 60px 0;
}

.join-content h2 {
    font-size: 1.75rem;
}

.join-buttons {
    gap: 1rem;
}

/* council.htmlの役職、プロセス、ポリシー、FAQセクションのタブレット最適化 */
.council-roles,
.council-process,
.council-policy,
.council-faq {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.roles-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.related-info {
    padding: 60px 0;
}

.related-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}


@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .page-header-content h1 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .feature-card,
    .activity-card,
    .info-card,
    .about-card,
    .member-card {
        padding: 1.5rem;
    }

    .post-form,
    .survey-card {
        margin: 0 10px;
    }

    .container {
        padding: 0 15px;
    }

    /* 生徒会セクションのモバイル最適化 */
    .council-about {
        padding: 40px 0;
    }

    .about-content {
        gap: 2rem;
        text-align: center;
    }

    /* スマホでテキストを中央揃え */
    .about-text {
        text-align: center;
    }

    .about-text h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        text-align: center;
    }

    .about-text p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
        text-align: center;
    }

    .mission-points {
        gap: 1.25rem;
        align-items: center;
    }

    /* mission-points内のabout-imageのスマホ用スタイリング */
    .mission-points .about-image {
        margin-bottom: 1rem;
        width: 100%;
    }

    .mission-points .about-image .council-image {
        max-width: 250px;
        width: 100%;
    }

    .mission-point {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
        padding: 1rem;
        background: var(--surface-color);
        border-radius: 0.75rem;
        text-align: center;
    }

    .mission-point i {
        font-size: 1.25rem;
        margin-top: 0;
    }

    .mission-point h4 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
        text-align: center;
    }

    .mission-point p {
        font-size: 0.85rem;
        line-height: 1.5;
        text-align: center;
    }

    .council-graphic {
        width: 180px;
        height: 180px;
        margin: 0 auto;
    }

    .council-graphic i {
        font-size: 3.5rem;
    }

    .council-members-section {
        padding: 40px 0;
    }

    .council-members {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .member-card {
        padding: 1.5rem;
    }

    .member-image-wrapper .member-image {
        width: 120px;
        height: 120px;
    }

    .member-card h3 {
        font-size: 1.25rem;
    }

    .member-role {
        font-size: 0.95rem;
        padding: 0.4rem 0.8rem;
    }

    .member-message {
        font-size: 0.9rem;
    }

    .council-activities {
        padding: 40px 0;
    }

    .activities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .activity-card {
        padding: 1.5rem;
    }

    .activity-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }

    .activity-icon i {
        font-size: 1.25rem;
    }

    .activity-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .activity-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .join-council {
        padding: 40px 0;
    }

    .join-content h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .join-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }

    .join-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
        padding: 0 1rem;
    }

    .join-buttons .btn {
        width: 100%;
        max-width: none;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    /* member-detail.htmlの関連情報セクションのモバイル最適化 */
    .related-info {
        padding: 40px 0;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .related-card {
        padding: 1.5rem;
    }

    .related-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }

    .related-icon i {
        font-size: 1.25rem;
    }

    .related-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .related-card p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }

    .related-link {
        font-size: 0.9rem;
    }

    /* council.htmlの役職、プロセス、ポリシー、FAQセクションのモバイル最適化 */
    .council-roles,
    .council-process,
    .council-policy,
    .council-faq {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }

    .roles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .role-card {
        padding: 1rem;
    }

    .role-card h3 {
        font-size: 1.1rem;
    }

    .role-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .process-steps {
        padding-left: 1rem;
        line-height: 1.8;
        font-size: 0.95rem;
    }

    .process-steps li {
        margin-bottom: 0.75rem;
    }

    .policy-list {
        padding-left: 1rem;
        line-height: 1.8;
        font-size: 0.95rem;
    }

    .policy-list li {
        margin-bottom: 0.75rem;
    }

    .faq-list details {
        padding: 0.75rem 0.875rem;
        margin: 0.5rem 0;
        font-size: 0.95rem;
    }

    .faq-list summary {
        font-size: 1rem;
        padding: 0.5rem 0;
    }

    .faq-list p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-top: 0.5rem;
    }
}

/* フッター */
footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-section h4 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.footer-bottom p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

/* 管理者ログインリンク */
.admin-link {
    font-size: 0.8rem !important;
    margin-top: 1rem !important;
}

.admin-link a {
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none;
    padding: 0.3rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    font-size: 0.75rem;
}

.admin-link a:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ページヘッダー */
.page-header {
    background: var(--gradient-primary);
    color: white;
    padding: 120px 0 60px;
    margin-top: 0;
    text-align: center;
}

.page-header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.page-header-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 機能カード */
.features {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(74, 124, 89, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.45s ease forwards;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-cool);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(74, 124, 89, 0.2);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

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

/* 最新情報セクション */
.latest-updates {
    padding: 80px 0;
    background: var(--surface-color);
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.update-card {
    background: var(--background-color);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    opacity: 0;
    animation: fadeInUp 0.45s ease forwards;
}

.update-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.update-header i {
    font-size: 1.25rem;
}

.update-content {
    margin-bottom: 1.5rem;
    min-height: 120px;
}

.update-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* 生徒会について */
.council-about {
    padding: 80px 0;
}

.about-content {
    display: block;
}

/* デスクトップではHTMLの順序通り（テキスト左） */
.about-text {
    order: 1;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

.about-text p {
    margin-bottom: 2rem;
    color: var(--text-light);
    line-height: 1.7;
    text-align: center;
}

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

.mission-points {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

/* mission-points内のabout-imageのスタイリング */
.mission-points .about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    width: 100%;
}

.mission-points .about-image .council-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

.mission-point {
    display: flex;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

.mission-point i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.mission-point h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.mission-point p {
    color: var(--text-light);
    margin: 0;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.council-graphic {
    width: 250px;
    height: 250px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.council-graphic i {
    font-size: 5rem;
    color: white;
}

/* メンバーカード */
.council-members-section {
    padding: 80px 0;
    background: var(--surface-color);
}

.council-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.member-card {
    background: var(--background-color);
    padding: 2.5rem;
    border-radius: 1.25rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.45s ease forwards;
    position: relative;
    overflow: hidden;
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.member-card:hover::before {
    transform: scaleX(1);
}

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

.member-image-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.member-image-wrapper .member-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    border: 4px solid var(--surface-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.member-card:hover .member-image-wrapper .member-image {
    transform: scale(1.05);
}

.member-card h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.member-role {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 1rem;
    display: inline-block;
}

.member-message {
    color: var(--text-color);
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 1rem;
}

/* 活動内容 */
.council-activities {
    padding: 80px 0;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.activity-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.45s ease forwards;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.activity-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.activity-icon i {
    font-size: 1.5rem;
    color: white;
}

.activity-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

/* 参加呼びかけ */
.join-council {
    padding: 80px 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.join-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.join-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.join-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* フィルター */
.clubs-filter,
.news-filter {
    padding: 60px 0 40px;
    background: var(--surface-color);
}

.filter-controls h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: var(--surface-color);
    color: var(--text-color);
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* 部活動一覧 */
.clubs-list {
    padding: 40px 0 80px;
}

/* 部活動情報 */
.club-info {
    padding: 80px 0;
    background: var(--surface-color);
}

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

.info-card {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    opacity: 0;
    animation: fadeInUp 0.45s ease forwards;
}

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.info-icon i {
    font-size: 1.5rem;
    color: white;
}

.info-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

/* 新部活動 */
.new-club {
    padding: 80px 0;
    background: var(--gradient-secondary);
    color: white;
    text-align: center;
}

.new-club-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.new-club-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.requirements {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 1rem;
    margin: 2rem auto;
    max-width: 500px;
    backdrop-filter: blur(10px);
}

.requirements h4 {
    margin-bottom: 1rem;
}

.requirements ul {
    text-align: left;
    list-style: none;
}

.requirements li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.requirements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.8);
}

.new-club-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* フォーラムについて */
.forum-about {
    padding: 60px 0;
    background: var(--surface-color);
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    opacity: 0;
    animation: fadeInUp 0.45s ease forwards;
}

.about-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.about-icon i {
    font-size: 1.5rem;
    color: white;
}

.about-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

/* 投稿フォーム */
.forum-post {
    padding: 40px 0 80px;
}

.post-form {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.post-form h2 {
    margin-bottom: 2rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--background-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-control[type="textarea"],
textarea.form-control {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.post-guidelines small {
    color: var(--text-light);
}

.post-guidelines a {
    color: var(--secondary-color);
    text-decoration: none;
}

.post-guidelines a:hover {
    text-decoration: underline;
}

/* 投稿一覧 */
.forum-posts {
    padding: 40px 0 80px;
    background: var(--surface-color);
}

.posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* 投稿一覧の絞り込みを中央揃え */
.posts-filter {
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
}

.posts-header h2 {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.posts-filter select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--background-color);
}

/* ガイドライン */
.guidelines {
    padding: 80px 0;
}

.guidelines-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.guideline-section {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.guideline-section h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.guideline-section ul {
    list-style: none;
}

.guideline-section li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.guideline-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* お知らせ */
.news-list {
    padding: 40px 0 80px;
}

.news-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.news-item {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    opacity: 0;
    animation: fadeInUp 0.45s ease forwards;
}

.news-date {
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    white-space: nowrap;
}

.news-content {
    flex: 1;
}

.news-content h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

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

.news-type {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.news-type.event {
    background: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
}

.news-type.newsletter {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
}

.news-type.recruitment {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
}

.news-type.important {
    background: rgba(231, 76, 60, 0.1);
    color: var(--accent-color);
}

/* 生徒会だより */
.newsletter-section {
    padding: 80px 0;
    background: var(--surface-color);
}

.newsletter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.newsletter-item {
    background: var(--background-color);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.45s ease forwards;
}

.newsletter-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.newsletter-cover {
    background: var(--gradient-primary);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-cover i {
    font-size: 3rem;
    color: white;
}

.newsletter-info {
    padding: 2rem;
}

.newsletter-info h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.newsletter-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.newsletter-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* 重要なお知らせ */
.important-notices {
    padding: 80px 0;
}

.important-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.important-item {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent-color);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.important-icon {
    width: 50px;
    height: 50px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.important-icon i {
    color: var(--accent-color);
    font-size: 1.25rem;
}

.important-content h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.important-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

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

/* 通知設定 */
.notification-settings {
    padding: 80px 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.notification-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.notification-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.notification-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.notification-status {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
    display: inline-block;
}

/* アンケート */
.active-surveys {
    padding: 60px 0 40px;
}

.sample-survey {
    padding: 40px 0 80px;
}

.survey-card {
    background: var(--surface-color);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.45s ease forwards;
}

.survey-card.active-survey {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-lg);
}

.survey-header {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem;
}

.survey-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-badge.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.survey-deadline {
    font-size: 0.9rem;
    opacity: 0.9;
}

.survey-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.survey-header p {
    opacity: 0.9;
    line-height: 1.6;
}

.survey-content {
    padding: 2rem;
}

.question {
    margin-bottom: 2rem;
}

.question h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.option:hover {
    background: var(--background-color);
}

.option input[type="radio"],
.option input[type="checkbox"] {
    margin: 0;
}

.checkmark {
    flex-shrink: 0;
}

.survey-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.survey-info small {
    color: var(--text-light);
}

/* 過去のアンケート結果 */
.past-surveys {
    padding: 80px 0;
    background: var(--surface-color);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.result-card {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    opacity: 0;
    animation: fadeInUp 0.45s ease forwards;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.result-header h3 {
    color: var(--primary-color);
    flex: 1;
}

.result-date {
    color: var(--text-light);
    font-size: 0.9rem;
    white-space: nowrap;
}

.result-summary p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.result-chart {
    margin-bottom: 2rem;
}

.chart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.chart-label {
    min-width: 80px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.chart-bar {
    flex: 1;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.chart-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.chart-value {
    min-width: 40px;
    text-align: right;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

.satisfaction-chart {
    margin-bottom: 2rem;
}

.satisfaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.satisfaction-bar {
    background: var(--gradient-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    min-width: 50px;
    text-align: center;
}

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

/* アンケート作成依頼 */
.survey-request {
    padding: 80px 0;
}

.request-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.request-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.request-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    line-height: 1.6;
}

.request-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 200px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-content h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.step-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.request-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* PWAインストール通知 */
.pwa-install-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--surface-color);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    z-index: 500;
    max-width: 400px;
    width: 90%;
    animation: slideInRight 0.3s ease;
    overflow: hidden;
}

.pwa-install-notification-content {
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    position: relative;
}

.pwa-install-notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pwa-install-info .pwa-install-notification-icon {
    background: rgba(52, 152, 219, 0.1);
}

.pwa-install-success .pwa-install-notification-icon {
    background: rgba(39, 174, 96, 0.1);
}

.pwa-install-error .pwa-install-notification-icon {
    background: rgba(231, 76, 60, 0.1);
}

.pwa-install-notification-icon i {
    font-size: 1.2rem;
}

.pwa-install-info .pwa-install-notification-icon i {
    color: var(--secondary-color);
}

.pwa-install-success .pwa-install-notification-icon i {
    color: var(--success-color);
}

.pwa-install-error .pwa-install-notification-icon i {
    color: var(--accent-color);
}

.pwa-install-notification-text {
    flex: 1;
}

.pwa-install-notification-text h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
}

.pwa-install-notification-text p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
}

.pwa-install-notification-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pwa-install-notification-close:hover {
    background: var(--background-color);
    color: var(--text-color);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* iOS PWAインストール促進メッセージ */
.ios-install-prompt {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface-color);
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    z-index: 500;
    max-width: 400px;
    width: 90%;
    animation: slideInUp 0.3s ease;
}

.ios-install-content {
    padding: 2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    position: relative;
}

.ios-install-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ios-install-icon i {
    font-size: 1.5rem;
    color: white;
}

.ios-install-text {
    flex: 1;
}

.ios-install-text h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.ios-install-text p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.ios-install-steps {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-color);
    flex-wrap: wrap;
}

.ios-install-steps span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.ios-install-steps i {
    color: var(--secondary-color);
}

.ios-install-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ios-install-close:hover {
    background: var(--background-color);
    color: var(--text-color);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(100%);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* プレビューコンポーネント */
.news-preview,
.post-preview,
.survey-preview {
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.news-preview h4 {
    margin: 0.5rem 0;
    color: var(--primary-color);
}

.news-preview .news-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.post-preview p {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.survey-preview h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.survey-preview p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* メンバー詳細ページ */
.breadcrumb-section {
    padding: 100px 0 20px;
    background: var(--surface-color);
}

.breadcrumb {
    margin-bottom: 0;
}

.breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--secondary-color);
}

.page-header .breadcrumb {
    margin-bottom: 2rem;
}

.page-header .breadcrumb-link {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

.page-header .breadcrumb-link:hover {
    color: white;
}

.member-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

@media (max-width: 768px) {
    .member-hero-content {
        gap: 1.5rem;
    }
}

.member-hero-avatar {
    position: relative;
}

.member-hero-avatar .member-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.member-hero-avatar .member-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.member-hero-avatar .member-placeholder i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
}

.member-hero-info {
    min-width: 0;
    text-align: center;
}

.member-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.member-detail-page .member-role {
    font-size: 1.5rem;
    opacity: 1;
    margin-bottom: 0.75rem;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.98);
    letter-spacing: 0.05em;
}

.member-grade {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 2rem;
    font-weight: 500;
}

.member-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.member-join-date,
.member-motto {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.member-detail-content {
    padding: 80px 0;
    background: var(--surface-color);
}

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.detail-main {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.detail-section {
    background: var(--background-color);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.detail-section:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.detail-section h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--secondary-color);
}

.detail-section h3 i {
    color: var(--secondary-color);
    font-size: 1.25rem;
}

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

.profile-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.profile-label i {
    width: 20px;
    text-align: center;
    color: var(--secondary-color);
    font-size: 1rem;
}

.profile-value {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.6;
    padding: 0.5rem 0;
}

.profile-edit {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.profile-edit .form-control {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

.profile-edit .btn {
    align-self: flex-start;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.edit-btn-small {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
    margin-left: auto;
}

.edit-btn-small:hover {
    background: var(--background-color);
}

.edit-btn-small i {
    font-size: 0.85rem;
}

.hobby-tag {
    display: inline-block;
    background: var(--background-color);
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
}

.message-card {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem;
    background: var(--surface-color);
    border-radius: 1rem;
    border-left: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.message-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.message-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.message-icon i {
    font-size: 1.5rem;
    color: white;
}

.message-text {
    flex: 1;
}

.message-text p {
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1.15rem;
    margin: 0;
}

.responsibilities-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.responsibility-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface-color);
    border-radius: 0.75rem;
    border-left: 4px solid var(--secondary-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.responsibility-item:hover {
    transform: translateX(3px);
    box-shadow: var(--shadow-sm);
}

.responsibility-item i {
    color: var(--success-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.achievements-timeline {
    position: relative;
    padding: 0;
}

.achievements-year-group {
    margin-bottom: 2rem;
}

.year-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.year-header i {
    color: var(--accent-color);
}

.achievements-year-content {
    position: relative;
    padding-left: 2rem;
}

.achievements-year-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: -10px;
    bottom: -10px;
    width: 2px;
    background: var(--accent-color);
    opacity: 0.3;
}

.achievement-item {
    position: relative;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.4s ease forwards;
    border-left: 4px solid var(--secondary-color);
}

.achievement-item:nth-child(odd) {
    animation-delay: 0.1s;
}

.achievement-item:nth-child(even) {
    animation-delay: 0.2s;
}

.achievement-item::before {
    content: '';
    position: absolute;
    left: -2.17rem;
    top: 1.9rem;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 2px solid var(--surface-color);
    box-shadow: 0 0 0 2px var(--accent-color);
    transform: translateX(-50%);
}

.achievement-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.achievement-item.academic::before {
    background: #3498db;
    box-shadow: 0 0 0 2px #3498db;
}

.achievement-item.cultural::before {
    background: #9b59b6;
    box-shadow: 0 0 0 2px #9b59b6;
}

.achievement-item.sports::before {
    background: #e74c3c;
    box-shadow: 0 0 0 2px #e74c3c;
}

.achievement-item.leadership::before {
    background: #f39c12;
    box-shadow: 0 0 0 2px #f39c12;
}

.achievement-item.volunteer::before {
    background: #27ae60;
    box-shadow: 0 0 0 2px #27ae60;
}

.achievement-item.event::before {
    background: #e67e22;
    box-shadow: 0 0 0 2px #e67e22;
}

.achievement-category {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    background: var(--accent-color);
}

.achievement-category.category-general {
    background: var(--accent-color);
}

.achievement-category.category-academic {
    background: #3498db;
}

.achievement-category.category-cultural {
    background: #9b59b6;
}

.achievement-category.category-sports {
    background: #e74c3c;
}

.achievement-category.category-leadership {
    background: #f39c12;
}

.achievement-category.category-volunteer {
    background: #27ae60;
}

.achievement-category.category-event {
    background: #e67e22;
}

.achievement-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.achievement-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.achievement-content p {
    color: var(--text-color);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.no-achievements {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

.no-achievements i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--border-color);
}

.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background: var(--background-color);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    opacity: 0;
    animation: fadeInUp 0.45s ease forwards;
    transition: all 0.3s ease;
}

.sidebar-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.sidebar-card h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--secondary-color);
}

.sidebar-card h4 i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.sidebar-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.other-members {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.other-member-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--background-color);
    border-radius: 1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.other-member-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

.other-member-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.other-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.other-member-avatar i {
    color: white;
    font-size: 1.5rem;
}

.other-member-info {
    flex: 1;
    min-width: 0;
}

.other-member-info h5 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.other-member-info p {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.other-member-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.other-member-link:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

.upcoming-activities {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background: var(--surface-color);
    border-radius: 0.75rem;
    border-left: 3px solid var(--secondary-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.activity-item:hover {
    transform: translateX(3px);
    box-shadow: var(--shadow-sm);
}

.activity-date {
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    min-width: 50px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.activity-info h5 {
    color: var(--text-color);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.upcoming-activities .activity-item {
    position: relative;
}

.upcoming-activities .activity-item .edit-btn-small {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

.no-activities {
    text-align: center;
    padding: 1rem;
}

/* 編集モーダル */
.edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.edit-modal.show {
    opacity: 1;
    visibility: visible;
}

.edit-modal-content {
    background: var(--surface-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.edit-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.edit-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.edit-modal-header .close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
}

.edit-modal-header .close-btn:hover {
    background: var(--background-color);
}

.edit-modal-body {
    margin-bottom: 1rem;
}

.edit-modal-footer {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.activity-info p {
    color: var(--text-light);
    font-size: 0.8rem;
    margin: 0;
}

.related-info {
    padding: 80px 0;
    background: var(--surface-color);
}

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

.related-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.45s ease forwards;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.related-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.related-icon i {
    font-size: 1.5rem;
    color: white;
}

.related-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.related-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.related-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

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

.member-not-found {
    text-align: center;
    padding: 4rem 2rem;
    color: white;
}

.not-found-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    backdrop-filter: blur(10px);
}

.not-found-icon i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
}

.member-not-found h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.member-not-found p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* メンバーカードのクリック可能スタイル */
.member-card.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.member-card.clickable:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.member-card.clickable:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 3px;
}

.member-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(52, 152, 219, 0.9);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px);
}

.member-card.clickable:hover .member-card-overlay {
    opacity: 1;
}

.member-card-overlay i {
    font-size: 2rem;
}

.member-card-overlay span {
    font-weight: 500;
    font-size: 0.9rem;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .detail-sidebar {
        order: -1;
    }

    .member-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .member-meta {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .member-detail-header {
        padding: 40px 0;
    }

    .member-hero-avatar .member-image,
    .member-hero-avatar .member-placeholder {
        width: 150px;
        height: 150px;
    }

    .member-hero-avatar .member-placeholder i {
        font-size: 3rem;
    }

    .member-name {
        font-size: 2rem;
    }

    .detail-section {
        padding: 1.5rem;
    }

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

    .message-card {
        flex-direction: column;
        text-align: center;
    }

    .achievements-timeline::before {
        display: none;
    }

    .achievement-item {
        padding-left: 0;
    }

    .achievement-item::before {
        display: none;
    }

    .sidebar-card {
        padding: 1.5rem;
    }

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

@media (max-width: 480px) {
    .member-detail-content {
        padding: 40px 0;
    }

    .member-hero-avatar .member-image,
    .member-hero-avatar .member-placeholder {
        width: 120px;
        height: 120px;
    }

    .member-hero-avatar .member-placeholder i {
        font-size: 2.5rem;
    }

    .member-name {
        font-size: 1.75rem;
    }

    .member-role {
        font-size: 1.1rem;
    }

    .detail-section {
        padding: 1rem;
    }

    .detail-section h3 {
        font-size: 1.1rem;
    }

    .message-text p {
        font-size: 1rem;
    }

    .responsibility-item {
        padding: 0.5rem;
    }

    .sidebar-card {
        padding: 1rem;
    }

    .related-card {
        padding: 1.5rem;
    }
}

/* 通知システム */
.notification-status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: 0.5rem;
    border-left: 3px solid var(--secondary-color);
    margin-bottom: 1rem;
}

.text-success {
    color: var(--success-color);
}

.text-error {
    color: var(--accent-color);
}

.text-info {
    color: var(--secondary-color);
}

.notification-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--surface-color);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 500;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
}

.notification-message-success {
    border-left: 4px solid var(--success-color);
}

.notification-message-error {
    border-left: 4px solid var(--accent-color);
}

.notification-message-info {
    border-left: 4px solid var(--secondary-color);
}

.notification-message i {
    font-size: 1.2rem;
}

.notification-message-success i {
    color: var(--success-color);
}

.notification-message-error i {
    color: var(--accent-color);
}

.notification-message-info i {
    color: var(--secondary-color);
}

.notification-message span {
    flex: 1;
    color: var(--text-color);
}

.notification-message-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.notification-message-close:hover {
    background: var(--background-color);
    color: var(--text-color);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* プッシュ通知設定ページ */
.notification-settings-section {
    padding: 80px 0;
}

.notification-settings-card {
    background: var(--surface-color);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.notification-settings-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.notification-control-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.notification-info {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.notification-info h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.notification-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.notification-info ul {
    margin: 0.5rem 0 0 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.notification-info li {
    margin-bottom: 0.25rem;
}

/* 通知許可プロンプト（カスタム） */
.custom-notification-prompt {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 501;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-notification-prompt.active {
    opacity: 1;
    visibility: visible;
}

.notification-prompt-content {
    background: var(--surface-color);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.notification-prompt-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.notification-prompt-icon i {
    font-size: 2rem;
    color: white;
}

.notification-prompt-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.notification-prompt-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.notification-prompt-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 通知バッジ */
.notification-badge {
    position: relative;
}

.notification-badge::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 2px solid var(--surface-color);
}

.notification-badge.has-notifications::after {
    background: var(--success-color);
    animation: pulse 2s infinite;
}

/* 通知ドロップダウン */
.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    width: 350px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.notification-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

.notification-dropdown-header h4 {
    color: var(--primary-color);
    margin: 0;
}

.notification-dropdown-list {
    padding: 0.5rem 0;
}

.notification-dropdown-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.notification-dropdown-item:hover {
    background: var(--background-color);
}

.notification-dropdown-item:last-child {
    border-bottom: none;
}

.notification-dropdown-item.unread {
    background: rgba(52, 152, 219, 0.05);
    border-left: 3px solid var(--secondary-color);
}

.notification-dropdown-item-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.notification-dropdown-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-dropdown-item-icon i {
    color: white;
    font-size: 1rem;
}

.notification-dropdown-item-text {
    flex: 1;
    min-width: 0;
}

.notification-dropdown-item-title {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.notification-dropdown-item-message {
    color: var(--text-light);
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.notification-dropdown-item-time {
    color: var(--text-light);
    font-size: 0.75rem;
}

.notification-dropdown-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
}

.notification-dropdown-empty i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--border-color);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .notification-message {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .notification-dropdown {
        width: 300px;
        right: -50px;
    }

    .notification-prompt-content {
        margin: 1rem;
        width: auto;
    }

    .notification-buttons {
        flex-direction: column;
    }

    .notification-prompt-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .notification-dropdown {
        width: calc(100vw - 20px);
        right: -100px;
    }

    .notification-settings-card {
        padding: 1.5rem;
        margin: 0 10px 2rem;
    }
}

/* エラーメッセージ用のユーティリティクラス */
.text-error {
    color: var(--error-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.bg-error {
    background-color: var(--error-color) !important;
    color: white !important;
}

.bg-danger {
    background-color: var(--danger-color) !important;
    color: white !important;
}

.border-error {
    border-color: var(--error-color) !important;
}

.border-danger {
    border-color: var(--danger-color) !important;
}

.alert-error {
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--error-color);
    color: var(--error-color);
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.alert-danger {
    background-color: rgba(192, 57, 43, 0.1);
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

/* ニュース記事用スタイル */
.news-article {
    min-height: 100vh;
    background: var(--background-color);
}

.news-article-header {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.breadcrumb {
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.news-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.news-category {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
}

.news-date {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
}

.news-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.news-article-content {
    padding: 0 0 2rem 0;
}

.news-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.news-lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--surface-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
}

.news-body h2 {
    color: var(--primary-color);
    font-size: 1.75rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.news-body h3 {
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
}

.news-body ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.news-body li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.news-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.news-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.news-table td:first-child {
    font-weight: 600;
    color: var(--primary-color);
    background: var(--background-color);
    width: 120px;
}

.news-tags {
    margin-top: 2rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
}

.news-article-footer {
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 2rem;
}

.news-navigation {
    text-align: center;
}

/* ニュース一覧のスタイル改善 */
.news-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--surface-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.news-item {
    cursor: pointer;
}

.news-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.news-item .news-content {
    flex: 1;
}

.news-item .news-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.news-item .news-content h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-item .news-content h3 a:hover {
    color: var(--primary-color);
}

.news-item .news-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.news-item .news-date {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    min-width: 100px;
    text-align: right;
}

.news-item .news-type {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    height: fit-content;
}

.news-item .news-type.event {
    background: var(--secondary-color);
}

.news-item .news-type.newsletter {
    background: var(--accent-color);
}

.news-item .news-type.important {
    background: var(--error-color);
}

.news-item .news-type.recruitment {
    background: var(--warning-color);
}

/* フィルター機能のスタイル */
.news-filter {
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
}

.filter-controls h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.filter-controls h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.filter-controls h4 i {
    color: var(--primary-color);
    font-size: 1rem;
}

.search-controls {
    margin-bottom: 2rem;
    text-align: center;
}

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    z-index: 2;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 1rem;
    background: var(--surface-color);
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.clear-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 2;
}

.clear-btn:hover {
    background: var(--border-color);
    color: var(--text-color);
}

.category-controls,
.date-controls {
    margin-bottom: 1.5rem;
    text-align: center;
}

.filter-buttons,
.date-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* カテゴリフィルター用のタブスタイル */
.filter-tabs {
    display: flex;
    background: var(--background-color);
    border-radius: 12px;
    padding: 0.5rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Clubs page filter tabs: avoid horizontal cut-off by wrapping and using full width */
.clubs-filter .filter-tabs {
    flex-wrap: wrap;
    overflow: visible;
    max-width: none;
    width: 100%;
    justify-content: center;
    padding: 0.4rem;
    gap: 0.2rem;
}

/* Clubs page: make filter tabs slightly larger and more prominent */
.clubs-filter .filter-tab {
    padding: 0.7rem 1.1rem;
    font-size: 0.95rem;
    min-height: 44px;
}

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

.filter-btn,
.date-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--border-color);
    background: var(--surface-color);
    color: var(--text-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    min-width: 120px;
    justify-content: space-between;
}

/* タブボタンのスタイル */
.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.9rem;
    border: 1px solid var(--border-color);
    background: var(--surface-elevated);
    color: var(--text-light);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 40px;
}

.filter-tab:hover {
    background: rgba(74, 124, 89, 0.1);
    color: var(--text-color);
}

.filter-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.filter-tab:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

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

.filter-btn span,
.date-filter-btn span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-count {
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    line-height: 1;
}

.filter-btn.active .filter-count,
.date-filter-btn.active .filter-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* タブ用の件数表示 */
.filter-tab .filter-count {
    background: var(--text-light);
    color: white;
    border-radius: 10px;
    padding: 0.15rem 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
    line-height: 1;
}

.filter-tab.active .filter-count {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Clubs page uses buttons with both filter-btn and filter-tab.
   Prevent excessive spacing and truncation by overriding layout. */
.filter-tabs .filter-btn.filter-tab {
    justify-content: center;
    /* avoid space-between pushing icon/text */
    gap: 0.25rem;
    /* much tighter icon-text spacing */
    min-width: auto;
    /* let width fit content */
    padding: 0.35rem 0.55rem;
    /* significantly narrower padding */
    font-size: 0.85rem;
    /* slightly smaller text */
}

.filter-btn:hover,
.date-filter-btn:hover {
    border-color: var(--primary-color);
    background: var(--background-color);
    transform: translateY(-1px);
}

.filter-btn.active,
.date-filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.filter-results {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

#news-count {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--error-color);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.reset-btn:hover {
    background: var(--danger-color);
    transform: translateY(-1px);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .news-title {
        font-size: 2rem;
    }

    .news-item {
        flex-direction: column;
        gap: 0.75rem;
    }

    .news-item .news-date {
        text-align: left;
        min-width: auto;
    }

    .news-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .news-body {
        padding: 0 0.5rem;
    }

    .filter-controls h3 {
        font-size: 1.25rem;
    }

    .filter-buttons,
    .date-filters {
        gap: 0.5rem;
    }

    .filter-btn,
    .date-filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        min-width: 100px;
    }

    /* Make club filter tabs narrower on small screens */
    .filter-tabs .filter-btn.filter-tab {
        min-width: auto;
        /* override 100px on small screens */
        padding: 0.3rem 0.5rem;
        /* even narrower padding */
        font-size: 0.78rem;
        /* smaller text */
        gap: 0.25rem;
    }

    .filter-count {
        font-size: 0.7rem;
        padding: 0.15rem 0.4rem;
    }

    /* タブのレスポンシブ対応 */
    .filter-tabs {
        padding: 0.25rem;
        gap: 0.125rem;
    }

    /* Clubs page: ensure no cut-off on small screens */
    .clubs-filter .filter-tabs {
        flex-wrap: wrap;
        overflow: visible;
        max-width: none;
        width: 100%;
        justify-content: center;
        padding: 0.25rem;
        gap: 0.15rem;
    }

    .filter-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .filter-tab .filter-count {
        font-size: 0.65rem;
        padding: 0.1rem 0.3rem;
        min-width: 16px;
    }

    .search-box {
        max-width: 100%;
    }

    .filter-results {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* タブの中央揃えを維持 */
    .filter-tabs {
        justify-content: center;
        max-width: 100%;
    }
}

/* ==== Loading Overlay ===== */
.loading-overlay {
    position: fixed;
    z-index: 99999;
    inset: 0;
    background: rgba(255, 255, 255, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.loading-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.loading-spinner {
    border: 6px solid #e0e0e0;
    border-top: 6px solid #4a7c59;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: loading-spin 1s linear infinite;
}

@keyframes loading-spin {
    100% {
        transform: rotate(360deg);
    }
}

/* =====================================
   クイックアクション（再設計）
   ===================================== */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
}

.quick-action-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.quick-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    /* Vibrant Red-Orange */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.quick-action-card:hover .action-icon {
    transform: scale(1.1) rotate(5deg);
}

.quick-action-card span {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =====================================
   Visual & Animation Upgrades
   ===================================== */

/* --- Scroll Reveal Animations --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-on-scroll.delay-100 {
    transition-delay: 0.1s;
}

.reveal-on-scroll.delay-200 {
    transition-delay: 0.2s;
}

.reveal-on-scroll.delay-300 {
    transition-delay: 0.3s;
}

/* --- Hero Section Upgrade (Aurora Effect) --- */
.hero {
    position: relative;
    min-height: 85vh;
    /* Slightly taller */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8fafc;
    /* Fallback */
    padding: 6rem 2rem 4rem;
}

/* Aurora Gradient Mesh (Multi-Color Spectrum) */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(at 0% 0%, rgba(142, 68, 173, 0.25) 0px, transparent 50%),
        /* Purple */
        radial-gradient(at 100% 0%, rgba(0, 188, 212, 0.25) 0px, transparent 50%),
        /* Cyan */
        radial-gradient(at 100% 100%, rgba(74, 124, 89, 0.25) 0px, transparent 50%),
        /* Green */
        radial-gradient(at 0% 100%, rgba(231, 76, 60, 0.25) 0px, transparent 50%);
    /* Red/Orange */
    background-size: 120% 120%;
    animation: aurora 60s ease-in-out infinite alternate;
    z-index: 0;
    filter: blur(60px);
    opacity: 0.9;
    /* More vibrant */
}

@keyframes aurora {
    0% {
        background-position: 0% 50%;
        transform: rotate(0deg) scale(1);
    }

    50% {
        background-position: 100% 50%;
        transform: rotate(2deg) scale(1.1);
    }

    100% {
        background-position: 0% 50%;
        transform: rotate(0deg) scale(1);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    /* For animation */
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.6s forwards;
}

.hero-graphic img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(74, 124, 89, 0.2));
    animation: heroFloat 6s ease-in-out infinite;
}

/* --- Quick Actions Glassmorphism Polish --- */
.quick-actions-grid {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.quick-action-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(74, 124, 89, 0.2);
    /* Subtle green border */
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.02),
        0 10px 15px rgba(0, 0, 0, 0.03),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.quick-action-card:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-5px) scale(1.02);
    box-shadow:
        0 20px 25px rgba(74, 124, 89, 0.15),
        0 10px 10px rgba(74, 124, 89, 0.05);
    border-color: var(--secondary-color);
    /* Orange on hover */
}

/* --- Update Cards Polish --- */
.update-card {
    border: none;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.update-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.update-header {
    background: linear-gradient(to right, rgba(74, 124, 89, 0.05), transparent);
    padding: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

/* --- About Section Cards --- */
.mission-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.mission-point {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    border: 1px solid transparent;
}

.mission-point:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(74, 124, 89, 0.2);
}

.mission-point i {
    font-size: 2rem;
    color: var(--primary-color);
    background: rgba(74, 124, 89, 0.1);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 6rem 1rem 3rem;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-image {
        order: -1;
        /* Image on top for mobile */
        margin-bottom: 1rem;
    }

    .hero-graphic img {
        max-width: 200px;
    }
}

/* --- Curved Section Dividers --- */
.custom-shape-divider-bottom,
.custom-shape-divider-top {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
    pointer-events: none;
}

.custom-shape-divider-bottom {
    bottom: -1px;
    /* Reset position */
}

.custom-shape-divider-top {
    top: -1px;
}

.custom-shape-divider-bottom svg {
    transform: scaleY(-1);
    /* Flip to make Left Low, Right High */
    height: 90px;
    /* Larger amplitude */
}

.custom-shape-divider-bottom svg,
.custom-shape-divider-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
}

.custom-shape-divider-top svg {
    height: 60px;
    transform: rotate(180deg);
    /* Flip to match section above */
}

.custom-shape-divider-bottom .shape-fill {
    fill: #FFFFFF;
}

.custom-shape-divider-top .shape-fill {
    fill: #FFFFFF;
}

/* Ensure sections handle absolute positioning */
section {
    position: relative;
}

/* Alternating Backgrounds */
.council-about {
    background-color: #f0fdf4;
    /* Light green tint */
    padding-top: 6rem;
    /* Extra padding for divider */
    padding-bottom: 4rem;
}

/* Divider Colors */
/* Divider 1 (Hero -> Updates): Hero is Aurora, Updates is White. Divider should be White to blend into Updates. */
.hero .custom-shape-divider-bottom .shape-fill {
    fill: #ffffff;
}

/* Divider 2 (Updates -> About): Updates is White, About is Gradient. Divider should be White to blend into Updates. */
.council-about .custom-shape-divider-top .shape-fill {
    fill: #ffffff;
}

/* --- 3D Tilt Effect --- */
.tilt-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.1s ease-out;
    /* Smooth but responsive */
}

.tilt-content {
    transform: translateZ(20px);
}

/* --- Typography & Micro-interactions Polish --- */
.section-title {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-text h1 {
    text-shadow: 0 2px 10px rgba(74, 124, 89, 0.1);
    /* Subtle shadow for contrast */
}

/* Button Glow */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    transform: scale(0);
    transition: transform 0.6s ease-out;
    pointer-events: none;
}

.btn-primary:hover::after {
    transform: scale(1);
}

/* Smooth Link Underline */
.update-link {
    position: relative;
    text-decoration: none;
}

.update-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.update-link:hover::after {
    width: 100%;
}

/* =====================================
   Council Page Redesign (Artistic & Fluid)
   ===================================== */

/* Page Header Polish */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 6rem 0 4rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.page-header h1 {
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* About Section - Fluid Background */
.council-about {
    background:
        radial-gradient(circle at 10% 20%, rgba(168, 213, 186, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(212, 165, 116, 0.15) 0%, transparent 40%),
        #ffffff;
    padding: 5rem 0;
    position: relative;
}

.about-text h2 {
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* Mission Points - Floating Cards */
.mission-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.mission-point {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.mission-point:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--secondary-color);
}

.mission-point i {
    font-size: 2rem;
    color: var(--primary-color);
    background: rgba(168, 213, 186, 0.2);
    padding: 1rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.mission-point h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-family: "Yu Mincho", serif;
}

/* Roles Grid - Glassmorphism & Tilt */
.council-roles {
    background: #f8fafc;
    padding: 5rem 0;
    position: relative;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.role-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.role-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.role-card:hover::before {
    opacity: 1;
}

.role-card h3 {
    font-family: "Yu Mincho", serif;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.role-card h3 i {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Process - Vertical Artistic Timeline */
.council-process {
    padding: 6rem 0;
    background: #fff;
}

.process-steps {
    list-style: none;
    padding: 0;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    opacity: 0.3;
}

.process-steps li {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.process-steps li::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s ease;
}

.process-steps li:hover::before {
    background: var(--primary-color);
    transform: scale(1.2);
    box-shadow: 0 0 0 5px rgba(74, 124, 89, 0.2);
}

.process-steps li strong {
    display: block;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: "Yu Mincho", serif;
}

/* FAQ - Elegant Details */
.council-faq {
    padding: 5rem 0;
    background: #f9fbfd;
}

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

.faq-list details {
    background: #fff;
    border: none;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-list details[open] {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.faq-list summary {
    padding: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 3rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-list details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-list details p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    color: var(--text-light);
    line-height: 1.8;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1rem;
}

/* Section Title Polish */
.section-title {
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Scroll Animations */
.section-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.mission-point {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.mission-point.active {
    opacity: 1;
    transform: translateY(0);
}

.role-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.role-card.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delays */
.mission-point:nth-child(1) {
    transition-delay: 0.1s;
}

.mission-point:nth-child(2) {
    transition-delay: 0.2s;
}

.mission-point:nth-child(3) {
    transition-delay: 0.3s;
}

.mission-point:nth-child(4) {
    transition-delay: 0.4s;
}

.role-card:nth-child(1) {
    transition-delay: 0.1s;
}

.role-card:nth-child(2) {
    transition-delay: 0.2s;
}

.role-card:nth-child(3) {
    transition-delay: 0.3s;
}

.role-card:nth-child(4) {
    transition-delay: 0.4s;
}

.role-card:nth-child(5) {
    transition-delay: 0.5s;
}

/* Devlog Styles */
.devlog-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 0;
}

.devlog-item {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

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

.devlog-date {
    font-family: "Yu Mincho", serif;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.devlog-content h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.devlog-content ul {
    padding-left: 1.5rem;
    color: var(--text-light);
}

.devlog-content li {
    margin-bottom: 0.5rem;
}

/* Fix: Remove gradient from About Text underline */
.about-text h2::after {
    background: var(--primary-color);
}