/* 3ファイル共通：色・書体・部品 */
:root {
  --ink: #1f2d3a;
  --ink-soft: #4a5a68;
  --navy: #1d4e6b;
  --teal: #2f8a8f;
  --teal-pale: #e6f2f1;
  --paper: #fbf9f5;
  --line: #d9e1e4;
  --accent: #d9644a;
  --tbd: #fff1a8;
  --serif: "Shippori Mincho B1", "Yu Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Noto Sans JP", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.8;
  font-feature-settings: "palt";
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.4; margin: 0; }
p { margin: 0; }

/* 仮置き。差し替えたら <mark class="tbd"> を外す */
mark.tbd {
  background: var(--tbd);
  color: inherit;
  padding: 0 .2em;
  border-radius: 2px;
  font-weight: inherit;
}

/* 心電図の線（飾り） */
.ecg { display: block; width: 100%; height: 28px; color: var(--teal); }
.ecg path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }

.price {
  display: inline-flex; align-items: baseline; gap: .3em;
  font-family: var(--serif); color: var(--accent); font-weight: 700;
}
.price .yen { font-size: 3.2em; line-height: 1; letter-spacing: -.02em; }
.price .unit { font-size: 1.1em; color: var(--ink); }
.price .tax { font-size: .8em; color: var(--ink-soft); font-family: var(--sans); font-weight: 500; }

.label {
  display: inline-block; font-size: .78rem; letter-spacing: .15em;
  color: var(--teal); font-weight: 700;
}

.num {
  display: inline-grid; place-items: center;
  width: 2em; height: 2em; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-family: var(--serif); font-weight: 700; flex: none;
}

table.terms { width: 100%; border-collapse: collapse; }
table.terms th, table.terms td { border-bottom: 1px solid var(--line); padding: .55em .4em; text-align: left; vertical-align: top; }
table.terms th { width: 34%; color: var(--ink-soft); font-weight: 500; white-space: nowrap; }

/* 日本語の変な改行を防ぐ：文節で折る（Chrome・Edge）＋ 見出しは .nb のかたまりごとに折る（Safari も） */
h1, h2, h3, .lead, .answer, p, li, td, dt, dd, summary { word-break: auto-phrase; }
h1, h2, h3, .answer { text-wrap: balance; }
.nb { display: inline-block; }
