/* ═══════════════════════════════════════════════════════════════
   jofuu store-visuals.css
   CSS/SVG ベースの視覚化コンポーネント 10種
   画像なし・JS なし。PHP が SVG ポイントを計算して出力する。
═══════════════════════════════════════════════════════════════ */

/* ─── 共通 ──────────────────────────────────────────────────── */
.jv-section {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.jv-section__heading {
  font-size: 17px;
  font-weight: bold;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.jv-section__heading::before {
  content: '';
  display: block;
  width: 4px;
  height: 18px;
  background: var(--color-primary);
  border-radius: 2px;
  flex-shrink: 0;
}

.jv-label {
  font-size: 12px;
  color: var(--color-muted);
  margin-bottom: 4px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   1. レーダーチャート（5軸スコア）
   PHP が polygon の points を計算して inline SVG に渡す
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.jv-radar {
  display: block;
  overflow: visible;
}

.jv-radar__bg-grid {
  fill: none;
  stroke: #eeeeee;
  stroke-width: 1;
}

.jv-radar__axis {
  stroke: #dddddd;
  stroke-width: 1;
}

.jv-radar__polygon {
  fill: rgba(201, 64, 112, 0.12);
  stroke: var(--color-primary);
  stroke-width: 2;
  stroke-linejoin: round;
}

.jv-radar__dot {
  fill: var(--color-primary);
}

.jv-radar__label {
  font-size: 10px;
  fill: #666;
  dominant-baseline: middle;
}

.jv-radar__score-text {
  font-size: 9px;
  fill: var(--color-primary);
  font-weight: bold;
  dominant-baseline: middle;
}

/* ヒーロー内のレーダーラッパー */
.jv-hero-radar {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.jv-hero-radar__chart { flex-shrink: 0; }

.jv-hero-radar__scores {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.jv-hero-score-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.jv-hero-score-row__label {
  width: 60px;
  color: var(--color-muted);
  flex-shrink: 0;
}

.jv-hero-score-row__bar-wrap {
  flex: 1;
  height: 6px;
  background: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
  min-width: 80px;
}

.jv-hero-score-row__bar {
  height: 100%;
  background: var(--color-primary);
  border-radius: 3px;
}

.jv-hero-score-row__val {
  width: 24px;
  text-align: right;
  font-weight: bold;
  color: var(--color-primary);
  font-size: 13px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   2. 価格レンジバー（同エリア相対位置）
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.jv-price-range {
  margin-bottom: 20px;
}

.jv-price-range__label-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--color-muted);
  margin-bottom: 4px;
}

.jv-price-range__track {
  position: relative;
  height: 10px;
  background: #f0f0f0;
  border-radius: 5px;
  overflow: visible;
  margin-bottom: 6px;
}

.jv-price-range__fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(to right, #f7d0dd, var(--color-primary));
  border-radius: 5px;
}

/* この店のポジションマーカー */
.jv-price-range__marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: var(--color-primary);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  z-index: 1;
}

/* 中央値の縦線 */
.jv-price-range__median {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: #aaa;
  transform: translateX(-50%);
}

.jv-price-range__median-label {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #888;
  white-space: nowrap;
}

.jv-price-range__this-label {
  position: absolute;
  bottom: -20px;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--color-primary);
  font-weight: bold;
  white-space: nowrap;
}

.jv-price-range__meta {
  font-size: 12px;
  color: var(--color-muted);
  text-align: right;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   3. 観測露出ゲージ（SVG アーク + カウンター）
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.jv-gauge {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.jv-gauge__svg {
  display: block;
  flex-shrink: 0;
}

.jv-gauge__bg {
  fill: none;
  stroke: #f0f0f0;
  stroke-linecap: round;
}

.jv-gauge__arc {
  fill: none;
  stroke: var(--color-primary);
  stroke-linecap: round;
  transition: stroke-dasharray 0.6s ease;
}

.jv-gauge__center-text {
  dominant-baseline: middle;
  text-anchor: middle;
}

.jv-gauge__count {
  font-size: 22px;
  font-weight: bold;
  fill: var(--color-primary);
}

.jv-gauge__unit {
  font-size: 11px;
  fill: #999;
}

.jv-gauge__info {
  flex: 1;
}

.jv-gauge__info-title {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 4px;
}

.jv-gauge__info-sub {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   4. 特徴タグタイル（強み + 注意点）
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.jv-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.jv-tile {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 280px;
}

.jv-tile::before {
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

.jv-tile--strength {
  background: #fff0f4;
  color: #b03060;
  border: 1px solid #f5c0cf;
}

.jv-tile--strength::before {
  content: '✓';
  color: var(--color-primary);
  font-weight: bold;
}

.jv-tile--caveat {
  background: #f8f8f8;
  color: #555;
  border: 1px solid #e0e0e0;
}

.jv-tile--caveat::before {
  content: '△';
  color: #999;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   5. 評判キーワード雲
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.jv-keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 16px;
  background: #fdf5f7;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

/* PHP が font-size を style 属性でインライン指定 */
.jv-keyword {
  color: var(--color-primary);
  font-weight: bold;
  line-height: 1.3;
  opacity: 0.9;
}

.jv-keyword__count {
  font-size: 0.65em;
  color: var(--color-muted);
  font-weight: normal;
  vertical-align: super;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   6. 夜のタイムライン
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.jv-timeline {
  position: relative;
  padding-left: 48px;
}

.jv-timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary) 0%, #f7c0d0 100%);
  border-radius: 1px;
}

.jv-timeline__item {
  position: relative;
  padding-bottom: 24px;
}

.jv-timeline__item:last-child {
  padding-bottom: 0;
}

.jv-timeline__dot {
  position: absolute;
  left: -38px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--color-primary);
}

.jv-timeline__item:last-child .jv-timeline__dot {
  background: #fff;
  box-shadow: 0 0 0 2px var(--color-primary);
}

.jv-timeline__time {
  font-size: 12px;
  color: var(--color-primary);
  font-weight: bold;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.jv-timeline__caption {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   7. コース比較バー（60/90/120/180分）
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.jv-course-bars {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.jv-course-bar {
  display: grid;
  grid-template-columns: 40px 1fr 90px;
  gap: 8px;
  align-items: center;
}

.jv-course-bar__duration {
  font-size: 12px;
  color: var(--color-muted);
  text-align: right;
  white-space: nowrap;
}

.jv-course-bar__track {
  position: relative;
  height: 12px;
  background: #f0f0f0;
  border-radius: 6px;
  overflow: visible;
}

/* この店の価格バー */
.jv-course-bar__fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 6px;
  background: var(--color-primary);
  min-width: 4px;
}

/* エリア中央値の縦線マーカー */
.jv-course-bar__median-line {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  background: #bbb;
  border-radius: 1px;
  transform: translateX(-50%);
}

.jv-course-bar__median-line::after {
  content: '中央値';
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  color: #999;
  white-space: nowrap;
}

.jv-course-bar__price {
  font-size: 13px;
  font-weight: bold;
  color: var(--color-primary);
  white-space: nowrap;
  text-align: right;
}

.jv-course-bar__price-sub {
  font-size: 10px;
  color: var(--color-muted);
  font-weight: normal;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   8. セラピスト在籍ドーナツ（年齢層分布）
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.jv-donut {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.jv-donut__svg {
  display: block;
  flex-shrink: 0;
}

.jv-donut__segment {
  fill: none;
  stroke-linecap: butt;
  transform-origin: center;
}

.jv-donut__center {
  dominant-baseline: middle;
  text-anchor: middle;
}

.jv-donut__center-num {
  font-size: 18px;
  font-weight: bold;
  fill: var(--color-primary);
}

.jv-donut__center-label {
  font-size: 9px;
  fill: #999;
}

.jv-donut__legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.jv-donut__legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.jv-donut__legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   9. 比較カード（同エリア3軒 + ミニレーダー）
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.jv-compare-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.jv-compare-card {
  background: #fafafa;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px;
  transition: box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}

.jv-compare-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.jv-compare-card__radar {
  display: block;
  margin: 0 auto 10px;
}

.jv-compare-card__name {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 4px;
  line-height: 1.4;
}

.jv-compare-card__area {
  font-size: 11px;
  color: var(--color-muted);
  margin-bottom: 6px;
}

.jv-compare-card__catch {
  font-size: 12px;
  color: #555;
  line-height: 1.5;
  flex: 1;
  margin-bottom: 10px;
}

.jv-compare-card__score {
  font-size: 12px;
  color: var(--color-primary);
  font-weight: bold;
}

.jv-compare-card__link {
  display: block;
  text-align: center;
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: 4px;
  padding: 6px;
  font-size: 12px;
  margin-top: 10px;
  transition: background 0.15s;
}

.jv-compare-card__link:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

.jv-compare-empty {
  background: #f8f8f8;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--color-muted);
  grid-column: span 3;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   10. 向く人 / 向かない人 二段組
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.jv-fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.jv-fit-col {
  padding: 16px;
  border-radius: var(--radius);
}

.jv-fit-col--for {
  background: #fff0f5;
  border: 1px solid #f5c0cf;
}

.jv-fit-col--not {
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
}

.jv-fit-col__heading {
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.jv-fit-col--for  .jv-fit-col__heading { color: var(--color-primary); }
.jv-fit-col--not  .jv-fit-col__heading { color: #666; }

.jv-fit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.jv-fit-tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  line-height: 1.4;
}

.jv-fit-col--for  .jv-fit-tag { background: #fff; color: #b03060; border: 1px solid #f5c0cf; }
.jv-fit-col--not  .jv-fit-tag { background: #fff; color: #666;    border: 1px solid #ddd; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   店舗ヒーローセクション
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.store-hero {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}

/* v3 §12 C1: 店舗詳細ヒーロー画像にもダークピンク 弱めフィルタを適用 */
.store-hero__img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fdf0f4 0%, #f7d0dc 100%);
  isolation: isolate;
  box-shadow:
    0 1px 2px rgba(0,0,0,.06),
    0 10px 30px -16px rgba(120, 50, 70, .25);
  transition: box-shadow .4s ease;
}
.store-hero__img-inner {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.92) contrast(1.03);
  transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .6s ease;
}
/* C1 ダークピンク 弱めフィルタ */
.store-hero__img::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(74, 14, 42, .15) 0%, rgba(74, 14, 42, 0) 25%),
    linear-gradient(180deg, rgba(139, 26, 79, .06) 0%, rgba(107, 27, 62, .10) 100%),
    linear-gradient(180deg, rgba(60, 10, 35, 0) 55%, rgba(60, 10, 35, .45) 100%);
  pointer-events: none;
  z-index: 1;
}
.store-hero__img:hover {
  box-shadow:
    0 1px 2px rgba(0,0,0,.06),
    0 20px 40px -18px rgba(180, 70, 100, .40);
}
.store-hero__img:hover .store-hero__img-inner {
  transform: scale(1.03);
  filter: saturate(1.0) contrast(1.05);
}
/* 画像なし時のプレースホルダー（中央に飾り文字） */
.store-hero__img--empty {
  aspect-ratio: 16 / 10;
}
.store-hero__img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 36px;
  opacity: 0.4;
  z-index: 2;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .store-hero__img,
  .store-hero__img-inner,
  .store-hero__img:hover,
  .store-hero__img:hover .store-hero__img-inner {
    transition: none !important;
    transform: none !important;
  }
}

.store-hero__body {
  padding: 24px;
}

.store-hero__pref {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 4px;
}

.store-hero__name {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 6px;
  line-height: 1.3;
}

.store-hero__catch {
  font-size: 15px;
  color: var(--color-primary);
  font-style: italic;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 3px solid var(--color-primary);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FAQ アコーディオン（CSS only / <details>）
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.jv-faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jv-faq__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.jv-faq__item summary {
  padding: 14px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafafa;
  user-select: none;
}

.jv-faq__item summary::-webkit-details-marker { display: none; }

.jv-faq__item summary::after {
  content: '+';
  font-size: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-left: 8px;
}

.jv-faq__item[open] summary {
  background: var(--color-secondary);
}

.jv-faq__item[open] summary::after {
  content: '−';
}

.jv-faq__answer {
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.8;
  color: #444;
  background: #fff;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   サイドバー（予約 CTA）
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.store-sidebar {
  position: sticky;
  top: 16px;
}

.store-sidebar__box {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.store-sidebar__heading {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 12px;
  color: var(--color-muted);
  text-align: center;
}

.store-sidebar__cta-primary {
  display: block;
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 14px;
  border-radius: var(--radius);
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 8px;
  transition: opacity 0.15s;
}

.store-sidebar__cta-primary:hover {
  opacity: 0.9;
  text-decoration: none;
  color: #fff;
}

.store-sidebar__cta-secondary {
  display: block;
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  text-align: center;
  padding: 12px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 8px;
  transition: background 0.15s;
}

.store-sidebar__cta-secondary:hover {
  background: var(--color-secondary);
  text-decoration: none;
}

.store-sidebar__cta-text {
  display: block;
  text-align: center;
  color: var(--color-muted);
  font-size: 12px;
  padding: 6px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   お気に入りボタン（サイドバー）
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.store-sidebar__fav-btn {
  display: block;
  width: 100%;
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 13px;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 10px;
}

.store-sidebar__fav-btn:hover {
  background: var(--color-primary);
  color: #fff;
}

.store-sidebar__fav-btn.is-active {
  background: var(--color-primary);
  color: #fff;
}

.store-sidebar__fav-btn.is-active:hover {
  background: #a8304f;
  border-color: #a8304f;
}

.store-sidebar__fav-link {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--color-muted);
  padding: 4px;
}

.store-sidebar__fav-link:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   お気に入り一覧ページ
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ヒーロー帯 */
.jofuu-favs-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #e05c85 100%);
  color: #fff;
  padding: 36px 0 28px;
}

.jofuu-favs-hero__title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 6px;
}

.jofuu-favs-hero__title::before {
  content: '♥';
  margin-right: 8px;
  opacity: 0.85;
}

.jofuu-favs-hero__desc {
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.6;
}

/* ページ本体 */
.jofuu-favs-page {
  padding: 28px 0 64px;
}

/* ツールバー */
.jofuu-favs__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.jofuu-favs__count {
  font-size: 14px;
  color: var(--color-muted);
}

.jofuu-favs__count strong {
  color: var(--color-primary);
  font-size: 18px;
}

.jofuu-favs__clear-all {
  font-size: 12px;
  color: var(--color-muted);
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 5px 14px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.jofuu-favs__clear-all:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* カードリスト */
.jofuu-favs__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* カード（.store-card を上書き） */
.jofuu-fav-card {
  align-items: center;
  transition: box-shadow 0.15s, opacity 0.2s, transform 0.2s;
}

.jofuu-fav-card:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.jofuu-fav-card--removing {
  opacity: 0;
  transform: translateX(20px);
}

/* サムネ：store-card__thumb の幅をお気に入り用に調整 */
.jofuu-fav-card .store-card__thumb {
  width: 96px;
  height: 72px;
}

/* 削除ボタン */
.jofuu-fav-card__remove {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--color-muted);
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 6px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  margin-left: auto;
}

.jofuu-fav-card__remove:hover {
  color: #fff;
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* 空状態 */
.jofuu-favs__empty-wrap {
  text-align: center;
  padding: 64px 0 48px;
}

.jofuu-favs__empty-icon {
  font-size: 48px;
  color: var(--color-secondary);
  margin-bottom: 16px;
  line-height: 1;
}

.jofuu-favs__empty-msg {
  font-size: 17px;
  font-weight: bold;
  color: var(--color-text);
  margin-bottom: 8px;
}

.jofuu-favs__empty-sub {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 28px;
}

.jofuu-favs__empty-btn {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  padding: 12px 32px;
  border-radius: var(--radius);
  transition: opacity 0.15s;
}

.jofuu-favs__empty-btn:hover {
  opacity: 0.88;
  text-decoration: none;
  color: #fff;
}

/* トースト通知 */
.jofuu-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #333;
  color: #fff;
  font-size: 13px;
  padding: 10px 22px;
  border-radius: 24px;
  white-space: pre-line;
  text-align: center;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  z-index: 9999;
}

.jofuu-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.jofuu-toast--warn {
  background: var(--color-primary);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   2カラムレイアウト（メイン + サイドバー）
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.store-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   基本情報テーブル（Iブロック）
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.jv-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.jv-info-table th,
.jv-info-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.jv-info-table th {
  width: 120px;
  color: var(--color-muted);
  font-weight: normal;
  white-space: nowrap;
}

.jv-info-table tr:last-child th,
.jv-info-table tr:last-child td {
  border-bottom: none;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Aブロック: 編集部コメント
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.jv-select-reason {
  font-size: 15px;
  line-height: 1.9;
  color: #333;
  padding: 4px 0;
}

.jv-select-reason__author {
  margin-top: 12px;
  font-size: 12px;
  color: var(--color-muted);
  text-align: right;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   レスポンシブ
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 768px) {
  .store-layout {
    grid-template-columns: 1fr;
  }

  .store-sidebar {
    position: static;
  }

  .jv-compare-cards {
    grid-template-columns: 1fr;
  }

  .jv-fit-grid {
    grid-template-columns: 1fr;
  }

  .jv-hero-radar {
    flex-direction: column;
    align-items: flex-start;
  }

  .jv-course-bar {
    grid-template-columns: 36px 1fr 80px;
  }
}

@media (max-width: 480px) {
  .jv-price-range__this-label,
  .jv-price-range__median-label {
    display: none;
  }
}


/* ============================================================
   v2 セクション（store v2 レイアウト）
   ============================================================ */

/* B: features 本文（v2） */
.jv-features-body {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.9;
  color: #333;
}
.jv-features-body p {
  margin: 0 0 12px;
}

/* 初回総額シミュレーション */
.jv-cost-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.jv-cost-card {
  border: 1px solid var(--color-border, #e8d5dc);
  border-radius: 12px;
  padding: 16px 18px;
  background: #fff;
}
.jv-cost-card__title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--jofuu-bordeaux, #b00050);
}
.jv-cost-card__lines {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.9;
}
.jv-cost-card__lines li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.jv-cost-card__label { color: #555; }
.jv-cost-card__amount { color: #333; font-feature-settings: "tnum"; }
.jv-cost-card__total {
  border-top: 1px dashed #d8c3cc;
  padding-top: 8px;
  font-size: 14px;
  text-align: right;
}
.jv-cost-card__total strong {
  color: var(--jofuu-bordeaux, #b00050);
  font-size: 16px;
}
.jv-cost-memo {
  background: #fff8f1;
  border-left: 3px solid var(--jofuu-gold, #c4a657);
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.8;
}
.jv-cost-memo strong { display: block; margin-bottom: 4px; }
.jv-cost-memo p { margin: 0; }

/* 編集部評価 */
.jv-eval { margin-bottom: 24px; }
.jv-eval__row {
  border-bottom: 1px solid var(--color-border, #f0e3e7);
  padding: 12px 0;
}
.jv-eval__row:last-child { border-bottom: none; }
.jv-eval__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.jv-eval__name { font-weight: 700; font-size: 14px; color: #333; }
.jv-eval__stars {
  color: var(--jofuu-bordeaux, #b00050);
  letter-spacing: 2px;
  font-size: 16px;
  font-feature-settings: "tnum";
}
.jv-eval__comment {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: #555;
}
.jv-eval__summary {
  margin-top: 20px;
  padding: 16px 18px;
  background: #fdfaf3;
  border-radius: 10px;
}
.jv-eval__summary h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--jofuu-bordeaux, #b00050);
}
.jv-eval__summary p {
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
  color: #333;
}

@media (max-width: 600px) {
  .jv-cost-grid { grid-template-columns: 1fr; }
}
