/* Beaupick - beauty & health affiliate media */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --bg-sub: #faf8f6;
  --primary: #b87559;
  --primary-light: #f5ede8;
  --text: #1a1a1a;
  --text-light: #777;
  --border: #e8e2dc;
  --amazon: #FF9900;
  --amazon-hover: #e68a00;
  --rakuten: #bf0000;
  --rakuten-hover: #a50000;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,.07);
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ── Header ── */
header {
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.logo span { color: var(--primary); }
.logo-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  vertical-align: middle;
  margin-right: 7px;
  position: relative;
  top: -1px;
}
nav { display: flex; gap: 24px; }
nav a {
  font-size: 0.875rem;
  color: var(--text-light);
  text-decoration: none;
  transition: color .2s;
}
nav a:hover, nav a.active { color: var(--primary); }

/* ── Page wrapper ── */
.page-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 32px;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }

/* ── Article header ── */
.article-header { margin-bottom: 40px; }
.article-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.article-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
}
.article-lead {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.9;
}
.article-top-img {
  display: block;
  width: 100%;
  margin-top: 24px;
  border-radius: 12px;
}

/* ── TOC ── */
.toc {
  background: var(--bg-sub);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 40px 0;
}
.toc-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 14px;
}
.toc ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toc li { font-size: 0.9rem; }
.toc a { color: var(--text); font-weight: 500; }
.toc a:hover { color: var(--primary); text-decoration: none; }

/* ── Section heading ── */
.section-intro {
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 48px;
}
.section-intro p + p { margin-top: 16px; }

/* ── Product block ── */
.product-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 48px;
  box-shadow: var(--shadow);
}
.product-block-header {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
}
.product-block-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-sub);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-block-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}
.product-block-info {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.product-number {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}
.product-name {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.product-tag {
  font-size: 0.75rem;
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.product-block-body { padding: 28px; }
.product-body-text { font-size: 0.95rem; line-height: 1.95; }
.product-body-text p + p { margin-top: 16px; }

.product-points {
  margin: 24px 0;
  background: var(--bg-sub);
  border-radius: 8px;
  padding: 20px 24px;
}
.product-points h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.product-points ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-points li { font-size: 0.9rem; }

/* ── Buy buttons ── */
.buy-section { padding: 0 28px 28px; }
.buy-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.buy-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-amazon, .btn-rakuten {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, opacity .2s;
  white-space: nowrap;
}
.btn-amazon {
  background: var(--amazon);
  color: #fff;
}
.btn-amazon:hover { background: var(--amazon-hover); text-decoration: none; }
.btn-rakuten {
  background: var(--rakuten);
  color: #fff;
}
.btn-rakuten:hover { background: var(--rakuten-hover); text-decoration: none; }
.ad-notice {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 10px;
}

/* ── Summary ── */
.summary-section {
  background: var(--bg-sub);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 64px;
}
.summary-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.summary-section p { font-size: 0.95rem; line-height: 1.9; }
.summary-section p + p { margin-top: 12px; }

/* ── Homepage cards ── */
.home-hero {
  text-align: center;
  padding: 60px 20px 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.home-hero .site-name {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.home-hero .site-name span { color: var(--primary); }
.home-hero p {
  font-size: 0.95rem;
  color: var(--text-light);
  max-width: 480px;
  margin: 0 auto;
}
.home-wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px 80px; }
.category-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}
.article-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .2s;
}
.article-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.12); }
.article-card a { text-decoration: none; color: var(--text); }
.card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-sub);
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 22px; }
.card-cat {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.card-title { font-size: 1rem; font-weight: 700; line-height: 1.45; margin-bottom: 8px; }
.card-desc { font-size: 0.82rem; color: var(--text-light); line-height: 1.7; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
}
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-bottom: 16px; }
.footer-nav a { color: var(--text-light); }
.footer-nav a:hover { color: var(--primary); }

/* ── Responsive ── */
@media (max-width: 640px) {
  .article-title { font-size: 1.35rem; }
  .product-block-header { grid-template-columns: 1fr; }
  .product-block-img { aspect-ratio: auto; max-height: 220px; }
  .product-block-img img { height: 200px; }
  .product-block-info { padding: 20px 20px 16px; }
  .product-block-body { padding: 20px; }
  .buy-section { padding: 0 20px 20px; }
  .btn-amazon, .btn-rakuten { padding: 11px 20px; font-size: 0.85rem; flex: 1; justify-content: center; }
  .home-hero .site-name { font-size: 1.7rem; }
  .article-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 10px 12px 14px; }
  .card-title { font-size: 0.82rem; }
  .card-desc { font-size: 0.75rem; }
}
