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

:root {
  --primary-color: #2e7d32;
  --accent-color: #ff6b35;
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
  --text-dark: #333;
  --text-gray: #666;
}

/* このCSSは products のシングルページでのみ読み込まれる想定 */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: #fafafa;
}

/* Cocoon の .main 背景を打ち消して透明化 */
.main {
  background-color: transparent !important;
  padding: 0px !important;
}


/* 全体ラッパー */
.product-page {
  padding: 0px ;
}

.product-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0px 20px;
}

/* ヒーローセクション */
.product-hero {
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
  padding: 2.5rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* 画像枠全体（中央寄せ） */
.hero-image {
  position: relative;
  max-width: 600px;
  margin: 0 auto 2rem;
  text-align: center;
}

/* 画像表示エリア（枠） */
.hero-image-placeholder {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* ★ 背景ブラー画像（枠を埋める・拡大する） */
.hero-bg-blur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(30px);
  transform: scale(1.2);
  z-index: 1;
}

/* ★ 中央の実画像（縦横比維持・縮小のみ） */
.hero-main-image {
  position: relative;
  z-index: 2;

  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* ←枠内にフィットしつつ縦横比維持 */
}

.hero-caption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 3;

  color: rgba(255, 255, 255, 0.9); /* 白だがやや控えめ */
  font-size: 0.8rem;               /* 小さめフォント */
  font-weight: 500;

  text-shadow: 0 0 4px rgba(0, 0, 0, 0.6); /* 見やすくなる影 */
  pointer-events: none; /* マウス操作の邪魔にならない */
}


/* ▼ 店舗バッジの位置（右上） */
.store-badge-wrapper {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
}

/* ▼ バッジ共通デザイン */
.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  border-radius: 999px;
  color: #fff;
}

/* ▼ 各スーパーのカラー設定 */

/* 業務スーパー（gyomusuper）緑系 */
.store-badge.gyomusuper {
  background: #d4f5b2;
  color: #336600;
}

/* ドン・キホーテ（donki）黒系 */
.store-badge.donki {
  background: #000;
  color: #fff;
}

/* イオン（aeon）紫系 */
.store-badge.aeon {
  background: #e3c4ff;
  color: #5b0080;
}

/* 必要なら追加できます */

/* ────────────────────────────────
   product-meta-box（かわいいメタ情報）
──────────────────────────────── */
.product-meta-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 18px;
  font-size: 14px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.meta-icon {
  font-size: 14px;
}

.meta-text {
  font-weight: 500;
  color: #444;
}

.meta-sep {
  color: #bbb;
  font-weight: bold;
}

.meta-term {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}

/* ── 業務スーパー（緑） */
.meta-term.term-gyomusuper {
  background: #d4f5b2;
  color: #336600;
}

/* ── ドン・キホーテ（黒系） */
.meta-term.term-donki {
  background: #222;
  color: #fff;
}

/* ── イオン（紫） */
.meta-term.term-aeon {
  background: #e4d1ff;
  color: #6b2fa1;
}

/* 必要に応じて追加可能
.meta-term.term-◯◯◯ { … }
*/


/* ───────────────────────────────
   下部メタ情報（投稿タイプ / ターム）
────────────────────────────── */
.product-meta-bottom {
  margin-top: 25px;
  padding-top: 18px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-bottom-item {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  background: #f5f5f5;
  color: #555;
}

/* ── ターム色の共通デザイン */
.meta-bottom-term {
  padding: 4px 12px;
}

/* ── 業務スーパー（緑） */
.meta-bottom-item.term-gyomusuper {
  background: #d4f5b2;
  color: #336600;
}

/* ── ドン・キホーテ（黒） */
.meta-bottom-item.term-donki {
  background: #222;
  color: #fff;
}

/* ── イオン（紫） */
.meta-bottom-item.term-aeon {
  background: #e4d1ff;
  color: #6b2fa1;
}



.price-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent-color);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 24px;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(255,107,53,0.3);
  z-index: 2;
}

.hero-info h1 {
  color: var(--text-dark);
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.2 ;
}

.hero-title h1 {
  line-height: 1.4 !important;
  margin-bottom: 1rem;
  font-size: 1.8em;
}

.rating-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.stars {
  color: #ffd700;
  font-size: 1.6rem;
  letter-spacing: 2px;
}

.score {
  font-weight: bold;
  color: var(--primary-color);
  font-size: 1.6rem;
}

.review-count {
  color: var(--text-gray);
}

/* セクション共通 */
.section {
  background: white;
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.section h2 {
  color: var(--primary-color);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 3px solid var(--primary-color);
  display: flex;
  align-items: center;
}

.section h2 .icon {
  margin-right: 0.5rem;
  font-size: 1.5rem;
}

.section h3 {
  color: var(--text-dark);
  font-size: 1.2rem;
  margin: 1.5rem 0 0.8rem;
  padding-left: 1rem;
  border-left: 4px solid var(--accent-color);
}

/* 商品概要グリッド */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.spec-card {
  background: var(--bg-light);
  padding: 1.3rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.spec-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  border-color: var(--primary-color);
}

.spec-label {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.spec-value {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--text-dark);
}

.spec-value.highlight {
  color: var(--accent-color);
  font-size: 1.3rem;
}

/* 栄養成分表 */
.nutrition-table {
  margin-top: 2rem;
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
}

.nutrition-table h3 {
  border-left: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
}

.styled-table th,
.styled-table td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.styled-table th {
  background: white;
  font-weight: 600;
  color: var(--primary-color);
  width: 40%;
}

.styled-table td {
  font-weight: 500;
}

/* AIテキストセクション */
.ai-taste-body,
.ai-recipe-body,
.ai-cost-body {
  color: var(--text-dark);
  line-height: 1.8;
}

/* ============================
   味・食感レビュー
   ============================ */

/* グリッド */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* 個別レビューカード */
.review-item {
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 8px;
  transition: transform 0.3s;
}

.review-item:hover {
  transform: scale(1.02);
}

/* タイトル */
.review-item h3 {
  border: none;
  padding-left: 0;
  margin: 0 0 0.8rem;
  font-size: 1.1rem;
}

/* レーティングバー */
.rating-bar {
  width: 100%;
  height: 10px;
  background: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
  margin: 0.8rem 0;
}

.rating-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffd700, #ffb300);
  transition: width 1s ease;
  animation: fillAnimation 1s ease-out;
}

/* アニメーション */
@keyframes fillAnimation {
  from { width: 0; }
}

/* 本文 */
.review-item p {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.6;
}



        /* ポイントリスト */
        .point-grid {
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
          gap: 2rem;
          margin-top: 2rem;
      }
      
      .point-box {
          padding: 1.5rem;
          border-radius: 8px;
      }
      
      .point-box.good {
          background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
          border: 2px solid #4caf50;
      }
      
      .point-box.concern {
          background: linear-gradient(135deg, #fff3e0 0%, #ffeaa7 20%);
          border: 2px solid #ff9800;
      }
      
      .point-box h3 {
          border: none;
          padding: 0;
          margin-bottom: 1rem;
      }
      
      .point-box ul {
          list-style: none;
          padding: 0;
      }
      
      .point-box li {
          padding: 0.5rem 0;
          padding-left: 1.5rem;
          position: relative;
      }
      
      .point-box.good li:before {
          content: "✓";
          position: absolute;
          left: 0;
          color: #4caf50;
          font-weight: bold;
      }
      
      .point-box.concern li:before {
          content: "▸";
          position: absolute;
          left: 0;
          color: #ff9800;
      }


        /* おすすめの人 */
        .recommend-grid {
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
          gap: 2rem;
          margin-top: 2rem;
      }
      
      .recommend-box {
          padding: 1.5rem;
          border-radius: 8px;
          border: 2px solid;
      }
      
      .recommend-box.yes {
          background: linear-gradient(135deg, #e3f2fd 0%, #e8f5e9 100%);
          border-color: var(--primary-color);
      }
      
      .recommend-box.no {
          background: linear-gradient(135deg, #fce4ec 0%, #ffebee 100%);
          border-color: #e91e63;
      }
      
      .recommend-box h3 {
          margin: 0 0 1rem;
          border: none;
          padding: 0;
      }
      
      .recommend-box ul {
          list-style: none;
          padding: 0;
      }
      
      .recommend-box li {
          padding: 0.5rem 0 0.5rem 1.8rem;
          position: relative;
      }
      
      .recommend-box.yes li:before {
          content: "👍";
          position: absolute;
          left: 0;
      }
      
      .recommend-box.no li:before {
          content: "🚫";
          position: absolute;
          left: 0;
      }
      
/* FAQ */
.faq-accordion {
  margin-top: 1.5rem;
}

/* details 全体 */
.faq-item {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* summary（Q部分） */
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-color);
  padding: 1.2rem;
  background: var(--bg-light);
  list-style: none;
  position: relative;
  padding-left: 3rem;

  /* ★ Qをブロック要素にし、横並びを禁止 */
  display: block;
  width: 100%;
}

/* Qの丸アイコン */
.faq-item summary:before {
  content: "Q";
  position: absolute;
  left: 1rem;
  background: var(--primary-color);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* デフォルト三角を消す */
.faq-item summary::-webkit-details-marker {
  display: none;
}

/* summary open時 */
.faq-item[open] summary {
  background: var(--primary-color);
  color: white;
}

.faq-item[open] summary:before {
  background: white;
  color: var(--primary-color);
}

/* 回答（A） */
.faq-answer {
  padding: 1.5rem;
  color: var(--text-dark);
  line-height: 1.7;

  /* ★ Aを完全ブロック要素扱いにして縦並び固定 */
  display: block;
  width: 100%;
}


/* 問題の核心：Cocoon や reset.css が summary を flex 要素にしている場合があるため強制無効化 */
.faq-item {
  display: block !important;
}

/* summary を強制的にブロックにする */
.faq-item summary {
  display: block !important;
  width: 100% !important;
  float: none !important;
  clear: both !important;
}

/* summary 内のテキストも block */
.faq-item summary * {
  display: inline !important;
}

/* 回答（A）を必ず summary の下に縦並び固定 */
.faq-item summary + .faq-answer {
  display: block !important;
  width: 100% !important;
  float: none !important;
  clear: both !important;
}

/* details を flex させているテーマ側の CSS を無効化 */
details.faq-item {
  display: block !important;
  flex-direction: column !important;
}

/* 万が一 details の中身が flex になっていても縦並び固定 */
details.faq-item > * {
  display: block !important;
}


/* レビュー評価（暫定） */
.review-form-container {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.review-form-container h3 {
  color: var(--primary-color);
  border-left: 4px solid var(--accent-color);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

.review-form .form-group {
  margin-bottom: 1.5rem;
}

.review-form label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.review-form input[type="text"],
.review-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s;
  font-family: inherit;
}

.review-form input[type="text"]:focus,
.review-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.review-form textarea {
  resize: vertical;
  min-height: 100px;
}

.char-counter {
  text-align: right;
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-top: 0.3rem;
}

/* 星評価入力 */
.star-rating-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.3rem;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.star-rating-input input {
  display: none;
}

.star-rating-input label {
  cursor: pointer;
  color: #ddd;
  transition: color 0.2s;
  margin-bottom: 0;
}

.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
  color: #ffd700;
}

.rating-text {
  font-size: 0.9rem;
  color: var(--text-gray);
}

/* タグボタン */
.tag-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-btn {
  padding: 0.5rem 1rem;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.tag-btn:hover {
  border-color: var(--primary-color);
  background: var(--bg-light);
}

.tag-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* 投稿ボタン */
.submit-review-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.submit-review-btn:hover {
  background: #ff5722;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

/* レビュー統計 */
.review-stats {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.stats-overview {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
}

.overall-rating {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 12px;
}

.rating-number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--primary-color);
  line-height: 1;
}

.rating-stars {
  color: #ffd700;
  font-size: 1.5rem;
  margin: 0.5rem 0;
}

.review-total {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.rating-distribution {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
}

.distribution-item {
  display: grid;
  grid-template-columns: 40px 1fr 50px;
  align-items: center;
  gap: 1rem;
}

.dist-label {
  color: #ffd700;
  font-weight: 600;
}

.dist-bar {
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.dist-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffd700, #ffb300);
}

.dist-count {
  text-align: right;
  color: var(--text-gray);
  font-size: 0.9rem;
}

/* 人気タグ */
.popular-tags h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-item {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  font-size: 0.85rem;
  color: var(--text-dark);
}

/* フィルター */
.review-filter {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.filter-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.sort-select {
  padding: 0.6rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: white;
  font-size: 1rem;
  cursor: pointer;
}

.filter-buttons {
  display: flex;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn:hover {
  border-color: var(--primary-color);
}

.filter-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* スマホ(768px以下)でボタンを3列×2行にする */
@media screen and (max-width: 768px) {
  .product-page .filter-buttons,
  .filter-buttons {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }

  .product-page .filter-btn,
  .filter-btn {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 0.6rem 0.2rem !important;
    font-size: 0.9rem !important;
    box-sizing: border-box !important;
    white-space: normal !important; /* 長文折返し */
  }
}


/* レビューアイテム */
.reviews-list {
  margin-top: 2rem;
}

.review-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s;
}

.review-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.reviewer-name {
  font-weight: 600;
  color: var(--text-dark);
}

.review-date {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.review-rating {
  color: #ffd700;
  font-size: 1.2rem;
}

.review-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}

.review-content {
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.helpful-buttons {
  display: flex;
  gap: 0.5rem;
}

.helpful-btn,
.not-helpful-btn {
  padding: 0.4rem 1rem;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.helpful-btn:hover {
  background: var(--bg-light);
  border-color: var(--primary-color);
}

.not-helpful-btn:hover {
  background: var(--bg-light);
}

.report-btn {
  background: none;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: underline;
}

.report-btn:hover {
  color: var(--accent-color);
}

/* 関連商品 */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.related-item {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 1.2rem;
  text-align: center;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.related-item:hover {
  transform: translateY(-3px);
  border-color: var(--primary-color);
  background: white;
}

.related-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}

.related-item h4 {
  color: var(--primary-color);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.related-item p {
  font-size: 0.85rem;
  color: var(--text-gray);
}

/* まとめセクション */
.summary-box {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
  border: 3px solid var(--primary-color);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
}

.final-message {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 2rem;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.cta-button {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 24px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 1rem;
  transition: all 0.3s;
}

.cta-button:hover {
  background: #ff5722;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,53,0.3);
}


        /* まとめセクション */
        .summary-box {
          background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
          border: 3px solid var(--primary-color);
          border-radius: 12px;
          padding: 2rem;
          margin-top: 2rem;
      }
      
      .summary-grid {
          display: grid;
          grid-template-columns: 1fr 1fr;
          gap: 2rem;
          margin-top: 1.5rem;
      }
      
      .summary-item h4 {
          color: var(--primary-color);
          margin-bottom: 0.8rem;
          font-size: 1.1rem;
      }
      
      .summary-item ul {
          list-style: none;
          padding: 0;
      }
      
      .summary-item li {
          padding: 0.3rem 0 0.3rem 1.5rem;
          position: relative;
      }
      
      .summary-item.pros li:before {
          content: "◎";
          position: absolute;
          left: 0;
          color: var(--primary-color);
          font-weight: bold;
      }
      
      .summary-item.cons li:before {
          content: "△";
          position: absolute;
          left: 0;
          color: var(--accent-color);
      }
      
      .final-message {
          background: white;
          border-radius: 8px;
          padding: 1.5rem;
          margin-top: 2rem;
          text-align: center;
          font-size: 1.1rem;
          color: var(--text-dark);
          box-shadow: 0 2px 8px rgba(0,0,0,0.08);
      }
      
      .cta-button {
          display: inline-block;
          background: var(--accent-color);
          color: white;
          padding: 0.8rem 2rem;
          border-radius: 24px;
          text-decoration: none;
          font-weight: bold;
          margin-top: 1rem;
          transition: all 0.3s;
      }
      
      .cta-button:hover {
          background: #ff5722;
          transform: translateY(-2px);
          box-shadow: 0 6px 20px rgba(255,107,53,0.3);
      }
      

/* レスポンシブ */
@media (max-width: 768px) {
  .product-container {
    padding: 10px;
  }

  .product-hero {
    padding: 1.5rem;
  }

  .hero-info h1 {
    font-size: 1.5rem;
  }

  .section {
    padding: 1.5rem;
  }

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

  .review-stats {
    grid-template-columns: 1fr;
  }

  .stats-overview {
    grid-template-columns: 1fr;
  }

  .filter-options {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-buttons {
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .review-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .reviewer-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* 総合評価（最終メッセージ） */
.rating-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
  text-align: center;
}

.rating-inline * {
  white-space: nowrap;
}

@media screen and (max-width: 768px) {

  /* rating-inline を縦並びにする */
  .final-message .rating-inline {
    display: flex !important;
    flex-direction: column !important; /* 横 → 縦にする */
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    white-space: normal !important; /* 折り返し許可 */
    text-align: center !important;
  }

  /* prm-score-box 内の要素を横1行 → 縦並びに */
  .final-message .prm-score-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.3;
    white-space: normal !important;
  }

  .final-message .prm-stars,
  .final-message .prm-score {
    white-space: nowrap !important; /* 星と数値だけは横1行維持 */
  }

  /* ここが重要：レビュー件数を折り返し＆下に移動 */
  .final-message .prm-count {
    display: block !important;
    margin-top: 4px !important;
    white-space: normal !important;
    font-size: 0.9rem;
  }
}





/* --------------------------------------------------------
   モバイル用（スマホ幅 768px 以下）
   H1 / H2 / H3 のサイズ・行間・余白調整
-------------------------------------------------------- */
@media screen and (max-width: 768px) {

  /* ======================
     H1（商品名の長文タイトル）
  ====================== */
  .product-page h1 {
    font-size: 1.4rem;        /* 約22px → 適度に縮小 */
    line-height: 1.5;
    font-weight: 700;
    padding: 0 10px;
    margin-bottom: 18px;
  }

  /* ヒーロー部分の商品タイトル専用（上書き強化） */
  .hero-title h1 {
    font-size: 1.35rem;       /* 大見出しだがスマホ向けに少し縮小 */
    line-height: 1.45;
    text-align: left;
  }

  /* ======================
     H2（セクション見出し）
  ====================== */
  .product-page h2 {
    font-size: 1.25rem;       /* 約20px */
    line-height: 1.45;
    margin-top: 30px;
    margin-bottom: 14px;
    padding-left: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  /* アイコン付き見出しのアイコンを少し縮小 */
  .product-page h2 .icon {
    font-size: 1.1rem;
  }

  /* ======================
     H3（小見出し）
  ====================== */
  .product-page h3 {
    font-size: 1rem;        /* 約17px */
    line-height: 1.45;
    margin-top: 20px;
    margin-bottom: 10px;
    padding-left: 2px;
  }
}



/* ======================================================
   1) Cocoon デフォルトサイドバーのリセット
====================================================== */

/* サイドバー全体をリセット */
#sidebar,
#sidebar-scroll {
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* widget のデフォルト装飾を消す */
#sidebar .widget,
#sidebar-scroll .widget,
.widget-sidebar,
.widget-sidebar-standard,
.widget-sidebar-scroll {
    background: none !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* block-group の余白もリセット（Cocoon 特有） */
#sidebar .wp-block-group,
#sidebar-scroll .wp-block-group {
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border: none !important;
}

/* ======================================================
   2) PRODUCTS 専用デザイン
====================================================== */

/* サイドバー本体を縦並びカード化 */
#sidebar,
#sidebar-scroll {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 20px;
}

/* ★ 1つ1つのウィジェットを本文と同じカードにする */
#sidebar .widget,
#sidebar-scroll .widget {
    background: #fff !important;
    border-radius: 12px !important;
    padding: 20px !important;
    /* border: 1px solid #e0e0e0 !important; */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    margin-bottom: 0 !important; /* gapで管理 */
}

/* ======================================================
   サイドバー見出しのデフォルト装飾を完全削除（Cocoon）
====================================================== */
#sidebar .widget h2,
#sidebar .widget h3,
#sidebar-scroll .widget h2,
#sidebar-scroll .widget h3 {
    all: unset !important;      /* ★ Cocoon のすべての装飾をリセット */
    display: block !important;  /* all: unset すると block も消えるため復活 */
    font-size: 18px !important; /* 必要な物だけ再定義 */
    font-weight: bold !important;
    color: #333 !important;
    margin-bottom: 14px !important;
    border-left: 6px solid var(--accent-color) !important;
    padding-left: 10px !important;
    line-height: 1.4 !important;
}

/* WordPress ブロックエディター見出し（wp-block-heading）にも同じ処理 */
#sidebar .widget .wp-block-heading,
#sidebar-scroll .widget .wp-block-heading {
    all: unset !important;
    display: block !important;
    font-size: 18px !important;
    font-weight: bold !important;
    color: #333 !important;
    margin-bottom: 14px !important;
    border-left: 6px solid var(--accent-color) !important;
    padding-left: 10px !important;
}

/* リスト（最新の投稿 / コメント / カテゴリー / アーカイブ） */
.widget ul,
.widget .wp-block-archives-list,
.widget .wp-block-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li,
.widget .wp-block-archives-list li,
.widget .wp-block-categories-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 16px;
}

.widget ul li:last-child,
.widget .wp-block-archives-list li:last-child,
.widget .wp-block-categories-list li:last-child {
    border-bottom: none;
}

.widget ul li a,
.widget .wp-block-categories-list li a,
.widget .wp-block-archives-list li a {
    color: #222;
    text-decoration: none;
}

.widget ul li a:hover {
    color: var(--accent-color);
}

/* 検索フォーム */
.widget_search input.wp-block-search__input {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 10px;
    width: 100%;
}

.widget_search button.wp-block-search__button {
    background: var(--accent-color);
    color: #fff;
    border-radius: 8px;
    padding: 8px 14px;
    border: none;
    cursor: pointer;
}

.widget_search button.wp-block-search__button:hover {
    background: #ff5722;
}

/* 追従サイドバー */
#sidebar-scroll .widget {
    position: sticky;
    top: 100px;
}

/* 本文とサイドバーの横幅の間隔を調整 */

/* ★ Cocoon の "本文とサイドバー間の自動スペース" を無効化する */
.content-in {
  justify-content: flex-start !important;
  gap: 8px !important; /* ← 狭めたい隙間を自由に指定 */
}
