/* =========================================
  箱庭クラフト - 統合メインスタイルシート　Last Update: 2026-05-31
  バージョン: 2.0.0
  注意: dark-mode.css は別途読み込んでください
  ========================================= */

/* フォント定義を最優先で */
@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700;900&display=swap');
/* =========================================
   統合カードシステム (Card System)
   ========================================= */

/* ベースカード */
.card {
    background: var(--white);
    border-radius: 20px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(230, 126, 34, 0.08);
}

/* カードバリエーション（modifier） */
.card--rounded-lg {
    border-radius: 25px;
}

.card--rounded-xl {
    border-radius: 30px;
}

.card--border {
    border: 1px solid #f0ede9;
}

.card--border-top {
    border-top: 8px solid #eee;
}

.card--border-top-discord {
    border-top-color: #5865F2;
}

.card--border-top-primary {
    border-top-color: var(--primary-color);
}

.card--hover-scale:hover {
    transform: scale(1.02);
    translateY: -5px;
}

.card--hover-lift:hover {
    transform: translateY(-10px);
}

.card--icon-rotate:hover .card__icon {
    transform: scale(1.2) rotate(5deg);
}

/* カード内部要素 */
.card__inner {
    padding: 30px 25px;
    text-align: center;
}

.card__inner--compact {
    padding: 30px;
}

.card__inner--dense {
    padding: 25px;
}

.card__icon {
    font-size: 2.8rem;
    display: inline-block;
    margin-bottom: 15px;
    transition: transform 0.4s ease;
}

.card__title {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.card__text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--light-text);
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.card__header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

/* グリッドシステム */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    margin: 0 auto;
}

.card-grid--auto {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card-grid--3cols {
    grid-template-columns: repeat(3, 1fr);
}

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

/* 特定用途向けショートハンド */
.card--center {
    text-align: center;
}

.card--center .card__inner {
    text-align: center;
}

/* =========================================
   共通設定 & 変数 (Site Foundation)
   ========================================= */
:root {
    --primary-color: #e67e22;
    /* 温かみのあるオレンジ */
    --accent-color: #d35400;
    /* 濃いオレンジ（ホバー用） */
    --bg-color: #fdfaf6;
    /* 柔らかな背景色 */
    --text-color: #4a4a4a;
    /* メイン文字色 */
    --light-text: #888888;
    /* 補助文字色 */
    --white: #ffffff;
    --header-height: 80px;
    --bg-gray: #f8f8fa;
    --border-light: #e0ddd9;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Zen Maru Gothic', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8;
    overflow-x: hidden;
}

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

/* =========================================
   共通ヘッダー (Header)
   ========================================= */
header {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 9999;
}

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

.server-icon {
    height: 50px;
    width: auto;
    vertical-align: middle;
}

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

#main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

/* ドロップダウンの修正 */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 10000;
}

.dropdown-content a {
    padding: 10px 20px;
    display: block;
    font-size: 0.70rem !important;
    color: var(--text-color) !important;
    line-height: 1.4;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background-color: #fff9f5;
    color: var(--primary-color) !important;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* --- スマホ用トグルボタン --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 10001;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
    position: relative;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =========================================
   共通ボタン・エリア
   ========================================= */
.button-area-flex {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px dashed #e0ddd9;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-weight: bold;
    padding: 15px 25px;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 180px;
    font-size: 16px;
}

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

.btn-primary-nav:hover {
    background-color: var(--accent-color) !important;
    transform: translateY(-3px);
}

.btn-outline-nav {
    background-color: #fff !important;
    color: var(--text-color) !important;
    border: 2px solid #e0ddd9 !important;
}

.btn-outline-nav:hover {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    transform: translateY(-3px);
}

/* =========================================
   共通フッター (Footer)
   ========================================= */
footer {
    background-color: #fcfaf7 !important;
    padding: 60px 20px 40px !important;
    text-align: center !important;
    border-top: 1px solid #f0eee9 !important;
    margin-top: 60px;
}

.footer-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 15px;
    margin-bottom: 30px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.footer-group a {
    color: #666 !important;
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.footer-group a:hover {
    color: #e67e22 !important;
}

.footer-separator {
    color: #ddd;
    user-select: none;
}

/* サーバーカウンターコンテナ */
.server-history-container {
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 500px;
}

.server-counter-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: #ffffff;
    border-radius: 50px;
    border: 1px solid #e8e5e0;
    font-weight: 500;
    color: #555;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-align: center;
}

.reborn-days {
    border: 1.5px solid #e67e22 !important;
    background: linear-gradient(135deg, #fff, #fffcf8);
}

.counter-highlight {
    font-weight: bold;
    color: #e67e22;
    font-size: 1.2rem;
    margin: 0 4px;
    display: inline-block;
    min-width: 45px;
    text-align: center;
}

#disp-datetime {
    font-size: 0.7rem;
    color: #999;
    margin-top: 4px;
    font-family: 'Courier New', monospace;
    opacity: 0.7;
}

.server-counter-box small {
    display: block;
    margin-top: 4px;
    font-size: 0.7rem;
    opacity: 0.8;
}

footer p {
    margin: 0;
    line-height: 1.6;
}

footer p small {
    display: block;
    font-size: 0.7rem;
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 6px;
}

.milestone-flash {
    animation: milestoneGlow 0.3s ease-in-out;
}

@keyframes milestoneGlow {
    0% {
        text-shadow: 0 0 0px rgba(230, 126, 34, 0);
        background-color: transparent;
    }

    50% {
        text-shadow: 0 0 15px rgba(230, 126, 34, 0.6);
        background-color: rgba(230, 126, 34, 0.1);
        border-radius: 40px;
    }

    100% {
        text-shadow: 0 0 0px rgba(230, 126, 34, 0);
        background-color: transparent;
    }
}

/* =========================================
   共通テーブルスタイル (Plan Table)
   ========================================= */
.plan-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
}

.plan-table th,
.plan-table td {
    padding: 18px;
    border: 1px solid #f0ede9;
    text-align: center;
}

.plan-table th {
    background: #fdf2e9;
    color: var(--primary-color);
    font-weight: 800;
}

.legal-footer {
    margin-top: 80px;
    padding: 40px 20px;
    border-top: 2px dashed #e0ddd9;
    text-align: center;
}

.legal-footer a {
    color: var(--light-text);
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

/* =========================================
   メインコンテンツ (Hero & Section)
   ========================================= */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3)), url('/images/webp/main_bg.webp') no-repeat;
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 140px 20px;
    text-align: center;
}

.badge {
    background: var(--primary-color);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
}

.hero h1 {
    font-size: 3rem;
    margin: 25px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.ip-container {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    display: inline-block;
    padding: 20px 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.ip-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.version {
    display: block;
    font-size: 0.65rem;
    color: var(--light-text);
    margin-bottom: 10px;
}

#server-ip {
    font-size: 1.8rem;
    font-weight: bold;
}

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

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 70px;
    position: relative;
}

.section-title span {
    display: block;
    font-size: 1rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 5px;
}

/* カードレイアウト */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 0 auto;
}

/* SNSリンク */
.sns-links img {
    transition: transform 0.3s, opacity 0.3s;
    opacity: 0.8;
}

.sns-links img:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* --- 箱庭クラフト！ 専用デザイン --- */
.motto-hero-box {
    text-align: center;
    padding: 80px 40px;
    background: radial-gradient(circle at top right, #fffcf9, #fdf2e9);
    border-radius: 40px;
    margin-bottom: 80px;
    box-shadow: 0 20px 40px rgba(230, 126, 34, 0.05);
}

.main-motto {
    font-size: 3rem;
    color: var(--primary-color);
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.motto-subtext {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-top: 25px;
}

/* 運営方針（Policy） */
.policy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.policy-icon {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

/* 強調マーカー */
.text-strong-black {
    color: var(--text-color);
    font-weight: bold;
    background: linear-gradient(transparent 70%, #fff4eb 70%);
}

/* メッセージ・引用 */
.message-quote-box {
    display: flex;
    align-items: center;
    gap: 50px;
    background: var(--white);
    padding: 60px;
    border-radius: 30px;
    margin: 100px 0;
    position: relative;
    border: 1px solid #f0ede9;
}

.message-quote-box::after {
    content: "“";
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 8rem;
    color: #fdf2e9;
    font-family: serif;
    line-height: 1;
}

.quote-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #fdf2e9;
}

.quote-author {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.quote-author span {
    font-weight: 800;
    color: var(--primary-color);
}

/* 運営チーム */
.team-layout-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}


/* 壁紙 */
.wallpaper-container {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 50px;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.team-wallpaper-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wallpaper-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    color: white;
    font-style: italic;
}

/* 個別スタッフ用 */
.staff-main-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 50px;
    align-items: start;
}

.staff-info-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.staff-large-icon {
    width: 180px;
    height: 180px;
    border-radius: 40px;
    margin-bottom: 20px;
    border: 6px solid #fdf2e9;
}

/* 投票・サイト */
.vote-button-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.vote-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 20px;
    border-radius: 18px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    color: #fff !important;
    width: 240px;
    min-height: 140px;
    box-sizing: border-box;
    text-align: center;
}

.vote-link-card.jms {
    background: linear-gradient(135deg, #34495e, #2c3e50);
}

.vote-link-card.portal {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.vote-link-card.maikura-link {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.vote-link-card:hover {
    filter: brightness(1.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.site-name {
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 8px;
}

.click-guide {
    font-size: 0.85rem;
    opacity: 0.9;
}

.notice-simple-box {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    border-left: 6px solid #e67e22;
    max-width: 750px;
    margin: 0 auto;
}

.notice-list {
    list-style: none;
    padding: 0;
}

.notice-list li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 12px;
    line-height: 1.6;
}

.notice-list li::before {
    content: "⚠️";
    position: absolute;
    left: 0;
}

/* ログイン画面 */
.login-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 0 20px;
}

.login-card {
    background: var(--white);
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0ede9;
    text-align: left;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-color);
    margin-left: 5px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #f0ede9;
    border-radius: 15px;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1rem;
    color: var(--text-color);
    background-color: #fafafa;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.1);
}

.login-footer-links {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0ede9;
    text-align: center;
    font-size: 0.85rem;
    line-height: 2;
}

.login-footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

/* サーバーステータスカード */
.server-status-card {
    max-width: 600px;
    margin: 40px auto 0;
    background: var(--white);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(230, 126, 34, 0.2);
}

.status-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.server-icon-img {
    width: auto;
    height: auto;
    max-width: 80px;
    max-height: 80px;
    border-radius: 12px;
    background: #1a1a2e;
    object-fit: cover;
}

.title-area h2 {
    margin: 0 0 5px;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.address {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 8px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.status-badge.online {
    background: rgba(46, 204, 113, 0.15);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.status-badge.offline {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.motd-container {
    background: var(--text-color);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-color);
    border: 1px solid rgba(230, 126, 34, 0.15);
}

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

.info-item {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.info-label {
    font-size: 0.7rem;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.info-value {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--primary-color);
    word-break: break-all;
}

.refresh-status-btn {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.refresh-status-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* =========================================
   コンセプトページ
   ========================================= */
.concept-page .container {
    padding-top: 100px !important;
    max-width: 900px;
    margin: 0 auto;
    display: block !important;
}

.status-header {
    text-align: center;
    margin-bottom: 50px;
    position: static !important;
}

.status-label {
    display: inline-block !important;
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    padding: 6px 18px !important;
    border-radius: 50px !important;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 15px !important;
}

.status-title {
    font-size: 2.4rem;
    color: var(--text-color);
    margin: 0;
}

.concept-card h2,
.logo-origin-card h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0;
}

.logo-flex {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
}

.concept-logo-img {
    width: 150px;
    height: auto;
}

.creator-card {
    background: linear-gradient(135deg, #fffcf9 0%, #fdf2e9 100%);
    padding: 35px;
    border-radius: 30px;
    border: 2px solid #f0ede9;
}

.creator-inner {
    display: flex;
    align-items: center;
    gap: 25px;
}

.creator-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.creator-role {
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--accent-color);
    letter-spacing: 1px;
}

.creator-name {
    margin: 5px 0;
    font-size: 1.5rem;
}

.creator-message {
    margin: 0;
    font-style: italic;
    color: var(--text-color);
}

/* =========================================
   お問い合わせページ
   ========================================= */
.status-page .container {
    padding-top: 100px !important;
    max-width: 1000px;
    margin: 0 auto;
    display: block !important;
}

.status-header {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    justify-content: center;
}

.btn-discord {
    display: block;
    background-color: #5865F2;
    color: #fff;
    text-align: center;
    text-decoration: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: bold;
    margin-top: 20px;
}

.email-box {
    background: #fdfaf6;
    padding: 15px;
    border-radius: 12px;
    border: 1px dashed #e0ddd9;
    margin-top: 20px;
}

.guide-section {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    border-left: 10px solid #27ae60;
}

.guide-list {
    list-style: none;
    padding-left: 10px;
}

.guide-list li {
    margin-bottom: 10px;
}

/* =========================================
   寄付ページ
   ========================================= */
.donation-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.donation-lead {
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.8;
    color: #555;
    background: #fff9f5;
    padding: 25px;
    border-radius: 20px;
    border-left: 5px solid var(--primary-color);
}

.donation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.btn-donation {
    display: block;
    text-align: center;
    background: var(--primary-color);
    color: #fff !important;
    padding: 12px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-donation:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.thanks-section {
    background: #fff;
    padding: 40px;
    border-radius: 25px;
    margin-bottom: 50px;
    border: 1px solid #eee;
}

.note-box {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #666;
}

/* =========================================
   イベント・Discord連携ページ
   ========================================= */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.roadmap-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.roadmap-phase {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.roadmap-date {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.roadmap-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

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

.roadmap-status {
    margin-top: 15px;
    padding: 8px 16px;
    background: rgba(230, 126, 34, 0.1);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: bold;
}

.discord-notice {
    background: linear-gradient(135deg, #5865F2 0%, #4752c4 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
    color: white;
}

.discord-notice a {
    color: #fff;
    text-decoration: underline;
}

.discord-notice .btn-discord-badge {
    display: inline-block;
    background: #fff;
    color: #5865F2;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: transform 0.3s;
}

.discord-notice .btn-discord-badge:hover {
    transform: translateY(-2px);
}

.warning-box {
    background: #fff4e5;
    border-left: 4px solid #f39c12;
    padding: 20px;
    border-radius: 12px;
    margin: 30px 0;
}

.warning-title {
    font-weight: bold;
    color: #f39c12;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =========================================
   ニュースページ
   ========================================= */
.news-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(230, 126, 34, 0.12);
    color: var(--primary-color);
    font-size: 0.75rem;
    padding: 4px 14px;
    border-radius: 100px;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.news-category-badge.important {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.news-category-badge.update {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

.news-category-badge.event {
    background: rgba(192, 132, 252, 0.12);
    color: #c084fc;
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--white);
    border: 1px solid var(--border-light);
    padding: 10px 22px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    color: var(--light-text);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

.news-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.news-card-item {
    background: var(--white);
    padding: 24px 32px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 25px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.news-card-item:hover {
    transform: translateX(8px);
    box-shadow: 0 12px 28px rgba(230, 126, 34, 0.1);
    border-color: rgba(230, 126, 34, 0.2);
    background: #fffdf9;
}

.news-card-item .news-date {
    font-weight: 700;
    color: var(--light-text);
    font-size: 0.9rem;
    min-width: 100px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-card-item .news-date:before {
    content: "📅";
    font-size: 0.85rem;
}

.news-card-item .news-category-badge {
    font-size: 0.7rem;
    padding: 3px 12px;
}

.news-card-title {
    font-weight: 700;
    color: var(--text-color);
    font-size: 1.05rem;
    flex: 1;
    transition: color 0.2s;
}

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

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.news-detail-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 48px 48px;
    border-radius: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 1;
}

.news-header {
    border-bottom: 2px dashed var(--border-light);
    margin-bottom: 40px;
    padding-bottom: 28px;
}

.news-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 16px;
}

.news-meta .news-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--light-text);
    font-size: 0.9rem;
}

.news-meta .news-date:before {
    content: "📅";
}

.news-title {
    font-size: clamp(1.6rem, 4.5vw, 2.3rem);
    color: var(--text-color);
    line-height: 1.35 !important;
    font-weight: 800;
    margin: 16px 0 12px;
    letter-spacing: -0.01em;
}

.news-author-info {
    font-size: 0.85rem;
    color: var(--light-text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-author-info:before {
    content: "✍️";
    font-size: 0.85rem;
}

.news-author-info strong {
    color: var(--primary-color);
    font-weight: 700;
}

.news-content {
    line-height: 1.85;
    font-size: 1.05rem;
    color: var(--text-color);
}

.news-content h2 {
    font-size: 1.6rem;
    margin: 2rem 0 1rem;
    padding-left: 14px;
    border-left: 4px solid var(--primary-color);
    color: var(--text-color);
    font-weight: 700;
}

.news-content h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.8rem;
    color: var(--text-color);
    font-weight: 600;
}

.news-content .box {
    background: var(--bg-gray);
    border-radius: 20px;
    padding: 24px 28px;
    margin: 32px 0;
    border-left: 4px solid var(--primary-color);
}

.news-content .box-green,
.info-box-green {
    background: #f1f9f1;
    border-left: 4px solid #22c55e;
    border-radius: 20px;
    padding: 24px 28px;
    margin: 32px 0;
}

.news-content .box-blue {
    background: #eef4ff;
    border-left: 4px solid #3b82f6;
    border-radius: 20px;
    padding: 24px 28px;
    margin: 32px 0;
}

.news-content .command {
    background: #1e1e2e;
    color: #e4e4e7;
    font-family: 'SF Mono', 'Courier New', monospace;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    overflow-x: auto;
    margin: 20px 0;
}

.news-content .btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s;
    margin: 8px 4px;
}

.news-content .btn:hover {
    filter: brightness(0.9);
    transform: translateY(-2px);
}

.news-content .btn-secondary {
    background: #6b7280;
}

.news-content .owner-message {
    background: linear-gradient(135deg, #fef9f0 0%, #fff5e6 100%);
    border-radius: 24px;
    padding: 28px 32px;
    margin: 40px 0;
    border: 1px solid rgba(230, 126, 34, 0.2);
}

.news-content .owner-message .name {
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.news-content .owner-message .name:before {
    content: "🌱";
    font-size: 1rem;
}

.cmd-table,
.news-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 0.95rem;
    border-radius: 16px;
    overflow: hidden;
}

.cmd-table th,
.news-content th {
    background: #f5f5f7;
    padding: 14px 18px;
    border-bottom: 2px solid var(--border-light);
    text-align: left;
    font-weight: 800;
    color: var(--primary-color);
}

.cmd-table td,
.news-content td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-light);
}

.cmd-table code,
.news-content code {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 6px;
    font-family: 'SF Mono', 'Courier New', monospace;
    font-size: 0.85rem;
    color: #d35400;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    margin: 32px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.table-of-contents {
    background: var(--bg-gray);
    border-radius: 20px;
    padding: 24px 28px;
    margin: 32px 0;
}

.table-of-contents p {
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-of-contents p:before {
    content: "📑";
}

.table-of-contents ul {
    margin: 0;
    padding-left: 1.5rem;
}

.table-of-contents li {
    margin: 8px 0;
}

.table-of-contents a {
    color: var(--primary-color);
    text-decoration: none;
}

.table-of-contents a:hover {
    text-decoration: underline;
}

.news-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px dashed var(--border-light);
    flex-wrap: wrap;
}

/* =========================================
   運営情報・サーバー概要ページ用スタイル
   ========================================= */
.info-sidebar {
    background: var(--white);
    border-radius: 24px;
    padding: 30px;
    position: sticky;
    top: 100px;
    border: 1px solid #f0ede9;
    margin-top: 40px;
}

.info-sidebar h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.info-sidebar li {
    margin-bottom: 12px;
}

.info-sidebar a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.motto-list {
    display: grid;
    gap: 20px;
}

.motto-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: #fdfaf6;
    border-radius: 20px;
}

.motto-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.motto-content h3 {
    color: #e67e22;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.motto-content p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.section-divider {
    margin: 60px 0 40px;
    text-align: center;
    position: relative;
}

.section-divider span {
    background: var(--bg-color);
    padding: 0 20px;
    font-size: 0.9rem;
    color: var(--light-text);
    letter-spacing: 2px;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0ddd9;
    z-index: -1;
}

.thanks-message-box {
    background: var(--white);
    border-radius: 30px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0ede9;
    position: relative;
    overflow: hidden;
}

.thanks-message-box::before {
    content: "💐";
    position: absolute;
    bottom: 10px;
    left: 20px;
    font-size: 6rem;
    opacity: 0.05;
    pointer-events: none;
}

.thanks-message-box::after {
    content: "✨";
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 4rem;
    opacity: 0.05;
    pointer-events: none;
}

.thanks-message-box p {
    color: var(--text-color);
    margin-bottom: 40px;
    font-size: 1rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.thanks-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.thanks-item {
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(253, 242, 233, 0.5);
    padding: 16px 28px;
    border-radius: 60px;
    transition: all 0.3s ease;
    border: 1px solid rgba(230, 126, 34, 0.15);
    min-width: 240px;
}

.thanks-item:hover {
    transform: translateY(-5px);
    background: rgba(253, 242, 233, 0.8);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.15);
}

.thanks-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    background: var(--white);
    transition: transform 0.3s ease;
}

.thanks-item:hover .thanks-icon {
    transform: scale(1.05);
}

.thanks-meta {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.thanks-meta strong {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.thanks-meta span {
    font-size: 0.75rem;
    color: var(--primary-color);
    margin-top: 4px;
    font-weight: 600;
    opacity: 0.8;
}

/* =========================================
   ワールドルールページ用スタイル
   ========================================= */
.status-ok {
    background: rgba(46, 204, 113, 0.15);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.status-ng {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.world-info-list {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px;
    margin: 20px 0;
    padding: 15px;
    background: rgba(253, 242, 233, 0.3);
    border-radius: 12px;
}

.world-info-list dt {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 0.85rem;
}

.world-info-list dd {
    margin: 0;
    color: var(--text-color);
}

.rule-list {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #e0ddd9;
}

.rule-list h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.rule-list ul {
    margin: 0;
    padding-left: 20px;
}

.rule-list li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.emoji-label {
    font-size: 1.3rem;
    margin-right: 8px;
}


/* =========================================
   共通レスポンシブ (Common Responsive)
   ========================================= */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    #main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
        z-index: 9998;
    }

    #main-nav.open {
        display: block;
    }

    #main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        text-align: center;
        background: #fafafa;
        width: 100%;
        display: none;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }

    .button-area-flex {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .hero {
        background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3)), url('/images/webp/main_bg_smartphone.webp') no-repeat;
        background-size: cover;
        background-position: center;
        padding: 140px 20px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .ip-container {
        padding: 15px 30px;
    }

    #server-ip {
        font-size: 1.4rem;
    }

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

    .card {
        padding: 30px 20px;
    }

    .main-motto {
        font-size: 2rem;
    }

    .motto-subtext {
        font-size: 1rem;
    }

    .server-status-card {
        margin: 20px;
        padding: 16px;
    }

    .status-header {
        gap: 12px;
    }

    .server-icon-img {
        width: auto;
        height: auto;
    }

    .info-grid {
        gap: 10px;
    }

    .news-detail-container {
        padding: 32px 20px;
        border-radius: 0;
        margin: 0;
    }

    .news-card-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 20px;
    }

    .news-card-item .news-date {
        min-width: auto;
    }

    .news-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .btn-nav {
        text-align: center;
        width: 100%;
    }

    .filter-container {
        gap: 8px;
        margin-bottom: 30px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .news-content h2 {
        font-size: 1.4rem;
    }

    .news-content h3 {
        font-size: 1.2rem;
    }

    .news-content .box,
    .news-content .box-green,
    .news-content .box-blue {
        padding: 18px 20px;
    }

    .thanks-message-box {
        padding: 35px 20px;
    }

    .thanks-message-box::before {
        font-size: 4rem;
        bottom: 5px;
        left: 10px;
    }

    .thanks-message-box::after {
        font-size: 3rem;
        top: 5px;
        right: 10px;
    }

    .thanks-item {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 12px 20px;
    }

    .thanks-grid {
        gap: 15px;
    }

    .thanks-icon {
        width: 48px;
        height: 48px;
    }

    .thanks-meta strong {
        font-size: 1rem;
    }

    .world-info-list {
        grid-template-columns: 85px 1fr;
        gap: 8px;
    }

    .rule-list li {
        font-size: 0.85rem;
    }

    .logo-flex,
    .creator-inner {
        flex-direction: column;
        text-align: center;
    }

    .concept-logo-img {
        width: 120px;
    }

    .roadmap-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    footer {
        padding: 40px 15px 30px !important;
    }

    .footer-group {
        gap: 8px 12px;
        margin-bottom: 25px;
    }

    .footer-group a {
        font-size: 0.75rem;
    }

    .footer-separator {
        display: none;
    }

    .server-history-container {
        margin: 25px auto;
    }

    .server-counter-box {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .counter-highlight {
        font-size: 1rem;
        min-width: 35px;
    }

    #disp-datetime {
        font-size: 0.65rem;
    }
}

@media (max-width: 1000px) {
    .main-motto {
        font-size: 2.2rem;
    }

    .team-layout-grid {
        grid-template-columns: 1fr;
    }

    .message-quote-box {
        flex-direction: column;
        text-align: center;
        padding: 40px;
    }

    .policy-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 40px auto 0;
    }

    .staff-main-layout {
        grid-template-columns: 1fr;
    }

    .staff-info-card {
        max-width: 400px;
        margin: 0 auto 40px;
    }

    .info-sidebar {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .news-title {
        font-size: 1.4rem;
    }

    .news-meta {
        gap: 10px;
        font-size: 0.8rem;
    }

    .news-content {
        font-size: 0.98rem;
    }

    .cmd-table th,
    .cmd-table td,
    .news-content th,
    .news-content td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .thanks-item {
        min-width: auto;
        width: 100%;
    }

    .thanks-message-box p {
        font-size: 0.9rem;
    }

    .footer-group {
        gap: 6px 10px;
    }

    .footer-group a {
        font-size: 0.7rem;
    }

    .server-counter-box {
        font-size: 0.7rem;
    }

    .counter-highlight {
        font-size: 0.9rem;
        min-width: 30px;
    }
}

@media (min-width: 768px) {
    .vote-button-list {
        flex-direction: row;
        justify-content: center;
    }

    .vote-link-card {
        flex: 1;
    }
}

/* =========================================
   カードホバー強化演出
   ========================================= */

/* 1. 浮遊感のあるホバー（全カード共通ベース） */
.card {
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1),
        box-shadow 0.4s ease;
    will-change: transform;
}

.card:hover {
    transform: translateY(-12px) rotate(0.5deg);
    box-shadow: 0 25px 45px rgba(230, 126, 34, 0.15);
}

/* 2. 光る縁取り（金色グロー） */
.card--glow:hover,
.policy-card:hover,
.member-profile-card:hover {
    box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.3),
        0 25px 45px rgba(230, 126, 34, 0.15);
}

/* 3. リップル効果（波紋） */
.card--ripple {
    position: relative;
    overflow: hidden;
}

.card--ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(230, 126, 34, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    pointer-events: none;
}

.card--ripple:hover::after {
    width: 300px;
    height: 300px;
}

/* 4. アイコン拡大演出（policy-card用） */
.card--icon-grow:hover .card__icon,
.policy-card:hover .policy-icon {
    transform: scale(1.2) rotate(5deg);
    transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
}

/* 5. カード内部テキストの色変化 */
.card:hover .card__title,
.policy-card:hover h3,
.member-profile-card:hover .member-name {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.card:hover .card__text {
    color: var(--text-color);
}

/* 6. カード内リンクの強調 */
.card:hover a:not(.btn-nav) {
    color: var(--primary-color);
}

/* 7. ボーダーカードのホバー強化 */
.card--border:hover {
    border-color: var(--primary-color);
}

/* 8. カードヘッダー内アイコンのホバー */
.card__header .icon {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.card:hover .card__header .icon {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(230, 126, 34, 0.3));
}

/* 9. アクセシビリティ：アニメーション減速設定 */
@media (prefers-reduced-motion: reduce) {

    .card,
    .card *,
    .card::after,
    .policy-card,
    .member-profile-card {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

    .card:hover {
        transform: translateY(-4px) rotate(0deg);
    }
}

/* =========================================
   ページ読み込みフェードイン演出
   ========================================= */

/* 1. 基本フェードインアニメーション定義 */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }

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

/* 2. ページ全体のフェードイン（body直下のメインコンテンツ） */
main,
.main-content,
.section:first-of-type {
    animation: fadeIn 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
}

/* 3. ヒーローエリア（最重要視覚要素） */
.hero {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
}

/* 4. セクションタイトル */
.section-title {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    /* 初期状態 */
    animation-delay: 0.1s;
}

/* 5. カード群（スタッガードアニメーション） */
.card,
.policy-card,
.member-profile-card,
.donation-card,
.spec-card,
.roadmap-card,
.reward-card,
.method-card,
.concept-card {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

/* カードの遅延設定（nth-childで順番に表示） */
.card:nth-child(1),
.policy-card:nth-child(1),
.member-profile-card:nth-child(1) {
    animation-delay: 0.05s;
}

.card:nth-child(2),
.policy-card:nth-child(2),
.member-profile-card:nth-child(2) {
    animation-delay: 0.10s;
}

.card:nth-child(3),
.policy-card:nth-child(3),
.member-profile-card:nth-child(3) {
    animation-delay: 0.15s;
}

.card:nth-child(4) {
    animation-delay: 0.20s;
}

.card:nth-child(5) {
    animation-delay: 0.25s;
}

.card:nth-child(6) {
    animation-delay: 0.30s;
}

/* 6. モットーエリア */
.motto-hero-box,
.main-motto,
.motto-subtext {
    animation: fadeInUp 0.7s ease-out forwards;
    opacity: 0;
}

.main-motto {
    animation-delay: 0.1s;
}

.motto-subtext {
    animation-delay: 0.2s;
}

/* 7. サーバーステータスカード */
.server-status-card {
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
    opacity: 0;
}

/* 8. ボタンエリア */
.button-area-flex,
.vote-button-list {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
    animation-delay: 0.3s;
}

/* 9. ニュース一覧 */
.news-list-container .news-card-item {
    opacity: 0;
    animation: fadeInUp 0.4s ease-out forwards;
}

.news-list-container .news-card-item:nth-child(1) {
    animation-delay: 0.05s;
}

.news-list-container .news-card-item:nth-child(2) {
    animation-delay: 0.10s;
}

.news-list-container .news-card-item:nth-child(3) {
    animation-delay: 0.15s;
}

.news-list-container .news-card-item:nth-child(4) {
    animation-delay: 0.20s;
}

.news-list-container .news-card-item:nth-child(5) {
    animation-delay: 0.25s;
}

/* 10. ニュース詳細 */
.news-detail-container {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

/* 11. コンセプトページのクリエーターカード */
.creator-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: 0.1s;
}

/* 12. お問い合わせページのグリッド */
.contact-grid .method-card {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.contact-grid .method-card:nth-child(1) {
    animation-delay: 0.05s;
}

.contact-grid .method-card:nth-child(2) {
    animation-delay: 0.10s;
}

/* 13. 寄付ページ */
.donation-lead {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.donation-grid .donation-card {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.donation-grid .donation-card:nth-child(1) {
    animation-delay: 0.05s;
}

.donation-grid .donation-card:nth-child(2) {
    animation-delay: 0.10s;
}

.donation-grid .donation-card:nth-child(3) {
    animation-delay: 0.15s;
}

/* 14. 運営チームグリッド */
.team-layout-grid .member-profile-card {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.team-layout-grid .member-profile-card:nth-child(1) {
    animation-delay: 0.05s;
}

.team-layout-grid .member-profile-card:nth-child(2) {
    animation-delay: 0.10s;
}

/* 15. ポリシーグリッド */
.policy-grid .policy-card {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.policy-grid .policy-card:nth-child(1) {
    animation-delay: 0.05s;
}

.policy-grid .policy-card:nth-child(2) {
    animation-delay: 0.10s;
}

.policy-grid .policy-card:nth-child(3) {
    animation-delay: 0.15s;
}

/* 16. メッセージ引用ボックス */
.message-quote-box {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: 0.2s;
}

/* 17. フッター */
footer {
    animation: fadeIn 0.5s ease-out forwards;
    animation-delay: 0.2s;
}

/* 18. アクセシビリティ：アニメーション減速設定 */
@media (prefers-reduced-motion: reduce) {

    main,
    .hero,
    .section-title,
    .card,
    .policy-card,
    .member-profile-card,
    .motto-hero-box,
    .server-status-card,
    .button-area-flex,
    .news-card-item,
    .creator-card,
    .method-card,
    .donation-lead,
    .donation-card,
    .team-layout-grid .member-profile-card,
    .policy-grid .policy-card,
    .message-quote-box,
    footer {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* アニメーション対象要素の初期状態（アニメーション適用前に非表示） */
/* 注意：JavaScriptで読み込む前に見えてしまうのを防ぐため */
.section-title,
.card,
.policy-card,
.member-profile-card,
.donation-card,
.spec-card,
.roadmap-card,
.reward-card,
.method-card,
.concept-card,
.motto-hero-box .main-motto,
.motto-hero-box .motto-subtext,
.server-status-card,
.button-area-flex,
.vote-button-list,
.news-card-item,
.news-detail-container,
.creator-card,
.contact-grid .method-card,
.donation-lead,
.donation-grid .donation-card,
.team-layout-grid .member-profile-card,
.policy-grid .policy-card,
.message-quote-box {
    opacity: 0;
}


/* merge.css に追加（必須） */
.detail-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.detail-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* =========================================
   サーバー構成表示（新スタイル）
   ========================================= */

/* 案1: カード風グリッド */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.spec-card {
    background: var(--white);
    border-radius: 20px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spec-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.spec-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.08), transparent);
    border-bottom: 1px solid var(--border-light);
}

.spec-card-icon {
    font-size: 1.8rem;
}

.spec-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.spec-card-body {
    padding: 20px 24px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
}

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

.spec-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--light-text);
}

.spec-value {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
    text-align: right;
}

.spec-value em {
    color: var(--primary-color);
    font-style: normal;
}


/* merge.css に追加 */
html {
    scroll-padding-top: 90px;
    /* ヘッダーの高さ+余裕 */
    scroll-behavior: smooth;
    /* スムーズスクロール */
}


/* レスポンシブ（タブレット） */
@media (max-width: 900px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* レスポンシブ（スマホ） */
@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card__inner {
        padding: 25px 20px;
    }
}

