* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #c97b4b;
  --secondary: #2d1a0e;
  --bg: #fdf8f2;
  --white: #ffffff;
  --text: #3d2a1a;
  --text-light: #8a7060;
  --border: #e8d8c4;
  --good: #27ae60;
  --bad: #e74c3c;
  --shadow: 0 2px 12px rgba(100,60,20,0.07);
  --shadow-hover: 0 8px 28px rgba(100,60,20,0.14);
  --radius: 12px;
}

body {
  font-family: system-ui, -apple-system, 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ===== ヘッダー ===== */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--secondary);
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo span {
  color: var(--text-light);
  font-weight: 400;
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-light);
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--secondary);
}

/* ===== メインコンテンツ ===== */
main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ===== ヒーロー ===== */
.hero {
  margin-bottom: 64px;
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
}

.hero-banner {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}

/* ===== セクションタイトル ===== */
.section-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== カテゴリグリッド ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 64px;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}

.category-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.category-card .icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.category-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 4px;
}

.category-card p {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ===== 商品カードグリッド ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.product-card > a {
  display: block;
}

.card-img-wrap {
  aspect-ratio: 16 / 9;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0 auto;
}

.card-body {
  padding: 16px;
}

.cat-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  background: #fdf0e4;
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 8px;
}

.card-title {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
  line-height: 1.45;
}

.card-rating {
  font-size: 0.82rem;
  color: #f39c12;
  margin-bottom: 6px;
}

.card-rating span {
  color: var(--text-light);
  font-size: 0.78rem;
}

.card-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--secondary);
}

/* ===== 商品詳細ページ ===== */
.product-detail {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  border: 1px solid var(--border);
}

.product-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  align-items: start;
}

.product-image-wrap {
  background: #f5f5f5;
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.product-image-wrap img {
  max-height: 300px;
  object-fit: contain;
  margin: 0 auto;
}

.product-info .cat-tag {
  margin-bottom: 12px;
}

.product-info h1 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--secondary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.product-rating {
  font-size: 0.9rem;
  color: #f39c12;
  font-weight: 700;
}

.product-rating span {
  color: var(--text-light);
  font-weight: 400;
  font-size: 0.82rem;
}

.product-price {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--secondary);
}

.product-target {
  background: #fdf4ec;
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
  font-size: 0.88rem;
}

.product-target strong {
  color: var(--primary);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ===== 評価セクション ===== */
.eval-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 40px 0;
}

.eval-box {
  border-radius: var(--radius);
  padding: 24px;
}

.eval-box.good {
  background: #f0fff4;
  border: 1px solid #b7e8c8;
}

.eval-box.bad {
  background: #fff5f5;
  border: 1px solid #fcc;
}

.eval-box h3 {
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.eval-box.good h3 { color: var(--good); }
.eval-box.bad h3 { color: var(--bad); }

.eval-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eval-box ul li {
  font-size: 0.86rem;
  padding-left: 20px;
  position: relative;
  color: var(--text);
  line-height: 1.5;
}

.eval-box.good ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--good);
  font-weight: 700;
}

.eval-box.bad ul li::before {
  content: '△';
  position: absolute;
  left: 0;
  color: var(--bad);
}

/* ===== 使う場面 ===== */
.scene-section {
  background: #f7ede0;
  border-radius: var(--radius);
  padding: 28px;
  margin: 32px 0;
}

.scene-section h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 16px;
}

.scene-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.scene-tag {
  background: var(--white);
  border: 1px solid #d9c4ad;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.83rem;
  color: var(--primary);
  font-weight: 600;
}

/* ===== 口コミ ===== */
.review-section {
  margin: 40px 0;
}

.review-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}

.review-card .stars {
  color: #f39c12;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.review-card p {
  font-size: 0.87rem;
  color: var(--text);
  line-height: 1.6;
}

.review-card .reviewer {
  font-size: 0.76rem;
  color: var(--text-light);
  margin-top: 10px;
}

/* ===== 購入ボタン ===== */
.buy-section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin: 40px 0;
  text-align: center;
}

.buy-section h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 20px;
}

.buy-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-amazon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ff9900;
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 8px;
  transition: background 0.2s;
}

.btn-amazon:hover { background: #e68900; }

.btn-rakuten {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #bf0000;
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 8px;
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.ad-notice {
  font-size: 0.74rem;
  color: var(--text-light);
  margin-top: 14px;
}

/* ===== パンくずリスト ===== */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

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

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ===== 固定ページ ===== */
.page-shell {
  max-width: 920px;
  margin: 0 auto;
}

.page-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
}

.page-title {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--secondary);
  line-height: 1.35;
  margin-bottom: 10px;
}

.page-lead {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 36px;
}

.page-section {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  margin-top: 28px;
}

.page-section h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 14px;
}

.page-section h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--secondary);
  margin: 22px 0 10px;
}

.page-section p,
.page-section li {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.85;
}

.page-section p + p {
  margin-top: 12px;
}

.page-section ul {
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-note {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  margin-top: 18px;
  color: var(--text-light);
  font-size: 0.86rem;
  line-height: 1.8;
}

.page-meta {
  color: var(--text-light);
  font-size: 0.8rem;
  margin-top: 36px;
}

/* ===== フッター ===== */
footer {
  background: #3d2b1a;
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 40px 24px;
  font-size: 0.8rem;
  margin-top: 80px;
}

footer .footer-nav {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

footer .footer-nav a {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

footer .footer-nav a:hover {
  color: var(--white);
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  .hero {
    padding: 0;
    margin-bottom: 48px;
  }

  .hero h1 {
    font-size: 1.4rem;
  }

  nav {
    display: none;
  }

  .card-img-wrap {
    aspect-ratio: 1 / 1;
    padding: 16px;
  }

  .product-header {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .eval-grid {
    grid-template-columns: 1fr;
  }

  .product-detail {
    padding: 24px 16px;
  }

  .page-panel {
    padding: 28px 20px;
  }

  .page-title {
    font-size: 1.35rem;
  }

  .buy-buttons {
    flex-direction: column;
    align-items: center;
  }
}
