/* ============================================================
   モダンデザイン モック - ゲーム巡りの旅 トップページ
   ============================================================ */

:root {
    /* デフォルト=ダークテーマ */
    --color-bg: #0e0f12;
    --color-surface: #161821;
    --color-surface-2: #1f2230;
    --color-surface-3: #2a2e3f;
    --color-border: #2a2e3f;
    --color-text: #e8eaf0;
    --color-text-muted: #9aa0b0;
    --color-text-subtle: #6b7186;
    --color-accent: #ffb84d;
    --color-accent-2: #ff7a59;
    --color-primary: #5b8def;
    --color-success: #4ade80;
    --gradient-hero: radial-gradient(circle at 20% 0%, rgba(255, 184, 77, 0.15), transparent 40%),
                     radial-gradient(circle at 80% 30%, rgba(91, 141, 239, 0.12), transparent 50%);
    --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-2) 100%);
    --shadow-card: 0 4px 16px rgba(0,0,0,0.3);
    --shadow-card-hover: 0 12px 32px rgba(0,0,0,0.5);
    --radius: 12px;
    --radius-lg: 16px;
}

[data-theme="light"] {
    --color-bg: #f7f8fa;
    --color-surface: #ffffff;
    --color-surface-2: #f0f2f6;
    --color-surface-3: #e6e9ef;
    --color-border: #d8dce4;
    --color-text: #1a1d24;
    --color-text-muted: #5a6171;
    --color-text-subtle: #8d93a3;
    --color-accent: #d97706;
    --color-accent-2: #ea580c;
    --color-primary: #2563eb;
    --color-success: #16a34a;
    --color-footer-bg: #e6e9ef;
    --color-hero-from: #ffffff;
    --color-hero-to: #f0f2f6;
    --gradient-hero: radial-gradient(circle at 20% 0%, rgba(217, 119, 6, 0.10), transparent 40%),
                     radial-gradient(circle at 80% 30%, rgba(37, 99, 235, 0.08), transparent 50%);
    --shadow-card: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-card-hover: 0 8px 24px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* ============================================================
   shirodora-trophy / badge charset.php 用：既存JS互換のモダンスタイル
   .char_list, .ch_no, .ch_lv, .ch_img, .ch_name を維持
   ============================================================ */
body.gt-modern .charset-page { padding: 30px 0 60px; }
body.gt-modern .charset-page .char_cost_section { margin-bottom: 28px; }
body.gt-modern .charset-page .cost_heading,
body.gt-modern .char-list-page .cost_heading {
    display: flex; align-items: center; gap: 10px; margin: 0 0 12px;
    padding: 10px 16px;
    background: linear-gradient(90deg, rgba(255,184,77,0.12), rgba(255,184,77,0.02));
    border-left: 4px solid var(--color-accent);
    border-radius: 6px; font-size: 15px; font-weight: 700; color: var(--color-text);
    cursor: pointer;
    -webkit-user-select: none; user-select: none;
    transition: background 0.15s;
}
body.gt-modern .charset-page .cost_heading:hover,
body.gt-modern .char-list-page .cost_heading:hover {
    background: linear-gradient(90deg, rgba(255,184,77,0.20), rgba(255,184,77,0.05));
}
body.gt-modern .charset-page .cost_heading::before,
body.gt-modern .char-list-page .cost_heading::before {
    content: '▼';
    font-size: 11px;
    color: var(--color-accent);
    transition: transform 0.2s;
    display: inline-block;
}
body.gt-modern .charset-page .char_cost_section.collapsed .cost_heading::before,
body.gt-modern .char-list-page .char_cost_section.collapsed .cost_heading::before {
    transform: rotate(-90deg);
}

/* 折りたたみ状態：アイコンのみ密グリッド表示 */
body.gt-modern .charset-page .char_cost_section.collapsed .char_grid_wrap {
    grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
    gap: 4px;
    margin-bottom: 6px;
}
body.gt-modern .charset-page .char_cost_section.collapsed .char_list {
    padding: 4px;
    border-width: 2px;
    min-height: 48px;
}
body.gt-modern .charset-page .char_cost_section.collapsed .char_list .char_link,
body.gt-modern .charset-page .char_cost_section.collapsed .char_list .ch_name,
body.gt-modern .charset-page .char_cost_section.collapsed .char_list .ch_lv {
    display: none !important;
}
body.gt-modern .charset-page .char_cost_section.collapsed .char_list .ch_img {
    width: 40px !important;
    height: 40px;
    margin: 0 auto;
}
body.gt-modern .charset-page .cost_heading_num,
body.gt-modern .char-list-page .cost_heading_num {
    background: var(--gradient-accent);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    font-size: 16px; font-weight: 900;
}
body.gt-modern .charset-page .cost_heading_count,
body.gt-modern .char-list-page .cost_heading_count { font-size: 12px; color: var(--color-text-muted); font-weight: 500; }

/* キャラ一覧ページ用：折りたたみ時はグリッド非表示 */
body.gt-modern .char-list-page .char_cost_section.collapsed .char-list-grid { display: none; }
body.gt-modern .char-list-page .char_cost_section { margin-bottom: 24px; }

body.gt-modern .charset-page .char_grid_wrap {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px;
}
body.gt-modern .charset-page .char_list {
    position: relative;
    z-index: 1;
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: 10px;
    padding: 22px 8px 8px;
    text-align: center;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
    -webkit-user-select: none; user-select: none;
    cursor: pointer;
}
/* キーパッドが開いているタイルは前面に */
body.gt-modern .charset-page .char_list.has-keypad,
body.gt-modern .charset-page .char_list:has(.keypads) {
    z-index: 100;
}

/* reCAPTCHA バッジ・ポップアップは常に最前面（キャラタイルや stickyヘッダーの裏に潜らない） */
.grecaptcha-badge,
iframe[src*="recaptcha"],
iframe[title*="reCAPTCHA"] {
    z-index: 2147483647 !important;
}
body.gt-modern .charset-page .char_list:hover { border-color: var(--color-accent); transform: translateY(-2px); }
body.gt-modern .charset-page .char_list.selected,
body.gt-modern .charset-page .char_list:has(.ch_no:checked) {
    background: linear-gradient(135deg, rgba(255,184,77,0.15), rgba(255,122,89,0.05));
    border-color: var(--color-accent);
    box-shadow: 0 4px 12px rgba(255,184,77,0.2);
}
body.gt-modern .charset-page .char_list label {
    display: block; cursor: pointer; padding: 0;
}
body.gt-modern .charset-page .char_list .ch_no {
    position: absolute; opacity: 0; pointer-events: none;
}
body.gt-modern .charset-page .char_list .ch_img {
    width: 50px !important; height: 50px; vertical-align: middle !important;
    margin: 0 auto 4px; display: block;
    /* デフォルト＝未選択：グレースケール */
    filter: grayscale(100%) opacity(0.5) !important;
    -webkit-filter: grayscale(100%) opacity(0.5) !important;
    transition: filter 0.15s, -webkit-filter 0.15s;
}
body.gt-modern .charset-page .char_list .ch_name {
    display: block; font-size: 12px; font-weight: 700; color: var(--color-text);
    opacity: 0.5;
    transition: opacity 0.15s;
}
/* 選択時はカラーに戻す */
body.gt-modern .charset-page .char_list.selected .ch_img {
    filter: none !important;
    -webkit-filter: none !important;
}
body.gt-modern .charset-page .char_list.selected .ch_name { opacity: 1; }
body.gt-modern .charset-page .char_list .ch_lv {
    width: 100% !important; height: auto !important;
    background: var(--color-bg) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: 4px !important;
    color: var(--color-text) !important;
    font-size: 11px !important; text-align: center;
    padding: 3px !important; margin-top: 4px;
    font-family: 'Inter'; font-weight: 600;
    -webkit-appearance: none !important;
    position: static !important;
    display: block !important;
}
body.gt-modern .charset-page .char_list .ch_lv:focus {
    outline: 1px solid var(--color-accent); border-color: var(--color-accent) !important;
}
body.gt-modern .charset-page .char_list .lv-label-text { display: none; }
body.gt-modern .charset-page .char_list .char_link {
    position: absolute; top: 4px; left: 4px;
    padding: 2px 8px; display: inline-flex; align-items: center;
    border-radius: 4px;
    background: rgba(255,255,255,0.06);
    color: var(--color-text-muted);
    font-size: 10px; font-weight: 600; text-decoration: none;
    z-index: 5; transition: all 0.15s;
}
body.gt-modern .charset-page .char_list .char_link:hover {
    background: var(--color-accent); color: #1a1a1a;
}

/* キーパッド ポップオーバー（既存JSが生成する .keypads/.keypad のモダン化） */
body.gt-modern .keypads {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    margin-top: 4px;
    background: var(--color-surface) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: 8px !important;
    padding: 6px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4) !important;
    z-index: 200;
    white-space: nowrap !important;
    text-align: left !important;
}
body.gt-modern .keypad {
    display: inline-block !important;
    background: var(--gradient-accent) !important;
    color: #1a1a1a !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    text-align: center;
    margin: 2px !important;
    padding: 6px 0 !important;
    width: 38px !important;
    cursor: pointer;
    font-size: 14px !important;
    line-height: 1.2 !important;
    vertical-align: middle;
}
body.gt-modern .keypad:hover { transform: scale(1.05); }
/* JSが挿入する <br> はそのまま改行として有効 */
body.gt-modern .keypads br { display: block; height: 0; }

/* 検索バー固定 */
body.gt-modern .charset-action-bar {
    position: sticky; top: 64px; z-index: 50;
    background: rgba(14, 15, 18, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 10px 18px;
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px; flex-wrap: wrap; gap: 10px;
}
[data-theme="light"] body.gt-modern .charset-action-bar { background: rgba(255,255,255,0.95); }
body.gt-modern .charset-counter { font-size: 14px; color: var(--color-text-muted); }
body.gt-modern .charset-counter-num { color: var(--color-accent); font-weight: 800; font-size: 18px; font-family: 'Inter'; }

/* リセット系（非sticky・stickyバー直下） */
body.gt-modern .charset-reset-row {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: 8px 0 14px;
}

/* 検索ボタン下の保存ヒント（左寄せ・1段下） */
body.gt-modern .charset-action-bar { flex-wrap: wrap; row-gap: 0; }
body.gt-modern .charset-save-hint {
    flex-basis: 100%;
    order: 3;
    font-size: 12px;
    color: var(--color-text-muted);
    line-height: 1.4;
    text-align: left;
    margin: 0;
}
@media (max-width: 600px) {
    body.gt-modern .charset-save-hint { font-size: 11px; }
}

/* 既存のグレースケール用 */
body.gt-modern .charset-page .char_list .ch_img.gray { filter: grayscale(100%) opacity(0.5); }

/* ヘッダー下の旧テーマ装飾を抑制 */
body.gt-modern .charset-page .gt_sns,
body.gt-modern .charset-page #the-content > br { display: none; }

/* ============================================================
   shirodora-char 関連ページ：一覧・検索・詳細
   ============================================================ */
body.gt-modern .char-list-page { padding: 30px 0 60px; }
body.gt-modern .char-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
body.gt-modern .char-list-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 14px 8px 10px;
    text-decoration: none !important;
    color: var(--color-text) !important;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
body.gt-modern .char-list-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-card-hover);
    color: var(--color-text) !important;
}
body.gt-modern .char-list-icon { width: 60px; height: 60px; margin-bottom: 8px; }
body.gt-modern .char-list-name { font-size: 13px; font-weight: 700; text-align: center; line-height: 1.3; margin-bottom: 6px; min-height: 2.6em; }
body.gt-modern .char-list-tags { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; }
body.gt-modern .char-list-tag {
    font-size: 10px; font-weight: 700;
    padding: 2px 6px; border-radius: 8px;
    letter-spacing: 0.05em;
}
body.gt-modern .tag-style-1 { background: rgba(255,184,77,0.2); color: var(--color-accent); border: 1px solid rgba(255,184,77,0.4); }
body.gt-modern .tag-style-2 { background: rgba(91,141,239,0.2); color: var(--color-primary); border: 1px solid rgba(91,141,239,0.4); }
body.gt-modern .tag-style-3 { background: rgba(74,222,128,0.2); color: var(--color-success); border: 1px solid rgba(74,222,128,0.4); }
body.gt-modern .tag-d1 { background: linear-gradient(135deg, #ffd700, #ff9500); color: #1a1a1a; }
body.gt-modern .tag-ba { background: linear-gradient(135deg, #ffcc44, #cc9900); color: #1a1a1a; }
body.gt-modern .tag-abi { background: rgba(255,255,255,0.08); color: var(--color-text-muted); border: 1px solid var(--color-border); }

/* 記事/モジュールページのコンテンツ幅を制限（PC で横幅一杯になるのを防止）
   親テーマ Simplicity2 の #main / .article の width 指定に勝てるよう !important で強制 */
body.gt-modern article.article,
body.gt-modern .charset-page,
body.gt-modern .char-list-page,
body.gt-modern article.tier-page {
    max-width: 1140px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 24px 20px 40px !important;
    box-sizing: border-box !important;
    float: none !important;
    width: auto !important;
}
@media (max-width: 600px) {
    body.gt-modern article.article,
    body.gt-modern .charset-page,
    body.gt-modern .char-list-page {
        padding: 16px 14px 30px !important;
    }
}

/* キャラ詳細・検索ページの既存テーブル等を読みやすく */
body.gt-modern .article table { background: var(--color-surface); border-collapse: collapse; }
body.gt-modern .article table td,
body.gt-modern .article table th {
    border: 1px solid var(--color-border) !important;
    color: var(--color-text);
    padding: 8px 10px;
}
body.gt-modern .article table th {
    background: var(--color-surface-2) !important;
    color: var(--color-text);
    font-weight: 700;
}
body.gt-modern .article h1, body.gt-modern .article h2, body.gt-modern .article h3 { color: var(--color-text); }
body.gt-modern .article p { color: var(--color-text); }

/* charsearch.php のフォーム要素 */
body.gt-modern .article input[type="text"],
body.gt-modern .article input[type="number"],
body.gt-modern .article select,
body.gt-modern .article textarea {
    background: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 6px 10px;
}
body.gt-modern .article input[type="text"]:focus,
body.gt-modern .article input[type="number"]:focus,
body.gt-modern .article select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(255,184,77,0.15);
}
body.gt-modern .article input[type="checkbox"] {
    accent-color: var(--color-accent);
}
body.gt-modern .article input[type="button"],
body.gt-modern .article input[type="submit"],
body.gt-modern .article button {
    background: var(--gradient-accent);
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}
body.gt-modern .article input[type="button"]:hover,
body.gt-modern .article input[type="submit"]:hover,
body.gt-modern .article button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,184,77,0.3);
}

/* キャラ詳細 char.php */
body.gt-modern .article > img[src*="/shirodora/icon/"] {
    border-radius: 12px;
    background: var(--color-surface-2);
    padding: 8px;
    border: 2px solid var(--color-accent);
    margin-bottom: 14px;
}
body.gt-modern .article a {
    color: var(--color-accent);
}
body.gt-modern .article a:hover {
    color: var(--color-accent-2);
}

/* WordPress 既存テーマ wrapper を passthrough にして、モダンレイアウトと衝突しないように */
body.gt-modern #container,
body.gt-modern #body,
body.gt-modern #body-in,
body.gt-modern #wrap,
body.gt-modern #main {
    max-width: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    float: none !important;
}
body.gt-modern { background: var(--color-bg) !important; }
/* 既存サイドバー・既存ナビ・既存ヘッダーは新デザインで非表示 */
body.gt-modern #sidebar,
body.gt-modern #navi,
body.gt-modern .navi-in,
body.gt-modern #header-in,
body.gt-modern .h_top_image_back,
body.gt-modern .navi-mobile-button { display: none !important; }

/* WP既存パンくずをモダンスタイルで再表示（ティアー以外の独自ページは独自パンくずあり） */
body.gt-modern #breadcrumb.breadcrumb-category {
    display: block;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 10px 14px;
    margin: 16px auto 18px;
    font-size: 13px;
    color: var(--color-text-muted);
    max-width: 1140px;
    box-sizing: border-box;
}
@media (max-width: 1180px) {
    body.gt-modern #breadcrumb.breadcrumb-category { margin-left: 20px; margin-right: 20px; }
}
body.gt-modern #breadcrumb.breadcrumb-category a,
body.gt-modern #breadcrumb.breadcrumb-category a:link,
body.gt-modern #breadcrumb.breadcrumb-category a:visited {
    color: var(--color-text-muted) !important;
    text-decoration: none;
}
body.gt-modern #breadcrumb.breadcrumb-category a:hover { color: var(--color-accent) !important; }
body.gt-modern #breadcrumb.breadcrumb-category .fa { color: var(--color-text-subtle); margin-right: 4px; }
body.gt-modern #breadcrumb.breadcrumb-category > div { display: inline; margin-right: 6px; }
body.gt-modern #breadcrumb.breadcrumb-category .sp { color: var(--color-text-subtle); margin: 0 4px; }
/* WP記事ページのタイトル・メタ情報をモダンスタイルに */
body.gt-modern .article > header {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--color-border);
}
body.gt-modern .article h1.entry-title {
    font-size: 26px;
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: -0.01em;
    margin: 0 0 12px;
    color: var(--color-text);
}
body.gt-modern .article .post-meta {
    font-size: 12px;
    color: var(--color-text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0;
}
body.gt-modern .article .post-meta a { color: var(--color-text-muted); }
body.gt-modern .article .post-meta a:hover { color: var(--color-accent); }
body.gt-modern .article .post-meta .fa { color: var(--color-text-subtle); margin-right: 4px; }
body.gt-modern .article .post-meta > span { display: inline-flex; align-items: center; }
@media (max-width: 600px) {
    body.gt-modern .article h1.entry-title { font-size: 20px; }
}

/* SNSシェア・フォロー（記事下） — レイアウトを記事内に収める */
body.gt-modern .article #sns-group,
body.gt-modern .article .sns-buttons,
body.gt-modern .article .sns-pages {
    max-width: 100%;
    width: auto;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0;
    text-align: left;
}
body.gt-modern .article #sns-group {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}
body.gt-modern .article .sns-share-msg,
body.gt-modern .article .sns-follow-msg {
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 12px 0 6px;
    font-weight: 700;
}
body.gt-modern .article ul.snsb,
body.gt-modern .article ul.snsp,
body.gt-modern .article ul.snsbs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
body.gt-modern .article .snsb li,
body.gt-modern .article .snsp li {
    float: none !important;
    margin: 0 !important;
    list-style: none;
}

/* WP既存テーマの post wrapper / under-entry-body もコンテナ内に収める */
body.gt-modern #post-2121,
body.gt-modern [id^="post-"],
body.gt-modern #under-entry-body,
body.gt-modern .related-entry {
    max-width: 1140px;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;
}

/* ページトップへ戻るボタン（既存テーマ #page-top）をモダン化
   reCAPTCHA バッジ（右下、幅約70px）の左隣に配置 */
body.gt-modern #page-top {
    position: fixed;
    bottom: 20px;
    right: 95px;
    z-index: 90;
}
body.gt-modern #page-top a,
body.gt-modern #page-top #move-page-top {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--gradient-accent) !important;
    color: #1a1a1a !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    text-decoration: none !important;
    border: none !important;
}
body.gt-modern #page-top a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}
body.gt-modern #page-top .fa { color: #1a1a1a !important; font-size: 18px; }
@media (max-width: 600px) {
    body.gt-modern #page-top { bottom: 16px; right: 80px; }
    body.gt-modern #page-top a { width: 40px; height: 40px; }
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: 'Noto Sans JP', -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-2); }

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

.hide-sp { display: inline; }
@media (max-width: 600px) { .hide-sp { display: none; } }

/* ============================================================
   ヘッダー
   ============================================================ */

.site-header {
    background: rgba(14, 15, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 16px;
}

/* ヘッダーのロゴ・ナビ（高優先度・カラーハードコード） */
body.gt-modern .site-header .logo,
body.gt-modern .site-header .logo:link,
body.gt-modern .site-header .logo:visited,
body.gt-modern .site-header .logo:hover {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff !important;
    text-decoration: none !important;
}
body.gt-modern .site-header .logo-icon { font-size: 28px; line-height: 1; color: #ffffff !important; }
body.gt-modern .site-header .logo-text { display: flex; flex-direction: column; line-height: 1.3; }
body.gt-modern .site-header .logo-main {
    font-weight: 900; font-size: 17px; letter-spacing: 0.02em;
    color: #ffffff !important;
}
body.gt-modern .site-header .logo-sub {
    font-size: 11px; color: #c8ccd8 !important;
}

body.gt-modern .site-header .global-nav { display: flex; gap: 8px; }
body.gt-modern .site-header .global-nav a,
body.gt-modern .site-header .global-nav a:link,
body.gt-modern .site-header .global-nav a:visited {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 8px;
    color: #ffffff !important;
    font-size: 14px; font-weight: 600;
    transition: background 0.15s, color 0.15s;
    text-decoration: none !important;
    background: transparent;
    border: none;
    text-shadow: none;
    white-space: nowrap;
}
body.gt-modern .site-header .global-nav a:hover {
    background: rgba(255,255,255,0.08) !important;
    color: var(--color-accent) !important;
}
body.gt-modern .site-header .global-nav a.current,
body.gt-modern .site-header .global-nav a.current:link,
body.gt-modern .site-header .global-nav a.current:visited {
    background: rgba(255,184,77,0.15) !important;
    color: var(--color-accent) !important;
    box-shadow: inset 0 -2px 0 var(--color-accent);
    border-radius: 8px 8px 4px 4px;
}
body.gt-modern .site-header .global-nav a.nav-accent.current {
    box-shadow: 0 0 0 2px rgba(255,184,77,0.4);
}
body.gt-modern .site-footer .footer-col a.current {
    color: var(--color-accent) !important;
    font-weight: 700;
}
body.gt-modern .site-header .global-nav .nav-accent,
body.gt-modern .site-header .global-nav .nav-accent:link,
body.gt-modern .site-header .global-nav .nav-accent:visited {
    background: var(--gradient-accent) !important;
    color: #1a1a1a !important;
}
body.gt-modern .site-header .global-nav .nav-accent:hover {
    color: #1a1a1a !important;
    transform: translateY(-1px);
}

/* ライトテーマでの色調整 */
body.gt-modern[data-theme="light"] .site-header,
[data-theme="light"] body.gt-modern .site-header {
    background: rgba(255,255,255,0.95) !important;
    border-bottom: 1px solid #e0e0e0;
}
[data-theme="light"] body.gt-modern .site-header .logo,
[data-theme="light"] body.gt-modern .site-header .logo-main,
[data-theme="light"] body.gt-modern .site-header .logo-icon { color: #1a1d24 !important; }
[data-theme="light"] body.gt-modern .site-header .logo-sub { color: #5a6171 !important; }
[data-theme="light"] body.gt-modern .site-header .global-nav a,
[data-theme="light"] body.gt-modern .site-header .global-nav a:link,
[data-theme="light"] body.gt-modern .site-header .global-nav a:visited { color: #1a1d24 !important; }

.global-nav .nav-accent {
    background: var(--gradient-accent);
    color: #1a1a1a;
    font-weight: 700;
}

.global-nav .nav-accent:hover {
    background: var(--gradient-accent);
    color: #1a1a1a;
    transform: translateY(-1px);
}

.badge-new {
    background: #ff3b3b;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    line-height: 1;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
    cursor: pointer;
}
.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
}

/* テーマ切替トグル */
.theme-toggle {
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    color: var(--color-accent);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    margin-right: 6px;
    padding: 0;
}
body.gt-modern .site-header .theme-toggle {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    color: #ffffff;
}
[data-theme="light"] body.gt-modern .site-header .theme-toggle {
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    color: var(--color-accent);
}
.theme-toggle:hover { background: var(--color-surface-3); transform: scale(1.05); }
body.gt-modern .site-header .theme-toggle:hover {
    background: rgba(255,255,255,0.18);
}
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .icon-light { display: none; }
[data-theme="light"] .theme-toggle .icon-dark { display: none; }
[data-theme="light"] .theme-toggle .icon-light { display: block; }

@media (max-width: 960px) {
    .global-nav,
    body.gt-modern .site-header .global-nav { display: none !important; }
    .hamburger,
    body.gt-modern .site-header .hamburger { display: flex !important; }
    body.gt-modern .site-header .logo { flex: 1; min-width: 0; }

    /* メニュー展開時：ナビをドロップダウン表示 */
    body.gt-modern .site-header.menu-open .global-nav {
        display: flex !important;
        flex-direction: column;
        gap: 4px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg);
        border-top: 1px solid var(--color-border);
        border-bottom: 1px solid var(--color-border);
        padding: 12px 20px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.3);
        z-index: 99;
    }
    body.gt-modern .site-header.menu-open .global-nav a {
        padding: 12px 16px;
        font-size: 16px;
    }
    body.gt-modern .site-header.menu-open .hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }
    body.gt-modern .site-header.menu-open .hamburger span:nth-child(2) {
        opacity: 0;
    }
    body.gt-modern .site-header.menu-open .hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    body.gt-modern .site-header .hamburger span {
        transition: transform 0.2s, opacity 0.2s;
    }
}
@media (max-width: 768px) {
    .logo-sub,
    body.gt-modern .site-header .logo-sub { display: none !important; }
    body.gt-modern .site-header .header-inner { gap: 8px; }
    body.gt-modern .site-header .logo-main { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    body.gt-modern .site-header .theme-toggle { width: 32px; height: 32px; font-size: 14px; }
}

/* ============================================================
   ヒーロー
   ============================================================ */

.hero {
    background: var(--gradient-hero), linear-gradient(180deg, var(--color-hero-from, #0e0f12) 0%, var(--color-hero-to, #14161e) 100%);
    padding: 80px 0 100px;
    border-bottom: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 12px;
    color: var(--color-accent);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 6px 14px;
    background: rgba(255, 184, 77, 0.1);
    border: 1px solid rgba(255, 184, 77, 0.3);
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 44px;
    font-weight: 900;
    line-height: 1.3;
    margin: 0 0 20px;
    letter-spacing: -0.01em;
}

.hero-title .accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    word-break: keep-all;
}

.hero-desc {
    font-size: 16px;
    color: var(--color-text-muted);
    margin: 0 0 30px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #1a1a1a;
    box-shadow: 0 6px 20px rgba(255, 184, 77, 0.3);
}

.btn-primary:hover {
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 184, 77, 0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-ghost:hover {
    background: var(--color-surface-2);
    color: var(--color-text);
}

/* .article 内のリンクは accent 色になっているので、btn 系は文字色を強制 */
body.gt-modern .article a.btn,
body.gt-modern .article a.btn:link,
body.gt-modern .article a.btn:visited,
body.gt-modern .article a.btn:hover {
    text-decoration: none;
}
body.gt-modern .article a.btn-primary,
body.gt-modern .article a.btn-primary:link,
body.gt-modern .article a.btn-primary:visited,
body.gt-modern .article a.btn-primary:hover {
    color: #1a1a1a !important;
}
body.gt-modern .article a.btn-ghost,
body.gt-modern .article a.btn-ghost:link,
body.gt-modern .article a.btn-ghost:visited,
body.gt-modern .article a.btn-ghost:hover {
    color: var(--color-text) !important;
}

/* tier ページ系のボタン・タブも .article a の color 上書きから守る */
body.gt-modern .article a.tier-btn,
body.gt-modern .article a.tier-btn:link,
body.gt-modern .article a.tier-btn:visited,
body.gt-modern .article a.tier-btn:hover {
    color: #1a1a1a !important;
}
body.gt-modern .article a.tier-btn.tier-btn-secondary,
body.gt-modern .article a.tier-btn.tier-btn-secondary:link,
body.gt-modern .article a.tier-btn.tier-btn-secondary:visited,
body.gt-modern .article a.tier-btn.tier-btn-secondary:hover {
    color: var(--color-text) !important;
}
body.gt-modern .article .tier-sort-tabs a,
body.gt-modern .article .tier-sort-tabs a:link,
body.gt-modern .article .tier-sort-tabs a:visited {
    color: var(--color-text) !important;
}
body.gt-modern .article .tier-sort-tabs a.active,
body.gt-modern .article .tier-sort-tabs a.active:link,
body.gt-modern .article .tier-sort-tabs a.active:visited {
    color: #1a1a1a !important;
}

.hero-stats {
    display: flex;
    gap: 36px;
}

.stat-num {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 28px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

/* ヒーロー右側のカードスタック */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card-stack {
    position: relative;
    width: 280px;
    height: 280px;
}

.hero-card {
    position: absolute;
    width: 160px;
    height: 200px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s;
}

.hero-card-1 {
    top: 20px;
    left: 0;
    transform: rotate(-8deg);
    background: linear-gradient(135deg, var(--color-surface-3), var(--color-surface-2));
    border-color: rgba(255, 184, 77, 0.4);
}
.hero-card-2 {
    top: 0;
    right: 20px;
    transform: rotate(6deg);
    background: linear-gradient(135deg, var(--color-surface-3), var(--color-surface-2));
    border-color: rgba(91, 141, 239, 0.4);
}
.hero-card-3 {
    bottom: 0;
    left: 60px;
    transform: rotate(-2deg);
    background: linear-gradient(135deg, var(--color-surface-3), var(--color-surface-2));
    border-color: rgba(74, 222, 128, 0.4);
    z-index: 1;
}

.hero-card-icon {
    font-size: 56px;
    margin-bottom: 10px;
}

.hero-card-label {
    font-weight: 700;
    color: var(--color-text);
    font-size: 14px;
    letter-spacing: 0.05em;
}

@media (max-width: 900px) {
    .hero { padding: 60px 0 80px; }
    .hero .container { grid-template-columns: 1fr; gap: 40px; }
    .hero-title { font-size: 32px; }
    .hero-visual { order: -1; }
    .hero-card-stack { width: 240px; height: 240px; }
    .hero-card { width: 130px; height: 160px; }
    .hero-card-icon { font-size: 42px; }
    .hero-stats { gap: 24px; }
    .stat-num { font-size: 22px; }
}

/* ============================================================
   セクション共通
   ============================================================ */

main { padding: 80px 0; }

.section-title {
    margin: 0 0 30px;
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.section-title-jp {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.section-title-en {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--color-text-subtle);
    letter-spacing: 0.3em;
    font-weight: 700;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 30px;
}

.section-head .section-title { margin-bottom: 0; }

.link-more {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 14px;
}

/* ============================================================
   メイン機能カード
   ============================================================ */

.features { margin-bottom: 80px; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.feature-card {
    position: relative;
    display: block;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    color: var(--color-text);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-accent);
    color: var(--color-text);
}

.feature-card-bg {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 130px;
    opacity: 0.05;
    line-height: 1;
    pointer-events: none;
}

.feature-card-icon {
    font-size: 36px;
    margin-bottom: 16px;
    line-height: 1;
}

.feature-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
}

.feature-card-desc {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin: 0 0 20px;
}

.feature-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px dashed var(--color-border);
}

.feature-card-stat {
    font-size: 12px;
    color: var(--color-text-subtle);
    font-weight: 600;
}

.feature-card-arrow {
    font-size: 20px;
    color: var(--color-accent);
    transition: transform 0.2s;
}

.feature-card:hover .feature-card-arrow {
    transform: translateX(4px);
}

.feature-card-primary {
    background: linear-gradient(135deg, rgba(255, 184, 77, 0.08), rgba(255, 122, 89, 0.04));
    border-color: rgba(255, 184, 77, 0.3);
}

.feature-card-new {
    background: linear-gradient(135deg, rgba(91, 141, 239, 0.08), rgba(74, 222, 128, 0.04));
    border-color: rgba(91, 141, 239, 0.3);
}

.feature-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ff3b3b;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    letter-spacing: 0.1em;
}

/* ============================================================
   新着ティアー表
   ============================================================ */

.recent-tiers { margin-bottom: 80px; }

.tier-recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

.tier-recent-card {
    display: flex;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--color-text);
    transition: transform 0.2s, border-color 0.2s;
}

.tier-recent-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-accent);
    color: var(--color-text);
}

.tier-recent-rank {
    flex: 0 0 50px;
    display: flex;
    flex-direction: column;
}

.rank-bar {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #1a1a1a;
    font-size: 18px;
}

.rank-S { background: #ff7f7f; }
.rank-A { background: #ffbf7f; }
.rank-B { background: #ffdf7f; }

.tier-recent-body {
    flex: 1;
    padding: 16px;
}

.tier-recent-author {
    font-size: 13px;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 6px;
}

.tier-recent-comment {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tier-recent-stats {
    font-size: 12px;
    color: var(--color-text-subtle);
    display: flex;
    gap: 12px;
}

/* ============================================================
   新着記事
   ============================================================ */

.recent-posts { margin-bottom: 60px; }

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.post-card {
    display: block;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
    text-decoration: none;
    color: inherit;
}
body.gt-modern .post-card,
body.gt-modern .post-card:link,
body.gt-modern .post-card:visited,
body.gt-modern .post-card:hover {
    color: inherit;
    text-decoration: none;
}

.post-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-accent);
}

.post-thumb {
    background: linear-gradient(135deg, var(--color-surface-2), var(--color-surface-3));
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    opacity: 0.6;
}

.post-card-body { padding: 18px 20px; }

.post-card-date {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--color-text-subtle);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.post-card-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--color-text);
}

.post-card-excerpt {
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   フッター
   ============================================================ */

.site-footer {
    background: var(--color-footer-bg, #0a0b0d);
    border-top: 1px solid var(--color-border);
    padding: 60px 0 30px;
    margin-top: 60px;
}

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

.footer-logo {
    font-weight: 900;
    font-size: 20px;
    margin-bottom: 8px;
}

.footer-tagline {
    font-size: 12px;
    color: var(--color-text-muted);
    margin: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
}

.footer-col h4 {
    color: var(--color-text);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}

.footer-col a {
    display: block;
    color: var(--color-text-muted);
    font-size: 13px;
    padding: 5px 0;
    transition: color 0.15s;
}

.footer-col a:hover { color: var(--color-accent); }

/* フッターのリンク色をテーマに合わせて確実に */
body.gt-modern .site-footer .footer-logo,
body.gt-modern .site-footer .footer-col h4 { color: var(--color-text); }
body.gt-modern .site-footer .footer-tagline,
body.gt-modern .site-footer .footer-col a,
body.gt-modern .site-footer .footer-col a:link,
body.gt-modern .site-footer .footer-col a:visited { color: var(--color-text-muted) !important; text-decoration: none; }
body.gt-modern .site-footer .footer-col a:hover { color: var(--color-accent) !important; }
body.gt-modern .site-footer .footer-copy a { color: var(--color-text-muted) !important; }

.footer-copy {
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    font-size: 11px;
    color: var(--color-text-subtle);
    text-align: center;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr; gap: 30px; }
    .footer-links { grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* ============================================================
   小細工 アニメーション
   ============================================================ */

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
    50% { transform: translateY(-8px) rotate(var(--r, 0deg)); }
}

.hero-card-1 { --r: -8deg; animation: float 6s ease-in-out infinite; }
.hero-card-2 { --r: 6deg; animation: float 6s ease-in-out infinite 1s; }
.hero-card-3 { --r: -2deg; animation: float 6s ease-in-out infinite 2s; }

/* ============================================================
   初回訪問お知らせバナー
   ============================================================ */
.welcome-banner {
    background: linear-gradient(135deg, rgba(255, 184, 77, 0.12), rgba(91, 141, 239, 0.08));
    border: 1px solid var(--color-accent);
    border-radius: var(--radius);
    padding: 14px 20px;
    margin: 16px 0 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: var(--color-text);
    position: relative;
}
.welcome-banner-icon { font-size: 28px; line-height: 1; }
.welcome-banner-body { flex: 1; line-height: 1.6; }
.welcome-banner-body strong { color: var(--color-accent); }
.welcome-banner-close {
    background: none; border: none; color: var(--color-text-muted);
    font-size: 22px; cursor: pointer; padding: 4px 10px; line-height: 1;
}
.welcome-banner-close:hover { color: var(--color-text); }

/* ============================================================
   モックページナビ
   ============================================================ */
.mock-nav {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 22, 30, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: 30px;
    padding: 8px 16px;
    display: flex;
    gap: 6px;
    align-items: center;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    font-size: 12px;
}
.mock-nav strong { color: var(--color-text-muted); margin-right: 6px; }
.mock-nav a { padding: 5px 11px; border-radius: 18px; color: var(--color-text-muted); font-size: 12px; }
.mock-nav a:hover { background: var(--color-surface-3); color: var(--color-text); }
.mock-nav a.active { background: var(--color-accent); color: #1a1a1a; font-weight: 700; }
@media (max-width: 768px) {
    .mock-nav { font-size: 10px; padding: 6px 10px; flex-wrap: wrap; max-width: calc(100% - 16px); justify-content: center; }
    .mock-nav a { padding: 4px 8px; font-size: 10px; }
}

/* ============================================================
   パンくず
   ============================================================ */
.breadcrumb-bar {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 12px 0;
    font-size: 13px;
}
.breadcrumb-bar a { color: var(--color-text-muted); }
.breadcrumb-bar a:hover { color: var(--color-accent); }
.breadcrumb-bar .sep { color: var(--color-text-subtle); margin: 0 8px; }

/* ============================================================
   ページヒーロー（サブページ用）
   ============================================================ */
.page-hero {
    background: var(--gradient-hero), linear-gradient(180deg, var(--color-hero-from, #14161e), var(--color-hero-to, #0e0f12));
    padding: 50px 0 40px;
    border-bottom: 1px solid var(--color-border);
}
.page-hero-title { font-size: 32px; font-weight: 900; margin: 0 0 12px; letter-spacing: -0.01em; }
.page-hero-title .accent { background: var(--gradient-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero-desc { color: var(--color-text-muted); font-size: 14px; line-height: 1.8; margin: 0; max-width: 720px; }
@media (max-width: 600px) {
    .page-hero { padding: 36px 0 30px; }
    .page-hero-title { font-size: 24px; }
}

/* ============================================================
   検索ページ
   ============================================================ */
.search-section { margin-bottom: 60px; }

.action-bar {
    position: sticky;
    top: 64px;
    z-index: 50;
    background: rgba(14, 15, 18, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}
.action-bar-left { font-size: 14px; color: var(--color-text-muted); }
.counter-num { color: var(--color-accent); font-weight: 800; font-size: 18px; font-family: 'Inter'; }
.action-bar-right { display: flex; gap: 8px; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; font-weight: 600; cursor: pointer; border: none; white-space: nowrap; margin-bottom: 10px; }
body.gt-modern button.btn-sm,
body.gt-modern .charset-action-bar button { margin-bottom: 10px; }
.btn-ghost-sm { background: var(--color-surface-2); color: var(--color-text-muted); border: 1px solid var(--color-border); }
.btn-ghost-sm:hover { color: var(--color-text); }
.btn-sm.btn-primary { background: var(--gradient-accent); color: #1a1a1a; box-shadow: 0 4px 12px rgba(255, 184, 77, 0.3); }

.filter-chips { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; padding: 12px 0; }
.chip-label { font-size: 12px; color: var(--color-text-subtle); margin-right: 4px; }
.chip-divider { width: 1px; height: 22px; background: var(--color-border); margin: 0 6px; }
.chip { padding: 6px 14px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 18px; color: var(--color-text-muted); font-size: 12px; cursor: pointer; font-weight: 600; transition: all 0.15s; }
.chip:hover { background: var(--color-surface-2); color: var(--color-text); }
.chip-active { background: var(--color-accent); color: #1a1a1a; border-color: var(--color-accent); }

.char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; }

/* コスト別グループ見出し */
.char-cost-section { margin-bottom: 28px; }
.cost-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    padding: 10px 16px;
    background: linear-gradient(90deg, rgba(255, 184, 77, 0.12), rgba(255, 184, 77, 0.02));
    border-left: 4px solid var(--color-accent);
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
}
.cost-heading-num {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.02em;
}
.cost-heading-count {
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 500;
}
.cost-heading-divider { flex: 1; }
.cost-heading-actions { display: flex; gap: 6px; }
.cost-heading-btn {
    padding: 4px 10px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-text-muted);
    font-size: 11px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.15s;
}
.cost-heading-btn:hover { background: var(--color-surface-3); color: var(--color-accent); border-color: var(--color-accent); }
@media (max-width: 600px) {
    .cost-heading { font-size: 13px; padding: 8px 12px; flex-wrap: wrap; }
    .cost-heading-btn { font-size: 10px; padding: 3px 8px; }
}
.char-tile { position: relative; background: var(--color-surface); border: 2px solid var(--color-border); border-radius: 10px; padding: 12px 8px; text-align: center; cursor: pointer; transition: all 0.15s; -webkit-user-select: none; user-select: none; }
.char-tile:hover { border-color: var(--color-accent); transform: translateY(-2px); }
.char-tile.selected { background: linear-gradient(135deg, rgba(255, 184, 77, 0.15), rgba(255, 122, 89, 0.05)); border-color: var(--color-accent); box-shadow: 0 4px 12px rgba(255, 184, 77, 0.2); }
.char-tile-icon { font-size: 32px; line-height: 1; margin-bottom: 4px; }
.char-tile-name { font-size: 12px; font-weight: 700; margin-bottom: 2px; }
.char-tile-cost { font-size: 10px; color: var(--color-text-subtle); margin-bottom: 6px; }
.char-tile-lv { width: 100%; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 4px; color: var(--color-text); font-size: 11px; text-align: center; padding: 3px; font-family: 'Inter'; font-weight: 600; }
.char-tile-lv:focus { outline: 1px solid var(--color-accent); border-color: var(--color-accent); }
.char-tile-tag { position: absolute; top: -4px; right: -4px; background: #ff3b3b; color: #fff; font-size: 9px; padding: 2px 6px; border-radius: 8px; font-weight: 700; }

/* キャラタイル内の「条件 →」テキストリンク */
.char-tile-link {
    position: absolute;
    top: 4px;
    left: 4px;
    padding: 2px 8px;
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    background: rgba(255,255,255,0.06);
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    z-index: 2;
    transition: all 0.15s;
    cursor: pointer;
    letter-spacing: 0.05em;
}
.char-tile-link:hover {
    background: var(--color-accent);
    color: #1a1a1a;
}
.char-tile { padding-top: 22px; }

/* トロフィー結果リスト */
.result-section { margin-top: 60px; }
.trophy-list { display: grid; gap: 8px; }
.trophy-card { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; transition: transform 0.15s, border-color 0.15s; }
.trophy-card:hover { transform: translateY(-1px); border-color: var(--color-accent); }
.trophy-card-rank { font-family: 'Inter'; font-size: 22px; font-weight: 900; text-align: center; align-self: stretch; display: flex; align-items: center; justify-content: center; }
.trophy-card-d1 .trophy-card-rank { background: linear-gradient(135deg, #ffd700, #ff9500); color: #1a1a1a; }
.trophy-card-d2 .trophy-card-rank { background: linear-gradient(135deg, #c0c0c0, #888); color: #1a1a1a; }
.trophy-card-d3 .trophy-card-rank { background: linear-gradient(135deg, #cd7f32, #8b4513); color: #fff; }
.trophy-card-body { padding: 14px 18px; }
.trophy-card-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; color: var(--color-text); }
.trophy-card-cond { font-size: 12px; color: var(--color-text-muted); }
.trophy-card-tag { color: var(--color-text-subtle); margin-right: 4px; }
.trophy-card-status { font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 18px; margin-right: 14px; white-space: nowrap; }
.status-ok { background: rgba(74, 222, 128, 0.15); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.3); }
.status-near { background: rgba(255, 184, 77, 0.15); color: var(--color-accent); border: 1px solid rgba(255, 184, 77, 0.3); }
.trophy-card-near { background: linear-gradient(90deg, var(--color-surface), rgba(255, 184, 77, 0.05)); }

/* キャラ詳細 */
.char-detail-hero { background: var(--gradient-hero), linear-gradient(180deg, var(--color-hero-from, #14161e), var(--color-hero-to, #0e0f12)); padding: 40px 0; border-bottom: 1px solid var(--color-border); }
.char-detail-head { display: grid; grid-template-columns: 200px 1fr; gap: 30px; align-items: center; }
.char-portrait { width: 200px; height: 200px; background: linear-gradient(135deg, var(--color-surface-2), var(--color-surface-3)); border-radius: var(--radius-lg); border: 2px solid var(--color-accent); display: flex; align-items: center; justify-content: center; font-size: 100px; box-shadow: 0 8px 30px rgba(255, 184, 77, 0.3); }
.char-meta-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.char-tag { padding: 4px 12px; border-radius: 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; }
.tag-cost { background: var(--gradient-accent); color: #1a1a1a; }
.tag-type { background: rgba(91, 141, 239, 0.2); color: var(--color-primary); border: 1px solid rgba(91, 141, 239, 0.3); }
.tag-new { background: #ff3b3b; color: #fff; }
.char-name { font-size: 36px; font-weight: 900; margin: 0 0 8px; letter-spacing: -0.01em; }
.char-summon { color: var(--color-text-muted); font-size: 14px; margin: 0 0 16px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 30px; }
.stat-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 16px 14px; text-align: center; }
.stat-card-label { font-size: 11px; color: var(--color-text-muted); letter-spacing: 0.1em; margin-bottom: 6px; text-transform: uppercase; }
.stat-card-value { font-family: 'Inter'; font-size: 26px; font-weight: 800; line-height: 1; background: var(--gradient-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }

.skill-block { background: var(--color-surface); border: 1px solid var(--color-border); border-left: 4px solid var(--color-accent); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 20px; }
.skill-block-label { font-size: 11px; color: var(--color-accent); letter-spacing: 0.15em; font-weight: 700; margin-bottom: 4px; }
.skill-block-name { font-size: 20px; font-weight: 800; margin: 0 0 10px; }
.skill-block-desc { color: var(--color-text-muted); font-size: 14px; line-height: 1.8; }

.related-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; }
.related-card { flex: 0 0 100px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 8px; padding: 10px; text-align: center; }
.related-card-icon { font-size: 32px; margin-bottom: 4px; }
.related-card-name { font-size: 11px; color: var(--color-text); }

@media (max-width: 768px) {
    .char-detail-head { grid-template-columns: 1fr; text-align: center; }
    .char-portrait { margin: 0 auto; }
    .char-name { font-size: 28px; }
    .char-meta-row { justify-content: center; }
}

/* ティアー表 */
.tier-board { background: linear-gradient(135deg, #1a1c25, #14161e); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px; }
.tier-board-row { display: flex; border-bottom: 1px solid var(--color-border); min-height: 90px; }
.tier-board-row:last-child { border-bottom: none; }
.tier-board-label { flex: 0 0 80px; display: flex; align-items: center; justify-content: center; font-family: 'Inter'; font-size: 32px; font-weight: 900; color: #1a1a1a; }
.tier-row-S .tier-board-label { background: linear-gradient(135deg, #ff7f7f, #ff5757); }
.tier-row-A .tier-board-label { background: linear-gradient(135deg, #ffbf7f, #ff9947); }
.tier-row-B .tier-board-label { background: linear-gradient(135deg, #ffdf7f, #ffc247); }
.tier-row-C .tier-board-label { background: linear-gradient(135deg, #ffff7f, #f5e547); }
.tier-row-D .tier-board-label { background: linear-gradient(135deg, #bfff7f, #8af547); }
.tier-row-P .tier-board-label { background: linear-gradient(135deg, #888, #555); color: #fff; font-size: 24px; }
.tier-board-slot { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; align-content: flex-start; }

.tier-mini-char { width: 56px; height: 56px; background: linear-gradient(135deg, #444, #2a2a2a); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 28px; cursor: grab; border: 2px solid transparent; transition: transform 0.15s, border-color 0.15s; }
.tier-mini-char:hover { transform: scale(1.05); border-color: var(--color-accent); }

.char-pool { background: rgba(255,255,255,0.02); border: 2px dashed var(--color-border); border-radius: var(--radius); padding: 16px; }
.char-pool-title { font-size: 13px; color: var(--color-text-muted); margin-bottom: 12px; font-weight: 600; }
.cost-group { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px dashed rgba(255,255,255,0.05); }
.cost-group:last-child { border-bottom: none; }
.cost-group-label { font-size: 11px; color: var(--color-accent); font-weight: 700; margin-bottom: 6px; letter-spacing: 0.05em; }
.cost-chars { display: flex; flex-wrap: wrap; gap: 6px; }

.tier-meta-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 20px; }
.tier-meta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tier-author-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; background: var(--color-surface-2); border-radius: 20px; font-size: 13px; }
.tier-author-pill .creator-name { color: var(--color-accent); font-weight: 700; }
.tier-comment { background: var(--color-surface); border: 1px solid var(--color-border); border-left: 4px solid var(--color-accent); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 20px; font-size: 14px; line-height: 1.8; color: var(--color-text); }
.tier-comment-label { font-size: 12px; color: var(--color-accent); margin-bottom: 6px; font-weight: 700; }

.tier-form { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.tier-form label { display: block; font-weight: 700; font-size: 13px; margin: 14px 0 6px; }
.tier-form input, .tier-form textarea { width: 100%; padding: 10px 14px; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 8px; color: var(--color-text); font-size: 14px; font-family: inherit; box-sizing: border-box; }
.tier-form input:focus, .tier-form textarea:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(255, 184, 77, 0.15); }
.tier-form-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

.tier-actions-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 30px; }
.like-btn { background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-text); padding: 10px 22px; border-radius: 24px; cursor: pointer; font-size: 14px; font-weight: 600; transition: all 0.15s; }
.like-btn:hover { border-color: #ff3b3b; color: #ff3b3b; }
.like-btn.liked { background: #ff3b3b; color: #fff; border-color: #ff3b3b; }

.comments-section { margin-top: 30px; }
.comment-item { background: var(--color-surface); border: 1px solid var(--color-border); border-left: 3px solid var(--color-accent); border-radius: 0 8px 8px 0; padding: 14px 18px; margin-bottom: 10px; }
.comment-meta { font-size: 12px; color: var(--color-text-muted); margin-bottom: 6px; }
.comment-meta .name { color: var(--color-accent); font-weight: 700; }
.comment-body { font-size: 14px; line-height: 1.7; color: var(--color-text); }

@media (max-width: 600px) {
    .tier-board-label { flex: 0 0 50px; font-size: 22px; }
    .tier-mini-char { width: 44px; height: 44px; font-size: 22px; }
}
