/* 色や余白の基本設定 */
:root {
  --bg: #ffffff;
  --bg-alt: #fbf6f2;
  --text: #3d3532;
  --muted: #7a6e69;
  --line: #eee3dc;
  --accent: #e07a6b;
  --accent-dark: #c9604f;
  --hero-bg: #fdf3ec;
  --soft: #fbe3dc;
  --warn-bg: #fdf0ea;
  --warn-line: #f2c4b8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  line-height: 1.8;
}

a { color: var(--accent); }

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 上部メニュー */
.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}
.tag {
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 400;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  vertical-align: middle;
}
.nav { display: flex; gap: 16px; font-size: 0.9rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--accent); }

/* 最初の大きな見出し（クリーム色の背景＋やわらかいコーラル） */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 72px;
  background: var(--hero-bg);
  color: var(--text);
}
/* 背景のふんわりした丸 */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}
.hero::before {
  width: 360px; height: 360px;
  top: -120px; right: -100px;
  background: #fbded5;
}
.hero::after {
  width: 220px; height: 220px;
  bottom: -90px; left: -60px;
  background: #e7f0e6;
}
.hero .wrap { position: relative; z-index: 1; }

.stop {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 22px 8px;
  font-size: clamp(1.5rem, 5.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(224, 122, 107, 0.35);
  transform: rotate(-3deg);
}
.stop-hand { margin-right: 6px; }

.hero h1 {
  font-size: clamp(2.1rem, 7.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 22px;
}
.mark {
  white-space: nowrap;
  color: var(--accent-dark);
  background: linear-gradient(transparent 62%, var(--soft) 62%);
}
.sub {
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  font-weight: 700;
  margin: 0 0 16px;
}
.lead { color: var(--muted); max-width: 640px; margin: 0 0 32px; font-size: 0.95rem; }

.hero .btn { border: 2px solid var(--accent); color: var(--accent-dark); background: #fff; }
.hero .btn.primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(224, 122, 107, 0.35); }
.hero .btn.primary:hover { background: var(--accent-dark); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block;
  padding: 12px 20px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); }

/* 大事な文言：太字の赤 */
.red {
  color: #d63c2f;
  font-weight: 800;
}

/* 文字の後ろのリボン（両端がV字に切れた帯） */
.ribbon {
  display: inline-block;
  padding: 6px 30px 7px;
  color: #fff;
  background: var(--accent);
  line-height: 1.5;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%, 14px 50%);
}
.ribbon.soft {
  margin: 0 6px 6px 0;
  padding: 3px 24px 4px;
  color: var(--accent-dark);
  background: var(--soft);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%, 10px 50%);
}

/* 各セクション */
.section { padding: 40px 0; }
.section.alt { background: var(--bg-alt); }
.section h2 { font-size: 1.3rem; margin: 0 0 20px; }

/* 価格の流れ（表示イメージ） */
.price-demo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.price-step {
  flex: 1 1 140px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
}
.price-step .label { display: block; font-size: 0.85rem; color: var(--muted); }
.price-step .value { display: block; font-size: 1.4rem; font-weight: 700; }
.arrow { color: var(--muted); font-size: 1.2rem; }
.note { font-size: 0.85rem; color: var(--muted); margin-top: 12px; }

/* 使い方 */
.steps { margin: 0; padding-left: 1.4em; }
.steps li { margin-bottom: 16px; }
.steps p { margin: 4px 0 0; color: var(--muted); }

/* 掲載方針 */
.policy { margin: 0; padding-left: 1.2em; }
.policy li { margin-bottom: 10px; }

/* 相談先 */
.help {
  padding: 20px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: 10px;
}
.help h2 { margin-bottom: 8px; }
.help p { margin: 0; }

/* ===== トップの「数字で見ると」 ===== */
.stats { background: #fff; }
.stat-main {
  margin-bottom: 16px;
  padding: 24px 16px;
  text-align: center;
  background: var(--warn-bg);
  border: 2px solid var(--warn-line);
  border-radius: 18px;
}
.stat-lead { margin: 0; font-weight: 700; }
.stat-big {
  margin: 4px 0;
  font-size: clamp(3rem, 14vw, 5.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: #d63c2f;
  letter-spacing: 0.02em;
}
.stat-sub { margin: 0; font-size: 0.85rem; color: var(--muted); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.stat-card {
  padding: 16px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.stat-card .label { display: block; font-size: 0.85rem; color: var(--muted); }
.stat-card .value { display: block; font-size: 1.8rem; font-weight: 800; }

/* ===== 事例一覧ページ ===== */
.page-head {
  padding: 48px 0 32px;
  background: var(--hero-bg);
}
.page-head h1 { font-size: clamp(1.5rem, 5vw, 2.2rem); margin: 0 0 16px; }
.page-head p { margin: 0; font-weight: 700; }

.sample-notice {
  margin-bottom: 24px;
  padding: 14px 18px;
  background: var(--warn-bg);
  border: 1px dashed var(--warn-line);
  border-radius: 10px;
  font-size: 0.9rem;
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip {
  padding: 8px 18px;
  font: inherit;
  font-weight: 700;
  color: var(--accent-dark);
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: 999px;
  cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--accent); color: #fff; }

.list-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 12px;
}
.count { color: var(--muted); margin: 0; }
.sort { font-size: 0.9rem; font-weight: 700; color: var(--muted); }
.sort select {
  margin-left: 6px;
  padding: 6px 32px 6px 14px;
  font: inherit;
  font-weight: 700;
  color: var(--accent-dark);
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: 999px;
  cursor: pointer;
}

.case-list { display: grid; gap: 16px; }
.case-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(61, 53, 50, 0.06);
}
.case-top { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cat {
  padding: 2px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--soft);
  color: var(--accent-dark);
  border-radius: 999px;
}
.status {
  padding: 2px 12px;
  font-size: 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.status-official { background: #e8eef7; border-color: #b8c9e2; color: #3a5580; }
.status-verified { background: #e7f0e6; border-color: #b9d3b6; color: #3f6b3a; }
.status-reported { background: #fdf0ea; border-color: var(--warn-line); color: var(--accent-dark); }
.status-sample   { background: #f3f1ef; border-style: dashed; }

.case-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.case-prices > div { flex: 1 1 110px; }
.case-prices .label { display: block; font-size: 0.8rem; color: var(--muted); }
.case-prices .value { display: block; font-size: 1.2rem; font-weight: 700; }
.case-prices .final .value { color: #d63c2f; font-size: 1.4rem; }
.unknown { color: var(--muted); font-weight: 400; font-size: 1rem; }

.ratio { margin: 12px 0 0; }
.desc { margin: 10px 0 0; }
.meta { margin: 8px 0 0; font-size: 0.8rem; color: var(--muted); }
.empty { color: var(--muted); }

/* 一覧のカードはクリックできるリンク */
a.case-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
a.case-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(61, 53, 50, 0.12);
}
.more { float: right; color: var(--accent-dark); font-weight: 700; }

/* ===== 事例の詳細ページ ===== */
.back { margin: 0 0 20px; }
.back a { text-decoration: none; font-weight: 700; }
.detail-title { font-size: clamp(1.4rem, 5vw, 2rem); margin: 0 0 20px; }
.detail-h2 {
  margin: 32px 0 10px;
  padding-left: 12px;
  font-size: 1.15rem;
  border-left: 6px solid var(--accent);
}
.info-table { width: 100%; border-collapse: collapse; }
.info-table th,
.info-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.info-table th { width: 9em; color: var(--muted); font-weight: 700; background: var(--bg-alt); }
.tip {
  margin: 32px 0 20px;
  padding: 4px 20px 16px;
  background: var(--bg-alt);
  border-radius: 14px;
}
.tip ul { padding-left: 1.2em; }
.tip li { margin-bottom: 6px; }
.tip p { margin: 0; }

/* ===== チェックリストページ ===== */
.progress {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 8px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(61, 53, 50, 0.06);
}
#progress-text { font-weight: 800; color: var(--accent-dark); }
.progress-bar {
  flex: 1 1 160px;
  height: 10px;
  background: var(--bg-alt);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  width: 0;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.25s;
}
.reset {
  padding: 4px 12px;
  font: inherit;
  font-size: 0.8rem;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.check-group { margin-bottom: 8px; }
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.check:hover { background: var(--bg-alt); }
.check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  accent-color: var(--accent);
}
.check small { color: var(--muted); }
.check.done { background: #f3f8f2; border-color: #b9d3b6; }
.check.done > span { color: var(--muted); }

.check-group ~ .help { margin-top: 32px; }

/* ===== 情報提供ページ ===== */
.list { padding-left: 1.2em; }
.list li { margin-bottom: 8px; }
.list small { color: var(--muted); }

.flow { list-style: none; margin: 0; padding: 0; }
.flow li {
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.flow p { margin: 4px 0 0; color: var(--muted); }
.flow-no {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-weight: 800;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.rule { padding: 4px 18px 8px; border-radius: 12px; }
.rule h3 { font-size: 1rem; }
.rule ul { padding-left: 1.2em; }
.rule.ok { background: #f3f8f2; border: 1px solid #b9d3b6; }
.rule.ok h3 { color: #3f6b3a; }
.rule.ng { background: var(--warn-bg); border: 1px solid var(--warn-line); }
.rule.ng h3 { color: var(--accent-dark); }

.submit-box {
  margin: 32px 0;
  padding: 24px;
  text-align: center;
  background: var(--bg-alt);
  border-radius: 14px;
}
.submit-box p { margin: 0 0 12px; }
.btn.disabled { opacity: 0.5; cursor: not-allowed; }

/* 下部 */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  font-size: 0.85rem;
  color: var(--muted);
}
