/* 用途: 段階4cの買取ブランド比較ページ用スタイル。 */
:root {
  color-scheme: light;
  --ink: #222;
  --muted: #666;
  --line: #e4e4e4;
  --band: #f4f5f7;
  --link: #1558b0;
  --brand: #2f7fd1;
  --track: #d9dee5;
  --star: #f5a623;
  --cta: #e03131;
  --current: #eef5fd;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 12px;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Noto Sans JP","Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic UI",Meiryo,sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header a {
  display: block;
  width: calc(100% - 32px);
  max-width: 760px;
  min-height: 44px;
  margin: 0 auto;
  padding: 8px 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
}

.breadcrumb,
main,
footer {
  width: calc(100% - 32px);
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.breadcrumb {
  padding-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.breadcrumb a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

main {
  padding-top: 18px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

p + p {
  margin-top: 12px;
}

.bars + p,
.year-chart + p,
.legend + p,
.stacked-legend + p,
.table-scroll + p,
.conditions + p {
  margin-top: 16px;
}

.stacked-legend + .brand-bar-heading,
.stacked-legend + .ugc-result[hidden] + .brand-bar-heading {
  margin-top: 24px;
}

h1 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.5;
}

h2 {
  margin-bottom: 14px;
  padding: 0 0 7px 10px;
  border-bottom: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  font-size: 19px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

strong, b { font-weight: 400; }
th { font-weight: 400; }

h3 {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--link);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

button,
input,
select,
textarea,
summary {
  font: inherit;
}

button,
input,
select {
  min-height: 44px;
  max-width: 100%;
}

svg {
  display: block;
  max-width: 100%;
}

.intro {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.rating {
  display: grid;
  grid-template-columns: minmax(76px, 0.8fr) minmax(0, 2.2fr);
  align-items: center;
  gap: 12px;
}

.rating-average {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
}

.rating-average strong {
  font-size: 28px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.stars {
  width: 120px;
  height: 24px;
}

.bars {
  margin: 10px 0;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(58px, 0.9fr) minmax(48px, 2fr) minmax(48px, 0.65fr);
  align-items: center;
  gap: 7px;
  margin: 5px 0;
}

.bar-label {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.bar-track {
  height: 14px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--track);
}

.bar-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.brand-bars .bar-track {
  background: #eef0f3;
}

.bar-value {
  min-width: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.rating + .note {
  margin-top: 6px;
}

.methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.method {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 3px 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.method.active {
  border-color: var(--brand);
  color: var(--brand);
  font-weight: 500;
}

.findings {
  margin: 18px 0;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.findings h3 {
  margin-bottom: 7px;
}

.findings .lead {
  font-weight: 400;
}

.findings ul {
  margin: 8px 0 0;
  padding-left: 1.2em;
}

.findings li + li {
  margin-top: 5px;
}

.lead {
  line-height: 1.8;
  margin-bottom: 16px;
}

.cta {
  margin: 20px 0 8px;
  text-align: center;
}

.apply {
  display: flex;
  width: 100%;
  max-width: 360px;
  height: 52px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--cta);
  box-shadow: 0 1px 0 #666;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.cta small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

main > section {
  margin: 0 -16px;
  padding: 20px 16px;
  border-bottom: 8px solid var(--band);
}

.answer {
  margin-bottom: 14px;
  font-weight: 400;
}

.conditions {
  margin: 0;
}

.condition {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.condition dt {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.condition dd {
  margin: 0;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.condition-sources { display: block; margin-top: 4px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.condition-sources a { display: inline-flex; min-height: 44px; align-items: center; vertical-align: middle; }
.brand-scope-note { display: block; font-size: 13px; font-weight: 400; overflow-wrap: anywhere; }

details.condition {
  padding: 0;
}

summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  cursor: pointer;
  color: var(--link);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

details[open] > summary {
  margin-bottom: 6px;
}

details.condition > div {
  padding: 0 0 10px;
  overflow-wrap: anywhere;
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
  line-height: 1.55;
}

th,
td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

thead th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  vertical-align: bottom;
}

.current-brand {
  background: var(--current);
  font-weight: 400;
}

.comparison-scroll {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.comparison {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  font-size: 13px;
}

.comparison th:first-child,
.comparison td:first-child {
  width: 24%;
}

.comparison th,
.comparison td { padding: 8px 4px; }
.review-comparison th:first-child { width: 33%; }
.review-comparison th:nth-child(2) { width: 10%; }
.review-comparison th:nth-child(3) { width: 16%; }
.review-comparison th:nth-child(4) { width: 21%; }
.review-comparison th:nth-child(5) { width: 20%; }
.condition-comparison th:first-child { width: 33%; }
.condition-comparison th:nth-child(2) { width: 15%; }
.condition-comparison th:nth-child(3) { width: 26%; }
.condition-comparison th:nth-child(4) { width: 26%; }
.sampling-note { display: block; margin-top: 3px; font-size: 13px; font-weight: 400; }
.comparison .brand-name { font-size: 14px; gap: 4px; white-space: normal; min-width: 0; width: 100%; }
.comparison .brand-name.long-name { font-size: 13px; }
.comparison .brand-label { min-width: 0; line-height: 1.4; overflow-wrap: anywhere; white-space: normal; }
.comparison .brand-name a { min-width: 0; flex: 1; }
.comparison .brand-icon { width: 20px; height: 20px; font-size: 12px; flex-shrink: 0; }
.comparison .brand-name a { gap: 4px; }
.pending { text-align: center; color: var(--muted); }
#comparison h3 { margin: 18px 0 8px; }
.scroll-hint { margin-bottom: 6px; }

.comparison th:first-child {
  position: sticky;
  z-index: 3;
  left: 0;
  background: #fff;
}

.comparison td:first-child {
  position: sticky;
  z-index: 1;
  left: 0;
  background: #fff;
}

.comparison tr.current-brand th:first-child {
  background: var(--current);
}

.comparison td.numeric {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.store-table {
  font-size: 13px;
}

.store-table th:nth-child(1),
.store-table td:nth-child(1) {
  width: 43%;
  text-align: left;
}

.store-table th:nth-child(2),
.store-table td:nth-child(2) {
  width: 17%;
}

.store-table th:nth-child(3),
.store-table td:nth-child(3) {
  width: 22%;
}

.store-table th:nth-child(4),
.store-table td:nth-child(4) {
  width: 18%;
}

.store-table thead th { white-space: nowrap; }
.store-table th:not(:first-child),
.store-table td:not(:first-child) {
  text-align: right;
}

.store-table td:not(:first-child) {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.filters select,
.filters input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}

.filters input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.filters label > span { display: block; margin-bottom: 3px; }

#more-stores,.comparison-more {
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--link);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
}


.legend,
.stacked-legend {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.legend li,
.stacked-legend li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.55;
}

.legend strong,
.stacked-legend strong {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.legend-swatch {
  display: block;
  width: 12px;
  height: 12px;
}

.stacked {
  display: flex;
  width: 100%;
  height: 14px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--track);
}

.stacked > span {
  display: block;
  height: 100%;
}

.stacked-legend {
  grid-template-columns: minmax(0, 1fr);
}

.year-chart {
  margin: 14px 0;
  width: 100%;
}

.year-row,
.year-heading {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 74px 54px;
  align-items: center;
  gap: 7px;
  margin: 7px 0;
  font-size: 13px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}

.year-row > strong,
.year-row > span:last-child,
.year-heading > span:last-child { text-align: right; white-space: nowrap; }
.year-heading { color: var(--muted); }
.year-until { display: block; color: var(--muted); font-size: 13px; }
.year-count-heading { grid-column: 2 / 4; }

#method p + p {
  margin-top: 10px;
}

footer {
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

footer p + p {
  margin-top: 5px;
}

[hidden] {
  display: none !important;
}

#sticky-apply {
  display: none;
}

@media (min-width: 1024px) {
  main {
    padding-top: 24px;
  }

  main > section {
    margin: 34px 0 0;
    padding: 28px 0 0;
    border-bottom: 0;
  }

  .rating {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 20px;
  }

  .bar-row {
    grid-template-columns: minmax(90px, 0.8fr) minmax(100px, 2fr) minmax(58px, 0.5fr);
    gap: 10px;
  }

  .filters {
    grid-template-columns: 200px minmax(0, 1fr);
  }


  .legend {
    grid-template-columns: minmax(0, 1fr);
  }

  #sticky-apply {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 1023px) {
  #sticky-apply {
    position: fixed;
    z-index: 20;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 2fr 1fr;
    height: 56px;
    align-items: center;
    justify-content: center;
    padding: 5px 16px;
    border-top: 1px solid var(--line);
    background: var(--band);
    gap: 6px;
  }

  #sticky-apply .sticky-cta {
    width: 100%;
    max-width: 360px;
    margin: 0;
  }

  #sticky-apply .apply {
    height: 44px;
    min-height: 44px;
    flex: 2;
    min-width: 0;
    max-width: none;
    margin: 0;
  }
  #sticky-apply:has(.sticky-review[hidden]) { grid-template-columns: 1fr; }

  #sticky-apply .sticky-review {
    display: flex;
    flex: 1;
    min-width: 0;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid #2f7fd1;
    border-radius: 6px;
    background: #fff;
    color: #2f7fd1;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
  }

  #sticky-apply small {
    display: none;
  }

  body.sticky-enabled {
    padding-bottom: 56px;
  }
}

/* 指定の中点で箇条書きを示す。 */
.findings ul { list-style: none; padding-left: 0; }
.findings li { position: relative; padding-left: 1em; }
.findings li::before { position: absolute; left: 0; content: "・"; }

.comparison th a { display: flex; align-items: center; min-height: 44px; }

/* 用途: 段階4dの声・移動札・ブランド頭文字をスマホ幅で表示する。 */
h1 { display: flex; align-items: center; gap: 10px; }
h1 > span:last-child { min-width: 0; }
.brand-icon { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-size: 14px; font-weight: 700; object-fit: contain; line-height: 1; }
h1 .brand-icon { font-size: 23px; }
.brand-name { display: flex; align-items: center; gap: 6px; }
.comparison .brand-name a { gap: 6px; }
.voice-card { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: start; gap: 12px; margin: 14px 0; }
.voice-icon { flex-shrink: 0; margin-top: 8px; }
.voice-bubble { position: relative; min-width: 0; padding: 12px; background: #f4f5f7; border-radius: 6px; }
.voice-bubble::before { position: absolute; top: 20px; left: -7px; content: ''; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-right: 7px solid #f4f5f7; }
.voice-bubble p { font-size: 16px; line-height: 1.8; }
.voice-meta { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; color: #666; font-size: 13px; line-height: 1.6; }
.voice-badge { font-weight: 500; }
.jump-nav { margin: 20px 0; }
.jump-nav > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.jump-nav a { display: flex; min-height: 44px; align-items: center; padding: 6px 10px; border: 1px solid #2f7fd1; border-radius: 6px; color: #1558b0; font-size: 14px; }

/* 段階6a: OpenWorkの情報の段差と一休のタブを手本にした共通部品。 */
:root { --ink:#1c2430; --muted:#5b6475; --line:#e3e7ee; --band:#f2f4f6; --link:#0f7a55; --brand:#0f7a55; --track:#e3e7ee; --current:#e8f5ee; --positive:#128a5c; --negative:#d9534f; --soft-shadow:0 -2px 12px #1c24300d; }
body { font-family:"Noto Sans JP","Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic UI",Meiryo,sans-serif; background:#fff; }
html { scroll-padding-top:80px; }
a,button,summary { -webkit-tap-highlight-color:transparent; }
h1 { font-size:21px; font-weight:700; line-height:1.5; letter-spacing:0; }
h2 { display:flex; gap:10px; align-items:center; margin:0 -16px 20px; padding:14px 16px; border:0; background:var(--band); font-size:17px; font-weight:700; line-height:1.6; }
h2>span { min-width:0; text-wrap:pretty; }
h2 .line-icon { width:20px; height:20px; flex:0 0 20px; }
.line-icon { display:block; width:20px; height:20px; flex:0 0 20px; }
.site-header { height:56px; background:#fff; }
.site-header-inner { display:flex; width:calc(100% - 32px); max-width:1020px; height:55px; margin:auto; align-items:center; justify-content:space-between; gap:8px; }
.site-header a { width:auto; margin:0; padding:0; display:flex; align-items:center; gap:6px; }
.site-header .wordmark { color:var(--ink); font-size:13px; font-weight:700; line-height:1.45; }
.site-header .wordmark { flex:0 0 auto; }
.site-logo-header { display:block; height:36px; width:auto; }
.site-logo-full { display:block; height:auto; max-width:100%; }
.footer-logo { width:220px; margin:4px 0 16px; }
.about-logo { width:280px; margin:24px auto 0; }
p.review-invitation { font-size:13px; color:var(--muted); margin-top:8px; }
.site-header nav { display:flex; gap:12px; flex:0 0 auto; }
.site-header nav a { flex-direction:column; justify-content:center; gap:2px; color:var(--brand); font-size:10px; line-height:1.3; }
.site-header nav .line-icon { height:19px; }
.breadcrumb { max-width:1020px; padding-top:4px; font-size:13px; }
.breadcrumb a { min-height:44px; }
main { max-width:680px; padding-top:12px; }
.brand-heading { display:grid; grid-template-columns:64px minmax(0,1fr); gap:12px; align-items:center; }
.brand-heading>.brand-icon { width:64px!important; height:64px!important; font-size:28px; border:1px solid var(--line); border-radius:12px; }
.brand-heading h1 { display:block; margin:4px 0; text-wrap:pretty; }
.brand-heading .methods { margin:0; gap:4px; }
.methods { margin:14px 0; }
.method { min-height:24px; padding:2px 8px; border-radius:999px; font-size:12px; line-height:1.5; }
.method.active { background:var(--current); border-color:transparent; color:var(--brand); font-weight: 500; }
.hero .intro { margin:10px 0 12px; line-height:1.7; }
.hero-rating-line { display:flex; align-items:center; flex-wrap:wrap; column-gap:8px; font-size:13px; color:var(--muted); line-height:1.4; }
.hero-rating-line strong { font-weight:700; font-size:21px; color:var(--ink); font-variant-numeric:tabular-nums; }
.hero-rating-line .stars { width:76px; height:16px; }
.jump-nav { position:sticky; top:0; z-index:15; margin:0 -16px 16px; padding:4px; background:var(--brand); }
.jump-nav>div { display:flex; flex-wrap:nowrap; gap:2px; margin:0; overflow:auto; overscroll-behavior-inline:contain; scrollbar-width:none; }
.jump-nav a { flex:0 0 auto; min-height:52px; flex-direction:column; position:relative; justify-content:center; gap:3px; padding:5px 14px; border:0; border-radius:5px; color:#fff; text-decoration:none; font-size:12px; line-height:1.4; white-space:nowrap; }
.jump-nav .line-icon { width:18px; height:18px; flex-basis:18px; }
.jump-nav a[aria-current=true] { color:#fff; background:#0a5c40; font-weight:700; }
.jump-nav .tab-count { display:inline-block; margin-left:4px; padding:0 4px; border-radius:3px; background:#fff; color:var(--brand); font-size:10px; }
.jump-nav a:has(.tab-count) { display:grid; grid-template-columns:auto auto; justify-items:center; }
.jump-nav a:has(.tab-count) .line-icon { grid-column:1 / 3; }
.rating { grid-template-columns:90px minmax(0,1fr); gap:14px; padding-top:2px; }
.rating-average strong { font-size:36px; font-weight:700; }
.rating-average .stars { width:90px; height:18px; }
.rating .bar-row { grid-template-columns:24px minmax(0,1fr) 50px; gap:7px; margin:0; height:18px; }
.rating .bar-track { height:8px; border-radius:4px; }
.rating .bar-track>span { background:var(--star)!important; }
.rating .bars { margin:0; }
.rating + .note { margin:6px 0 10px; }
.rating-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:12px 0 16px; }
.rating-metric { min-width:0; }
.rating-metric .note { display:block; font-size:13px; }
.rating-metric strong { font-weight:700; display:block; font-size:21px; line-height:1.5; font-variant-numeric:tabular-nums; }
.segment-meter { display:grid; grid-template-columns:repeat(10,minmax(0,1fr)); gap:2px; margin-top:6px; height:5px; }
.segment-meter i { background:var(--line); }
.segment-meter i.filled { background:var(--brand); }
main>section { margin:0; padding:24px 0; border-bottom:0; }
.answer,.lead { padding:14px 16px; border-radius:8px; background:var(--current); font-size:16px; line-height:1.8; font-weight: 400; text-wrap:pretty; margin-bottom:16px; }
.answer::before,.lead::before { content:'結論'; display:table; margin-bottom:6px; font-size:11px; font-weight:500; line-height:1.6; color:var(--brand); }
.answer-text { font-size:16px; line-height:1.8; margin:0; }
[data-fact="main_first_topic"],
[data-fact="main_second_topic"] { display:inline-block; white-space:nowrap; }
.answer-metric { margin-bottom:12px; }
.answer-metric>span { display:block; font-size:13px; font-weight:400; }
.answer-metric strong { display:block; font-size:28px; line-height:1.4; font-weight:700; font-variant-numeric:tabular-nums; }
.article-lead { padding:0; background:none; font-size:16px; line-height:1.8; font-weight:400; }
.article-lead::before { content:none; }
.index-total { font-size:inherit; font-weight:inherit; }
.voice-group-heading { display:flex; gap:7px; align-items:center; margin-top:20px; }
.voice-group-heading::before { content:''; width:7px; height:7px; border-radius:50%; background:var(--positive); }
.voice-group-heading.negative::before { background:var(--negative); }
.voice-group-heading small { font-size:13px; color:var(--muted); font-weight:400; }
.voice-card { display:block; padding:14px; margin:12px 0; border:1px solid var(--line); border-radius:8px; background:#fff; }
.voice-head { display:flex; align-items:center; flex-wrap:wrap; gap:7px; margin-bottom:10px; font-size:12px; font-weight:500; color:var(--muted); }
.voice-card .voice-icon { width:28px; height:28px; margin:0; }
.voice-topic { padding:2px 8px; background:var(--band); color:var(--ink); border-radius:999px; font-size:12px; }
.voice-bubble { padding:0; background:none; border-radius:0; }
.voice-bubble::before { display:none; }
.voice-bubble p { font-size:16px; line-height:1.8; text-wrap:pretty; }
.voice-meta { color:var(--muted); font-size:13px; margin-top:10px; }
.brand-icon { border-radius:6px; }
.bar-track { height:10px; border-radius:5px; }
.brand-bars .bar-track { background:var(--band); }
.brand-bars .bar-row { padding:5px 6px; margin:1px 0; border-radius:4px; grid-template-columns:minmax(90px,1.2fr) minmax(0,2fr) 58px; }
.brand-bars .bar-label { display:flex; align-items:center; gap:6px; }
.brand-bars .brand-icon { width:20px!important; height:20px!important; font-size:12px; }
.brand-bars [data-brand-current=true] .bar-value { font-weight:700; }
.brand-bars [data-brand-current=true] { background:var(--current); font-weight:700; }
.cta { padding:16px; margin:18px 0; border:1px solid var(--line); border-radius:8px; background:#fff; }
.cta-heading { display:flex; gap:8px; justify-content:center; align-items:center; margin-bottom:12px; font-size:16px; font-weight: 500; }
.cta-heading .brand-icon { width:28px!important; height:28px!important; font-size:16px; }
.apply { height:auto; min-height:52px; max-width:none; gap:8px; border-radius:8px; background:var(--cta); color:#ffffff; box-shadow:none; font-size:14px; }
.apply:hover,.apply:active { background:#c92a2a; color:#ffffff; }
.apply .line-icon { width:18px; height:18px; flex-basis:18px; }
thead th { background:var(--band); font-weight: 500; }
.comparison th:first-child { background:var(--band); }
.comparison tbody th:first-child { background:#fff; }
.comparison .current-brand th:first-child { background:var(--current); }
.comparison-scroll { border:1px solid var(--line); border-radius:6px; }
.comparison th,.comparison td { padding:12px 6px; }
.comparison .brand-name a { text-decoration:none; }
.numeric { text-align:right; font-variant-numeric:tabular-nums; }
.condition dd { text-wrap:pretty; }
.site-footer { width:100%; max-width:none; padding:24px 16px 32px; background:var(--band); border-top:1px solid var(--line); margin-top:24px; }
.footer-inner { max-width:1020px; margin:auto; }
.site-footer nav { display:flex; flex-wrap:wrap; gap:4px 20px; margin-bottom:14px; }
.site-footer nav a,.site-footer nav>span { display:flex; min-height:44px; align-items:center; }
.site-footer nav>span { color:var(--muted); }
.desktop-sidebar { display:none; }
.category-chips,.article-list { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.category-chip { min-height:56px!important; border-radius:6px!important; justify-content:center; text-decoration:none; font-size:14px; }
.article-list .brand-list-item { border:1px solid var(--line); border-radius:6px; padding:12px; }
.article-list .brand-list-identity { align-items:flex-start; }
.article-list .brand-list-icon { width:28px; height:28px; font-size:15px; }
.article-list .brand-list-details { margin-left:0; }
.article-list .brand-page-link { font-size:13px; }
@media (max-width:1023px) {
  #sticky-apply { position:fixed; z-index:20; right:0; bottom:0; left:0; display:grid; grid-template-columns:1fr 2fr; height:64px; padding:9px 16px; gap:8px; background:#fff; border-top:1px solid var(--line); box-shadow:var(--soft-shadow); }
  #sticky-apply .sticky-review { grid-column:1; grid-row:1; min-width:0; height:44px; display:flex; align-items:center; justify-content:center; border:1px solid var(--brand); border-radius:8px; color:var(--brand); background:#fff; font-size:13px; font-weight:700; text-decoration:none; }
  #sticky-apply .apply { grid-column:2; grid-row:1; height:44px; min-height:44px; margin:0; padding:4px; font-size:13px; }
  #sticky-apply:has(.sticky-review[hidden]) { grid-template-columns:1fr; }
  #sticky-apply:has(.sticky-review[hidden]) .apply { grid-column:1; }
  body.sticky-enabled { padding-bottom:64px; }
}
@media (min-width:1024px) {
  .site-header-inner { width:calc(100% - 64px); max-width:var(--page-width,1020px); }
  .footer-inner { width:calc(100% - 32px); max-width:var(--page-width,1020px); }
  .site-page { --page-width:820px; }
  .site-header .wordmark { font-size:18px; }
  .site-header nav { gap:24px; }
  .site-header nav a { flex-direction:row; font-size:13px; gap:6px; }
  .page-layout { display:grid; grid-template-columns:minmax(0,680px) 300px; align-items:start; gap:40px; max-width:1020px; width:calc(100% - 64px); margin:auto; }
  .page-layout main { width:100%; min-width:0; padding-top:12px; }
  main>section { margin:0; padding:28px 0; }
  h2 { margin:0 0 20px; padding:14px 18px; border-radius:4px; }
  .jump-nav { margin:0 0 20px; border-radius:6px; }
  .desktop-sidebar { display:block; position:sticky; top:24px; padding:20px; border:1px solid var(--line); border-radius:8px; background:#fff; box-shadow:var(--soft-shadow); margin-top:12px; }
  .sidebar-name { display:flex; gap:8px; align-items:center; font-weight: 500; margin-bottom:16px; }
  .sidebar-rating { display:flex; align-items:center; gap:12px; margin-bottom:16px; }
  .sidebar-rating strong { font-weight:700; font-size:28px; font-variant-numeric:tabular-nums; }
  .sidebar-rating .stars { width:110px; height:22px; }
  .sidebar-nav { margin-top:18px; border-top:1px solid var(--line); padding-top:10px; }
  .sidebar-nav a { display:flex; align-items:center; min-height:44px; font-size:13px; text-decoration:none; border-bottom:1px solid var(--line); }
  #sticky-apply { display:none!important; }
}
/* 比較表の数字を狭い列で折り返さず、先頭列を残して横へ読む。 */
.comparison { min-width:600px; }
.comparison thead th:first-child { background:var(--band); }
.article-list .brand-list-details { margin-left:0; }
.article-list .brand-list-item { padding:12px; border:1px solid var(--line); }
.article-list .brand-list-icon { width:28px; height:28px; }
.article-list .brand-page-link { font-size:13px; }
.article-comparison th a,.article-name { display:inline-flex; align-items:center; min-height:44px; }
.brand-bars .bar-row { grid-template-columns:minmax(120px,1.3fr) minmax(0,2fr) 58px; }
.brand-bar-name { min-width:0; text-wrap:balance; }
.update-note { white-space:nowrap; }
.hero .intro { text-wrap:pretty; }
.source-list a { display:inline-flex; min-height:44px; align-items:center; }
.index-total { font-size:28px; font-weight:700; line-height:1.5; color:var(--ink); font-variant-numeric:tabular-nums; white-space:nowrap; }
.brand-heading h1 { text-wrap:balance; }
.apply-label { min-width:0; text-wrap:balance; line-height:1.5; }
.apply-brand,.apply-action { display:inline-block; white-space:nowrap; overflow-wrap:normal; word-break:normal; }
.cta small,.apply-note { margin-top:6px; text-align:center; font-size:12px; }


.condition-comparison td,.condition-comparison th:not(:first-child),.article-comparison td { min-width:160px; white-space:normal; overflow-wrap:anywhere; }
.store-low-count { display:block; font-size:13px; color:var(--muted); }
.store-table th a { display:inline-flex; min-width:44px; min-height:44px; align-items:center; }
.store-table { min-width:600px; }
.condition-comparison { table-layout:auto; min-width:640px; }
.condition-value { display:block; line-height:1.6; }
.comparison-sources { font-size:13px; color:var(--muted); line-height:44px; }
.comparison-sources a { display:inline-flex; align-items:center; min-width:44px; min-height:44px; color:inherit; }
.source-list a { display:flex; font-size:13px; }
@media (max-width:767px) {
  main { padding-top:8px; }
  .hero .intro { margin:8px 0; }
  .jump-nav { margin-bottom:8px; }
  .rating+.note { margin:4px 0 8px; }
}

/* 段階6f: 分母を数字のそばに置き、全表の幅と末尾の説明を揃える。 */
.metric-denominator { display:block; font-size:13px; font-weight:400; line-height:1.7; color:var(--muted); }
.answer-metric>.metric-denominator { font-size:13px; }
.answer .rank-scope-note { font-weight:400; }
.advertising-note { width:calc(100% - 32px); max-width:1020px; margin:0 auto; color:var(--muted); font-size:13px; line-height:1.7; }
.reader-experience-badge { padding:1px 6px; border:1px solid #b8c2cc; border-radius:4px; color:var(--muted); font-size:12px; line-height:1.6; white-space:nowrap; }
.page-about { margin-top:24px; }
.page-about-details>summary { display:flex; align-items:center; min-height:56px; padding:14px 16px; cursor:pointer; list-style:none; background:white; border:1px solid var(--line); color:var(--ink); font-size:16px; font-weight:500; }
.page-about-details>summary::-webkit-details-marker { display:none; }
.page-about-details>summary::after { content:'＋'; margin-left:auto; flex:0 0 20px; font-size:19px; color:var(--brand); }
.page-about-details[open]>summary::after { content:'−'; }
.page-about-title { font-weight:500; }
.page-about-body { padding:20px 16px; background:var(--band); }
.page-about section+section { margin-top:20px; }
.page-about h3 { margin-bottom:10px; font-size:15px; font-weight: 500; }
.page-about .source-list { padding-left:0; list-style:none; }
.table-scroll { overflow-x:auto; overscroll-behavior-inline:contain; }
table,.comparison { table-layout:auto; }
table th,table td { min-width:88px; }
table th:first-child,table td:first-child { min-width:120px; }
.comparison .brand-label,table .brand-label,table .table-brand-label,table .article-name { white-space:nowrap; }
table .table-brand-label { min-width:120px; }
.rating-block>.rating-metrics { margin:8px 0; gap:10px; }
.rating-block .segment-meter { margin-top:4px; }

/* 段階6g: 利用の判断を冒頭で済ませ、補足は必要なときに開く。 */
h2 { font-size:19px; }
main>section { padding:36px 0; }
.decision-list { margin:8px 0; padding:0; background:#fff; border:1px solid var(--line); border-radius:8px; overflow:hidden; }
.decision-row { display:grid; grid-template-columns:minmax(0,40fr) minmax(0,60fr); gap:0 12px; align-items:center; padding:10px 12px; border-bottom:1px solid var(--line); line-height:1.5; }
.decision-row:last-child { border-bottom:0; }
.decision-row dt { color:#5b6475; font-size:13px; font-weight:400; }
.decision-row dt [data-fact] { white-space:nowrap; }
.decision-row dd { margin:0; min-width:0; font-size:15px; font-weight: 500; text-align:left; }
.decision-metric strong { font-size:22px; line-height:1.4; font-weight:700; font-variant-numeric:tabular-nums; }
.decision-metric .metric-denominator { font-size:13px; line-height:1.5; }
.metric-value { display:flex; flex-wrap:wrap; align-items:baseline; gap:0 6px; }
.metric-value .metric-label { font-size:14px; font-weight: 400; }
.metric-label-tail,.decision-label-word { display:inline-block; }
.answer-metric .metric-value strong { display:inline; }
.decision-row .methods { margin:0; gap:4px; }
.decision-row .method { min-height:0; padding:0 8px; font-size:13px; line-height:1.4; }
.sparse-brand-note { font-size:13px; margin:6px 0; }
main>.supplementary { padding:0; margin:0; }
main>.supplementary+.supplementary { margin-top:8px; }
.voice-more { margin-top:12px; }
.voice-more summary { display:flex; align-items:center; min-height:44px; color:var(--brand); cursor:pointer; }
.voice-topic-link { display:inline-flex; align-items:center; min-height:44px; }
.brand-icon,.brand-list-icon { background:#fff!important; color:#1c2430!important; border:1px solid #d5dbe3; border-radius:6px; font-weight:700; }
.brand-heading>.brand-icon { background:#e8f5ee!important; }
.official-conditions { min-width:100%; table-layout:fixed; }
.official-conditions th { width:120px; font-size:13px; }
.official-conditions td { white-space:normal; font-size:14px; line-height:1.7; }
.official-conditions .condition-sources { font-size:13px; }
.jump-nav { padding:0; }
.jump-nav a { min-height:44px; flex-direction:row; gap:4px; }
.jump-nav a:has(.tab-count) { display:flex; }
.jump-nav .line-icon { width:16px; height:16px; flex-basis:16px; }
.hero .intro { font-size:13px; line-height:1.5; margin:4px 0; }
@media (max-width:767px) {
  .rating-block .rating { margin-bottom:0; }
  .decision-list { margin:2px 0; }
  .rating-block .ugc-vote { margin-top:4px; }
}
@media (min-width:1024px) { main>section { padding:42px 0; } }
.comparison-scroll { min-height:44px; }
@media (max-width:767px) {
  .compact-hero .hero .intro { display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; margin:2px 0; }
  .compact-hero .brand-heading h1 { line-height:1.3; }
}
.decision-metric strong { color:#1c2430; }

/* 共通の運営者リンクを指で押せる高さにする。 */

/* 出典だけを小さくまとめ、リンクと確認日を一組として折り返す。 */
.page-about #sources { font-size:13px; line-height:1.8; color:var(--muted); }
.page-about #sources h3 { margin-bottom:4px; font-size:13px; font-weight:500; }
.page-about .source-list { margin:0; font-size:13px; line-height:1.8; }
.source-item { display:flex; flex-wrap:wrap; align-items:baseline; column-gap:4px; }
.source-date { white-space:nowrap; }
.page-about .source-list a { display:inline-flex; align-items:center; min-height:24px; color:inherit; font-size:13px; }
.page-about .source-list > * + * { margin-top:4px; }
.page-about #method { font-size:13px; line-height:1.8; color:var(--muted); }
.page-about #method h3 { margin-bottom:4px; font-size:13px; font-weight:500; }
.page-about #method p { font-size:inherit; line-height:inherit; }
.comparison-sources { font-size:13px; line-height:1.8; }
.comparison-sources a { min-width:24px; min-height:24px; }

/* 投稿への入口だけをボタンと同じ太さにする。 */
.site-header nav a[href="#experience"] { font-weight:700; }

/* 対応ブラウザでは、日本語の文節と行の長さをそろえて見出しを折り返す。 */
h1,h2,h3,h2>span,.cta-heading,.top-brand-name { word-break:auto-phrase; text-wrap:balance; }

/* 数字・条件の比較だけを、共通の行とスマホのカードにそろえる。 */
.row-table-wrap { width:100%; border:1px solid var(--line); border-radius:12px; overflow:hidden; background:#fff; }
body .row-table { width:100%; min-width:0; table-layout:fixed; border-collapse:collapse; }
body .row-table th,body .row-table td { box-sizing:border-box; min-width:0; width:auto; padding:16px 18px; text-align:left; white-space:normal; overflow-wrap:normal; }
body .row-table th:nth-child(n),body .row-table td:nth-child(n) { min-width:0; white-space:normal; }
body .row-table tbody th:first-child { width:auto; position:static; z-index:auto; background:transparent; }
body .row-table tr.current-brand th:first-child { background:transparent; }
body .row-table td.numeric { text-align:left; }
body .row-table thead th { font-size:13px; font-weight:500; color:var(--muted); background:#f3f5f4; vertical-align:middle; }
body .row-table tbody th { position:static; z-index:auto; background:transparent; font-size:16px; font-weight:700; line-height:1.5; }
body .row-table .row-item { position:relative; height:88px; }
body .row-table .row-linked:hover,body .row-table .row-linked:focus-within { background:#edf7f0; }
body .row-table .current-brand { background:#edf7f0; }
body .row-table .brand-name,body .row-table .brand-label,body .row-table .article-name,body .row-table tbody th a { font-size:16px; font-weight:700; color:var(--ink); white-space:normal; word-break:auto-phrase; overflow-wrap:normal; text-wrap:balance; line-height:1.5; }
body .row-table .brand-name { display:block; width:100%; min-width:0; }
body .row-table .brand-name.long-name { font-size:16px; }
body .row-table .brand-icon { display:none; }
body .row-table tbody th a { display:flex; align-items:center; min-height:44px; min-width:0; text-decoration:none; }
body .row-table .row-linked th a::after { content:''; position:absolute; inset:0; z-index:1; }
body .row-table .row-linked th a:focus-visible { outline:none; }
body .row-table .row-linked th a:focus-visible::after { outline:2px solid var(--brand); outline-offset:-3px; border-radius:8px; }
body .row-table .row-meta { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px; color:var(--muted); font-size:13px; font-weight:400; line-height:1.6; white-space:nowrap; }
body .row-table .row-meta .sampling-note,body .row-table .row-meta .review-count { display:inline; margin:0; color:inherit; font-size:13px; font-weight:400; line-height:inherit; white-space:nowrap; }
.row-average-label { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
body .row-table .row-metric { font-variant-numeric:tabular-nums; }
body .row-table .row-number { display:block; font-size:18px; font-weight:700; line-height:1.5; color:var(--ink); }
body .row-table .row-number .store-low-count { font-size:13px; font-weight:400; color:var(--muted); }
body .row-table .row-meter { display:block; width:100%; max-width:128px; height:4px; margin-top:7px; background:#f0f2f1; border-radius:999px; overflow:hidden; }
.row-meter > span { display:block; height:100%; border-radius:inherit; }
.row-meter-red > span { background:#cf827e; }
.row-meter-green > span { background:#5a9872; }
body .row-table .row-arrow { width:8%; padding:12px 14px; text-align:right; color:var(--muted); font-size:26px; font-weight:400; }
body .row-table thead th.row-arrow { font-size:13px; font-weight:500; }
body .row-table tbody tr:not(.row-linked) .row-arrow { visibility:hidden; }
body .row-table.review-comparison thead th:first-child { width:44%; }
body .row-table.review-comparison thead th:nth-child(2),body .row-table.review-comparison thead th:nth-child(3) { width:24%; }
body .row-table.condition-comparison thead th:first-child { width:44%; }
body .row-table.condition-comparison thead th:nth-child(n+2):not(.row-arrow) { width:16%; }
body .row-table .row-condition-value { display:flex; align-items:baseline; gap:6px; line-height:1.6; }
body .row-table .row-condition-mark { color:#36714d; font-size:16px; font-weight:500; flex-shrink:0; }
body .row-table .row-condition-absent { color:var(--muted); }
body .row-table .condition-value { font-size:14px; }
body .row-table .review-group-heading th { padding:12px 18px; color:var(--muted); background:#f3f5f4; font-weight:500; border-top:1px solid var(--line); }
body .row-table .row-mobile-label { display:none; }
body .row-table tr[hidden] { display:none; }
body .row-table.store-table .row-item { height:64px; }
body .row-table.store-table th,body .row-table.store-table td { padding:10px 16px; }
body .row-table.store-table thead th { text-align:left; }
body .row-table.store-table thead th:first-child { width:44%; }
body .row-table.store-table thead th:nth-child(2),body .row-table.store-table thead th:nth-child(3) { width:17%; }
body .row-table.store-table thead th:nth-child(4) { width:22%; }
.catalog-sort { margin:8px 0 16px; }
.catalog-sort label { display:flex; align-items:center; gap:12px; font-size:13px; color:var(--muted); }
.catalog-sort select { min-height:44px; max-width:100%; padding:8px 32px 8px 12px; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--ink); font:inherit; }
.catalog-sort[hidden] { display:none; }
@media (max-width:767px) {
  .row-table-wrap { border:0; border-radius:0; overflow:visible; background:transparent; }
  body .row-table { display:block; }
  body .row-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  body .row-table tbody { display:block; }
  body .row-table .row-item { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:14px 16px; height:auto; min-height:48px; padding:12px 16px 18px; margin-bottom:12px; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:0 2px 6px #1c243005; }
  body .row-table th,body .row-table td { width:auto; padding:0; border:0; min-width:0; }
  body .row-table th:nth-child(n),body .row-table td:nth-child(n) { width:auto; }
  body .row-table tbody th { grid-column:1/-1; padding-right:16px; }
  body .row-table tbody th .row-meta { margin-right:-16px; }
  body .row-table .row-arrow { position:absolute; top:24px; right:16px; width:auto; padding:0; line-height:1; }
  body .row-table .row-mobile-label { display:block; min-height:42px; margin-bottom:4px; font-size:12px; font-weight:400; line-height:1.6; color:var(--muted); }
  body .row-table .row-meter { max-width:none; }
  body .row-table .review-group-heading { display:block; margin:18px 0 12px; }
  body .row-table .review-group-heading th { display:block; border:0; border-radius:8px; }
  body .row-table.condition-comparison .row-item { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px 10px; }
  body .row-table .row-article .article-condition-summary { grid-column:1/-1; }
  body .row-table.store-table .row-item { height:auto; grid-template-columns:repeat(3,minmax(0,1fr)); }
  body .row-table.store-table th,body .row-table.store-table td { padding:0; }
  body .row-table.store-table tbody th a { word-break:normal; overflow-wrap:anywhere; }
  body .row-table.store-table .row-mobile-label { min-height:20px; }
}
@media (min-width:768px) {
  body .row-table tbody th:first-child,body .row-table thead th:first-child { padding-left:12px; padding-right:0; }
  body .row-table .row-meta { gap:5px; }
}
/* 用途: 段階4dの投票パネルと体験投稿フォームを整える。 */
.ugc-panel {
  min-width: 0;
  margin: 24px 0;
  padding: 16px;
  border: 1px solid var(--line, #e4e4e4);
  border-radius: 6px;
  background: #fff;
}

.ugc-panel[hidden],
.ugc-question[hidden],
.ugc-result[hidden],
.ugc-thanks[hidden],
.ugc-panel [data-ugc-pending][hidden] {
  display: none;
}

.ugc-vote-heading {
  float: right;
  margin: 0 0 4px 8px;
}

.ugc-prompt-badge {
  padding: 2px 8px;
  border: 1px solid var(--brand, #2f7fd1);
  border-radius: 6px;
  color: var(--link, #1558b0);
  font-size: 12px;
  line-height: 1.6;
}

.ugc-question + .ugc-question,
.ugc-results,
.ugc-thanks,
.ugc-prototype-note {
  margin-top: 16px;
}

.ugc-question .ugc-question-title,
.ugc-result .ugc-result-count {
  margin-bottom: 8px;
}
.ugc-result-title { margin-bottom:8px; font-size:14px; font-weight:500; }

.ugc-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

[data-ugc-question="experience"] .ugc-question-title { clear: both; }
[data-ugc-question="concern"] .ugc-choices { display: flex; flex-wrap: wrap; }
[data-ugc-question="concern"] .ugc-choice-button { width: auto; }

.ugc-choice-button {
  display: flex;
  width: 100%;
  height: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 3px 4px;
  border: 1px solid var(--brand, #2f7fd1);
  border-radius: 5px;
  background: #fff;
  color: var(--link, #1558b0);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.ugc-choice-button[aria-pressed="true"] {
  background: var(--brand, #2f7fd1);
  color: #fff;
}
.ugc-choice-button > span:first-child { text-wrap: balance; }

.ugc-check {
  flex: 0 0 auto;
  display: none;
  font-weight:400;
}

.ugc-choice-button[aria-pressed="true"] .ugc-check {
  display: inline;
}

.ugc-thanks a {
  display: inline-block;
  min-height: 44px;
  padding-top: 5px;
}

.ugc-results {
  padding-top: 12px;
  border-top: 1px solid var(--line, #e4e4e4);
}

.ugc-result + .ugc-result {
  margin-top: 16px;
}

.ugc-result-count {
  margin-bottom: 6px;
}

.ugc-result-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(36px, 2fr) minmax(42px, auto);
  align-items: center;
  gap: 7px;
  margin: 5px 0;
}

.ugc-result-label,
.ugc-result-value {
  min-width: 0;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.ugc-result-value {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ugc-result-track {
  height: 14px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--track, #d9dee5);
}

.ugc-result-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand, #2f7fd1);
}

.ugc-field,
.ugc-fieldset {
  display: grid;
  min-width: 0;
  gap: 6px;
  margin: 14px 0;
}

.ugc-fieldset {
  padding: 0;
  border: 0;
}

.ugc-fieldset legend {
  margin-bottom: 6px;
  padding: 0;
}

.ugc-field input[type="month"],
.ugc-field input[type="text"],
.ugc-field input[type="email"],
.ugc-field select,
.ugc-field textarea {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #e4e4e4;
  border-radius: 4px;
  background: #fff;
  color: var(--ink, #222);
}

.ugc-field textarea {
  min-height: 150px;
  resize: vertical;
}

.ugc-option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ugc-option-chip {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line, #e4e4e4);
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
}

.ugc-option-chip input { position:absolute; inset:0; width:100%; height:100%; min-height:0; margin:0; opacity:0; clip-path:none; cursor:pointer; }
.ugc-option-chip::before { content:'✓'; visibility:hidden; color:var(--brand); }
.ugc-option-chip:has(input:checked)::before { visibility:visible; }
.ugc-option-chip:has(input:focus-visible) { outline:2px solid var(--brand); outline-offset:2px; }

.ugc-submit {
  width: 100%;
  margin-top: 8px;
  border: 0;
  border-radius: 5px;
  background: var(--brand, #2f7fd1);
  color: #fff;
  cursor: pointer;
  height: 48px;
}

.ugc-vote .ugc-results { padding-top: 0; border-top: 0; margin-top: 8px; }
.ugc-vote .ugc-prototype-note { margin-top: 6px; }
.ugc-vote .ugc-field textarea { min-height: 0; font: inherit; line-height: 1.5; }
.ugc-comment-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; }
.ugc-thanks { margin-top: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.ugc-review-card .voice-bubble p { white-space: pre-wrap; overflow-wrap: anywhere; }
.ugc-more { margin-top: 12px; }

.ugc-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

@media (max-width: 420px) {
  .ugc-panel {
    padding: 12px;
  }

  .ugc-result-row {
    grid-template-columns: minmax(0, 1.2fr) minmax(28px, 1.5fr) minmax(38px, auto);
    gap: 5px;
  }
}

/* 段階6a: 投票と体験投稿を同じ緑の入力部品で示す。 */
.ugc-panel { border-radius:8px; padding:16px; margin:16px 0; }
.ugc-vote { margin-top:12px; }
.ugc-vote-heading { float:none; display:flex; justify-content:flex-end; margin:0 0 6px; }
.ugc-prompt-badge { font-size:11px; border:0; background:var(--current); color:var(--brand); border-radius:999px; }
.ugc-question .ugc-question-title { font-size:14px; display:flex; align-items:flex-start; gap:5px; }
.ugc-question .ugc-question-title .line-icon { width:18px; height:18px; flex-basis:18px; margin-top:2px; }
.ugc-choice-button { border-radius:999px; height:48px; min-height:48px; font-size:12px; padding:3px; gap:3px; }
.ugc-choice-button .line-icon { width:15px; height:15px; flex-basis:15px; }
[data-ugc-question=experience] .ugc-choice-button { flex-direction:column; gap:2px; }
[data-ugc-question=experience] .ugc-choice-button>span:first-of-type { white-space:nowrap; }
.ugc-choice-button { position:relative; }
.ugc-choice-button[aria-pressed=true] .ugc-check { display:inline; position:absolute; top:7px; right:8px; font-size:11px; line-height:1; }
.ugc-option-chip { border-radius:999px; font-size:14px; padding:6px 12px; }
.ugc-option-chip:has(input:checked) { border-color:var(--brand); background:var(--current); color:var(--brand); }
.ugc-submit { border-radius:8px; font-weight:700; }
.ugc-field,.ugc-fieldset legend { font-size:14px; font-weight:500; }
.ugc-field input,.ugc-field select,.ugc-field textarea { font-size:16px; font-weight:400; border-color:var(--line); border-radius:6px; }
.ugc-experience { margin:24px 0; padding:16px; }
.ugc-experience>h2 { margin:-16px -16px 16px; border-radius:8px 8px 0 0; }
.ugc-prototype-note { margin:6px 0 12px; }
@media (max-width:420px) { .ugc-panel { padding:12px; }.ugc-experience>h2 { margin:-12px -12px 16px; } }
.ugc-vote { margin-bottom:6px; }

/* 段階6c: スマホでは初期の投票を縦に並べ、星はラジオ入力で選ぶ。 */
[data-ugc-question=experience] .ugc-choice-button { flex-direction:row; font-size:14px; gap:8px; }
@media (max-width:767px) {
  [data-ugc-question=experience] .ugc-choices { grid-template-columns:1fr; gap:8px; }
  .rating-block>.ugc-vote { margin-top:8px; }
  .ugc-vote-heading { margin-bottom:4px; }
}
.ugc-rating { display:flex; gap:8px; flex-wrap:wrap; }
.ugc-rating label { display:flex; align-items:center; justify-content:center; width:48px; height:48px; cursor:pointer; }
.ugc-rating-star { font-size:36px; line-height:1; color:var(--muted); }
.ugc-rating label:has(input:checked) .ugc-rating-star,
.ugc-rating label:has(~ label input:checked) .ugc-rating-star { color:#9c6000; }
.ugc-rating label:has(input:focus-visible) { outline:2px solid var(--brand); outline-offset:2px; border-radius:6px; }
.ugc-review-rating { color:#9c6000; font-size:20px; }

.ugc-comparison-fields { margin:16px 0; }
.ugc-comparison-fields summary { min-height:44px; font-size:14px; font-weight:500; cursor:pointer; }
[data-ugc-question=comparison] .ugc-choices { grid-template-columns:repeat(2,minmax(0,1fr)); }
[data-ugc-question=comparison] .ugc-choice-button { border-radius:8px; font-size:14px; height:auto; min-height:48px; padding:8px; }

/* 段階6f: 初期の問いと札を同じ行に置き、読者の体験は頭文字で示す。 */
.ugc-question-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:6px; margin-bottom:8px; }
.ugc-question-heading .ugc-question-title { margin:0; min-width:0; font-size:14px; line-height:1.6; }
.ugc-question-heading .ugc-prompt-badge { flex:0 0 auto; margin-top:1px; }
[data-ugc-question=experience] .ugc-choices { gap:6px; }
[data-ugc-question=experience] .ugc-choice-button { height:44px; min-height:44px; }
.ugc-vote [data-ugc-pending] { font-size:13px; }
.ugc-review-card { display:grid; grid-template-columns:36px minmax(0,1fr); gap:12px; padding:16px 0; border-bottom:1px solid var(--line); }
.ugc-review-initial { display:flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:50%; background:var(--band); color:var(--muted); font-size:16px; font-weight:400; }
.ugc-review-heading { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-bottom:8px; }
.ugc-review-card .voice-meta { margin:0 0 8px; }

/* 段階6g: 選択の前後で幅を変えず、印と文字をまとめて中央に置く。 */
[data-ugc-question=comparison] .ugc-choices { grid-template-columns:1fr; gap:6px; }
[data-ugc-question=comparison] .ugc-choice-button { height:44px; min-height:44px; padding:3px 12px; border-radius:999px; }
.ugc-choice-button { justify-content:center; gap:6px; }
.ugc-choice-button .ugc-check { display:none; }
.ugc-choice-button[aria-pressed=true] .ugc-check { display:inline; position:static; font-size:14px; line-height:1; }
.ugc-option-chip { justify-content:center; gap:6px; padding:6px 12px; }
.ugc-option-chip::before { display:none; visibility:visible; width:14px; flex:0 0 14px; text-align:center; }
.ugc-option-chip:has(input:checked) { padding-left:2px; padding-right:2px; }
.ugc-option-chip:has(input:checked)::before { display:block; }
[data-ugc-question=items] .ugc-choices,[data-ugc-question=method] .ugc-choices { display:flex; flex-wrap:wrap; }
[data-ugc-question=items] .ugc-choice-button,[data-ugc-question=method] .ugc-choice-button { width:auto; padding:6px 16px; }
.ugc-rating .ugc-rating-vote { width:48px; height:48px; flex:0 0 48px; padding:0; border:0; background:white; }
.ugc-rating-vote[aria-pressed=true] .ugc-rating-star { color:#9c6000; }
.ugc-concern-link,[data-ugc-experience-link] { display:inline-flex; min-height:44px; align-items:center; }
.ugc-result .ugc-result-count { font-size:14px; }
[data-reader-rating] { margin:0 0 12px; }
@media (max-width:767px) {
  .rating-block>.ugc-vote { padding:8px 12px; }
  .ugc-vote .ugc-question-heading { margin-bottom:6px; }
  .ugc-vote .ugc-question-heading .ugc-question-title { line-height:1.5; }
}
[data-ugc-question=items] .ugc-choice-button[aria-pressed=true],
[data-ugc-question=method] .ugc-choice-button[aria-pressed=true] { padding-left:6px; padding-right:6px; }
.ugc-choice-button .ugc-check { width:14px; flex:0 0 14px; text-align:center; }
.ugc-experience { scroll-margin-top:80px; }
.ugc-vote .ugc-question-heading { display:block; }
.ugc-vote .ugc-question-heading .ugc-question-title { display:block; }
.ugc-vote .ugc-question-heading .ugc-prompt-badge { float:right; margin-left:6px; padding-top:1px; padding-bottom:1px; }
[data-ugc-question=concern] .ugc-choice-button { padding-left:16px; padding-right:16px; }
[data-ugc-question=concern] .ugc-choice-button[aria-pressed=true] { padding-left:6px; padding-right:6px; }

/* 投稿のきまりの語をリンクの途中で折らない。 */
.ugc-experience a[href="/terms/"] { white-space:nowrap; }

/* 段階12b: 必須・入力の誤り・送信結果を文字と印でも伝える。 */
.ugc-panel [hidden] { display:none !important; }
.ugc-field-label { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.ugc-required { padding:1px 7px; border-radius:4px; background:#e8eeeb; color:#31574a; font-size:11px; line-height:1.8; font-weight:600; }
.ugc-field-error { color:#9b3035; font-size:14px; font-weight:400; line-height:1.6; }
.ugc-panel [aria-invalid="true"] { border-color:#b85258; }
.ugc-submit-error { display:flex; align-items:flex-start; gap:10px; margin:12px 0 0; padding:12px 14px; border:1px solid #edc7ca; border-radius:8px; background:#fff3f3; color:#8d2931; font-size:14px; line-height:1.7; }
.ugc-submit-error svg { width:20px; height:20px; flex:0 0 20px; margin-top:2px; }
.ugc-submit-error[role="status"] { background:var(--band,#f5f7f6); border-color:var(--line,#e4e4e4); color:var(--muted,#555); }
.ugc-submit-error[role="status"] svg { display:none; }
.ugc-success { display:flex; align-items:flex-start; gap:16px; padding:24px 20px; border:1px solid #b5d7c7; border-radius:8px; background:#eff8f3; color:#204b39; scroll-margin-top:90px; }
.ugc-success-icon { display:flex; align-items:center; justify-content:center; width:40px; height:40px; flex:0 0 40px; border-radius:50%; background:#307958; color:#fff; }
.ugc-success-icon svg { width:24px; height:24px; }
.ugc-success .ugc-success-title { margin:0 0 8px; font-size:20px; font-weight:700; line-height:1.6; }
.ugc-success p { margin:0; line-height:1.8; }
.ugc-success a { display:inline-flex; align-items:center; min-height:44px; margin-top:12px; }
.ugc-choice-button[data-ugc-answered="true"] { background:#e7f4ec; border-color:#307958; color:#204b39; flex-wrap:wrap; height:auto; }
.ugc-answer-badge { font-size:11px; font-weight:500; }
.detail-page [data-ugc-question=comparison] .ugc-choice-button[data-ugc-answered="true"] { grid-column:1 / -1; flex-direction:row; min-height:48px; padding:8px 12px; }
.detail-page [data-ugc-question=comparison] .ugc-choice-button[data-ugc-answered="true"] .ugc-check { display:inline; }
.detail-page [data-ugc-question=comparison] .ugc-choice-button .ugc-answer-badge { font-size:11px; }
@media (max-width:420px) { .ugc-success { padding:20px 14px; gap:12px; }.ugc-success .ugc-success-title { font-size:18px; } }

/* ボタンの組の名前をlegendにし、fieldsetの標準装飾を除く。 */
fieldset.ugc-question { min-width:0; padding:0; border:0; margin-left:0; margin-right:0; margin-bottom:0; }
.ugc-question > legend { padding:0; width:100%; }
.ugc-question-title,.ugc-result-count { font-weight:500; font-size:16px; line-height:1.6; word-break:auto-phrase; text-wrap:balance; }

.ugc-success-title { word-break:auto-phrase; text-wrap:balance; }
.ugc-success-title + p { margin-top:0; }
