/*
Theme Name: Adulttanoshy
Theme URI: https://adulttanoshy.com
Author: adulttanoshy
Description: パパ活アプリ比較ランキングサイト専用テーマ
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: adulttanoshy
*/

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --color-primary:   #1a3a5c;
    --color-primary-dark: #0f2540;
    --color-accent:    #e8a020;
    --color-accent-hover: #cf8e15;
    --color-cta:       #e63946;
    --color-cta-hover: #c1121f;
    --color-bg:        #f4f6f9;
    --color-surface:   #ffffff;
    --color-text:      #2d2d2d;
    --color-muted:     #666;
    --color-border:    #dde3ec;
    --radius:          8px;
    --shadow:          0 2px 12px rgba(0,0,0,.1);
    --shadow-hover:    0 6px 24px rgba(0,0,0,.16);
    --font-main:       'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

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

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

/* ===== Layout ===== */
.container {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== Site Header ===== */
.site-header {
    background: var(--color-primary);
    color: #fff;
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-primary-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}
.site-nav { margin-left: auto; }

.site-title a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
}
.site-logo {
    height: 85px;
    width: auto;
    display: block;
    object-fit: contain;
    filter: none;
}

@media (max-width: 640px) {
    .site-logo { height: 60px; }
}

.site-title small {
    display: block;
    font-size: .7rem;
    font-weight: 400;
    opacity: .75;
    margin-top: 2px;
}

/* ===== Navigation ===== */
.site-nav ul { list-style: none; display: flex; gap: 4px; }
.site-nav a {
    color: rgba(255,255,255,.85);
    font-size: .85rem;
    padding: 6px 10px;
    border-radius: var(--radius);
    transition: background .2s;
}
.site-nav a:hover { background: rgba(255,255,255,.15); text-decoration: none; }

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: #fff;
    text-align: center;
    padding: 52px 16px 44px;
}

/* 画像のみモード */
.hero.hero--image-only {
    position: relative;
    overflow: hidden;
    padding: 0;
    margin-top: 0;
    line-height: 0;
    background: #0f1923;
}

/* ② ぼかし背景（top1.jpg を blur + 暗化）*/
.hero.hero--image-only::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('http://adult.tanoshy.xyz/wp-content/uploads/2026/05/top1.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.4);
    transform: scale(1.06);
    z-index: 0;
}

/* メイン画像：前面に表示 */
.hero-main-img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: 700px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

/* ランキング直前 導入テキスト */
.ranking-intro {
    padding: 28px 0 8px;
}
.ranking-intro-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
    line-height: 1.5;
}
.ranking-intro-text {
    font-size: .92rem;
    color: var(--color-muted);
    line-height: 1.75;
}

.hero-badge {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: .06em;
}

.hero h1 { font-size: 1.65rem; font-weight: 700; line-height: 1.4; margin-bottom: 12px; }
.hero p  { font-size: .95rem; opacity: .85; max-width: 480px; margin: 0 auto 24px; }

.hero-updated {
    font-size: .78rem;
    opacity: .6;
    margin-top: 16px;
}

/* ===== Section ===== */
.section { padding: 40px 0; }
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    border-left: 4px solid var(--color-accent);
    padding-left: 12px;
    margin-bottom: 24px;
}

/* ===== Ranking Cards ===== */
.ranking-list { display: flex; flex-direction: column; gap: 24px; }

.rank-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow .25s;
    border: 1px solid var(--color-border);
}
.rank-card:hover { box-shadow: var(--shadow-hover); }

/* ランク別ヘッダー色 */
.rank-card[data-rank="1"] .rank-header { background: linear-gradient(135deg, #b71c1c, #E53935); }
.rank-card[data-rank="2"] .rank-header { background: linear-gradient(135deg, #0d1545, #1A237E); }
.rank-card[data-rank="3"] .rank-header { background: linear-gradient(135deg, #4e342e, #795548); }

.rank-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    color: #fff;
    background: linear-gradient(135deg, #1a2a3a, #2a3a4a); /* 4位以降のデフォルト */
}

/* ===== メインランクバッジ（アイコン + 順位） ===== */
.rank-badge-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    background: rgba(255,255,255,.15);
    border: 2px solid rgba(255,255,255,.4);
    border-radius: 16px;
    padding: 10px 12px;
    flex-shrink: 0;
    gap: 4px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}

.rank-icon {
    font-size: 1.9rem;
    line-height: 1;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.3));
}

.rank-num-text {
    font-size: .95rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    letter-spacing: .06em;
    text-shadow: 0 1px 2px rgba(0,0,0,.3);
}

.rank-header-info { flex: 1; min-width: 0; }

.rank-app-name {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.rank-tagline {
    font-size: .8rem;
    opacity: .85;
    margin-top: 3px;
}

/* 管理画面カスタムバッジテキスト（atn_badge_text） */
.rank-badge-custom {
    background: #fff;
    border: 2px solid #fff;
    color: var(--color-primary);
    font-size: .82rem;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: .06em;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    line-height: 1.3;
}

/* 順位別テキスト・枠線カラー */
.rank-card[data-rank="1"] .rank-badge-custom {
    color: #E53935;
    border-color: #E53935;
}
.rank-card[data-rank="2"] .rank-badge-custom {
    color: #1A237E;
    border-color: #1A237E;
}
.rank-card[data-rank="3"] .rank-badge-custom {
    color: #795548;
    border-color: #795548;
}

/* 旧クラス名の後方互換エイリアス */
.rank-badge {
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.45);
    font-size: .72rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

/* カード本体 */
.rank-body { padding: 18px; }

.rank-app-image {
    text-align: center;
    margin-bottom: 14px;
}
.rank-app-image img {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    margin: 0 auto;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.rank-summary { font-size: .9rem; margin-bottom: 16px; color: var(--color-text); }

/* 評価スター */
.ratings { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.rating-item { display: flex; flex-direction: column; gap: 4px; }

.rating-label {
    font-size: .75rem;
    color: var(--color-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.rating-label-ja { font-size: .8rem; color: var(--color-text); font-weight: 600; }

.stars { display: flex; gap: 3px; align-items: center; }
.star { font-size: 1.05rem; color: #ddd; }
.star.filled { color: #f5a623; }
.star.half { position: relative; }
.star.half::after {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: #f5a623;
    display: inline-block;
}

.rating-score { font-size: .8rem; color: var(--color-muted); margin-left: 4px; }

/* 料金表示 */
.price-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef2f7;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: .85rem;
    margin-bottom: 16px;
}
.price-tag .price-amount { font-weight: 700; color: var(--color-primary); font-size: 1rem; }

/* メリット・デメリット */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.pros, .cons { font-size: .82rem; }
.pros h4 { color: #2a7a2a; margin-bottom: 6px; font-size: .82rem; }
.cons h4 { color: #c0392b; margin-bottom: 6px; font-size: .82rem; }
.pros ul, .cons ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.pros li::before { content: '✓ '; color: #2a7a2a; font-weight: 700; }
.cons li::before { content: '✗ '; color: #c0392b; font-weight: 700; }

/* ===== カードバナー画像（タイトル直下・フル幅） ===== */
.rank-banner-wrap {
    overflow: hidden;
    line-height: 0;
    background: #f0f4f8;
    border-top: 1px solid rgba(255,255,255,.15);
}
.rank-banner {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

/* ===== ロゴ行 ===== */
.card-logo-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.card-logo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    background: var(--color-border);
}
.card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #fff;
    padding: 4px;
}
.card-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: .02em;
}

.card-overview { flex: 1; min-width: 0; }
.card-app-name-sm { font-size: .85rem; font-weight: 700; color: var(--color-muted); margin-bottom: 4px; }

.card-total-score {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.total-score-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
}
.total-score-denom { font-size: .8rem; color: var(--color-muted); }

.card-summary { font-size: .85rem; color: var(--color-text); line-height: 1.6; margin: 0; }

/* ===== カードセクション共通 ===== */
.card-section {
    margin-bottom: 18px;
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.card-section-title {
    font-size: .88rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.card-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    font-size: .7rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== おすすめリスト ===== */
.recommend-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
}
.recommend-list li {
    font-size: .85rem;
    padding-left: 1.4em;
    position: relative;
    line-height: 1.5;
}
.recommend-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2a7a2a;
    font-weight: 700;
}

/* ===== 基本情報テーブル ===== */
.basic-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .84rem;
}
.basic-info-table th {
    width: 90px;
    text-align: left;
    padding: 5px 8px 5px 0;
    color: var(--color-muted);
    font-weight: 600;
    vertical-align: top;
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}
.basic-info-table td {
    padding: 5px 0 5px 4px;
    border-bottom: 1px solid var(--color-border);
    line-height: 1.5;
}
.basic-info-table tr:last-child th,
.basic-info-table tr:last-child td { border-bottom: none; }

/* ===== 口コミ ===== */
.review-list { display: flex; flex-direction: column; gap: 12px; }

.review-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #fff;
    border-radius: var(--radius);
    padding: 10px 12px;
    border: 1px solid var(--color-border);
}

.review-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), #2a6496);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    font-weight: 700;
    flex-shrink: 0;
}

.review-body { flex: 1; min-width: 0; }

.review-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
}
.review-name  { font-size: .82rem; font-weight: 700; }
.review-age   { font-size: .78rem; color: var(--color-muted); }
.review-meta .stars { font-size: .85rem; }
.review-meta .rating-score { font-size: .75rem; }

.review-text {
    font-size: .82rem;
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}

/* ===== 登録ステップ ===== */
.steps-list {
    display: flex;
    gap: 6px;
    align-items: stretch;
}

.step-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 12px 6px 10px;
    position: relative;
}

.step-item + .step-item::before {
    content: '›';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--color-accent);
    font-weight: 900;
    line-height: 1;
}

.step-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--color-primary);
    color: #fff;
    border-radius: 6px;
    padding: 4px 10px;
    margin-bottom: 8px;
    min-width: 44px;
}
.step-label { font-size: .6rem; font-weight: 700; letter-spacing: .08em; opacity: .85; line-height: 1; }
.step-digit { font-size: 1.15rem; font-weight: 900; line-height: 1.2; }

.step-text {
    font-size: .75rem;
    line-height: 1.4;
    margin: 0;
    color: var(--color-text);
}

/* ===== STEPイメージリスト（画像+ラベルのみ版） ===== */
.steps-img-list {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.steps-img-item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.steps-img-label {
    font-size: .75rem;
    font-weight: 700;
    color: var(--color-primary);
    background: #eef2f7;
    padding: 3px 12px;
    border-radius: 12px;
    white-space: nowrap;
    letter-spacing: .04em;
}
.steps-img-photo {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    background: #fff;
    display: block;
}
.steps-img-caption {
    font-size: .84rem;
    color: #555;
    text-align: center;
    margin: 6px 0 0;
    line-height: 1.4;
    font-weight: 600;
}

/* ===== STEP 画像（旧テキスト版との共存用） ===== */
.step-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    border-radius: 6px;
    background: #f8fafc;
    display: block;
    margin: 8px 0 6px;
    border: 1px solid var(--color-border);
}

/* ===== CTAボタン ラップ ===== */
.btn-cta-wrap {
    margin-bottom: 2px;
}

/* ===== CTAボタン 共通 ===== */
@keyframes shimmer {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-cta {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #D4A000 0%, #E8006A 50%, #D4A000 100%);
    background-size: 200% 200%;
    animation: shimmer 3s ease infinite;
    color: #fff;
    text-align: center;
    padding: 18px 24px;
    border-radius: var(--radius);
    font-size: 1.1em;
    font-weight: bold;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    box-shadow: 0 4px 15px rgba(255,215,0,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,215,0,0.6);
    text-decoration: none;
    color: #fff;
}
.btn-cta::after { content: ''; }

.btn-cta--disabled {
    opacity: .5;
    cursor: default;
    pointer-events: none;
    animation: none;
}

/* ===== 女性に選ばれる理由セクション ===== */
.female-reasons-section {
    background: #fff5f9;
    border-color: #f0b8d4;
}
.female-reasons-section .card-section-title { color: #b04880; }
.female-icon { background: #c05490 !important; }
.female-reasons-list li::before { color: #c05490; }

.btn-detail {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: .82rem;
    color: var(--color-muted);
}
.btn-detail:hover { color: var(--color-primary); }

/* ===== 料金テーブル (.price-table) ===== */
.price-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
    line-height: 1.5;
    min-width: 320px;
}

/* ヘッダー行: ダークネイビー + 白テキスト */
.price-table thead tr {
    background: var(--color-primary-dark);
    color: #fff;
}
.price-table th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .04em;
    border: none;
    white-space: nowrap;
}

/* 通常セル */
.price-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:nth-child(even) td { background: #f8fafc; }
.price-table tbody tr:hover td { background: #eef2f7; }

/* recommended行: 薄いゴールド背景 */
.price-table tr.recommended td {
    background: #fdf6e3 !important;
    font-weight: 600;
}
.price-table tr.recommended:hover td { background: #fbefd0 !important; }

/* badgeクラス: 赤い小さなバッジ */
.price-table .badge {
    display: inline-block;
    background: #E53935;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    letter-spacing: .04em;
    vertical-align: middle;
    margin-left: 5px;
    white-space: nowrap;
}

/* price-femaleクラス: ピンク文字・小さめ */
.price-table .price-female {
    color: #c05490;
    font-size: .82rem;
}

/* price-noteクラス: グレー文字・小さめ */
.price-table .price-note {
    color: #888;
    font-size: .78rem;
    display: block;
    margin-top: 3px;
}

/* スマホ対応 */
@media (max-width: 640px) {
    .price-table th,
    .price-table td {
        padding: 9px 10px;
        font-size: .82rem;
    }
    .price-table .badge { font-size: .64rem; padding: 2px 6px; }
    .price-table .price-note { font-size: .74rem; }
}

/* ===== 運営者ページ ===== */
.about-card {
    max-width: 560px;
    margin: 24px auto 0;
    background: var(--color-surface);
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
    padding: 48px 36px;
    text-align: center;
    border: 1px solid var(--color-border);
}

.about-avatar { margin-bottom: 24px; }
.about-avatar-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-border);
    box-shadow: 0 2px 12px rgba(0,0,0,.15);
}

.about-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.about-bio {
    font-size: .95rem;
    color: var(--color-text);
    line-height: 1.85;
    text-align: left;
    margin-bottom: 32px;
}

.about-sns {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.sns-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: .92rem;
    text-decoration: none;
    min-width: 220px;
    justify-content: center;
    transition: opacity .2s, transform .15s;
}
.sns-link:hover {
    opacity: .88;
    transform: translateY(-2px);
    text-decoration: none;
}

.sns-x    { background: #000; color: #fff; }
.sns-note { background: #41C9B4; color: #fff; }

.sns-icon {
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .about-card { padding: 36px 20px; }
    .about-avatar-img { width: 120px; height: 120px; }
    .sns-link { min-width: 0; width: 100%; }
}

/* ===== 比較表 ===== */
.comparison-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
    min-width: 480px;
}
.comparison-table th {
    background: var(--color-primary);
    color: #fff;
    padding: 10px 14px;
    text-align: center;
    font-weight: 600;
}
.comparison-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
    vertical-align: middle;
}
.comparison-table tr:nth-child(even) td { background: #f8fafc; }
.comparison-table .rank-col { font-weight: 700; color: var(--color-primary); }
.comparison-table .text-left { text-align: left; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}
.faq-question {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: .9rem;
}
.faq-question::before { content: 'Q'; color: var(--color-accent); font-weight: 900; flex-shrink: 0; }
.faq-answer {
    padding: 0 16px 14px 16px;
    font-size: .88rem;
    color: var(--color-muted);
    display: none;
}
.faq-answer.open { display: block; }

/* ===== 注意事項 ===== */
.notice-box {
    background: #fff8e1;
    border-left: 4px solid var(--color-accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 14px 16px;
    font-size: .83rem;
    color: #5a4a00;
    margin: 24px 0;
}

/* ===== 記事一覧 ===== */
.posts-grid { display: flex; flex-direction: column; gap: 16px; }
.post-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    gap: 14px;
    transition: box-shadow .2s;
}
.post-card:hover { box-shadow: var(--shadow); }
.post-card-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 72px;
    overflow: hidden;
    background: var(--color-border);
}
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 10px 12px 10px 0; flex: 1; min-width: 0; }
.post-card-title { font-size: .9rem; font-weight: 600; margin-bottom: 4px; line-height: 1.4; }
.post-card-meta { font-size: .75rem; color: var(--color-muted); }

/* ===== Single Post ===== */
.entry-header { margin-bottom: 28px; }
.entry-title { font-size: 1.5rem; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
.entry-meta { font-size: .8rem; color: var(--color-muted); display: flex; gap: 14px; flex-wrap: wrap; }
.entry-content { font-size: .95rem; line-height: 1.8; }
.entry-content h2 { font-size: 1.2rem; margin: 32px 0 14px; padding: 8px 14px; background: #eef2f7; border-left: 4px solid var(--color-primary); border-radius: 0 var(--radius) var(--radius) 0; }
.entry-content h3 { font-size: 1.05rem; margin: 24px 0 10px; color: var(--color-primary); }
.entry-content p  { margin-bottom: 16px; }
.entry-content ul, .entry-content ol { margin: 0 0 16px 1.5em; }

/* ===== Breadcrumb ===== */
.breadcrumb {
    font-size: .78rem;
    color: var(--color-muted);
    padding: 10px 0;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--color-muted); }
.breadcrumb span::before { content: '›'; margin-right: 6px; }

/* ===== Sidebar ===== */
.content-sidebar-wrap { display: flex; gap: 28px; align-items: flex-start; }
.main-content { flex: 1; min-width: 0; }
.sidebar { width: 240px; flex-shrink: 0; }
.widget { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 16px; margin-bottom: 20px; }
.widget-title { font-size: .9rem; font-weight: 700; color: var(--color-primary); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--color-border); }

/* ===== Footer ===== */
.site-footer {
    background: var(--color-primary-dark);
    color: rgba(255,255,255,.7);
    text-align: center;
    padding: 32px 16px 20px;
    margin-top: 48px;
    font-size: .82rem;
}
.footer-nav { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.footer-nav a { color: rgba(255,255,255,.6); }
.footer-nav a:hover { color: #fff; text-decoration: none; }
.footer-disclaimer { max-width: 600px; margin: 0 auto 16px; font-size: .75rem; line-height: 1.6; opacity: .55; }

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

/* ===== Gender Tab Switcher ===== */
.gender-tabs-wrap {
    background: var(--color-primary-dark);
    padding: 0 16px 16px;
    text-align: center;
}

.gender-tabs {
    display: inline-flex;
    background: rgba(255,255,255,.12);
    border-radius: 40px;
    padding: 5px;
    gap: 0;
}

.gender-tab {
    padding: 11px 32px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,.65);
    font-size: 1rem;
    font-weight: 700;
    border-radius: 36px;
    cursor: pointer;
    transition: background .22s, color .22s, transform .15s;
    font-family: var(--font-main);
    letter-spacing: .04em;
    line-height: 1;
    position: relative;
}

.gender-tab.active {
    background: #fff;
    color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.gender-tab:not(.active):hover {
    background: rgba(255,255,255,.18);
    color: #fff;
    transform: translateY(-1px);
}

/* タブ内のラベル補足 */
.gender-tab-sub {
    display: block;
    font-size: .68rem;
    font-weight: 400;
    opacity: .75;
    margin-top: 2px;
    letter-spacing: .02em;
}
.gender-tab.active .gender-tab-sub { opacity: .6; }

/* ===== Gender Panels ===== */
.gender-panel { display: none; animation: panelFadeIn .28s ease; }
.gender-panel.active { display: block; }

@keyframes panelFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ヒーロー内の性別別説明文 */
.hero-desc { display: none; }
.hero-desc.active { display: block; }

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .hero h1 { font-size: 1.35rem; }
    .ratings { grid-template-columns: 1fr 1fr; gap: 8px; }
    .pros-cons { grid-template-columns: 1fr; }
    .content-sidebar-wrap { flex-direction: column; }
    .sidebar { width: 100%; }
    /* ランクバッジ: スマホで少し小さく */
    .rank-badge-main { min-width: 58px; padding: 8px 10px; }
    .rank-icon { font-size: 1.55rem; }
    .rank-num-text { font-size: .85rem; }

    /* カードロゴ行 */
    .card-logo { width: 64px; height: 64px; border-radius: 14px; }
    .total-score-num { font-size: 1.3rem; }
    .card-summary { font-size: .8rem; }

    /* ステップ: 画像なしは横並び維持でフォント縮小 */
    .steps-list { gap: 4px; }
    .step-item { padding: 10px 4px 8px; }
    .step-badge { padding: 3px 6px; min-width: 36px; }
    .step-digit { font-size: 1rem; }
    .step-text { font-size: .7rem; }
    .step-item + .step-item::before { left: -8px; font-size: 1.1rem; }

    /* STEPイメージリスト: スマホでは縦並び */
    .steps-img-list {
        flex-direction: column;
        gap: 14px;
    }
    .steps-img-item { width: 100%; align-items: flex-start; }
    .steps-img-photo { max-height: 280px; }
    .step-img { max-height: 220px; }

    /* 口コミ */
    .review-avatar { width: 32px; height: 32px; font-size: .8rem; }
    .review-text { font-size: .8rem; }

    /* CTA */
    .btn-cta { font-size: 1rem; padding: 15px 16px; }
}
