/* kodomo-eiyo.jp — モバイルファースト（IG 流入前提）UI v2 */
:root {
  --brand: #d38556;        /* terracotta（動画イラストと同系） */
  --brand-dark: #b06a3e;
  --brand-deep: #8f5330;
  --accent: #5f9d8a;       /* soft green-teal（自社枠） */
  --amber: #e8a13c;        /* 星評価 */
  --ink: #382f24;
  --sub: #8a7f70;
  --bg: #f9f5ec;           /* warm cream */
  --bg-deep: #f3ecdd;
  --card: #ffffff;
  --line: #eadfcd;
  --shadow: 0 2px 10px rgba(120, 90, 50, 0.08);
  --shadow-lg: 0 6px 22px rgba(120, 90, 50, 0.13);
  --radius: 18px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  background:
    radial-gradient(1200px 400px at 50% -100px, #fdf1e2 0%, var(--bg) 60%);
  color: var(--ink); line-height: 1.75; font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
main { max-width: 560px; margin: 0 auto; padding: 0 18px 56px; }

/* ---- 開示バー / ヘッダ ---- */
.disclosure-top {
  background: #efe6d4; color: #9b8e7b; font-size: 10.5px; letter-spacing: .02em;
  text-align: center; padding: 5px 8px;
}
.site-header { text-align: center; padding: 30px 16px 6px; }
.site-header .brand { text-decoration: none; display: inline-flex; flex-direction: column; align-items: center; gap: 10px; }
.logo-mark {
  width: 64px; height: 64px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; box-shadow: var(--shadow);
}
.brand-text { font-size: 22px; font-weight: 800; color: var(--brand-deep); letter-spacing: .04em; }
.site-header .tagline { color: var(--sub); font-size: 12.5px; margin-top: 6px; }

/* ---- セクション見出し ---- */
h2 {
  display: flex; align-items: center; gap: 8px;
  font-size: 16.5px; margin: 34px 0 14px; letter-spacing: .02em;
}
h2::after { content: ""; flex: 1; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand) 0%, transparent 100%); }
h3 { font-size: 15.5px; }

/* ---- 商品カード ---- */
.product-card {
  position: relative; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px 16px; margin: 14px 0;
  box-shadow: var(--shadow);
  transition: box-shadow .15s ease, transform .15s ease;
}
.product-card:active { transform: scale(.995); }
.product-card.own { border: 1.5px solid var(--accent); background: #fcfdf9; }
.product-card .rank {
  position: absolute; top: -10px; left: -6px; z-index: 2;
  background: linear-gradient(150deg, var(--brand) 20%, var(--brand-dark));
  color: #fff; font-weight: 800; font-size: 14px;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(120, 60, 20, .3);
}
.card-top { display: flex; gap: 14px; align-items: flex-start; }
.product-img {
  width: 108px; height: 108px; object-fit: contain; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); flex-shrink: 0; padding: 4px;
}
.product-img.placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; background: var(--bg-deep); color: var(--sub);
}
.product-body { flex: 1; min-width: 0; }
.product-body h3 { margin: 3px 0 2px; line-height: 1.45; font-size: 14.5px; }
.brand-name { color: var(--sub); font-size: 11.5px; }
.own-tag {
  display: inline-block; background: #e7f2ec; color: #40725f;
  font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 2px 10px;
  margin-bottom: 2px;
}
.meta-row { display: flex; align-items: baseline; gap: 12px; margin-top: 7px; flex-wrap: wrap; }
.stars { color: var(--amber); font-weight: 800; font-size: 14.5px; letter-spacing: .02em; }
.price { color: var(--brand-deep); font-weight: 800; font-size: 18px; }
.price small { font-size: 10px; font-weight: 500; color: var(--sub); margin-left: 2px; }
.note { font-size: 13px; color: #5d5344; margin: 12px 2px 12px; }
.buy-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(150deg, var(--brand) 10%, var(--brand-dark));
  color: #fff; font-weight: 800; font-size: 14.5px; letter-spacing: .04em;
  text-decoration: none; border-radius: 999px; padding: 12px 20px;
  box-shadow: 0 3px 10px rgba(180, 110, 60, .3);
}
.buy-btn .arrow { font-size: 15px; transition: transform .15s ease; }
.buy-btn:active { transform: translateY(1px); box-shadow: 0 1px 4px rgba(180, 110, 60, .3); }
.buy-btn.disabled { background: #d4cabb; box-shadow: none; }

.price-note { color: var(--sub); font-size: 11px; margin: 10px 4px 0; }

/* ---- カテゴリナビ ---- */
.cat-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1.5px solid var(--brand);
  color: var(--brand-deep); font-weight: 700; font-size: 14px;
  border-radius: 999px; padding: 9px 18px; text-decoration: none;
  box-shadow: var(--shadow);
}
.cat-chip:active { transform: translateY(1px); }
.cat-chip .count {
  background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 800;
  border-radius: 999px; min-width: 22px; height: 22px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
}
.cat-lead { color: var(--sub); font-size: 13px; margin-bottom: 6px; }

/* ---- 最新 / 過去リスト ---- */
.latest-title { margin-bottom: 2px; }
.latest-title a { color: var(--brand-deep); text-decoration: none; border-bottom: 2px solid #ecc9a8; }
.past-list { list-style: none; }
.past-list li {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  margin: 10px 0; box-shadow: var(--shadow);
}
.past-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 14px 16px;
}
.past-list a::after { content: "›"; color: var(--brand); font-size: 20px; font-weight: 400; }
.past-list .date { color: var(--sub); font-size: 11px; white-space: nowrap; font-weight: 400; }

/* ---- 動画別ページ ---- */
.list-page .date { color: var(--sub); font-size: 12px; margin-top: 20px; }
.list-page h1 { font-size: 21px; margin: 6px 0 10px; line-height: 1.4; }
.reel-link a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand-deep); font-size: 13px; font-weight: 700;
  background: #fbeedd; border-radius: 999px; padding: 7px 16px; text-decoration: none;
}
.sources { margin-top: 26px; background: var(--bg-deep); border-radius: 14px; padding: 14px 18px; }
.sources h2 { font-size: 13.5px; margin: 0 0 6px; }
.sources h2::after { display: none; }
.sources p { font-size: 12px; color: var(--sub); }
.back { margin-top: 30px; }
.back a { color: var(--brand-dark); font-weight: 700; text-decoration: none; }

/* ---- IG CTA ---- */
.ig-cta {
  text-align: center; margin-top: 40px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow-lg);
}
.ig-cta p { font-size: 13.5px; margin-bottom: 12px; font-weight: 600; }
.ig-cta .cta-head {
  color: var(--sub); font-size: 11px; font-weight: 700; letter-spacing: .12em;
  margin-bottom: 4px;
}
.ig-btn {
  display: inline-block;
  background: linear-gradient(45deg, #e09433, #d6396b, #8a3ab9);
  color: #fff; font-weight: 800; text-decoration: none; border-radius: 999px;
  padding: 12px 32px; font-size: 14.5px; letter-spacing: .04em;
  box-shadow: 0 4px 14px rgba(190, 70, 120, .35);
}
.ig-btn:active { transform: translateY(1px); }

/* ---- フッタ ---- */
.site-footer {
  text-align: center; color: var(--sub); font-size: 12px;
  border-top: 1px solid var(--line); margin-top: 32px; padding: 20px 16px 44px;
  background: var(--bg-deep);
}
.site-footer a { color: var(--sub); }
.site-footer .disclosure { margin-top: 8px; font-size: 10.5px; }

/* ---- 静的ページ ---- */
.doc-page h1 { font-size: 20px; margin: 22px 0 12px; }
.doc-page h2 { margin-top: 26px; }
.doc-page p, .doc-page li { font-size: 14px; }
.doc-page ul { margin: 8px 0 8px 22px; }

@media (min-width: 480px) {
  .product-img { width: 124px; height: 124px; }
}
