/* ================================================
   〇〇歯科クリニック — 共通スタイル
   カラー/フォントは CSS変数(Tweaksで変更可能)
   ================================================ */
:root {
  --c-primary: #2563d8;
  --c-primary-deep: #1c4fae;
  --c-soft: #d9eafd;
  --c-accent: #f6c644;
  --c-accent-soft: #fdf6e0;
  --c-cream: #fefbf2;
  --outline: #1d2635;
  --ink: #1d2635;
  --muted: #3a434f;
  --line: #b9c5d6;
  --font-body: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--c-cream);
  font-size: 17px;
  line-height: 1.8;
  text-wrap: pretty;
}

img { max-width: 100%; display: block; }
a { color: var(--c-primary); text-decoration: none; }
ul { list-style: none; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------------- Header ---------------- */
.site-header {
  background: #fff;
}
.header-top {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 14px 6px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-mascot { flex: none; width: 56px; height: auto; }
.brand-text {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.brand-name {
  font-size: 30px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.3;
  transform: translateY(3px);
  letter-spacing: 0.06em;
}
.brand-tagline {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-primary);
}
.header-contact {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.header-tel {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 26px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.header-tel svg { width: 24px; height: 24px; fill: var(--ink); }
.header-hours {
  border-left: 2px solid var(--outline);
  padding-left: 24px;
  font-size: 14.5px;
  display: grid;
  gap: 4px;
  white-space: nowrap;
}
.header-hours .hours-row { display: flex; align-items: center; gap: 10px; }
.badge {
  background: var(--outline);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 1px 12px;
  border-radius: 999px;
  flex: none;
}
.badge.badge-outline {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--outline);
}

.site-nav { padding: 10px 0 18px; }
.site-nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.site-nav a {
  display: block;
  padding: 9px 30px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--outline);
  border-radius: 999px;
  box-shadow: 0 2px 0 rgba(29, 38, 53, 0.18);
  transition: background 0.15s, color 0.15s;
}
.site-nav a:hover { background: var(--c-accent); color: var(--ink); }
.site-nav a[aria-current="page"] {
  background: var(--c-primary);
  border-color: var(--c-primary-deep);
  color: #fff;
}

/* ハンバーガーボタン(スマホのみ表示) */
.nav-toggle { display: none; }

/* ---------------- Hero (トップ) ---------------- */
.hero {
  background: var(--c-soft);
  border-block: 2.5px solid var(--outline);
  position: relative;
  overflow: hidden;
}
.hero-deco { position: absolute; inset: 0; pointer-events: none; }
.deco-tooth { position: absolute; opacity: 0.95; }
.deco-tooth.t1 { width: 72px; left: 3%; top: 13%; transform: rotate(-10deg); }
.deco-tooth.t2 { width: 58px; left: 2%; bottom: 9%; transform: rotate(8deg); }
.deco-tooth.t3 { width: 74px; right: 1.5%; top: 9%; transform: rotate(10deg); }
.deco-star {
  position: absolute;
  background: var(--c-accent);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.deco-star.s1 { width: 28px; height: 28px; left: 30%; top: 12%; }
.deco-star.s2 { width: 20px; height: 20px; left: 8.5%; top: 46%; }
.deco-star.s3 { width: 26px; height: 26px; right: 2.5%; bottom: 14%; }
.deco-star.s4 { width: 22px; height: 22px; right: 28%; top: 26%; }
.deco-dot { position: absolute; border-radius: 50%; background: var(--c-primary); }
.deco-dot.d1 { width: 12px; height: 12px; left: 13%; top: 9%; }
.deco-dot.d2 { width: 11px; height: 11px; left: 32%; bottom: 12%; }
.deco-dot.d3 { width: 10px; height: 10px; right: 30.5%; bottom: 24%; }
.deco-dot.d4 { width: 13px; height: 13px; left: calc(50% + 262px); top: 14%; }
.deco-dot.d5 { width: 12px; height: 12px; left: 45%; top: 9%; }
.deco-dot.d6 { width: 9px; height: 9px; left: 24%; top: 34%; }
.deco-dot.white { background: #fff; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(340px, 1.15fr) minmax(280px, 400px) minmax(250px, 1fr);
  align-items: center;
  gap: 36px;
  padding-block: 48px;
  position: relative;
}
.hero-copy h1 {
  font-size: clamp(25px, 2.4vw, 39px);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.55;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow:
    2px 2px 0 #fff, -2px 2px 0 #fff, 2px -2px 0 #fff, -2px -2px 0 #fff,
    3px 0 0 #fff, -3px 0 0 #fff, 0 3px 0 #fff, 0 -3px 0 #fff;
}
.hero-copy p {
  margin-top: 22px;
  font-size: 19px;
  font-weight: 700;
}
.hero-badge-img {
  width: 100%;
  max-width: 430px;
  justify-self: center;
}
.hero-mascot-img {
  max-height: 405px;
  width: auto;
  justify-self: center;
  filter: drop-shadow(0 6px 14px rgba(29, 38, 53, 0.12));
}

/* ---------------- 共通セクション ---------------- */
.section { padding: 40px 0 8px; }
.section:last-of-type { padding-bottom: 60px; }
.sec-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.sec-head::before {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--c-primary);
  transform: rotate(45deg);
  border-radius: 3px;
  flex: none;
}
.sec-head h2 {
  font-size: 28px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 0.05em;
  flex: none;
}
.sec-head::after {
  content: "";
  flex: 1;
  border-top: 3px dotted var(--c-primary);
}

.card {
  background: #fff;
  border: 2px solid var(--outline);
  border-radius: 18px;
  padding: 26px 22px;
  box-shadow: 0 4px 12px rgba(29, 38, 53, 0.08);
}

/* ---------------- 特徴 + 受診の流れ ---------------- */
.features-flow {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.55fr;
  gap: 16px;
  margin-top: 24px;
  padding-bottom: 0;
}
.feature-card { text-align: left; padding: 14px 16px; }
.feature-card .fc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.feature-card .icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-bottom: 0;
}
.feature-card.alt .icon-circle { background: var(--c-accent); }
.feature-card .icon-circle svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-card.alt .icon-circle svg { stroke: var(--ink); }
.feature-card .icon-circle.icon-img,
.feature-card.alt .icon-circle.icon-img { background: transparent; }
.feature-card .icon-circle.icon-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.feature-card h3 {
  font-size: 16.5px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.45;
  margin-bottom: 0;
}
.feature-card h3 br { display: none; }
.feature-card p { font-size: 15px; color: var(--muted); line-height: 1.65; }

.flow-card {
  border-color: var(--outline);
  padding: 14px 18px;
}
.flow-card h3 {
  font-size: 17.5px;
  font-weight: 900;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
}
.flow-card h3::after {
  content: "";
  flex: 1;
  border-top: 3px dotted var(--c-primary);
  border-radius: 2px;
}
.flow-card .flow-sub {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 2px 0 8px;
}
.flow-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 3px;
  align-items: flex-start;
}
.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 62px;
  text-align: center;
}
.flow-step .num {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-size: 13.5px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-step .label {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}
.flow-arrow {
  align-self: flex-start;
  margin-top: 4px;
  color: var(--c-primary);
  font-weight: 900;
  font-size: 13px;
}
.flow-note {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------------- お知らせ ---------------- */
.news-list {
  border: 2px solid var(--outline);
  border-radius: 18px;
  background: #fff;
  padding: 6px 28px;
  box-shadow: 0 4px 12px rgba(29, 38, 53, 0.08);
}
.news-item {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0;
  font-size: 16.5px;
}
.news-item + .news-item { border-top: 1.5px dotted var(--line); }
.news-item .date {
  flex: none;
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
}
.news-item .tag {
  flex: none;
  background: var(--c-soft);
  color: var(--c-primary-deep);
  border: 1.5px solid var(--c-primary);
  font-size: 13px;
  font-weight: 700;
  padding: 1px 12px;
  border-radius: 999px;
}
.news-item .tag.important {
  background: #d64444;
  border-color: #b13232;
  color: #fff;
}

/* ---------------- 診療案内カード ---------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.service-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
  overflow: hidden;
}
.service-card .icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--c-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.service-card.accent-icon .icon-circle { background: var(--c-accent-soft); }
.service-card .icon-circle img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.service-card .icon-circle svg {
  width: 38px;
  height: 38px;
  stroke: var(--c-primary);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card h3 {
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 6px;
}
.service-card p {
  font-size: 15px;
  color: var(--muted);
  flex: 1;
}
.service-card .more {
  display: block;
  margin: 16px -22px 0;
  padding: 10px;
  border-top: 1.5px solid rgba(29, 38, 53, 0.3);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-primary);
  transition: background 0.15s;
}
.service-card .more:hover { background: var(--c-accent-soft); }

/* ---------------- 院内・設備 ---------------- */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
  margin-inline: auto;
  gap: 76px 76px;
}
.facility-item { text-align: center; }
.facility-item image-slot { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.facility-item h3 {
  margin-top: 14px;
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
}
.facility-item p { font-size: 15.5px; color: var(--muted); }

/* ---------------- アクセス・診療時間 ---------------- */
.access-grid {
  display: grid;
  grid-template-columns: 320px 1fr 1.25fr;
  gap: 28px;
  align-items: start;
}
.access-info { display: grid; gap: 14px; font-size: 16.5px; }
.access-info .row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.access-info .row svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 5px;
  stroke: var(--c-primary);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.access-info .tel-big {
  font-size: 22px;
  font-weight: 900;
  color: var(--c-primary);
  white-space: nowrap;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  text-align: center;
  background: #fff;
}
.hours-table th, .hours-table td {
  border: 1.5px solid var(--outline);
  padding: 9px 6px;
}
.hours-table thead th {
  background: var(--c-primary);
  color: #fff;
  font-weight: 700;
}
.hours-table tbody th {
  background: var(--c-soft);
  font-weight: 700;
  white-space: nowrap;
  padding: 9px 14px;
}
.hours-table .ok { color: var(--c-primary); font-weight: 900; }
.hours-table .no { color: #c0392b; font-weight: 900; }
.hours-caption {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
}

/* ---------------- 採用バナー ---------------- */
.recruit-panel {
  background: var(--c-accent-soft);
  border: 2.5px solid var(--c-accent);
  border-radius: 20px;
  padding: 34px 38px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 36px;
  align-items: center;
  box-shadow: 0 4px 12px rgba(29, 38, 53, 0.08);
}
.recruit-panel h2 {
  font-size: 26px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 8px;
}
.recruit-panel .lead { font-size: 16.5px; margin-bottom: 16px; }
.check-list { display: grid; gap: 8px; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16.5px;
  font-weight: 700;
}
.check-list li::before {
  content: "✓";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-primary);
  color: #fff;
  font-size: 16.5px;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 999px;
  transition: background 0.15s;
}
.btn:hover { background: var(--c-primary-deep); }
.btn.btn-ghost {
  background: #fff;
  color: var(--c-primary);
  border: 2px solid var(--c-primary);
}
.btn.btn-ghost:hover { background: var(--c-accent-soft); }
.recruit-panel .btn { margin-top: 20px; }

/* 地図(画像プレースホルダー + Googleマップで見るボタン) */
.map-block { display: block; }
.map-block .map-actions { margin-top: 12px; }
.map-block .btn svg { width: 18px; height: 18px; }

/* ---------------- フッター ---------------- */
.site-footer {
  margin-top: 64px;
  background: var(--c-primary-deep);
  color: #fff;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-block: 44px 36px;
}
.footer-brand .name { font-size: 23px; font-weight: 900; }
.footer-brand .tag { font-size: 14px; opacity: 0.85; margin-top: 4px; }
.footer-brand-row { display: flex; align-items: center; gap: 22px; margin-top: 18px; }
.footer-mascot { width: 72px; height: auto; display: block; }
.footer-tel { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 10px 20px; background: rgba(255,255,255,0.12); border: 1.5px solid rgba(255,255,255,0.45); border-radius: 999px; color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; }
.footer-tel svg { width: 17px; height: 17px; }
.footer-tel:hover { background: rgba(255,255,255,0.22); text-decoration: none; }
.footer-inner h4 {
  font-size: 14.5px;
  font-weight: 700;
  opacity: 0.7;
  margin-bottom: 10px;
  letter-spacing: 0.08em;
}
.footer-inner ul { display: grid; gap: 6px; }
.footer-inner a { color: #fff; font-size: 15.5px; opacity: 0.92; }
.footer-inner a:hover { text-decoration: underline; }
.footer-inner p { font-size: 15.5px; opacity: 0.92; }
.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  font-size: 13.5px;
  padding: 14px 0;
  opacity: 0.7;
}

/* ---------------- 下層ページ共通 ---------------- */
.page-hero {
  background: var(--c-soft);
  border-block: 2.5px solid var(--outline);
  padding: 36px 0;
}
.page-hero .crumb { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.page-hero .crumb a { color: var(--muted); }
.page-hero .crumb a:hover { color: var(--c-primary); }
.page-hero h1 {
  font-size: 33px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-shadow:
    2px 2px 0 #fff, -2px 2px 0 #fff, 2px -2px 0 #fff, -2px -2px 0 #fff,
    3px 0 0 #fff, -3px 0 0 #fff, 0 3px 0 #fff, 0 -3px 0 #fff;
}
.page-body { padding: 48px 0 20px; }
.page-lead { font-size: 17.5px; margin-bottom: 40px; max-width: 820px; }

.sub-head {
  font-size: 23px;
  font-weight: 900;
  color: var(--ink);
  border-bottom: 3px solid var(--c-soft);
  padding-bottom: 8px;
  margin: 44px 0 20px;
  position: relative;
}
.sub-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 88px;
  border-bottom: 3px solid var(--c-accent);
}

/* 縦型ステップ(初めての方へ) */
.step-list { display: grid; gap: 16px; max-width: 860px; }
.step-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border: 2px solid var(--outline);
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 4px 12px rgba(29, 38, 53, 0.08);
}
.step-item .num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-item h3 { font-size: 19px; font-weight: 900; color: var(--ink); }
.step-item p { font-size: 16px; color: var(--muted); margin-top: 2px; }

/* Q&A */
.qa-list { display: grid; gap: 14px; max-width: 860px; }
.qa-item {
  background: #fff;
  border: 2px solid var(--outline);
  border-radius: 14px;
  padding: 18px 24px;
  box-shadow: 0 4px 12px rgba(29, 38, 53, 0.08);
}
.qa-item .q {
  display: flex;
  gap: 12px;
  font-weight: 900;
  color: var(--c-primary);
  font-size: 17.5px;
}
.qa-item .a {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  font-size: 16px;
  color: var(--ink);
}
.qa-item .mark {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14.5px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qa-item .q .mark { background: var(--c-primary); color: #fff; }
.qa-item .a .mark { background: var(--c-accent); color: var(--ink); }

/* 診療案内 詳細 */
.service-detail {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 26px;
  background: #fff;
  border: 2px solid var(--outline);
  border-radius: 18px;
  padding: 30px 32px;
  margin-bottom: 22px;
  scroll-margin-top: 24px;
  box-shadow: 0 4px 12px rgba(29, 38, 53, 0.08);
}
.service-detail .icon-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--c-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-detail .icon-circle img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.service-detail .icon-circle svg {
  width: 48px;
  height: 48px;
  stroke: var(--c-primary);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-detail h3 { font-size: 23px; font-weight: 900; color: var(--ink); margin-bottom: 6px; }
.service-detail p { font-size: 16.5px; }
.service-detail ul {
  margin-top: 12px;
  display: grid;
  gap: 6px;
}
.service-detail ul li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 16px;
  color: var(--muted);
}
.service-detail ul li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
  flex: none;
  transform: translateY(-1px);
}

/* 募集要項テーブル */
.spec-table {
  width: 100%;
  max-width: 860px;
  border-collapse: collapse;
  font-size: 16.5px;
}
.spec-table th, .spec-table td {
  border: 1.5px solid var(--outline);
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  background: #fff;
}
.spec-table th {
  background: var(--c-soft);
  color: var(--ink);
  font-weight: 900;
  width: 180px;
  white-space: nowrap;
}

/* ---------------- レスポンシブ(簡易) ---------------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr 1fr; }
  .hero-copy h1 { white-space: normal; font-size: 36px; }
  .hero-mascot-img { grid-column: 2; grid-row: 2; max-height: 300px; }
  .features-flow { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .facility-grid { grid-template-columns: 1fr; }
  .access-grid { grid-template-columns: 1fr; }
  .recruit-panel { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .header-contact { flex-direction: column; align-items: flex-end; gap: 6px; }
  .header-hours { border: none; padding: 0; }
  .site-nav ul { flex-wrap: wrap; }
}

/* ---------------- スマホ対応:ハンバーガーメニュー(820px以下) ---------------- */
@media (max-width: 820px) {
  .header-top {
    flex-wrap: wrap;
    gap: 10px 14px;
    padding-block: 12px;
    align-items: center;
  }
  .brand { flex: 1; min-width: 0; gap: 10px; }
  .brand-mascot { width: 46px; }
  .brand-name { font-size: 21px !important; letter-spacing: 0.04em; }
  .brand-tagline { font-size: 12px !important; }
  .brand-text { flex-direction: column; align-items: flex-start; gap: 2px; }

  /* ハンバーガーボタン */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    flex: none;
    margin-left: auto;
    padding: 0;
    background: var(--c-primary);
    border: 2px solid var(--c-primary-deep);
    border-radius: 12px;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2.5px;
    margin: 0 auto;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
  }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  /* 連絡先・ナビは通常は隠し、メニュー展開時に表示 */
  .header-contact {
    display: none;
    order: 3;
    width: 100%;
    margin: 4px 0 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 12px;
    border-top: 2px dotted var(--line);
  }
  .header-hours { border: none; padding: 0; white-space: normal; }
  .site-nav { display: none; padding: 12px 0 16px; }
  .site-header.nav-open .header-contact { display: flex; }
  .site-header.nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 8px; }
  .site-nav a { display: block; text-align: center; padding: 12px 16px; font-size: 16px; }

  /* 採用パネルの重ね見出しはスマホでは通常配置に */
  .recruit-copy { position: static !important; font-size: 27px !important; margin-bottom: 12px; text-align: center; order: -1; }
  .recruit-panel { display: flex; flex-direction: column; }

  /* 診療時間の表は横スクロールで崩れ防止 */
  .access-grid { grid-template-columns: 1fr !important; }
  .access-grid > * { min-width: 0; }
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; min-width: 0; }
  .table-scroll .hours-table { min-width: 540px; }
}

/* ---------------- スマホ対応:縦積みレイアウト(640px以下) ---------------- */
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  body { font-size: 15px; line-height: 1.82; }

  /* ヒーロー */
  .hero-deco { display: none; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-block: 30px;
    text-align: center;
    justify-items: center;
  }
  .hero-copy h1 {
    font-size: 21px !important;
    line-height: 1.55 !important;
    white-space: normal !important;
    text-shadow: 1.5px 1.5px 0 #fff, -1.5px 1.5px 0 #fff, 1.5px -1.5px 0 #fff, -1.5px -1.5px 0 #fff;
  }
  .hero-copy h1 br { display: inline !important; }
  .hero-copy p br { display: inline !important; }
  .hero-badge-img { max-width: 232px; grid-row: auto; grid-column: auto; }
  .hero-mascot-img { max-height: 172px; grid-row: auto; grid-column: auto; }
  .hero-copy p { font-size: 15px; margin-top: 12px; }

  /* グリッドを1列に */
  .features-flow { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; gap: 14px; }
  .service-card { padding: 16px 20px; }
  .service-card .icon-circle { width: 50px; height: 50px; margin-bottom: 6px; }
  .service-card .icon-circle img { width: 34px; height: 34px; }
  .service-card .icon-circle svg { width: 26px; height: 26px; }
  .service-card h3 { font-size: 18px; margin-bottom: 4px; }
  .service-card p { font-size: 14.5px; text-align: center; }
  .service-card .more { margin: 10px -20px 0; font-size: 14.5px; }

  /* セクション見出し */
  .section { padding: 30px 0 4px; }
  .sec-head { gap: 10px; margin-bottom: 20px; }
  .sec-head h2 { font-size: 22px; }

  /* お知らせ */
  .news-list { padding: 4px 18px; }
  .news-item { flex-wrap: wrap; gap: 4px 12px; padding: 12px 0; font-size: 15px; }

  /* 採用バナー */
  .recruit-panel { padding: 22px 18px; }
  .recruit-panel h2 { font-size: 19px; }
  .recruit-copy { font-size: 23px !important; }
  .recruit-panel .lead { font-size: 15px; }
  .check-list li { font-size: 15px; }
  .btn { font-size: 15px; padding: 11px 26px; }

  /* 下層ページ */
  .page-hero { padding: 26px 0; }
  .page-hero h1 { font-size: 25px; }
  .page-body { padding: 30px 0 16px; }
  .page-lead { font-size: 15px; margin-bottom: 26px; text-align: center; }
  .sub-head { font-size: 19px; margin: 32px 0 16px; }
  .step-item h3 { font-size: 17px; }
  .step-item p { font-size: 14.5px; }
  .service-detail h3 { font-size: 20px; }
  .service-detail p { font-size: 15px; }
  .service-detail ul li { font-size: 14.5px; }
  .spec-table { font-size: 15px; }

  /* 縦型ステップ */
  .step-item { grid-template-columns: 42px 1fr; gap: 12px; padding: 16px 18px; }
  .step-item .num { width: 40px; height: 40px; font-size: 16px; }

  /* Q&A */
  .qa-item { padding: 16px 18px; }

  /* 診療案内 詳細 */
  .service-detail { grid-template-columns: 1fr; gap: 14px; padding: 22px 20px; text-align: center; }
  .service-detail .icon-circle { margin: 0 auto; }
  .service-detail ul { text-align: left; }
  .service-detail ul li { justify-content: flex-start; }

  /* 募集要項テーブルは縦積み */
  .spec-table, .spec-table tbody, .spec-table tr, .spec-table th, .spec-table td { display: block; width: 100%; }
  .spec-table th { border-bottom: none; padding-bottom: 6px; }
  .spec-table td { padding-top: 6px; }
  .spec-table tr { margin-bottom: 12px; }
}

/* ---------------- 文字折り返しの最適化 ---------------- */
h2, h3 { text-wrap: balance; }
.nobr { display: inline-block; white-space: nowrap; }
p, li, .news-item span, .hours-caption, .facility-item p { text-wrap: pretty; }

/* ---------------- 印刷用 ---------------- */
@media print {
  @page { size: A4 landscape; margin: 10mm; }

  html, body { background: #fff; }

  /* 背景色・ボーダーを印刷に反映 */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* 画面幅前提の指定を用紙幅に合わせる */
  .wrap { max-width: 100% !important; padding: 0 6mm !important; }
  .hero-copy h1 { font-size: 30px !important; white-space: normal !important; }

  /* 固定・スクロール系の要素は印刷しない */
  .pattern-switch,
  .tweaks-root,
  [class*="tweak"] { display: none !important; }

  /* 要素が用紙の境界で分断されないように */
  section, .card, .qa-item, .step-item, .service-detail,
  .facility-card, .access-card, .recruit-panel, table, tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .site-header { position: static !important; }
}

/* フッター:当院の取り組み(控えめリンク) */
.site-footer .footer-sub-link { margin-top: 10px; }
.site-footer .footer-sub-link a { font-size: 14.5px; opacity: 0.92; }
