:root {
  --paper: #edf1ee;
  --sheet: #f8faf8;
  --ink: #1d2a30;
  --muted: #4f5f63;
  --teal: #2c6b5e;
  --line: #c5d0cb;
  --caution: #fbf1d6;
  --caution-line: #d9a93a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #162024;
    --sheet: #1d2a2f;
    --ink: #e4ebe8;
    --muted: #a9b8b4;
    --teal: #7cc3b1;
    --line: #34474c;
    --caution: #3a3220;
    --caution-line: #c99a35;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.85;
}
a { color: var(--teal); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--caution-line); outline-offset: 2px; }
h1, h2, h3 { font-family: "Shippori Mincho B1", "Yu Mincho", serif; line-height: 1.4; }
h1 { font-size: clamp(1.6rem, 5vw, 2.3rem); font-weight: 800; margin: 0 0 .6em; }
h2 { font-size: 1.3rem; font-weight: 800; margin: 2.2em 0 .6em; }
h3 { font-size: 1.1rem; font-weight: 600; margin: 0 0 .5em; }

.pr {
  margin: 0;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: .85rem;
  line-height: 1.6;
}
header.site, main, footer.site { max-width: 760px; margin: 0 auto; padding: 0 16px; }
header.site { padding-top: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.brand { font-family: "Shippori Mincho B1", serif; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: .92rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a[aria-current="page"] { color: var(--teal); font-weight: 700; text-decoration: underline; }

.hero { padding: 40px 0 8px; }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 40em; }

/* 検体ラベル：何を採る検査かを1字で示す */
.slip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  padding: 36px 0 8px;
}
.glyph {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 3px solid var(--teal);
  border-radius: 50%;
  color: var(--teal);
  font-family: "Shippori Mincho B1", serif;
  font-weight: 800;
  font-size: 54px;
  line-height: 1;
}
.kind { margin: 0; color: var(--teal); font-weight: 700; }

.screening { border-left: 4px solid var(--teal); padding: 2px 0 2px 16px; margin-top: 28px; }
.screening h2 { margin-top: 0; font-size: 1.05rem; }
.screening p { margin: 0; }

.points { padding-left: 1.2em; }
.points li { margin-bottom: .5em; }

.caution {
  background: var(--caution);
  border: 1px solid var(--caution-line);
  padding: 4px 20px 8px;
  margin: 32px 0;
}
.caution h2 { margin-top: .8em; font-size: 1.05rem; }
.caution ul { padding-left: 1.2em; margin: 0 0 .6em; }

.sub { color: var(--muted); font-size: .92rem; margin-top: -.3em; }
.items { display: grid; gap: 18px; }
.item {
  background: var(--sheet);
  border-top: 3px solid var(--teal);
  padding: 18px 20px 20px;
}
.item dl { margin: 0 0 .6em; display: grid; gap: 2px; }
.item dl div { display: grid; grid-template-columns: 8.5em 1fr; }
.item dt { color: var(--muted); font-size: .9rem; }
.item dd { margin: 0; }
.note { margin: 0 0 14px; }
.buy {
  display: inline-block;
  padding: 10px 18px;
  background: var(--teal);
  color: var(--sheet);
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
}
.pending { margin: 0; color: var(--muted); font-size: .92rem; }
.buy:hover { filter: brightness(1.08); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--sheet); font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
thead th { color: var(--muted); font-weight: 400; font-size: .85rem; }
tbody th a { font-weight: 700; }

footer.site { margin-top: 56px; padding-top: 16px; padding-bottom: 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }

@media (max-width: 520px) {
  .slip { grid-template-columns: 1fr; gap: 12px; }
  .glyph { width: 72px; height: 72px; font-size: 40px; }
  .item dl div { grid-template-columns: 7em 1fr; }
}
