/* ─── Variables ─── */
:root {
  --primary:   #0f172a;
  --accent:    #f97316;
  --amazon:    #ff9900;
  --green:     #16a34a;
  --text:      #1e293b;
  --text-sub:  #64748b;
  --bg:        #f8fafc;
  --white:     #ffffff;
  --border:    #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow:    0 4px 20px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.14);
  --radius:    14px;
  --radius-sm: 8px;
  --max-w:     1160px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', -apple-system, 'Hiragino Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── Layout ─── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ─── Header ─── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-size: 1.2rem; font-weight: 900; letter-spacing: -.5px;
  color: var(--primary);
}
.site-logo span { color: var(--accent); }
.site-nav { display: flex; gap: 28px; font-size: .9rem; font-weight: 500; }
.site-nav a { color: var(--text-sub); transition: color .2s; }
.site-nav a:hover { color: var(--accent); }

/* ─── Hero ─── */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #0f172a 100%);
  color: white;
  padding: 72px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-badge {
  display: inline-block;
  background: rgba(249,115,22,.2); border: 1px solid rgba(249,115,22,.4);
  color: #fdba74;
  font-size: .8rem; font-weight: 700; letter-spacing: 1px;
  padding: 4px 14px; border-radius: 100px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900; line-height: 1.3;
  letter-spacing: -.5px; margin-bottom: 16px;
}
.hero h1 em { color: #fbbf24; font-style: normal; }
.hero p {
  font-size: 1.05rem; color: #94a3b8;
  max-width: 520px; margin: 0 auto 36px;
}
.hero-stats {
  display: flex; justify-content: center; gap: 40px;
  font-size: .85rem; color: #64748b;
}
.hero-stats strong { display: block; font-size: 1.6rem; font-weight: 900; color: white; }

/* ─── Section ─── */
.section { padding: 64px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-label {
  font-size: .78rem; font-weight: 700; letter-spacing: 2px;
  color: var(--accent); text-transform: uppercase; margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900; line-height: 1.3; letter-spacing: -.5px;
}
.section-sub { color: var(--text-sub); margin-top: 10px; font-size: .95rem; }

/* ─── Category Filter ─── */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 20px; border-radius: 100px;
  border: 2px solid var(--border);
  background: white; color: var(--text-sub);
  font-size: .88rem; font-weight: 600; cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--accent); background: var(--accent); color: white;
}

/* ─── Product Cards ─── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.product-card {
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  overflow: hidden; transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-image {
  height: 200px; overflow: hidden; background: #f1f5f9;
  position: relative;
}
.card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.product-card:hover .card-image img { transform: scale(1.04); }
.card-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent); color: white;
  font-size: .72rem; font-weight: 700; padding: 3px 10px;
  border-radius: 100px; letter-spacing: .5px;
}
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-category {
  font-size: .75rem; font-weight: 700; color: var(--accent);
  letter-spacing: 1px; margin-bottom: 6px;
}
.card-title {
  font-size: 1rem; font-weight: 700; line-height: 1.5;
  margin-bottom: 10px; color: var(--primary);
}
.card-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.stars { color: #f59e0b; font-size: .9rem; letter-spacing: 1px; }
.rating-num { font-size: .82rem; color: var(--text-sub); font-weight: 600; }
.card-points {
  list-style: none; margin-bottom: 16px; flex: 1;
}
.card-points li {
  font-size: .85rem; color: var(--text-sub);
  padding: 3px 0 3px 18px; position: relative;
}
.card-points li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--green); font-weight: 700;
}
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; border-top: 1px solid var(--border);
  margin-top: auto;
}
.card-price {
  font-size: 1.15rem; font-weight: 900; color: var(--primary);
}
.card-price span { font-size: .78rem; font-weight: 400; color: var(--text-sub); }
.btn-amazon {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--amazon);
  color: var(--primary); font-weight: 800; font-size: .82rem;
  padding: 8px 16px; border-radius: var(--radius-sm);
  border: none; cursor: pointer; transition: filter .2s; text-decoration: none;
}
.btn-amazon:hover { filter: brightness(1.08); }
.btn-amazon svg { width: 14px; height: 14px; }

/* ─── Product Detail Page ─── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; color: var(--text-sub);
  padding: 20px 0;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--border); }

.product-hero {
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 40px;
  margin-bottom: 32px;
}
.product-hero-grid {
  display: grid; grid-template-columns: 360px 1fr;
  gap: 48px; align-items: start;
}
.product-main-image {
  border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--shadow);
}
.product-meta { }
.product-category-tag {
  display: inline-block;
  background: #fef3c7; color: #92400e;
  font-size: .78rem; font-weight: 700; padding: 3px 12px;
  border-radius: 100px; margin-bottom: 14px;
}
.product-title-main {
  font-size: 1.6rem; font-weight: 900;
  line-height: 1.35; letter-spacing: -.5px;
  margin-bottom: 16px;
}
.product-rating-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.stars-lg { color: #f59e0b; font-size: 1.1rem; }
.rating-detail { font-size: .88rem; color: var(--text-sub); }

.product-price-box {
  background: #f8fafc; border-radius: var(--radius-sm);
  padding: 20px; margin-bottom: 24px;
}
.price-label { font-size: .8rem; color: var(--text-sub); margin-bottom: 4px; }
.price-main { font-size: 2rem; font-weight: 900; color: var(--primary); }
.price-main sup { font-size: 1rem; vertical-align: super; }
.price-note { font-size: .78rem; color: var(--text-sub); margin-top: 4px; }

.btn-amazon-lg {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--amazon); color: var(--primary);
  font-weight: 800; font-size: 1rem;
  padding: 16px 24px; border-radius: var(--radius-sm);
  width: 100%; border: none; cursor: pointer;
  transition: filter .2s; text-decoration: none;
  margin-bottom: 10px;
}
.btn-amazon-lg:hover { filter: brightness(1.08); }
.btn-note { font-size: .72rem; color: var(--text-sub); text-align: center; }

.summary-table {
  width: 100%; border-collapse: collapse; font-size: .9rem;
  margin: 24px 0;
}
.summary-table th {
  background: #f8fafc; padding: 10px 14px;
  text-align: left; font-weight: 700; color: var(--text-sub);
  border: 1px solid var(--border); width: 30%;
}
.summary-table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
}

/* ─── Review Sections ─── */
.review-section {
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 36px;
  margin-bottom: 24px;
}
.review-section h2 {
  font-size: 1.25rem; font-weight: 900;
  border-left: 4px solid var(--accent);
  padding-left: 14px; margin-bottom: 20px;
}
.review-section h3 {
  font-size: 1rem; font-weight: 700;
  margin: 20px 0 10px; color: var(--primary);
}
.review-section p { margin-bottom: 14px; color: var(--text); }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; }
.pros, .cons {
  border-radius: var(--radius-sm); padding: 20px;
}
.pros { background: #f0fdf4; }
.cons { background: #fff7ed; }
.pros h4 { color: var(--green); font-weight: 800; margin-bottom: 10px; }
.cons h4 { color: #ea580c; font-weight: 800; margin-bottom: 10px; }
.pros ul, .cons ul { list-style: none; }
.pros li, .cons li { padding: 4px 0 4px 22px; position: relative; font-size: .9rem; }
.pros li::before { content: '○'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.cons li::before { content: '△'; position: absolute; left: 0; color: #ea580c; font-weight: 700; }

.point-cards { display: flex; flex-direction: column; gap: 16px; margin: 20px 0; }
.point-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: #f8fafc; border-radius: var(--radius-sm); padding: 18px;
}
.point-num {
  background: var(--accent); color: white;
  font-size: 1rem; font-weight: 900;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.point-content h4 { font-weight: 700; margin-bottom: 4px; font-size: .95rem; }
.point-content p { font-size: .88rem; color: var(--text-sub); margin: 0; }

.rating-bar-row { display: flex; flex-direction: column; gap: 14px; }
.rating-bar-item { display: flex; align-items: center; gap: 14px; }
.rating-bar-label { width: 100px; font-size: .85rem; font-weight: 600; flex-shrink: 0; }
.rating-bar-track {
  flex: 1; height: 8px; background: var(--border);
  border-radius: 100px; overflow: hidden;
}
.rating-bar-fill {
  height: 100%; background: var(--accent);
  border-radius: 100px; transition: width .6s ease;
}
.rating-bar-num { width: 32px; font-size: .85rem; font-weight: 700; text-align: right; }

/* ─── TOC ─── */
.toc {
  background: #f8fafc; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 24px;
  margin-bottom: 24px;
}
.toc-title { font-weight: 700; margin-bottom: 12px; font-size: .95rem; }
.toc ol { padding-left: 20px; }
.toc li { margin: 6px 0; }
.toc a { color: var(--text-sub); font-size: .88rem; }
.toc a:hover { color: var(--accent); }

/* ─── CTA Box ─── */
.cta-box {
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  border-radius: var(--radius); padding: 48px; text-align: center;
  color: white; margin: 32px 0;
}
.cta-box h2 { font-size: 1.6rem; font-weight: 900; margin-bottom: 12px; }
.cta-box p { color: #94a3b8; margin-bottom: 28px; }
.cta-box .btn-amazon-lg { max-width: 400px; margin: 0 auto 10px; }

/* ─── Footer ─── */
.site-footer {
  background: var(--primary); color: #94a3b8;
  padding: 48px 0 32px; margin-top: 80px;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand .site-logo { color: white; margin-bottom: 12px; }
.footer-brand p { font-size: .85rem; line-height: 1.7; }
.footer-links h4 { color: white; font-weight: 700; margin-bottom: 14px; font-size: .9rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin: 8px 0; }
.footer-links a { font-size: .85rem; color: #64748b; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid #1e293b; padding-top: 24px;
  font-size: .78rem; color: #475569;
  display: flex; justify-content: space-between; align-items: center;
}
.affiliate-notice {
  background: #f8fafc; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 20px;
  font-size: .78rem; color: var(--text-sub);
  margin-bottom: 32px;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .product-hero-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .hero { padding: 48px 0 56px; }
  .hero-stats { gap: 24px; }
  .products-grid { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .product-hero { padding: 24px; }
  .review-section { padding: 24px; }
}
