/*
Theme Name: ZippyLaptop
Author: Antigravity
Version: 1.1
Description: Custom theme based on sample design, optimized and refactored.
*/

/* =========================================
   1. Variables
   ========================================= */
:root {
    /* Colors */
    --brand-primary: #0066cc;
    --brand-dark:    #0f172a;
    --brand-accent:  #38bdf8;
    --bg-gray:       #f8fafc;
    --text-dark:     #334155;
    --border-color:  #e2e8f0;
    --success:       #16a34a;
    --danger:        #dc2626;

    /* Fonts */
    --font-base:    'Open Sans', sans-serif;
    --font-heading: 'Oswald', sans-serif;
}

/* =========================================
   2. Reset & Base Styles
   ========================================= */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-base);
    color: var(--text-dark);
    background: #fff;
    margin: 0;
    line-height: 1.6;
}

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

a {
    transition: color 0.2s, background-color 0.2s;
    color: inherit;
    text-decoration: none;
}

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

/* Article Container (for single posts/pages) */
.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 0; /* Vertical padding only, parent .container handles horizontal */
}

.text-center { text-align: center; }

/* =========================================
   4. Header & Navigation
   ========================================= */
.top-bar { 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px);
    color: var(--text-dark); 
    padding: 0 20px; 
    height: 70px; 
    display: flex; 
    align-items: center; 
    z-index: 1000;
    border-bottom: 3px solid var(--brand-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.logo-wrapper { margin-right: auto; }
.logo { 
    font-family: var(--font-heading); 
    font-size: 1.8rem; 
    color: var(--brand-dark); 
    font-weight: 700; 
    letter-spacing: -0.5px;
}
.logo span { color: var(--brand-primary); }

.nav-links { 
    display: none; 
    gap: 30px; 
    font-weight: 600; 
    font-size: 0.95rem; 
    margin-right: 20px; 
}
.nav-links a { 
    color: #475569; 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    letter-spacing: 0.5px; 
}
.nav-links a:hover { color: var(--brand-primary); }
@media (min-width: 900px) { .nav-links { display: flex; } }

.header-actions { display: flex; gap: 15px; color: #64748b; align-items: center; }

/* ヘッダー検索フォーム */
.header-search { display: flex; align-items: center; border: 1px solid #cbd5e1; border-radius: 20px; overflow: hidden; background: #f8fafc; }
.header-search__input { border: none; background: transparent; padding: 6px 12px; font-size: 0.85rem; color: #334155; outline: none; width: 160px; }
.header-search__input::placeholder { color: #94a3b8; }
.header-search__btn { border: none; background: transparent; padding: 6px 10px; cursor: pointer; color: #64748b; display: flex; align-items: center; }
.header-search__btn:hover { color: var(--brand-primary); }

/* Breadcrumb */
.breadcrumb-bar {
    padding: 15px 0 10px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
}
.breadcrumb-bar a { color: #64748b; }
.breadcrumb-bar a:hover { color: var(--brand-primary); }

/* =========================================
   5. Hero Section
   ========================================= */
.hero {
    position: relative;
    background-image: url('assets/images/hero_bg.png'); 
    background-size: cover;
    background-position: center;
    color: white;
    padding: 60px 20px 80px;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.page-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.meta-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.95rem;
    align-items: center;
}
.meta-info img {
    width: 40px; height: 40px; 
    border-radius: 50%; 
    border: 2px solid white;
}
.author-meta-row { display: flex; align-items: center; gap: 10px; }

/* =========================================
   6. Content Styles
   ========================================= */
/* Lead Text */
.intro-section { max-width: 800px; margin: 0 auto 50px; padding: 0 20px; }
.lead-text { font-size: 1.2rem; margin-bottom: 30px; color: #334155; }

/* Author Box */
.author-box {
    background: #f1f5f9;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-left: 4px solid var(--brand-primary);
}
.author-box img { width: 60px; height: 60px; border-radius: 50%; }
.author-box h4 { margin: 0 0 5px; font-family: var(--font-heading); font-size: 1.1rem; }
.author-box p { margin: 0; font-size: 0.9rem; color: #64748b; }

/* Section Headings */
.section-heading {
    font-family: var(--font-heading);
    font-size: 2rem;
    border-bottom: 3px solid var(--border-color);
    padding-bottom: 10px;
    margin: 60px 0 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--brand-dark);
}
.section-heading i { color: var(--brand-primary); }

/* =========================================
   7. Components
   ========================================= */

/* Button */
.btn-affiliate {
    display: block;
    background: var(--brand-primary);
    color: white;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-top: auto;
    width: 100%;
}
.btn-affiliate:hover { background: #1d4ed8; }
.btn-affiliate.btn-dark { background: var(--brand-dark); }
.btn-affiliate.w-auto { width: auto; display: inline-block; padding-left: 20px; padding-right: 20px; }

.more-link { display: block; text-align: center; margin-top: 10px; font-size: 0.85rem; color: #64748b; text-decoration: underline; }

/* Spec Cards (Conclusion) */
.specs-conclusion {
    background: #fff;
    border: 2px solid var(--brand-primary);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-bottom: 60px;
    box-shadow: 0 10px 25px rgba(0,102,204,0.1);
}
.specs-conclusion h3 { margin-top: 0; font-family: var(--font-heading); color: var(--brand-primary); font-size: 1.5rem; text-transform: uppercase; }
.specs-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}
.spec-card {
    background: var(--brand-dark);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    min-width: 140px;
}
.spec-label { display: block; font-size: 0.75rem; text-transform: uppercase; opacity: 0.8; }
.spec-value { font-size: 1.2rem; font-weight: 700; font-family: var(--font-heading); }

/* ================================================================
   予算別のベストチョイス (Quick Pick TOP3)
================================================================ */
/* ===== TL;DR 結論ボックス ===== */
.ranking-tldr-content {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1.5px solid #bfdbfe;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
}
.ranking-tldr-icon {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}
.ranking-tldr-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    line-height: 1.6;
}
.ranking-tldr-text p { margin: 0; }

.ranking-quick-pick { margin-bottom: 60px; }

.qp-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 20px;
    border: none;
}

/* 外側白カード */
.qp-outer-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    border: 1px solid #e5e7eb;
}
@media (min-width: 768px) {
    .qp-outer-card { padding: 24px; }
}

/* 3カラムグリッド */
.top3-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 900px) {
    .top3-grid { grid-template-columns: 1fr; }
}

/* 各カード */
.qp-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}
.qp-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); }

/* カラーヘッダーバナー */
.qp-card-header {
    padding: 12px 16px;
}
.qp-card-1 .qp-card-header { background: linear-gradient(to right, #eab308, #f59e0b, #ca8a04); }
.qp-card-2 .qp-card-header { background: linear-gradient(to right, #9ca3af, #94a3b8, #6b7280); }
.qp-card-3 .qp-card-header { background: linear-gradient(to right, #d97706, #c2410c, #b45309); }

.qp-label {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

/* カードボディ */
.qp-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* 一言コメント */
.qp-comment {
    font-size: 0.92rem;
    font-weight: 700;
    color: #374151;
    line-height: 1.65;
    margin-top: 0;
    margin-bottom: 12px;
}

/* スペックチップ */
.qp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.qp-chip {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 0.78rem;
    color: #374151;
    font-weight: 500;
}

/* 製品行: 画像 + ブランド・名前・価格 */
.qp-product-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}
.qp-img-area {
    width: 76px;
    min-width: 76px;
    height: 76px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.qp-img-area img { width: 100%; height: 100%; object-fit: contain; }
.qp-product-info { flex: 1; }
.qp-brand {
    font-size: 0.72rem;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}
.qp-product-name {
    font-size: 0.97rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    margin-bottom: 4px;
}
.qp-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #e55a00;
}

/* CTAボタン */
.qp-cta-btn {
    display: block;
    background: #fff;
    color: #2563eb;
    border: 2px solid #2563eb;
    text-align: center;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    margin-top: auto;
    margin-bottom: 10px;
    transition: background 0.2s, color 0.2s;
}
.qp-cta-btn:hover { background: #2563eb; color: #fff; }

/* 詳細レビューリンク */
.qp-review-link {
    display: block;
    text-align: center;
    color: #6b7280;
    font-size: 0.85rem;
    text-decoration: none;
}
.qp-review-link:hover { color: #2563eb; }

/* Price Box (旧コンポーネント用に残す) */
.price-box { text-align: center; margin-bottom: 15px; }
.price-current { font-size: 1.5rem; font-weight: 800; color: var(--brand-dark); }
.price-old { text-decoration: line-through; color: #94a3b8; font-size: 0.9rem; margin-left: 5px; }
.discount { color: var(--danger); font-size: 0.8rem; font-weight: 700; background: #fee2e2; padding: 2px 6px; border-radius: 4px; }

/* Guide Box */
.guide-box {
    background: #f1f5f9;
    padding: 30px;
    border-radius: 12px;
}
.guide-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}
.guide-item h4 { margin: 0 0 5px; }
.guide-item p { margin: 0; font-size: 0.9rem; }

.guide-icon {
    width: 40px; height: 40px;
    background: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--brand-primary);
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Review Cards */
.review-card { margin-bottom: 60px; border: none; border-radius: 0; }
.review-card + .review-card { border-top: 4px solid var(--brand-primary); padding-top: 30px; }

.review-title-row { display: flex; align-items: baseline; gap: 15px; margin-bottom: 15px; flex-wrap: wrap; }
.review-rank { background: var(--brand-primary); color: white; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.5rem; font-family: var(--font-heading); flex-shrink: 0; }

.model-info { flex-grow: 1; }
.review-model { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700; font-family: var(--font-heading); color: var(--brand-dark); margin: 0; line-height: 1.1; }
.verdict-tag { font-family: var(--font-heading); text-transform: uppercase; color: #64748b; font-size: 0.9rem; font-weight: 500; margin-top: 5px; }

.review-content { display: grid; grid-template-columns: 300px 1fr; gap: 40px; margin-top: 25px; }
.review-sidebar { width: 100%; }
.review-img { width: 100%; border: 1px solid var(--border-color); padding: 20px; border-radius: 8px; background: white; object-fit: contain; }

.buy-box { margin-top: 15px; border: 1px solid var(--border-color); padding: 20px; text-align: center; border-radius: 8px; background: #f8fafc; }

/* Review specs mini table */
.specs-mini { width: 100%; font-size: 0.9rem; border-collapse: collapse; margin-top: 20px; }
.specs-mini td { padding: 8px 0; border-bottom: 1px solid #e2e8f0; }
.specs-mini tr:last-child td { border-bottom: none; }
.specs-mini strong { display: block; font-size: 0.75rem; color: #64748b; text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; }

/* Pros & Cons */
.pros-cons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 30px 0; }
.pc-column h4 { font-weight: 800; text-transform: uppercase; font-size: 0.9rem; margin: 0 0 15px; display: block; border-bottom: 2px solid; padding-bottom: 5px; }
.plus-header { color: var(--success); border-color: var(--success) !important; }
.minus-header { color: var(--danger); border-color: var(--danger) !important; }

.pc-list { list-style: none; padding: 0; font-size: 0.95rem; margin: 0; }
.pc-list li { margin-bottom: 10px; position: relative; padding-left: 24px; color: #334155; }
.pc-list.pros li::before { content: '\f00c'; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; color: var(--success); top: 2px; }
.pc-list.cons li::before { content: '\f00d'; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; color: var(--danger); top: 2px; }

.verdict-header { font-family: var(--font-heading); font-size: 1.4rem; margin-top: 30px; margin-bottom: 15px; color: var(--brand-dark); border-left: 5px solid var(--brand-primary); padding-left: 15px; }

/* Comparison Table */
.comp-table-wrapper { overflow-x: auto; margin-bottom: 60px; }
.comp-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.comp-table th { background: var(--brand-dark); color: white; padding: 15px; text-align: left; font-family: var(--font-heading); }
.comp-table td { border-bottom: 1px solid var(--border-color); padding: 12px 15px; }
.comp-table tr:nth-child(even) { background: #f8fafc; }

/* Summary & Related */
.summary-box { background: #e0f2fe; padding: 30px; border-radius: 12px; text-align: center; margin-bottom: 60px; }
.summary-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.related-card {
    display: flex; align-items: center; gap: 15px;
    background: white; border: 1px solid var(--border-color);
    padding: 15px; border-radius: 8px; text-decoration: none; color: inherit;
}
.related-card:hover { border-color: var(--brand-primary); }
.related-thumb { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; background: #eee; }
.related-content strong { display: block; }
.related-content span { font-size: 0.85rem; color: #666; }

/* Comments */
.comments-area { background: #f8fafc; padding: 40px 20px; margin-top: 60px; border-top: 1px solid var(--border-color); }
.comment-form textarea { width: 100%; padding: 15px; border: 1px solid var(--border-color); border-radius: 8px; margin-bottom: 15px; font-family: inherit; }
.btn-submit { background: var(--brand-dark); color: white; border: none; padding: 10px 25px; border-radius: 4px; cursor: pointer; font-weight: 700; text-transform: uppercase; }

.comment-list { margin-top: 30px; }
.comment-item { background: white; padding: 15px; border-radius: 8px; border: 1px solid var(--border-color); margin-bottom: 15px; }
.comment-meta { display: flex; justify-content: space-between; margin-bottom: 5px; font-weight: bold; }
.comment-date { color: #999; font-size: 0.9rem; font-weight: normal; }
.comment-body { margin: 0; font-size: 0.95rem; }

/* Footer */
.site-footer {
    background: var(--brand-dark); 
    color: white; 
    padding: 40px 0; 
    text-align: center; 
    width: 100%;
}

/* =========================================
   8. Page Specific (Index, 404, etc.)
   ========================================= */
/* Index Posts */
.post-entry {
    margin-bottom: 40px; 
    padding: 20px 0; 
    border-bottom: 1px solid #e2e8f0;
}
.entry-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 15px;
}
.entry-title a { color: var(--brand-dark); }
.entry-meta { color: #64748b; font-size: 0.9rem; margin-bottom: 20px; }

/* 404 Page */
.error-404 { text-align: center; padding: 100px 0; }
.error-title { font-family: var(--font-heading); font-size: 6rem; color: var(--brand-primary); margin: 0; }
.error-subtitle { font-family: var(--font-heading); color: var(--brand-dark); }
.error-desc { color: #64748b; }
.error-search { max-width: 300px; margin: 30px auto; }
.btn-home { display: block; width: 200px; margin: 0 auto; }

/* =========================================
   9. Responsive
   ========================================= */
@media (max-width: 768px) {
    .review-content { grid-template-columns: 1fr; }
    .pros-cons-grid { grid-template-columns: 1fr; }
    .page-title { font-size: 2rem; }
    .hero { padding: 40px 20px; }
}

/* Laptop Single */
.laptop-title {
    margin: 0 0 30px;
    font-size: 1.8em;
    line-height: 1.2;
    color: #111;
}
@media (max-width: 768px) {
    .laptop-title {
        font-size: 1.4em;
        margin-bottom: 20px;
    }
}

/* Article Content Images */
.entry-content img,
.laptop-tldr img,
.lead-content img,
.guide-content img {
    max-width: 100%;
    height: auto;
}

/* PC Specific Image Size */
@media (min-width: 768px) {
    .entry-content img,
    .laptop-tldr img,
    .lead-content img,
    .guide-content img {
        width: 100%;
        max-width: 600px;
        display: block;
        margin: 20px auto; /* Center alignment */
    }
}

/* Mini Author Bio Links */
.mini-author-text a {
    color: var(--brand-primary);
    text-decoration: underline;
}
.mini-author-text a:hover {
    text-decoration: none;
    opacity: 0.8;
}

/* =========================================
   Ranking Detail Cards (rd-*)
   ========================================= */
.ranking-detail-section {
    margin-bottom: 60px;
}

.rd-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 28px 32px;
    margin-bottom: 40px;
}

.rd-card-head {
    margin-bottom: 20px;
}

.rd-rank-badge,
.st-rank-badge {
    display: inline-block;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
    background: #6b7280;
}
.rd-rank-badge-1, .st-rank-badge-1 { background: linear-gradient(to right, #eab308, #f59e0b, #ca8a04); }
.rd-rank-badge-2, .st-rank-badge-2 { background: linear-gradient(to right, #9ca3af, #94a3b8, #6b7280); }
.rd-rank-badge-3, .st-rank-badge-3 { background: linear-gradient(to right, #d97706, #c2410c, #b45309); }

.rd-brand {
    font-size: 0.8rem;
    color: #6b7280;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.rd-product-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: #111;
    margin: 0;
    line-height: 1.2;
}

/* 一言コメント */
.rd-comment-box {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 14px 18px;
    border-radius: 0 8px 8px 0;
    color: #1e3a5f;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 24px;
}

/* 2カラム */
.rd-two-col {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    margin-bottom: 24px;
    align-items: start;
}

.rd-product-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.rd-img-placeholder {
    width: 100%;
    padding-bottom: 66%;
    background: #f3f4f6;
    border-radius: 8px;
}

/* ZippyScore */
.rd-zippy-score {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 18px;
}

.rd-score-num {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--brand-primary);
    line-height: 1;
}

.rd-score-denom {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 600;
}

.rd-score-label {
    font-size: 0.75rem;
    background: linear-gradient(to right, rgb(225,29,72), rgb(217,119,6), rgb(101,163,13), rgb(13,148,136), rgb(79,70,229), rgb(192,38,211));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    margin-left: 4px;
}

/* buy_if / avoid_if */
.rd-list-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rd-list-title--buy  { color: #16a34a; }
.rd-list-title--avoid { color: #dc2626; }
.rd-list-icon--buy   { color: #16a34a; }
.rd-list-icon--avoid { color: #dc2626; }

.rd-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.rd-list li {
    font-size: 0.87rem;
    color: #374151;
    padding-left: 14px;
    position: relative;
    margin-bottom: 4px;
    line-height: 1.4;
}

.rd-list li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: #9ca3af;
}

/* 主要スペック */
.rd-specs-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.rd-specs-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 14px;
}

.rd-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 20px;
}

.rd-spec-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.rd-spec-label {
    font-size: 0.72rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rd-spec-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111;
}

/* レビュー概要 */
.rd-review-summary {
    margin-bottom: 16px;
    font-size: 0.92rem;
    color: #374151;
    line-height: 1.7;
}
.rd-review-summary p { margin: 0 0 1.5rem; }
.rd-review-summary p:last-child { margin-bottom: 0; }
.rd-review-summary img { max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0; }


/* 詳細レビューボタン */
.rd-review-btn {
    display: block;
    width: 100%;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 0.92rem;
    color: #374151;
    text-decoration: none;
    margin-bottom: 28px;
    transition: border-color 0.2s, color 0.2s;
}

.rd-review-btn:hover {
    border-color: #3b82f6;
    color: #2563eb;
}

/* 価格テーブル */
.rd-price-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
}

.rd-price-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 12px;
}

.rd-price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.rd-price-table thead th {
    font-size: 0.78rem;
    color: #9ca3af;
    font-weight: 600;
    text-align: left;
    padding: 6px 10px 10px;
    border-bottom: 1px solid #e5e7eb;
}

.rd-price-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
}

.rd-price-table tbody tr:last-child {
    border-bottom: none;
}

.rd-price-table td {
    padding: 12px 10px;
    vertical-align: middle;
}

.rd-pt-store {
    font-weight: 700;
    color: #111;
    white-space: nowrap;
}

.rd-pt-info {
    color: #6b7280;
    font-size: 0.83rem;
    line-height: 1.4;
}

.rd-pt-sale  { color: #dc2626; font-size: 0.82rem; font-weight: 700; }
.rd-pt-noinfo { color: #9ca3af; font-size: 0.82rem; }

.rd-pt-remain {
    display: block;
    color: #dc2626;
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 2px;
}

.rd-pt-price-num {
    font-size: 1.1rem;
    font-weight: 800;
    color: #dc2626;
}

.rd-pt-tax {
    font-size: 0.75rem;
    color: #9ca3af;
    display: block;
}

.rd-pt-discount-rate {
    font-size: 0.8rem;
    font-weight: 700;
    color: #d32f2f;
    background: #fee2e2;
    padding: 1px 6px;
    border-radius: 4px;
    display: inline-block;
}

.rd-pt-regular {
    font-size: 0.85rem;
    color: #9ca3af;
    display: block;
}

.rd-pt-dash { color: #9ca3af; }

.rd-pt-btn-cell {
    text-align: right;
    white-space: nowrap;
}

.rd-pt-cta-btn {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    border: 1.5px solid #2563eb;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.rd-pt-cta-btn:hover { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }

@media (max-width: 768px) {
    .rd-card { padding: 18px 16px; border-radius: 12px; }
    .rd-product-name { font-size: 1.3rem; }
    .rd-two-col { grid-template-columns: 1fr; gap: 20px; }
    .rd-specs-grid { grid-template-columns: repeat(2, 1fr); }

    .rd-price-table thead { display: none; }
    .rd-price-table tbody tr { display: block; padding: 14px 0; border-bottom: 1px solid #e5e7eb; }
    .rd-price-table td { display: block; padding: 2px 0; border: none; }
    .rd-pt-btn-cell { text-align: left; padding-top: 8px; }
    .rd-pt-cta-btn { display: block; text-align: center; width: 100%; padding: 10px; box-sizing: border-box; }
}

/* =========================================
   その他のおすすめモデル (om-*)
   ========================================= */
.ranking-other-section {
    margin-bottom: 60px;
}

.om-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111;
    margin: 0 0 6px;
}

.om-section-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0 0 24px;
}

.om-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.om-card {
    flex: 1 1 250px;
    max-width: 300px;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.om-img-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f3f4f6;
}

.om-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.om-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.om-brand {
    font-size: 0.72rem;
    color: #6b7280;
    letter-spacing: 0.03em;
    margin-bottom: 2px;
}

.om-product-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #111;
    margin: 0 0 6px;
    line-height: 1.2;
}

.om-comment {
    font-size: 0.82rem;
    color: #6b7280;
    margin: 0 0 10px;
    line-height: 1.4;
}

.om-score {
    display: flex;
    align-items: baseline;
    gap: 3px;
    margin-bottom: 10px;
}

.om-score-num {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--brand-primary);
    line-height: 1;
}

.om-score-denom {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 600;
}

.om-score-label {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-left: 3px;
}

.om-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 8px;
    margin-bottom: 12px;
}

.om-spec {
    font-size: 0.75rem;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.om-spec-key { color: #9ca3af; }

.om-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 14px;
    margin-top: auto;
}

.om-btns {
    display: flex;
    gap: 8px;
}

.om-btn-detail {
    flex: 0 0 auto;
    border: 1px solid #d1d5db;
    color: #374151;
    border-radius: 6px;
    padding: 9px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: border-color 0.2s;
}

.om-btn-detail:hover { border-color: #6b7280; color: #111; }

.om-btn-price {
    flex: 1;
    background: #2563eb;
    color: #fff;
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
}

.om-btn-price:hover { background: #1d4ed8; color: #fff; }

@media (max-width: 768px) {
    .om-card {
        flex: 0 0 100%;
        max-width: 100%;
        min-width: 0;
    }
}

/* =========================================
   スペック比較表 (spec-table)
   ========================================= */
.ranking-spec-table-section {
    margin-bottom: 60px;
}

.spec-table-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111;
    margin: 0 0 6px;
}

.spec-table-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0 0 20px;
}

.spec-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    min-width: 620px;
}

.spec-table thead tr {
    background: #0f172a;
}

.spec-table thead th {
    color: #fff;
    font-weight: 700;
    text-align: left;
    padding: 14px 16px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.spec-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
}

.spec-table tbody tr:last-child {
    border-bottom: none;
}

.spec-table tbody td {
    padding: 14px 16px;
    color: #374151;
    vertical-align: middle;
}

.spec-table tbody tr:nth-child(odd) {
    background: #fff;
}

.spec-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.st-col-name {
    min-width: 140px;
}

/* スペック比較表バッジの上書き（サイズ・余白のみ） */
.st-rank-badge {
    font-size: 0.68rem;
    padding: 2px 7px;
    margin-right: 6px;
    vertical-align: middle;
    margin-bottom: 0;
}

.st-col-price {
    white-space: nowrap;
    font-weight: 700;
    color: #dc2626;
}

.st-price-link {
    color: #dc2626;
    text-decoration: none;
    font-weight: 700;
}

.st-price-link:hover {
    text-decoration: underline;
}

/* =========================================
   FAQアコーディオン
   ========================================= */
.ranking-faq-section {
    margin-bottom: 60px;
}

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

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.faq-item[open] {
    border-color: #e5e7eb;
    background: #fff;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    color: #111;
    list-style: none;
    user-select: none;
}

/* デフォルトの▶マーカーを消す */
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; }

/* シェブロンアイコン */
.faq-question::after {
    content: '';
    display: block;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-left: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
    transform: rotate(180deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

.faq-answer {
    padding: 0 20px 18px;
    font-size: 0.93rem;
    color: #374151;
    line-height: 1.75;
}

/* =========================================
   まとめセクション (matome-*)
   ========================================= */
.ranking-matome-section {
    margin-bottom: 60px;
}

.matome-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111;
    margin: 0 0 20px;
}

.matome-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.matome-row {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 28px;
    border-bottom: 1px solid #f3f4f6;
}

.matome-row--last {
    border-bottom: none;
}

.matome-row-left {
    flex: 1;
    min-width: 0;
}

.matome-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid;
    margin-bottom: 8px;
}

.matome-comment {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0 0 6px;
    line-height: 1.4;
}

.matome-product-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 6px;
    line-height: 1.3;
}

.matome-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: #dc2626;
}

.matome-row-right {
    flex-shrink: 0;
}

.matome-cta-btn {
    display: inline-block;
    background: #ea580c;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.matome-cta-btn:hover {
    background: #c2410c;
    color: #fff;
}

@media (max-width: 768px) {
    .matome-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 20px 18px;
    }

    .matome-cta-btn {
        display: block;
        text-align: center;
        width: 100%;
        padding: 14px;
    }
}

/* =========================================
   Home Page (hp-*)
   ========================================= */

/* 共通コンテナ */
.hp-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.hp-inner--center {
    text-align: center;
}

/* セクション共通 */
.hp-section {
    padding: 64px 0;
}

/* セクションラベル（アイコン + タイトル） */
.hp-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.hp-section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #dc2626;
    color: #fff;
    border-radius: 50%;
    flex-shrink: 0;
}

.hp-section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #111;
    margin: 0;
}

.hp-section-sub {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0 0 28px;
    line-height: 1.6;
}

/* ボタン */
.hp-btn-primary {
    display: inline-block;
    background: #FB2C36;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 13px 26px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.hp-btn-primary:hover {
    background: #e0111b;
    color: #fff;
}

.hp-btn-outline {
    display: inline-block;
    border: 2px solid rgba(255,255,255,0.7);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 11px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.hp-btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* ヒーロー */
.hp-hero {
    background: linear-gradient(135deg, #0F172B 0%, #1C398E 50%, #1D293D 100%);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 80px 0 88px;
}

.hp-hero-inner {
    text-align: center;
}

.hp-hero-h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.25;
    margin: 0 0 20px;
}

.hp-hero-sub {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.7;
    margin: 0 0 36px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.hp-hero-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 実機レビューカード */
.hp-review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.hp-review-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}

.hp-review-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.hp-review-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3f4f6;
}

.hp-review-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-review-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-review-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hp-review-brand {
    font-size: 0.7rem;
    color: #6b7280;
    letter-spacing: 0.03em;
    margin-bottom: 3px;
}

.hp-review-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #111;
    line-height: 1.3;
    margin-bottom: 6px;
}

.hp-review-comment {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.4;
    margin: 0 0 8px;
}

.hp-review-score {
    display: flex;
    align-items: baseline;
    gap: 3px;
    margin-bottom: 10px;
}

.hp-review-score-num {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--brand-primary);
    line-height: 1;
}

.hp-review-score-denom {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 600;
}

.hp-review-score-label {
    font-size: 0.68rem;
    color: #9ca3af;
    margin-left: 3px;
}

.hp-review-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.hp-review-price {
    font-size: 1rem;
    font-weight: 800;
    color: #111;
}

.hp-review-detail-link {
    font-size: 0.8rem;
    color: #6b7280;
}

.hp-more-link-wrap {
    text-align: center;
}

.hp-link-more {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: #FB2C36;
    border-radius: 8px;
    padding: 10px 28px;
    transition: background 0.2s;
}

.hp-link-more:hover {
    background: #e0111b;
    color: #fff;
}

/* 用途別カード */
.hp-ranking-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.hp-ranking-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.hp-ranking-card:hover {
    border-color: #2563eb;
    box-shadow: 0 2px 10px rgba(37,99,235,0.10);
}

.hp-ranking-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}

.hp-ranking-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.hp-ranking-card:hover .hp-ranking-thumb img {
    transform: scale(1.04);
}

.hp-ranking-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-ranking-name {
    padding: 10px 12px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #111;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 特徴セクション */
.hp-features-section {
    background: #f8fafc;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 64px 0;
}

.hp-features-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111;
    margin: 0 0 8px;
}

.hp-features-sub {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0 0 40px;
}

.hp-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.hp-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hp-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    margin-bottom: 12px;
}

.hp-feature-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 6px;
}

.hp-feature-desc {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* レビュー方法セクション（ダーク） */
.hp-about-section {
    background: linear-gradient(135deg, #0F172B 0%, #1C398E 50%, #1D293D 100%);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 64px 0;
}

.hp-about-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 28px;
    text-align: center;
}

.hp-about-body {
    max-width: 680px;
    margin: 0 auto;
}

.hp-about-body p {
    color: #f1f5f9;
    font-size: 0.93rem;
    line-height: 1.8;
    margin: 0 0 16px;
}

.hp-about-body p:last-child {
    margin-bottom: 0;
}

.hp-about-body strong {
    color: #fff;
}

.hp-about-note {
    color: #64748b !important;
    font-size: 0.8rem !important;
}

/* 最終CTA */
.hp-cta-section {
    padding: 72px 0;
}

.hp-cta-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111;
    margin: 0 0 12px;
}

.hp-cta-sub {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0 0 28px;
}

/* フッター */
.site-footer {
    background: #050d1a;
    color: #fff;
    padding: 0;
    text-align: left;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 56px 24px 48px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.footer-tagline {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 14px 0 0;
    line-height: 1.7;
    max-width: 260px;
}

.footer-col-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    text-align: center;
    padding: 16px 24px;
    font-size: 0.78rem;
    color: #94a3b8;
}

/* =========================================
   Home Page Responsive
   ========================================= */
@media (max-width: 768px) {
    .hp-hero {
        padding: 56px 0 64px;
    }

    .hp-hero-h1 {
        font-size: 1.7rem;
    }

    .hp-hero-sub {
        font-size: 0.88rem;
    }

    .hp-hero-btns {
        flex-direction: column;
        align-items: stretch;
        max-width: 280px;
        margin: 0 auto;
    }

    .hp-btn-primary,
    .hp-btn-outline {
        text-align: center;
    }

    .hp-review-grid {
        grid-template-columns: 1fr;
    }

    .hp-ranking-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hp-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 20px 36px;
    }

    .footer-tagline {
        max-width: 100%;
    }
}

/* =========================================
   固定ページ (page.php)
   ========================================= */

.page-wrap {
    max-width: 740px;
    margin: 0 auto;
    padding: 40px 0 80px;
}

/* パンくずリスト */
.page-breadcrumb {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.page-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.15s;
}

.page-breadcrumb a:hover {
    color: #2563eb;
}

.page-breadcrumb-sep {
    color: #d1d5db;
}

/* ページヘッダー */
.page-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f3f4f6;
}

.page-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: #111;
    line-height: 1.3;
    margin: 0 0 10px;
    text-transform: none;
}

.page-updated {
    font-size: 0.78rem;
    color: #9ca3af;
    margin: 0;
}

/* ページ本文 */
.page-content {
    line-height: 1.85;
    color: #374151;
    font-size: 0.95rem;
}

.page-content h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111;
    margin: 48px 0 16px;
    padding-left: 12px;
    border-left: 4px solid #2563eb;
    line-height: 1.4;
}

.page-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2937;
    margin: 32px 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e5e7eb;
}

.page-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #374151;
    margin: 24px 0 8px;
}

.page-content p {
    margin: 0 0 18px;
}

.page-content a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.page-content a:hover {
    color: #1d4ed8;
}

.page-content ul,
.page-content ol {
    margin: 0 0 18px;
    padding-left: 1.6em;
}

.page-content li {
    margin-bottom: 6px;
}

.page-content ul li {
    list-style-type: disc;
}

.page-content ol li {
    list-style-type: decimal;
}

/* テーブル */
.page-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    margin: 24px 0;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.page-content th {
    background: #1e3a8a;
    color: #fff;
    font-weight: 700;
    padding: 10px 14px;
    text-align: left;
    white-space: nowrap;
}

.page-content td {
    padding: 10px 14px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.page-content tr:nth-child(even) td {
    background: #f8fafc;
}

/* 引用 */
.page-content blockquote {
    border-left: 4px solid #e5e7eb;
    margin: 24px 0;
    padding: 12px 20px;
    background: #f9fafb;
    color: #6b7280;
    font-style: italic;
}

.page-content blockquote p {
    margin: 0;
}

/* 区切り線 */
.page-content hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 36px 0;
}

/* コード */
.page-content code {
    background: #f3f4f6;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.85em;
    color: #374151;
}

.page-content pre {
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    font-size: 0.85rem;
    margin: 24px 0;
}

.page-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* 強調 */
.page-content strong {
    font-weight: 700;
    color: #111;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .page-wrap {
        padding: 28px 0 60px;
    }

    .page-content h2 {
        font-size: 1.1rem;
        margin-top: 36px;
    }

    .page-content h3 {
        font-size: 0.98rem;
    }

    .page-content table {
        font-size: 0.82rem;
    }
}

/* 運営者情報テーブル */
.operator-info-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.operator-info-table th {
  width: 24%;
}

.operator-info-table td {
  width: 76%;
}

/* =========================================
   Contact Form 7
   ========================================= */

.wpcf7 {
    margin-top: 32px;
}

/* ラベル */
.wpcf7 label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

/* テキスト・メール・URL・tel 入力 */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 input[type="tel"] {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.93rem;
    color: #111;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="tel"]:focus {
    outline: none;
    border-color: #2563eb;
}

/* テキストエリア */
.wpcf7 textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.93rem;
    color: #111;
    background: #fff;
    resize: vertical;
    min-height: 160px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.wpcf7 textarea:focus {
    outline: none;
    border-color: #2563eb;
}

/* 送信ボタン */
.wpcf7 input[type="submit"] {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 36px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.02em;
}

.wpcf7 input[type="submit"]:hover {
    background: #1d4ed8;
}

/* フォームの各行間 */
.wpcf7 p {
    margin-bottom: 20px;
}

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

/* バリデーションエラー */
.wpcf7-not-valid-tip {
    font-size: 0.8rem;
    color: #dc2626;
    margin-top: 4px;
    display: block;
}

.wpcf7 input.wpcf7-not-valid,
.wpcf7 textarea.wpcf7-not-valid {
    border-color: #dc2626;
}

/* 送信結果メッセージ */
.wpcf7-response-output {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    border: none !important;
}

.wpcf7-response-output.wpcf7-mail-sent-ok {
    background: #f0fdf4;
    color: #166534;
}

.wpcf7-response-output.wpcf7-mail-sent-ng,
.wpcf7-response-output.wpcf7-validation-errors {
    background: #fef2f2;
    color: #991b1b;
}

/* スピナー非表示（任意） */
.wpcf7 .ajax-loader {
    display: none;
}

/* チェックボックス行の整列（page.php内CF7限定） */
.page-content .wpcf7 .wpcf7-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 0;
    padding-left: 0;
}

.page-content .wpcf7 .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
    margin-bottom: 0;
}

.page-content .wpcf7 .wpcf7-list-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin: 0;
    cursor: pointer;
    accent-color: #2563eb;
}

/* プライバシー補足文（リンクなし・プレーンテキスト） */
.page-content .wpcf7 .privacy-note {
    font-size: 0.78rem;
    color: #9ca3af;
    margin-top: 8px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.page-content .wpcf7 .wpcf7-list-item-label {
    display: inline;
}

/* CF7 チェックボックス: br を非表示にして1行化 */
.page-content .wpcf7 label.privacy-consent {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
}

.page-content .wpcf7 label.privacy-consent br {
    display: none;
}

.page-content .wpcf7 label.privacy-consent .wpcf7-acceptance {
    display: flex;
    align-items: center;
}

.page-content .wpcf7 label.privacy-consent input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin: 0;
    cursor: pointer;
    accent-color: #2563eb;
}

/* CF7 セレクトボックス */
.wpcf7 select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.93rem;
    color: #111;
    background: #fff;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.wpcf7 select:focus {
    outline: none;
    border-color: #2563eb;
}

/* =========================================
   アーカイブページ共通
   ========================================= */

.archive-wrap {
    padding: 40px 0 80px;
}

.archive-title {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 800;
    color: #111;
    margin: 0 0 32px;
    text-transform: none;
}

.archive-empty {
    color: #6b7280;
    padding: 40px 0;
}

/* ページネーション */
.archive-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    border: 1.5px solid #e5e7eb;
    transition: border-color 0.15s, background 0.15s;
}

.archive-pagination .page-numbers.current {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.archive-pagination .page-numbers:hover:not(.current) {
    border-color: #2563eb;
    color: #2563eb;
}

/* Laptop アーカイブ カードグリッド */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.arc-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}

.arc-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.arc-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3f4f6;
}

.arc-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.arc-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arc-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.arc-card-brand {
    font-size: 0.7rem;
    color: #6b7280;
    letter-spacing: 0.03em;
    margin-bottom: 3px;
}

.arc-card-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
    margin-bottom: 6px;
}

.arc-card-comment {
    font-size: 0.78rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 10px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.arc-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f3f4f6;
}

.arc-card-score {
    font-size: 0.8rem;
    color: #2563eb;
}

.arc-card-score strong {
    font-size: 1.1rem;
    font-weight: 800;
}

.arc-card-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111;
}

/* Ranking アーカイブ リストグリッド */
.archive-ranking-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.arc-ranking-card {
    display: block;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.arc-ranking-card:hover {
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37,99,235,0.08);
}

.arc-ranking-card-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
}

.arc-ranking-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    flex-shrink: 0;
}

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

.arc-ranking-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
}

.arc-ranking-lead {
    font-size: 0.78rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.arc-ranking-arrow {
    font-size: 1.1rem;
    color: #9ca3af;
    flex-shrink: 0;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .archive-grid {
        grid-template-columns: 1fr;
    }
}
