/* ===== カスタムプロパティ ===== */
:root {
  --c-green-dark:   #1e5c38;
  --c-green:        #2e7d4f;
  --c-green-mid:    #3d9662;
  --c-green-light:  #72c095;
  --c-green-pale:   #c8e6d4;
  --c-green-ghost:  #e8f5ee;
  --c-green-ultra:  #f0faf4;

  --c-washi:        #faf8f3;
  --c-washi-border: #d4cfc2;

  --c-text:         #1a2a1e;
  --c-text-light:   #2d4438;
  --c-text-muted:   #5a7060;
  --c-white:        #ffffff;

  --c-bg:           #ffffff;
  --c-bg-warm:      #faf8f3;
  --c-bg-green:     #e8f5ee;
  --c-bg-section:   #f2faf5;

  --c-border:       #b0d4bc;
  --c-border-light: #c8e2d0;

  --c-open:   #1a5c30;
  --c-closed: #a82020;

  --f-serif: 'BIZ UDPMincho', 'Noto Serif JP', 'Yu Mincho', serif;
  --f-main:  'BIZ UDPGothic', 'Noto Sans JP', 'Yu Gothic', 'Hiragino Kaku Gothic ProN', sans-serif;

  --fs-base: 1rem;
  --fs-sm:   0.889rem;
  --fs-xs:   0.778rem;
  --fs-lg:   1.111rem;
  --fs-xl:   1.333rem;
  --fs-2xl:  1.556rem;

  --lh-base:  1.85;
  --lh-tight: 1.55;
  --lh-loose: 2.1;

  --max-w:      1100px;
  --header-h:   72px;
  --radius-sm:  4px;
  --radius:     10px;
  --radius-lg:  18px;
  --transition: 0.22s ease;

  --shadow-sm: 0 2px 10px rgba(46,125,79,0.08);
  --shadow:    0 4px 24px rgba(46,125,79,0.12), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 40px rgba(46,125,79,0.16), 0 2px 8px rgba(0,0,0,0.06);

  --font-scale: 1;
}

/* ===== リセット & ベース ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 17px;
}
/* 文字サイズ切替：data-fs 属性で完全に制御
   詳細度 [attr] > クラス なので !important 不要で確実に勝つ */
html[data-fs="small"]  { font-size: 12px !important; }
html[data-fs="medium"] { font-size: 16px !important; }
html[data-fs="large"]  { font-size: 21px !important; }

body {
  font-family: var(--f-main);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--c-green-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
a:hover  { color: var(--c-green); }
a:focus  { outline: 3px solid var(--c-green); outline-offset: 3px; border-radius: 2px; }
a:visited { color: #1a4d7a; }
button:focus { outline: 3px solid var(--c-green); outline-offset: 3px; }
ul, ol { list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 44px;
}

/* ===== 文字サイズ切替 ===== */
.font-size-ctrl {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.font-size-ctrl-label {
  font-size: 0.7rem;
  color: var(--c-text-muted);
  letter-spacing: 0.06em;
  margin-right: 4px;
  white-space: nowrap;
  font-weight: 700;
}
.fs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 32px;
  padding: 0 8px;
  border: 1.5px solid var(--c-border);
  border-radius: 6px;
  background: #fff;
  color: var(--c-text);
  font-family: var(--f-main);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  line-height: 1;
}
.fs-btn:hover     { background: var(--c-green-ghost); border-color: var(--c-green); color: var(--c-green-dark); }
.fs-btn.is-active { background: var(--c-green); border-color: var(--c-green-dark); color: #fff; }
.fs-btn-s { font-size: 0.70rem; }
.fs-btn-m { font-size: 0.80rem; }
.fs-btn-l { font-size: 0.92rem; }

/* ===== サイトヘッダー ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--c-border-light);
  box-shadow: 0 1px 12px rgba(46,125,79,0.07);
  transition: box-shadow var(--transition);
}
.site-header.is-scrolled { box-shadow: 0 2px 20px rgba(46,125,79,0.14); }

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 44px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.logo-link:hover { text-decoration: none; }
.logo-leaf { font-size: 1.4rem; line-height: 1; }
.logo-text { display: flex; flex-direction: column; line-height: 1.3; gap: 2px; }
.logo-sub  { font-size: 0.70rem; color: var(--c-text-muted); letter-spacing: 0.1em; font-weight: 700; }
.logo-main { font-family: var(--f-serif); font-size: 1.18rem; font-weight: 700; color: var(--c-green-dark); letter-spacing: 0.1em; }

.nav-list { display: flex; align-items: center; }
.nav-list a {
  display: block;
  padding: 8px 11px;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-text-light);
  text-decoration: none;
  position: relative;
  transition: color var(--transition);
  white-space: nowrap;
  line-height: var(--lh-tight);
}
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 65%; height: 2px;
  background: var(--c-green);
  border-radius: 2px;
  transition: transform var(--transition);
}
.nav-list a:hover,
.nav-list a.is-active { color: var(--c-green-dark); text-decoration: none; }
.nav-list a:hover::after,
.nav-list a.is-active::after { transform: translateX(-50%) scaleX(1); }
.nav-list a:focus { outline: 3px solid var(--c-green); outline-offset: 2px; border-radius: 2px; }

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  background: none;
  border: 2px solid var(--c-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--c-green-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== ヒーロー ===== */
.pf-hero {
  background: var(--c-bg);
  position: relative;
  overflow: hidden;
  /* 上部の細いグリーンライン */
  border-top: 5px solid var(--c-green);
}


.hero-plant {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.hero-plant--tl {
  top: -10px;
  left: -10px;
  width: 180px;
  opacity: 0.55;
}
.hero-plant--br {
  bottom: -10px;
  right: -10px;
  width: 140px;
  opacity: 0.45;
}

.pf-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 56px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 56px;
}


.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: var(--c-green-ghost);
  border: 1.5px solid var(--c-green-pale);
  border-radius: 32px;
  margin-bottom: 24px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-green-dark);
}
.open-badge-icon { font-size: 1rem; line-height: 1; }
.open-badge-year { font-family: var(--f-serif); }
.open-badge-tag {
  background: var(--c-green);
  color: #fff;
  font-size: var(--fs-xs);
  padding: 2px 10px;
  border-radius: 20px;
  letter-spacing: 0.06em;
}


.hero-catch {
  font-family: var(--f-serif);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.6;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.catch-green {
  color: var(--c-green-dark);
  /* パンフレット参考：マーカーで引いたような強調 */
  background: linear-gradient(transparent 58%, var(--c-green-pale) 58%);
  padding: 0 2px;
}


.hero-sub {
  font-size: var(--fs-lg);
  color: var(--c-green-dark);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: var(--lh-base);
  margin-bottom: 20px;
  padding-left: 14px;
  border-left: 4px solid var(--c-green-light);
}

.hero-body-text {
  font-size: var(--fs-sm);
  color: var(--c-text-light);
  line-height: var(--lh-loose);
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}
br.sp-br { display: none; }   /* SP専用：PC非表示 */
br.pc-br { display: inline; } /* PC専用：デフォルト表示 */


.hero-dept-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}
.dept-tag-pill {
  display: inline-block;
  padding: 5px 14px;
  background: var(--c-green-ghost);
  border: 1.5px solid var(--c-green-pale);
  border-radius: 20px;
  font-size: var(--fs-xs);
  color: var(--c-green-dark);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--c-green);
  color: #ffffff;
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(46,125,79,0.30);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.cta-btn:hover {
  background: var(--c-green-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46,125,79,0.38);
}
.cta-tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #fff;
  border: 2px solid var(--c-green-pale);
  color: var(--c-green-dark);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.06em;
  border-radius: 30px;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
}
.cta-tel:hover {
  background: var(--c-green-ghost);
  border-color: var(--c-green-light);
  color: var(--c-green-dark);
  text-decoration: none;
}


.pf-hero-illust {
  position: relative;
  /* 枠で囲まず、自然に置く */
}

.hero-illust-img {
  width: 100%;
  /* 枠なし・影なし → 白背景に溶け込む */
  border-radius: var(--radius-lg);
  display: block;
  /* ソフトな落ち影だけ */
  filter: drop-shadow(0 8px 28px rgba(46,125,79,0.18));
}

.hero-illust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 6px 16px;
  background: var(--c-green-ghost);
  border: 1px solid var(--c-green-pale);
  border-radius: 20px;
  font-size: var(--fs-xs);
  color: var(--c-green-dark);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.illust-badge-year {
  font-family: var(--f-serif);
  font-size: var(--fs-sm);
  color: var(--c-green);
}
.illust-badge-label {
  color: var(--c-text-muted);
  font-size: var(--fs-xs);
}

.hero-bottom-bar {
  height: 4px;
  background: linear-gradient(90deg,
    var(--c-green-ghost) 0%,
    var(--c-green-pale) 30%,
    var(--c-green-light) 50%,
    var(--c-green-pale) 70%,
    var(--c-green-ghost) 100%
  );
}

/* ===== セクション共通 ===== */
.pf-section { padding: 72px 0; }
.pf-section--warm  { background: var(--c-bg-warm); }
.pf-section--green { background: var(--c-green-ultra); }

.pf-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--c-green-pale);
  position: relative;
}
.pf-section-head::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 80px; height: 2px;
  background: var(--c-green);
  border-radius: 2px;
}
.pf-section-leaf { font-size: 1.3rem; flex-shrink: 0; line-height: 1; }
.pf-section-head h2 {
  font-family: var(--f-serif);
  font-size: clamp(var(--fs-lg), 2.2vw, var(--fs-2xl));
  font-weight: 700;
  color: var(--c-green-dark);
  letter-spacing: 0.14em;
  line-height: var(--lh-tight);
}

.pf-card {
  background: #ffffff;
  border: 1.5px solid var(--c-border-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.pf-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--c-green);
  color: #ffffff;
  font-family: var(--f-serif);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  border-bottom: 2px solid var(--c-green-light);
}

/* ===== お知らせ ===== */
.notices-list {
  max-width: 820px;
  margin: 0 auto;
  background: #ffffff;
  border: 1.5px solid var(--c-border-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.notices-loading {
  text-align: center;
  padding: 44px;
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
  letter-spacing: 0.06em;
  font-weight: 700;
}

.notice-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--c-border-light);
  background: #ffffff;
  transition: background var(--transition);
  color: inherit;
  text-decoration: none;
}
.notice-item:last-child { border-bottom: none; }
.notice-item:hover { background: var(--c-bg-section); }

.notice-item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.notice-item-date {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  white-space: nowrap;
  letter-spacing: 0.04em;
  font-weight: 700;
  flex-shrink: 0;
}
.notice-cat-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.5;
}
.notice-cat-badge.cat-重要     { background: #fce8e8; color: #6b1111; border: 1.5px solid #d4a0a0; }
.notice-cat-badge.cat-休診     { background: #fdf5e0; color: #5a3e00; border: 1.5px solid #d4bb80; }
.notice-cat-badge.cat-お知らせ { background: var(--c-green-ghost); color: var(--c-green-dark); border: 1.5px solid var(--c-border-light); }
.notice-cat-badge.cat-健康情報 { background: #e8f4ec; color: #1a4a28; border: 1.5px solid #a0c8ac; }

.notice-item-title {
  font-size: var(--fs-sm);
  color: var(--c-text);
  line-height: var(--lh-tight);
  font-weight: 700;
}
.notice-item-title .pinned-mark {
  display: inline-block;
  font-size: var(--fs-xs);
  background: #fce8e8;
  color: #6b1111;
  border: 1.5px solid #d4a0a0;
  border-radius: 3px;
  padding: 1px 7px;
  margin-right: 6px;
  font-weight: 700;
  letter-spacing: 0.06em;
  vertical-align: middle;
}
.notices-empty {
  text-align: center;
  padding: 52px 20px;
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.scroll-hint {
  display: none;
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  text-align: right;
  padding: 6px 14px 2px;
  font-weight: 700;
}

/* ===== 院長紹介 ===== */
.doctor-pf-card {
  display: grid;
  grid-template-columns: 190px 1fr 260px;
  grid-template-rows: 1fr;   /* 行を1本だけ・3列すべて同じ高さに */
  gap: 0;
  background: #ffffff;
  border: 1.5px solid var(--c-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.doctor-pf-photo-col {
  background: var(--c-green-ghost);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 18px 24px;
  border-right: 1.5px solid var(--c-border-light);
  text-align: center;
}
.doctor-pf-img {
  width: 150px;
  height: 188px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  border: 3px solid #ffffff;
  box-shadow: var(--shadow);
  display: block;
  margin-bottom: 16px;
}
.doctor-pf-pos {
  font-size: var(--fs-xs);
  color: var(--c-green-mid);
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.doctor-pf-name {
  font-family: var(--f-serif);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-green-dark);
  letter-spacing: 0.1em;
  line-height: var(--lh-tight);
}

.doctor-pf-info-col {
  padding: 28px 24px;
  border-right: 1.5px solid var(--c-border-light);
}

.doctor-label-row {
  margin-bottom: 18px;
}
.doctor-label-row:last-of-type { margin-bottom: 0; }

.doc-label {
  display: inline-block;
  background: var(--c-green-ghost);
  color: var(--c-green-dark);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 4px;
  border: 1.5px solid var(--c-border-light);
  letter-spacing: 0.12em;
  margin-bottom: 7px;
}
.doctor-label-row p {
  font-size: var(--fs-xs);
  color: var(--c-text-light);
  line-height: var(--lh-base);
  letter-spacing: 0.02em;
}

.career-pf-list {
  margin-top: 6px;
}
.career-pf-list li {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 8px;
  font-size: var(--fs-xs);
  color: var(--c-text-light);
  padding: 5px 0;
  border-bottom: 1px solid var(--c-border-light);
  line-height: var(--lh-base);
}
.career-pf-list li:last-child { border-bottom: none; }
.cy {
  color: var(--c-green-mid);
  font-weight: 700;
  white-space: nowrap;
}

.doctor-pf-msg {
  margin-top: 16px;
  font-size: var(--fs-xs);
  color: var(--c-text-light);
  line-height: var(--lh-base);
  padding: 12px 14px;
  background: var(--c-green-ghost);
  border-left: 3px solid var(--c-green-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  letter-spacing: 0.02em;
}


.doctor-pf-clinic-col {
  display: flex;
  flex-direction: column;
  background: var(--c-bg-warm);
  min-width: 0;
  grid-column: 3;
  grid-row: 1;
  /* 行全体に引き伸ばす */
  align-self: stretch;
}
.doctor-clinic-img-wrap {
  position: relative;
  overflow: hidden;
  /* flex:1 で caption 以外の全高を占有 */
  flex: 1 1 0%;
  min-height: 0;           /* flex-childのmin-height:autoを上書き */
}
.doctor-clinic-img {
  /* position:absolute で親を完全に埋める */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}
.doctor-clinic-img-wrap:hover .doctor-clinic-img {
  transform: scale(1.03);
}
.doctor-clinic-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,0.92);
  color: var(--c-green-dark);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  border: 1px solid var(--c-border-light);
}
.doctor-clinic-badge i { color: #e8a020; font-size: 0.8rem; }
.doctor-clinic-caption {
  padding: 10px 14px;
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid var(--c-border-light);
  background: #fff;
  flex-shrink: 0;
}
.doctor-clinic-caption i { color: var(--c-green); font-size: 0.85rem; }

/* ===== 当院の特徴 ===== */
.features-pf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.feature-pf-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #ffffff;
  border: 1.5px solid var(--c-border-light);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-pf-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.feature-pf-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c-green-ghost);
  border: 2px solid var(--c-green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--c-green);
}
.feature-pf-icon i { font-size: 1.25rem; color: var(--c-green); }
.feature-pf-icon svg { display: block; }
.feature-pf-icon--svg {
  background: transparent;
  border: none;
  width: 52px;
  height: 52px;
}

.feature-pf-text h3 {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-green-dark);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  line-height: var(--lh-tight);
}
.feature-pf-text p {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  line-height: var(--lh-base);
}

.tsurezure-pf {
  background: var(--c-washi);
  border: 1.5px solid var(--c-washi-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
}
.tsurezure-pf-head {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--c-green-ghost);
  padding: 12px 18px;
  border-bottom: 1.5px solid var(--c-border-light);
  font-family: var(--f-serif);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-green-dark);
  letter-spacing: 0.1em;
}
.tsurezure-pf > p {
  padding: 18px 22px;
  font-size: var(--fs-sm);
  color: var(--c-text-light);
  line-height: var(--lh-loose);
  letter-spacing: 0.03em;
}

.greeting-pf {
  background: #ffffff;
  border: 1.5px solid var(--c-border-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.greeting-pf-head {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--c-green);
  padding: 12px 20px;
  border-bottom: 2px solid var(--c-green-light);
  font-family: var(--f-serif);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.12em;
}
.greeting-pf-body { padding: 28px 36px; }
.greeting-pf-body p {
  font-size: var(--fs-sm);
  color: var(--c-text-light);
  line-height: var(--lh-loose);
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}
.greeting-pf-body p:last-child { margin-bottom: 0; }
.greeting-close {
  color: var(--c-green-dark) !important;
  border-left: 4px solid var(--c-green-light);
  padding-left: 14px;
}
.greeting-sign {
  text-align: right;
  font-family: var(--f-serif);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--c-green-dark) !important;
  margin-top: 18px !important;
  letter-spacing: 0.1em;
}

/* ===== 診療内容 ===== */
.dept-pf-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.dept-pf-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #ffffff;
  border: 1.5px solid var(--c-border-light);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.dept-pf-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.dept-pf-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(46,125,79,0.22);
  color: #ffffff;
}
.dept-pf-icon i { font-size: 1.2rem; color: #ffffff; }
.dept-pf-icon--svg {
  background: var(--c-green);
  box-shadow: 0 2px 8px rgba(46,125,79,0.22);
  width: 52px;
  height: 52px;
}
.dept-pf-icon--svg svg {
  display: block;
}
.dept-pf-icon--img {
  background: var(--c-green);
  overflow: hidden;
}


.dept-pf-body h3 {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-green-dark);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  line-height: var(--lh-tight);
}
.dept-pf-body p {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  line-height: var(--lh-base);
}

.equipment-pf {
  background: #ffffff;
  border: 1.5px solid var(--c-border-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.equipment-pf-head {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--c-green);
  color: #ffffff;
  padding: 12px 20px;
  font-family: var(--f-serif);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  border-bottom: 2px solid var(--c-green-light);
}
.equipment-pf-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 44px;
  padding: 18px 22px;
}
.equipment-pf-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--c-text-light);
  font-weight: 700;
  letter-spacing: 0.03em;
}
.equipment-pf-list li i { color: var(--c-green); font-size: 0.85rem; }

/* ===== 診療時間 ===== */
.hours-pf-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
}

.hours-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.hours-pf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.hours-pf-table th,
.hours-pf-table td {
  padding: 11px 8px;
  text-align: center;
  border: 1px solid var(--c-border-light);
  line-height: var(--lh-tight);
}
.hours-pf-table thead th {
  background: var(--c-green);
  color: rgba(255,255,255,0.95);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
}
.hours-pf-table thead th:first-child { background: var(--c-green-dark); }
.hours-pf-table tbody th {
  background: var(--c-green-ghost);
  font-weight: 700;
  color: var(--c-green-dark);
  font-size: var(--fs-xs);
  text-align: left;
  padding-left: 12px;
  white-space: nowrap;
}
.hours-pf-table tbody th small {
  font-size: 0.7rem;
  color: var(--c-text-muted);
  display: block;
  font-weight: 400;
}
.hours-pf-table td.o { color: var(--c-open);   background: #edf8f1; font-weight: 700; }
.hours-pf-table td.x { color: var(--c-closed); background: #fef4f4; }

.hours-note {
  padding: 10px 18px;
  background: #fdfaf0;
  border-top: 1px solid var(--c-border-light);
  font-size: var(--fs-xs);
  color: #5a4500;
  font-weight: 700;
}

.hours-sub { border-top: 1px solid var(--c-border-light); }
.hours-sub-row {
  padding: 12px 18px;
  border-bottom: 1px solid var(--c-border-light);
  font-size: var(--fs-xs);
}
.hours-sub-row:last-child { border-bottom: none; }
.hours-sub-lbl {
  display: inline-block;
  background: var(--c-green-ghost);
  color: var(--c-green-dark);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 4px;
  border: 1.5px solid var(--c-border-light);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.hours-sub-row p {
  font-size: var(--fs-xs);
  color: var(--c-text-light);
  line-height: var(--lh-base);
  font-weight: 700;
  word-break: break-all;
  overflow-wrap: break-word;
  white-space: normal;
}

.hours-pf-side { display: flex; flex-direction: column; gap: 16px; }

.hours-contact-card { border-top: 4px solid var(--c-green); flex-shrink: 0; }
.hours-tel-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
}
.hours-tel-row > i {
  font-size: 1.3rem;
  color: var(--c-green);
  margin-top: 4px;
  flex-shrink: 0;
}
.hours-tel-lbl {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.hours-tel-num {
  display: block;
  font-size: 1.2rem;       /* 1.55rem→1.2rem に縮小して1行に収める */
  font-weight: 700;
  color: var(--c-green-dark);
  letter-spacing: 0.03em;  /* 文字間隔も少し詰める */
  text-decoration: none;
  line-height: 1.3;
  white-space: nowrap;     /* 折り返し禁止 */
}
.hours-tel-num:hover { color: var(--c-green); text-decoration: underline; }
.hours-fax {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  font-weight: 700;
  margin-top: 2px;
}

.closed-list li,
.visit-list li {
  font-size: var(--fs-xs);
  color: var(--c-text-light);
  font-weight: 700;
  padding: 10px 18px;      /* 上下余白を少し増やして読みやすく */
  border-bottom: 1px solid var(--c-border-light);
  letter-spacing: 0.02em;
  line-height: var(--lh-base);
}
.closed-list li:last-child,
.visit-list li:last-child { border-bottom: none; }
.visit-list li { display: flex; align-items: center; gap: 10px; }
.visit-list li i { color: var(--c-green); font-size: 0.9rem; }

/* ===== アクセス ===== */
.access-pf-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 44px;
  align-items: start;
}

.access-pf-dl {
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--c-border-light);
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}
.access-pf-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  border-bottom: 1px solid var(--c-border-light);
  font-size: var(--fs-xs);
}
.access-pf-row:last-child { border-bottom: none; }
.access-pf-row dt {
  background: var(--c-green-ghost);
  padding: 12px 10px;
  font-weight: 700;
  color: var(--c-green-dark);
  font-size: var(--fs-xs);
  display: flex;
  align-items: center;
  gap: 6px;
  border-right: 1px solid var(--c-border-light);
  white-space: nowrap;  /* ラベルを常に1行に固定 */
}
.access-pf-row dt i { font-size: 0.85rem; }
.access-pf-row dd {
  padding: 12px 14px;
  color: var(--c-text);
  font-weight: 700;
  line-height: var(--lh-base);
  letter-spacing: 0.02em;
}
.access-pf-row dd a { color: var(--c-green-dark); font-weight: 700; }

.access-pf-map iframe {
  width: 100%;
  height: 380px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: block;
}

/* ===== フッター ===== */
.pf-footer {
  background: var(--c-green-dark);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 0;
  position: relative;
}
.pf-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    transparent,
    var(--c-green-light) 25%,
    rgba(255,255,255,0.5) 50%,
    var(--c-green-light) 75%,
    transparent
  );
}

.pf-footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 40px;
  align-items: start;
  padding-bottom: 44px;
}
.pf-footer-logo { display: flex; align-items: center; gap: 10px; }
.pf-footer-leaf-deco { font-size: 1.4rem; opacity: 0.55; }
.pf-footer-corp { font-size: 0.68rem; color: rgba(255,255,255,0.45); letter-spacing: 0.14em; font-weight: 700; }
.pf-footer-name { font-family: var(--f-serif); font-size: 1.15rem; font-weight: 700; color: rgba(255,255,255,0.92); letter-spacing: 0.12em; }

.pf-footer-info {
  font-size: var(--fs-xs);
  line-height: var(--lh-base);
  color: rgba(255,255,255,0.60);
  font-weight: 700;
}
.pf-footer-info p { margin-bottom: 3px; }

.pf-footer-tel-num {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(255,255,255,0.90);
  letter-spacing: 0.05em;
}
.pf-footer-tel-num i { font-size: 0.9rem; color: var(--c-green-light); }
.pf-footer-tel-num a { color: rgba(255,255,255,0.90); text-decoration: none; }
.pf-footer-tel-num a:hover { color: #c8f0d8; text-decoration: underline; }
.pf-footer-fax { font-size: var(--fs-xs); color: rgba(255,255,255,0.50); font-weight: 700; margin-top: 4px; }

.pf-footer-nav ul { display: flex; flex-direction: column; gap: 6px; }
.pf-footer-nav a {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em;
  transition: color var(--transition);
  text-decoration: none;
  font-weight: 700;
}
.pf-footer-nav a:hover { color: rgba(255,255,255,0.90); text-decoration: underline; }

.pf-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding: 16px 44px;
  text-align: center;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.1em;
  font-weight: 700;
}

/* ===== ページトップボタン ===== */
.page-top {
  position: fixed;
  bottom: 26px; right: 22px;
  width: 50px; height: 50px;
  background: var(--c-green);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  z-index: 999;
  font-size: 1rem;
  box-shadow: var(--shadow);
}
.page-top.is-visible { opacity: 1; transform: translateY(0); }
.page-top:hover { background: var(--c-green-dark); }

.pf-section + .pf-section { border-top: 1.5px solid var(--c-border-light); }

/* ===== スマホナビゲーション ===== */
@media (max-width: 768px) {
  .global-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(255,255,255,0.99);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 18px 20px;
    border-bottom: 2px solid var(--c-border-light);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
  }
  .global-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
}

/* ===== レスポンシブ：タブレット（〜1024px） ===== */
@media (max-width: 1024px) {
  .container    { padding: 0 28px; }
  .header-inner { padding: 0 28px; }

  .pf-hero-inner {
    grid-template-columns: 1fr 380px;
    gap: 36px;
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .doctor-pf-card {
    grid-template-columns: 160px 1fr;
    grid-template-rows: auto auto;
  }
  .doctor-pf-clinic-col {
    grid-column: 1 / -1;
    grid-row: auto;
    align-self: auto;
    border-top: 1.5px solid var(--c-border-light);
    min-height: 0;
  }
  .doctor-clinic-img-wrap {
    min-height: 220px;
  }
  .doctor-clinic-img {
    height: 220px;
    min-height: 220px;
  }

  .hours-pf-layout  { grid-template-columns: 1fr 240px; }
  .access-pf-layout { grid-template-columns: 1fr; gap: 28px; }
  .pf-footer-inner  { grid-template-columns: 1fr 1fr; }

}

/* ===== レスポンシブ：スマートフォン（〜768px） ===== */
@media (max-width: 768px) {
  :root { --header-h: 62px; }
  /* html font-size は JS が制御するためここでは指定しない */

  .pf-section   { padding: 52px 0; }
  .container    { padding: 0 18px; }
  .header-inner { padding: 0 16px; }

  .logo-leaf { font-size: 1.25rem; }
  .logo-sub  { font-size: 0.68rem; }
  .logo-main { font-size: 1.05rem; }
  .nav-toggle { display: flex; }
  .nav-list { flex-direction: column; }
  .nav-list a {
    font-size: var(--fs-base);
    padding: 13px 14px;
    border-bottom: 1px solid var(--c-border-light);
    color: var(--c-text);
  }
  .nav-list a::after { display: none; }
  .nav-list li:last-child a { border-bottom: none; }

  .font-size-ctrl { gap: 4px; }
  .fs-btn { min-width: 32px; height: 30px; }

  /* ヒーロー */
  .pf-hero-inner {
    grid-template-columns: 1fr;
    padding-top: 32px;
    padding-bottom: 32px;
    gap: 28px;
  }
  .hero-catch     { font-size: clamp(1.5rem, 6vw, 2rem); }
  .hero-sub       { font-size: var(--fs-sm); }
  .hero-cta       { flex-direction: column; gap: 10px; }


  .cta-btn, .cta-tel { width: 100%; justify-content: center; }
  .hero-plant--tl { width: 110px; }
  .hero-plant--br { width: 90px; }

  /* セクション見出し */
  .pf-section-head  { margin-bottom: 28px; }
  .pf-section-head h2 { font-size: var(--fs-lg); }

  /* お知らせ */
  .notice-item { padding: 12px 14px; }

  /* 院長カード */
  .doctor-pf-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .doctor-pf-photo-col {
    flex-direction: row;
    gap: 18px;
    border-right: none;
    border-bottom: 1.5px solid var(--c-border-light);
    padding: 22px 18px;
    text-align: left;
    align-items: center;
  }
  .doctor-pf-img { width: 100px; height: 126px; margin-bottom: 0; flex-shrink: 0; }
  .doctor-pf-info-col { border-right: none; border-bottom: 1.5px solid var(--c-border-light); padding: 20px 18px; }
  .doctor-pf-clinic-col {
    grid-column: 1;
    grid-row: auto;
    align-self: auto;
    border-top: 1.5px solid var(--c-border-light);
    width: 100%;
    overflow: hidden;
    min-height: 0;
  }
  .doctor-clinic-img-wrap {
    width: 100%;
    min-height: 200px;
    flex: 0 0 auto;
  }
  .doctor-clinic-img {
    width: 100%;
    height: 200px;
    min-height: 200px;
  }

  /* 特徴 */
  .features-pf-grid { grid-template-columns: 1fr; gap: 12px; }

  /* 診療内容 */
  .dept-pf-list { grid-template-columns: 1fr; gap: 12px; }

  /* 診療時間 */
  .hours-pf-layout { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .hours-pf-table  { min-width: 340px; }  /* 7列＋行見出し列の最低幅 */
  /* スマホではセルパディングを詰めてテーブル全体幅を圧縮 */
  .hours-pf-table th,
  .hours-pf-table td { padding: 9px 5px; }
  .hours-pf-table tbody th { padding-left: 8px; font-size: 0.72rem; }
  .hours-pf-table thead th { font-size: 0.7rem; letter-spacing: 0.02em; }
  .scroll-hint     { display: block; }
  .hours-table-scroll { -webkit-overflow-scrolling: touch; overflow-x: auto; }
  .hours-sub-row   { padding: 12px 14px; }
  .hours-sub-row p { word-break: break-all; overflow-wrap: break-word; white-space: normal; }
  .pf-card         { overflow: hidden; max-width: 100%; }
  /* 電話番号：スマホでは折り返し許可・フォント調整 */
  .hours-tel-num   { font-size: 1.35rem; white-space: normal; letter-spacing: 0.02em; }

  /* アクセス */
  .access-pf-layout { grid-template-columns: 1fr; gap: 20px; }
  .access-pf-row    { grid-template-columns: 92px 1fr; }
  .access-pf-map iframe { height: 260px; }

  /* フッター */
  .pf-footer        { padding: 40px 0 0; }
  .pf-footer-inner  { grid-template-columns: 1fr; gap: 22px; padding-bottom: 32px; }
  .pf-footer-nav ul { flex-direction: row; flex-wrap: wrap; gap: 5px 14px; }
  .pf-footer-bottom { padding: 14px 18px; }

  .page-top { width: 44px; height: 44px; bottom: 16px; right: 12px; }
}

/* ===== レスポンシブ：小型スマートフォン（〜480px） ===== */
@media (max-width: 480px) {
  :root { --header-h: 56px; }
  br.sp-br { display: inline; }
  br.pc-br { display: none; }
  /* html font-size は JS が制御するためここでは指定しない */

  .container    { padding: 0 14px; }
  .header-inner { padding: 0 12px; }
  .hero-catch   { font-size: 1.45rem; }
  .career-pf-list li { grid-template-columns: 60px 1fr; }
  .hours-pf-table    { min-width: 320px; }
  .hours-sub-row   { padding: 10px 12px; }
  .hours-sub-row p { font-size: 0.82rem; word-break: break-all; overflow-wrap: break-word; }
  .access-pf-row     { grid-template-columns: 92px 1fr; }
  .access-pf-map iframe { height: 230px; }
  .fs-btn { min-width: 28px; height: 28px; padding: 0 5px; }
}

/* ==============================================
   理事長・院長 紹介カード（写真なし）
   ============================================== */
.family-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}

.family-intro-card {
  background: #fff;
  border: 1.5px solid var(--c-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.family-intro-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px 14px;
  background: var(--c-green-ghost);
  border-bottom: 1.5px solid var(--c-border-light);
}

.family-intro-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c-green-light);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.family-intro-icon--green {
  background: var(--c-green);
}

.family-intro-role {
  font-size: var(--fs-xs);
  color: var(--c-green-mid);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.family-intro-name {
  font-family: var(--f-serif);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-green-dark);
  letter-spacing: 0.08em;
}

.family-intro-body {
  padding: 18px 22px 20px;
}

.family-intro-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.family-intro-row .doc-label {
  flex-shrink: 0;
}

.family-intro-row p {
  font-size: var(--fs-sm);
  color: var(--c-text);
  line-height: var(--lh-tight);
  padding-top: 2px;
}

.family-intro-msg {
  font-size: var(--fs-sm);
  color: var(--c-text-light);
  line-height: var(--lh-base);
  background: var(--c-green-ghost);
  border-left: 3px solid var(--c-green-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 10px 14px;
  margin-top: 12px;
}

/* クリニックリフォーム通知 */
.clinic-reform-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fff8e8;
  border-top: 1.5px solid #f0d080;
  font-size: var(--fs-xs);
  color: #8a6500;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.clinic-reform-notice i {
  color: #e8a020;
  font-size: 0.95rem;
}

/* レスポンシブ：スマートフォン */
@media (max-width: 768px) {
  .family-intro-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .family-intro-header { padding: 14px 16px 12px; }
  .family-intro-body   { padding: 14px 16px 16px; }
  .family-intro-icon   { width: 44px; height: 44px; font-size: 1.1rem; }
}
