/* ═══════════════════════════════════════
   diff-suke.men Design
   参考: 価格.com / mybest / 家電Watch
   ═══════════════════════════════════════ */

:root {
    --bg: #f4f5f7;
    --card: #fff;
    --text: #333;
    --muted: #777;
    --link: #1a6fb5;
    --accent: #d94040;
    --accent-hover: #b53030;
    --nav-bg: #2c2c3a;
    --border: #e2e2e2;
    --radius: 4px;
    --max-w: 960px;
}

*, *::before, *::after { box-sizing: border-box; }

body { background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; -webkit-font-smoothing: antialiased; }

.site-container { background: var(--bg); }
.site-inner { max-width: var(--max-w); margin: 0 auto; padding: 24px 16px; clear: both; }
.content { width: 100%; float: none; }
.sidebar { display: none; }
.entry { margin: 0; background: none; }

/* ── Header ── */
.site-header {
    background: var(--nav-bg);
    min-height: 52px;
    position: sticky; top: 0; z-index: 100;
}
.title-area { float: left; padding: 0 16px; }
.site-title { font-size: 16px; line-height: 52px; margin: 0; font-weight: 700; }
.site-title a { color: #fff; text-decoration: none; letter-spacing: .5px; }
.site-title a:hover { opacity: .8; }
.nav-primary { float: right; }
.nav-primary .menu { display: flex; }
.nav-primary .menu-item { margin: 0; }
.nav-primary .menu-item a { color: rgba(255,255,255,.75); padding: 0 14px; line-height: 52px; font-size: 13px; display: block; transition: color .15s; }
.nav-primary .menu-item a:hover { color: #fff; }
.nav-primary .menu-item-has-children > a::after { content: " ▾"; font-size: 10px; }
.nav-primary .sub-menu { display: none; position: absolute; background: #3a3a4a; min-width: 140px; border-radius: 0 0 var(--radius) var(--radius); }
.nav-primary .menu-item:hover .sub-menu { display: block; }
.nav-primary .sub-menu a { line-height: 1.4; padding: 10px 16px; font-size: 13px; }

/* ── Hero (compact, Japanese comparison site style) ── */
.ds-hero {
    background: #fff;
    border-bottom: 1px solid var(--border);
    text-align: center;
    padding: 40px 20px 36px;
    margin: 0;
}
.ds-hero-inner { max-width: 540px; margin: 0 auto; }
.ds-hero h1 { font-size: 24px; font-weight: 700; color: var(--text); margin: 0 0 10px; line-height: 1.4; }
.ds-hero p { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.ds-hero-buttons { display: flex; gap: 12px; justify-content: center; }
.ds-btn-hero {
    padding: 10px 24px; border-radius: var(--radius); font-size: 14px; font-weight: 600;
    text-decoration: none; display: inline-block; border: 1px solid transparent;
}
.ds-btn-hero:first-child { background: var(--accent); color: #fff; border-color: var(--accent); }
.ds-btn-hero:first-child:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.ds-btn-outline { background: #fff; border-color: #ccc; color: var(--text); }
.ds-btn-outline:hover { border-color: #999; background: #fafafa; }

/* ── Category Grid ── */
.ds-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 24px 0 32px;
}
.ds-cat-card {
    display: flex; flex-direction: column; justify-content: center;
    padding: 20px 16px; background: var(--card); text-align: center;
    text-decoration: none; transition: background .1s;
}
.ds-cat-card:hover { background: #fafafa; text-decoration: none; }
.ds-cat-card strong { display: block; font-size: 15px; color: var(--link); margin-bottom: 4px; }
.ds-cat-card strong::before { content: "▸ "; }
.ds-cat-card span { font-size: 12px; color: var(--muted); }

/* ── Sections ── */
.ds-section { margin-bottom: 40px; }
.ds-section-title {
    font-size: 18px; font-weight: 700; color: var(--text);
    margin-bottom: 16px; padding-left: 12px;
    border-left: 4px solid var(--accent);
}

/* ── Post Cards (Japanese blog style) ── */
.ds-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ds-post-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
}
.ds-post-card:hover { border-color: #ccc; }
.ds-post-thumb img { width: 100%; height: 140px; object-fit: cover; display: block; background: #eee; }
.ds-post-card h3 { font-size: 14px; margin: 12px 14px 4px; line-height: 1.5; }
.ds-post-card h3 a { color: var(--text); text-decoration: none; }
.ds-post-card h3 a:hover { color: var(--link); text-decoration: underline; }
.ds-post-card time { display: block; font-size: 11px; color: var(--muted); margin: 0 14px 12px; }

/* ── Comparison Table (kakaku.com style) ── */
.ds-compare-wrap {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border); border-radius: var(--radius);
    margin: 16px 0;
}
.ds-compare-table {
    width: 100%; border-collapse: collapse; font-size: 13px;
    min-width: 700px; background: var(--card);
}
.ds-compare-table thead th {
    background: #f0f2f5;
    color: var(--text);
    padding: 10px 12px; text-align: center; font-weight: 600;
    white-space: nowrap; border-bottom: 2px solid #d0d0d0; font-size: 12px;
}
.ds-compare-table thead th small { font-weight: 400; color: var(--muted); font-size: 10px; }
.ds-compare-table td {
    padding: 8px 12px; text-align: center;
    border-bottom: 1px solid var(--border); vertical-align: middle;
}
.ds-compare-table tbody tr:hover { background: #f8f9fc; }
.ds-compare-table .ds-sticky-col {
    position: sticky; left: 0; background: var(--card); z-index: 2;
    min-width: 160px; text-align: left; font-weight: 600;
}
.ds-compare-table tbody tr:hover .ds-sticky-col { background: #f8f9fc; }
.ds-compare-table .ds-product-name a { color: var(--link); text-decoration: none; }
.ds-compare-table .ds-product-name a:hover { text-decoration: underline; }
.ds-na { color: #ccc; }
.ds-btn-buy {
    display: inline-block; padding: 5px 14px;
    background: var(--accent); color: #fff; border-radius: 3px;
    font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.ds-btn-buy:hover { background: var(--accent-hover); color: #fff; }

/* ── Filters ── */
.ds-filters {
    margin-bottom: 12px; padding: 10px 14px;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
}
.ds-filter-form { display: flex; gap: 16px; align-items: center; }
.ds-filter-form label { font-size: 13px; font-weight: 600; color: var(--text); }
.ds-filter-form select {
    margin-left: 6px; padding: 4px 8px;
    border: 1px solid var(--border); border-radius: 3px; font-size: 13px; background: #fff;
}

/* ── CTA Block ── */
.ds-cta {
    margin: 24px 0; padding: 20px 24px;
    background: #fef6f6; border: 1px solid #fdd;
    border-radius: var(--radius); text-align: center;
}
.ds-cta strong { display: block; font-size: 16px; color: var(--text); margin-bottom: 6px; }
.ds-cta p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.ds-btn-cta {
    display: inline-block; padding: 8px 22px;
    background: var(--accent); color: #fff; border-radius: var(--radius);
    font-size: 14px; font-weight: 600; text-decoration: none;
}
.ds-btn-cta:hover { background: var(--accent-hover); }

/* ── Product Single ── */
.ds-product-specs {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0; margin: 20px 0;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden;
}
.ds-product-specs dt, .ds-product-specs dd {
    padding: 8px 14px; margin: 0;
    border-bottom: 1px solid var(--border);
}
.ds-product-specs dt { font-weight: 600; color: var(--text); font-size: 13px; background: #f8f9fa; }
.ds-product-specs dd { font-size: 13px; color: var(--text); }
.ds-product-description { max-width: 680px; font-size: 15px; line-height: 1.8; }
.ds-related { margin-top: 28px; padding: 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.ds-related strong { font-size: 14px; }
.ds-related ul { margin: 8px 0 0 18px; }
.ds-related li { margin: 4px 0; }
.ds-related a { color: var(--link); }

/* ── Page titles ── */
.entry-title { font-size: 22px; font-weight: 700; margin: 0 0 8px; color: var(--text); }

/* ── Footer ── */
.site-footer { background: var(--nav-bg); color: rgba(255,255,255,.5); padding: 24px 16px; text-align: center; font-size: 12px; }

/* ── Mobile ── */
@media (max-width: 768px) {
    .ds-hero h1 { font-size: 20px; }
    .ds-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .ds-post-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-primary { float: none; }
    .nav-primary .menu { justify-content: center; }
}
@media (max-width: 480px) {
    .ds-cat-grid { grid-template-columns: 1fr; }
    .ds-post-grid { grid-template-columns: 1fr; }
    .ds-product-specs { grid-template-columns: 1fr; }
    .ds-filter-form { flex-direction: column; }
}
