@charset "utf-8";

/* ============================================================
   同調圧力外来 — オンライン診療サイトのトンマナに擬態
   ベース: 白 / #3E3A39 / 細罫 / 角丸カード / 影は最小
   ============================================================ */

:root {
  --ink:        #3e3a39;
  --ink-2:      #6d6a6a;
  --ink-3:      #959292;
  --line:       #dcdbdb;
  --line-2:     #ececec;
  --bg:         #ffffff;
  --tint:       #fafbfd;
  --accent:     #2e7d86;
  --accent-d:   #24666e;
  --accent-l:   #8bc3c8;
  --accent-t:   #f1f8f8;
  --alert:      #b8433a;
  --alert-t:    #fff4f4;

  --w:          1000px;
  --r:          10px;
  --r-s:        6px;

  --sans: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }

h1, h2, h3, h4 { margin: 0; line-height: 1.5; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }

/* ---------- ヘッダー ---------- */
.hd {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line-2);
  backdrop-filter: saturate(140%) blur(6px);
}
.hd__in {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo__mark { width: 26px; height: 26px; flex: none; }
.logo__txt { font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.logo__sub { display: block; font-size: 10px; font-weight: 400; letter-spacing: .18em; color: var(--ink-3); line-height: 1.3; }
.hd__nav { display: flex; align-items: center; gap: 22px; }
.hd__nav a { font-size: 13px; color: var(--ink-2); text-decoration: none; }
.hd__nav a:hover { color: var(--accent); }
@media (max-width: 920px) { .hd__nav { display: none; } }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.4;
  padding: 16px 30px; min-height: 54px;
  border: 1px solid var(--accent); border-radius: 100px;
  background: var(--accent); color: #fff;
  text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, opacity .15s;
}
.btn:hover { background: var(--accent-d); border-color: var(--accent-d); }
.btn:disabled { opacity: .35; cursor: default; }
.btn--ghost { background: #fff; color: var(--accent); }
.btn--ghost:hover { background: var(--accent-t); color: var(--accent-d); }
.btn--quiet { background: #fff; color: var(--ink-2); border-color: var(--line); }
.btn--quiet:hover { background: var(--tint); border-color: var(--ink-3); color: var(--ink); }
.btn--lg { font-size: 17px; padding: 19px 44px; min-height: 62px; }
.btn--block { display: flex; width: 100%; }
.btn__arw { font-size: 13px; opacity: .8; }

/* ---------- セクション共通 ---------- */
.sec { padding: 52px 0; }
.sec--tint { background: var(--tint); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.sec__ttl { font-size: 24px; letter-spacing: .02em; margin-bottom: 8px; }
.sec__lead { font-size: 14px; color: var(--ink-2); margin-bottom: 32px; }
.sec__en { display: block; font-size: 11px; font-weight: 400; letter-spacing: .22em; color: var(--accent); margin-bottom: 6px; }
@media (max-width: 760px) {
  .sec { padding: 40px 0; }
  .sec__ttl { font-size: 20px; }
}

/* ---------- 施設情報バー ---------- */
.util { background: var(--tint); border-bottom: 1px solid var(--line-2); font-size: 11.5px; color: var(--ink-3); }
.util__in { display: flex; justify-content: space-between; gap: 12px; height: 30px; align-items: center; letter-spacing: .02em; }
@media (max-width: 560px) { .util__r { display: none; } }

/* ---------- 受付（ファーストビュー＝問診票） ---------- */
.recep { padding: 40px 0 46px; border-bottom: 1px solid var(--line-2); }
.recep__k { font-size: 12px; letter-spacing: .08em; color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.recep__t { font-size: 27px; letter-spacing: .02em; margin-bottom: 12px; }
.recep__d { font-size: 13.5px; color: var(--ink-2); max-width: 640px; margin-bottom: 26px; }
.recep__note { font-size: 12px; color: var(--ink-3); margin-top: 12px; }
@media (max-width: 560px) { .recep { padding: 30px 0 36px; } .recep__t { font-size: 22px; } }

.form { border: 1px solid var(--ink-3); background: #fff; max-width: 720px; }
.form__hd {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--tint); border-bottom: 1px solid var(--line);
  padding: 9px 18px; font-size: 12px; letter-spacing: .06em; color: var(--ink-2);
}
.form__bd { padding: 24px 22px 22px; }
.form__q { font-size: 19px; font-weight: 700; line-height: 1.6; margin-bottom: 6px; }
.form__s { font-size: 13px; color: var(--ink-3); margin-bottom: 20px; }
@media (max-width: 560px) { .form__bd { padding: 20px 16px 18px; } .form__q { font-size: 17px; } }

/* ---------- セクション見出し ---------- */
.ttl {
  font-size: 19px; letter-spacing: .04em;
  padding-left: 12px; border-left: 4px solid var(--accent);
  margin-bottom: 20px;
}
.lead { font-size: 13.5px; color: var(--ink-2); margin-bottom: 20px; }
.fine { font-size: 12px; color: var(--ink-3); line-height: 1.9; margin-top: 16px; }

/* ---------- お知らせ ---------- */
.news { border-top: 1px solid var(--line); max-width: 800px; }
.news__i { display: flex; gap: 24px; padding: 12px 2px; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.news__i dt { flex: none; width: 92px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.news__i dd { margin: 0; color: var(--ink-2); }
@media (max-width: 560px) {
  .news__i { display: block; padding: 11px 2px; }
  .news__i dt { width: auto; font-size: 12px; margin-bottom: 2px; }
}

/* ---------- 症状チェックリスト ---------- */
.check { border-top: 1px solid var(--line); max-width: 800px; }
.check__i {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: baseline; gap: 12px;
  padding: 12px 2px; border-bottom: 1px solid var(--line-2); font-size: 14.5px;
}
.check__b { width: 13px; height: 13px; border: 1px solid var(--ink-3); background: #fff; transform: translateY(1px); }
.check__s { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
@media (max-width: 640px) {
  .check__i { grid-template-columns: 22px 1fr; }
  .check__s { grid-column: 2; white-space: normal; }
}

/* ---------- 表（診療実績・費用） ---------- */
.tblwrap { overflow-x: auto; max-width: 760px; }
.tbl { border-collapse: collapse; width: 100%; font-size: 14px; border-top: 1px solid var(--line); }
.tbl th, .tbl td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl thead th { background: var(--tint); font-size: 12px; color: var(--ink-2); font-weight: 700; border-bottom: 1px solid var(--line); }
.tbl tbody th { width: 34%; font-weight: 400; color: var(--ink-2); background: var(--tint); }
.tbl td { font-variant-numeric: tabular-nums; }
.tbl--stats tbody th { width: 84px; font-weight: 700; color: var(--ink); text-align: center; }
.tbl--stats td:nth-child(2) { width: 96px; }
.tbl__bar { width: auto; }
.tbl__bar i { display: block; height: 8px; background: var(--accent-l); }
@media (max-width: 560px) { .tbl__bar { display: none; } }

/* ---------- 院長挨拶 ---------- */
.greet { max-width: 660px; }
.greet p { font-size: 15px; color: var(--ink-2); }
.greet p + p { margin-top: 17px; }
.greet__sign { margin-top: 26px !important; font-size: 13.5px; color: var(--ink); text-align: right; }

/* ---------- 受診の流れ ---------- */
.steps { counter-reset: st; border-top: 1px solid var(--line); max-width: 800px; }
.steps li {
  counter-increment: st;
  display: grid; grid-template-columns: 34px 1fr; gap: 10px;
  padding: 13px 2px; border-bottom: 1px solid var(--line-2); font-size: 14.5px; color: var(--ink-2);
}
.steps li::before { content: counter(st) "．"; color: var(--accent); font-weight: 700; }

/* ---------- 患者さまの声 ---------- */
.voices { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); max-width: 860px; }
@media (max-width: 640px) { .voices { grid-template-columns: 1fr; } }
.voice { background: #fff; border: 1px solid var(--line); padding: 16px 18px; }
.voice__t { font-size: 13.5px; color: var(--ink-2); line-height: 1.85; }
.voice__p { font-size: 11.5px; color: var(--ink-3); margin-top: 8px; }

/* ---------- 再受付 ---------- */
.reenter {
  border: 1px solid var(--line); background: var(--tint);
  padding: 28px 26px; margin: 56px 0 64px; text-align: center;
}
.reenter__t { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.reenter__d { font-size: 13px; color: var(--ink-2); margin-bottom: 18px; }


/* ---------- 検査でわかること ---------- */
.learn { border: 1px solid var(--line); background: #fff; max-width: 720px; margin-bottom: 26px; }
.learn__i { display: flex; align-items: baseline; gap: 18px; padding: 13px 18px; border-bottom: 1px solid var(--line-2); }
.learn__i:last-child { border-bottom: 0; }
.learn__k { flex: none; width: 138px; font-size: 11.5px; letter-spacing: .04em; color: var(--accent); font-weight: 700; }
.learn__v { font-size: 15px; font-weight: 700; }
@media (max-width: 560px) {
  .learn__i { display: block; padding: 11px 14px; }
  .learn__k { display: block; width: auto; margin-bottom: 2px; }
  .learn__v { font-size: 14px; }
}
.recep__cta { margin-bottom: 8px; }
.recep__cta .btn { min-width: 300px; }
@media (max-width: 560px) { .recep__cta .btn { width: 100%; min-width: 0; } }

/* ---------- 診断タイプ一覧 ---------- */
.tps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 860px) { .tps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .tps { grid-template-columns: 1fr; } }
.tp { background: #fff; border: 1px solid var(--line); padding: 12px 15px 11px; }
.tp__alias { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.5; }
.tp__meta { display: block; font-size: 11px; color: var(--ink-3); margin-top: 2px; font-variant-numeric: tabular-nums; }

/* ---------- 3軸ゲージ（診断書） ---------- */
.gauges { display: grid; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); }
.gauge { display: grid; grid-template-columns: 44px 1fr 64px; align-items: center; gap: 12px; }
.gauge__k { font-size: 13px; color: var(--ink-2); }
.gauge__track { height: 8px; background: var(--line-2); border-radius: 8px; overflow: hidden; }
.gauge__track i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-l), var(--accent)); border-radius: 8px; }
.gauge__v { font-size: 14px; font-weight: 700; text-align: right; }
.gauge__v small { font-size: 11px; font-weight: 400; color: var(--ink-3); margin-left: 4px; font-variant-numeric: tabular-nums; }

/* ---------- 受診者数カウンター ---------- */
.counter {
  display: flex; flex-wrap: wrap; gap: 0;
  border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; margin-top: 34px; background: #fff;
}
.counter__cell { flex: 1 1 0; min-width: 150px; padding: 16px 20px; border-right: 1px solid var(--line-2); }
.counter__cell:last-child { border-right: 0; }
.counter__k { display: block; font-size: 11px; letter-spacing: .08em; color: var(--ink-3); }
.counter__v { font-size: 26px; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.counter__v span { font-size: 13px; font-weight: 400; color: var(--ink-2); margin-left: 3px; }
.counter__live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: middle; animation: blip 2.4s infinite; }
@keyframes blip { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
@media (max-width: 620px) {
  .counter { display: block; }
  .counter__cell {
    display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
    min-width: 0; padding: 13px 16px;
    border-right: 0; border-bottom: 1px solid var(--line-2);
  }
  .counter__cell:last-child { border-bottom: 0; }
  .counter__v { font-size: 21px; }
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-2); max-width: 760px; }
.faq__i { border-bottom: 1px solid var(--line-2); }
.faq__q {
  width: 100%; text-align: left; font-family: inherit; font-size: 15px; font-weight: 700; color: var(--ink);
  background: none; border: 0; padding: 20px 34px 20px 30px; cursor: pointer; position: relative; line-height: 1.6;
}
.faq__q::before { content: "Q"; position: absolute; left: 0; top: 20px; color: var(--accent); font-size: 14px; }
.faq__q::after {
  content: ""; position: absolute; right: 6px; top: 27px;
  width: 8px; height: 8px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3);
  transform: rotate(45deg); transition: transform .2s;
}
.faq__i[open] .faq__q::after { transform: rotate(-135deg); top: 31px; }
.faq__a { padding: 0 34px 22px 30px; font-size: 14px; color: var(--ink-2); position: relative; }
.faq__a::before { content: "A"; position: absolute; left: 0; top: 0; color: var(--ink-3); font-size: 14px; }
.faq__i summary { list-style: none; }
.faq__i summary::-webkit-details-marker { display: none; }

/* ---------- 帯CTA ---------- */
.band { background: var(--accent); color: #fff; padding: 52px 0; text-align: center; }
.band__t { font-size: 21px; margin-bottom: 10px; }
.band__d { font-size: 14px; opacity: .9; margin-bottom: 26px; }
.band .btn { background: #fff; color: var(--accent); border-color: #fff; }
.band .btn:hover { background: #eef7f7; color: var(--accent-d); }

/* ---------- フッター ---------- */
.ft { background: var(--tint); border-top: 1px solid var(--line); padding: 44px 0 34px; font-size: 12px; color: var(--ink-2); }
.ft__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 30px; margin-bottom: 26px; align-items: start; }
@media (max-width: 700px) { .ft__grid { grid-template-columns: 1fr; gap: 18px; } }
.ft__org { font-size: 11.5px; color: var(--ink-3); letter-spacing: .06em; }
.ft__name { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: .04em; margin-top: 2px; }
.ft__info { display: grid; gap: 0; border-top: 1px solid var(--line); }
.ft__info > div { display: flex; gap: 18px; padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.ft__info dt { flex: none; width: 76px; color: var(--ink-3); }
.ft__info dd { margin: 0; }
.ft__note {
  border: 1px solid var(--line); background: #fff; border-radius: var(--r-s);
  padding: 16px 18px; line-height: 1.9; color: var(--ink-2); margin-bottom: 20px;
}
.ft__note b { color: var(--ink); }
.ft__cp { font-size: 11px; color: var(--ink-3); }

/* ============================================================
   問診画面
   ============================================================ */
.exam { display: none; padding: 0 0 70px; }
.exam__bar { position: sticky; top: 60px; z-index: 40; background: #fff; border-bottom: 1px solid var(--line-2); padding: 14px 0 12px; }
.exam__meta { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--ink-3); margin-bottom: 9px; }
.exam__meta b { color: var(--accent); font-size: 15px; font-variant-numeric: tabular-nums; }
.exam__track { height: 3px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.exam__fill { height: 100%; width: 0; background: var(--accent); transition: width .35s ease; }

.qbox { padding-top: 42px; }
.qbox__n { font-size: 11px; letter-spacing: .18em; color: var(--accent); font-weight: 700; margin-bottom: 12px; }
.qbox__q { font-size: 22px; line-height: 1.65; margin-bottom: 10px; }
.qbox__s { font-size: 13px; color: var(--ink-3); margin-bottom: 26px; }
@media (max-width: 560px) { .qbox__q { font-size: 18px; } }

.opts { display: grid; gap: 10px; }
.opt {
  display: block; width: 100%; text-align: left; font-family: inherit; font-size: 15px; line-height: 1.7;
  color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 17px 18px 17px 50px; cursor: pointer; position: relative;
  transition: border-color .15s, background .15s;
}
.opt::before {
  content: ""; position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; border: 1px solid var(--ink-3); border-radius: 50%; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.opt:hover { border-color: var(--accent-l); background: var(--accent-t); }
.opt[aria-checked="true"] { border-color: var(--accent); background: var(--accent-t); }
.opt[aria-checked="true"]::before { border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--accent); }

.exam__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; }
.exam__back { font-family: inherit; font-size: 13px; color: var(--ink-3); background: none; border: 0; cursor: pointer; padding: 8px 0; }
.exam__back:hover { color: var(--ink); }
.exam__back:disabled { opacity: .3; cursor: default; }

/* 解析中 */
.calc { display: none; padding: 110px 0 130px; text-align: center; }
.calc__t { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.calc__d { font-size: 13px; color: var(--ink-3); min-height: 1.85em; }
.calc__dots { display: inline-flex; gap: 6px; margin-bottom: 26px; }
.calc__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-l); animation: pulse 1.1s infinite; }
.calc__dots i:nth-child(2) { animation-delay: .16s; }
.calc__dots i:nth-child(3) { animation-delay: .32s; }
@keyframes pulse { 0%,100% { opacity: .25; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }

/* ============================================================
   結果（診断書）
   ============================================================ */
.res { display: none; padding: 46px 0 70px; }

.chart {
  border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden;
}
.chart__hd {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 13px 22px; border-bottom: 1px solid var(--line);
  background: var(--tint); font-size: 11px; letter-spacing: .1em; color: var(--ink-3);
}
.chart__hd b { color: var(--ink-2); font-weight: 700; }
.chart__bd { padding: 34px 30px 30px; }
@media (max-width: 560px) { .chart__bd { padding: 26px 20px 24px; } }

.dx__k { font-size: 11px; letter-spacing: .18em; color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.dx__name { font-size: 30px; line-height: 1.4; margin-bottom: 8px; }
.dx__alias { font-size: 14px; color: var(--ink-2); margin-bottom: 26px; }
.dx__alias b { color: var(--ink); }
@media (max-width: 560px) { .dx__name { font-size: 24px; } }

/* 適性メーター */
.meter { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 22px 0; margin-bottom: 26px; }
.meter__row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 12px; }
.meter__k { font-size: 12px; color: var(--ink-2); }
.meter__v { font-size: 38px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.meter__v span { font-size: 15px; font-weight: 400; margin-left: 2px; color: var(--ink-2); }
.meter__track { height: 8px; background: var(--line-2); border-radius: 8px; overflow: hidden; }
.meter__fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-l), var(--accent)); border-radius: 8px; transition: width 1.1s cubic-bezier(.2,.7,.3,1); }
.meter__scale { display: flex; justify-content: space-between; font-size: 10px; color: var(--ink-3); margin-top: 7px; letter-spacing: .04em; }
.meter__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag { font-size: 11px; letter-spacing: .06em; border: 1px solid var(--line); border-radius: 100px; padding: 4px 12px; color: var(--ink-2); background: #fff; }
.tag--sev { border-color: var(--alert); color: var(--alert); background: var(--alert-t); }

/* 所見 */
.finding__k { font-size: 11px; letter-spacing: .18em; color: var(--ink-3); font-weight: 700; margin-bottom: 12px; }
.finding__lead { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.finding p { font-size: 15px; color: var(--ink-2); }
.finding p + p { margin-top: 15px; }
.finding__aw { margin-top: 20px; padding: 15px 18px; background: var(--tint); border: 1px solid var(--line-2); border-radius: var(--r-s); font-size: 13.5px; color: var(--ink-2); }
.finding__watch { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--ink-2); }

/* 処方箋 */
.rx { margin-top: 18px; border: 1px solid var(--accent-l); border-radius: var(--r); overflow: hidden; }
.rx__hd { background: var(--accent-t); border-bottom: 1px solid var(--accent-l); padding: 12px 22px; font-size: 11px; letter-spacing: .16em; color: var(--accent-d); font-weight: 700; }
.rx__bd { padding: 26px 24px; }
.rx__label { font-size: 11px; letter-spacing: .12em; color: var(--ink-3); margin-bottom: 6px; }
.rx__title { font-size: 21px; line-height: 1.5; margin-bottom: 6px; }
.rx__meta { font-size: 12px; color: var(--ink-3); margin-bottom: 16px; }
.rx__dose { font-size: 14px; color: var(--ink-2); border-left: 2px solid var(--accent-l); padding-left: 14px; margin-bottom: 22px; }
.rx__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- シェア ---------- */
.share {
  margin-top: 22px; padding: 30px 26px 26px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--tint); text-align: center;
}
@media (max-width: 560px) { .share { padding: 24px 16px 20px; } }
.share__ttl { font-size: 18px; margin-bottom: 6px; }
.share__lead { font-size: 13px; color: var(--ink-2); margin-bottom: 20px; }
.share__card {
  max-width: 400px; margin: 0 auto 22px;
  border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; background: #fff;
}
.share__card canvas { display: block; width: 100%; height: auto; }
.share__btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 400px; margin: 0 auto; }
.share__btns .btn { width: 100%; font-size: 14px; padding: 13px 14px; min-height: 50px; }
.share__x { background: #000; border-color: #000; }
.share__x:hover { background: #222; border-color: #222; }
.btn--line { background: #06c755; border-color: #06c755; }
.btn--line:hover { background: #05b34c; border-color: #05b34c; }
.share__note { min-height: 1.6em; margin-top: 12px; font-size: 12.5px; color: var(--accent); }

.res__foot { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.res__disc { margin-top: 24px; font-size: 11.5px; color: var(--ink-3); line-height: 1.9; text-align: center; }

/* ---------- 汎用 ---------- */
.is-on { display: block; }
[hidden] { display: none !important; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   作り込みレイヤー（後勝ちで上書き）
   紙・印字・公文書の質感で「本物の医療機関」の密度を出す
   ============================================================ */

::selection { background: var(--accent-t); color: var(--accent-d); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* 方眼紙（カルテ用紙）の下地 */
.recep, .calc, .res {
  background:
    repeating-linear-gradient(0deg,  rgba(46,125,134,.045) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(46,125,134,.045) 0 1px, transparent 1px 24px)
    var(--bg);
}
.exam .qbox { position: relative; }

/* ---------- ボタンの手触り ---------- */
.btn { box-shadow: 0 1px 2px rgba(31,86,92,.14); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(31,86,92,.22); }
.btn:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(31,86,92,.14); }
.btn--quiet { box-shadow: none; }
.btn--quiet:hover { transform: none; box-shadow: none; }

/* ---------- 見出し：後ろに罫線を流す ---------- */
.ttl { display: flex; align-items: center; gap: 16px; }
.ttl::after { content: ""; flex: 1; border-top: 1px solid var(--line-2); }

/* ---------- 受付（2カラム＋診察券） ---------- */
.recep__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .recep__grid { grid-template-columns: 1fr; gap: 34px; } }
.recep__t {
  font-family: var(--serif);
  font-size: 40px; font-weight: 600; letter-spacing: .06em; line-height: 1.4;
  margin-bottom: 14px;
}
@media (max-width: 560px) { .recep__t { font-size: 29px; } }
.recep__d { font-size: 14px; }
.recep__d strong { color: var(--ink); }

/* 受付票 */
.learn { border: 1px solid var(--line); background: #fff; max-width: 560px; margin-bottom: 26px; padding: 0; }
.learn__hd {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--accent);
  background: var(--accent-t); border-bottom: 1px solid var(--accent-l);
  padding: 8px 16px;
}
.learn__list { counter-reset: lr; padding: 6px 16px; }
.learn__list li {
  counter-increment: lr;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px dashed var(--line-2);
  font-size: 14.5px; font-weight: 700;
}
.learn__list li:last-child { border-bottom: 0; }
.learn__list li::before {
  content: counter(lr);
  flex: none; width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--accent); border-radius: 50%;
  font-size: 12px; font-weight: 700; color: var(--accent);
}

/* 診察券 */
.pcard-wrap { max-width: 340px; margin: 0 auto; }
.pcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(31,86,92,.13), 0 2px 6px rgba(31,86,92,.08);
  transform: rotate(-2.5deg);
  overflow: hidden;
  transition: transform .25s ease;
}
.pcard:hover { transform: rotate(0deg); }
.pcard__band {
  display: flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff;
  padding: 12px 18px;
}
.pcard__band svg { width: 24px; height: 24px; flex: none; }
.pcard__band span { font-size: 14px; font-weight: 700; letter-spacing: .06em; line-height: 1.3; }
.pcard__band small { display: block; font-size: 9px; font-weight: 400; letter-spacing: .14em; opacity: .85; }
.pcard__bd { padding: 18px 20px 16px; }
.pcard__label {
  font-family: var(--serif); font-size: 15px; font-weight: 600; letter-spacing: .5em;
  text-align: center; color: var(--ink-2); margin-bottom: 12px;
}
.pcard__no {
  font-size: 22px; font-weight: 700; letter-spacing: .08em;
  font-variant-numeric: tabular-nums; text-align: center;
  border-block: 1px solid var(--line-2); padding: 8px 0; margin-bottom: 12px;
}
.pcard__no b { color: var(--accent-d); }
.pcard__name { font-size: 13px; color: var(--ink-2); margin-bottom: 12px; }
.pcard__name span { display: inline-block; min-width: 88px; text-align: center; border-bottom: 1px solid var(--ink-3); font-weight: 700; color: var(--ink); }
.pcard__meta { display: flex; gap: 18px; font-size: 11px; color: var(--ink-3); }
.pcard__meta div { display: flex; gap: 6px; }
.pcard__meta dd { margin: 0; color: var(--ink-2); }
.pcard__cap { text-align: center; font-size: 11px; color: var(--ink-3); margin-top: 14px; letter-spacing: .08em; }

/* ---------- 診断タイプ一覧：レア度バーとホバー ---------- */
.tp { position: relative; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.tp::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px;
  width: var(--w, 4%); background: linear-gradient(90deg, var(--accent-l), var(--accent));
}
.tp:hover { transform: translateY(-2px); border-color: var(--accent-l); box-shadow: 0 8px 18px rgba(31,86,92,.10); }
.tp__rare {
  float: right; font-size: 9.5px; font-weight: 700; letter-spacing: .08em;
  color: var(--alert); border: 1px solid var(--alert); border-radius: 100px;
  padding: 1px 8px; margin-top: 2px; background: var(--alert-t);
}

/* ---------- 受診者数 ---------- */
.counter { box-shadow: 0 1px 3px rgba(31,86,92,.06); }
.counter__v { font-size: 29px; }

/* ---------- 問診：背景の大きな設問番号 ---------- */
.qbox__ghost {
  position: absolute; top: 6px; right: 12px;
  font-family: var(--serif); font-size: 150px; font-weight: 600; line-height: 1;
  color: var(--accent); opacity: .07; pointer-events: none; user-select: none;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 560px) { .qbox__ghost { font-size: 96px; top: 14px; right: 6px; } }

/* 選択肢の押し心地 */
.opt { transition: border-color .15s, background .15s, transform .12s; }
.opt:active { transform: scale(.995); }

/* ---------- 判定中：心電図 ---------- */
.ekg { width: 240px; margin: 0 auto 26px; display: block; }
.ekg path {
  fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 110 560;
  animation: ekg 1.7s linear infinite;
}
@keyframes ekg { from { stroke-dashoffset: 670; } to { stroke-dashoffset: 0; } }
.calc__dots { display: none; }

/* ---------- 診断書：公文書の紙 ---------- */
.res .chart {
  border: 1px solid var(--ink-3);
  border-radius: 0;
  box-shadow: 0 18px 44px rgba(31,86,92,.12), 0 2px 8px rgba(31,86,92,.06);
  position: relative;
}
.res .chart::before {
  content: ""; position: absolute; inset: 5px;
  border: 1px solid var(--line); pointer-events: none; z-index: 2;
}
.chart__hd { display: block; text-align: center; background: #fff; padding: 26px 20px 16px; border-bottom: 1px solid var(--line); }
.chart__title {
  font-family: var(--serif); font-size: 25px; font-weight: 600; letter-spacing: .5em; text-indent: .5em;
  color: var(--ink); margin-bottom: 6px;
}
.chart__issue { font-size: 12px; color: var(--ink-3); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.chart__bd { position: relative; z-index: 0; }
.chart__bd::before {  /* 透かし */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: center 42% / 300px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='1.5' y='1.5' width='29' height='29' rx='5' fill='none' stroke='%232e7d86' stroke-width='1'/%3E%3Cpath d='M16 8v16M8 16h16' stroke='%232e7d86' stroke-width='1.2'/%3E%3C/svg%3E");
  opacity: .05; pointer-events: none;
}
.dx__name { font-family: var(--serif); letter-spacing: .02em; }

/* 発行元＋朱印＋バーコード */
.chart__foot {
  margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line-2);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
}
.chart__org { font-size: 12px; color: var(--ink-2); line-height: 1.8; }
.chart__org b { font-size: 14px; color: var(--ink); letter-spacing: .06em; }
.chart__issuer { position: relative; text-align: right; padding-right: 58px; }
.seal {
  position: absolute; right: 8px; top: 50%;
  width: 72px; height: 72px; transform: translateY(-56%) rotate(-8deg);
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 2.5px solid var(--alert); border-radius: 50%;
  color: var(--alert); font-family: var(--serif); font-weight: 600;
  font-size: 17px; line-height: 1.3; letter-spacing: .12em; text-indent: .12em;
  opacity: .82; pointer-events: none; user-select: none;
  mix-blend-mode: multiply;
}
.chart__code { display: flex; align-items: flex-end; gap: 0; height: 34px; }
.chart__code i { display: block; background: var(--ink); height: 100%; }
.chart__code i.s0 { width: 1px; margin-right: 2px; }
.chart__code i.s1 { width: 3px; margin-right: 2px; }
@media (max-width: 560px) {
  .chart__foot { flex-direction: column-reverse; align-items: stretch; }
  .chart__code { height: 26px; }
  .chart__issuer { padding-right: 34px; }
}

/* 処方箋にも紙の格 */
.res .rx {
  border-radius: 0;
  border: 1px solid var(--accent-l);
  box-shadow: 0 10px 26px rgba(31,86,92,.09);
  position: relative;
}
.rx__hd { font-family: var(--serif); letter-spacing: .4em; text-indent: .4em; text-align: center; font-size: 14px; }
.rx__bd { position: relative; }
.rx__bd::after {
  content: "Rx"; position: absolute; top: 6px; right: 16px;
  font-family: Georgia, serif; font-style: italic; font-size: 44px;
  color: var(--accent); opacity: .10; pointer-events: none;
}
.rx__title { font-family: var(--serif); }

/* シェア枠 */
.share { box-shadow: inset 0 1px 0 #fff; }
.share__card { box-shadow: 0 10px 26px rgba(31,86,92,.12); }

/* ---------- スクロールで静かに現れる ---------- */
.rv { opacity: 0; transform: translateY(12px); transition: opacity .55s ease, transform .55s ease; }
.rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .pcard { transform: none; }
  .ekg path { animation: none; stroke-dasharray: none; }
}

