/* ==========================================================
   Casino Compass - Main CSS
   ダークテーマ / ゴールドアクセント
========================================================== */

/* ---- デザイントークン ---- */
:root {
    --color-bg:        #0d0d1a;
    --color-bg-card:   #16213e;
    --color-bg-panel:  #1a1a2e;
    --color-accent:    #f0a500;
    --color-accent-hover: #e09400;
    --color-success:   #00c97a;
    --color-danger:    #ff4f6d;
    --color-warning:   #ffb800;
    --color-text:      #e8e8f0;
    --color-text-muted:#9999b8;
    --color-border:    #2a2a4a;
    --color-white:     #ffffff;

    --font-sans: 'Inter', 'Noto Sans JP', sans-serif;
    --font-size-base: 16px;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 8px 32px rgba(240, 165, 0, 0.2);

    --transition: 0.2s ease;
    --container-width: 1200px;
    --gap: 24px;
}

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

html { font-size: var(--font-size-base); scroll-behavior: smooth; }

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-hover); }

/* ---- ユーティリティ ---- */
.container {
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: 20px;
}

.section-gap { padding-block: 60px; }

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; top: -40px; left: 0;
    background: var(--color-accent); color: #000;
    padding: 8px; z-index: 9999;
    transition: top var(--transition);
}
.skip-link:focus { top: 0; }

/* ---- ボタン ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
    text-decoration: none;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-accent), #e08800);
    color: #000;
    border-color: var(--color-accent);
}
.btn--primary:hover {
    background: linear-gradient(135deg, #ffc333, var(--color-accent));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 165, 0, 0.4);
    color: #000;
}

.btn--outline {
    background: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}
.btn--outline:hover {
    background: rgba(240, 165, 0, 0.1);
    color: var(--color-accent);
}

.btn--sm { padding: 8px 16px; font-size: 0.85rem; }
.btn--lg { padding: 16px 32px; font-size: 1.1rem; }
.btn--full { width: 100%; }

.btn--pulse {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(240, 165, 0, 0.4); }
    50%       { box-shadow: 0 0 0 12px rgba(240, 165, 0, 0); }
}

/* ---- バッジ ---- */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}
.badge--gold  { background: var(--color-accent); color: #000; }
.badge--green { background: var(--color-success); color: #000; }

/* ============================================================
   ヘッダー
============================================================ */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(13, 13, 26, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
    display: flex; align-items: center; gap: 24px;
    padding-block: 14px;
}

.site-header__logo-text {
    font-size: 1.5rem; font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
}

.site-nav { flex: 1; }

.site-nav__list {
    display: flex; list-style: none; gap: 4px;
    flex-wrap: wrap;
}

.site-nav__list a {
    display: block; padding: 8px 14px;
    color: var(--color-text); border-radius: var(--radius-sm);
    font-size: 0.9rem; transition: all var(--transition);
}
.site-nav__list a:hover,
.site-nav__list .current-menu-item a {
    color: var(--color-accent);
    background: rgba(240, 165, 0, 0.1);
}

.site-nav__toggle { display: none; }

/* ============================================================
   ページヒーロー
============================================================ */
.page-hero {
    background: linear-gradient(160deg, #1a1a3e 0%, #0d0d1a 60%);
    padding-block: 60px;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}
.page-hero__title { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; margin-bottom: 12px; }
.page-hero__desc  { color: var(--color-text-muted); font-size: 1.1rem; max-width: 600px; margin-inline: auto; }

/* ============================================================
   カジノアーカイブレイアウト
============================================================ */
.casino-archive-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--gap);
    align-items: start;
}

/* ---- フィルターパネル ---- */
.filter-panel {
    background: var(--color-bg-panel);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    position: sticky; top: 80px;
}

.filter-panel__header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px;
}
.filter-panel__title { font-size: 1rem; font-weight: 700; }
.filter-panel__reset {
    background: none; border: none; color: var(--color-text-muted);
    font-size: 0.8rem; cursor: pointer; padding: 4px 8px;
    border-radius: var(--radius-sm); transition: color var(--transition);
}
.filter-panel__reset:hover { color: var(--color-accent); }

.filter-group { margin-bottom: 20px; }
.filter-group__label {
    display: block; font-size: 0.85rem; font-weight: 600;
    color: var(--color-text-muted); margin-bottom: 10px;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.filter-group__select {
    width: 100%; padding: 8px 12px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 0.9rem; cursor: pointer;
}
.filter-group__checkboxes { display: flex; flex-direction: column; gap: 8px; }

.filter-checkbox {
    display: flex; align-items: center; gap: 8px;
    cursor: pointer; font-size: 0.9rem;
}
.filter-checkbox input {
    width: 16px; height: 16px; cursor: pointer;
    accent-color: var(--color-accent);
}

/* ---- カジノ一覧 ---- */
.casino-list-meta {
    margin-bottom: 16px;
    color: var(--color-text-muted); font-size: 0.9rem;
}

.casino-list { display: flex; flex-direction: column; gap: 16px; }

/* ---- カジノカード ---- */
.casino-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 20px;
    align-items: center;
    position: relative;
    transition: box-shadow var(--transition), transform var(--transition);
}
.casino-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.casino-card--featured {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 1px var(--color-accent);
}

.casino-card__rank {
    position: absolute; top: -12px; left: 20px;
    background: var(--color-accent); color: #000;
    font-weight: 700; font-size: 0.8rem;
    padding: 2px 10px; border-radius: 100px;
}

.casino-card__badge {
    position: absolute; top: 12px; right: 12px;
    background: var(--color-accent); color: #000;
    font-weight: 700; font-size: 0.7rem;
    padding: 2px 8px; border-radius: 100px;
}

.casino-card__logo {
    width: 140px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    background: var(--color-bg-panel);
    display: flex; align-items: center; justify-content: center;
}
.casino-card__logo img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.casino-card__logo-placeholder {
    font-weight: 700; color: var(--color-text-muted);
    font-size: 0.85rem; text-align: center; padding: 8px;
}

.casino-card__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.casino-card__title a { color: var(--color-text); }
.casino-card__title a:hover { color: var(--color-accent); }

.casino-card__score {
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 8px;
}
.casino-card__score-number { font-size: 1.2rem; font-weight: 700; color: var(--color-accent); }
.casino-card__score-label  { color: var(--color-text-muted); font-size: 0.85rem; }

.casino-card__bonus { font-size: 0.9rem; margin-bottom: 6px; }
.casino-card__bonus-label {
    color: var(--color-text-muted); font-size: 0.8rem; margin-right: 6px;
}

.casino-card__ndb { font-size: 0.85rem; display: flex; align-items: center; gap: 6px; }

.casino-card__actions {
    display: flex; flex-direction: column; gap: 8px; min-width: 140px;
}

/* ---- 星評価 ---- */
.stars { display: inline-flex; gap: 2px; }
.star { font-size: 1rem; }
.star--full  { color: var(--color-accent); }
.star--half  { color: var(--color-accent); opacity: 0.6; }
.star--empty { color: var(--color-border); }

/* ---- スコアバー ---- */
.score-bar {
    display: grid;
    grid-template-columns: 80px 1fr 40px;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.score-bar__label { font-size: 0.85rem; color: var(--color-text-muted); }
.score-bar__track {
    background: var(--color-border);
    border-radius: 100px;
    height: 8px;
    overflow: hidden;
}
.score-bar__fill {
    height: 100%; border-radius: 100px;
    transition: width 0.6s ease;
}
.score-bar__value { font-size: 0.85rem; font-weight: 700; text-align: right; }

/* ============================================================
   カジノ詳細（single-casino）
============================================================ */
.casino-hero {
    background: linear-gradient(160deg, #1a1a3e 0%, #0d0d1a 80%);
    padding-block: 48px;
    border-bottom: 1px solid var(--color-border);
}

.casino-hero__inner {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    gap: 32px;
    align-items: center;
}

.casino-hero__logo {
    width: 180px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--color-bg-card);
    box-shadow: var(--shadow-card);
}
.casino-hero__logo img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.casino-hero__title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 12px; }
.casino-hero__score { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.casino-hero__score-num { font-size: 2rem; font-weight: 700; color: var(--color-accent); }
.casino-hero__score-max { color: var(--color-text-muted); }
.casino-hero__bonus { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.casino-hero__cta { text-align: center; min-width: 200px; }
.casino-hero__cta-note { margin-top: 8px; font-size: 0.75rem; color: var(--color-text-muted); }

/* 詳細レイアウト */
.casino-detail-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: var(--gap);
    align-items: start;
}

/* セクション */
.casino-section {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 28px;
    margin-bottom: var(--gap);
}

.casino-section__title {
    font-size: 1.2rem; font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
}

/* 評価スコア概要 */
.score-overview { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: center; }
.score-overview__total { text-align: center; }
.score-overview__total-num {
    font-size: 4rem; font-weight: 700; color: var(--color-accent);
    line-height: 1;
}
.score-overview__total-max { color: var(--color-text-muted); font-size: 1.2rem; }

/* メリット・デメリット */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pros-cons__heading {
    font-size: 1rem; font-weight: 700; margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px;
}
.pros-cons__heading--pro::before { content: '✓'; color: var(--color-success); }
.pros-cons__heading--con::before { content: '✗'; color: var(--color-danger); }
.pros-cons__list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.pros-cons__list li { padding-left: 16px; position: relative; font-size: 0.9rem; }
.pros-cons__pros .pros-cons__list li::before {
    content: '●'; position: absolute; left: 0;
    color: var(--color-success); font-size: 0.6rem; top: 0.4em;
}
.pros-cons__cons .pros-cons__list li::before {
    content: '●'; position: absolute; left: 0;
    color: var(--color-danger); font-size: 0.6rem; top: 0.4em;
}

/* テーブル */
.info-table { width: 100%; border-collapse: collapse; }
.info-table th,
.info-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
    text-align: left;
    vertical-align: top;
}
.info-table th { color: var(--color-text-muted); width: 40%; }
.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: none; }

/* 入出金方法バッジ */
.payment-methods { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.payment-badge {
    background: var(--color-bg-panel);
    border: 1px solid var(--color-border);
    padding: 4px 12px; border-radius: 100px;
    font-size: 0.8rem;
    display: flex; align-items: center; gap: 4px;
}
.pm-icon { font-style: normal; font-size: 0.7rem; opacity: 0.7; }

/* ゲーム情報 */
.game-features { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.game-feature {
    background: var(--color-bg-panel);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    text-align: center; min-width: 100px;
}
.game-feature--available { border-color: var(--color-success); }
.game-feature--unavailable { opacity: 0.4; }
.game-feature__num { display: block; font-size: 1.8rem; font-weight: 700; color: var(--color-accent); }
.game-feature__icon { display: block; font-size: 1.5rem; margin-bottom: 4px; }
.game-feature__label { font-size: 0.8rem; color: var(--color-text-muted); }

.providers-list h3 { font-size: 0.9rem; margin-bottom: 10px; color: var(--color-text-muted); }
.providers-list__items { display: flex; flex-wrap: wrap; gap: 8px; }
.provider-badge {
    background: var(--color-bg-panel);
    border: 1px solid var(--color-border);
    padding: 4px 10px; border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

/* サイドバー */
.sidebar-cta { margin-bottom: 20px; }
.sidebar-toc {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    position: sticky; top: 80px;
}
.sidebar-toc__title { font-size: 0.9rem; font-weight: 700; margin-bottom: 14px; }
.sidebar-toc__list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.sidebar-toc__list a {
    display: block; padding: 6px 10px;
    color: var(--color-text-muted); font-size: 0.85rem;
    border-radius: var(--radius-sm); transition: all var(--transition);
}
.sidebar-toc__list a:hover { color: var(--color-accent); background: rgba(240,165,0,0.08); }

/* レビュー本文 */
.casino-review-body.entry-content h2,
.casino-review-body.entry-content h3 {
    color: var(--color-text); margin-block: 1.5em 0.8em;
}
.casino-review-body.entry-content p { margin-bottom: 1em; line-height: 1.8; }

/* ============================================================
   フッター
============================================================ */
.site-footer {
    background: var(--color-bg-panel);
    border-top: 1px solid var(--color-border);
    padding-block: 60px 32px;
    margin-top: 80px;
}

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

.site-footer__desc { color: var(--color-text-muted); font-size: 0.9rem; margin-top: 12px; }

.site-footer__nav-list,
.site-footer__legal-list {
    list-style: none; display: flex; flex-direction: column; gap: 8px;
}
.site-footer__nav-list a,
.site-footer__legal-list a { color: var(--color-text-muted); font-size: 0.9rem; }
.site-footer__nav-list a:hover,
.site-footer__legal-list a:hover { color: var(--color-accent); }

.site-footer__disclaimer {
    background: rgba(255, 79, 109, 0.08);
    border: 1px solid rgba(255, 79, 109, 0.2);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    font-size: 0.8rem; color: var(--color-text-muted);
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 24px;
}

.site-footer__age-badge {
    flex-shrink: 0;
    width: 40px; height: 40px;
    background: var(--color-danger);
    color: #fff; font-weight: 700; font-size: 0.9rem;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

.site-footer__bottom {
    text-align: center;
    color: var(--color-text-muted); font-size: 0.85rem;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

/* ============================================================
   ローディングオーバーレイ（フィルター中）
============================================================ */
.casino-list--loading { opacity: 0.5; pointer-events: none; transition: opacity var(--transition); }

.no-results {
    text-align: center; padding: 60px;
    color: var(--color-text-muted); font-size: 1rem;
}

/* ============================================================
   レスポンシブ
============================================================ */
@media (max-width: 1024px) {
    .casino-archive-layout { grid-template-columns: 1fr; }
    .filter-panel { position: static; }
    .casino-detail-layout { grid-template-columns: 1fr; }
    .casino-hero__inner { grid-template-columns: 1fr; text-align: center; }
    .casino-hero__logo img { margin-inline: auto; }
    .score-overview { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .casino-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .casino-card__logo img { margin-inline: auto; }
    .casino-card__score { justify-content: center; }
    .casino-card__bonus { justify-content: center; }
    .casino-card__ndb { justify-content: center; }
    .casino-card__actions { flex-direction: row; justify-content: center; }

    .site-nav__toggle {
        display: flex; background: none; border: 1px solid var(--color-border);
        border-radius: var(--radius-sm); padding: 8px; cursor: pointer;
    }
    .hamburger, .hamburger::before, .hamburger::after {
        display: block; width: 20px; height: 2px;
        background: var(--color-text); transition: all var(--transition);
    }
    .hamburger { position: relative; }
    .hamburger::before, .hamburger::after {
        content: ''; position: absolute; left: 0;
    }
    .hamburger::before { top: -6px; }
    .hamburger::after  { top: 6px; }

    .site-nav__list {
        display: none; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--color-bg-panel);
        border-bottom: 1px solid var(--color-border);
        padding: 16px;
    }
    .site-nav__list.is-open { display: flex; }

    .pros-cons { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr; }
}
