/* ==========================================================================
   川田クリニック 訪問診療サイト 共通スタイル
   ブランド: kawataclinic-brand（誠実・地域密着・高齢者配慮）
   ========================================================================== */

:root {
  --navy: #1f4e79;
  --navy-light: #5b8fb9;
  --navy-dark: #163a5a;
  --green: #3da47c;
  --green-dark: #2f8666;
  --warn: #c9462c;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --text: #1a1a1a;
  --muted: #5a6470;
  --border: #d7dde3;
  --radius: 12px;
  --shadow: 0 2px 14px rgba(31, 78, 121, 0.08);
  --shadow-lg: 0 8px 30px rgba(31, 78, 121, 0.13);
  --maxw: 1080px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family:
    "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  line-height: 1.45;
  color: var(--navy);
  font-weight: 700;
}
h3,
h4 {
  font-family: "Noto Sans JP", sans-serif;
}

a {
  color: var(--navy);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a:focus-visible {
  outline: 3px solid var(--navy-light);
  outline-offset: 2px;
  border-radius: 4px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex: none;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 22px;
}
.brand-text {
  line-height: 1.25;
  min-width: 0;
}
.brand-text .name {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--navy);
  white-space: nowrap;
}
.brand-text .sub {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

.header-tel {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.tel-block {
  text-align: right;
  line-height: 1.2;
}
.tel-block .label {
  font-size: 0.7rem;
  color: var(--muted);
}
.tel-block .num {
  font-family: -apple-system, "Helvetica Neue", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.tel-block .num a {
  color: var(--navy);
}
.btn-tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 1rem;
  box-shadow: var(--shadow);
  white-space: nowrap;
}
.btn-tel:hover {
  background: var(--green-dark);
  text-decoration: none;
}

/* primary nav (horizontally scrollable on mobile, no JS) */
.site-nav {
  border-top: 1px solid var(--border);
  background: var(--navy);
}
.nav-inner {
  display: flex;
  max-width: var(--maxw);
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar {
  display: none;
}
.nav-inner a {
  color: #eaf1f8;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 13px 17px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.nav-inner a:hover {
  background: var(--navy-dark);
  text-decoration: none;
  color: #fff;
}
.nav-inner a[aria-current="page"] {
  border-bottom-color: var(--green);
  color: #fff;
  font-weight: 700;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, #eef4fa 0%, #f7fafc 60%, #fff 100%);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 54px 20px 48px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: 2.15rem;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}
.hero h1 .accent {
  color: var(--green-dark);
}
.hero p.lead {
  font-size: 1.1rem;
  color: #2c3540;
  margin-bottom: 26px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-aside {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px;
}
.hero-aside h2 {
  font-size: 1.1rem;
  margin-bottom: 14px;
  color: var(--navy);
}
.info-row {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
}
.info-row:last-child {
  border-bottom: 0;
}
.info-row .k {
  color: var(--muted);
  flex: none;
  width: 84px;
  font-weight: 600;
}
.info-row .v {
  color: var(--text);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  padding: 15px 26px;
  border-radius: 999px;
  font-size: 1.05rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.05s ease;
}
.btn:hover {
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  background: var(--green-dark);
  color: #fff;
}
.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover {
  background: var(--navy-dark);
  color: #fff;
}
.btn-ghost {
  background: #fff;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover {
  background: var(--bg-soft);
}
.btn-lg {
  font-size: 1.15rem;
  padding: 17px 32px;
}

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eaf6f0;
  color: var(--green-dark);
  border: 1px solid #bfe3d2;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
}
.badge::before {
  content: "✓";
  font-weight: 900;
}

/* ---------- Sections ---------- */
section {
  padding: 56px 0;
}
section.soft {
  background: var(--bg-soft);
}
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}
.section-head .eyebrow {
  display: inline-block;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: 1.75rem;
  margin-bottom: 14px;
}
.section-head p {
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- Grid / Cards ---------- */
.grid {
  display: grid;
  gap: 22px;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.card .icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  margin-bottom: 14px;
  background: #eaf1f8;
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: 24px;
}
.card h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
  color: var(--navy);
}
.card p {
  color: #33404c;
  font-size: 0.97rem;
}

/* ---------- Checklist ---------- */
.checklist {
  list-style: none;
  display: grid;
  gap: 12px;
}
.checklist li {
  position: relative;
  padding-left: 36px;
  font-size: 1rem;
  color: #2c3540;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
}

/* ---------- Referrer band ---------- */
.band {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: #fff;
}
.band h2 {
  color: #fff;
}
.band .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}
.band p {
  color: #dbe6f1;
  margin-top: 8px;
}
.band .btn-ghost {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

/* ---------- Steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 18px;
  max-width: 820px;
  margin: 0 auto;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px 22px 78px;
  box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
}
.step h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.step p {
  color: #33404c;
  font-size: 0.97rem;
}

/* ---------- Table ---------- */
.table-wrap {
  overflow-x: auto;
}
table.tbl {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.97rem;
}
table.tbl th,
table.tbl td {
  border: 1px solid var(--border);
  padding: 13px 15px;
  text-align: left;
  vertical-align: top;
}
table.tbl thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}
table.tbl tbody th {
  background: var(--bg-soft);
  color: var(--navy);
  white-space: nowrap;
}

/* ---------- FAQ (details) ---------- */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
details.faq {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
details.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 56px;
  position: relative;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
}
details.faq summary::-webkit-details-marker {
  display: none;
}
details.faq summary::before {
  content: "Q";
  position: absolute;
  left: 18px;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--navy-light);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: "Noto Serif JP", serif;
  font-size: 0.95rem;
}
details.faq summary::after {
  content: "＋";
  position: absolute;
  right: 20px;
  top: 18px;
  color: var(--muted);
  font-weight: 700;
}
details.faq[open] summary::after {
  content: "－";
}
details.faq .ans {
  padding: 0 24px 20px 56px;
  color: #33404c;
  font-size: 0.97rem;
}

/* ---------- Prose ---------- */
.prose {
  max-width: 820px;
  margin: 0 auto;
}
.prose h2 {
  font-size: 1.5rem;
  margin: 36px 0 14px;
}
.prose h3 {
  font-size: 1.18rem;
  margin: 26px 0 10px;
  color: var(--navy);
}
.prose p {
  margin-bottom: 16px;
  color: #2c3540;
}
.prose ul {
  margin: 0 0 16px 1.2em;
}
.prose li {
  margin-bottom: 8px;
}

/* ---------- Note / callout ---------- */
.note {
  background: #fff7f4;
  border: 1px solid #f0cabd;
  border-left: 5px solid var(--warn);
  border-radius: 8px;
  padding: 16px 18px;
  color: #6b3326;
  font-size: 0.95rem;
  margin: 18px 0;
}
.note.info {
  background: #eef4fa;
  border-color: #c4d8ea;
  border-left-color: var(--navy-light);
  color: #284154;
}

/* ---------- CTA section ---------- */
.cta-final {
  text-align: center;
}
.cta-final h2 {
  font-size: 1.7rem;
  margin-bottom: 12px;
}
.cta-final p {
  color: var(--muted);
  margin-bottom: 26px;
}
.cta-final .hero-ctas {
  justify-content: center;
}
.cta-tel-num {
  font-family: -apple-system, "Helvetica Neue", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--navy);
  letter-spacing: 0.02em;
}

/* ---------- Breadcrumb ---------- */
.crumb {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 14px 0 0;
}
.crumb a {
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #cdd9e6;
  padding: 46px 0 26px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.site-footer h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.site-footer .name-lg {
  font-family: "Noto Serif JP", serif;
  font-size: 1.15rem;
  color: #fff;
}
.site-footer a {
  color: #cdd9e6;
}
.site-footer a:hover {
  color: #fff;
}
.foot-links {
  list-style: none;
  display: grid;
  gap: 8px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 32px;
  padding-top: 18px;
  text-align: center;
  font-size: 0.8rem;
  color: #9fb2c6;
}
.footer-tel {
  font-family: -apple-system, sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
}

/* ---------- Skip link ---------- */
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  background: #fff;
  color: var(--navy);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 20px 34px;
  }
  .hero h1 {
    font-size: 1.7rem;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .band .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
@media (max-width: 560px) {
  body {
    font-size: 17px;
  }
  .header-top {
    padding: 8px 14px;
    gap: 8px;
  }
  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
  .brand-text .name {
    font-size: 0.98rem;
  }
  .tel-block {
    display: none;
  }
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  section {
    padding: 40px 0;
  }
  .container {
    padding: 0 16px;
  }
}
