/* =========================================
   演出強化CSS - スマホ最適化版
   ========================================= */
/* -----------------------------------------
   スクロールフェードインアニメーション
   ----------------------------------------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.fade-up { animation: fadeInUp 0.6s ease forwards; }
.fade-left { animation: fadeInLeft 0.5s ease forwards; }
.fade-right { animation: fadeInRight 0.5s ease forwards; }
.scale-in { animation: scaleIn 0.4s ease forwards; }

.fade-up-init,
.fade-left-init,
.fade-right-init,
.scale-init { opacity: 0; }

/* -----------------------------------------
   アイコンフロートアニメーション
   ----------------------------------------- */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}

.float-icon {
    animation: float 3s ease-in-out infinite;
    display: inline-block;
}

/* -----------------------------------------
   カードホバー演出（PCのみ、スマホはタップで効果）
   ----------------------------------------- */
.card,
.policy-card,
.member-profile-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* PCのみホバー効果 */
@media (hover: hover) {
    .card:hover,
    .policy-card:hover,
    .member-profile-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 35px -10px rgba(230, 126, 34, 0.25);
    }
}

/* スマホではタップ時に軽い効果 */
@media (hover: none) {
    .card:active,
    .policy-card:active,
    .member-profile-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* -----------------------------------------
   ドロップダウン修正（スマホ対応強化）
   ----------------------------------------- */
.dropdown { position: relative; }

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    z-index: 99999 !important;
    display: none;
    pointer-events: auto;
}

/* PC: ホバーで表示 */
@media (hover: hover) {
    .dropdown:hover .dropdown-content {
        display: block !important;
    }
}

/* スマホ: クリック/タップで開閉（JS連携用） */
@media (hover: none) {
    .dropdown.open .dropdown-content {
        display: block !important;
        animation: fadeInUp 0.2s ease;
    }
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: #4a4a4a !important;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.dropdown-content a:active {
    background: rgba(230, 126, 34, 0.15);
    color: #e67e22 !important;
}

/* ホバー可能デバイス用 */
@media (hover: hover) {
    .dropdown-content a:hover {
        background: rgba(230, 126, 34, 0.1);
        color: #e67e22 !important;
    }
}

.dark-mode .dropdown-content {
    background: #1e1e2e;
}
.dark-mode .dropdown-content a {
    color: #e4e4e7 !important;
}
@media (hover: hover) {
    .dark-mode .dropdown-content a:hover {
        background: rgba(243, 156, 18, 0.15);
        color: #f39c12 !important;
    }
}
.dark-mode .dropdown-content a:active {
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12 !important;
}

/* -----------------------------------------
   タイトル下線アニメーション
   ----------------------------------------- */
.section-title {
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #e67e22;
    border-radius: 2px;
    transition: width 0.4s ease;
}

@media (hover: hover) {
    .section-title:hover::after {
        width: 100px;
    }
}

.dark-mode .section-title::after {
    background: #f39c12;
}

/* -----------------------------------------
   ヘッダー（スマホでblurを無効化）
   ----------------------------------------- */
header {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(230, 126, 34, 0.2);
    transition: height 0.3s ease, box-shadow 0.3s ease;
}

/* PCのみblur効果 */
@media (min-width: 769px) {
    header {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

header.scrolled {
    height: 60px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.dark-mode header {
    background: rgba(18, 18, 28, 0.95) !important;
    border-bottom-color: rgba(243, 156, 18, 0.2);
}
.dark-mode header.scrolled {
    background: rgba(18, 18, 28, 0.98) !important;
}

/* ナビゲーションリンク下線（PCのみ） */
@media (min-width: 769px) {
    #main-nav a {
        position: relative;
        font-weight: 600;
    }
    #main-nav a::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, #e67e22, #f39c12);
        transition: width 0.3s ease;
    }
    #main-nav a:hover::after {
        width: 100%;
    }
}

/* -----------------------------------------
   サーバーステータスカード演出
   ----------------------------------------- */
.server-status-card {
    position: relative;
    overflow: hidden;
}
.server-status-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent 30%, rgba(230, 126, 34, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: inherit;
    z-index: 0;
}
@media (hover: hover) {
    .server-status-card:hover::before {
        opacity: 1;
    }
}

/* -----------------------------------------
   バッジのパルス演出
   ----------------------------------------- */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* -----------------------------------------
   ボタンリップル効果（タップフィードバック）
   ----------------------------------------- */
.btn-nav, .btn-apply, .btn-outline, .refresh-status-btn, .btn-discord {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, background 0.2s;
}

.btn-nav:active, .btn-apply:active, .btn-outline:active, .refresh-status-btn:active, .btn-discord:active {
    transform: scale(0.97);
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: rippleEffect 0.5s ease-out;
    pointer-events: none;
}
@keyframes rippleEffect {
    to { transform: scale(4); opacity: 0; }
}

/* -----------------------------------------
   ダークモード切り替えボタン
   ----------------------------------------- */
#dark-mode-container .dark-mode-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(230, 126, 34, 0.1);
    border: 1px solid rgba(230, 126, 34, 0.3);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

@media (hover: hover) {
    #dark-mode-container .dark-mode-toggle-btn:hover {
        background: #e67e22;
        transform: rotate(15deg);
        box-shadow: 0 0 10px rgba(230, 126, 34, 0.5);
    }
}

#dark-mode-container .dark-mode-toggle-btn:active {
    transform: scale(0.95);
}

.dark-mode #dark-mode-container .dark-mode-toggle-btn {
    background: rgba(243, 156, 18, 0.15);
    border-color: rgba(243, 156, 18, 0.4);
}

/* -----------------------------------------
   レスポンシブ
   ----------------------------------------- */
@media (max-width: 768px) {
    .section-title::after { width: 40px; }
    .dropdown-content {
        background: rgba(250, 250, 250, 0.98) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        margin-top: 5px;
    }
    .dark-mode .dropdown-content { background: rgba(25, 25, 35, 0.98) !important; }
    .dropdown-content a {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .float-icon, .badge, .card, .policy-card {
        animation: none !important;
        transition: none !important;
    }
}

/* =========================================
   tash SHOP GROUP参考演出
   ========================================= */

/* -----------------------------------------
   1. 背景に浮かぶ回転エンブレム
   ----------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "🏠";
    position: absolute;
    font-size: 30rem;
    opacity: 0.03;
    bottom: -100px;
    right: -100px;
    pointer-events: none;
    animation: slowSpin 120s linear infinite;
}

.dark-mode .hero::before {
    opacity: 0.05;
}

@keyframes slowSpin {
    from { transform: rotate(0deg) scale(1); }
    to { transform: rotate(360deg) scale(1.2); }
}

/* セクションにも装飾 */
.section:not(.hero) {
    position: relative;
}

.section:not(.hero)::after {
    content: "✨";
    position: absolute;
    font-size: 20rem;
    opacity: 0.02;
    bottom: -50px;
    left: -50px;
    pointer-events: none;
    animation: slowSpin 180s linear infinite reverse;
}

/* -----------------------------------------
   2. セクション間のゴールドアクセントライン
   ----------------------------------------- */
.section-title {
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e67e22, #f39c12, #e67e22, transparent);
    border-radius: 2px;
}

/* セクション間のスペーサー */
.section-spacer {
    height: 2px;
    background: linear-gradient(90deg, transparent, #e67e22, #f39c12, #e67e22, transparent);
    width: 60%;
    margin: 40px auto;
    border-radius: 2px;
    opacity: 0.4;
}

/* -----------------------------------------
   3. カードホバー強化（拡大＋枠線変化）
   ----------------------------------------- */
.card,
.policy-card,
.member-profile-card,
.server-status-card {
    transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1px solid rgba(230, 126, 34, 0.1);
}

@media (hover: hover) {
    .card:hover,
    .policy-card:hover,
    .member-profile-card:hover,
    .server-status-card:hover {
        transform: translateY(-8px) scale(1.01);
        border-color: #e67e22;
        box-shadow: 0 20px 35px -12px rgba(230, 126, 34, 0.25);
    }
}

/* カード内アイコンの拡大 */
.card:hover .card-icon,
.policy-card:hover .policy-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* -----------------------------------------
   4. アイコンのゆるやかな回転（ホバー時）
   ----------------------------------------- */
@keyframes gentleSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


/* -----------------------------------------
   5. 縦線タイムライン（更新履歴用）
   ----------------------------------------- */
.timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-item {
    position: relative;
    padding-left: 24px;
    margin-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    width: 8px;
    height: 8px;
    background: #e67e22;
    border-radius: 50%;
    border: 2px solid rgba(230, 126, 34, 0.3);
    z-index: 1;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 9px;
    top: 16px;
    bottom: -20px;
    width: 2px;
    background: linear-gradient(to bottom, #e67e22, transparent);
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-date {
    font-size: 0.7rem;
    color: #e67e22;
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
}

.timeline-title {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 4px;
}

.timeline-desc {
    font-size: 0.8rem;
    color: var(--light-text);
}

/* ダークモード時 */
.dark-mode .timeline-item::before {
    background: #f39c12;
    border-color: rgba(243, 156, 18, 0.3);
}

.dark-mode .timeline-item::after {
    background: linear-gradient(to bottom, #f39c12, transparent);
}

/* -----------------------------------------
   6. ヘッダー重厚装飾
   ----------------------------------------- */
header {
    position: relative;
}

header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        #e67e22, 
        #f39c12, 
        #e67e22, 
        transparent);
}

/* ヘッダー内の装飾ライン */
.header-inner::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20%;
    width: 60%;
    height: 1px;
    background: rgba(230, 126, 34, 0.3);
    border-radius: 1px;
}

/* -----------------------------------------
   7. サーバーステータスカード強化
   ----------------------------------------- */
.server-status-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.server-status-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 40px -15px rgba(230, 126, 34, 0.3);
}

.dark-mode .server-status-card {
    background: rgba(22, 33, 62, 0.95);
}

/* -----------------------------------------
   8. フッター装飾
   ----------------------------------------- */
footer {
    position: relative;
    overflow: hidden;
}

footer::before {
    content: "🏠";
    position: absolute;
    font-size: 15rem;
    opacity: 0.02;
    bottom: -50px;
    right: -50px;
    pointer-events: none;
    animation: slowSpin 90s linear infinite;
}

.dark-mode footer::before {
    opacity: 0.03;
}

/* -----------------------------------------
   9. セクションタイトル装飾強化
   ----------------------------------------- */
.section-title h2 {
    position: relative;
    display: inline-block;
}

.section-title h2::before,
.section-title h2::after {
    content: '✦';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #e67e22;
    font-size: 0.8rem;
    opacity: 0.6;
}

.section-title h2::before {
    left: -25px;
}

.section-title h2::after {
    right: -25px;
}

/* -----------------------------------------
   10. ボタン装飾強化
   ----------------------------------------- */
.btn-nav {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

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

/* ゴールドボタン（特別なボタン用） */
.btn-gold {
    background: linear-gradient(135deg, #e67e22, #f39c12);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.4);
}

/* -----------------------------------------
   11. カードグリッドのスタッガードアニメーション
   ----------------------------------------- */
.card-grid .card {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.card-grid .card:nth-child(1) { animation-delay: 0.05s; }
.card-grid .card:nth-child(2) { animation-delay: 0.10s; }
.card-grid .card:nth-child(3) { animation-delay: 0.15s; }
.card-grid .card:nth-child(4) { animation-delay: 0.20s; }
.card-grid .card:nth-child(5) { animation-delay: 0.25s; }
.card-grid .card:nth-child(6) { animation-delay: 0.30s; }

/* -----------------------------------------
   12. ダークモード対応
   ----------------------------------------- */
.dark-mode .server-status-card {
    border-color: rgba(243, 156, 18, 0.2);
}

.dark-mode .timeline-date {
    color: #f39c12;
}

.dark-mode .section-title h2::before,
.dark-mode .section-title h2::after {
    color: #f39c12;
}

/* =========================================
   フッター演出強化
   ========================================= */

footer {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fcfaf7 0%, #f8f5f0 100%);
}

.dark-mode footer {
    background: linear-gradient(135deg, #0a0a14 0%, #0f0f1a 100%);
}

/* 装飾的な背景要素 */
.footer-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.footer-decoration::before {
    content: "🏠";
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 8rem;
    opacity: 0.03;
    animation: slowSpin 120s linear infinite;
}

.footer-decoration::after {
    content: "✨";
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 6rem;
    opacity: 0.03;
    animation: slowSpin 90s linear infinite reverse;
}

.dark-mode .footer-decoration::before,
.dark-mode .footer-decoration::after {
    opacity: 0.05;
}

/* フッター内側コンテナ */
.footer-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* リンクグループのホバー演出強化 */
.footer-group a {
    position: relative;
    transition: all 0.3s ease;
}

.footer-group a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #e67e22, #f39c12);
    transition: width 0.3s ease;
}

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

.footer-group a:hover {
    transform: translateY(-1px);
}

/* セパレーターの装飾 */
.footer-separator {
    display: inline-block;
    font-size: 0.7rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.footer-group:hover .footer-separator {
    opacity: 0.8;
}

/* カウンターコンテナの装飾 */
#server-counter-container {
    position: relative;
    margin: 30px auto;
    padding: 10px;
}

#server-counter-container::before,
#server-counter-container::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e67e22, #f39c12, #e67e22, transparent);
}

#server-counter-container::before {
    top: -10px;
}

#server-counter-container::after {
    bottom: -10px;
}

/* 著作権表示エリア */
.footer-copyright {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(230, 126, 34, 0.15);
    position: relative;
}

.footer-copyright p {
    margin: 8px 0;
    transition: opacity 0.3s ease;
}

.footer-copyright p:hover {
    opacity: 0.8;
}

/* ダークモード時の追加調整 */
.dark-mode .footer-separator {
    color: #3a3a4a;
}

.dark-mode .footer-copyright {
    border-top-color: rgba(243, 156, 18, 0.15);
}

/* スマホ対応 */
@media (max-width: 768px) {
    .footer-decoration::before {
        font-size: 5rem;
        bottom: 10px;
        left: 10px;
    }
    
    .footer-decoration::after {
        font-size: 4rem;
        top: 10px;
        right: 10px;
    }
    
    .footer-group a {
        font-size: 0.7rem;
    }
    
    #server-counter-container::before,
    #server-counter-container::after {
        width: 30px;
    }
}

/* enhance.css - 演出強化版 (スムーズ＆派手) */
/* =========================================
   演出強化CSS - スムーズアニメーション＆派手演出
   ========================================= */

/* -----------------------------------------
   1. スクロールフェードイン (より滑らかに)
   ----------------------------------------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px) scale(0.96); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px) scale(0.96); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.90) rotate(-2deg); }
    to { opacity: 1; transform: scale(1) rotate(0deg); }
}

.fade-up { animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.fade-left { animation: fadeInLeft 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.fade-right { animation: fadeInRight 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.scale-in { animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }

.fade-up-init,
.fade-left-init,
.fade-right-init,
.scale-init { opacity: 0; }

/* -----------------------------------------
   2. アイコンフロート (ゆるやか＆華やか)
   ----------------------------------------- */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(3deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.float-icon {
    animation: float 4s ease-in-out infinite;
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(230, 126, 34, 0.2));
}

/* -----------------------------------------
   3. カードホバー (滑らか＆豪華)
   ----------------------------------------- */
.card,
.policy-card,
.member-profile-card {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.4s ease;
    will-change: transform;
}

@media (hover: hover) {
    .card:hover,
    .policy-card:hover,
    .member-profile-card:hover {
        transform: translateY(-12px) scale(1.02);
        box-shadow: 0 30px 50px -15px rgba(230, 126, 34, 0.35);
        border-color: #e67e22;
    }
}

@media (hover: none) {
    .card:active,
    .policy-card:active,
    .member-profile-card:active {
        transform: scale(0.97);
        transition: transform 0.15s ease;
    }
}

/* -----------------------------------------
   4. ドロップダウン (スムーズ開閉)
   ----------------------------------------- */
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    z-index: 99999 !important;
    display: none;
    pointer-events: auto;
    transform-origin: top center;
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
    transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
    .dropdown:hover .dropdown-content {
        display: block !important;
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (hover: none) {
    .dropdown.open .dropdown-content {
        display: block !important;
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-content a {
    display: block;
    padding: 12px 24px;
    color: #4a4a4a !important;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.25s ease;
    border-left: 3px solid transparent;
}

.dropdown-content a:active {
    background: rgba(230, 126, 34, 0.12);
    color: #e67e22 !important;
}

@media (hover: hover) {
    .dropdown-content a:hover {
        background: rgba(230, 126, 34, 0.08);
        color: #e67e22 !important;
        border-left-color: #e67e22;
        padding-left: 28px;
    }
}

.dark-mode .dropdown-content {
    background: #1e1e2e;
}
.dark-mode .dropdown-content a {
    color: #e4e4e7 !important;
}
@media (hover: hover) {
    .dark-mode .dropdown-content a:hover {
        background: rgba(243, 156, 18, 0.12);
        color: #f39c12 !important;
        border-left-color: #f39c12;
    }
}
.dark-mode .dropdown-content a:active {
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12 !important;
}

/* -----------------------------------------
   5. ヘッダー (豪華＆スムーズ)
   ----------------------------------------- */
header {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid rgba(230, 126, 34, 0.15);
    transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.4s ease;
    position: sticky;
    top: 0;
    z-index: 9999;
}

/* ヘッダー下のグラデーションライン (派手) */
header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #e67e22 20%, 
        #f39c12 40%, 
        #e67e22 60%, 
        #f39c12 80%, 
        transparent 100%);
    background-size: 200% 100%;
    animation: shimmerLine 3s ease-in-out infinite;
}

@keyframes shimmerLine {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

header.scrolled {
    height: 65px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.dark-mode header {
    background: rgba(18, 18, 28, 0.92) !important;
    border-bottom-color: rgba(243, 156, 18, 0.2);
}
.dark-mode header::after {
    background: linear-gradient(90deg, 
        transparent 0%, 
        #f39c12 20%, 
        #f1c40f 40%, 
        #f39c12 60%, 
        #f1c40f 80%, 
        transparent 100%);
}
.dark-mode header.scrolled {
    background: rgba(18, 18, 28, 0.96) !important;
}

/* ナビゲーションリンク (豪華ホバー) */
#main-nav a {
    position: relative;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

#main-nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2.5px;
    background: linear-gradient(90deg, #e67e22, #f39c12);
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 2px;
}

#main-nav a:hover::after {
    width: 100%;
}

#main-nav a:hover {
    color: #e67e22 !important;
}

/* -----------------------------------------
   6. サーバーステータスカード (豪華)
   ----------------------------------------- */
.server-status-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(230, 126, 34, 0.2);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.server-status-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, 
        transparent 0%, 
        rgba(230, 126, 34, 0.05) 25%, 
        transparent 50%, 
        rgba(230, 126, 34, 0.05) 75%, 
        transparent 100%);
    animation: spinGlow 8s linear infinite;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

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

@media (hover: hover) {
    .server-status-card:hover::before {
        opacity: 1;
    }
    .server-status-card:hover {
        transform: translateY(-8px) scale(1.01);
        box-shadow: 0 30px 50px -15px rgba(230, 126, 34, 0.3);
        border-color: #e67e22;
    }
}

.dark-mode .server-status-card {
    background: rgba(22, 33, 62, 0.95);
}

/* -----------------------------------------
   7. フッター (派手＆スムーズ)
   ----------------------------------------- */
footer {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fcfaf7 0%, #f8f5f0 100%);
    border-top: 1px solid rgba(230, 126, 34, 0.15);
    transition: all 0.4s ease;
}

.dark-mode footer {
    background: linear-gradient(135deg, #0a0a14 0%, #0f0f1a 100%);
    border-top-color: rgba(243, 156, 18, 0.15);
}

/* フッター装飾 - 動く光の帯 */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #e67e22 15%, 
        #f39c12 30%, 
        #e67e22 50%, 
        #f39c12 70%, 
        #e67e22 85%, 
        transparent 100%);
    background-size: 300% 100%;
    animation: shimmerLine 4s ease-in-out infinite;
    z-index: 2;
}

.dark-mode footer::before {
    background: linear-gradient(90deg, 
        transparent 0%, 
        #f39c12 15%, 
        #f1c40f 30%, 
        #f39c12 50%, 
        #f1c40f 70%, 
        #f39c12 85%, 
        transparent 100%);
}

/* フッター背景デコレーション (浮かぶエンブレム) */
.footer-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.footer-decoration::before {
    content: "🏠";
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 10rem;
    opacity: 0.04;
    animation: floatEmblem 20s ease-in-out infinite;
}

.footer-decoration::after {
    content: "✨";
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 8rem;
    opacity: 0.04;
    animation: floatEmblem 25s ease-in-out infinite reverse;
}

@keyframes floatEmblem {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(10px, -15px) rotate(5deg) scale(1.05); }
    66% { transform: translate(-5px, 10px) rotate(-3deg) scale(0.95); }
    100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}

.dark-mode .footer-decoration::before,
.dark-mode .footer-decoration::after {
    opacity: 0.06;
}

/* フッターリンクグループ (華やかホバー) */
.footer-group a {
    position: relative;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    padding: 2px 4px;
    border-radius: 4px;
}

.footer-group a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, #e67e22, #f39c12);
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 2px;
}

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

.footer-group a:hover {
    transform: translateY(-2px);
    color: #e67e22 !important;
    text-shadow: 0 2px 8px rgba(230, 126, 34, 0.15);
}

.dark-mode .footer-group a:hover {
    color: #f39c12 !important;
    text-shadow: 0 2px 8px rgba(243, 156, 18, 0.2);
}

/* セパレーター装飾 */
.footer-separator {
    display: inline-block;
    font-size: 0.7rem;
    color: #ccc;
    transition: all 0.3s ease;
}

.footer-group:hover .footer-separator {
    color: #e67e22;
    opacity: 0.6;
}

.dark-mode .footer-group:hover .footer-separator {
    color: #f39c12;
}

/* カウンターコンテナ装飾 */
#server-counter-container {
    position: relative;
    margin: 30px auto;
    padding: 10px;
}

#server-counter-container::before,
#server-counter-container::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e67e22, #f39c12, #e67e22, transparent);
    border-radius: 2px;
}

#server-counter-container::before {
    top: -5px;
}

#server-counter-container::after {
    bottom: -5px;
}

.dark-mode #server-counter-container::before,
.dark-mode #server-counter-container::after {
    background: linear-gradient(90deg, transparent, #f39c12, #f1c40f, #f39c12, transparent);
}

/* 著作権表示 */
.footer-copyright {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(230, 126, 34, 0.1);
    position: relative;
}

.footer-copyright p {
    margin: 8px 0;
    transition: all 0.3s ease;
}

.footer-copyright p:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.dark-mode .footer-copyright {
    border-top-color: rgba(243, 156, 18, 0.1);
}

/* -----------------------------------------
   8. セクションタイトル (派手)
   ----------------------------------------- */
.section-title {
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #e67e22, #f39c12, #e67e22);
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    background-size: 200% 100%;
    animation: shimmerLine 2s ease-in-out infinite;
}

@media (hover: hover) {
    .section-title:hover::after {
        width: 140px;
    }
}

.dark-mode .section-title::after {
    background: linear-gradient(90deg, #f39c12, #f1c40f, #f39c12);
}

/* セクションタイトル装飾 ✦ */
.section-title h2 {
    position: relative;
    display: inline-block;
}

.section-title h2::before,
.section-title h2::after {
    content: '✦';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #e67e22;
    font-size: 1rem;
    opacity: 0.5;
    animation: twinkle 2s ease-in-out infinite;
}

.section-title h2::before {
    left: -35px;
    animation-delay: 0s;
}

.section-title h2::after {
    right: -35px;
    animation-delay: 1s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: translateY(-50%) scale(1); }
    50% { opacity: 0.8; transform: translateY(-50%) scale(1.3); }
}

.dark-mode .section-title h2::before,
.dark-mode .section-title h2::after {
    color: #f39c12;
}

/* -----------------------------------------
   9. ボタン (豪華)
   ----------------------------------------- */
.btn-nav {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
}

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

.btn-nav:hover {
    transform: translateY(-3px) scale(1.02);
}

.btn-primary-nav {
    background: linear-gradient(135deg, #e67e22, #f39c12) !important;
    box-shadow: 0 4px 20px rgba(230, 126, 34, 0.3);
}

.btn-primary-nav:hover {
    box-shadow: 0 8px 35px rgba(230, 126, 34, 0.5);
    transform: translateY(-3px) scale(1.02);
}

.btn-outline-nav {
    border: 2px solid #e67e22 !important;
    background: transparent !important;
}

.btn-outline-nav:hover {
    background: rgba(230, 126, 34, 0.08) !important;
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.15);
}

/* ゴールドボタン */
.btn-gold {
    background: linear-gradient(135deg, #e67e22, #f39c12, #e67e22);
    background-size: 200% 200%;
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(230, 126, 34, 0.3);
    animation: goldShimmer 3s ease-in-out infinite;
}

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

.btn-gold:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 35px rgba(230, 126, 34, 0.5);
}

/* -----------------------------------------
   10. カードグリッド スタッガード
   ----------------------------------------- */
.card-grid .card {
    opacity: 0;
    animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.card-grid .card:nth-child(1) { animation-delay: 0.05s; }
.card-grid .card:nth-child(2) { animation-delay: 0.10s; }
.card-grid .card:nth-child(3) { animation-delay: 0.15s; }
.card-grid .card:nth-child(4) { animation-delay: 0.20s; }
.card-grid .card:nth-child(5) { animation-delay: 0.25s; }
.card-grid .card:nth-child(6) { animation-delay: 0.30s; }

/* -----------------------------------------
   11. タイムライン (装飾)
   ----------------------------------------- */
.timeline-item {
    position: relative;
    padding-left: 28px;
    margin-bottom: 24px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: #e67e22;
    border-radius: 50%;
    border: 3px solid rgba(230, 126, 34, 0.3);
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-item:hover::before {
    transform: scale(1.3);
    border-color: #e67e22;
    box-shadow: 0 0 20px rgba(230, 126, 34, 0.4);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 9px;
    top: 20px;
    bottom: -24px;
    width: 2px;
    background: linear-gradient(to bottom, #e67e22, transparent);
}

.timeline-item:last-child::after {
    display: none;
}

.dark-mode .timeline-item::before {
    background: #f39c12;
    border-color: rgba(243, 156, 18, 0.3);
}
.dark-mode .timeline-item:hover::before {
    border-color: #f39c12;
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.4);
}
.dark-mode .timeline-item::after {
    background: linear-gradient(to bottom, #f39c12, transparent);
}

/* -----------------------------------------
   12. レスポンシブ
   ----------------------------------------- */
@media (max-width: 768px) {
    .section-title::after { width: 40px; }
    .section-title:hover::after { width: 80px; }
    
    .section-title h2::before,
    .section-title h2::after {
        display: none;
    }
    
    .dropdown-content {
        background: rgba(250, 250, 250, 0.98) !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        border-radius: 12px;
        margin-top: 5px;
        transform-origin: top center;
    }
    .dark-mode .dropdown-content { background: rgba(25, 25, 35, 0.98) !important; }
    .dropdown-content a {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    header::after {
        height: 2px;
    }
    
    .footer-decoration::before {
        font-size: 6rem;
        bottom: 10px;
        left: 10px;
    }
    .footer-decoration::after {
        font-size: 5rem;
        top: 10px;
        right: 10px;
    }
    
    #server-counter-container::before,
    #server-counter-container::after {
        width: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .float-icon, .badge, .card, .policy-card,
    .server-status-card, .btn-nav, .btn-gold,
    .footer-group a, .section-title::after,
    .timeline-item::before, .timeline-item::after,
    header::after, footer::before {
        animation: none !important;
        transition: none !important;
    }
    .card:hover, .policy-card:hover, .member-profile-card:hover {
        transform: none !important;
    }
}