/* みずどりのウォーターサーバー計算室（water-sv.com） 共通スタイル（モバイルファースト）
   2026-10-07 水のイメージに作り直し（デザイン案：claude.ai の非公開ページ「water-sv.com トップページ案」第3版で了承）。
   明るい配色だけで作る。見出しは Zen Maru Gothic（Google Fonts。build.js が全ページの <head> に読み込みを入れる）、本文は端末の書体。 */

:root {
  --sky: #f1faff;        /* ページの地：ごく薄い水色 */
  --shallow: #d9f1fb;    /* 浅瀬 */
  --aqua: #8fd4f0;       /* 水 */
  --sea: #3aa6dc;        /* 少し深い水 */
  --blue: #0f6fb8;       /* ボタン・リンク（サイトのアイコンの青） */
  --blue-dark: #0b5590;
  --deep: #0a4a7d;       /* 見出し */
  --abyss: #072a47;      /* フッター（深い海） */
  --ink: #10283b;        /* 本文 */
  --ink-soft: #4b6577;   /* 補足 */
  --line: #cde3ee;
  --line-soft: #e2eef5;
  --surface: #ffffff;
  --glass: rgba(255, 255, 255, 0.82);
  --teal: #0b8a7d;
  --teal-soft: #dcf3ef;
  --amber: #a14d17;
  --amber-soft: #fcefe3;
  --warning-bg: #fff4e5;
  --warning-text: #8a5a00;
  --marker: #fde68a;     /* 大事なところのラインマーカー（蛍光ペンの薄い黄色。2026-10-16） */
  --radius: 14px;
  --display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --body: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  --max-width: 720px;    /* 記事などの本文の幅 */
  --wide: 1080px;        /* トップ・シミュレーターなどの幅 */
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--body);
  background: var(--sky);
  color: var(--ink);
  line-height: 1.8;
  font-size: 16px;
}

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

img {
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.num {
  font-variant-numeric: tabular-nums;
}

/* 日本語は文字ごとに折り返せるため、言葉の途中で切れないように句ごとにまとめる */
.phrase {
  display: inline-block;
}

.wrap {
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: 16px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .wrap {
    padding-inline: 24px;
  }
}

/* 動きを減らす設定の人には、波や波紋を止める */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== 一番上の帯（#PR の表示はファーストビューに必須）と、ヘッダー ===== */

.topstrip {
  background: linear-gradient(90deg, #0a4a7d 0%, #0f6fb8 55%, #2b97d6 100%);
  color: #e6f4fc;
  font-size: 12px;
  line-height: 1.6;
}

.topstrip .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2px 16px;
  padding-block: 5px;
}

.topstrip p {
  margin: 0;
}

.topstrip .promise {
  display: none;
  align-items: center;
  gap: 6px;
}

.topstrip .promise svg {
  width: 10px;
  height: 13px;
  flex: none;
  fill: var(--aqua);
}

@media (min-width: 760px) {
  .topstrip .promise {
    display: inline-flex;
  }
}

/* ヘッダー：水面。下の縁が、ゆっくり流れる波になっている */
.masthead {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(232, 247, 255, 0.95) 100%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.masthead::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -11px;
  height: 12px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 12' preserveAspectRatio='none'%3E%3Cpath d='M0 0h160v4c-20 0-20 6-40 6S100 4 80 4 60 10 40 10 20 4 0 4z' fill='%23e8f7ff'/%3E%3Cpath d='M0 4c20 0 20 6 40 6s20-6 40-6 20 6 40 6 20-6 40-6' fill='none' stroke='%238fd4f0' stroke-width='1.5'/%3E%3C/svg%3E") 0 0 / 160px 12px repeat-x;
  animation: surface 9s linear infinite;
}

@keyframes surface {
  to {
    background-position: 160px 0;
  }
}

.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 12px 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
}

.brand-mark svg {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: block;
}

/* しずくが落ちたあとの波紋（ゆっくり広がる） */
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 13px;
  border: 2px solid rgba(58, 166, 220, 0.55);
  animation: ripple 3.6s ease-out infinite;
}

.brand-mark::after {
  animation-delay: 1.8s;
}

@keyframes ripple {
  from {
    transform: scale(1);
    opacity: 0.7;
  }
  to {
    transform: scale(1.6);
    opacity: 0;
  }
}

.brand-text {
  display: grid;
  gap: 3px;
}

.brand b {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--deep);
}

/* サイト名の上の「みずどりの」（2026-10-08 サイト名を「みずどりのウォーターサーバー計算室」に変更） */
.brand-by {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.masthead nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--deep);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 12px;
  line-height: 1.4;
}

.navlink svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: var(--sea);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.navlink:hover,
.navlink[aria-current="page"] {
  background: var(--shallow);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(180deg, #2b97d6 0%, #0f6fb8 100%);
  font-size: 14px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(15, 111, 184, 0.28);
  line-height: 1.4;
}

.nav-cta svg {
  width: 13px;
  height: 17px;
  flex: none;
  fill: #ffffff;
}

.nav-cta:hover {
  filter: brightness(1.06);
}

/* スマホ：上の段にロゴ、下の段にアイコンつきのボタン3つを同じ幅で並べる */
@media (max-width: 759px) {
  .masthead .wrap {
    gap: 8px;
  }

  .masthead nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .navlink {
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line);
    padding: 6px 4px;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
  }

  .nav-cta {
    display: none;
  }

  .brand b {
    font-size: 18px;
  }
}

/* ===== 汎用 ===== */

main {
  padding-bottom: 56px;
}

/* トップ以外のページは、上がうっすら水色（水面の下のような） */
body:not(.page-top) main {
  background: linear-gradient(180deg, #e3f5fd 0, var(--sky) 300px);
  padding-top: 18px;
}

section {
  padding: 24px 0;
}

h1 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--deep);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  line-height: 1.4;
  margin: 16px 0 10px;
  text-wrap: balance;
}

/* 見出し2：下に波線 */
h2 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--deep);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  line-height: 1.45;
  margin: 0 0 14px;
  padding-bottom: 12px;
  text-wrap: balance;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8'%3E%3Cpath d='M0 4c10 0 10-3 20-3s10 3 20 3 10-3 20-3 10 3 20 3 10-3 20-3 10 3 20 3' fill='none' stroke='%233aa6dc' stroke-width='2'/%3E%3C/svg%3E") left bottom / 120px 8px repeat-x;
}

h3 {
  color: var(--deep);
  line-height: 1.5;
}

/* 見出しは、言葉の切れ目で折り返す（Chrome などが対応。対応していないブラウザではふつうの折り返し） */
h1,
h2,
h3 {
  word-break: auto-phrase;
}

.lead {
  color: #36576d;
}

.note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.8; /* 2026-10-08 1.7→1.8（文字の詰まりの対策） */
  letter-spacing: 0.02em;
  /* 出典のURLなど区切りのない長い文字列も折り返す（スマホで横にはみ出さないように） */
  overflow-wrap: anywhere;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.crumbs {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.crumbs a {
  color: var(--ink-soft);
}

.more {
  margin: 18px 0 0;
  font-weight: 700;
}

.more a {
  text-decoration: none;
}

.more a::after {
  content: " ›";
}

/* ===== ボタン ===== */

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2b97d6 0%, #0f6fb8 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 6px 14px rgba(15, 111, 184, 0.22);
}

.btn:hover,
.btn:focus {
  filter: brightness(1.06);
}

.btn-block {
  display: block;
  width: 100%;
}

/* 広告のリンク（A8.net などのコード）。コードは変えずに、外側から .btn と同じボタンの見た目にする。そばに「PR」（2026-10-09） */
.aff {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 1.5em;
}

.aff-pr {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  background: #ffffff;
}

.aff-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
}

.aff-link a {
  display: inline-block;
  word-break: auto-phrase; /* 長い社名が言葉の途中で折り返さないように（文言そのものは変えない） */
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2b97d6 0%, #0f6fb8 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 6px 14px rgba(15, 111, 184, 0.22);
}

.aff-link a:hover,
.aff-link a:focus {
  filter: brightness(1.06);
}

/* 計測用の 1×1 の画像は、並びに影響しないようにする（画像そのものは変えない） */
.aff-link img {
  vertical-align: top;
}

/* シミュレーターの結果のカードの中（カードの間隔は grid の gap で取る） */
.rank .aff {
  margin: 0;
  position: relative;
  z-index: 1;
}

/* 1社を扱う記事の最後の「公式サイト」の欄（build.js が data-aff-box に書き込む） */
[data-aff-box] {
  margin: 28px 0 8px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

main .container .aff-lead {
  margin: 0 0 10px;
  font-weight: 700;
  color: var(--deep);
}

[data-aff-box] .aff {
  margin: 0;
}

/* ===== カード（信頼ページなど） ===== */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== トップ：水の中のヒーロー ===== */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 0;
  background: linear-gradient(180deg, #eaf9ff 0%, #c9edfb 45%, #9bd8f2 100%);
}

.hero-water {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* 水面から差し込む光（ゆっくり揺れる） */
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 0 18%, rgba(255, 255, 255, 0.35) 22%, transparent 30% 100%),
    linear-gradient(98deg, transparent 0 46%, rgba(255, 255, 255, 0.28) 50%, transparent 57% 100%),
    linear-gradient(110deg, transparent 0 70%, rgba(255, 255, 255, 0.22) 74%, transparent 80% 100%);
  animation: rays 14s ease-in-out infinite alternate;
}

@keyframes rays {
  from {
    transform: translateX(-3%) skewX(-2deg);
  }
  to {
    transform: translateX(3%) skewX(2deg);
  }
}

.hero-grid {
  display: grid;
  gap: 28px;
  padding-block: 36px 84px;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 5fr 6fr;
    align-items: start;
    gap: 48px;
    padding-block: 56px 104px;
  }
}

.hero h1 {
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  line-height: 1.3;
  margin: 0 0 16px;
}

.hero .lead {
  margin: 0 0 22px;
  font-size: 17px;
  color: #2d4c62;
  max-width: 34em;
}

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.6;
}

.checks svg {
  width: 22px;
  height: 28px;
  flex: none;
  fill: var(--teal);
}

.checks svg .check-mark {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.checks b {
  display: block;
  font-size: 15px;
  color: var(--deep);
}

.checks span {
  display: block;
  font-size: 13px;
  color: #36576d;
}

.wave-edge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 46px;
  display: block;
  fill: var(--sky);
}

/* ===== シミュレーター（すりガラスの板） ===== */

.sim {
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(7, 42, 71, 0.16);
  display: grid;
  gap: 16px;
  min-width: 0;
}

@media (min-width: 640px) {
  .sim {
    padding: 24px 28px;
  }
}

.sim-title {
  font-size: 20px;
  margin: 0;
  padding: 0;
  background: none;
}

.sim .field {
  border: 0;
  border-radius: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  background: none;
}

.sim .field legend {
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.sim .note {
  margin: -4px 0 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chips label {
  display: inline-block;
  margin: 0;
  cursor: pointer;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 15px;
  line-height: 1.3;
  user-select: none;
  transition: background 0.15s, color 0.15s;
}

.chips label:hover {
  border-color: var(--sea);
}

.chips input:checked + label {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(15, 111, 184, 0.25);
}

.chips input:focus-visible + label {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

/* 量のタンク：選んだ量まで水がたまる（目盛り1つ＝12Lボトル） */
.amount {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  background: rgba(217, 241, 251, 0.7);
  border-radius: 16px;
  padding: 14px;
}

.tank {
  position: relative;
  width: 74px;
  height: 128px;
  border: 2px solid #7fbfe0;
  border-top-width: 0;
  border-radius: 0 0 16px 16px;
  background: rgba(255, 255, 255, 0.75);
  overflow: hidden;
}

.tank-water {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--level, 0.2) * 100%);
  background: linear-gradient(180deg, #5bbbe8 0%, #1f8fd0 100%);
  transition: height 0.45s cubic-bezier(0.3, 0.7, 0.2, 1);
}

.tank-wave {
  position: absolute;
  left: 0;
  top: -9px;
  width: 200%;
  height: 10px;
  fill: #5bbbe8;
  animation: slosh 3.2s linear infinite;
}

@keyframes slosh {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.tank-ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 calc(10% - 1px), rgba(10, 74, 125, 0.22) calc(10% - 1px) 10%);
}

.amount-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.amount-text output {
  font-family: var(--display);
  font-weight: 700;
  font-size: 34px;
  color: var(--deep);
  line-height: 1.1;
}

.amount-text small {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.range-label {
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.amount-text input[type="range"] {
  width: 100%;
  margin: 4px 0 0;
  padding: 0;
  accent-color: var(--blue);
}

.sim-go {
  display: inline-block;
  text-align: center;
  background: var(--blue);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 14px;
}

@media (min-width: 960px) {
  .page-top .sim-go {
    display: none;
  }
}

/* シミュレーターのページ：PCでは左に条件、右に結果 */
.page-head {
  padding: 6px 0 4px;
}

.page-head h1 {
  margin-top: 8px;
}

.page-head .lead {
  margin: 0;
  max-width: 46em;
}

.sim-layout {
  display: grid;
  gap: 24px;
}

.page-simulator .sim-go {
  display: none;
}

@media (min-width: 1000px) {
  .sim-layout {
    grid-template-columns: 400px minmax(0, 1fr);
    align-items: start;
  }

  .sim-layout .sim {
    position: sticky;
    top: 96px;
  }

  .sim-layout .ranks {
    grid-template-columns: 1fr;
  }
}

/* ===== 結果 ===== */

.section {
  padding-block: 44px;
  position: relative;
}

.section-head {
  display: grid;
  gap: 2px;
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: clamp(1.4rem, 3.6vw, 1.9rem);
  margin: 0;
}

/* 波紋の背景（ごく薄い同心円） */
.ripples {
  background-image: radial-gradient(circle at 88% 12%, transparent 0 38px, rgba(58, 166, 220, 0.1) 39px 41px, transparent 42px 78px, rgba(58, 166, 220, 0.08) 79px 81px, transparent 82px 124px, rgba(58, 166, 220, 0.06) 125px 127px, transparent 128px);
}

.cond {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.cond span {
  font-size: 13px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
}

.ranks {
  display: grid;
  gap: 16px;
}

@media (min-width: 900px) {
  .ranks {
    grid-template-columns: 1.25fr 1fr 1fr;
    align-items: start;
  }
}

.rank {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  display: grid;
  gap: 12px;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.rank.is-first {
  border: 2px solid var(--sea);
  box-shadow: 0 14px 32px rgba(7, 42, 71, 0.12);
}

/* 1位のカードは、底に水がたまっている */
.rank.is-first::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(143, 212, 240, 0) 0%, rgba(143, 212, 240, 0.22) 100%);
  pointer-events: none;
}

.rank-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.drop {
  flex: none;
  width: 34px;
  height: 44px;
  position: relative;
  display: grid;
  place-items: center;
}

.drop svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: #8fc9e6;
}

.drop-1 svg {
  fill: var(--blue);
}

.drop-2 svg {
  fill: var(--sea);
}

.drop span {
  position: relative;
  font-family: var(--display);
  font-weight: 700;
  color: #ffffff;
  margin-top: 10px;
  font-size: 16px;
}

.rank h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
}

.rank h3 a {
  color: var(--ink);
  text-decoration: none;
}

.rank h3 a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  line-height: 1.6;
  border-radius: 6px;
  padding: 1px 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.tag.kind-purifier {
  background: #e3f1fb;
  border-color: transparent;
  color: var(--deep);
}

.tag.kind-natural {
  background: var(--teal-soft);
  border-color: transparent;
  color: var(--teal);
}

.tag.kind-ro {
  background: #eceff9;
  border-color: transparent;
  color: #3f4f86;
}

.total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
}

.total small {
  font-size: 13px;
  color: var(--ink-soft);
}

.total strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 30px;
  color: var(--ink);
  line-height: 1.2;
}

.is-first .total strong {
  font-size: 38px;
  color: var(--deep);
}

.total em {
  font-style: normal;
  font-size: 13px;
  color: var(--ink-soft);
}

/* 明細（レシートのように、項目と金額を点線でつなぐ） */
.receipt {
  margin: 0;
  display: grid;
  gap: 4px;
  font-size: 14px;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
  position: relative;
  z-index: 1;
}

.receipt div {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.receipt dt {
  flex: 0 1 auto;
  color: var(--ink-soft);
}

.receipt .dots {
  flex: 1;
  border-bottom: 1px dotted #b9d3e1;
  transform: translateY(-4px);
  min-width: 12px;
}

.receipt dd {
  margin: 0;
  flex: none;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.receipt .fee dd {
  color: var(--amber);
  font-weight: 700;
}

.receipt .zero dd {
  color: var(--teal);
  font-weight: 700;
}

.rank-note {
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
  position: relative;
  z-index: 1;
}

.rank-eligibility {
  color: var(--amber);
  font-weight: 700;
}

.contrast {
  margin: 18px 0 8px;
  background: var(--amber-soft);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
}

.contrast b {
  color: var(--amber);
}

/* すべてのプランの合計（/simulator/）。スマホでは1行＝1枚のカード */
.table-title {
  margin: 28px 0 10px;
  font-size: 1.05rem;
}

.period-table {
  min-width: 0;
}

.period-table th,
.period-table td {
  white-space: nowrap;
  vertical-align: top;
}

.period-table .pt-name {
  white-space: normal;
  min-width: 10em;
}

.period-table .pt-rank {
  font-family: var(--display);
  font-weight: 700;
  color: var(--deep);
  width: 3em;
}

.period-table .pt-total {
  font-weight: 700;
  color: var(--deep);
  white-space: nowrap;
}

/* 「＋返す費用（自己負担）」は列を広げないよう、句の切れ目で折り返す（表が横に長くならないように） */
.period-table .return-sub {
  white-space: normal;
}

@media (max-width: 759px) {
  .period-wrap {
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .period-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .period-table,
  .period-table tbody,
  .period-table tr {
    display: block;
  }

  .period-table tr {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 6px 14px 8px;
    margin-bottom: 10px;
  }

  .period-table tbody tr:nth-child(even) td {
    background: transparent;
  }

  .period-table tbody tr td {
    display: grid;
    grid-template-columns: 7.6rem 1fr;
    column-gap: 10px;
    padding: 5px 0;
    border: 0;
  }

  .period-table td::before {
    content: attr(data-label);
    color: var(--ink-soft);
    font-size: 0.78rem;
    line-height: 1.8;
  }

  .period-table tbody tr td.pt-name {
    display: block;
    padding: 6px 0 6px 2.4em;
    font-weight: 700;
    border-bottom: 1px dashed var(--line);
    margin-bottom: 4px;
  }

  .period-table td.pt-name::before {
    content: none;
  }

  .period-table tbody tr td.pt-rank {
    position: absolute;
    left: 14px;
    top: 10px;
    display: block;
    padding: 0;
    width: auto;
  }

  .period-table td.pt-rank::before {
    content: none;
  }
}

/* ===== 浅瀬の帯（上下が波） ===== */

.shoal {
  background: var(--shallow);
  position: relative;
  padding: 0;
  margin-block: 30px;
}

.shoal .wrap {
  display: grid;
  gap: 18px;
  padding-block: 30px 34px;
}

@media (min-width: 900px) {
  .shoal .wrap {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.shoal h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-family: var(--display);
  display: flex;
  gap: 8px;
  align-items: center;
}

.shoal h3 svg {
  width: 18px;
  height: 22px;
  flex: none;
  fill: var(--sea);
}

.shoal p {
  margin: 0;
  font-size: 14px;
  color: #36576d;
}

.shoal-edge {
  position: absolute;
  left: 0;
  width: 100%;
  height: 30px;
  display: block;
  fill: var(--shallow);
}

.shoal-edge-top {
  top: -29px;
}

.shoal-edge-bottom {
  bottom: -29px;
}

/* ===== トップの記事カード（アイキャッチ画像つき） ===== */

.articles {
  display: grid;
  gap: 18px;
}

@media (min-width: 640px) {
  .articles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .articles {
    grid-template-columns: repeat(3, 1fr);
  }
}

.article-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(7, 42, 71, 0.12);
}

.article-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.article-body {
  padding: 14px 16px 18px;
  display: grid;
  gap: 6px;
  align-content: start;
}

.article-body .tag {
  justify-self: start;
}

.article-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}

.article-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.article-card:hover h3 {
  color: var(--blue);
}

/* ===== パンくずと記事の日付（2026-10-13。build.js が build:crumbs・build:dates に書き込む） =====
   記事の本文の箇条書き・段落の余白（下の「文章を読みやすく」）がかからないように、main .container の中でも打ち消す。
   色・余白は上の .crumbs（シミュレーターの手書きのパンくず <p class="crumbs"> と共通）。ここでは nav.crumbs だけを変える */

nav.crumbs {
  font-size: 0.78rem;
  line-height: 1.6;
}

.crumbs ol,
main .container .crumbs ol {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crumbs li,
main .container .crumbs li {
  margin: 0;
  line-height: 1.6;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* そのページの題名は1行に収め、長ければ「…」で切る */
.crumbs li:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crumbs li + li::before {
  content: "›";
  margin: 0 0.45em;
}

nav.crumbs + h1 {
  margin-top: 8px;
}

main .container .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 1.2em;
  margin: 0 0 12px;
  font-size: 0.8rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.article-meta a {
  color: inherit;
}

/* 記事一覧（/guide/）。分類ごとの見出しの下に、トップと同じ記事カード */
.guide-index .lead {
  max-width: 46em;
}

.guide-group h2 {
  margin-bottom: 18px;
}

/* 分類は見出しに出ているので、カードの分類のラベルは出さない */
.guide-group .article-body .tag {
  display: none;
}

/* 記事一覧の先頭の、分類へ飛ぶボタン（2026-11-10。build.js が分類の名前と本数を書き込む）。
   スマホでは一覧が長く、下の分類まで指で送るしかなかったため。指で押しやすい高さ（44px）にする */
.guide-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 4px;
}

.guide-jump a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.guide-jump a:hover,
.guide-jump a:focus-visible {
  border-color: var(--sea);
  color: var(--blue);
}

.guide-jump span {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-soft);
}

/* ===== 比べている8社（泡のようなタイル） ===== */

.brands-section {
  padding-top: 0;
}

.brands {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 900px) {
  .brands {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.brand-tile {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--ink);
  display: grid;
  gap: 4px;
  align-content: start;
}

.brand-tile b {
  font-size: 14px;
  line-height: 1.45;
}

.brand-tile:hover {
  border-color: var(--sea);
}

.brand-tile:hover b {
  color: var(--blue);
}

/* ===== 文章のページ（記事・計算のしかた・信頼ページ） ===== */

.narrow {
  max-width: var(--max-width);
}

.prose ul,
main .container ul,
main .container ol {
  padding-left: 1.3em;
}

.prose li,
main .container li {
  margin: 0 0 0.5em;
}

/* ===== テーブル（比較表・社別ページ・記事） ===== */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 560px;
}

th,
td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}

thead th {
  background: linear-gradient(180deg, #e3f4fc 0%, #cdeaf8 100%);
  color: var(--deep);
  font-weight: 700;
}

tbody tr:nth-child(even) td {
  background: #f6fbfe;
}

tbody tr:last-child td {
  border-bottom: none;
}

/* --- 結果の表（シミュレーター以外の比較表・社別ページ。render-helpers.js が出力） ---
   PC：表のまま、長い文（解約金の条件・備考など）は折り返して画面に収める。
   画面の幅が1000px未満（スマホ・タブレット・狭いウィンドウ）：1行＝1枚のカードに組み替え、項目名は data-label から出す。
   1000px は、表を折り返しても横スクロールなしで収まる最小の幅（2026-10-01 実測：表の最小幅 約930px＋余白）。 */

.result-table th,
.result-table td {
  white-space: normal;
  vertical-align: top;
}

.result-table .cell-type,
.result-table .cell-monthly,
.result-table .cell-minimum {
  white-space: nowrap;
}

.result-table .cell-name {
  min-width: 9em;
}

.result-table .cell-electricity {
  min-width: 7em;
}

.result-table .cell-cancel {
  min-width: 13em;
}

.result-table .cell-quota {
  min-width: 6.5em;
}

.result-table .cell-note {
  min-width: 9em;
}

@media (max-width: 999px) {
  .result-wrap {
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .result-table {
    min-width: 0;
    font-size: 0.9rem;
  }

  /* 見出し行は画面から隠す（読み上げソフト用には残す） */
  .result-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .result-table,
  .result-table tbody,
  .result-table tr {
    display: block;
  }

  .result-table tr {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 2px 14px 6px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(7, 42, 71, 0.05);
  }

  .result-table tbody tr:nth-child(even) td {
    background: transparent;
  }

  /* 項目名の列幅は rem で固定する（em だと文字の大きいセルだけ値の位置がずれる） */
  .result-table tbody tr td {
    display: grid;
    grid-template-columns: 7.6rem 1fr;
    column-gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
  }

  .result-table td::before {
    content: attr(data-label);
    color: var(--ink-soft);
    font-size: 0.78rem;
    line-height: 1.6;
  }

  .result-table tbody tr td.cell-name {
    display: block;
    padding: 10px 0 8px;
    font-weight: 700;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
  }

  .result-table td.cell-name::before {
    content: none;
  }

  .result-table td.cell-monthly {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--deep);
  }

  .result-table tbody tr td.is-empty {
    display: none;
  }

  .result-table tbody tr td:last-child {
    border-bottom: none;
  }
}

/* 広い画面では、結果の表だけ本文の幅（720px）より広げて横スクロールをなくす */
@media (min-width: 1000px) {
  .container .result-wrap {
    width: min(1120px, calc(100vw - 48px));
    margin-left: 50%;
    transform: translateX(-50%);
  }
}

/* --- 記事の要点表（render-helpers.js の renderSummaryTable。4列でスマホでもそのまま表として読む） --- */

.summary-table {
  min-width: 0;
  font-size: 0.85rem;
}

.summary-table th,
.summary-table td {
  white-space: normal;
  vertical-align: top;
  padding: 8px 8px;
  /* 言葉の切れ目で折り返す（「いちばん安 / いサーバー」のように言葉の途中で切れないように。対応していないブラウザではふつうの折り返し）。
     入りきらない言葉は途中でも折り返す（表が横にはみ出さないように） */
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}

/* 途中で切りたくない言葉は <span class="phrase"> で囲む（列の幅もその言葉が入る広さになる。例：早見表の見出し「いちばん安い」） */
.summary-table .phrase {
  white-space: nowrap;
}

.summary-table .summary-num {
  white-space: nowrap;
  font-weight: 700;
  color: var(--deep);
}

/* 金額の下の補足（「ノルマ 月2本分」「定額」など）は太字にしない */
.summary-table .summary-num .summary-sub {
  font-weight: 400;
}

/* 早見表の「使い方」（飲むだけ・料理にも使う）は途中で折り返さない */
.summary-table .quick-label {
  white-space: nowrap;
}

.summary-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--ink-soft);
  font-weight: 400;
}

/* ===== 記事 ===== */

/* アイキャッチ画像（scripts/eyecatch.mjs が作り、build.js が見出しの下に入れる） */
.eyecatch {
  display: block;
  width: 100%;
  height: auto;
  margin: 8px 0 20px;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(7, 42, 71, 0.14);
}

/* 本文の写真（1記事1枚まで。出典は assets-src/article-photos.json） */
.article-photo {
  margin: 18px 0 22px;
}

.article-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.article-photo figcaption {
  margin-top: 6px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* 使用量と月額のグラフ（render-helpers.js の renderUsageChart） */
figure[data-calc-chart] {
  margin: 18px 0;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  max-width: 560px;
}

.usage-chart {
  display: block;
  width: 100%;
  height: auto;
}

.usage-chart .chart-grid {
  stroke: var(--line-soft);
  stroke-width: 1;
}

.usage-chart .chart-axis {
  stroke: var(--ink-soft);
  stroke-width: 1;
}

.usage-chart .chart-tick {
  fill: var(--ink-soft);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.usage-chart .chart-label {
  fill: var(--ink-soft);
  font-size: 10px;
}

.chart-legend {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: 0.82rem;
}

.chart-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

/* 記事の「各社の公式の電気代と計算の前提」（render-helpers.js の renderElectricityTable。denkidai。2026-10-09） */
.elec-cards {
  display: grid;
  gap: 12px;
  margin-top: 1.6em;
}

.elec-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

main .container .elec-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  font-weight: 700;
  line-height: 1.5;
}

.elec-name a {
  color: var(--deep);
}

main .container .elec-values {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

main .container .elec-values li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 2px 12px;
  margin: 0;
  line-height: 1.6;
}

.elec-model {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.elec-values b {
  margin-left: auto;
  text-align: right;
  font-size: 1.05rem;
  color: var(--deep);
}

.elec-sub {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ink-soft);
}

.elec-premises {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 0.85rem;
}

.elec-premises div {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: 8px;
}

.elec-premises dt {
  color: var(--ink-soft);
}

main .container .elec-premises dd {
  margin: 0;
  line-height: 1.7;
}

main .container .elec-source {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* 記事の「ペットボトルと8社の月額」（render-helpers.js の renderPetInput・renderPetResult、pet.js。petbottle。2026-10-12） */
.pet-input {
  display: grid;
  gap: 6px;
  margin-top: 1.6em;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.pet-input label {
  font-weight: 700;
  color: var(--deep);
}

.pet-input-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.pet-input input {
  width: 6.5em;
  padding: 8px 10px;
  font: inherit;
  font-size: 1.1rem;
  text-align: right;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.pet-input input:focus-visible,
.pet-reset:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.pet-reset {
  padding: 6px 12px;
  font: inherit;
  font-size: 0.85rem;
  color: var(--deep);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

main .container .pet-input .note {
  margin: 0;
}

main .container .pet-answer {
  margin: 1.2em 0 0;
  font-weight: 700;
  line-height: 1.8;
}

.pet-table th,
.pet-table td {
  font-variant-numeric: tabular-nums;
  padding-inline: 6px;
}

/* 金額は折り返さない（スマホで「2,75 / 0円」と切れないように） */
.pet-table td,
.pet-table thead th {
  white-space: nowrap;
}

.pet-table td {
  font-size: 0.88rem;
}

/* 社名は言葉の区切り（render-helpers.js が入れる <wbr>）でだけ折り返す */
.pet-table tbody th a {
  word-break: keep-all;
  overflow-wrap: normal;
}

.pet-table tbody th {
  text-align: left;
}

.pet-table .pet-row {
  background: var(--amber-soft); /* 比べる相手（ペットボトル）の行 */
}

.pet-table td.pet-cheaper {
  font-weight: 700;
  color: var(--deep);
  background: var(--teal-soft);
}

.pet-mark {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal);
}

/* 記事の「浄水型とボトル型の、使う量ごとのいちばん安い月額」（render-helpers.js の renderTypesTable。tap-water。2026-10-20）。少ないほうの色と印はペットボトルの表と同じ */
main .container .types-answer {
  margin: 1.2em 0 0;
  font-weight: 700;
  line-height: 1.8;
}

.types-table td {
  font-variant-numeric: tabular-nums;
}

.types-table tbody th {
  white-space: nowrap;
}

.types-table td.types-cheaper {
  font-weight: 700;
  color: var(--deep);
  background: var(--teal-soft);
}

.types-table td.types-cheaper .summary-sub {
  font-weight: 400;
}

.types-mark {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal);
}

/* 記事の「使う量ごとの1Lあたり」（render-helpers.js の renderPerLiterTable。bruno。2026-10-22）。ペットボトルより安い行のマスの色は、ペットボトルの表と同じ */
main .container .perl-answer {
  margin: 1.2em 0 0;
  font-weight: 700;
  line-height: 1.8;
}

.perl-table td {
  font-variant-numeric: tabular-nums;
}

.perl-table tbody th {
  white-space: nowrap;
}

.perl-table td.perl-cheaper {
  font-weight: 700;
  color: var(--deep);
  background: var(--teal-soft);
}

/* 記事の「使う量と使う期間ごとの、合計がいちばん少ないプラン」（render-helpers.js の renderCheapestTable。yasui。2026-10-22）。
   マスは社名・プラン名（小さい字）・合計（太字）・うちやめるときの費用（小さい字）。社名は言葉の区切り（<wbr>）でだけ折り返す */
main .container .cheapest-answer {
  margin: 1.2em 0 0;
  font-weight: 700;
  line-height: 1.8;
}

.cheapest-table td {
  font-variant-numeric: tabular-nums;
}

.cheapest-table tbody th {
  white-space: nowrap;
}

.cheapest-table td a {
  word-break: keep-all;
  overflow-wrap: normal;
}

.cheapest-total {
  display: block;
  margin-top: 2px;
  font-weight: 700;
  color: var(--deep);
  white-space: nowrap;
}

/* 記事の「卓上と床置き」（render-helpers.js の renderDeskTable。takujou。2026-10-23）。
   値（大きさ・広さ・重さ・タンク・月額）は太字。大きさと広さは「×」の後ろでだけ折り返す（.phrase）。
   社ごとの表（space・tank・price）は、マスの中に機種を1行ずつ（機種名と値） */
.desk-table td {
  font-variant-numeric: tabular-nums;
}

.desk-table td a {
  word-break: keep-all;
  overflow-wrap: normal;
}

.desk-val {
  font-weight: 700;
  color: var(--deep);
}

.desk-item {
  display: block;
}

.desk-item + .desk-item {
  margin-top: 6px;
}

.desk-item .desk-val {
  white-space: nowrap;
}

/* 記事の「おしゃれなウォーターサーバー」（render-helpers.js の renderColorsTable。oshare。2026-10-24）。
   見た目は卓上の表（desk-*）と同じ。色の早見表は、社ごとに社名の見出しの行を入れ、その下に機種を1行ずつ */
.colors-table tr.colors-company th {
  background: var(--shallow);
  color: var(--deep);
  font-weight: 700;
  padding-top: 6px;
  padding-bottom: 6px;
}

.colors-table tr.colors-company th a {
  word-break: keep-all;
  overflow-wrap: normal;
}

/* 色の名前は1行に1つずつ。長い名前が折り返したときは、2行目を1字下げる（「アンティーク／グリーン」が2色に見えないように。2026-10-27） */
.colors-item {
  display: block;
  padding-left: 1em;
  text-indent: -1em;
}
.colors-item .phrase {
  text-indent: 0;
}

/* 記事の「停電・災害」（render-helpers.js の renderOutageTable。teiden。2026-10-24）。表は比べの表（matrix-table）と卓上の表の形を使う。
   「書かれていない」は薄い字で */
.outage-none {
  color: var(--ink-soft);
}

/* 備蓄の表の行の見出し（人数）も、値の欄と同じ縞の色に */
.outage-stock-table tbody tr:nth-child(even) th {
  background: #f6fbfe;
}

/* 記事の「捨て方・処分」（render-helpers.js の renderDisposalTable。sutekata。2026-10-27）。表は比べの表（matrix-table）と卓上の表の形を使う。
   1年のゴミの量の表は、行の見出し（社・容器・ノルマ）も値の欄と同じ縞の色に。2つの表の間をあける */
.disposal-amount-table tbody tr:nth-child(even) th {
  background: #f6fbfe;
}

.disposal-wrap + .disposal-wrap {
  margin-top: 14px;
}

/* パソコンの幅では、4列の早見表とサーバーの表で社名が1字ずつ折り返さないように（2026-10-27 幅1280pxで「ハミング／ウォー／ター」と4行になった） */
@media (min-width: 640px) {
  .disposal-table tbody th {
    white-space: nowrap;
  }
}

/* 記事の「エブリィフレシャスのランプの点滅」（render-helpers.js の renderTroubleTable。every-trouble。2026-10-28）。表は比べの表（matrix-table）の形を使う。
   「取扱説明書の表にはない」は薄い字。一部の機種だけの行は、確かめることの上に機種名を小さく出す。費用は太字 */
.trouble-none {
  color: var(--ink-soft);
}

.trouble-models {
  display: block;
  margin-bottom: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.trouble-cost {
  display: block;
  font-weight: 700;
  color: var(--deep);
}

/* パソコンの幅では、行の見出し（点滅のしかた・確かめること）を少し広めに */
@media (min-width: 640px) {
  .trouble-table tbody th {
    width: 38%;
  }
}

/* 直らないときの連絡先の囲み（要点の囲みと同じ色づかい） */
main .container .trouble-contact {
  margin: 8px 0 12px;
  padding: 14px 18px 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--sea);
  border-radius: var(--radius);
}

main .container .trouble-contact p {
  margin: 0 0 6px;
}

main .container .trouble-contact-name {
  font-weight: 700;
  color: var(--deep);
}

main .container .trouble-contact-tel {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

main .container .trouble-contact-tel a {
  color: var(--deep);
  text-decoration: none;
  white-space: nowrap;
}

main .container .trouble-contact-free {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
}

main .container .trouble-contact ul {
  margin: 8px 0 10px;
}

main .container .trouble-contact li {
  margin: 0 0 0.4em;
}

/* 記事の「8社の不具合」（render-helpers.js の renderFuguaiTable。fuguai。2026-10-29）。表は比べの表（matrix-table）・卓上の表（desk-*）・不具合の表（trouble-*）の形を使う。
   水漏れの「まずすること」は太字、電話番号は太字で途中で折り返さない。共通の確かめることの一覧は、書いている社を小さく下に */
.fuguai-first {
  font-weight: 700;
  color: var(--deep);
}

.fuguai-tel {
  font-weight: 700;
  white-space: nowrap;
}

.fuguai-common li + li {
  margin-top: 0.6em;
}

/* 1社の困りごとの記事（humming-trouble。2026-11-03）：表の下に注記がないとき（data-note="short" で機種名の行もない表）も、次の本文を表とくっつけない
   （本文の段落は部品の div の外にあるので、上の .table-wrap + p の決まりが届かない）。エブリィの不具合の記事のカード（data-calc-trouble。2026-11-03）も同じ */
main .container :is([data-calc-fuguai], [data-calc-trouble]):has(> :is(.table-wrap, .check-cards, .lamp-group):last-child) + :is(p, ul, ol):not(.note) {
  margin-top: 1.6em;
}

/* カードのまとまりのすぐ下に続く本文（部品の中の、カードの下の文。every-trouble）も、カードとくっつけない */
main .container .lamp-group + :is(p, ul, ol):not(.note) {
  margin-top: 1.6em;
}

/* 1社の困りごとの記事のカード（render-helpers.js の lampCard・fuguaiOneCheck・fuguaiCare。2026-11-03 あなたが見本の案A に決定。「カードが文字ばかりに見える」への対策）
   ランプのカード：左上に操作パネルの小さな図（どのランプが点灯・点滅・消えているか）、右に合図。下に意味と、すること（色の囲み。2文以上は箇条書き）。
   ふだんの合図は緑がかった青、故障かなと思ったらはだいだい。確かめること・お手入れのカードは青。パソコンの幅では、図が左の列・文が右の列。
   印刷（下書きの PDF）では、カードがページの途中で切れないようにする */

/* 見取り図（機種のカードの上に1回：ランプの位置と名前・図の見方） */
main .container .lamp-key {
  margin: 10px 0 0;
  padding: 12px 14px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

main .container .lamp-key-title {
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--deep);
}

.lamp-keyfig {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.lamp-keyfig-bar {
  max-width: 320px;
}

.lamp-keyfig-round {
  max-width: 240px;
}

main .container .lamp-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 14px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

main .container .lamp-legend li {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 0;
}

.lamp-legend svg {
  width: 16px;
  height: 20px;
}

/* 図の色（点灯・点滅＝青く光る、消えている＝暗い色、ほかのランプ＝薄い色、押したボタン＝点線の輪） */
.lp-panel {
  fill: #eef5f9;
  stroke: #bfd3df;
  stroke-width: 1;
}

.lp-none {
  fill: #d6e3eb;
}

.lp-key {
  fill: #9db4c4;
}

.lp-on {
  fill: var(--blue);
}

.lp-glow {
  fill: rgba(58, 166, 220, 0.3);
}

.lp-off {
  fill: #50677a;
}

.lp-ray {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.7;
  stroke-linecap: round;
}

.lp-press {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.5;
  stroke-dasharray: 2.2 1.6;
}

.lp-label {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  fill: var(--ink-soft);
}

.lamp-keyfig-round .lp-label {
  font-size: 11px;
}

/* まとまり（ふだんの合図・故障かなと思ったら・お手入れの目安）の見出しと数 */
main .container .lamp-group {
  margin: 18px 0 0;
}

main .container .lamp-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--teal);
}

main .container .lamp-group-title::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
}

main .container .lamp-group-count {
  padding: 0 8px;
  border-radius: 999px;
  background: var(--teal-soft);
  font-family: var(--body);
  font-size: 0.75rem;
}

main .container .lamp-group-text {
  margin: 2px 0 8px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

main .container .lamp-group-lamp .lamp-group-title {
  color: var(--amber);
}

main .container .lamp-group-lamp .lamp-group-count {
  background: var(--amber-soft);
}

main .container .care-group .lamp-group-title {
  color: var(--deep);
}

main .container .care-group .lamp-group-title::before {
  background: var(--sea);
}

main .container .care-group .lamp-group-count {
  background: var(--shallow);
}

/* ランプのカード：左上に図、右に合図。下に意味と、すること（囲み） */
main .container .lamp-cards {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

main .container .lamp-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px 12px;
  margin: 0;
  padding: 12px 14px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 12px;
}

main .container .lamp-group-lamp .lamp-card {
  border-left-color: #d98b52;
}

main .container .lamp-card-nofig {
  grid-template-columns: 1fr;
}

main .container .lamp-card-fig {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.lamp-mini-bar {
  width: 120px;
  height: 46px;
}

.lamp-mini-round {
  width: 80px;
  height: 80px;
}

main .container .lamp-card-signal {
  margin: 0;
  font-weight: 700;
  line-height: 1.55;
  color: var(--deep);
}

main .container .lamp-card-meaning,
main .container .lamp-card-do {
  grid-column: 1 / -1;
  margin: 0;
  line-height: 1.75;
}

main .container .lamp-card-label {
  display: inline-block;
  margin-right: 6px;
  padding: 0 7px;
  border-radius: 5px;
  background: var(--line-soft);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.7;
  vertical-align: 0.08em;
}

/* すること（お手入れ）の囲み：ふだんの合図＝緑がかった青、故障かな＝だいだい、確かめること・お手入れ＝青 */
main .container .lamp-card-do {
  padding: 8px 12px 10px;
  border-radius: 8px;
  background: var(--teal-soft);
}

main .container .lamp-card-do > p {
  margin: 0;
  line-height: 1.75;
}

main .container .lamp-card-do .lamp-card-label {
  background: var(--teal);
  color: #fff;
}

main .container .lamp-card-do > p.lamp-card-label {
  margin: 0 0 3px;
}

main .container .lamp-card-steps {
  margin: 0;
  padding-left: 1.25em;
}

main .container .lamp-card-steps li {
  margin: 0;
  line-height: 1.75;
}

main .container .lamp-card-steps li + li {
  margin-top: 3px;
}

main .container .lamp-card-do > .lamp-card-more {
  margin: 4px 0 0;
  font-size: 0.85rem;
  font-weight: 700;
}

.lamp-card-link::before {
  content: "→ ";
}

main .container .lamp-group-lamp .lamp-card-do {
  background: var(--amber-soft);
}

main .container .lamp-group-lamp .lamp-card-do .lamp-card-label {
  background: var(--amber);
}

/* 音・交互の小さな札（図の下） */
main .container .lamp-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0 6px 0 3px;
  border-radius: 999px;
  background: var(--line-soft);
  color: var(--deep);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}

.lamp-chip svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.lamp-chip svg .w,
.lamp-chip svg .x {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

main .container .lamp-chip-mute {
  color: var(--ink-soft);
}

/* 合図の前の印（render-helpers.js の lampIcon。図のかわりに1つ＝見本の案B。every-trouble の点滅のカード。2026-11-04） */
.lamp-icon {
  width: 18px;
  height: 22px;
  margin-right: 4px;
  vertical-align: -0.35em;
}

/* 確かめること・お手入れのカード（確かめること〈場所〉→ すること〈お手入れ〉） */
main .container .check-cards {
  display: grid;
  gap: 10px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

main .container .check-card {
  margin: 0;
  padding: 12px 14px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--sea);
  border-radius: 12px;
}

main .container .check-card-q {
  margin: 0 0 8px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--deep);
}

main .container .check-card-model {
  display: inline-block;
  margin-right: 6px;
  padding: 0 7px;
  border-radius: 5px;
  background: var(--shallow);
  font-size: 0.72rem;
  line-height: 1.7;
  vertical-align: 0.08em;
}

main .container .check-card .lamp-card-do {
  background: #eef6fb;
}

main .container .check-card .lamp-card-do .lamp-card-label {
  background: var(--blue);
}

main .container .lamp-key,
main .container .lamp-card,
main .container .check-card {
  break-inside: avoid;
}

main .container .lamp-group-title,
main .container .lamp-group-text {
  break-after: avoid;
}

@media (min-width: 640px) {
  main .container .lamp-card {
    grid-template-columns: 128px 1fr;
  }

  main .container .lamp-card-meaning,
  main .container .lamp-card-do {
    grid-column: 2;
  }

  main .container .lamp-card-fig {
    grid-row: 1 / span 3;
    align-self: start;
  }

  main .container .lamp-card-nofig {
    grid-template-columns: 1fr;
  }

  main .container .lamp-card-nofig .lamp-card-meaning,
  main .container .lamp-card-nofig .lamp-card-do {
    grid-column: 1;
  }
}

/* エブリィの不具合の記事の点滅のカード（render-helpers.js の troubleBlink・troubleCard。every-trouble。2026-11-04 あなたが見本の案B〈図なし〉に決定）。上のハミングのカードの形を使う。
   図のかわりに、題の前に点滅の印（.lamp-icon）を1つ。安全モードは題の下に小さく「安全モード」。
   「すること」の囲みは、機種のまとまりごとの行（機種名の札は白） */
main .container .trouble-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

main .container .trouble-do-line {
  margin: 2px 0 0;
  line-height: 1.75;
}

main .container .lamp-card-meaning .trouble-do-line {
  display: block;
}

main .container .trouble-do-line .check-card-model {
  background: #fff;
}

main .container .trouble-steps {
  margin: 2px 0 0;
  padding-left: 1.5em;
  list-style: decimal;
}

main .container .trouble-card-none {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* あとで色を変える費用の金額（太字。幅のある額は「〜」のあとで折り返せる＝.desk-val のように1行に固定しない） */
.colors-val {
  font-weight: 700;
  color: var(--deep);
}

/* 記事の「浄水器とサーバー・ペットボトルの月の費用」（render-helpers.js の renderJousuikiInput・renderJousuikiResult、jousuiki.js。jousuiki。2026-10-21）。入力欄と表はペットボトルの表（pet-*）と同じ見た目で、入力が2つ */
.jousuiki-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.jousuiki-field {
  display: grid;
  gap: 6px;
}

.jousuiki-table .jousuiki-row {
  background: var(--amber-soft); /* 入れた値段と目安で変わる行（浄水器） */
}

/* 記事の「乗り換えの特典で戻る額」（render-helpers.js の renderNorikaeInput・renderNorikaeResult・renderNorikaeCards、norikae.js。norikae。2026-10-21）。
   入力欄はペットボトル・浄水器の表と同じ見た目（pet-*・jousuiki-fields）、カードは電気代と同じ elec-* を使う */
.norikae-table td {
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
}

/* 金額は折り返さない（下の小さい字は折り返す） */
.norikae-yen {
  white-space: nowrap;
}

/* 社名と特典の列を広めに（金額の列は狭くてよい） */
.norikae-table thead th:first-child {
  width: 46%;
}

.norikae-table tbody th {
  text-align: left;
}

/* 社名は言葉の区切り（render-helpers.js が入れる <wbr>）でだけ折り返す */
.norikae-table tbody th a {
  word-break: keep-all;
  overflow-wrap: normal;
}

.norikae-table td.norikae-ended {
  white-space: normal;
  font-size: 0.8rem;
}

.norikae-warn {
  font-weight: 700;
  color: var(--deep);
}

main .container .norikae-benefit {
  margin: 0;
  font-weight: 700;
  line-height: 1.6;
  color: var(--deep);
}

.norikae-card .elec-premises div {
  grid-template-columns: 6.6em minmax(0, 1fr); /* 見出しは6文字まで（「早くやめると」など）。言葉の途中で折り返さない幅 */
}

.norikae-card .elec-premises dt {
  white-space: nowrap;
}

/* 表の社名から飛んだとき、固定のヘッダーに隠れないように */
.norikae-card {
  scroll-margin-top: 80px;
}

/* カードの要点（受け取り・対象・期間・注意）。くわしい条件と出典は下の折りたたみ（.norikae-more）。
   2026-11-02 運営者の「カードの文字が多すぎて長くて読みにくい」を受けた見本の案A（render-helpers.js の renderNorikaeCards） */
main .container .norikae-key {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 10px 12px;
  background: var(--sky);
  border-radius: 12px;
  font-size: 0.9rem;
}

.norikae-key div {
  display: grid;
  grid-template-columns: 4.2em minmax(0, 1fr);
  gap: 8px;
}

.norikae-key dt {
  color: var(--ink-soft);
  font-weight: 700;
  white-space: nowrap;
}

main .container .norikae-key dd {
  margin: 0;
  line-height: 1.6;
}

/* 注意（早くやめると返す・ほかの特典と一緒に使えない、など損につながる条件）は、開かなくても目に入るように色を変えて太字に */
.norikae-key .norikae-key-note dd {
  color: var(--amber);
  font-weight: 700;
}

/* くわしい条件の折りたたみ。見た目はシミュレーターの注記の折りたたみ（.note-more）と同じ。
   衛生のカード（.hyg-card の「水の目安・長く使わないとき・出典」）も同じものを使う（2026-11-02） */
.norikae-more summary {
  cursor: pointer;
  list-style: none;
  padding: 2px 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue);
}

.norikae-more summary::-webkit-details-marker {
  display: none;
}

.norikae-more summary::after {
  content: " ▼";
  font-size: 0.7rem;
}

.norikae-more[open] summary::after {
  content: " ▲";
}

.norikae-more > .elec-premises {
  margin-top: 8px;
}

main .container .norikae-more > .elec-source {
  margin-top: 8px;
}

/* くわしい条件の長い文は1文ずつ行を分け、行の頭に小さな丸（「・」は社名の区切りにも使うので、行の頭には使わない）。衛生のカードの欄も同じ（2026-11-02） */
.norikae-line {
  display: block;
  position: relative;
  padding-left: 0.9em;
}

.norikae-line::before {
  content: "";
  position: absolute;
  left: 0.05em;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sea);
}

/* 記事の「引っ越し先で変わる月の支払い」（render-helpers.js の renderRegionInput・renderRegionResult、region.js。hikkoshi。2026-10-22）。
   入力欄は乗り換えの表と同じ見た目（pet-*・jousuiki-fields）。社名の列を広めにし、社名は言葉の区切り（<wbr>）でだけ折り返す */
.region-table td {
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
}

/* 記事の本文に手で書く、社名を左に並べた表（.company-table。hikkoshi のまとめの表・引越しサービスの表）も同じ決まり */
.region-table thead th:first-child,
.company-table thead th:first-child {
  width: 34%;
}

.region-table tbody th,
.company-table tbody th {
  text-align: left;
}

.region-table tbody th a,
.company-table tbody th {
  word-break: keep-all;
  overflow-wrap: normal;
}

/* 届かない社の行は、ひと目で分かるように太字で */
.region-table tr.region-out td {
  font-weight: 700;
  color: var(--deep);
}

.region-table tr.region-out td .summary-sub {
  font-weight: 400;
}

/* 記事の「8社の衛生機能とお手入れ」（render-helpers.js の renderHygieneCards。zakkin。2026-10-11）。カードは電気代と同じ elec-* を使う。
   折りたたみと1文ずつの行は、乗り換えのカードと同じ .norikae-more・.norikae-line（2026-11-02） */
.hyg-card .elec-premises div {
  grid-template-columns: 6.6em minmax(0, 1fr); /* 見出しは6文字まで（「内部の手入れ」など）。言葉の途中で折り返さない幅 */
}

.hyg-card .elec-premises dt {
  white-space: nowrap;
}

main .container .hyg-features {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

main .container .hyg-features li {
  margin: 0;
  line-height: 1.7;
}

.hyg-features b {
  color: var(--deep);
}

.hyg-models {
  margin-left: 8px;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.hyg-text {
  display: block;
  font-size: 0.9rem;
}

main .container .hyg-none {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

figure[data-calc-chart] figcaption {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

/* ===== バッジ・囲み ===== */

.badge-unverified {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.72rem;
  background: var(--warning-bg);
  color: var(--warning-text);
  border-radius: 6px;
  vertical-align: middle;
}

/* 判定文などの囲み：水のグラス */
.callout {
  display: flex;
  gap: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #e5f5fc 100%);
  border: 1px solid #b7def0;
  border-radius: 16px;
  padding: 14px 16px;
  margin: 12px 0 16px;
  font-weight: 700;
}

.callout::before {
  content: "";
  flex: none;
  width: 18px;
  height: 23px;
  margin-top: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 22'%3E%3Cpath d='M9 1C6 5.6 2 9.6 2 14a7 7 0 0 0 14 0C16 9.6 12 5.6 9 1z' fill='%233aa6dc'/%3E%3C/svg%3E") center / contain no-repeat;
}

.badge-campaign {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.72rem;
  background: #eafbf0;
  color: #1a7f4b;
  border-radius: 6px;
}

.badge-region {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.72rem;
  background: #e3f1fb;
  color: var(--deep);
  border-radius: 6px;
}

.verified-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  margin-top: 24px;
}

/* ===== フォーム（比較表のページ） ===== */

fieldset {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  margin: 0 0 16px;
  background: var(--glass);
}

legend {
  font-weight: 700;
  color: var(--deep);
  padding: 0 6px;
}

label {
  display: block;
  margin: 8px 0;
}

select {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--blue);
}

.radio-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.radio-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  cursor: pointer;
}

.radio-row input {
  accent-color: var(--blue);
}

.range-value {
  font-family: var(--display);
  font-weight: 700;
  color: var(--deep);
}

/* ===== フッター（深い海） ===== */

.site-footer {
  position: relative;
  background: var(--abyss);
  color: #c6d9e6;
  font-size: 13px;
  margin-top: 40px;
}

.footer-wave {
  position: absolute;
  top: -29px;
  left: 0;
  width: 100%;
  height: 30px;
  display: block;
  fill: var(--abyss);
}

.site-footer .wrap {
  display: grid;
  gap: 12px;
  padding-block: 30px 40px;
}

.site-footer p {
  margin: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
}

.footer-brand svg {
  width: 28px;
  height: 28px;
  flex: none;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.footer-nav a {
  color: #ffffff;
}

/* ===== 運営者情報などの「項目名｜内容」の一覧 ===== */

.info-list {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 10px 12px;
  margin: 0 0 16px;
}

.info-list dt {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.info-list dd {
  margin: 0;
}

/* ===== 文章を読みやすく（2026-10-08 あなたの了承。「全体的に文字が詰まって見える」への対策） =====
   字の間を少し空け、行の間・段落の間・箇条書きの間・章の間を広げる。効かせるのは文章のページ（main .container の中）の文章。
   見比べに使った案：research/typography/proposal.css。あわせて、段落の中で改行しない（HTML の改行は「。」のあとの空白として
   表示されるため。scripts/join-lines.mjs で直し、check.mjs が見つける） */
@media (max-width: 639px) {
  main .container {
    padding-inline: 20px; /* スマホの左右の余白 16→20px */
  }

  /* 表は今までの幅のまま（狭くすると列の見出しが言葉の途中で折り返すため） */
  main .container .table-wrap {
    margin-inline: -4px;
  }
}

main .container :is(p, li, dd, figcaption) {
  letter-spacing: 0.04em;
}

main .container p {
  line-height: 1.95;
  margin: 0 0 1.5em; /* 段落の間 1em→1.5em */
}

main .container :is(ul, ol) {
  margin: 0 0 1.6em;
}

main .container li {
  line-height: 1.9;
  margin: 0 0 0.9em; /* 箇条書きの間 0.5em→0.9em */
}

main .container section {
  padding: 40px 0 12px; /* 章の間を広げる */
}

main .container h2 {
  margin-bottom: 22px;
}

main .container h3 {
  margin: 2.2em 0 0.8em;
}

main .container h2 + h3 {
  margin-top: 1.2em;
}

/* 表の下の出典などの小さい文字：行の間を広げ、次の段落との間を空ける */
main .container .note {
  line-height: 1.8;
  letter-spacing: 0.02em;
  margin: 0.8em 0 2em;
}

main .container .table-wrap {
  margin-top: 1.6em;
}

/* 表のすぐ下に続く本文（注記の .note 以外）は、表とくっつかないように空ける（2026-10-10） */
main .container .table-wrap + :is(p, ul, ol):not(.note) {
  margin-top: 1.6em;
}

main .container .callout {
  margin: 24px 0 28px;
  padding: 16px 18px;
  line-height: 1.85;
}

main .container .article-photo {
  margin: 32px 0 36px;
}

/* 上の決まりで間隔が変わらないように戻す部品（社別ページの確認日、グラフの凡例） */
main .container .verified-note {
  margin: 24px 0 0;
}

/* 社別ページの電気代：金額の文のすぐ下に、公式の値の前提（小さい字の注記）を寄せる（2026-11-10 1つの文だったものを2つに分けた） */
#server-electricity p:not(:last-child) {
  margin-bottom: 0;
}

main .container .chart-legend li {
  margin: 0;
  line-height: 1.6;
  letter-spacing: normal;
}

/* ===== 記事の目次（長い記事用。大見出しへのリンク。build.js の data-toc が中身を書く。2026-10-14 記事 locca で試す） =====
   上の「文章を読みやすく」の箇条書き・段落の余白が目次にもかかるので、ここで目次だけ詰める */
main .container .toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 6px;
  margin: 28px 0 8px;
}

main .container .toc .toc-title {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 700;
  color: var(--deep);
  line-height: 1.6;
}

main .container .toc ol {
  margin: 0 0 10px;
  padding-left: 1.6em;
}

main .container .toc li {
  margin: 0 0 0.35em;
  line-height: 1.7;
}

main .container .toc a {
  text-decoration: none;
  word-break: auto-phrase; /* 見出しと同じく、言葉の切れ目で折り返す（「考え／られること」のようにしない） */
}

main .container .toc a:hover,
main .container .toc a:focus-visible {
  text-decoration: underline;
}

/* ページの中のリンク（目次・「◯◯の章」）で飛んだ先が、上に固定したヘッダー（.masthead。スマホは2段で約122px、幅760px以上は1段で約64px）に隠れないように */
main [id] {
  scroll-margin-top: 136px;
}

@media (min-width: 760px) {
  main [id] {
    scroll-margin-top: 80px;
  }
}

/* ===== 大事なところのラインマーカー（2026-10-16 あなたの「重要な部分をラインマーカーで強調してみてほしい」。まず記事 humming で試す） =====
   <strong class="marker">…</strong>。文字を太字にし、下半分に蛍光ペンのような色を引く（2行にまたがっても行ごとに引く）。
   引きすぎると目立たなくなるので、1記事5か所まで・1つの章に1か所まで・1か所は短い句（30字くらいまで）。見出し・表・冒頭のまとめには引かない
   （research/ai-writing-guide.md 2章。check.mjs が数える）
   2026-10-16 描き方を変えた：はじめは下半分だけ色を付けるグラデーション（linear-gradient）だったが、PDF にすると読む道具によって
   2行目以降に色が付かない・色がピンクになるなど崩れた（運営者の指摘。ブラウザの画面では正しく出ていた）。太い下線を文字の下半分に重ねる形にした
   （下線は文字の下に描かれ、PDF でもただの塗りつぶしになる） */
main .container .marker {
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-color: var(--marker);
  text-decoration-thickness: 0.5em;
  text-underline-offset: -0.32em;
  text-decoration-skip-ink: none;
}

/* ===== 公式の文の引用（2026-10-19 記事 oyu-ondo。日清食品のよくある質問の文など） =====
   <blockquote><p>「…」</p><cite>出どころ</cite></blockquote>。このサイトの判定文（.callout）と見分けがつくよう、太字にせず、左に線を引くだけにする */
main .container blockquote {
  margin: 20px 0 28px;
  padding: 14px 16px;
  border-left: 4px solid var(--aqua);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
}

main .container blockquote p {
  margin: 0;
}

main .container blockquote cite {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--ink-soft);
}

/* ===== 見せ方の改善（2026-10-23 運営者の「UI/UX改善提案書」。見本の PDF で了承。使い方は research/ai-writing-guide.md 2章） ===== */

/* 冒頭の「この記事の要点」（提案書の「冒頭の3行まとめ」。運営者の「Bでいきましょう」）：
   <div class="points"><p class="points-title">この記事の要点</p><ol><li>…</li></ol></div>。答えを3つまで、番号つきで先に出す。
   「結論」という言葉は使わない（2026-10-04 運営者の「「結論：」で始まる冒頭は AI が作っている感じがする」） */
main .container .points {
  margin: 8px 0 28px;
  padding: 16px 18px 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--sea);
  border-radius: var(--radius);
}

main .container .points-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--deep);
  letter-spacing: 0.04em;
}

main .container .points-title::before {
  content: "";
  flex: none;
  width: 16px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 22'%3E%3Cpath d='M9 1C6 5.6 2 9.6 2 14a7 7 0 0 0 14 0C16 9.6 12 5.6 9 1z' fill='%230f6fb8'/%3E%3C/svg%3E") center / contain no-repeat;
}

main .container .points ol {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  counter-reset: point;
}

main .container .points li {
  position: relative;
  counter-increment: point;
  margin: 0 0 0.7em;
  padding-left: 30px;
  line-height: 1.8;
}

main .container .points li::before {
  content: counter(point);
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  letter-spacing: 0;
}

/* 手順の STEP カード：<ol class="steps"><li><span class="step-title">見出し</span>本文</li>…</ol>。
   番号の丸の下から次のカードまで、水色の線でつなぐ。
   （2026-10-23 下向きの矢印〈∨・︾〉を並べる形も試したが、運営者の「思っていたより良くなかったので一番最初の線に戻しましょう」で線に戻した） */
main .container ol.steps {
  list-style: none;
  counter-reset: step;
  margin: 0 0 1.6em;
  padding: 0;
}

main .container ol.steps > li {
  position: relative;
  counter-increment: step;
  margin: 0 0 14px;
  padding: 12px 14px 12px 58px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  line-height: 1.8;
}

main .container ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 13px;
  top: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 30px;
  text-align: center;
  letter-spacing: 0;
}

main .container ol.steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 44px;
  bottom: -15px;
  width: 2px;
  background: var(--aqua);
}

main .container ol.steps .step-title {
  display: block;
  margin-bottom: 2px;
  font-weight: 700;
  color: var(--deep);
}

/* 注意の囲み：公式・公的な資料に書かれている注意だけに使う（このサイトの考えと区別するため）。
   <div class="caution"><p class="caution-title">公式の注意</p><p>…</p></div>。出どころが文の中にないときは <p class="caution-source"> を最後に置く。
   引用（blockquote・左に水色の線）や判定文（.callout・水色の囲み）とは色で分ける */
main .container .caution {
  margin: 24px 0 28px;
  padding: 14px 16px;
  background: var(--warning-bg);
  border: 1px solid #f2d7a3;
  border-left: 5px solid #e3a43c;
  border-radius: 12px;
}

main .container .caution-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--warning-text);
}

main .container .caution-title::before {
  content: "";
  flex: none;
  width: 20px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 1.5L23 20.5H1z' fill='%23e3a43c'/%3E%3Cpath d='M12 8v6' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='17.3' r='1.4' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
}

main .container .caution p {
  margin: 0 0 0.8em;
  line-height: 1.85;
}

main .container .caution > :last-child {
  margin-bottom: 0;
}

main .container .caution ul {
  margin: 0 0 0.8em;
}

main .container .caution li {
  margin: 0 0 0.5em;
}

main .container .caution blockquote {
  margin: 0 0 0.8em;
  padding: 8px 12px;
  border-left-color: #e3a43c;
  background: rgba(255, 255, 255, 0.6);
}

main .container .caution .caution-source {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* よくある質問の折りたたみ：<details class="faq-item"><summary>質問</summary><div class="faq-answer">答え</div></details>。
   JavaScript なしで開け閉めでき、答えはページの中に残る（検索エンジンにも読まれ、ページ内検索でも見つかる）。質問が5つ以上の記事で使う */
main .container .faq-item {
  margin: 0 0 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

main .container .faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 13px 44px 13px 46px;
  font-weight: 700;
  color: var(--deep);
  line-height: 1.7;
  word-break: auto-phrase;
}

main .container .faq-item summary::-webkit-details-marker {
  display: none;
}

main .container .faq-item summary::before {
  content: "Q";
  position: absolute;
  left: 14px;
  top: 13px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 0.8rem;
  line-height: 22px;
  text-align: center;
}

main .container .faq-item summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--sea);
  border-bottom: 2px solid var(--sea);
  transform: translateY(-70%) rotate(45deg);
}

main .container .faq-item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

main .container .faq-answer {
  position: relative;
  padding: 0 16px 14px 46px;
}

main .container .faq-answer::before {
  content: "A";
  position: absolute;
  left: 14px;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

main .container .faq-answer > :last-child {
  margin-bottom: 0;
}

/* 比べの表（文で並べていた違いを表にしたもの。<table class="summary-table matrix-table">。記事 jousuiki の「手間と置き場所」）。
   行の見出しは <span class="phrase"> で言葉の途中で折り返さない。
   スマホでは、文の入った3列だと1行が数文字ずつになって読みにくいので、1行＝1つの囲みにして、項目名（td の data-label）を値の上に出す */
.matrix-table tbody th {
  color: var(--deep);
}

/* 行の見出しも、値の欄と同じ縞の色・最後の行の線なしにそろえる */
.matrix-table tbody tr:nth-child(even) th {
  background: #f6fbfe;
}

.matrix-table tbody tr:last-child th {
  border-bottom: 0;
}

@media (max-width: 639px) {
  .matrix-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .matrix-table,
  .matrix-table tbody,
  .matrix-table tr,
  .matrix-table tbody th,
  .matrix-table td {
    display: block;
  }

  .matrix-table tr {
    padding: 10px 14px 12px;
    border-bottom: 1px solid var(--line-soft);
  }

  .matrix-table tbody tr:last-child {
    border-bottom: 0;
  }

  .matrix-table tbody tr:nth-child(even) {
    background: #f6fbfe;
  }

  .matrix-table tbody th,
  .matrix-table tbody td,
  .matrix-table tbody tr:nth-child(even) td {
    padding: 2px 0;
    border: 0;
    background: transparent;
  }

  .matrix-table tbody th {
    font-size: 0.95rem;
  }

  .matrix-table td::before {
    content: attr(data-label);
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ink-soft);
  }
}

/* 1社の記事の「公式の月額の表と、このサイトの計算」（render-helpers.js の renderGetsugakuOfficial。<table class="… matrix-table getsugaku-official">）：
   このサイトの計算と違う公式の値のマスに色をつける（表の下の注記「色のついたマスは…」と対になる。2026-10-31 富士おいしい水） */
.getsugaku-official td.getsugaku-diff {
  background: var(--warning-bg);
  color: var(--warning-text);
  font-weight: 700;
}

/* スマホの1行＝1つの囲みでは、上の matrix-table の決まりがマスの色を消すので、項目名と値をまとめて薄い色の囲みにする */
@media (max-width: 639px) {
  .getsugaku-official.matrix-table tbody tr td.getsugaku-diff {
    margin: 4px -8px 0;
    padding: 0 8px 4px;
    border-radius: 8px;
    background: var(--warning-bg);
  }
}

/* シミュレーター：月額がいちばん安いプランと、合計がいちばん安いプランを並べるカード（render-helpers.js の contrastHtml。値は計算から作る） */
.versus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); /* 2枚を同じ幅に（長い社名でも片方だけ広がらない） */
  gap: 10px;
  margin: 18px 0 6px;
}

.versus-card {
  padding: 12px 12px 10px;
  border-radius: 14px;
  background: var(--amber-soft);
  border: 1px solid #f1d6bd;
}

.versus-card.is-best {
  background: #e8f5fd;
  border-color: #9fd0ef;
}

.versus-card p {
  margin: 0;
  line-height: 1.6;
  word-break: auto-phrase; /* 「エブリィフレシャ／ス」のように言葉の途中で折り返さない */
  overflow-wrap: anywhere; /* 入りきらない言葉だけは途中で折り返す（カードから、はみ出さないように） */
}

.versus-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--amber);
}

.versus-card.is-best .versus-label {
  color: var(--blue);
}

.versus-card .versus-name {
  margin-top: 4px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
}

.versus-card .versus-num {
  margin-top: 6px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--deep);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.versus-card .versus-sub {
  margin-top: 4px;
  font-size: 0.74rem;
  color: var(--ink-soft);
}

.versus-diff {
  margin: 8px 0 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--amber-soft);
  font-size: 0.9rem;
  line-height: 1.7;
}

.versus-diff b {
  color: var(--amber);
}

/* シミュレーター：結果の下の注記は、条件の1行（税込・本州、キャンペーンと電気代は入れていない）だけ見せ、詳しい補足を折りたたむ */
.note-more {
  margin: 4px 0 10px;
}

.note-more summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.82rem;
  color: var(--blue);
  font-weight: 700;
}

.note-more summary::-webkit-details-marker {
  display: none;
}

.note-more summary::after {
  content: " ▼";
  font-size: 0.7rem;
}

.note-more[open] summary::after {
  content: " ▲";
}

.note-more .note {
  margin-top: 8px;
}

/* 表の中の条件のバッジ（型・ノルマ・契約。結果のカードと同じ .tag を小さくして使う） */
.summary-table .tags,
.period-table .tags {
  margin-top: 4px;
  gap: 4px;
}

/* 長いバッジ（「ノルマ 最長28日ごとに2本（月平均約2.1本）」など）は、スマホで表が横にはみ出さないよう、言葉の切れ目でバッジの中で折り返す */
.summary-table .tag,
.period-table .tag {
  font-size: 11px;
  font-weight: 400; /* スマホの全プランの表では社名の欄が太字なので、バッジは太字にしない */
  padding: 0 6px;
  max-width: 100%;
}

/* ボトル型（天然水・RO水をまとめた呼び方）。色は天然水と同じ */
.tag.kind-bottle {
  background: var(--teal-soft);
  border-color: transparent;
  color: var(--teal);
}
