/**
 * テーマ追加CSS
 *
 * @package DMM_Video_Theme
 */

/* ============================================================
   タイポグラフィ
   本文: Noto Sans JP  /  見出し: Zen Kaku Gothic New
   ============================================================ */

/* 見出し全般（h1〜h4）に Zen Kaku Gothic New を適用 */
h1, h2, h3, h4,
.fp-section-title,
.work-header__title,
.blog-single__title,
.video-card-title,
.page-title,
.site-title {
    font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', 'Hiragino Sans', sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* 本文・UI要素は Noto Sans JP を明示 */
body,
input, textarea, select, button {
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
}

/* === 単一レビューページ === */
.single-video-review {
    max-width: 100%;
}

/* ============================================================
   作品情報ヘッダー（左：情報 / 右：サムネイル）
   ============================================================ */
.work-header {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
    background: linear-gradient(135deg, rgba(33, 37, 43, 0.97) 0%, rgba(44, 49, 60, 0.97) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--border-accent);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

/* 左：テキスト情報 */
.work-header__info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.work-header__title {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1.4;
    margin: 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-blue);
}

/* 投稿タイプバッジ（記事・予備） */
.work-header__type-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.65rem;
    border-radius: 3px;
    text-transform: uppercase;
    width: fit-content;
}

.work-header__type-badge--article {
    background: var(--accent-yellow);
    color: var(--bg-primary);
}

/* 抜粋テキスト */
.work-header__excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0.25rem 0 0;
    border-top: 1px solid var(--border-color);
    padding-top: 0.6rem;
}

/* 評価エリア */
.work-header__rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.work-header__stars {
    font-size: 0.95rem;
    line-height: 1;
}

.work-header__rating-num {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-yellow);
    line-height: 1;
}

.work-header__rating-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* 作品データグリッド（2カラム） */
.work-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

/* タグ行など幅いっぱいに広げたい項目 */
.wii--full {
    grid-column: 1 / -1;
}

.wii {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.4rem;
    background: rgba(40, 44, 52, 0.35);
    border-radius: 3px;
    min-width: 0;
    line-height: 1.4;
}

.wii__label {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--accent-yellow);
    white-space: nowrap;
    min-width: 3.5rem;
}

.wii__value {
    font-size: 0.75rem;
    color: var(--text-primary);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* タグ行はwrapさせる */
.wii--full .wii__value {
    white-space: normal;
    overflow: visible;
}

.wii__value--price {
    color: var(--accent-green);
    font-weight: 700;
    font-size: 0.82rem;
}

/* ジャンル・作者タグ */
.work-header__genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.work-header__genres .video-tag {
    font-size: 0.7rem;
    padding: 0.1em 0.45em;
}

.video-tag--author {
    border-color: var(--accent-blue) !important;
    color: var(--accent-blue);
}

.video-tag--author:hover {
    background: var(--accent-blue) !important;
    color: var(--bg-primary) !important;
    border-color: var(--accent-blue) !important;
}

/* レビュー本文：女優名のタグリンク（バッジ風を打ち消し、アンダーラインのみ） */
.single-video-review .video-review-content .entry-content a.dmm-review-actress-tag-link,
.single-video-review .video-review-content .entry-content a.video-tag {
    display: inline;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: none !important;
    box-shadow: none;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: var(--link-color, var(--accent-blue));
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    vertical-align: baseline;
}

.single-video-review .video-review-content .entry-content a.dmm-review-actress-tag-link:hover,
.single-video-review .video-review-content .entry-content a.video-tag:hover {
    color: var(--accent-cyan);
    background: none !important;
    border: none;
    text-decoration-thickness: 2px;
}

/* 連載状況バッジ */
.work-status-badge {
    display: inline-block;
    padding: 0.15em 0.6em;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.work-status-badge--完結 {
    background: rgba(152, 195, 121, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(152, 195, 121, 0.4);
}

.work-status-badge--連載中 {
    background: rgba(97, 175, 239, 0.15);
    color: var(--accent-blue);
    border: 1px solid rgba(97, 175, 239, 0.4);
}

.work-status-badge--休載中 {
    background: rgba(229, 192, 123, 0.15);
    color: var(--accent-yellow);
    border: 1px solid rgba(229, 192, 123, 0.4);
}

/* 購入CTAエリア */
.work-header__cta {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.work-header__cta .work-header__trial-btn,
.work-header__cta .work-header__buy-btn {
    flex: 1 1 0;
    min-width: 120px;
}

@media (max-width: 640px) {
    .work-header__cta {
        flex-direction: column;
    }
    .work-header__cta .work-header__trial-btn,
    .work-header__cta .work-header__buy-btn {
        flex: none;
        width: 100%;
        justify-content: center;
        min-height: 44px; /* タッチターゲット確保 */
    }
}

/* 試し読みボタン */
.work-header__trial-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, #5b8dee 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 6px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    justify-content: center;
}

.work-header__trial-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(80, 200, 240, 0.45);
    color: #fff;
}

.work-header__buy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    background: linear-gradient(135deg, #e6001e 0%, #c0001a 100%);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 6px;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    justify-content: center;
}

.work-header__buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 0, 30, 0.45);
    color: #fff !important;
}

/* 本文内のフル動画ボタン：entry-content のリンクスタイルを上書き */
.entry-content .work-header__buy-btn,
.full-video-btn-wrap .work-header__buy-btn {
    text-decoration: none !important;
    color: #fff !important;
}
.entry-content .work-header__buy-btn:hover,
.full-video-btn-wrap .work-header__buy-btn:hover {
    color: #fff !important;
}

.work-header__affiliate-notice {
    width: 100%;
    margin-top: 0;
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-align: center;
}

/* 右：サムネイル */
.work-header__cover {
    position: sticky;
    top: calc(var(--header-height, 70px) + 1rem);
}

.work-header__cover-wrap {
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid var(--border-accent);
    box-shadow: var(--shadow), 0 0 24px rgba(97, 175, 239, 0.18);
    aspect-ratio: 1 / 1;
    background: var(--bg-tertiary);
    transition: box-shadow 0.3s ease;
}

.work-header__cover-wrap:hover {
    box-shadow: var(--shadow-hover), 0 0 30px rgba(97, 175, 239, 0.3);
}

.work-header__cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.work-header__cover-wrap--empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* レスポンシブ: work-header */
@media (max-width: 640px) {
    .work-header {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .work-header__cover {
        position: static;
        max-width: 240px;
        margin: 0 auto;
    }
    .work-header__title { font-size: 1.35rem; }
}

/* 旧クラスとの後方互換（念のため残す） */
.video-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.video-genres .video-tag {
    border: 1px solid var(--accent-purple);
}

.video-genres .video-tag:hover {
    background-color: var(--accent-purple);
    box-shadow: 0 0 15px rgba(198, 120, 221, 0.4);
}

.video-review-content {
    background: linear-gradient(135deg, rgba(33, 37, 43, 0.95) 0%, rgba(44, 49, 60, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-accent);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.review-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: rgba(40, 44, 52, 0.5);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.review-section:last-child {
    margin-bottom: 0;
}

.review-section h2 {
    color: var(--text-bright);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-blue);
    position: relative;
}

.review-section h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent-blue);
}

.review-pros {
    border: 1px solid var(--accent-green);
}

.review-pros h2 {
    border-bottom-color: var(--accent-green);
    color: var(--accent-green);
}

.review-pros h2::before {
    background: var(--accent-green);
}

.review-cons {
    border: 1px solid var(--accent-red);
}

.review-cons h2 {
    border-bottom-color: var(--accent-red);
    color: var(--accent-red);
}

.review-cons h2::before {
    background: var(--accent-red);
}

.review-detail {
    border: 3px solid var(--accent-cyan);
    padding: 2rem;
}

.review-detail h2 {
    border-bottom-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.review-detail h2::before {
    background: var(--accent-cyan);
}

.review-text {
    color: var(--text-primary);
    line-height: 1.8;
}

/* ===== 導入文 - キャラクター吹き出し (Intro Speech) ===== */
.intro-speech {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

/* アバター列（画像＋名前・肩書き） */
.intro-speech__avatar-wrap {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 80px;
}

/* キャラクター画像（丸） */
.intro-speech__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-cyan);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(86, 182, 194, 0.35);
}

.intro-speech__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.intro-speech__avatar svg {
    width: 40px;
    height: 40px;
    color: var(--text-secondary);
}

/* キャラクター名・肩書き */
.intro-speech__avatar-info {
    text-align: center;
    line-height: 1.3;
}

.intro-speech__avatar-title {
    display: block;
    font-size: 0.62rem;
    color: var(--accent-cyan);
    letter-spacing: 0.02em;
}

.intro-speech__avatar-name {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* 吹き出し本体 */
.intro-speech__bubble {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 34, 42, 0.92) 0%, rgba(44, 49, 60, 0.92) 100%);
    border: 1px solid var(--accent-cyan);
    border-radius: 10px;
    padding: 1.1rem 1.3rem;
    color: var(--text-primary);
    font-size: 0.96rem;
    line-height: 1.85;
    flex: 1;
    min-width: 0;
}

/*
 * 吹き出しの三角：アバター円（72px）の中心（36px）に合わせる
 * ::before = ボーダー色（シアン）  ::after = 内側の背景色
 */
.intro-speech__bubble::before {
    content: '';
    position: absolute;
    top: calc(36px - 9px); /* 円の中心 36px - 三角の半高さ 9px */
    left: -11px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 9px 11px 9px 0;
    border-color: transparent var(--accent-cyan) transparent transparent;
}

.intro-speech__bubble::after {
    content: '';
    position: absolute;
    top: calc(36px - 8px); /* ボーダー1px分を内側にずらす */
    left: -9px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 10px 8px 0;
    border-color: transparent rgba(30, 34, 42, 0.92) transparent transparent;
}

.intro-speech__bubble p:last-child {
    margin-bottom: 0;
}

/* モバイル：縦並び（アバター上・吹き出し下） */
@media (max-width: 479px) {
    .intro-speech {
        flex-direction: column;
        align-items: center;
    }
    .intro-speech__bubble {
        width: 100%;
    }
    .intro-speech__bubble::before,
    .intro-speech__bubble::after {
        display: none;
    }
}

/* ===== アフィリエイトボタン (Actress / Sale) ===== */
.dmm-affiliate-btn-wrap {
    margin: 1.5rem 0;
    text-align: center;
}

.dmm-affiliate-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: bold;
    text-decoration: none !important;
    transition: var(--transition);
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.dmm-affiliate-btn--actress {
    background: linear-gradient(135deg, #b54fcd 0%, #7c3da6 100%);
    border: 1px solid rgba(181, 79, 205, 0.5);
}

.dmm-affiliate-btn--actress:hover {
    background: linear-gradient(135deg, #c760de 0%, #8e4abf 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(181, 79, 205, 0.4);
}

.dmm-affiliate-btn--sale {
    background: linear-gradient(135deg, #e8613e 0%, #c0392b 100%);
    border: 1px solid rgba(232, 97, 62, 0.5);
}

.dmm-affiliate-btn--sale:hover {
    background: linear-gradient(135deg, #f07050 0%, #d44532 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(232, 97, 62, 0.4);
}

.dmm-affiliate-notice {
    font-size: 0.72rem;
    color: var(--text-muted, #888);
    margin-top: 0.4rem;
    margin-bottom: 0;
}

/* ===== 目次 (TOC) ===== */
.toc {
    margin-top: 1.8rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(30, 34, 42, 0.95) 0%, rgba(44, 49, 60, 0.95) 100%);
    border: 2px solid var(--accent-cyan);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(86, 182, 194, 0.12), var(--shadow);
    display: inline-block;
    min-width: 260px;
    max-width: 100%;
}

/* ヘッダー行 */
.toc-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    background: linear-gradient(90deg, rgba(86, 182, 194, 0.15) 0%, rgba(86, 182, 194, 0.04) 100%);
    border-bottom: 1px solid rgba(86, 182, 194, 0.25);
    user-select: none;
}

.toc-icon {
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.toc-title {
    flex: 1;
    font-weight: bold;
    font-size: 0.95rem;
    color: var(--accent-cyan);
    letter-spacing: 0.05em;
}

.toc-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(86, 182, 194, 0.1);
    border: 1px solid rgba(86, 182, 194, 0.3);
    border-radius: 6px;
    cursor: pointer;
    color: var(--accent-cyan);
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.toc-toggle:hover {
    background: rgba(86, 182, 194, 0.25);
}

.toc-toggle-icon {
    transition: transform 0.3s ease;
    display: block;
}

/* リスト本体 */
/* max-height / transition はJSがinline styleで管理する。
   CSS で大きな max-height を transition するとブラウザが毎フレーム
   多くのレイアウト計算をして animation がかくつく。 */
.toc-list {
    list-style: none;
    padding: 0.75rem 1.25rem 1rem;
    margin: 0;
    overflow: hidden;
}

/* ペーク状態（初期）: 先頭数件だけ見せてグラデーションでフェード */
.toc-list.toc-collapsed {
    max-height: 96px;
    padding-bottom: 0;
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

/* 展開後: マスク解除 + 縦スクロール（max-height はJS or モバイルCSSが設定） */
.toc-list:not(.toc-collapsed) {
    -webkit-mask-image: none;
    mask-image: none;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* h2 アイテム */
.toc-item.toc-h2 {
    margin-bottom: 0.25rem;
}

/* h3 サブリスト */
.toc-sublist {
    list-style: none;
    margin: 0.2rem 0 0.5rem 1rem;
    padding: 0;
    border-left: 2px solid rgba(86, 182, 194, 0.2);
    padding-left: 0.75rem;
}

.toc-item.toc-h3 {
    margin-bottom: 0.15rem;
}

/* リンク共通 */
.toc-link {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
    line-height: 1.5;
}

/* h2 リンク */
.toc-link-h2 {
    color: var(--text-bright);
    font-size: 0.95rem;
    font-weight: 600;
}

.toc-link-h2:hover {
    background: rgba(86, 182, 194, 0.12);
    color: var(--accent-cyan);
    padding-left: 0.85rem;
}

/* h3 リンク */
.toc-link-h3 {
    color: var(--text-primary);
    font-size: 0.875rem;
}

.toc-link-h3:hover {
    background: rgba(198, 120, 221, 0.1);
    color: var(--accent-purple);
    padding-left: 0.85rem;
}

/* 番号バッジ */
.toc-num {
    flex-shrink: 0;
    min-width: 1.6em;
    text-align: center;
    font-size: 0.78rem;
    font-weight: bold;
    padding: 0.05em 0.4em;
    border-radius: 4px;
    line-height: 1.6;
}

.toc-link-h2 .toc-num {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
    color: var(--bg-primary);
}

.toc-link-h3 .toc-num {
    background: rgba(198, 120, 221, 0.2);
    color: var(--accent-purple);
    border: 1px solid rgba(198, 120, 221, 0.35);
}

.toc-text {
    flex: 1;
}

/* アクティブハイライト */
.toc-link-active.toc-link-h2 {
    background: rgba(86, 182, 194, 0.15);
    color: var(--accent-cyan);
    padding-left: 0.85rem;
    border-left: 3px solid var(--accent-cyan);
}

.toc-link-active.toc-link-h3 {
    background: rgba(198, 120, 221, 0.1);
    color: var(--accent-purple);
    padding-left: 0.85rem;
    border-left: 3px solid var(--accent-purple);
}

/* フォーカスリング（キーボード操作のアクセシビリティ） */
.toc-toggle:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

.toc-link:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 1px;
    border-radius: 4px;
}

/* レスポンシブ */
@media (max-width: 767px) {
    .toc-list {
        padding: 0.5rem 0.75rem 0.75rem;
    }

    /* アニメーション後の展開状態: viewport 高さで上限をかけてスクロール可に */
    .toc-list:not(.toc-collapsed) {
        max-height: 85vh;
        max-height: 85dvh;
    }

    .toc-link-h2 {
        font-size: 0.875rem;
    }

    .toc-link-h3 {
        font-size: 0.82rem;
    }

    .toc-sublist {
        margin-left: 0.5rem;
    }
}

/* アニメーション軽減設定（アクセシビリティ） */
@media (prefers-reduced-motion: reduce) {
    .toc-list,
    .toc-toggle,
    .toc-toggle-icon,
    .toc-link {
        transition: none !important;
    }
}

/* ===== entry-content 内スタイル ===== */
.entry-content {
    color: var(--text-primary);
    line-height: 1.9;
    font-size: 1rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* --- 段落 --- */
.entry-content p {
    margin-bottom: 1.4rem;
}

/* --- 見出し --- */
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: var(--text-bright);
    font-weight: bold;
    line-height: 1.4;
    margin-top: 3.5rem;
    margin-bottom: 0.9rem;
    /* sticky ヘッダー分オフセット（アンカーリンク・ブックマーク対応） */
    scroll-margin-top: calc(var(--header-height, 70px) + 20px);
}

.entry-content h2 {
    font-size: 1.5rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(90deg, rgba(86, 182, 194, 0.08) 0%, transparent 100%);
}

.entry-content h3 {
    font-size: 1.25rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--accent-purple);
    color: var(--accent-purple);
}

.entry-content h4 {
    font-size: 1.1rem;
    color: var(--accent-yellow);
    padding-bottom: 0.3rem;
    border-bottom: 1px dashed var(--border-accent);
}

.entry-content h5 {
    font-size: 1rem;
    color: var(--accent-orange);
}

.entry-content h6 {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* --- リンク --- */
.entry-content a {
    color: var(--accent-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition);
}

.entry-content a:hover {
    color: var(--accent-cyan);
}

/* --- 強調 --- */
.entry-content strong,
.entry-content b {
    color: var(--text-bright);
    font-weight: bold;
}

.entry-content em,
.entry-content i {
    color: var(--accent-yellow);
    font-style: italic;
}

/* --- リスト --- */
.entry-content ul,
.entry-content ol {
    margin: 0 0 1.4rem 1.5rem;
    padding: 0;
}

.entry-content ul {
    list-style: none;
    margin-left: 0;
}

.entry-content ul li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.5rem;
}

.entry-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-cyan);
}

.entry-content ol {
    list-style: decimal;
    padding-left: 1.5rem;
}

.entry-content ol li {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

.entry-content ol li::marker {
    color: var(--accent-blue);
    font-weight: bold;
}

/* ネストリスト */
.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
}

.entry-content ul ul li::before {
    background: transparent;
    border: 2px solid var(--accent-purple);
}

/* --- 引用 --- */
.entry-content blockquote {
    margin: 1.5rem 0;
    padding: 2.5rem 1.5rem 1.5rem;
    border-left: 4px solid var(--accent-orange);
    background: linear-gradient(90deg, rgba(209, 154, 102, 0.08) 0%, rgba(40, 44, 52, 0.4) 100%);
    border-radius: 0 6px 6px 0;
    position: relative;
}

.entry-content blockquote::before {
    content: '\201C';
    position: absolute;
    top: 0.4rem;
    left: 0.8rem;
    font-size: 3rem;
    color: var(--accent-orange);
    opacity: 0.4;
    line-height: 1;
    font-family: Georgia, serif;
}

.entry-content blockquote p {
    margin-bottom: 0;
    color: var(--text-primary);
    font-style: italic;
    padding-left: 1rem;
}

.entry-content blockquote cite {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: normal;
    padding-left: 1rem;
}

/* --- コード --- */
.entry-content code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.88em;
    background-color: var(--bg-secondary);
    color: var(--accent-red);
    padding: 0.15em 0.45em;
    border-radius: 4px;
    border: 1px solid var(--border-accent);
}

.entry-content pre {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-accent);
    border-radius: 8px;
    overflow-x: auto;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
}

.entry-content pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* --- Tables: wide tables scroll inside .entry-content__table-scroll or figure.wp-block-table only --- */
.entry-content table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    table-layout: auto;
}

.entry-content__table-scroll {
    max-width: 100%;
    margin: 1.5rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.entry-content__table-scroll table {
    margin: 0;
}

.entry-content th,
.entry-content td {
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
}

.entry-content thead {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
}

.entry-content thead th {
    color: var(--bg-primary);
    font-weight: bold;
    padding: 0.85rem 1rem;
    text-align: left;
    letter-spacing: 0.3px;
}

.entry-content tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.entry-content tbody tr:last-child {
    border-bottom: none;
}

.entry-content tbody tr:nth-child(even) {
    background-color: rgba(62, 68, 81, 0.35);
}

.entry-content tbody tr:hover {
    background-color: rgba(86, 182, 194, 0.08);
}

.entry-content td {
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    vertical-align: top;
}

.entry-content th {
    padding: 0.75rem 1rem;
}

/* テーブルラッパー（Gutenberg / 手動ラッパー） */
.entry-content figure.wp-block-table,
.entry-content .table-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 1.5rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.entry-content figure.wp-block-table table,
.entry-content .table-wrapper table {
    margin: 0;
    min-width: 100%;
}

/* テーブル横スクロールバー（丸・グラデ・ホバーで少しパステル寄り） */
.entry-content__table-scroll,
.entry-content figure.wp-block-table,
.entry-content .table-wrapper {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-cyan) rgba(62, 68, 81, 0.55);
}

.entry-content__table-scroll::-webkit-scrollbar,
.entry-content figure.wp-block-table::-webkit-scrollbar,
.entry-content .table-wrapper::-webkit-scrollbar {
    height: 11px;
}

.entry-content__table-scroll::-webkit-scrollbar-track,
.entry-content figure.wp-block-table::-webkit-scrollbar-track,
.entry-content .table-wrapper::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(33, 37, 43, 0.95) 0%, rgba(44, 49, 60, 0.9) 100%);
    border-radius: 999px;
    margin: 2px 6px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

.entry-content__table-scroll::-webkit-scrollbar-thumb,
.entry-content figure.wp-block-table::-webkit-scrollbar-thumb,
.entry-content .table-wrapper::-webkit-scrollbar-thumb {
    border-radius: 999px;
    border: 2px solid rgba(33, 37, 43, 0.95);
    background: linear-gradient(90deg, var(--accent-cyan) 0%, var(--accent-purple) 55%, var(--accent-yellow) 100%);
    box-shadow:
        0 0 10px rgba(86, 182, 194, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    min-width: 48px;
}

.entry-content__table-scroll::-webkit-scrollbar-thumb:hover,
.entry-content figure.wp-block-table::-webkit-scrollbar-thumb:hover,
.entry-content .table-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #6ec8d4 0%, #d18ee8 50%, #f0cf95 100%);
    box-shadow:
        0 0 14px rgba(198, 120, 221, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.entry-content__table-scroll::-webkit-scrollbar-thumb:active,
.entry-content figure.wp-block-table::-webkit-scrollbar-thumb:active,
.entry-content .table-wrapper::-webkit-scrollbar-thumb:active {
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
    box-shadow: 0 0 8px rgba(97, 175, 239, 0.45);
}

/* --- 水平線 --- */
.entry-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-purple), transparent);
    margin: 2rem 0;
    border-radius: 2px;
}

/* --- 画像 --- */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid var(--border-accent);
    display: block;
    margin: 1.2rem auto;
}

.entry-content figure {
    margin: 1.5rem 0;
    text-align: center;
}

.entry-content figcaption {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    text-align: center;
}

/* --- マーク・ハイライト --- */
.entry-content mark {
    background: rgba(229, 192, 123, 0.25);
    color: var(--accent-yellow);
    padding: 0.1em 0.3em;
    border-radius: 3px;
}

/* --- 文字装飾 --- */
.entry-content del {
    color: var(--text-secondary);
    text-decoration: line-through;
}

.entry-content ins {
    color: var(--accent-green);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.entry-content abbr[title] {
    border-bottom: 1px dotted var(--text-secondary);
    cursor: help;
}

/* --- キーボード --- */
.entry-content kbd {
    display: inline-block;
    font-family: 'Consolas', monospace;
    font-size: 0.85em;
    background: var(--bg-hover);
    color: var(--text-bright);
    border: 1px solid var(--border-accent);
    border-bottom-width: 3px;
    border-radius: 4px;
    padding: 0.1em 0.5em;
    box-shadow: inset 0 -1px 0 var(--border-color);
}

/* --- WP Gutenberg ブロック調整 --- */
.entry-content .wp-block-quote {
    border-left: 4px solid var(--accent-orange);
    background: rgba(209, 154, 102, 0.06);
    padding: 1.2rem 1.5rem;
    border-radius: 0 6px 6px 0;
}

.entry-content .wp-block-pullquote {
    border-top: 3px solid var(--accent-purple);
    border-bottom: 3px solid var(--accent-purple);
    text-align: center;
    padding: 1.5rem;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-bright);
}

.entry-content .wp-block-code {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-accent);
    border-radius: 8px;
}

.entry-content .wp-block-separator {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-purple), transparent);
}

/* --- レスポンシブ --- */
@media (max-width: 767px) {
    .entry-content table {
        font-size: 0.85rem;
    }

    .entry-content td,
    .entry-content th {
        padding: 0.5rem 0.6rem;
    }

    .entry-content h2 {
        font-size: 1.25rem;
    }

    .entry-content h3 {
        font-size: 1.1rem;
    }

    .review-detail {
        border-left: none;
        border-right: none;
        border-top: none;
        border-bottom: none;
        border-radius: 0;
        padding: 1rem 0;
        background: transparent;
    }
}

.video-review-footer {
    background: linear-gradient(135deg, rgba(33, 37, 43, 0.9) 0%, rgba(40, 44, 52, 0.9) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-accent);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* === ページネーション === */
.pagination {
    margin-top: 2rem;
}

.navigation .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(33, 37, 43, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--text-primary);
    border-radius: 4px;
    border: 1px solid var(--border-accent);
    transition: var(--transition);
}

.page-numbers:hover {
    background-color: var(--bg-hover);
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(86, 182, 194, 0.3);
}

.page-numbers.current {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
    color: var(--text-bright);
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(97, 175, 239, 0.4);
}

/* === ウィジェットスタイル === */
.popular-reviews-list,
.recent-reviews-list,
.genre-filter-list {
    list-style: none;
    padding-left: 0;
}

.popular-reviews-list li,
.recent-reviews-list li,
.genre-filter-list li {
    list-style: none;
}

.popular-review-item,
.recent-review-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.popular-review-item:last-child,
.recent-review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.popular-review-thumbnail,
.recent-review-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 85px;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid var(--border-accent);
    transition: var(--transition);
}

.popular-review-item:hover .popular-review-thumbnail,
.recent-review-item:hover .recent-review-thumbnail {
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(97, 175, 239, 0.3);
}

.popular-review-thumbnail img,
.recent-review-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.popular-review-item:hover .popular-review-thumbnail img,
.recent-review-item:hover .recent-review-thumbnail img {
    transform: scale(1.1);
}

.popular-review-content,
.recent-review-content {
    flex: 1;
    min-width: 0;
}

.popular-review-content h4,
.recent-review-content h4 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: var(--text-bright);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: var(--transition);
}

.popular-review-content h4 a,
.recent-review-content h4 a {
    color: var(--text-bright);
}

.popular-review-item:hover h4 a,
.recent-review-item:hover h4 a {
    color: var(--accent-cyan);
}

.popular-review-content .rating {
    font-size: 0.8rem;
}

.recent-review-content time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.genre-filter-list li {
    margin-bottom: 0.5rem;
}

.genre-filter-list a {
    display: block;
    padding: 0.5rem;
    background-color: var(--bg-tertiary);
    border-radius: 4px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.genre-filter-list a:hover {
    background-color: var(--bg-hover);
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    box-shadow: 0 0 10px rgba(198, 120, 221, 0.2);
}

.genre-filter-list .count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* === フィルターバー スタイル === */
.filter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

/* === ローディング & エラー === */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.error {
    color: var(--accent-red);
    padding: 1rem;
    background-color: rgba(224, 108, 117, 0.1);
    border-radius: 4px;
    text-align: center;
}

.no-results,
.no-content {
    text-align: center;
    padding: 3rem;
    background-color: rgba(33, 37, 43, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid var(--border-accent);
}

.no-content h2 {
    color: var(--text-bright);
    margin-bottom: 1rem;
}

/* === ページヘッダー === */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.page-title {
    color: var(--text-bright);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-title .search-query {
    color: var(--accent-cyan);
    font-weight: bold;
}

.search-results-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.archive-description {
    color: var(--text-primary);
    margin-top: 1rem;
}

/* 記事アーカイブ: タグ一覧への導線 */
.archive-subnav {
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
}

.archive-subnav__link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.archive-subnav__link:hover {
    color: var(--text-bright);
    text-decoration: underline;
}

.archive-subnav__sep {
    display: inline-block;
    padding: 0 0.15rem;
    color: var(--text-secondary);
    font-weight: 400;
    user-select: none;
}

/* === 記事タグ一覧（/article-tags/） === */
.content-area.article-tag-index-page {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.page-header--article-tag-index .page-title {
    margin-bottom: 0.35rem;
}

.article-tag-index__lead {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0 0 0.5rem;
}

.article-tag-index__count {
    margin-left: 0.35rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

.article-tag-index__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.1rem;
    background: rgba(44, 49, 58, 0.55);
    border: 1px solid var(--border-accent);
    border-radius: 8px;
}

.article-tag-index__search-wrap {
    flex: 1 1 0;
    min-width: 0;
    display: block;
    cursor: text;
}

/* 絶対配置は使わず、枠は flex 行にまとめる（モバイルでもアイコン位置がずれない） */
.article-tag-index__search-field {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 2.875rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-accent);
    border-radius: 6px;
    overflow: hidden;
}

.article-tag-index__search-field:focus-within {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 2px rgba(86, 182, 194, 0.25);
}

.article-tag-index__search-icon {
    flex: 0 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    opacity: 0.65;
    flex-shrink: 0;
}

.article-tag-index__search-icon-svg {
    display: block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.article-tag-index__search {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    min-height: 2.875rem;
    box-sizing: border-box;
    margin: 0;
    padding: 0 0.75rem 0 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.35;
    -webkit-appearance: none;
    appearance: none;
}

.article-tag-index__search:focus {
    outline: none;
}

.article-tag-index__sort-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.article-tag-index__sort-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.article-tag-index__sort {
    min-width: 11rem;
    height: 2.875rem;
    box-sizing: border-box;
    padding: 0 1.85rem 0 0.65rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-accent);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.35;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a0aec0'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.45rem center;
    background-size: 1.1rem;
}

.article-tag-index__empty-msg {
    color: var(--text-secondary);
    margin: 0 0 1rem;
    font-size: 0.95rem;
}

.article-tag-index__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.6rem;
    align-items: stretch;
}

.article-tag-index__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(156, 140, 220, 0.4);
    background: rgba(120, 98, 180, 0.12);
    color: rgba(220, 210, 255, 0.95);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.article-tag-index__chip:hover {
    background: rgba(120, 98, 180, 0.28);
    border-color: rgba(180, 160, 240, 0.55);
    color: var(--text-bright);
}

.article-tag-index__chip[hidden] {
    display: none !important;
}

.article-tag-index__chip-name {
    line-height: 1.25;
}

.article-tag-index__chip-count {
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0.85;
    padding: 0.12rem 0.4rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-secondary);
}

@media (max-width: 600px) {
    .article-tag-index__toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.75rem 0.85rem;
        margin-bottom: 1.1rem;
    }

    .article-tag-index__search-wrap {
        width: 100%;
    }

    .article-tag-index__sort-wrap {
        width: 100%;
        justify-content: space-between;
        gap: 0.4rem;
    }

    .article-tag-index__sort {
        flex: 1;
    }
}

/* === 動画レビュー レーベル一覧（/video-labels/） === */
.content-area.video-label-index-page {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.page-header--video-label-index .page-title {
    margin-bottom: 0.35rem;
}

.video-label-index__lead {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0 0 0.5rem;
}

.video-label-index__count {
    margin-left: 0.35rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

.video-label-index__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.1rem;
    background: rgba(44, 49, 58, 0.55);
    border: 1px solid var(--border-accent);
    border-radius: 8px;
}

.video-label-index__search-wrap {
    flex: 1 1 0;
    min-width: 0;
    display: block;
    cursor: text;
}

.video-label-index__search-field {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 2.875rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-accent);
    border-radius: 6px;
    overflow: hidden;
}

.video-label-index__search-field:focus-within {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 2px rgba(86, 182, 194, 0.25);
}

.video-label-index__search-icon {
    flex: 0 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    opacity: 0.65;
    flex-shrink: 0;
}

.video-label-index__search-icon-svg {
    display: block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.video-label-index__search {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    min-height: 2.875rem;
    box-sizing: border-box;
    margin: 0;
    padding: 0 0.75rem 0 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.35;
    -webkit-appearance: none;
    appearance: none;
}

.video-label-index__search:focus {
    outline: none;
}

.video-label-index__sort-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.video-label-index__sort-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.video-label-index__sort {
    min-width: 11rem;
    height: 2.875rem;
    box-sizing: border-box;
    padding: 0 1.85rem 0 0.65rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-accent);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.35;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a0aec0'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.45rem center;
    background-size: 1.1rem;
}

.video-label-index__empty-msg {
    color: var(--text-secondary);
    margin: 0 0 1rem;
    font-size: 0.95rem;
}

.video-label-index__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.6rem;
    align-items: stretch;
}

.video-label-index__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(156, 140, 220, 0.4);
    background: rgba(120, 98, 180, 0.12);
    color: rgba(220, 210, 255, 0.95);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.video-label-index__chip:hover {
    background: rgba(120, 98, 180, 0.28);
    border-color: rgba(180, 160, 240, 0.55);
    color: var(--text-bright);
}

.video-label-index__chip[hidden] {
    display: none !important;
}

.video-label-index__chip-name {
    line-height: 1.25;
}

.video-label-index__chip-count {
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0.85;
    padding: 0.12rem 0.4rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-secondary);
}

@media (max-width: 600px) {
    .video-label-index__toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.75rem 0.85rem;
        margin-bottom: 1.1rem;
    }

    .video-label-index__search-wrap {
        width: 100%;
    }

    .video-label-index__sort-wrap {
        width: 100%;
        justify-content: space-between;
        gap: 0.4rem;
    }

    .video-label-index__sort {
        flex: 1;
    }
}

/* === 検索フォーム（結果なし時） === */
.search-form-wrapper {
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-form-wrapper .search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form-wrapper .search-field {
    flex: 1;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-accent);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 4px;
}

.search-form-wrapper .search-field:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(86, 182, 194, 0.3);
}

/* === アーカイブアイテム（通常投稿用） === */
.archive-item {
    background-color: rgba(44, 49, 58, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-accent);
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 2rem;
}

.archive-item:hover {
    transform: translateY(-2px);
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-hover), var(--shadow-glow-blue);
}

.archive-item-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
}

.archive-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.archive-item:hover .archive-item-image img {
    transform: scale(1.05);
}

.archive-item-content {
    padding: 1.5rem;
}

.archive-item-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.archive-item-title a {
    color: var(--text-bright);
    transition: var(--transition);
}

.archive-item:hover .archive-item-title a {
    color: var(--accent-cyan);
}

.archive-item-meta {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.archive-item-excerpt {
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--accent-blue);
    font-weight: bold;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--accent-purple);
}

/* === 検索結果アイテム === */
.search-result-item {
    background-color: rgba(44, 49, 58, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-accent);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.search-result-item:hover {
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-hover);
}

.search-result-item h2 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.search-result-item h2 a {
    color: var(--text-bright);
    transition: var(--transition);
}

.search-result-item:hover h2 a {
    color: var(--accent-cyan);
}

.entry-excerpt {
    color: var(--text-primary);
    line-height: 1.8;
}

/* ============================================================
   検索結果ページ (srp-*)
   ============================================================ */

/* ── ヒーロー ── */
.srp-hero {
    background: linear-gradient(160deg,
        rgba(44, 49, 60, 0.95) 0%,
        rgba(30, 34, 43, 0.98) 100%);
    border-bottom: 1px solid var(--border-accent);
    padding: 3.5rem 1.5rem 3rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

/* 背景デコレーション */
.srp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 60% 80% at 50% 0%,
        rgba(86, 182, 194, 0.08) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.srp-hero__inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.srp-hero__eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent-cyan);
    margin: 0 0 0.75rem;
    text-transform: uppercase;
}

.srp-hero__title {
    font-size: clamp(1.6rem, 5vw, 2.6rem);
    font-weight: 900;
    line-height: 1.25;
    color: var(--text-bright);
    margin: 0 0 1rem;
    word-break: break-all;
}

.srp-hero__title-pre,
.srp-hero__title-suf {
    color: var(--text-secondary);
    font-weight: 400;
}

.srp-hero__query {
    color: var(--accent-cyan);
}

.srp-hero__count {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 2rem;
}

.srp-hero__count-num {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-right: 0.2rem;
}

.srp-hero__count-detail {
    display: block;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    color: var(--text-secondary);
}

/* ヒーロー内検索フォーム */
.srp-hero__form {
    display: flex;
    align-items: center;
    max-width: 540px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: 999px;
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.srp-hero__form:focus-within {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(86, 182, 194, 0.15);
}

.srp-hero__input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-bright);
    padding: 0.8rem 1.25rem;
    font-size: 0.95rem;
    min-width: 0;
}

.srp-hero__input::placeholder {
    color: var(--text-secondary);
}

.srp-hero__submit {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    border: none;
    color: #0d1117;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.65rem 1.25rem 0.65rem 1rem;
    margin: 0.3rem 0.3rem 0.3rem 0;
    border-radius: 999px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.srp-hero__submit:hover {
    opacity: 0.88;
    transform: translateX(1px);
}

/* ── 結果ラッパー ── */
.srp-results-wrap {
    max-width: var(--content-width, 1200px);
    margin: 0 auto;
    padding: 0 1.25rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* ── セクション ── */
.srp-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.srp-section__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-accent);
}

.srp-section__badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.65rem;
    border-radius: 4px;
    text-transform: uppercase;
    background: var(--border-accent);
    color: var(--text-secondary);
}

.srp-section__badge--review {
    background: rgba(97, 175, 239, 0.15);
    color: var(--accent-blue);
    border: 1px solid rgba(97, 175, 239, 0.3);
}

.srp-section__badge--article {
    background: rgba(86, 182, 194, 0.12);
    color: var(--accent-cyan);
    border: 1px solid rgba(86, 182, 194, 0.28);
}

.srp-section__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-bright);
    margin: 0;
    letter-spacing: 0.04em;
}

.srp-section__count {
    margin-left: auto;
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ── 記事カードグリッド ── */
.srp-article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* <a> 直接使用 と <article> ラッパー使用の両方に対応 */
.srp-article-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* 画像の transform は描画負荷でかくつくため、枠の発光のみ */
.srp-article-card:hover {
    border-color: rgba(86, 182, 194, 0.65);
    box-shadow:
        0 0 0 1px rgba(86, 182, 194, 0.35),
        0 0 20px rgba(86, 182, 194, 0.22),
        0 4px 24px rgba(0, 0, 0, 0.35);
}

/* <article> ラッパー内のフルカバーリンク */
.srp-article-card__link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.srp-article-card__thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-primary);
    flex-shrink: 0;
}

.srp-article-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.srp-article-card__no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    opacity: 0.35;
}

.srp-article-card__genre {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    background: rgba(86, 182, 194, 0.85);
    color: #0d1117;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.srp-article-card__body {
    flex: 1;
    padding: 0.875rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.srp-article-card__title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-bright);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.srp-article-card:hover .srp-article-card__title {
    color: var(--accent-cyan);
}

/* 日付 + 閲覧数 フッター行 */
.srp-article-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
}

.srp-article-card__date,
.srp-article-card__views {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin: 0;
}

.srp-article-card__views {
    flex-shrink: 0;
}

/* ── その他（汎用）リスト ── */
.srp-generic-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.srp-generic-item {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.875rem;
    row-gap: 0.25rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.25s, background 0.2s;
    align-items: start;
}

.srp-generic-item:hover {
    border-color: var(--accent-blue);
    background: rgba(97, 175, 239, 0.04);
}

.srp-generic-item__type {
    grid-row: 1 / 3;
    align-self: center;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    background: var(--border-accent);
    color: var(--text-secondary);
    white-space: nowrap;
}

.srp-generic-item__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-bright);
    margin: 0;
    transition: color 0.2s;
}

.srp-generic-item:hover .srp-generic-item__title {
    color: var(--accent-cyan);
}

.srp-generic-item__excerpt {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── ページネーション ── */
.srp-pagination {
    margin-top: 1rem;
}

.srp-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.srp-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-secondary);
    border: 1px solid var(--border-accent);
    background: var(--bg-card);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.srp-pagination .page-numbers:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.srp-pagination .page-numbers.current {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    border-color: transparent;
    color: #0d1117;
}

.srp-pagination .prev,
.srp-pagination .next {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0 0.9rem;
    font-size: 0.8rem;
}

/* ── 検索結果ゼロ ── */
.srp-empty {
    max-width: 560px;
    margin: 3rem auto 5rem;
    padding: 0 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.srp-empty__icon {
    color: var(--text-secondary);
    opacity: 0.4;
}

.srp-empty__title {
    font-size: clamp(1rem, 3vw, 1.3rem);
    font-weight: 700;
    color: var(--text-bright);
    margin: 0;
    line-height: 1.5;
}

.srp-empty__title span {
    color: var(--accent-cyan);
}

.srp-empty__text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

.srp-empty__tips {
    list-style: none;
    padding: 1rem 1.5rem;
    margin: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: 8px;
    text-align: left;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.srp-empty__tips li {
    font-size: 0.83rem;
    color: var(--text-secondary);
    padding-left: 1.25rem;
    position: relative;
}

.srp-empty__tips li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: 700;
}

.srp-empty__form {
    display: flex;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: 999px;
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.srp-empty__form:focus-within {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(86, 182, 194, 0.15);
}

.srp-empty__input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-bright);
    padding: 0.8rem 1.25rem;
    font-size: 0.9rem;
    min-width: 0;
}

.srp-empty__input::placeholder {
    color: var(--text-secondary);
}

.srp-empty__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    background: var(--accent-cyan);
    border: none;
    color: #0d1117;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.srp-empty__submit:hover {
    background: var(--accent-blue);
    color: var(--text-bright);
}

/* ── レスポンシブ ── */
@media (max-width: 899px) {
    .srp-article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 599px) {
    .srp-hero {
        padding: 2.5rem 1rem 2rem;
        margin-bottom: 2rem;
    }
    .srp-hero__submit span {
        display: none;
    }
    .srp-hero__submit {
        padding: 0.65rem 0.875rem;
        gap: 0;
    }
    .srp-results-wrap {
        padding: 0 1rem 3rem;
        gap: 2rem;
    }
    .srp-article-grid {
        grid-template-columns: 1fr;
    }
    .srp-generic-item {
        grid-template-columns: 1fr;
    }
    .srp-generic-item__type {
        grid-row: auto;
    }
}

/* === レスポンシブ対応 === */
@media (max-width: 1023px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .video-review-content,
    .filter-bar {
        padding: 1rem;
    }
    .page-title    { font-size: 1.4rem; }
    .page-header   { padding: 1.25rem 1rem; }
    .page-subtitle { font-size: 0.85rem; }
}

@media (max-width: 479px) {
    .video-review-content { padding: 0.875rem; }
    .page-title            { font-size: 1.25rem; }
}

/* === アニメーション === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-card {
    animation: fadeIn 0.3s ease-out;
}

/* === 画像遅延読み込み（カード内・履歴ウィジェットは除外） === */
img[loading="lazy"]:not(.video-card-image img):not(.history-widget__thumb) {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

img[loading="lazy"].loaded:not(.video-card-image img):not(.history-widget__thumb) {
    opacity: 1;
}

/* カード内の lazy 画像は opacity ではなくロード完了後に即表示
   → transform アニメーションとの transition 競合を防ぐ */
.video-card-image img[loading="lazy"] {
    opacity: 1;
}
.video-card-image img[loading="lazy"]:not(.loaded) {
    opacity: 0;
}

/* === コメントセクション（余白・リズムを整理） === */
.comments-area,
#comments.comments-area {
    margin-top: clamp(2.75rem, 6vw, 4.5rem);
    padding-top: clamp(2rem, 4vw, 3rem);
    padding-left: clamp(0.5rem, 2vw, 0);
    padding-right: clamp(0.5rem, 2vw, 0);
    border-top: 1px solid var(--border-accent);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.comments-area__header {
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.comments-title {
    color: var(--text-bright);
    font-size: clamp(1.15rem, 2.5vw, 1.35rem);
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.03em;
    line-height: 1.4;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-accent);
    position: relative;
}

.comments-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 4rem;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
    border-radius: 1px;
}

/* 一覧 */
.comment-list {
    list-style: none;
    margin: 0 0 clamp(2rem, 4vw, 2.75rem);
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2.5vw, 1.5rem);
}

.comment-list .children {
    list-style: none;
    margin: clamp(1rem, 2.5vw, 1.35rem) 0 0 0;
    padding: 0 0 0 clamp(0.85rem, 3vw, 1.5rem);
    border-left: 2px solid rgba(86, 182, 194, 0.25);
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2.5vw, 1.25rem);
}

.comment-list .comment,
.comment-list .pingback,
.comment-list .trackback {
    background: linear-gradient(160deg, rgba(38, 42, 52, 0.65) 0%, rgba(30, 33, 40, 0.85) 100%);
    border: 1px solid var(--border-accent);
    border-radius: 10px;
    padding: clamp(1.1rem, 2.5vw, 1.5rem);
    margin: 0;
}

.comment-body {
    position: relative;
}

.comment-meta {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
    line-height: 1.5;
}

.comment-meta .avatar {
    float: left;
    margin: 0 0.85rem 0.35rem 0;
    border-radius: 50%;
    border: 2px solid var(--border-accent);
}

.comment-author .fn,
.comment-author .fn a {
    color: var(--accent-cyan);
    font-weight: 700;
    font-style: normal;
    text-decoration: none;
}

.comment-author .fn a:hover {
    text-decoration: underline;
}

.comment-metadata {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
}

.comment-metadata a {
    color: var(--text-secondary);
    text-decoration: none;
}

.comment-metadata a:hover {
    color: var(--accent-cyan);
}

.comment-content {
    color: var(--text-primary);
    line-height: 1.85;
    font-size: 0.92rem;
    clear: both;
    padding-top: 0.15rem;
}

.comment-content > *:first-child {
    margin-top: 0;
}

.comment-content > *:last-child {
    margin-bottom: 0;
}

.reply {
    margin-top: clamp(0.85rem, 2vw, 1.1rem);
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-accent);
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--accent-blue);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.35rem 0;
}

.comment-reply-link:hover {
    color: var(--accent-cyan);
}

.comments-navigation {
    margin: 0 0 clamp(2rem, 4vw, 2.5rem);
    padding: 0.75rem 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.comments-navigation a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
}

.comments-navigation a:hover {
    text-decoration: underline;
}

.comments-closed {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0 0 1.5rem;
    padding: 1rem 1.15rem;
    background: rgba(33, 37, 43, 0.6);
    border-radius: 8px;
    border: 1px solid var(--border-accent);
}

/* 返信フォーム (#respond) */
#respond {
    margin-top: clamp(2rem, 4vw, 2.75rem);
    padding: clamp(1.35rem, 3vw, 2rem) clamp(1.15rem, 3vw, 1.75rem);
    background: linear-gradient(160deg, rgba(38, 42, 52, 0.95) 0%, rgba(28, 31, 38, 0.98) 100%);
    border-radius: 12px;
    border: 1px solid var(--border-accent);
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.28);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#reply-title,
#respond #reply-title {
    color: var(--text-bright);
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
    font-weight: 700;
    margin: 0 0 clamp(1.25rem, 3vw, 1.75rem);
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--border-accent);
    letter-spacing: 0.02em;
}

.comment-form > p {
    margin: 0 0 clamp(1.1rem, 2.5vw, 1.4rem);
}

.comment-form > p:last-child,
.comment-form > .form-submit {
    margin-bottom: 0;
}

.comment-form .logged-in-as {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.75;
    margin-bottom: clamp(1rem, 2.5vw, 1.35rem) !important;
}

.comment-form .logged-in-as .logout {
    display: inline-block;
    margin-top: 0.15em;
}

.comment-form .logged-in-as a {
    color: var(--accent-cyan);
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin-bottom: 0;
}

.comment-form label {
    display: block;
    color: var(--text-bright);
    font-weight: 600;
    margin-bottom: 0.45rem;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.comment-form .required {
    color: var(--accent-cyan);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    box-sizing: border-box;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-accent);
    color: var(--text-primary);
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.92rem;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-form textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.75;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(86, 182, 194, 0.15);
}

.comment-notes {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.65;
    margin-bottom: clamp(1rem, 2.5vw, 1.35rem) !important;
}

.form-submit {
    margin-top: clamp(1.25rem, 3vw, 1.6rem) !important;
    padding-top: 0 !important;
}

.form-submit input[type="submit"],
.comment-submit-btn {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
    color: var(--text-bright);
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: box-shadow 0.2s ease, opacity 0.2s ease;
}

.form-submit input[type="submit"]:hover,
.comment-submit-btn:hover {
    opacity: 0.92;
    box-shadow: 0 0 0 1px rgba(86, 182, 194, 0.4), 0 4px 20px rgba(86, 182, 194, 0.2);
}

@media (min-width: 640px) {
    .comment-form .comment-form-author,
    .comment-form .comment-form-email,
    .comment-form .comment-form-url {
        max-width: 100%;
    }
}

/* === SNS共有：ボタン共通 (.share-btn) / 枠は .social-share-buttons--panel === */

.share-buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    min-width: 130px;           /* 折り返し時もテキストが潰れない最低幅 */
    border: 2px solid var(--border-accent);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(44, 49, 60, 0.8) 0%, rgba(33, 37, 43, 0.8) 100%);
    color: var(--text-bright);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: bold;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

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

.share-btn svg {
    flex-shrink: 0;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-twitter {
    border-color: #1da1f2;
}

.share-twitter:hover {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
    border-color: #1da1f2;
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.4);
}

.share-facebook {
    border-color: #1877f2;
}

.share-facebook:hover {
    background: linear-gradient(135deg, #1877f2 0%, #0e5fc7 100%);
    border-color: #1877f2;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.share-line {
    border-color: #06c755;
}

.share-line:hover {
    background: linear-gradient(135deg, #06c755 0%, #05a344 100%);
    border-color: #06c755;
    box-shadow: 0 4px 12px rgba(6, 199, 85, 0.4);
}

.share-hatena {
    border-color: #00a4de;
}

.share-hatena:hover {
    background: linear-gradient(135deg, #00a4de 0%, #0084b8 100%);
    border-color: #00a4de;
    box-shadow: 0 4px 12px rgba(0, 164, 222, 0.4);
}

.share-copy {
    border-color: var(--accent-purple);
}

.share-copy:hover {
    background: linear-gradient(135deg, var(--accent-purple) 0%, #a563bd 100%);
    border-color: var(--accent-purple);
    box-shadow: 0 4px 12px rgba(198, 120, 221, 0.4);
}

.copy-notification {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--accent-green) 0%, #7aa75f 100%);
    color: var(--text-bright);
    text-align: center;
    border-radius: 4px;
    font-weight: bold;
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* レスポンシブ対応 */
/* share-buttons レスポンシブ → main.css末尾のグローバルブロックに統合済み */

/* ============================================================
   年齢確認モーダル
   ============================================================ */
.age-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(10, 12, 16, 0.97);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: opacity 0.4s ease;
}

.age-overlay--hide {
    opacity: 0;
    pointer-events: none;
}

.age-modal {
    background: linear-gradient(145deg, rgba(40, 44, 52, 0.98) 0%, rgba(33, 37, 43, 0.98) 100%);
    border: 1px solid var(--border-accent);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(86, 182, 194, 0.08);
    animation: ageModalIn 0.35s cubic-bezier(0.34, 1.3, 0.64, 1);
}

@keyframes ageModalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.age-modal-logo {
    margin-bottom: 1.5rem;
}

.age-modal-site-name {
    font-size: 1.1rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.age-modal-icon {
    color: var(--accent-yellow);
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.age-modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-bright);
    margin-bottom: 1rem;
}

.age-modal-body {
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
}

.age-modal-body strong {
    color: var(--accent-red);
    font-weight: bold;
}

.age-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.age-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.age-btn:hover {
    transform: translateY(-2px);
}

.age-btn-yes {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
    color: var(--bg-primary);
}

.age-btn-yes:hover {
    box-shadow: 0 6px 20px rgba(97, 175, 239, 0.4);
}

.age-btn-no {
    background: rgba(62, 68, 81, 0.8);
    color: var(--text-secondary);
    border: 1px solid var(--border-accent);
}

.age-btn-no:hover {
    background: rgba(224, 108, 117, 0.15);
    color: var(--accent-red);
    border-color: var(--accent-red);
    box-shadow: 0 4px 12px rgba(224, 108, 117, 0.2);
}

.age-modal-notice {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.age-modal-notice a {
    color: var(--accent-cyan);
    text-decoration: underline;
}

/* age-modal レスポンシブ → main.css末尾のグローバルブロックに統合済み */

/* ============================================================
   作品カード [dmm_card]
   ============================================================ */
.work-item {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 0.875rem;
    background: linear-gradient(135deg, rgba(44, 49, 58, 0.95) 0%, rgba(33, 37, 43, 0.95) 100%);
    border: 1px solid var(--border-accent);
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
    padding: 0.875rem;
    transition: border-color 0.25s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow);
}

.work-item:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-hover), var(--shadow-glow-blue);
}

.work-item.new-release {
    border-color: rgba(229, 192, 123, 0.4);
}

/* 画像エリア（4:6レイアウトの4側・元のアスペクト比で表示） */
.work-image {
    position: relative;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-tertiary);
    align-self: start;
}

.work-image img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
}

.work-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
}

/* バッジ（タイトル前の新作バッジ） */
.work-badge--title {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 0.15em 0.45em;
    border-radius: 4px;
    line-height: 1.4;
    margin-right: 0.5em;
    vertical-align: middle;
}

.work-badge--title.new-icon {
    background: var(--accent-blue);
    color: #fff;
}

/* 情報エリア */
.work-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.work-title h3 {
    font-size: 1.05rem;
    font-weight: bold;
    color: var(--text-bright);
    margin: 0;
    line-height: 1.4;
}

.work-title h3 a {
    color: inherit;
    text-decoration: none;
}

.work-review {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.work-score {
    font-weight: bold;
    color: var(--accent-yellow);
    font-size: 0.9rem;
}

.work-detail {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.content-author span,
.content-info span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.content-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.work-price {
    color: var(--accent-green);
    font-weight: bold;
}

.work-genre .genre-content {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.work-genre .genre-content span {
    font-size: 0.72rem;
    padding: 0.15em 0.6em;
    border-radius: 12px;
    background: rgba(198, 120, 221, 0.12);
    color: var(--accent-purple);
    border: 1px solid rgba(198, 120, 221, 0.3);
}

/* CTAボタン */
.work-cta {
    margin-top: auto;
    padding-top: 0.5rem;
}

.btn-dmm-buy {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.25rem;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-cyan) 100%);
    color: var(--bg-primary) !important;
    font-weight: bold;
    font-size: 0.875rem;
    border-radius: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none !important;
}

.btn-dmm-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(152, 195, 121, 0.4);
    color: var(--bg-primary) !important;
}

.work-affiliate-notice {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
}

/* エラー / プレースホルダー */
.dmm-card-error {
    padding: 0.75rem 1rem;
    background: rgba(224, 108, 117, 0.1);
    border: 1px solid var(--accent-red);
    border-radius: 6px;
    color: var(--accent-red);
    font-size: 0.875rem;
    margin: 1rem 0;
}

.dmm-card-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem;
    background: rgba(44, 49, 58, 0.6);
    border: 1px dashed var(--border-accent);
    border-radius: 8px;
    color: var(--text-secondary);
    text-align: center;
    margin: 1rem 0;
}

/* レスポンシブ */
@media (max-width: 640px) {
    .work-item {
        grid-template-columns: 2fr 3fr;
        gap: 0.75rem;
        padding: 0.875rem;
    }
}

@media (max-width: 479px) {
    .work-item {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
    /* 画像リンク（第1グリッドアイテム）を上段に固定・中央揃え */
    .work-item > a:first-child {
        grid-row: 1;
        display: flex;
        justify-content: center;
    }
    /* テキストエリアを下段に固定 */
    .work-item > .work-info {
        grid-row: 2;
    }
    .work-image {
        max-width: 200px;
        width: 100%;
        margin: 0;
    }
}

/* ============================================================
   関連記事タブ（記事は srp-article-card と同一デザイン）
   ============================================================ */
.related-posts-section {
    margin: 2.5rem 0;
    background: linear-gradient(160deg, rgba(38, 42, 52, 0.98) 0%, rgba(28, 31, 38, 0.98) 100%);
    border-radius: 12px;
    border: 1px solid var(--border-accent);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.related-tabs-nav {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 1px solid var(--border-accent);
    background: rgba(22, 25, 31, 0.85);
    padding: 0 0.25rem;
}

.related-tabs-nav::-webkit-scrollbar {
    display: none;
}

.related-tab-btn {
    flex-shrink: 0;
    padding: 0.85rem 1.15rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.related-tab-btn:hover {
    color: var(--text-bright);
    background: rgba(86, 182, 194, 0.06);
}

.related-tab-btn.active {
    color: var(--accent-cyan);
    border-bottom-color: var(--accent-cyan);
    background: rgba(86, 182, 194, 0.08);
}

.related-tab-panel {
    display: none;
    padding: 1.35rem 1.25rem 1.5rem;
}

.related-tab-panel.active {
    display: block;
    animation: fadeIn 0.25s ease-out;
}

/* レビュー等：従来の縦長カード用 4カラム */
.related-tab-panel .video-reviews-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

/* 記事：srp-article-card グリッド（3列ベース、パネル内に合わせて調整） */
.related-tab-panel .related-article-grid.srp-article-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 1023px) {
    .related-tab-panel .video-reviews-grid { grid-template-columns: repeat(3, 1fr); }
    .related-tab-panel .related-article-grid.srp-article-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .related-tab-panel .video-reviews-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
    .related-tab-panel .related-article-grid.srp-article-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .related-tab-panel { padding: 1rem 0.85rem 1.15rem; }
}
@media (max-width: 479px) {
    .related-tab-panel .video-reviews-grid { grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
    .related-tab-panel .related-article-grid.srp-article-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   フロントページ（全面リニューアル）
   ============================================================ */

/* ── ラッパー ── */
.fp-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px 5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ── セクション共通 ── */
.fp-section {
    width: 100%;
}

.fp-section-inner {
    background: linear-gradient(145deg, rgba(33,37,43,0.95) 0%, rgba(40,44,52,0.95) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 4px 32px rgba(0,0,0,0.45);
    padding: 1.75rem 2rem;
}

/* ── セクションヘッダー ── */
.fp-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.fp-section-head__left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fp-section-head__accent {
    display: block;
    width: 4px;
    height: 1.4em;
    border-radius: 2px;
    flex-shrink: 0;
}
.fp-section-head__accent--review  { background: var(--accent-purple); box-shadow: 0 0 8px rgba(198,120,221,0.6); }
.fp-section-head__accent--article { background: var(--accent-blue);   box-shadow: 0 0 8px rgba(97,175,239,0.6); }
.fp-section-head__accent--newface { background: var(--accent-cyan);    box-shadow: 0 0 8px rgba(86,182,194,0.6); }

.fp-section-head__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.04em;
    color: var(--text-primary);
}

/* ── もっと見るボタン ── */
.fp-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.9rem 0.35rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-secondary);
    background: rgba(255,255,255,0.04);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
}
.fp-more-btn--review:hover  { color: var(--accent-purple); border-color: var(--accent-purple); background: rgba(198,120,221,0.08); }
.fp-more-btn--article:hover { color: var(--accent-blue);   border-color: var(--accent-blue);   background: rgba(97,175,239,0.08); }
.fp-more-btn--newface:hover { color: var(--accent-cyan);    border-color: var(--accent-cyan);    background: rgba(86,182,194,0.08); }

.fp-empty {
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem;
}

/* ── 記事グリッド（互換） ── */
.fp-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* ════════════════════════════════════════
   クイックナビ
   ════════════════════════════════════════ */
.fp-quicknav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.fp-qn-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.1rem 1.25rem 1.25rem;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(145deg, rgba(33,37,43,0.96) 0%, rgba(40,44,52,0.96) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s cubic-bezier(0.34,1.3,0.64,1);
    text-decoration: none;
}

.fp-qn-card:hover {
    transform: translateY(-3px);
    text-decoration: none;
}

/* グロー背景（色は各カード） */
.fp-qn-card__glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    border-radius: inherit;
}
.fp-qn-card:hover .fp-qn-card__glow { opacity: 1; }

/* カラー定義 */
.fp-qn-card--review  { --qn-color: var(--accent-purple); }
.fp-qn-card--newface { --qn-color: var(--accent-cyan); }
.fp-qn-card--article { --qn-color: var(--accent-blue); }

.fp-qn-card--review:hover  { border-color: rgba(198,120,221,0.55); box-shadow: 0 6px 28px rgba(198,120,221,0.18), 0 2px 8px rgba(0,0,0,0.4); }
.fp-qn-card--newface:hover { border-color: rgba(86,182,194,0.55);  box-shadow: 0 6px 28px rgba(86,182,194,0.18), 0 2px 8px rgba(0,0,0,0.4); }
.fp-qn-card--article:hover { border-color: rgba(97,175,239,0.55);  box-shadow: 0 6px 28px rgba(97,175,239,0.18), 0 2px 8px rgba(0,0,0,0.4); }

.fp-qn-card--review  .fp-qn-card__glow { background: radial-gradient(ellipse at 0% 50%, rgba(198,120,221,0.12) 0%, transparent 70%); }
.fp-qn-card--newface .fp-qn-card__glow { background: radial-gradient(ellipse at 0% 50%, rgba(86,182,194,0.12) 0%, transparent 70%); }
.fp-qn-card--article .fp-qn-card__glow { background: radial-gradient(ellipse at 0% 50%, rgba(97,175,239,0.12) 0%, transparent 70%); }

.fp-qn-card__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    color: var(--qn-color);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.06);
    transition: background 0.25s;
}
.fp-qn-card--review:hover  .fp-qn-card__icon { background: rgba(198,120,221,0.15); }
.fp-qn-card--newface:hover .fp-qn-card__icon { background: rgba(86,182,194,0.15); }
.fp-qn-card--article:hover .fp-qn-card__icon { background: rgba(97,175,239,0.15); }

.fp-qn-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    flex: 1;
}

.fp-qn-card__label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--qn-color);
    opacity: 0.85;
}

.fp-qn-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    display: block;
    line-height: 1.3;
}

.fp-qn-card__desc {
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: block;
}

.fp-qn-card__arrow {
    flex-shrink: 0;
    color: var(--text-secondary);
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.2s;
}
.fp-qn-card:hover .fp-qn-card__arrow {
    opacity: 1;
    color: var(--qn-color);
    transform: translateX(3px);
}

.fp-qn-card__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--qn-color);
    border: 1px solid var(--qn-color);
    border-radius: 4px;
    padding: 1px 5px;
    line-height: 1.4;
    animation: fp-badge-pulse 2.4s ease-in-out infinite;
}

@keyframes fp-badge-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.45; }
}

/* ════════════════════════════════════════
   ランキング2カラム行
   ════════════════════════════════════════ */
.fp-ranking-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: start;
}

/* ── ランキングリスト ── */
.fp-rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fp-rank-item {
    border-radius: 8px;
    overflow: hidden;
    transition: background 0.2s;
}

.fp-rank-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.025);
    transition: background 0.2s, border-color 0.2s;
    text-decoration: none;
}

.fp-section--review  .fp-rank-link:hover { background: rgba(198,120,221,0.07); border-color: rgba(198,120,221,0.3); }
.fp-section--article .fp-rank-link:hover { background: rgba(97,175,239,0.07);  border-color: rgba(97,175,239,0.3); }

.fp-rank-num {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
}
.fp-rank-num--1 { background: linear-gradient(135deg,#e5c07b,#d19a66); color: #1e1e1e; box-shadow: 0 2px 8px rgba(229,192,123,0.4); }
.fp-rank-num--2 { background: linear-gradient(135deg,#abb2bf,#7e8694); color: #1e1e1e; }
.fp-rank-num--3 { background: linear-gradient(135deg,#c678dd,#9956b5); color: #fff; }
.fp-rank-num--n { background: rgba(255,255,255,0.08); color: var(--text-secondary); }

.fp-rank-thumb {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 5px;
    overflow: hidden;
    background: var(--bg-tertiary);
}
.fp-rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.fp-rank-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0 0 0.2rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.fp-rank-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.fp-rank-star {
    color: var(--accent-yellow);
    font-weight: 700;
}

/* ----- 投稿カード ----- */
.post-card {
    background: linear-gradient(135deg, rgba(44, 49, 58, 0.85) 0%, rgba(40, 44, 52, 0.85) 100%);
    border-radius: 8px;
    border: 1px solid var(--border-accent);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    will-change: transform;
    transform: translateZ(0);
    transition:
        transform 0.3s cubic-bezier(0.34, 1.3, 0.64, 1),
        border-color 0.25s ease,
        box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px) translateZ(0);
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-hover), var(--shadow-glow-blue);
}

/* サムネイル */
.post-card-link {
    display: block;
    overflow: hidden;
}

.post-card-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    transform: translateZ(0);
    will-change: transform;
}

.post-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.post-card:hover .post-card-thumbnail img {
    transform: scale3d(1.06, 1.06, 1);
}

.post-card-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
}

/* カード本文 */
.post-card-body {
    padding: 1rem 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5rem;
}

/* メタ情報 */
.post-card-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.post-card-date {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.post-card-cat {
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--accent-blue);
    background: rgba(97, 175, 239, 0.12);
    border: 1px solid rgba(97, 175, 239, 0.3);
    padding: 0.1em 0.55em;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}

.post-card-cat:hover {
    background: rgba(97, 175, 239, 0.25);
    color: var(--accent-cyan);
}

/* タイトル */
.post-card-title {
    font-size: 0.975rem;
    font-weight: bold;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-title a {
    color: var(--text-bright);
    transition: color 0.2s ease;
}

.post-card:hover .post-card-title a {
    color: var(--accent-cyan);
}

/* 抜粋 */
.post-card-excerpt {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    flex: 1;
}

/* 続きを読む */
.post-card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--accent-blue);
    margin-top: auto;
    transition: color 0.2s ease, gap 0.2s ease;
}

.post-card-read-more:hover {
    color: var(--accent-cyan);
    gap: 0.4rem;
}

/* ── フロントページ レスポンシブ ── */
@media (max-width: 1023px) {
    .fp-quicknav        { grid-template-columns: repeat(2, 1fr); }
    .fp-posts-grid      { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .fp-wrapper         { padding: 1rem 16px 3rem; gap: 1.25rem; }
    .fp-section-inner   { padding: 1.25rem 1rem; }
    .fp-section-head__title { font-size: 1.05rem; }
    .fp-posts-grid      { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .fp-ranking-row     { grid-template-columns: 1fr; }
    .fp-quicknav        { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .fp-qn-card         { padding: 1rem; }
    .fp-qn-card__icon   { width: 42px; height: 42px; }
    .fp-qn-card__title  { font-size: 0.9rem; }
    .fp-qn-card__desc   { display: none; }
}

@media (max-width: 479px) {
    .fp-wrapper         { padding: 0.75rem 12px 2.5rem; gap: 1rem; }
    .fp-section-inner   { padding: 1rem 0.875rem; }
    .fp-quicknav        { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
    .fp-qn-card         { padding: 0.875rem 0.75rem; gap: 0.65rem; }
    .fp-qn-card__icon   { width: 36px; height: 36px; border-radius: 9px; }
    .fp-qn-card__icon svg { width: 20px; height: 20px; }
    .fp-qn-card__label  { font-size: 0.6rem; }
    .fp-qn-card__title  { font-size: 0.85rem; }
    .fp-qn-card__arrow  { display: none; }
    .fp-posts-grid      { grid-template-columns: 1fr; gap: 0.5rem; }
    .fp-rank-thumb      { width: 40px; height: 40px; }
}

/* ============================================
   editorial-label（ランキング・比較バッジ）
   ============================================ */
.editorial-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25em 0.75em;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.editorial-label-ranking {
    background: rgba(229, 192, 123, 0.15);
    color: var(--accent-yellow);
    border: 1px solid rgba(229, 192, 123, 0.35);
}

.editorial-label-compare {
    background: rgba(97, 175, 239, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(97, 175, 239, 0.35);
}

/* ============================================
   single-editorial（ランキング・比較個別ページ）
   ============================================ */
.single-editorial .editorial-header {
    margin-bottom: 1.5rem;
}

.single-editorial .editorial-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    margin: 0.6rem 0 0.75rem;
}

.single-editorial .editorial-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.single-editorial .editorial-meta time,
.single-editorial .editorial-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.single-editorial .editorial-updated {
    color: var(--accent-cyan);
}

.single-editorial .editorial-thumbnail {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.single-editorial .editorial-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.single-editorial .editorial-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* ============================================
   フロントページ：editorial アイテム（他テンプレート流用）
   ============================================ */

.fp-editorial-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 4px;
    overflow: hidden;
}

.fp-editorial-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fp-editorial-info {
    flex: 1;
    min-width: 0;
}

.fp-editorial-title {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.45;
    margin: 0 0 0.25rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--text-primary);
}

.fp-editorial-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
}


/* ============================================================
   レビュー・記事 コンテンツ幅（960px）
   ============================================================ */
.content-area.single-video-review,
.content-area.single-blog-post,
.content-area.single-editorial {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   記事 個別ページ（single-article.php）
   ============================================================ */
.single-blog-post {
    max-width: 100%;
}

/* ============================================================
   記事 ヒーロー（サムネイル + タイトルオーバーレイ）
   ============================================================ */

/* コンテナ：aspect-ratio で高さを固定（21/8 より少し高め＝21/9） */
.blog-single__hero {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 10;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.75rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55), var(--shadow);
    background: var(--bg-secondary);
    /* hover で画像がゆっくりズームするためのコンテキスト */
}

/* サムネイル画像（絶対配置でコンテナを完全に覆う） */
.blog-single__hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-single__hero:hover .blog-single__hero-img {
    transform: scale(1.03);
}

/* シネマティックスクリム（ビネット + 底部スクリム の多重グラデーション） */
.blog-single__hero-overlay {
    position: absolute;
    inset: 0;
    background:
        /* 四隅ビネット：奥行きと立体感 */
        radial-gradient(ellipse at center, transparent 30%, rgba(3, 4, 12, 0.52) 100%),
        /* 底部スクリム：タイトルを読みやすく */
        linear-gradient(
            to bottom,
            rgba(3, 4, 12, 0.50)  0%,
            rgba(3, 4, 12, 0.0)   24%,
            rgba(3, 4, 12, 0.0)   40%,
            rgba(3, 4, 12, 0.58)  63%,
            rgba(3, 4, 12, 0.97)  100%
        );
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.3rem 1.9rem 1.7rem;
}

/* バッジ行（画像の左上） */
.blog-single__hero-badge-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
}

/* タイトルエリア（画像の左下） */
.blog-single__hero-title-wrap {
    display: flex;
    flex-direction: column;
}

/* 区切り線：タイトルとメタ情報の間 */
.blog-single__hero-divider {
    height: 1px;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0.16) 45%,
        transparent 100%
    );
    margin: 0.65rem 0 0.55rem;
}

/* ヒーロー内タイトル */
.blog-single__hero .blog-single__title {
    font-size: clamp(1.25rem, 3vw, 2rem);
    color: #fff;
    line-height: 1.38;
    margin: 0 0 0.55rem;
    letter-spacing: -0.01em;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.99),
        0 3px 10px rgba(0, 0, 0, 0.82),
        0 8px 28px rgba(0, 0, 0, 0.55);
}

/* ヒーロー内バッジ：アウトライン + frosted glass */
.blog-single__hero .blog-single__badge {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.22rem 0.7rem;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    margin-bottom: 0;
}

.blog-single__hero .blog-single__badge--article {
    background: rgba(229, 192, 123, 0.18);
    border-color: rgba(229, 192, 123, 0.55);
    color: rgba(242, 215, 158, 0.95);
}

/* ヒーロー内メタ情報（日付・読了時間） */
.blog-single__hero-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 0.85rem;
}

.blog-single__hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.52);
    letter-spacing: 0.025em;
}

.blog-single__hero-meta-item svg {
    opacity: 0.55;
    flex-shrink: 0;
}

/* ヒーロー内ジャンル・カテゴリータグ */
.blog-single__hero-meta-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: rgba(160, 228, 235, 0.92);
    padding: 0.12rem 0.5rem;
    border: 1px solid rgba(86, 182, 194, 0.38);
    border-radius: 3px;
    background: rgba(86, 182, 194, 0.1);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.blog-single__hero-meta-tag:hover {
    background: rgba(86, 182, 194, 0.25);
    color: rgba(200, 245, 248, 1);
}

/* 記事本文末尾のタグ（single-article.php） */
.article-single__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.65rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(86, 182, 194, 0.22);
}

.article-single__tags-label {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(170, 188, 215, 0.88);
}

.article-single__tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.5rem;
}

.article-single__tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(210, 196, 255, 0.95);
    padding: 0.2rem 0.55rem;
    border: 1px solid rgba(156, 140, 220, 0.45);
    border-radius: 3px;
    background: rgba(120, 98, 180, 0.14);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.article-single__tag:hover {
    background: rgba(120, 98, 180, 0.28);
    color: rgba(230, 220, 255, 1);
}

/* サムネイルなし：斜線テクスチャ + ソフトグロー */
.blog-single__hero--no-thumb {
    background:
        repeating-linear-gradient(
            -45deg,
            rgba(86, 182, 194, 0.025) 0px,
            rgba(86, 182, 194, 0.025) 1px,
            transparent 1px,
            transparent 22px
        ),
        radial-gradient(ellipse at 18% 60%, rgba(86, 182, 194, 0.1) 0%, transparent 55%),
        radial-gradient(ellipse at 83% 40%, rgba(198, 120, 221, 0.07) 0%, transparent 50%),
        linear-gradient(135deg, rgba(14, 17, 28, 1) 0%, rgba(22, 27, 44, 1) 100%);
}

.blog-single__hero--no-thumb .blog-single__hero-overlay {
    background:
        radial-gradient(ellipse at center, transparent 40%, rgba(3, 4, 12, 0.38) 100%),
        linear-gradient(
            to bottom,
            rgba(3, 4, 12, 0.08)  0%,
            rgba(3, 4, 12, 0.0)   35%,
            rgba(3, 4, 12, 0.5)   100%
        );
}

/* タイトルブロック（下位互換用・通常は非表示） */
.blog-single__title-block {
    display: none;
}

/* メタ情報ブロック */
.blog-single__header {
    margin-bottom: 1.75rem;
}

/* タイプバッジ（ヒーロー外で使用する場合） */
.blog-single__badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.65rem;
    border-radius: 4px;
    margin-bottom: 0.65rem;
}

.blog-single__badge--article { background: var(--accent-yellow); color: var(--bg-primary); }

/* タイトル（ヒーロー外のフォールバック） */
.blog-single__title {
    font-size: clamp(1.1rem, 2.4vw, 1.5rem);
    font-weight: 700;
    line-height: 1.5;
    color: var(--text-bright);
    margin: 0 0 0.9rem;
}

/* メタ行 */
.blog-single__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
}

.blog-single__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* カテゴリー・タグバッジ */
.blog-single__tag {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.15rem 0.6rem;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid var(--border-accent);
    background: var(--bg-hover);
    color: var(--text-primary);
    transition: background 0.2s, color 0.2s;
}

.blog-single__tag:hover {
    background: var(--accent-purple);
    color: var(--text-bright);
    border-color: var(--accent-purple);
}

.blog-single__tag--cat {
    background: rgba(var(--accent-cyan-rgb, 86,182,194), 0.15);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.blog-single__tag--cat:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
}

/* 本文エリア */
.blog-single__body {
    margin-bottom: 2rem;
}

/* ビュー数バッジ（記事一覧カード） */
.post-card-views {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.72rem;
    color: var(--text-secondary);
}

@media (max-width: 767px) {
    .blog-single__hero {
        aspect-ratio: 16 / 10;
        border-radius: 8px;
    }
    .blog-single__hero .blog-single__title {
        font-size: clamp(1.05rem, 4.5vw, 1.4rem);
    }
    .blog-single__hero-overlay {
        padding: 0.9rem 1.1rem 1.2rem;
    }
    .blog-single__hero-divider {
        margin: 0.45rem 0 0.4rem;
    }
    .blog-single__hero-meta-item {
        font-size: 0.67rem;
    }
}

@media (max-width: 479px) {
    .blog-single__hero {
        aspect-ratio: 5 / 4;
    }
}

/* ============================================================
   静的ページ共通（プライバシーポリシー・お問い合わせ等）
   ============================================================ */
.static-page-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

.static-page-header {
    border-bottom: 1px solid var(--border-accent);
    padding-bottom: 1.25rem;
    margin-bottom: 2rem;
}

.static-page-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.static-page-updated {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

.static-page-lead {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0.5rem 0 0;
}

.static-page-content {
    line-height: 1.9;
    color: var(--text-primary);
}

.static-page-content h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin: 2rem 0 0.75rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--accent-cyan);
}

.static-page-content ul {
    padding-left: 1.5rem;
    margin: 0.5rem 0 1rem;
}

.static-page-content ul li {
    margin-bottom: 0.35rem;
}

.static-page-content a {
    color: var(--accent-cyan);
    text-decoration: underline;
}

.pp-section {
    margin-bottom: 1.75rem;
}

/* ============================================================
   お問い合わせフォーム
   ============================================================ */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.cf-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.cf-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.cf-required {
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--accent-purple);
    color: #fff;
    padding: 1px 6px;
    border-radius: 3px;
}

.cf-optional {
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 1px 6px;
    border-radius: 3px;
}

.cf-input,
.cf-select,
.cf-textarea {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-accent);
    border-radius: 6px;
    padding: 0.65rem 0.85rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.cf-input:focus,
.cf-select:focus,
.cf-textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(86, 182, 194, 0.15);
}

.cf-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2386909e'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 20px;
    padding-right: 2.5rem;
    cursor: pointer;
}

.cf-textarea {
    resize: vertical;
    min-height: 160px;
}

.cf-note {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
}

/* チェックボックス行 */
.cf-field--check {
    gap: 0.5rem;
}

.cf-check-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
}

.cf-check-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--accent-cyan);
    cursor: pointer;
}

.cf-check-text {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.5;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.cf-check-text a {
    color: var(--accent-cyan);
    text-decoration: underline;
}

/* 送信ボタン */
.cf-submit {
    margin-top: 0.5rem;
}

.cf-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, #5b8dee 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.cf-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(86, 182, 194, 0.4);
}

/* エラー表示 */
.contact-errors {
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.4);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.contact-errors ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

.contact-errors ul li {
    margin-bottom: 0.25rem;
    font-size: 0.88rem;
}

/* 送信完了 */
.contact-success {
    text-align: center;
    padding: 3rem 1rem;
}

.contact-success__icon {
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

.contact-success h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.contact-success p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.contact-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.5rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-accent);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: border-color 0.2s ease;
}

.contact-back-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* static-page / cf-submit レスポンシブ → main.css末尾のグローバルブロックに統合済み */

/* ============================================================
   パンくずリスト
   ============================================================ */
.breadcrumb {
    padding: 0.6rem var(--container-pad, 1.5rem);
    font-size: 0.78rem;
    color: var(--text-muted, #888);
    max-width: var(--content-max-width, 1100px);
    margin: 0 auto;
}

.breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb__link {
    color: var(--accent-cyan, #00d4ff);
    text-decoration: none;
    transition: opacity 0.2s;
}
.breadcrumb__link:hover { opacity: 0.75; }

.breadcrumb__sep {
    color: var(--text-muted, #888);
    margin: 0 0.1rem;
    font-size: 0.9em;
}

.breadcrumb__item--current span {
    color: #fff;
}

/* ============================================================
   読了時間バッジ
   ============================================================ */
.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--accent-cyan, #00d4ff);
    font-size: 0.8rem;
}

/* ============================================================
   トップへ戻るボタン
   ============================================================ */
.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 2rem;
    z-index: 999;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--accent-cyan, #00d4ff);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.35);
    opacity: 0;
    transform: translateY(1rem);
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
}

.back-to-top svg { fill: #000; }

.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.55);
}

@media (max-width: 640px) {
    .back-to-top {
        right: 1rem;
        bottom: 1.25rem;
        width: 2.6rem;
        height: 2.6rem;
    }
}

/* ============================================================
   閲覧履歴ウィジェット
   ============================================================ */
.history-widget {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: var(--card-bg, rgba(255,255,255,0.04));
    border: 1px solid var(--border-subtle, rgba(255,255,255,0.08));
    border-radius: var(--radius-lg, 12px);
}

.history-widget__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--accent-cyan, #00d4ff);
    letter-spacing: 0.04em;
}

.history-widget__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.history-widget__link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: inherit;
    padding: 0.4rem;
    border-radius: 8px;
    transition: background 0.2s;
}
.history-widget__link:hover {
    background: rgba(255,255,255,0.05);
}

.history-widget img.history-widget__thumb {
    width: 48px;
    height: 48px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    opacity: 1;
}

.history-widget__no-thumb {
    width: 48px;
    height: 48px;
    aspect-ratio: 1 / 1;
    background: rgba(255,255,255,0.07);
    border-radius: 4px;
    flex-shrink: 0;
}

.history-widget__info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.history-widget__item-title {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.history-widget__stars {
    font-size: 0.75rem;
    color: #f5c518;
    letter-spacing: -0.05em;
}

/* ============================================================
   404 エラーページ
   ============================================================ */

@keyframes e404-pulse {
    0%, 100% { opacity: 0.06; transform: scale(1); }
    50%       { opacity: 0.11; transform: scale(1.02); }
}

@keyframes e404-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

.error-404-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5rem 1.25rem 4rem;
    gap: 4rem;
}

/* ── ヒーロー ── */
.error-404-hero {
    position: relative;
    max-width: 600px;
    width: 100%;
    text-align: center;
    z-index: 0;
}

/* 背景に浮かぶ巨大デコテキスト */
.error-404-deco {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.error-404-deco__shadow {
    font-size: clamp(10rem, 40vw, 20rem);
    font-weight: 900;
    letter-spacing: -0.06em;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: e404-pulse 4s ease-in-out infinite;
    user-select: none;
}

/* メインの 404 数字 */
.error-404-code {
    font-size: clamp(4.5rem, 18vw, 9rem);
    font-weight: 900;
    line-height: 1;
    margin: 0 0 0.25rem;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 60%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.05em;
    animation: e404-float 5s ease-in-out infinite;
    filter: drop-shadow(0 0 32px rgba(86, 182, 194, 0.3));
}

.error-404-title {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    margin: 0.5rem 0 1rem;
    color: var(--text-bright);
    letter-spacing: 0.04em;
}

.error-404-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.9rem;
    margin-bottom: 2.25rem;
}

/* ── ボタン ── */
.error-404-actions {
    display: flex;
    gap: 0.875rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.25rem;
}

.btn-404-home,
.btn-404-article {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.875rem;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.02em;
}

.btn-404-home {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: #0d1117;
    box-shadow: 0 4px 18px rgba(86, 182, 194, 0.35);
}

.btn-404-home:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(86, 182, 194, 0.45);
}

.btn-404-article {
    border: 1.5px solid var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(86, 182, 194, 0.06);
}

.btn-404-article:hover {
    background: rgba(86, 182, 194, 0.14);
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(86, 182, 194, 0.2);
}

/* ── 検索フォーム ── */
.error-404-search {
    margin-bottom: 0;
}

.error-404-search p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.error-404-search-form {
    display: flex;
    align-items: center;
    gap: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: 24px;
    overflow: hidden;
    max-width: 440px;
    margin: 0 auto;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.error-404-search-form:focus-within {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(86, 182, 194, 0.15);
}

.error-404-search-form .search-field {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-bright);
    padding: 0.7rem 1.1rem;
    font-size: 0.9rem;
    min-width: 0;
}

.error-404-search-form .search-field::placeholder {
    color: var(--text-secondary);
}

.error-404-search-form .search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.7rem 1rem;
    cursor: pointer;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.error-404-search-form .search-submit:hover {
    color: var(--accent-cyan);
}

/* ── 最新記事セクション ── */
.error-404-recent {
    width: 100%;
    max-width: 960px;
}

.error-404-recent-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.error-404-recent-title__line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-accent));
}

.error-404-recent-title__line:last-child {
    background: linear-gradient(90deg, var(--border-accent), transparent);
}

/* ── カードグリッド（縦型 3列） ── */
.error-404-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* 縦型カード */
.e404-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.e404-card:hover {
    border-color: rgba(86, 182, 194, 0.65);
    box-shadow:
        0 0 0 1px rgba(86, 182, 194, 0.35),
        0 0 20px rgba(86, 182, 194, 0.22),
        0 4px 24px rgba(0, 0, 0, 0.35);
}

/* サムネイル（上部、16:9） */
.e404-card__thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-primary);
    flex-shrink: 0;
}

.e404-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.e404-card__no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    opacity: 0.4;
}

/* ジャンルバッジ（画像左上オーバーレイ） */
.e404-card__genre {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    background: rgba(86, 182, 194, 0.85);
    color: #0d1117;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* カード下部テキスト */
.e404-card__body {
    flex: 1;
    padding: 0.875rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.e404-card__title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-bright);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.e404-card:hover .e404-card__title {
    color: var(--accent-cyan);
}

.e404-card__date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin: 0;
    margin-top: auto;
}

/* ── レスポンシブ ── */
@media (max-width: 767px) {
    .error-404-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 479px) {
    .error-404-wrap {
        padding: 3rem 1rem 2.5rem;
        gap: 2.5rem;
    }
    .error-404-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   コメントフォーム：クッキー同意チェックボックス横並び
   ============================================================ */
.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-top: 0.25rem !important;
    padding-top: 0.35rem;
}

.comment-form-cookies-consent input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 0.25em;
}

.comment-form-cookies-consent label {
    line-height: 1.6;
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ============================================================
   フッターリンク
   ============================================================ */
.footer-links {
    margin-bottom: 0.75rem;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-copy {
    margin: 0;
    color: var(--text-secondary, #aaa);
    font-size: 0.85rem;
}

/* ============================================================
   グローバル・レスポンシブ補完
   ============================================================ */

/* 画像・動画の最大幅超え防止 */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* iOS 入力欄のズーム防止（font-size ≥ 16px 絶対値で指定） */
@media (max-width: 767px) {
    input[type="text"],
    input[type="search"],
    input[type="email"],
    input[type="url"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px; /* ルートが 14px になっても zoom しない */
    }

    /* タッチターゲット最低 36px */
    .main-navigation a,
    .footer-menu a {
        min-height: 36px;
        display: flex;
        align-items: center;
    }

    /* パンくずリストのフォントを小さめに */
    .breadcrumb {
        font-size: 0.8rem;  /* 14×0.8 = 11.2px */
        padding: 0.4rem 16px;
    }

    /* 履歴ウィジェットをシングルカラムに */
    .history-widget__list {
        grid-template-columns: 1fr;
    }

    .social-share-buttons--panel .share-section__inner {
        padding: 1.15rem 1rem 1.25rem;
        border-radius: 14px;
    }

    .social-share-buttons--panel .share-section__toolbar {
        padding: 0.65rem 0.75rem;
        justify-content: center;
    }

    /* シェアボタン：横並び維持・入らなければ折り返し */
    .share-buttons-wrapper {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.6rem;
    }
    .share-btn {
        flex: 1 1 auto;       /* 横に伸縮、入らなければ折り返し */
        min-width: 120px;     /* ボタン最低幅を確保 */
        justify-content: center;
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }

    /* フッターメニュー間隔を縮小 */
    .footer-menu { gap: 0.2rem 1rem; }

    /* 記事個別ページのメタ情報 */
    .blog-single__meta {
        flex-wrap: wrap;
        gap: 0.4rem 0.75rem;
    }

    /* ============================================================
       モバイル極小テキスト最低保証
       14px ベースで 0.7rem = 9.8px になってしまう要素を引き上げ
       最低ライン：0.8rem（11.2px） / ラベル系：0.85rem（11.9px）
       ============================================================ */

    /* バッジ・タグ類（元 0.7rem〜0.72rem） */
    .work-badge--title,
    .work-header__genres .video-tag,
    .work-header__type-badge,
    .work-header__affiliate-notice,
    .video-card__category,
    .editorial-label,
    .post-card__category {
        font-size: 0.8rem;
    }

    /* ラベル・注記類（元 0.75rem） */
    .work-header__rating-label,
    .wii__value,
    .wii__label,
    .age-modal-notice,
    .video-tag,
    .reading-time,
    .post-date,
    .fp-post-meta,
    .fp-post-genre,
    .fp-rank-views,
    .fp-rank-rating,
    .history-widget__item-title,
    .breadcrumb__link,
    .breadcrumb__sep {
        font-size: 0.85rem;
    }

    /* TOC 番号バッジ（元 0.78rem） */
    .toc-num { font-size: 0.85rem; }

    /* カードタイトル・本文系は 1rem を維持（明示） */
    .video-card__title,
    .fp-post-title,
    .fp-rank-title,
    .post-card__title { font-size: 1rem; }
}

@media (max-width: 479px) {
    /* 404 ページボタン縦積み */
    .error-404-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-404-home,
    .btn-404-article {
        text-align: center;
        justify-content: center;
    }

    /* 静的ページのパディング */
    .static-page-wrap {
        padding: 1.25rem 1rem;
    }

    /* コンタクトフォーム */
    .cf-submit-btn {
        width: 100%;
        justify-content: center;
    }

    /* age modal */
    .age-modal {
        padding: 1.75rem 1rem;
        margin: 12px;
    }
    .age-modal-title   { font-size: 1.15rem; }
    .age-btn           { font-size: 0.9rem; padding: 0.65rem 1rem; }

    /* シェアボタン：極小画面でも横並び維持（最低幅を少し縮小） */
    .share-btn {
        min-width: 100px;
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
    }
    .share-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* ============================================================
   ネイティブシェアボタン（Web Share API）
   ============================================================ */

/* ── ネイティブシェアボタン（スマホ・タブレット向け） ── */
.share-native-wrap {
    display: none; /* JS で navigator.share がある場合のみ表示 */
    margin-bottom: 0.75rem;
}

/* JS がボタンを表示する場合 */
.share-btn--native {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s;
    width: 100%;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(86,182,194,0.35);
}

.share-btn--native:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(86,182,194,0.5);
}

.share-btn--native:active {
    transform: translateY(0);
    opacity: 0.9;
}

/* navigator.share が存在する場合のみネイティブ枠を表示（JS で制御） */
/* → JS 側で .share-native-wrap { display: block } を付与 */

/* ── newface ヒーローmeta内：共有ボタン ── */
.newface-hero__meta .share-native-wrap {
    display: none; /* JS で inline-flex に変更 */
    align-items: center;
    margin-bottom: 0;
}
.newface-hero__meta .share-desktop-only {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-bottom: 0;
}

/* ネイティブシェアボタン */
.newface-share__native-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    padding: 0.2rem 0.75rem !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    line-height: 1.4 !important;
    color: var(--accent-cyan) !important;
    background: rgba(86,182,194,0.08) !important;
    border: 1px solid rgba(86,182,194,0.45) !important;
    border-radius: 100px !important;
    cursor: pointer !important;
    transition: background 0.2s, border-color 0.2s !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
    width: auto !important;
    min-width: unset !important;
    box-shadow: none !important;
    transform: none !important;
    justify-content: center !important;
}
.newface-share__native-btn:hover {
    background: rgba(86,182,194,0.18) !important;
    border-color: var(--accent-cyan) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* SNS ピルボタン群 */
.newface-share__sns {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.newface-share__pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    padding: 0.2rem 0.7rem !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    line-height: 1.4 !important;
    border-radius: 100px !important;
    cursor: pointer !important;
    transition: background 0.18s, color 0.18s, border-color 0.18s !important;
    white-space: nowrap !important;
    min-width: unset !important;
    box-shadow: none !important;
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    color: var(--text-secondary) !important;
    position: static !important;
    overflow: visible !important;
    vertical-align: middle !important;
    transform: none !important;
}
.newface-share__pill::before { display: none; }
.newface-share__pill:hover {
    color: var(--text-primary) !important;
    background: rgba(255,255,255,0.06) !important;
    border-color: rgba(255,255,255,0.3) !important;
    transform: none;
}

/* copy-notification をmeta行に合わせる */
.newface-hero__meta .copy-notification {
    font-size: 0.7rem;
    color: var(--accent-cyan);
    white-space: nowrap;
}

/* レビュー・記事：シェアセクション（ボタン类は newface 同等のまま／枠のみ装飾） */
.social-share-buttons--panel {
    margin: 2rem 0 2.5rem;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

.social-share-buttons--panel .share-section__inner {
    position: relative;
    padding: 1.35rem 1.4rem 1.45rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: linear-gradient(
        148deg,
        rgba(46, 50, 60, 0.52) 0%,
        rgba(28, 31, 38, 0.9) 42%,
        rgba(17, 20, 26, 0.97) 100%
    );
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.4) inset,
        0 16px 40px rgba(0, 0, 0, 0.32),
        0 0 80px rgba(86, 182, 194, 0.035);
    overflow: hidden;
}

.social-share-buttons--panel .share-section__inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--accent-cyan) 22%,
        var(--accent-purple) 50%,
        var(--accent-blue) 78%,
        transparent 100%
    );
    opacity: 0.92;
}

.social-share-buttons--panel .share-section__inner::after {
    content: '';
    position: absolute;
    pointer-events: none;
    top: -35%;
    right: -18%;
    width: 52%;
    height: 75%;
    background: radial-gradient(ellipse at center, rgba(97, 175, 239, 0.08) 0%, transparent 68%);
}

.social-share-buttons--panel .share-title {
    position: relative;
    z-index: 1;
    margin: 0 0 1rem;
    padding: 0 0 0.85rem;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-align: left;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--text-bright);
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.social-share-buttons--panel .share-title::before {
    content: '';
    width: 3px;
    height: 1.1em;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
    flex-shrink: 0;
    box-shadow: 0 0 14px rgba(86, 182, 194, 0.35);
}

.social-share-buttons--panel .dmm-share__row,
.social-share-buttons--panel .share-section__toolbar {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.75rem;
    margin: 0;
    padding: 0.7rem 0.95rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.social-share-buttons--panel .share-native-wrap {
    display: none;
    align-items: center;
    margin-bottom: 0;
}

.social-share-buttons--panel .share-desktop-only {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.social-share-buttons--panel .copy-notification {
    position: relative;
    z-index: 1;
    margin: 0.85rem auto 0;
    padding: 0.5rem 1.1rem;
    width: fit-content;
    max-width: 100%;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-align: center;
    color: rgba(232, 245, 248, 0.95);
    background: linear-gradient(135deg, rgba(86, 182, 194, 0.24) 0%, rgba(97, 175, 239, 0.14) 100%);
    border: 1px solid rgba(86, 182, 194, 0.42);
    border-radius: 100px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
    animation: shareCopyToast 0.35s cubic-bezier(0.34, 1.3, 0.64, 1);
}

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


/* ============================================================
   アクセシビリティ：アニメーション軽減（サイト全体）
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration:       0.01ms !important;
        animation-iteration-count: 1     !important;
        transition-duration:      0.01ms !important;
        scroll-behavior:          auto   !important;
    }
}

/* ============================================================
   新人女優ページ (page-newface.php) — Editorial Dark Magazine
   ============================================================ */

/* ── Hero ── */
.newface-hero {
    background: linear-gradient(135deg, rgba(20, 24, 32, 0.98) 0%, rgba(30, 20, 50, 0.98) 100%);
    border: 1px solid rgba(180, 100, 255, 0.25);
    border-radius: 12px;
    padding: 2rem 1.75rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
}
.newface-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(180, 100, 255, 0.12) 0%, transparent 65%);
    pointer-events: none;
}
.newface-hero__inner {
    position: relative;
    min-width: 0;
}
.newface-hero__title {
    font-size: clamp(1.25rem, 4vw, 2rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.5rem;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}
.newface-hero__desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0 0 1rem;
    word-break: break-word;
}
.newface-hero__desc p { margin: 0; }
.newface-hero__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    min-width: 0;
}
.newface-hero__updated,
.newface-hero__count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1.6;
    vertical-align: middle;
    min-width: 0;
    flex-shrink: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.newface-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: rgba(180, 100, 255, 0.85);
    border: 1px solid rgba(180, 100, 255, 0.35);
    border-radius: 4px;
    padding: 3px 10px;
    text-decoration: none;
    transition: background 0.2s;
}
.newface-refresh-btn:hover {
    background: rgba(180, 100, 255, 0.12);
    color: rgba(180, 100, 255, 0.85);
}

/* ── 月別ナビゲーション ── */
.newface-month-nav {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 2.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding-bottom: 0;
}
.newface-month-nav::-webkit-scrollbar { display: none; }
.newface-month-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.6rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s, border-color 0.2s;
}
.newface-month-nav__link:hover {
    color: #fff;
    border-bottom-color: rgba(180, 100, 255, 0.5);
}
.newface-month-nav__link--preorder {
    color: rgba(100, 220, 140, 0.8);
}
.newface-month-nav__link--preorder:hover {
    color: rgba(100, 220, 140, 1);
    border-bottom-color: rgba(100, 220, 140, 0.6);
}
.newface-month-nav__count {
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1px 7px;
    line-height: 1.7;
}

/* ── セクション ── */
.newface-section {
    margin-bottom: 4rem;
}
.newface-section__header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.newface-section__header-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.newface-section__badge {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.newface-section__badge--new   { color: rgba(255, 170, 60, 0.9); }
.newface-section__badge--preorder { color: rgba(100, 220, 140, 0.9); }
.newface-section__title {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 800;
    color: var(--text-bright);
    margin: 0;
    letter-spacing: -0.01em;
}
.newface-section__divider {
    height: 1px;
    background: linear-gradient(to right, rgba(255,255,255,0.08), transparent);
}
.newface-section__count {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* ── グリッド ── */
.newface-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* ── カード ── */
.newface-card {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(30, 34, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
}
.newface-card:hover {
    border-color: rgba(180, 100, 255, 0.35);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(180, 100, 255, 0.15);
}

/* サムネイル */
.newface-card__thumb-wrap {
    display: block;
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--bg-tertiary);
    flex-shrink: 0;
}
.newface-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease;
}
.newface-card:hover .newface-card__thumb {
    filter: brightness(1.1);
}
/* 画像下部のグラデーション（女優名の可読性） */
.newface-card__thumb-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(to top, rgba(10, 12, 18, 0.85) 0%, transparent 100%);
    pointer-events: none;
}
/* 画像上の女優名 */
.newface-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.6rem 0.65rem;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 4px;
}
.newface-card__actresses {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    line-height: 1;
}
.newface-card__actress-link {
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
    transition: color 0.15s;
}
.newface-card__actress-link:hover {
    color: rgba(200, 150, 255, 1);
    text-decoration: none;
}
.newface-card__floor-badge {
    font-size: 0.58rem;
    font-weight: 700;
    background: rgba(255, 160, 60, 0.9);
    color: #fff;
    border-radius: 3px;
    padding: 2px 5px;
    flex-shrink: 0;
    align-self: flex-start;
}
.newface-card__thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* ボディ */
.newface-card__body {
    padding: 0.65rem 0.7rem 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}
.newface-card__title {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.85);
}
.newface-card__title a {
    color: inherit;
    text-decoration: none;
}
.newface-card__title a:hover { color: #fff; }
.newface-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.4rem;
    gap: 6px;
}
.newface-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.newface-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.68rem;
    color: var(--text-muted);
}

.newface-card__meta-code {
    font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
    color: rgba(160, 210, 255, 0.85);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.newface-card__price {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(120, 200, 255, 0.9);
}
.newface-card__genres {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}
.newface-card__genre-tag {
    font-size: 0.6rem;
    background: rgba(180, 100, 255, 0.1);
    border: 1px solid rgba(180, 100, 255, 0.2);
    border-radius: 2px;
    padding: 1px 5px;
    color: rgba(180, 100, 255, 0.75);
}
.newface-card__label {
    font-size: 0.62rem;
    color: rgba(255,255,255,0.25);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* 空データ */
.newface-empty {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-secondary);
}

/* レスポンシブ */
@media (max-width: 767px) {
    .newface-hero {
        padding: 1.5rem 1.25rem;
        border-radius: 8px;
        margin-bottom: 1.5rem;
    }
    .newface-hero__title {
        font-size: clamp(1.15rem, 5vw, 1.6rem);
    }
    .newface-hero__desc { font-size: 0.85rem; }
    .newface-hero__meta { font-size: 0.75rem; gap: 0.4rem 0.75rem; }
    .newface-refresh-btn { font-size: 0.72rem; padding: 2px 8px; }
    .newface-month-nav { margin-bottom: 1.5rem; }
    .newface-month-nav__link { font-size: 0.78rem; padding: 0.5rem 0.75rem; }
    .newface-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .newface-section {  margin-bottom: 2rem; }
    .newface-section__header {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 0.4rem;
        margin-bottom: 1rem;
    }
    .newface-section__divider { display: none; }
    .newface-section__count { margin-left: 0; }
    .newface-section__title { font-size: 1rem; }
}
@media (max-width: 479px) {
    .newface-hero { padding: 1.25rem 1rem; }
    .newface-hero__title { font-size: 1.1rem; }
    .newface-hero__meta { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
    .newface-hero__updated { white-space: normal; }
    .newface-grid { grid-template-columns: 1fr; gap: 0.6rem; }
    .newface-card__title { -webkit-line-clamp: 2; }
}
