/*
Theme Name: Cocoon Child
Template:   cocoon-master
Version:    1.0.0
*/

/* ==============================================
   K-Beauty Blog Stylesheet for Cocoon Child
   ==============================================
   構成:
     1. CSS変数（カラー・フォントなど）
     2. ベース
     3. ヒーローセクション
     4. レイアウト
     5. 導入文ブロック
     6. 目次（TOC）
     7. H2見出し
     8. 区切り線
     9. 商品カード
    10. カテゴリバッジ
    11. レビューグリッド（良い点・気になる点）
    12. 価格テーブル
    13. 購入場所カード
    14. ユーティリティ（タグ・ラベルなど）
    15. フッター
    16. レスポンシブ（スマホ対応）
============================================== */


/* ----------------------------------------------
   1. CSS変数
   カラーを変えたいときはここだけ修正すればOK！
---------------------------------------------- */
:root {
  /* ブランドカラー */
  --c-rose:    #c8546a;   /* メインアクセント（ピンク系） */
  --c-deep:    #27171c;   /* ダークベース（見出し・ヘッダー背景） */
  --c-gold:    #c09a40;   /* ゴールド（星・バッジ） */

  /* 背景色 */
  --c-cream:   #fdf6f0;   /* ページ背景 */
  --c-mist:    #faf0f5;   /* セクション薄背景 */
  --c-card:    #ffffff;   /* カード背景 */

  /* テキスト */
  --c-text:    #2a1a1f;   /* 本文テキスト */
  --c-muted:   #8a7070;   /* サブテキスト・ラベル */

  /* ボーダー */
  --c-border:  #f0dde5;

  /* レビュー（良い点） */
  --c-good:    #2d7a5f;
  --c-good-bg: #eaf6f0;

  /* レビュー（気になる点） */
  --c-bad:     #b03030;
  --c-bad-bg:  #faeaea;
}


/* ----------------------------------------------
   2. ベース
   Cocoonのデフォルトスタイルに上書きする形で指定
---------------------------------------------- */
body {
  background: var(--c-cream) !important;
  color: var(--c-text);
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.75;
  font-size: 15px;
}

/* Cocoonの記事本文エリアのフォントも統一 */
.entry-content,
.article {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--c-text);
}


/* ----------------------------------------------
   3. ヒーローセクション
---------------------------------------------- */
.hero {
  background: linear-gradient(140deg, #27171c 0%, #5c2535 55%, #8a4258 100%);
  color: #fff;
  padding: 64px 24px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -70px;
  right: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -90px;
  left: -50px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}

.hero-tag {
  display: inline-block;
  background: var(--c-gold);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 18px;
}

/* Cocoonのh1上書き防止のため !important を使用 */
.hero h1 {
  font-family: 'Noto Serif JP', serif !important;
  font-size: clamp(17px, 3.2vw, 26px) !important;
  font-weight: 600 !important;
  line-height: 1.6 !important;
  margin-bottom: 16px !important;
  color: #fff !important;
  border: none !important;         /* Cocoonのh1ボーダーをリセット */
  padding: 0 !important;
  background: none !important;
}

.hero-sub {
  font-size: clamp(13px, 2vw, 15px);
  color: rgba(255, 255, 255, 0.62);
  max-width: 560px;
  margin: 0 auto 22px;
  line-height: 1.85;
}

.hero-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
}


/* ----------------------------------------------
   4. レイアウト
---------------------------------------------- */
.container {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 20px;
}


/* ----------------------------------------------
   5. 導入文ブロック
---------------------------------------------- */
.intro-block {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-rose);
  border-radius: 0 16px 16px 0;
  padding: 26px 28px;
  margin: 44px 0 36px;
  font-size: 15px;
  color: #4a3030;
  line-height: 2;
}

.intro-block p + p {
  margin-top: 14px;
}

.intro-block strong {
  color: var(--c-deep);
}


/* ----------------------------------------------
   6. 目次（TOC）
   ※ Cocoon組み込みの目次と別のクラス名にしているのでそのままでOK
---------------------------------------------- */
.toc {
  background: var(--c-mist);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 22px 26px;
  margin-bottom: 44px;
}

.toc-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-deep);
  margin-bottom: 14px;
}

.toc ol {
  padding-left: 20px;
  color: var(--c-rose);
  font-size: 14px;
  line-height: 2.2;
}

.toc ol li {
  padding-left: 4px;
}

.toc ol li span {
  color: var(--c-text);
}


/* ----------------------------------------------
   7. H2見出し
   Cocoon側のh2スタイルを上書き
---------------------------------------------- */
.product-h2 {
  font-family: 'Noto Serif JP', serif !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  color: var(--c-deep) !important;
  border-bottom: 2px solid var(--c-rose) !important;
  border-left: none !important;     /* Cocoonのh2左ボーダーをリセット */
  padding: 0 0 10px 0 !important;
  margin-bottom: 18px !important;
  background: none !important;
  line-height: 1.5;
}

.section-h2 {
  font-family: 'Noto Serif JP', serif !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  color: var(--c-deep) !important;
  border-bottom: 2px solid var(--c-rose) !important;
  border-left: none !important;
  padding: 0 0 10px 0 !important;
  margin: 56px 0 28px !important;
  background: none !important;
  line-height: 1.45;
}


/* ----------------------------------------------
   8. 区切り線
---------------------------------------------- */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 36px 0;
  color: #f4c2c2;
  font-size: 18px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border);
}


/* ----------------------------------------------
   9. 商品カード
---------------------------------------------- */
.product-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 56px;
  box-shadow: 0 2px 22px rgba(42, 26, 31, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(42, 26, 31, 0.12);
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--c-border);
}

.number-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-rose);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.header-text {
  flex: 1;
}

.brand-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 4px;
}

.card-product-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--c-deep);
  line-height: 1.5;
}

.vol-tag {
  display: inline-block;
  background: var(--c-border);
  color: var(--c-muted);
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 8px;
  margin-left: 6px;
}

.card-body {
  padding: 22px 24px;
}

.star-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.stars {
  color: var(--c-gold);
  font-size: 15px;
  letter-spacing: 1px;
}

.star-label {
  font-size: 12px;
  color: var(--c-muted);
}

.product-desc {
  font-size: 14px;
  color: #5a4040;
  line-height: 1.95;
  margin-bottom: 20px;
}

.product-desc strong {
  color: var(--c-deep);
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--c-mist);
  border-radius: 14px;
  padding: 14px 20px;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}

.price-label {
  font-size: 12px;
  color: var(--c-muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.price-value {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--c-rose);
}

.price-note {
  font-size: 11px;
  color: var(--c-muted);
  line-height: 1.9;
}


/* ----------------------------------------------
   10. カテゴリバッジ
---------------------------------------------- */
.category-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 11px;
  border-radius: 30px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.cat-skin { background: #fce8ef; color: #a03060; }
.cat-hair { background: #e8f4fc; color: #1a6a9a; }
.cat-body { background: #e8f8ee; color: #1a7a4a; }
.cat-care { background: #fff0e0; color: #a05020; }


/* ----------------------------------------------
   11. レビューグリッド（良い点・気になる点）
---------------------------------------------- */
.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.review-box {
  border-radius: 14px;
  padding: 14px 16px;
}

.review-box.good {
  background: var(--c-good-bg);
  border: 1px solid #c2e8d8;
}

.review-box.bad {
  background: var(--c-bad-bg);
  border: 1px solid #f0c8c8;
}

.review-box h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  /* Cocoonのh4スタイルをリセット */
  border: none !important;
  padding: 0 !important;
  background: none !important;
}

.review-box.good h4 { color: var(--c-good); }
.review-box.bad  h4 { color: var(--c-bad); }

.review-box ul {
  list-style: none;
  padding: 0;
}

.review-box li {
  font-size: 13px;
  color: var(--c-text);
  padding: 3px 0 3px 16px;
  position: relative;
  line-height: 1.6;
}

/* Cocoonのliデフォルト装飾をリセット */
.review-box li::before {
  position: absolute;
  left: 0;
  font-weight: 700;
  font-size: 11px;
  top: 5px;
}

.review-box.good li::before {
  content: '✓';
  color: var(--c-good);
}

.review-box.bad li::before {
  content: '✗';
  color: var(--c-bad);
}


/* ----------------------------------------------
   12. 価格テーブル
---------------------------------------------- */
.price-table-wrap {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  overflow-x: auto;
  margin-bottom: 16px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 500px;
}

.price-table thead tr {
  background: var(--c-deep);
  color: #fff;
}

.price-table th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 500;
}

.price-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--c-border);
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-table tr:nth-child(even) td {
  background: var(--c-mist);
}

.price-col {
  text-align: right;
  font-weight: 600;
  color: var(--c-rose);
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
}

.center {
  text-align: center;
}


/* ----------------------------------------------
   13. 購入場所カード
---------------------------------------------- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 24px;
  margin-bottom: 8px;
}

.shop-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 20px 18px;
}

.shop-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-deep);
  margin-bottom: 10px;
  line-height: 1.5;
  /* Cocoonのh3スタイルをリセット */
  border: none !important;
  padding: 0 !important;
  background: none !important;
}

.shop-card p {
  font-size: 13px;
  color: #5a4040;
  line-height: 1.75;
}

.shop-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.badge-best   { background: #fff0d0; color: #9a6000; }
.badge-cheap  { background: #e8f8ee; color: #1a7a4a; }
.badge-global { background: #e8f4fc; color: #1a6a9a; }
.badge-direct { background: #fce8ef; color: #a03060; }


/* ----------------------------------------------
   14. ユーティリティ
---------------------------------------------- */
.point-label {
  display: inline-block;
  background: var(--c-rose);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  margin-right: 4px;
  vertical-align: middle;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  background: var(--c-mist);
  color: var(--c-rose);
  font-size: 12px;
  padding: 4px 13px;
  border-radius: 20px;
  border: 1px solid var(--c-border);
}


/* ----------------------------------------------
   15. フッター
---------------------------------------------- */
.footer {
  background: var(--c-deep);
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 40px 24px;
  font-size: 12px;
  margin-top: 60px;
  line-height: 2.3;
}

.footer strong {
  color: rgba(255, 255, 255, 0.8);
}


/* ----------------------------------------------
   16. レスポンシブ（スマホ対応）
---------------------------------------------- */
@media (max-width: 540px) {
  .review-grid {
    grid-template-columns: 1fr;
  }

  .card-header {
    flex-wrap: wrap;
  }

  .price-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 48px 16px 40px;
  }
}

/* 記事タイトルを非表示（Cocoon） */
.article .entry-title {
  display: none;
}

/* 記事上部のシェアボタンを非表示 */
.entry-header .sns-share,
.article-header .sns-share {
  display: none;
}

/* 記事上部の日付・メタ情報を非表示 */
.entry-header .post-date,
.article-header .post-date,
.article-header .entry-header-items {
  display: none;
}

/* ヒーロー上の余白をリセット */
.entry-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* ヒーロー上の白い空白を完全に除去 */
.entry-content > .hero:first-child {
  margin-top: -1.5em;
}

/* PR表記 */
.pr-notice {
  font-size: 12px;
  color: var(--c-muted);
  text-align: right;
  margin-bottom: 8px;
}

/* この記事でわかること */
.article-summary {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 22px 26px;
  margin: 0 0 36px;
}

.summary-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-deep);
  margin-bottom: 14px;
}

.article-summary ul {
  list-style: none;
  padding: 0;
}

.article-summary li {
  font-size: 14px;
  color: var(--c-text);
  padding: 4px 0 4px 20px;
  position: relative;
  line-height: 1.7;
}

.article-summary li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--c-rose);
  font-weight: 700;
  font-size: 12px;
  top: 6px;
}