@charset "utf-8";

/* ============================================================================
   外壁塗装の相談
   ----------------------------------------------------------------------------
   まず faclog の設計を再現する（色・余白・字送り・部品の型）。
   #f9f9f9 の地に白いカード（角丸20px）、Noto Sans JP、本文800px、
   見出しに濃紺の下線、ラベルセルは水色の白抜き、CTAはティール、星はオレンジ。
   **ファイルを複製したのではなく、読み取った設計を自分で組み直している。**
   ========================================================================== */

:root {
  --font: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;

  --bg: #f2f6f8;          /* 地。faclog の #f9f9f9 より少しだけ青を混ぜている（独自性の起点） */
  --card: #ffffff;
  --text: #252525;
  --muted: #5a5a5a;
  --line: #e3e8eb;

  --navy: #006c9d;        /* 見出しの下線・強い文字 */
  --blue: #0485c0;        /* リンク・面 */
  --sky: #70c3e8;         /* 表のラベルセル */
  --sky-pale: #e8f4fa;    /* 淡い面 */
  --teal: #2bbfb1;        /* CTA */
  --teal-dark: #20858b;
  --star: #ffa215;
  --coral: #fa5c52;

  --radius: 20px;
  --radius-s: 10px;
  --w: 800px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.9;
  letter-spacing: .02em;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: var(--blue); }

/* ---- ヘッダ --------------------------------------------------------------- */
.site-head {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  position: sticky; top: 0; z-index: 20;
}
.site-name {
  display: block; font-weight: 700; font-size: 17px; color: var(--navy);
  text-decoration: none; letter-spacing: .04em;
}
.site-nav {
  display: flex; gap: 4px; margin-top: 8px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  flex: 0 0 auto; padding: 7px 13px; border-radius: 999px;
  font-size: 13px; font-weight: 500; text-decoration: none;
  color: var(--muted); background: var(--sky-pale);
}
.site-nav a[aria-current="page"] { background: var(--navy); color: #fff; }

/* ---- 本体 ----------------------------------------------------------------- */
main { padding: 0 12px 48px; }

main > article {
  max-width: var(--w); margin: 20px auto 0;
  background: var(--card); border-radius: var(--radius); padding: 22px 18px 30px;
}
@media (min-width: 720px) { main > article { padding: 34px 40px 44px; } }

h1 {
  font-size: clamp(21px, 5.6vw, 27px); line-height: 1.55; font-weight: 700;
  letter-spacing: .03em; margin: 0 0 12px; color: var(--navy);
}
h2 {
  font-size: clamp(18px, 4.8vw, 21px); line-height: 1.55; font-weight: 700;
  letter-spacing: .06em; margin: 2.4em 0 .9em;
  padding: 8px 0 8px 14px; border-left: 5px solid var(--navy);
  background: linear-gradient(90deg, var(--sky-pale), transparent 70%);
}
h3 {
  font-size: clamp(16px, 4.26vw, 18px); line-height: 1.5; font-weight: 700;
  letter-spacing: .1em; margin: 2em 0 .7em;
  padding-bottom: 5px; border-bottom: 2px solid var(--navy);
}
p { margin: 0 0 1.2em; }
strong { font-weight: 700; }
.updated { font-size: 12.5px; color: var(--muted); margin: -6px 0 20px; letter-spacing: .04em; }

ul, ol { padding-left: 1.35em; }
li { margin-bottom: .5em; }

/* ---- 目次 ----------------------------------------------------------------- */
.toc {
  background: var(--sky-pale); border-radius: var(--radius-s);
  padding: 16px 18px; margin: 0 0 28px;
}
.toc-t { font-weight: 700; font-size: 14px; margin: 0 0 .6em; color: var(--navy); letter-spacing: .06em; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; }
.toc a {
  display: block; padding: 7px 0 7px 18px; font-size: 14px; line-height: 1.6;
  text-decoration: none; position: relative; color: var(--text);
}
.toc a::before {
  content: ""; position: absolute; left: 4px; top: 15px;
  width: 6px; height: 6px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

/* ---- 表 ------------------------------------------------------------------- */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.3em 0; }
.tablewrap table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14px; line-height: 1.75; }

table.facts th, table.facts td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.facts th {
  width: 32%; min-width: 108px; font-weight: 700; font-size: 13px;
  background: var(--sky); color: #fff; border-bottom: 1px solid #fff;
}
table.facts tr:last-child th { border-bottom: 0; }
table.facts .src { display: block; margin-top: 6px; font-size: 11.5px; color: var(--muted); }

table.compare { min-width: 620px; }
table.compare th, table.compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.compare thead th { background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
table.compare thead th:first-child { border-top-left-radius: 8px; }
table.compare thead th:last-child { border-top-right-radius: 8px; }
table.compare tbody th { font-weight: 700; background: var(--sky-pale); }
table.compare tbody th a { text-decoration: none; color: var(--navy); }
table.compare .sub { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; margin-top: 3px; }

/* ---- カード --------------------------------------------------------------- */
.card {
  border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 16px 18px; margin: 1.3em 0; background: var(--card);
}
.card .lead { margin: 0 0 12px; font-size: 15.5px; }
.card.notice { background: var(--sky-pale); border-color: #cfe4ef; }
.card .small { font-size: 13px; color: var(--muted); }

dl.kv { margin: 0; display: grid; gap: 8px; }
dl.kv > div { display: flex; gap: 12px; font-size: 13.5px; }
dl.kv dt { flex: 0 0 3.6em; color: var(--muted); margin: 0; }
dl.kv dd { margin: 0; word-break: break-all; }

.two { display: grid; gap: 12px; margin: 1.3em 0; }
@media (min-width: 720px) { .two { grid-template-columns: 1fr 1fr; } }
.two .card { margin: 0; }
.two .card .t {
  font-weight: 700; margin: 0 0 8px; font-size: 14px; letter-spacing: .06em;
  display: inline-block; padding: 3px 12px; border-radius: 999px; color: #fff;
}
.two .card.good { border-top: 3px solid var(--teal); }
.two .card.good .t { background: var(--teal); }
.two .card.bad { border-top: 3px solid var(--coral); }
.two .card.bad .t { background: var(--coral); }
.two .card p:last-child { margin-bottom: 0; }
.two .card .sub { font-size: 13.5px; color: var(--muted); }

ul.cardlist { list-style: none; padding: 0; display: grid; gap: 10px; margin: 1.2em 0; }
ul.cardlist a {
  display: block; border: 1px solid var(--line); border-left: 4px solid var(--blue);
  border-radius: var(--radius-s); padding: 14px 16px; text-decoration: none; color: var(--text);
  background: var(--card);
}
ul.cardlist .n { display: block; font-weight: 700; color: var(--navy); }
ul.cardlist .s { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.7; }

/* ---- 星 ------------------------------------------------------------------- */
.stars { display: inline-flex; gap: 2px; vertical-align: -3px; }
.stars svg { width: 17px; height: 17px; }
.stars svg.on { fill: var(--star); }
.stars svg.off { fill: #dfe4e7; }

.rev-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--sky-pale); border-radius: var(--radius-s); padding: 12px 16px; margin: 0 0 16px;
}
.rev-head .avg { font-size: 24px; font-weight: 700; color: var(--navy); line-height: 1; }
.rev-head .cnt { font-size: 12.5px; color: var(--muted); }

ul.revlist { list-style: none; padding: 0; display: grid; gap: 12px; margin: 0; }
li.rev { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px 16px; background: var(--card); }
li.rev p { margin: 0; }
li.rev .who { font-size: 12px; color: var(--muted); margin: 6px 0 8px; }

/* ---- 投稿欄 --------------------------------------------------------------- */
.postbox {
  border: 1px solid #cfe4ef; border-radius: var(--radius);
  padding: 20px 18px; margin: 1.8em 0; background: var(--sky-pale);
}
.postbox h3 { margin-top: 0; font-size: 16px; border-bottom-color: var(--blue); }
.postbox .note { font-size: 13px; color: var(--muted); line-height: 1.85; }
.postbox .note.small { font-size: 12px; }

.revform .row { margin: 16px 0; }
.revform label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; }
.revform .req, .revform .opt {
  font-size: 11px; font-weight: 700; margin-left: 8px; padding: 2px 8px; border-radius: 4px; color: #fff;
}
.revform .req { background: var(--coral); }
.revform .opt { background: #b6c2c8; }
.revform input[type=text], .revform textarea {
  width: 100%; padding: 11px 13px; font-family: inherit;
  font-size: 16px;   /* **16px 未満だと iOS が勝手に拡大する** */
  border: 1px solid #cbd6dc; border-radius: 8px; background: #fff; color: var(--text);
}
.revform textarea { line-height: 1.8; resize: vertical; }
.revform input:focus, .revform textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.revform .count { font-size: 12px; color: var(--muted); margin: 6px 0 0; text-align: right; }
.revform .count.ng { color: var(--coral); font-weight: 700; }

.rate { display: flex; gap: 8px; }
.star-radio { position: relative; }
.star-radio input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.star-radio span {
  display: grid; place-items: center;
  width: 48px; height: 48px;   /* **タップ対象は44px以上** */
  border: 1px solid #cbd6dc; border-radius: 10px; background: #fff;
  font-size: 15px; font-weight: 700; color: var(--muted);
}
.star-radio input:checked + span { background: var(--star); border-color: var(--star); color: #fff; }
.star-radio input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.revform button[type=submit] {
  width: 100%; min-height: 52px; font-family: inherit; font-size: 16px; font-weight: 700;
  cursor: pointer; border: 0; border-radius: 999px; color: #fff;
  background: var(--teal); box-shadow: 0 3px 0 var(--teal-dark);
}
.revform button[type=submit]:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--teal-dark); }
.revform button[disabled] { opacity: .5; cursor: default; box-shadow: none; }
.revform .msg { font-size: 13.5px; margin: 12px 0 0; }
.revform .msg.ng { color: var(--coral); font-weight: 700; }
.revform .thanks { margin: 0; line-height: 2; }

/* ---- 申し込み ------------------------------------------------------------- */
.cta-pending {
  border: 2px dashed #b6c8d2; border-radius: var(--radius-s);
  padding: 16px 18px; margin: 1.3em 0; font-size: 14px; background: #fbfdfe;
}
.cta-pending p { margin: 8px 0; }
.backlink { margin-top: 2.4em; font-size: 13.5px; }

/* ---- 図 ------------------------------------------------------------------- */
figure.fig { margin: 1.8em 0; }
figure.fig svg { width: 100%; height: auto; display: block; color: var(--navy); }
figure.fig figcaption { font-size: 12.5px; color: var(--muted); margin-top: 10px; line-height: 1.8; }

/* ---- フッタ --------------------------------------------------------------- */
.site-foot {
  margin-top: 40px; padding: 26px 16px 40px; background: var(--navy); color: #fff;
}
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; max-width: var(--w); margin: 0 auto 16px; }
.site-foot a { color: #d6ecf6; font-size: 13px; text-decoration: none; }
.site-foot .pr { max-width: var(--w); margin: 0 auto; font-size: 11.5px; color: #a9cfe2; }

/* ---- ヒーロー（faclog の user-white / company-info の型）------------------- */
.hero { display: grid; gap: 12px; margin: 0 0 20px; }
@media (min-width: 640px) { .hero { grid-template-columns: 200px 1fr; align-items: start; } }

.hero-card {
  border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 16px; text-align: center; background: #fff;
}
.hero-logo {
  width: 76px; height: 76px; margin: 0 auto 10px; border-radius: 50%;
  display: grid; place-items: center; font-size: 26px; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, var(--blue), var(--teal)); letter-spacing: .02em;
}
.hero-rate .norate {
  margin: 0 0 8px; font-size: 13px; font-weight: 700; line-height: 1.5;
  color: var(--muted); background: var(--sky-pale); border-radius: 8px; padding: 8px 6px;
}
.hero-more {
  display: inline-block; font-size: 12.5px; font-weight: 700; text-decoration: none;
  color: #fff; background: var(--teal); border-radius: 999px; padding: 7px 16px; min-height: 34px;
}
.hero-name { margin: 10px 0 0; font-size: 13px; font-weight: 700; color: var(--navy); line-height: 1.5; }

.hero-spec table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.hero-spec th, .hero-spec td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.hero-spec th { width: 38%; background: var(--sky-pale); color: var(--navy); font-weight: 700; white-space: nowrap; }
.hero-spec tr:first-child th { border-top-left-radius: 8px; }
.hero-spec tr:last-child th, .hero-spec tr:last-child td { border-bottom: 0; }

/* ---- 口コミ：絞り込み枠 ---------------------------------------------------- */
.rev-wrap { display: grid; gap: 14px; }
@media (min-width: 720px) { .rev-wrap { grid-template-columns: 176px 1fr; align-items: start; } }
.rev-filter {
  border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px; background: #fff;
}
.rev-filter .ft { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; color: var(--navy); }
.ft-row { display: flex; align-items: center; gap: 7px; padding: 7px 0; cursor: pointer; font-size: 12.5px; min-height: 34px; }
.ft-row input { width: 17px; height: 17px; accent-color: var(--blue); flex: 0 0 auto; }
.ft-row .n { color: var(--muted); margin-left: auto; }

li.rev h3 {
  font-size: 15px; margin: 8px 0 10px; padding-bottom: 6px;
  border-bottom: 2px solid var(--navy); letter-spacing: .04em; line-height: 1.55;
}
.rev-attrs { display: grid; gap: 1px; margin: 0 0 12px; }
.rev-attr { display: flex; font-size: 12.5px; }
.rev-attr .k {
  flex: 0 0 84px; background: var(--sky); color: #fff; font-weight: 700;
  padding: 4px 8px; line-height: 1.7;
}
.rev-attr .v { flex: 1; background: var(--sky-pale); padding: 4px 10px; line-height: 1.7; }
li.rev .who { margin-top: 12px; text-align: right; }
