/* 東京総合クリニック HP — スマホ優先。760px 以上で PC レイアウトに切り替える。 */
:root {
  /* 配色は Claude Design の index.html(Clinical Blue)に合わせている */
  --bg: #fbfcfd;
  --bg-alt: #f2f6fa;
  --ink: #0e1a2b;
  --ink-2: #3a4a5e;
  --sub: #5d6a7c;
  --accent: #2a6fb5;
  --accent-dark: #1e4e80;
  --tint: #e6f0f9;
  --tint-line: #d1dce7;
  --line: #e3ebf2;
  --card-line: #d1dce7;
  --ground: #f2f6fa;
  --green: #5fb39a;
  --warn: #c2410c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "palt";
  line-height: 1.8;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.sec { padding-top: 36px; }
.sec--last { padding-bottom: 48px; }
.sub { color: var(--sub); }
.small { font-size: 12px; }
.note { color: var(--sub); font-size: 12px; margin-top: 12px; }
.lead { max-width: 760px; }
.h2 { font-size: 18px; font-weight: 700; line-height: 1.5; margin-bottom: 16px; }
.h3 { font-size: 15px; font-weight: 700; margin: 24px 0 10px; }
.card { border: 1px solid var(--card-line); border-radius: 8px; background: #fff; }
.num { color: var(--accent); font-weight: 700; }

/* ── ヘッダー ── */
.header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px); }
.header__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-size: 17px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }
.nav { display: none; align-items: center; gap: 28px; font-size: 14px; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--accent); }
.nav .btn { color: #fff; }
.menu { position: relative; }
.menu > summary { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu__panel { position: absolute; right: 0; top: 50px; z-index: 20; width: min(280px, calc(100vw - 40px)); background: #fff; border: 1px solid var(--card-line); border-radius: 8px; padding: 6px 16px; box-shadow: 0 8px 24px rgba(20, 39, 74, 0.12); }
.menu__panel a { display: block; padding: 12px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.menu__panel a:last-child { border-bottom: 0; }

/* ── ボタン ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: #fff; text-decoration: none; padding: 9px 20px; border-radius: 999px; border: 0; font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 4px 14px -6px rgba(42, 111, 181, 0.6); transition: background 0.2s ease; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn--lg { padding: 12px 32px; }
.pc-cta { display: none; margin-top: 20px; }

/* ── ページ上部 ── */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--sub); padding-top: 12px; }
.crumbs a { color: var(--sub); }
/* ファーストビュー: 画面幅いっぱいの写真。 */
.hero-full { position: relative; overflow: hidden; background: var(--bg-alt); border-bottom: 1px solid var(--line); line-height: 0; }
/* 写真には文字が入っている。スマホでは小さくて読めないため、人物側だけを切り出し、文言は下に文字で出す。 */
.hero-full img { width: 100%; height: auto; aspect-ratio: 9 / 10; object-fit: cover; object-position: right center; }
.hero-full--photo .hero-full__copy { line-height: 1.8; padding-top: 28px; padding-bottom: 28px; }
.hero-full--text { line-height: 1.8; background: linear-gradient(180deg, var(--tint), var(--bg-alt)); }
.hero-full__copy { padding-top: 56px; padding-bottom: 56px; }
.hero-full__title { font-size: 26px; font-weight: 500; line-height: 1.5; letter-spacing: 0.02em; }
.hero-full__title span { color: var(--accent); background-image: linear-gradient(transparent 70%, rgba(95, 179, 154, 0.35) 70%); padding: 0 2px; }
.hero-full__lead { margin-top: 14px; color: var(--ink-2); max-width: 520px; }
.hero { padding-top: 28px; padding-bottom: 8px; }
.title { border-bottom: 2px solid var(--accent); padding-bottom: 10px; margin-top: 14px; }
.title__sub { font-size: 12px; color: var(--sub); }
.h1 { font-size: 22px; font-weight: 700; line-height: 1.5; letter-spacing: 0.04em; }
.hero__lead { margin-top: 16px; max-width: 620px; }
.hero__sub { margin-top: 8px; font-size: 13px; color: var(--sub); max-width: 620px; }

/* ── 診療メニュー ── */
.menu-box { margin-top: 24px; background: var(--tint); border-radius: 10px; padding: 16px; }
.menu-box__title { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { padding: 14px 14px 12px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 2px; }
a.tile:hover { border-color: var(--accent); color: var(--ink); }
.tile__name { font-size: 16px; font-weight: 500; display: flex; justify-content: space-between; gap: 8px; }
.tile__name span { color: var(--accent); }
.tile__note { font-size: 12px; color: var(--sub); }
.tile__price { font-size: 12px; margin-top: 6px; }
.tile__price strong { font-size: 16px; color: var(--accent); }
.tile__price small { display: block; font-size: 11px; color: var(--sub); }

/* ── 概要の3行(診察料・お薬代・配送料) ── */
.summary { margin-top: 20px; background: var(--tint); border-radius: 10px; padding: 6px 16px; font-size: 14px; }
.summary > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--tint-line); }
.summary > div:last-child { border-bottom: 0; }
.summary dd { text-align: right; }
.summary strong { font-size: 18px; color: var(--accent); }
.summary small { font-size: 12px; color: var(--sub); }

/* ── 並び ── */
.grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.feature { padding: 16px; display: flex; align-items: center; gap: 16px; line-height: 1.7; }
.feature svg { flex: 0 0 44px; }
.feature strong { color: var(--accent); }
.checks { margin-top: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; max-width: 760px; }
.checks__title { font-weight: 700; font-size: 14px; }
.checks li:not(.checks__title) { display: flex; gap: 8px; align-items: center; }
.checks svg { flex: 0 0 16px; }

/* ── 治療薬 ── */
.drug { padding: 16px; }
.drug__tag { font-size: 12px; font-weight: 700; color: var(--accent); }
.drug__name { font-size: 17px; font-weight: 700; margin: 2px 0 6px; }
.drug__desc { font-size: 14px; }
.drug__side { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--sub); }
.drug__facts { margin-top: 10px; font-size: 13px; }
.drug__facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); }
.drug__facts dt { color: var(--sub); }
.drug__facts dd { text-align: right; }
.notice { margin-top: 16px; padding: 14px 16px; }
.notice__title { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.notice ul { list-style: disc; padding-left: 18px; font-size: 12px; color: var(--sub); display: flex; flex-direction: column; gap: 4px; }

/* ── 料金カード ── */
.price { padding: 14px 16px 6px; }
.price__kind { font-size: 12px; color: var(--sub); }
.price__kind b { color: var(--accent); }
.price__name { font-size: 16px; font-weight: 700; margin: 2px 0 8px; }
.price table { width: 100%; border-collapse: collapse; font-size: 13px; }
.price thead th { font-size: 11px; font-weight: 400; color: var(--sub); padding: 0 0 4px; text-align: right; }
.price thead th:first-child { text-align: left; }
.price tbody tr { border-top: 1px solid var(--line); }
.price tbody th { text-align: left; font-weight: 400; padding: 8px 0; white-space: nowrap; }
.price tbody td { text-align: right; padding: 8px 0; white-space: nowrap; line-height: 1.4; }
.price tbody td strong { font-size: 15px; }
.price tbody td strong.is-best { color: var(--accent); }
.price tbody td small { display: block; font-size: 11px; color: var(--sub); }

/* ── 流れ ── */
.flow { padding: 4px 16px; display: grid; gap: 0 20px; grid-template-columns: 1fr; }
.flow li { padding: 14px 0; display: flex; gap: 12px; align-items: flex-start; }
.flow__num { flex: 0 0 26px; height: 26px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.flow strong { display: block; }
.flow small { font-size: 13px; color: var(--sub); }

/* ── 予約フォーム ── */
.reserve { padding: 8px; overflow: hidden; }
.reserve iframe { width: 100%; min-height: 720px; border: 0; display: block; }
.reserve__fallback { padding: 24px 12px; text-align: center; }
.reserve__fallback p { margin-bottom: 12px; }

/* ── よくある質問 ── */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq__item { padding: 14px 16px; }
.faq__q { font-size: 15px; font-weight: 700; display: flex; gap: 8px; margin-bottom: 4px; }
.faq__q span { color: var(--accent); }
.faq__a { font-size: 14px; padding-left: 20px; }

/* ── 診療時間・概要 ── */
.info { display: grid; gap: 36px 40px; grid-template-columns: 1fr; }
.hours { width: 100%; border-collapse: collapse; font-size: 13px; text-align: center; table-layout: fixed; }
.hours thead tr { background: var(--tint); }
.hours thead th { padding: 8px 0; font-weight: 500; }
.hours thead th:first-child { width: 34%; text-align: left; padding-left: 10px; }
.hours tbody tr { border-bottom: 1px solid var(--line); }
.hours tbody th { padding: 12px 4px 12px 10px; text-align: left; font-weight: 400; white-space: nowrap; }
.hours .on { color: var(--accent); }
.hours .off { color: var(--sub); }
.rows { font-size: 14px; border-top: 1px solid var(--line); }
.rows > div { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rows dt { flex: 0 0 72px; color: var(--sub); }
.rows--wide dt { flex-basis: 104px; }
.rows dd { min-width: 0; }
.rows small { display: block; font-size: 12px; color: var(--sub); }

/* ── 規約ページ本文 ── */
.doc { padding-bottom: 56px; }
.doc h2 { font-size: 16px; font-weight: 700; margin: 28px 0 8px; }
.doc p { font-size: 14px; margin-top: 8px; }
.doc ul { list-style: disc; padding-left: 20px; font-size: 14px; margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }

/* ── フッター ── */
.footer { margin-top: 48px; background: var(--ink); color: rgba(255, 255, 255, 0.75); }
.footer__inner { padding-top: 28px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 16px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 13px; }
.footer nav a { color: rgba(255, 255, 255, 0.85); padding: 6px 0; }
.footer nav a:hover { color: #fff; }
.footer p { font-size: 12px; color: rgba(255, 255, 255, 0.6); }

/* ── スマホ下部の固定ボタン ── */
.sp-bar { position: sticky; bottom: 0; z-index: 10; display: flex; gap: 8px; padding: 10px 12px; background: rgba(255, 255, 255, 0.94); border-top: 1px solid var(--line); }
.sp-bar .btn { border-radius: 10px; box-shadow: none; flex: 1 1 0; min-width: 0; font-size: 14px; line-height: 1.4; padding: 10px 8px; }
.sp-bar--one .btn { font-size: 15px; padding: 12px 8px; }

@media (min-width: 760px) {
  .sec { padding-top: 56px; }
  .h2 { font-size: 22px; margin-bottom: 24px; }
  .h1 { font-size: 30px; }
  .nav { display: flex; }
  .menu { display: none; }
  .sp-bar { display: none; }
  .pc-cta { display: inline-flex; }
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* 写真全体(3:2)を見せる。横長の画面では、ヘッダーを除いた画面の高さまでに収める。 */
  .hero-full img { aspect-ratio: 3 / 2; max-height: calc(100svh - 57px); min-height: 360px; object-position: center; }
  .hero-full--photo .hero-full__copy { display: none; }
  .hero-full__copy { padding-top: 96px; padding-bottom: 96px; }
  .hero-full__title { font-size: 44px; }
}
