/* リンク集サイト。Instagram のプロフィールリンクから来たスマホの人がまず見る前提で、スマホ幅を基準に組んでいる */
:root {
  --bg: #faf8f4;
  --fg: #1f1d1a;
  --muted: #6e685f;
  --accent: #c9441e;
  --accent-soft: #fbeee8;
  --card: #ffffff;
  --line: #e6dfd3;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(31, 29, 26, 0.04), 0 8px 24px rgba(31, 29, 26, 0.06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
  line-height: 1.75;
  font-size: 16px;
  text-wrap: pretty;
}
body.has-sticky { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
a { color: inherit; }
img { max-width: 100%; }

/* ヘッダー */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2px 12px;
  padding: 12px 16px;
  background: rgba(250, 248, 244, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; text-decoration: none; font-size: 17px; letter-spacing: 0.01em; }
.ad-notice { font-size: 11px; color: var(--muted); }
.container { max-width: 760px; margin: 0 auto; padding: 20px 16px 56px; }

/* トップ */
.hero { padding: 12px 0 4px; }
.hero-eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding-bottom: 2px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
.hero h1 { font-size: 28px; line-height: 1.35; margin: 0 0 8px; letter-spacing: -0.01em; }
.hero p { margin: 0 0 6px; color: var(--muted); }
.hero-ig a { font-size: 13px; font-weight: 700; color: var(--fg); }

.category { margin-top: 28px; }
.category > h2 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 12px;
  padding-left: 10px;
  font-size: 18px;
  line-height: 1.4;
  border-left: 4px solid var(--accent);
}
.category > h2 .count { font-size: 12px; font-weight: 600; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(31, 29, 26, 0.05), 0 14px 32px rgba(31, 29, 26, 0.1); }
.card-img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.card .cover { border-radius: 0; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.card-body h3 { margin: 0; font-size: 15px; line-height: 1.45; }
.card-body p { margin: 0; font-size: 13px; line-height: 1.65; color: var(--muted); }
.card-body .more { margin-top: 2px; font-size: 13px; font-weight: 800; color: var(--accent); }

/* 表紙：承認済みの画像が無い商品に出す。Instagram の1枚目（フック）と同じ構成 */
.cover {
  --cv-bg: #f6f1e8;
  --cv-ink: #1f1d1a;
  --cv-accent: #e4572e;
  --cv-accent-text: #b8401c;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px 20px;
  background: var(--cv-bg);
  color: var(--cv-ink);
  border-radius: var(--radius);
}
.cover::before {
  content: '';
  position: absolute;
  right: -18%;
  bottom: -38%;
  z-index: -1;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--cv-accent);
  opacity: 0.14;
}
.cover::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: var(--cv-accent);
}
.cover-pr {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 1px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.6;
  border: 1.5px solid var(--cv-ink);
  border-radius: 999px;
}
.cover-eyebrow {
  align-self: flex-start;
  margin-right: 48px;
  padding-bottom: 2px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--cv-accent-text);
  border-bottom: 2px solid var(--cv-accent);
}
.cover-title {
  margin: 2px 0 0;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.cover-price { margin: 0; font-size: 18px; font-weight: 800; }
.cover-points { display: flex; flex-direction: column; gap: 7px; margin: 4px 0 0; padding: 0; list-style: none; }
.cover-points li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 10px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.74);
  border-radius: 10px;
}
.cover-points li span,
.card-body p.clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cover-points li span { -webkit-line-clamp: 2; }
.card-body p.clamp { -webkit-line-clamp: 3; }
.cover-points li::before {
  content: '✓';
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  background: var(--cv-accent);
  border-radius: 50%;
}
.cover-foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.chip {
  padding: 2px 9px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--cv-ink, var(--fg));
  background: rgba(255, 255, 255, 0.74);
  border-radius: 999px;
}
.chip.muted { color: var(--muted); }

/* 商品ページ */
.product .crumbs { margin: 0 0 10px; font-size: 12px; color: var(--muted); }
.p-hero { gap: 12px; padding: 28px 22px 24px; }
.p-hero .cover-title { font-size: 26px; }
.summary {
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.product .summary h2 { margin: 0 0 6px; padding: 0; font-size: 13px; letter-spacing: 0.06em; color: var(--accent); border: 0; }
.summary p { margin: 0; line-height: 1.85; }

.slides {
  display: flex;
  gap: 10px;
  margin: 16px -16px 0;
  padding: 0 16px 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
}
.slides img {
  flex: 0 0 82%;
  width: 82%;
  min-width: 0;
  max-width: 420px;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  scroll-snap-align: start;
}

.cta { margin: 22px 0; text-align: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding: 15px 28px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(201, 68, 30, 0.3);
}
.btn:active { transform: translateY(1px); }
.muted { color: var(--muted); }
.small { margin: 8px 0 0; font-size: 12px; }

.product section { margin-top: 30px; }
.product section > h2 {
  margin: 0 0 12px;
  padding-left: 10px;
  font-size: 18px;
  line-height: 1.4;
  border-left: 4px solid var(--accent);
}
.pros-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pros-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  line-height: 1.7;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.pros-list li::before {
  content: '✓';
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
}
.cons-box { padding: 14px 16px; background: var(--accent-soft); border: 2px dashed var(--accent); border-radius: 16px; }
.cons-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cons-list li { padding-left: 1.3em; text-indent: -1.3em; line-height: 1.7; }
.cons-list li::before { content: '— '; font-weight: 700; color: var(--accent); }
.src { margin-left: 6px; font-size: 11px; color: var(--muted); white-space: nowrap; text-indent: 0; }
.quotes { display: flex; flex-direction: column; gap: 10px; }
.quote { margin: 0; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; }
.quote blockquote { margin: 0; font-weight: 600; line-height: 1.7; }
.quote figcaption { margin-top: 2px; }
.quote figcaption .src { margin-left: 0; }
.specs {
  width: 100%;
  overflow: hidden;
  font-size: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 14px;
}
.specs th, .specs td { padding: 10px 14px; text-align: left; vertical-align: top; line-height: 1.6; border-bottom: 1px solid var(--line); }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { width: 34%; font-weight: 600; color: var(--muted); background: #fcfbf8; }
.sources { margin: 0; padding-left: 20px; font-size: 13px; }
.sources li { margin: 4px 0; overflow-wrap: anywhere; }
.pending { padding: 20px 16px; text-align: center; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }
.pending p { margin: 0; }

/* スマホで下に固定する購入ボタン */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(250, 248, 244, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-top: 1px solid var(--line);
}
.sticky-cta .btn { flex: 1; max-width: 420px; min-width: 0; padding: 13px 20px; box-shadow: none; }
.sticky-cta .ad { font-size: 10px; color: var(--muted); white-space: nowrap; }

.pr-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 0 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  vertical-align: middle;
  border: 1.5px solid var(--fg);
  border-radius: 999px;
}
.site-footer { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }

@media (min-width: 640px) {
  .hero h1 { font-size: 32px; }
  .p-hero { padding: 36px 32px 30px; }
  .p-hero .cover-title { font-size: 32px; }
  .cover-title { font-size: 24px; }
}
