/*
Theme Name: FANZA Starter Theme
Theme URI: https://example.com/fanza-starter-theme
Author: Your Name
Author URI: https://example.com
Description: FANZAアフィリエイト自動投稿プラグインと完全連携した専用テーマ。SEO最適化、高速表示、収益最大化UIを搭載。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fanza-starter
Tags: adult, affiliate, fanza, dmm, one-column, custom-colors, dark-mode
*/

/* ========================================
   CSS Variables - Dark Theme (違法サイト風)
======================================== */
:root {
    --color-bg: #0a0a0a;
    --color-bg-secondary: #111111;
    --color-bg-tertiary: #1a1a1a;
    --color-bg-card: #151515;
    --color-bg-hover: #1f1f1f;
    --color-text: #e0e0e0;
    --color-text-secondary: #a0a0a0;
    --color-text-muted: #666;
    --color-border: #2a2a2a;
    --color-border-light: #333;
    --color-primary: #ff6b6b;
    --color-primary-dark: #e55555;
    --color-secondary: #4dabf7;
    --color-accent: #ffd43b;
    --color-success: #51cf66;
    --color-success-dark: #40c057;
    --color-danger: #ff6b6b;
    --color-warning: #ffa94d;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.6);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.2s ease;
}

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: var(--transition);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   Layout
======================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

/* ========================================
   Header
======================================== */
.site-header {
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.header-search {
    flex: 1;
    max-width: 400px;
}

.header-search .search-form__input {
    padding: 8px 12px;
    font-size: 0.85rem;
}

.header-search .search-form__submit {
    padding: 8px 14px;
}

.site-title {
    font-size: 1.1rem;
    font-weight: bold;
}

.site-title a {
    color: var(--color-text);
}

.main-nav ul,
.main-nav__list {
    display: flex;
    list-style: none;
    gap: 16px;
    margin: 0;
    padding: 0;
}

.main-nav a,
.main-nav__list a {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav__list a:hover {
    color: var(--color-primary);
}

/* ========================================
   Product Card (Archive)
======================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 12px 0;
}

.product-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

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

.product-card__image {
    background: var(--color-bg-tertiary);
}

.product-card__image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-card__content {
    padding: 10px;
}

.product-card__title {
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    color: var(--color-text);
}

.product-card__meta {
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

.product-card__rating {
    color: var(--color-accent);
}

.product-card--featured {
    position: relative;
}

.product-card__featured-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* ========================================
   Breadcrumb
======================================== */
.fanza-breadcrumb {
    background: var(--color-bg-secondary);
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
}

.fanza-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.fanza-breadcrumb__item:not(:last-child)::after {
    content: '›';
    margin: 0 6px;
    color: var(--color-text-muted);
}

.fanza-breadcrumb__item a {
    color: var(--color-text-muted);
}

.fanza-breadcrumb__item a:hover {
    color: var(--color-text-secondary);
}

.fanza-breadcrumb__item--current {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--color-text-secondary);
}

/* ========================================
   FANZA Single - Base
======================================== */
.fanza-single {
    background: var(--color-bg);
    padding-bottom: 80px;
}

.fanza-product {
    width: 100%;
}

.fanza-section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    padding: 10px 14px;
    background: var(--color-bg-tertiary);
    border-left: 3px solid var(--color-primary);
    border-radius: var(--radius-sm);
    color: var(--color-text);
}

/* ========================================
   Ad Disclosure (ステマ規制対応)
======================================== */
.fanza-ad-disclosure {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin: 16px 0 0;
}

.fanza-ad-disclosure__badge {
    flex-shrink: 0;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    background: var(--color-text-muted);
    color: var(--color-bg);
    border-radius: 3px;
    letter-spacing: 0.05em;
}

.fanza-ad-disclosure__text {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ========================================
   Header Section (シンプル：タイトル + サムネのみ)
======================================== */
.fanza-header {
    padding: 16px 0 0;
}

.fanza-header__title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 12px;
    color: var(--color-text);
}

.fanza-header__thumbnail {
    width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.fanza-header__thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   CTA Buttons
======================================== */
.fanza-cta {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff !important;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
}

.fanza-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
    color: #fff !important;
}

.fanza-cta__main {
    font-size: 0.95rem;
}

.fanza-cta__sub {
    font-size: 0.7rem;
    opacity: 0.85;
    margin-top: 2px;
}

.fanza-cta--primary {
    width: 100%;
    max-width: 300px;
    padding: 14px 28px;
}

.fanza-cta--inline {
    padding: 10px 20px;
}

.fanza-cta--large {
    width: 100%;
    max-width: 360px;
    padding: 16px 28px;
}

/* 推し作品バナー */
.fanza-featured-banner {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eee;
    text-align: center;
}

.fanza-featured-banner__link {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.fanza-featured-banner__image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.fanza-featured-banner__link:hover .fanza-featured-banner__image {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.fanza-cta--featured {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: #fff;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    transition: all 0.2s;
}

.fanza-cta--featured:hover {
    background: linear-gradient(135deg, #ff5252, #e74c4c);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.5);
    color: #fff;
}

.fanza-cta--safe {
    width: 100%;
    max-width: 320px;
}

.fanza-cta--deal {
    width: 100%;
    max-width: 300px;
}

.fanza-cta--final {
    width: 100%;
    max-width: 300px;
    padding: 16px 28px;
}

/* ========================================
   Samples Section（縦羅列 - 違法サイト風）
======================================== */
.fanza-samples {
    padding: 12px 0 20px;
    border-bottom: 1px solid var(--color-border);
}

.fanza-samples__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fanza-samples__item {
    width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.fanza-samples__item img {
    width: 100%;
    height: auto;
    display: block;
}

/* サンプル内広告 */
.fanza-samples__ad {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fanza-samples__ad:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.fanza-samples__ad a {
    display: block;
}

.fanza-samples__ad img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.fanza-samples__cta-break {
    background: var(--color-bg-tertiary);
    padding: 16px;
    border-radius: var(--radius-sm);
    text-align: center;
    margin: 6px 0;
    border: 1px solid var(--color-border);
}

.fanza-samples__cta-text {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 10px;
}

.fanza-samples__footer {
    text-align: center;
    padding: 24px 16px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-sm);
    margin-top: 16px;
    border: 1px solid var(--color-border);
}

.fanza-samples__meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.fanza-samples__meta-item {
    color: var(--color-text-secondary);
}

.fanza-samples__meta-rating {
    color: var(--color-accent);
    font-weight: 600;
}

.fanza-samples__meta-price {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.fanza-samples__desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.fanza-samples__footer-text {
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 14px;
    font-weight: 500;
}

/* ========================================
   Warning Section（警告 - 赤系で目立たせる）
======================================== */
.fanza-warning-section {
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.fanza-warning-box {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
}

.fanza-warning-box__intro {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 16px;
    color: var(--color-text-secondary);
}

.fanza-warning-box__risks {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fanza-warning-box__risk {
    display: flex;
    gap: 10px;
    padding: 14px;
    background: rgba(255, 107, 107, 0.1);
    border-left: 3px solid var(--color-danger);
    border-radius: var(--radius-sm);
}

.fanza-warning-box__risk-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.fanza-warning-box__risk-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-danger);
    margin-bottom: 4px;
}

.fanza-warning-box__risk-content p {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ========================================
   Safe Section（安全 - 緑系）
======================================== */
.fanza-safe-section {
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.fanza-safe-box {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
}

.fanza-safe-box__intro {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 16px;
    color: var(--color-text-secondary);
}

.fanza-safe-box__benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.fanza-safe-box__benefit {
    display: flex;
    gap: 10px;
    padding: 14px;
    background: rgba(81, 207, 102, 0.1);
    border-left: 3px solid var(--color-success);
    border-radius: var(--radius-sm);
}

.fanza-safe-box__benefit-icon {
    color: var(--color-success);
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.fanza-safe-box__benefit-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-success);
    margin-bottom: 4px;
}

.fanza-safe-box__benefit-content p {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.fanza-safe-box__cta {
    text-align: center;
}

/* ========================================
   Deal Section（お得情報 - 黄色系）
======================================== */
.fanza-deal-section {
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.fanza-deal-box {
    background: rgba(255, 212, 59, 0.08);
    border: 1px solid rgba(255, 212, 59, 0.3);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
}

.fanza-deal-box__price {
    margin-bottom: 6px;
}

.fanza-deal-box__price-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.fanza-deal-box__price-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-accent);
    margin: 0 6px;
}

.fanza-deal-box__price-note {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.fanza-deal-box__per-page {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.fanza-deal-box__tips {
    text-align: left;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 16px;
}

.fanza-deal-box__tips h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-accent);
}

.fanza-deal-box__tips ul {
    list-style: none;
}

.fanza-deal-box__tips li {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    padding: 8px 0;
    border-bottom: 1px dashed var(--color-border);
    line-height: 1.5;
}

.fanza-deal-box__tips li:last-child {
    border-bottom: none;
}

/* ========================================
   Info Section（作品情報テーブル）
======================================== */
.fanza-info-section {
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.fanza-info-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.fanza-info-table th,
.fanza-info-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.85rem;
}

.fanza-info-table th {
    width: 100px;
    background: var(--color-bg-tertiary);
    color: var(--color-text-secondary);
    font-weight: 500;
}

.fanza-info-table td {
    color: var(--color-text);
}

.fanza-info-table tr:last-child th,
.fanza-info-table tr:last-child td {
    border-bottom: none;
}

.fanza-info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fanza-info-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 3px;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    transition: var(--transition);
}

a.fanza-info-tag:hover {
    background: var(--color-bg-hover);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.fanza-circle-link {
    color: var(--color-primary);
    font-weight: 500;
    transition: var(--transition);
}

.fanza-circle-link:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* ========================================
   FAQ Section
======================================== */
.fanza-faq-section {
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.fanza-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fanza-faq-item {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.fanza-faq-item__question {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 12px 14px;
    background: var(--color-bg-tertiary);
    color: var(--color-text);
    margin: 0;
}

.fanza-faq-item__answer {
    padding: 12px 14px;
}

.fanza-faq-item__answer p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 10px;
}

.fanza-faq-item__answer p:last-child {
    margin-bottom: 0;
}

/* ========================================
   Description Section
======================================== */
.fanza-description-section {
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.fanza-description {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.fanza-description p {
    margin-bottom: 1em;
}

/* ========================================
   Final CTA
======================================== */
.fanza-final-cta {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    padding: 28px 16px;
    text-align: center;
    margin-top: 20px;
    border-radius: var(--radius-md);
}

.fanza-final-cta__title {
    color: var(--color-text);
    font-size: 1rem;
    margin-bottom: 12px;
}

.fanza-final-cta__info {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
}

.fanza-final-cta__price {
    color: var(--color-accent);
    font-size: 1.4rem;
    font-weight: 800;
}

.fanza-final-cta__pages {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
}

.fanza-final-cta__note {
    color: var(--color-text-muted);
    font-size: 0.7rem;
    margin-top: 12px;
}

/* ========================================
   Related Section
======================================== */
.fanza-related-section {
    padding: 20px 0;
}

/* ========================================
   Sticky CTA
======================================== */
.fanza-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: 8px 12px;
    z-index: 999;
    transform: translateY(100%);
    transition: var(--transition);
}

.fanza-sticky-cta.is-visible {
    transform: translateY(0);
}

.fanza-sticky-cta__inner {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fanza-sticky-cta__info {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.fanza-sticky-cta__price {
    color: var(--color-accent);
    font-size: 1.1rem;
    font-weight: 700;
}

.fanza-sticky-cta__pages {
    color: var(--color-text-muted);
    font-size: 0.75rem;
}

.fanza-sticky-cta__button {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white !important;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.3);
}

.fanza-sticky-cta__button:hover {
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
    color: white !important;
}

/* ========================================
   Age Modal
======================================== */
.age-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.age-modal__box {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 28px;
    border-radius: var(--radius-md);
    text-align: center;
    max-width: 340px;
    margin: 12px;
}

.age-modal__title {
    font-size: 1.2rem;
    margin-bottom: 14px;
    color: var(--color-text);
}

.age-modal__text {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.age-modal__buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
}

.age-modal__btn {
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.age-modal__btn--yes {
    background: var(--color-primary);
    color: white;
}

.age-modal__btn--no {
    background: var(--color-bg-tertiary);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

/* ========================================
   404 Page
======================================== */
.error-404 {
    text-align: center;
    padding: 60px 20px;
}

.error-404__code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--color-border);
    line-height: 1;
    margin-bottom: 10px;
}

.error-404__title {
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: 10px;
}

.error-404__message {
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}

.error-404__search {
    max-width: 400px;
    margin: 0 auto 30px;
}

.error-404__search p {
    color: var(--color-text-secondary);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.error-404__links {
    margin-bottom: 50px;
}

.error-404__popular h2 {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

.product-grid--small {
    max-width: 800px;
    margin: 0 auto;
}

/* ========================================
   Search Form
======================================== */
.search-form {
    display: flex;
    gap: 0;
}

.search-form__input {
    flex: 1;
    padding: 12px 16px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-right: none;
    border-radius: 4px 0 0 4px;
    color: var(--color-text);
    font-size: 0.95rem;
}

.search-form__input::placeholder {
    color: var(--color-text-muted);
}

.search-form__input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.search-form__submit {
    padding: 12px 20px;
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: 0 4px 4px 0;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.search-form__submit:hover {
    background: var(--color-primary-hover);
}

.search-form-wrap {
    margin-top: 16px;
    max-width: 500px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ========================================
   No Results
======================================== */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--color-bg-secondary);
    border-radius: 8px;
}

.no-results p {
    color: var(--color-text);
    margin-bottom: 20px;
}

.no-results ul {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    list-style: none;
    padding: 0;
}

.no-results li {
    margin-bottom: 8px;
}

/* ========================================
   Page Header
======================================== */
.page-header {
    padding: 20px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.page-header__title {
    font-size: 1.4rem;
    color: var(--color-text);
    margin-bottom: 8px;
}

.page-header__desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

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

.ranking-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 12px;
    transition: var(--transition);
}

.ranking-item:hover {
    border-color: var(--color-primary);
}

.ranking-item__rank {
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.ranking-item__rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--color-bg-tertiary);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.ranking-item__rank-num--top {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
}

.ranking-item:nth-child(2) .ranking-item__rank-num--top {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
}

.ranking-item:nth-child(3) .ranking-item__rank-num--top {
    background: linear-gradient(135deg, #cd7f32, #a0522d);
    color: #fff;
}

.ranking-item__thumb {
    flex-shrink: 0;
    width: 80px;
}

.ranking-item__thumb img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.ranking-item__info {
    flex: 1;
    min-width: 0;
}

.ranking-item__title {
    font-size: 0.95rem;
    margin-bottom: 6px;
    line-height: 1.4;
}

.ranking-item__title a {
    color: var(--color-text);
}

.ranking-item__title a:hover {
    color: var(--color-primary);
}

.ranking-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
}

.ranking-item__rating {
    color: #ffc107;
}

.ranking-item__price {
    color: var(--color-primary);
    font-weight: 600;
}

.ranking-item__genres {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ranking-item__genre {
    font-size: 0.7rem;
    padding: 2px 6px;
    background: var(--color-bg-tertiary);
    border-radius: 3px;
    color: var(--color-text-muted);
}

.ranking-item__cta {
    flex-shrink: 0;
}

.fanza-cta--small {
    padding: 8px 16px;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .ranking-item {
        flex-wrap: wrap;
    }
    
    .ranking-item__cta {
        width: 100%;
        margin-top: 8px;
    }
    
    .ranking-item__cta .fanza-cta {
        width: 100%;
        text-align: center;
    }
}

/* ========================================
   Genre/Circle List Page
======================================== */
.genre-section {
    margin-bottom: 40px;
}

.genre-section__title {
    font-size: 1.1rem;
    color: var(--color-text);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 16px;
}

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

.genre-grid--featured {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.circle-grid--featured {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.genre-card,
.circle-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    text-align: center;
    transition: var(--transition);
}

.genre-card:hover,
.circle-card:hover {
    border-color: var(--color-primary);
    background: var(--color-bg-tertiary);
}

.genre-card--featured,
.circle-card--featured {
    position: relative;
    padding: 20px 16px;
    background: linear-gradient(135deg, var(--color-bg-secondary), var(--color-bg-tertiary));
}

.genre-card__rank,
.circle-card__rank {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
}

.genre-card__name,
.circle-card__name {
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 4px;
    font-weight: 500;
}

.genre-card__count,
.circle-card__count {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* ========================================
   Legal Page (Privacy Policy etc.)
======================================== */
.legal-page__updated {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.legal-page__content {
    padding: 20px 0;
}

.legal-section {
    margin-bottom: 32px;
}

.legal-section h2 {
    font-size: 1.1rem;
    color: var(--color-text);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 12px;
}

.legal-section p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-section ul {
    margin: 12px 0 12px 20px;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.legal-section li {
    margin-bottom: 6px;
    line-height: 1.6;
}

.legal-section a {
    color: var(--color-primary);
}

.legal-section a:hover {
    text-decoration: underline;
}

/* ========================================
   Contact Form
======================================== */
.contact-form {
    max-width: 600px;
}

.contact-form__group {
    margin-bottom: 20px;
}

.contact-form__label {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 6px;
    font-weight: 500;
}

.contact-form__label .required {
    color: #e74c3c;
}

.contact-form__input,
.contact-form__textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text);
    font-size: 0.95rem;
    transition: var(--transition);
}

.contact-form__input:focus,
.contact-form__textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
    color: var(--color-text-muted);
}

.contact-form__hint {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.contact-form__submit {
    margin-top: 24px;
}

.contact-success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid #2ecc71;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 24px;
}

.contact-success p {
    color: #2ecc71;
    margin-bottom: 8px;
}

.contact-success p:last-child {
    margin-bottom: 0;
    color: var(--color-text-secondary);
}

.contact-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid #e74c3c;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 24px;
}

.contact-error p {
    color: #e74c3c;
    margin: 0;
}

/* DMCA Notice */
.dmca-notice {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 30px;
}

.dmca-notice h2 {
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 12px;
}

.dmca-notice p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 10px;
}

.dmca-notice ul {
    margin: 12px 0 0 20px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.dmca-notice li {
    margin-bottom: 6px;
}

/* ========================================
   Footer
======================================== */
.site-footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    padding: 24px 0 12px;
}

.site-footer a {
    color: var(--color-text-muted);
}

.site-footer a:hover {
    color: var(--color-text-secondary);
}

.footer-nav {
    margin-bottom: 16px;
}

.footer-nav__list {
    display: flex;
    justify-content: center;
    gap: 8px 20px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav__list li a {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    transition: var(--transition);
}

.footer-nav__list li a:hover {
    color: var(--color-primary);
}

.footer-copy {
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.footer-affiliate {
    text-align: center;
    margin-top: 12px;
    opacity: 0.5;
}

.footer-affiliate:hover {
    opacity: 0.8;
}

.footer-affiliate img {
    display: inline-block;
}

/* ========================================
   Archive Page Title
======================================== */
.archive-header {
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.archive-header__title {
    font-size: 1.2rem;
    color: var(--color-text);
}

/* ========================================
   Pagination
======================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    font-size: 0.85rem;
}

.pagination a:hover {
    border-color: var(--color-border-light);
    color: var(--color-text);
}

.pagination .current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* ========================================
   Layout with Sidebar
======================================== */
.site-main {
    padding: 20px 0;
}

.site-main .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.layout-with-sidebar {
    display: flex !important;
    flex-direction: row !important;
    gap: 24px;
    align-items: flex-start;
    width: 100%;
}

.main-content {
    flex: 1 1 0%;
    min-width: 0;
    max-width: calc(100% - 304px); /* 280px sidebar + 24px gap */
}

/* ========================================
   Sidebar
======================================== */
.sidebar {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 70px;
    background: var(--color-bg-secondary); /* デバッグ用 */
}

.sidebar__widget {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

/* 広告バナー */
.sidebar__banner {
    padding: 0;
    background: transparent;
    border: none;
}

.sidebar__banner a {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.sidebar__banner a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sidebar__banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.sidebar__title {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 12px;
    background: var(--color-bg-tertiary);
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    margin: 0;
}

.sidebar__content {
    padding: 10px;
}

/* Sidebar Item (人気/新着) */
.sidebar__item {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    color: var(--color-text);
}

.sidebar__item:hover {
    background: var(--color-bg-hover);
    color: var(--color-text);
}

.sidebar__item-thumb {
    width: 60px;
    flex-shrink: 0;
    border-radius: 3px;
    overflow: hidden;
    background: var(--color-bg-tertiary);
}

.sidebar__item-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.sidebar__item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sidebar__item-title {
    font-size: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--color-text);
}

.sidebar__item-rating {
    font-size: 0.7rem;
    color: var(--color-accent);
}

.sidebar__item-price {
    font-size: 0.7rem;
    color: var(--color-primary);
    font-weight: 600;
}

/* Sidebar Categories */
.sidebar__categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar__categories li {
    border-bottom: 1px solid var(--color-border);
}

.sidebar__categories li:last-child {
    border-bottom: none;
}

.sidebar__categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 4px;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    transition: var(--transition);
}

.sidebar__categories a:hover {
    color: var(--color-text);
    background: var(--color-bg-hover);
}

.sidebar__count {
    font-size: 0.7rem;
    background: var(--color-bg-tertiary);
    padding: 2px 6px;
    border-radius: 10px;
    color: var(--color-text-muted);
}

/* Sidebar Tags */
.sidebar__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sidebar__tag {
    font-size: 0.7rem;
    padding: 4px 8px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 3px;
    color: var(--color-text-secondary);
    transition: var(--transition);
}

.sidebar__tag:hover {
    background: var(--color-bg-hover);
    border-color: var(--color-border-light);
    color: var(--color-text);
}

/* WordPress Default Widgets */
.sidebar .widget {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 16px;
}

.sidebar .widget-title,
.sidebar .widget h3 {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 12px;
    background: var(--color-bg-tertiary);
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    margin: 0;
}

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

.sidebar .widget li {
    border-bottom: 1px solid var(--color-border);
}

.sidebar .widget li:last-child {
    border-bottom: none;
}

.sidebar .widget a {
    display: block;
    padding: 10px 12px;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    transition: var(--transition);
}

.sidebar .widget a:hover {
    background: var(--color-bg-hover);
    color: var(--color-text);
}

/* Recent Posts Widget */
.sidebar .widget_recent_entries li {
    display: flex;
    flex-direction: column;
}

.sidebar .widget_recent_entries .post-date {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    padding: 0 12px 8px;
}

/* Categories Widget */
.sidebar .widget_categories li a {
    display: flex;
    justify-content: space-between;
}

/* Search Widget */
.sidebar .widget_search {
    padding: 12px;
}

.sidebar .widget_search .search-form {
    display: flex;
    gap: 6px;
}

.sidebar .widget_search .search-field {
    flex: 1;
    padding: 8px 10px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 0.85rem;
}

.sidebar .widget_search .search-submit {
    padding: 8px 14px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    cursor: pointer;
    font-size: 0.8rem;
}

.sidebar .widget_search .search-submit:hover {
    background: var(--color-bg-hover);
    color: var(--color-text);
}

/* ========================================
   Archive Header (Updated)
======================================== */
.archive-header {
    padding: 16px 0;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.archive-header__title {
    font-size: 1.2rem;
    color: var(--color-text);
    margin-bottom: 6px;
}

.archive-header__desc {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.archive-header__count {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}

.archive-header__count strong {
    color: var(--color-primary);
    font-size: 1.1rem;
}

.archive-header__seo-text {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 16px;
    margin-top: 12px;
}

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

.archive-header__seo-text strong {
    color: var(--color-primary);
}

.no-posts {
    color: var(--color-text-muted);
    text-align: center;
    padding: 40px 20px;
}

/* Product Grid Small (for related) */
.product-grid--small {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* ========================================
   Utilities
======================================== */
.text-center { text-align: center; }

/* ========================================
   Scrollbar (違法サイト風)
======================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}

/* ========================================
   Selection
======================================== */
::selection {
    background: var(--color-primary);
    color: white;
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 1024px) {
    .layout-with-sidebar {
        gap: 16px;
    }
    
    .sidebar {
        width: 240px;
        min-width: 240px;
        max-width: 240px;
    }
    
    .main-content {
        max-width: calc(100% - 256px);
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 8px 0;
    }
    
    .site-header__inner {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .site-title {
        font-size: 0.95rem;
        text-align: center;
    }
    
    .header-search {
        order: 3;
        max-width: 100%;
    }
    
    .main-nav {
        order: 2;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -15px;
        padding: 0 15px;
    }
    
    .main-nav__list {
        gap: 16px;
        flex-wrap: nowrap;
        white-space: nowrap;
        justify-content: center;
    }
    
    .main-nav__list a {
        font-size: 0.8rem;
        padding: 4px 0;
    }
    
    .layout-with-sidebar {
        flex-direction: column !important;
    }
    
    .main-content {
        max-width: 100%;
    }
    
    .sidebar {
        position: static;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 24px;
    }
    
    .sidebar__widget:first-child {
        grid-column: span 2;
    }
    
    .fanza-header__title {
        font-size: 1rem;
    }
    
    .fanza-header__meta {
        gap: 10px;
    }
    
    .fanza-warning-box__risk,
    .fanza-safe-box__benefit {
        flex-direction: column;
        text-align: center;
    }
    
    .fanza-deal-box__price-value {
        font-size: 1.5rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-grid--small {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fanza-info-table th {
        width: 80px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        grid-template-columns: 1fr;
    }
    
    .sidebar__widget:first-child {
        grid-column: span 1;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
}

/* ========================================
   まとめ記事スタイル
======================================== */

/* まとめ記事シングル */
.fanza-matome-article {
    max-width: 100%;
    padding: 20px 0;
}

/* パンくずリスト */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

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

.breadcrumb a:hover {
    color: var(--color-success);
}

.breadcrumb .separator {
    color: var(--color-text-muted);
}

.breadcrumb .current {
    color: var(--color-text);
}

/* 新パンくずリストスタイル */
.breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.breadcrumb__item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
}

.breadcrumb__item a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb__item a:hover {
    color: var(--color-success);
}

.breadcrumb__item .current {
    color: var(--color-text);
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breadcrumb__separator {
    color: var(--color-text-muted);
    margin: 0 6px;
}

.matome-header {
    margin-bottom: 35px;
}

/* ヒーロー画像 */
.matome-hero {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.matome-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.matome-hero-overlay {
    position: absolute;
    bottom: 16px;
    right: 16px;
}

.matome-hero-badge {
    background: var(--color-success);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
}

.matome-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
    line-height: 1.4;
}

.matome-meta {
    display: flex;
    gap: 20px;
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    margin-bottom: 28px;
}

.matome-intro {
    background: var(--color-bg-secondary);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
    line-height: 1.8;
    color: var(--color-text);
    font-size: 0.95rem;
}

.matome-intro p {
    margin-bottom: 12px;
}

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

.matome-intro a {
    color: var(--color-success);
}

.matome-intro a:hover {
    text-decoration: underline;
}

/* 目次 */
.matome-toc {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.matome-toc-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-text);
}

.matome-toc-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    counter-reset: toc;
}

.matome-toc-list li {
    margin-bottom: 0;
    counter-increment: toc;
    border-bottom: 1px solid var(--color-border);
}

.matome-toc-list li:last-child {
    border-bottom: none;
}

.matome-toc-list li a {
    display: flex;
    align-items: center;
    padding: 12px 8px;
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.matome-toc-list li a::before {
    content: counter(toc);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--color-bg-tertiary);
    border-radius: 50%;
    margin-right: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    flex-shrink: 0;
}

.matome-toc-list li a:hover {
    color: var(--color-success);
}

.matome-toc-list li:nth-child(1) a::before {
    background: #ffd700;
    color: #000;
}

.matome-toc-list li:nth-child(2) a::before {
    background: #c0c0c0;
    color: #000;
}

.matome-toc-list li:nth-child(3) a::before {
    background: #cd7f32;
    color: #fff;
}

/* 作品リスト */
.matome-products {
    margin-bottom: 40px;
}

.matome-product {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
}

.matome-product:hover {
    border-color: var(--color-success);
}

/* トップ3のスタイル */
.matome-product.rank-gold {
    border-color: #ffd700;
    border-width: 2px;
}

.matome-product.rank-silver {
    border-color: #c0c0c0;
    border-width: 2px;
}

.matome-product.rank-bronze {
    border-color: #cd7f32;
    border-width: 2px;
}

/* ヘッダー部分 */
.matome-product-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
}

.matome-product-rank {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--color-bg-tertiary);
    padding: 8px 14px;
    border-radius: 8px;
}

.matome-product-rank .rank-icon {
    font-size: 1.1rem;
}

.matome-product-rank .rank-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
}

.matome-product-rank .rank-label {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.matome-product.rank-gold .matome-product-rank {
    background: rgba(255, 215, 0, 0.15);
}
.matome-product.rank-gold .rank-number {
    color: #ffd700;
}

.matome-product.rank-silver .matome-product-rank {
    background: rgba(192, 192, 192, 0.15);
}
.matome-product.rank-silver .rank-number {
    color: #c0c0c0;
}

.matome-product.rank-bronze .matome-product-rank {
    background: rgba(205, 127, 50, 0.15);
}
.matome-product.rank-bronze .rank-number {
    color: #cd7f32;
}

.matome-product-title {
    flex: 1;
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.5;
}

.matome-product-title a {
    color: var(--color-text);
    text-decoration: none;
}

.matome-product-title a:hover {
    color: var(--color-success);
}

/* ボディ部分 */
.matome-product-body {
    display: flex;
    gap: 28px;
    padding: 24px;
}

.matome-product-visual {
    flex-shrink: 0;
    width: 280px;
}

.matome-product-image {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.matome-product-image img {
    width: 100%;
    height: auto;
    display: block;
}

.matome-product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--color-accent);
    color: #000;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* サンプル画像 */
.matome-product-samples {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.matome-product-samples a {
    display: block;
    border-radius: 6px;
    overflow: hidden;
}

.matome-product-samples img {
    width: 100%;
    height: 52px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.matome-product-samples a:hover img {
    opacity: 0.8;
}

.matome-samples-more {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-tertiary);
    color: var(--color-text-secondary);
    font-size: 0.75rem;
    border-radius: 6px;
    text-decoration: none;
}

/* 情報部分 */
.matome-product-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.matome-product-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.stat-item {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.stat-item .stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}

.stat-item .stat-label {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.stat-rating .stat-value {
    color: var(--color-accent);
}

.stat-price .stat-value {
    color: var(--color-primary);
}

.matome-product-circle {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 14px;
}

.matome-product-circle .circle-label {
    color: var(--color-text-muted);
    margin-right: 6px;
}

.matome-product-circle .circle-name {
    color: var(--color-text);
}

.matome-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.matome-product-tags .tag {
    background: var(--color-bg-tertiary);
    color: var(--color-text-secondary);
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: var(--transition);
}

.matome-product-tags .tag:hover {
    background: var(--color-success);
    color: #fff;
}

/* 概要 */
.matome-product-description {
    margin-bottom: 18px;
    padding: 16px;
    background: var(--color-bg-secondary);
    border-radius: 8px;
}

.matome-product-description .description-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.matome-product-description p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* おすすめポイント */
.matome-product-review {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(81, 207, 102, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(81, 207, 102, 0.2);
}

.matome-product-review .review-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-success);
    margin-bottom: 10px;
}

.matome-product-review .user-review p {
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.7;
    margin: 0;
    font-style: italic;
}

.matome-product-review .review-points {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.matome-product-review .review-points li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.5;
}

.matome-product-review .review-points li:last-child {
    margin-bottom: 0;
}

.matome-product-review .review-points li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: bold;
}

/* CTA */
.matome-product-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: auto;
    padding-top: 20px;
}

.matome-product-cta .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-success);
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(81, 207, 102, 0.3);
}

.matome-product-cta .cta-button:hover {
    background: var(--color-success-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(81, 207, 102, 0.4);
}

.matome-product-cta .detail-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

.matome-product-cta .detail-link:hover {
    color: var(--color-success);
}

/* まとめ記事内広告 */
.matome-ad-break {
    width: 100%;
    max-width: 500px;
    margin: 30px auto;
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.matome-ad-break:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.matome-ad-break a {
    display: block;
}

.matome-ad-break img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* まとめ */
.matome-conclusion {
    background: var(--color-bg-secondary);
    padding: 28px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-success);
}

.matome-conclusion h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-text);
}

.matome-conclusion p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.matome-conclusion p:last-child {
    margin-bottom: 0;
}

/* まとめ記事アーカイブ */
.matome-archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.matome-archive-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.matome-archive-card:hover {
    border-color: var(--color-success);
    transform: translateY(-3px);
}

.matome-archive-link {
    display: block;
    text-decoration: none;
}

.matome-archive-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--color-bg-tertiary);
}

.matome-archive-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.matome-archive-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.matome-archive-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.matome-archive-content {
    padding: 15px;
}

.matome-archive-title {
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 8px;
    line-height: 1.4;
}

.matome-archive-meta {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.matome-archive-excerpt {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .matome-product-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px 20px;
    }
    
    .matome-product-body {
        flex-direction: column;
        padding: 20px;
    }
    
    .matome-product-visual {
        width: 100%;
    }
    
    .matome-product-rank .rank-number {
        font-size: 1.5rem;
    }
    
    .matome-title {
        font-size: 1.4rem;
    }
    
    .matome-archive-grid {
        grid-template-columns: 1fr;
    }
    
    .matome-product-samples {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .matome-product-samples img {
        height: 40px;
    }
    
    .matome-product-stats {
        gap: 12px;
    }
    
    .matome-product-cta .cta-button {
        width: 100%;
        text-align: center;
    }
    
    .matome-hero-overlay {
        padding: 20px 15px 15px;
    }
}

/* ========================================
   推し作品（フィーチャー）スタイル
======================================== */

/* サイドバー推し作品（サムネのみ） */
.featured-sidebar-widget {
    padding: 0 !important;
    overflow: hidden;
}

.featured-sidebar-label {
    margin: 0;
    padding: 10px 14px;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
}

.featured-sidebar-thumb {
    display: block;
}

.featured-sidebar-thumb img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.featured-sidebar-thumb:hover img {
    opacity: 0.9;
    transform: scale(1.02);
}

/* 関連作品 */
.related-products-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.related-products-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 20px;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.related-product-card {
    display: block;
    text-decoration: none;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.related-product-card:hover {
    border-color: var(--color-success);
    transform: translateY(-3px);
}

.related-product-card.is-featured {
    border-color: var(--color-primary);
    border-width: 2px;
}

.related-featured-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--color-primary);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 1;
}

.related-product-thumb {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.related-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-product-info {
    padding: 10px;
}

.related-product-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.4;
    margin-bottom: 4px;
}

.related-product-rating {
    font-size: 0.75rem;
    color: var(--color-accent);
    font-weight: 600;
}

@media (max-width: 768px) {
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .related-product-info {
        padding: 8px;
    }
    
    .related-product-title {
        font-size: 0.75rem;
    }
}

/* フローティングバナー */
.featured-floating-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-bg-secondary);
    border-top: 2px solid var(--color-primary);
    padding: 12px 20px;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.featured-floating-close {
    position: absolute;
    top: -12px;
    right: 20px;
    width: 28px;
    height: 28px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-floating-link {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    text-decoration: none;
}

.featured-floating-thumb {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
}

.featured-floating-info {
    flex: 1;
    min-width: 0;
}

.featured-floating-label {
    display: block;
    font-size: 0.75rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 2px;
}

.featured-floating-title {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-floating-cta {
    background: var(--color-success);
    color: #fff;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .featured-after-card {
        flex-direction: column;
    }
    
    .featured-after-thumb {
        width: 100%;
    }
    
    .featured-floating-thumb {
        display: none;
    }
    
    .featured-floating-cta {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}
