@charset "UTF-8";
/* =============================================================
   店舗ページの追加分（2026-09-07 本番反映）
     rv- ＝口コミ・評判
     sa- ＝エリアから外構業者をさがす
     sg- ＝写真ギャラリー

   ⛔ 左線（border-left）は1本も使わない／状態と階層は背景色で表す／角丸5px。
   ⛔ 見積もりの gm- ／絞り込みの hf- ／読み物の ac- とは接頭辞を分ける（足跡を揃えない）。
   ⛔ このファイルは店舗ページ（is_singular('shop')）のときだけ読み込む。
      読み込みの判定は inc/shop-site.php の hikaku_shop_site_assets()。
   色はサイトが既に使っている緑（#2f7d4f / #24603c / #eaf3ec / #f4faf5）にそろえる。
   ============================================================= */

/* 目には見えないが読み上げには届く文字（テーマに用意が無いのでここで定義する） */
.rv-sr,
.sg-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* =============================================================
   1. 口コミ・評判
   ============================================================= */

.rv-figure { display: block; width: 100%; height: auto; border-radius: 5px; margin: 2px 0 20px; }

/* 送信のあとに出す知らせ（⛔ 状態は背景色で表す） */
.rv-notice { border-radius: 5px; padding: 14px 18px; margin: 0 0 18px; font-size: 14px; line-height: 1.85; }
.rv-notice.ok { background: #eaf3ec; color: #24603c; }
.rv-notice.err { background: #fdecea; color: #b03a2e; }

/* --- 要約（平均点と4項目のバー） --------------------------------- */
.rv-summary {
  display: grid; grid-template-columns: 190px 1fr; gap: 24px; align-items: center;
  background: #f4faf5; border-radius: 5px; padding: 20px 22px; margin: 0 0 18px;
}
.rv-score { text-align: center; }
.rv-score .n { font-size: 46px; font-weight: 800; color: #24603c; line-height: 1.1; }
.rv-score .c { font-size: 12.5px; color: #777; margin-top: 4px; }
.rv-stars { display: inline-flex; gap: 2px; }
.rv-stars svg { width: 19px; height: 19px; }
.rv-stars .on { color: #f0a500; }
.rv-stars .off { color: #d7ddd8; }
.rv-bars { display: grid; gap: 9px; }
.rv-bar { display: grid; grid-template-columns: 120px 1fr 34px; align-items: center; gap: 10px; }
.rv-bar .l { font-size: 13px; color: #333; }
.rv-bar .t { height: 8px; background: #e0e8e2; border-radius: 5px; overflow: hidden; }
.rv-bar .f { height: 100%; background: #2f7d4f; border-radius: 5px; }
.rv-bar .v { font-size: 13px; font-weight: 700; color: #24603c; text-align: right; }

/* --- カード ------------------------------------------------------ */
.rv-list { display: grid; gap: 12px; margin: 0 0 22px; }
.rv-item { border: 1px solid #e3e6ea; border-radius: 5px; padding: 16px 18px; background: #fff; }
.rv-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 8px; }
.rv-av {
  width: 34px; height: 34px; border-radius: 5px; background: #eaf3ec; color: #24603c;
  display: grid; place-items: center; font-weight: 800; font-size: 15px; flex: 0 0 auto;
}
.rv-who { flex: 1 1 auto; min-width: 0; }
.rv-who .n { font-size: 13.5px; font-weight: 700; color: #333; }
.rv-who .d { font-size: 12px; color: #777; }
.rv-item .rv-stars svg { width: 15px; height: 15px; }
.rv-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 9px; }
.rv-meta span {
  display: inline-block; background: #f4faf5; color: #24603c; border-radius: 5px;
  padding: 3px 10px; font-size: 12px; line-height: 1.7;
}
.rv-title { font-size: 15px; font-weight: 700; color: #24603c; margin: 0 0 5px; }
.rv-body { font-size: 14px; line-height: 1.85; color: #333; margin: 0; overflow-wrap: anywhere; }

/* まだ1件も無いとき（⛔ 空欄のまま放置しない） */
.rv-empty {
  background: #f4faf5; border-radius: 5px; padding: 18px 20px; margin: 0 0 20px;
  font-size: 14.5px; line-height: 1.9; color: #333;
}

/* --- 残りの口コミを開く（⛔ JSは足さない・details の標準機能）------ */
.rv-more { border-radius: 5px; margin: 0 0 22px; }
.rv-more > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 11px 18px; border-radius: 5px;
  background: #eaf3ec; color: #24603c; font-size: 15px; font-weight: 700;
}
.rv-more > summary::-webkit-details-marker { display: none; }
.rv-more > summary::after { content: "＋"; font-weight: 700; }
.rv-more[open] > summary::after { content: "−"; }
.rv-more > summary:hover { background: #dfeadf; }
.rv-more .rv-list { margin: 12px 0 0; }

/* --- 投稿フォーム ------------------------------------------------- */
.rv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rv-form-wrap { background: #f7f8fa; border-radius: 5px; padding: 22px 24px; }
.rv-form-h { font-size: 17px; font-weight: 800; color: #24603c; margin: 0 0 6px; }
.rv-form-note { font-size: 12.5px; color: #777; margin: 0 0 18px; line-height: 1.8; }
.rv-f { margin: 0 0 15px; }
.rv-f > label { display: block; font-size: 13.5px; font-weight: 700; color: #333; margin: 0 0 6px; }
.rv-f input[type="text"],
.rv-f textarea,
.rv-f select {
  width: 100%; border: 1px solid #e3e6ea; border-radius: 5px; padding: 11px 13px;
  font-family: inherit; font-size: 15px; color: #333; background: #fff; min-height: 44px;
}
.rv-f textarea { resize: vertical; min-height: 120px; line-height: 1.8; }
.rv-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rv-two .rv-f { margin: 0; }
.rv-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0 0 15px; }
.rv-cats .rv-f { margin: 0; }
.rv-req {
  font-size: 10.5px; font-weight: 700; color: #fff; background: #c0392b;
  border-radius: 5px; padding: 2px 7px; margin-left: 7px; vertical-align: 1px;
}
.rv-opt {
  font-size: 10.5px; font-weight: 700; color: #555; background: #e9ecef;
  border-radius: 5px; padding: 2px 7px; margin-left: 7px; vertical-align: 1px;
}

/* 星（右から左に並べて、CSSだけで「その星まで点く」を作る＝JSを足さない） */
.rv-star { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.rv-star input { position: absolute; opacity: 0; width: 0; height: 0; }
/* ⛔ 星は押す場所そのもの。文字の高さ37.4pxだけだと44pxに足りないので、上下に4pxずつ足して45.4pxにしてある。 */
.rv-star label { color: #d7ddd8; font-size: 34px; line-height: 1.1; cursor: pointer; padding: 4px 3px; }
.rv-star label:hover,
.rv-star label:hover ~ label,
.rv-star input:checked ~ label { color: #f0a500; }
.rv-star input:focus-visible + label { outline: 2px solid #2f7d4f; outline-offset: 2px; }

/* チェックボックスの四角は22pxだが、押せる範囲は行全体（label）なので44pxを下回らない。 */
.rv-consent {
  display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: #333;
  line-height: 1.8; margin: 4px 0 16px; min-height: 44px;
}
.rv-consent input { width: 22px; height: 22px; margin-top: 2px; accent-color: #2f7d4f; flex: 0 0 auto; }
.rv-submit {
  display: block; width: 100%; min-height: 52px; border: 0; border-radius: 5px;
  background: #2f7d4f; color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.rv-submit:hover { background: #24603c; }
.rv-guide { font-size: 12px; color: #777; margin: 12px 0 0; line-height: 1.8; }

/* =============================================================
   2. エリアから外構業者をさがす
      ⛔ 帯画像は無し。背景色が変わることが区切りになる。
   ============================================================= */

.sa-block { background: #f4faf5; border-radius: 5px; padding: 22px 24px; margin: 30px 0 4px; }
/* テーマの見出し（.shop-detail-subheading）は15pxと小さいので、この箱の中だけ17pxにする。 */
.sa-block > .shop-detail-subheading { margin: 0 0 10px; font-size: 17px; }
.sa-block > :last-child { margin-bottom: 0; }
.sa-lead { font-size: 15px; line-height: 1.9; color: #333; margin: 0 0 16px; }
.sa-group { margin: 0 0 18px; }
.sa-group-h { font-size: 13px; font-weight: 700; color: #777; margin: 0 0 9px; }
.sa-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sa-chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px;
  background: #fff; border: 1px solid #dfeadf; border-radius: 5px;
  font-size: 14px; color: #24603c; text-decoration: none;
}
.sa-chip:hover { background: #eaf3ec; opacity: 1; }
.sa-wide {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 18px; margin-top: 6px;
  background: #2f7d4f; border-radius: 5px;
  font-size: 15.5px; font-weight: 700; color: #fff; text-decoration: none; text-align: center;
}
.sa-wide:hover { background: #24603c; opacity: 1; }

/* =============================================================
   3. 写真ギャラリー
      ⛔ 切り替えはラジオボタンとCSSだけ。JavaScriptは1行も使っていない。
      ⛔ 枚数を増やすときは、下の sg-r1..sg-r12 の行も同じ数だけ足すこと
         （PHP側の HIKAKU_GALLERY_MAX と必ず一致させる）。
   ============================================================= */

.sg-gallery { margin: 0 0 26px; }
.sg-r { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sg-main { background: #f4faf5; border-radius: 5px; overflow: hidden; }
.sg-slide { margin: 0; display: none; }
/* 1枚しか無い店舗は、ラジオもサムネイルも出さないので、そのまま出す。 */
.sg-single .sg-slide { display: block; }
.sg-main img.sg-img { display: block; width: 100%; height: 400px; object-fit: contain; }

.sg-thumbs {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none;
}
.sg-thumbs li { margin: 0; }
/* ⛔ 指で押す部分は44px以上。88pxにしてある。 */
.sg-thumb {
  display: block; width: 88px; height: 88px; border-radius: 5px; overflow: hidden;
  background: #eaf3ec; cursor: pointer; padding: 3px;
}
.sg-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.sg-thumb:hover { background: #dfeadf; }
.sg-note { font-size: 12px; color: #777; margin: 9px 0 0; line-height: 1.8; }

/* 選ばれている写真を出す＋そのサムネイルの背景を濃くする（⛔ 状態は背景色で表す） */
.sg-r1:checked ~ .sg-main .sg-s1,
.sg-r2:checked ~ .sg-main .sg-s2,
.sg-r3:checked ~ .sg-main .sg-s3,
.sg-r4:checked ~ .sg-main .sg-s4,
.sg-r5:checked ~ .sg-main .sg-s5,
.sg-r6:checked ~ .sg-main .sg-s6,
.sg-r7:checked ~ .sg-main .sg-s7,
.sg-r8:checked ~ .sg-main .sg-s8,
.sg-r9:checked ~ .sg-main .sg-s9,
.sg-r10:checked ~ .sg-main .sg-s10,
.sg-r11:checked ~ .sg-main .sg-s11,
.sg-r12:checked ~ .sg-main .sg-s12 { display: block; }

.sg-r1:checked ~ .sg-thumbs .sg-t1,
.sg-r2:checked ~ .sg-thumbs .sg-t2,
.sg-r3:checked ~ .sg-thumbs .sg-t3,
.sg-r4:checked ~ .sg-thumbs .sg-t4,
.sg-r5:checked ~ .sg-thumbs .sg-t5,
.sg-r6:checked ~ .sg-thumbs .sg-t6,
.sg-r7:checked ~ .sg-thumbs .sg-t7,
.sg-r8:checked ~ .sg-thumbs .sg-t8,
.sg-r9:checked ~ .sg-thumbs .sg-t9,
.sg-r10:checked ~ .sg-thumbs .sg-t10,
.sg-r11:checked ~ .sg-thumbs .sg-t11,
.sg-r12:checked ~ .sg-thumbs .sg-t12 { background: #2f7d4f; }

/* キーボードで動かしている人に、今どこにいるか見せる */
.sg-r1:focus-visible ~ .sg-thumbs .sg-t1,
.sg-r2:focus-visible ~ .sg-thumbs .sg-t2,
.sg-r3:focus-visible ~ .sg-thumbs .sg-t3,
.sg-r4:focus-visible ~ .sg-thumbs .sg-t4,
.sg-r5:focus-visible ~ .sg-thumbs .sg-t5,
.sg-r6:focus-visible ~ .sg-thumbs .sg-t6,
.sg-r7:focus-visible ~ .sg-thumbs .sg-t7,
.sg-r8:focus-visible ~ .sg-thumbs .sg-t8,
.sg-r9:focus-visible ~ .sg-thumbs .sg-t9,
.sg-r10:focus-visible ~ .sg-thumbs .sg-t10,
.sg-r11:focus-visible ~ .sg-thumbs .sg-t11,
.sg-r12:focus-visible ~ .sg-thumbs .sg-t12 { outline: 2px solid #2f7d4f; outline-offset: 2px; }

/* =============================================================
   4. スマホ（390px想定）
   ============================================================= */

@media (max-width: 700px) {
  .rv-summary { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  /* ⛔ 「説明のわかりやすさ」だけラベルが2行に折り返して行がガタつく（390px実測）。
     ラベルの幅を124pxにして、9文字が1行に収まるようにする。 */
  .rv-bar { grid-template-columns: 124px 1fr 32px; gap: 8px; }
  .rv-bar .l { font-size: 12.5px; }
  .rv-two { grid-template-columns: 1fr; }
  /* ⛔ スマホは1列。2列にすると「説明のわかりやすさ」だけラベルが折り返して行の高さがそろわず、
     選択肢が1つ余って浮く（2026-09-07 実測）。絞り込みサイドバーの「スマホは1列」と同じ扱い。 */
  .rv-cats { grid-template-columns: 1fr; }
  .rv-form-wrap { padding: 18px 16px; }
  .sa-block { padding: 18px 16px; }
  .sg-main img.sg-img { height: 260px; }
  .sg-thumb { width: 76px; height: 76px; }
}
