@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+Antique:wght@400;500;700&family=Montserrat:wght@400;500;600&family=Josefin+Sans:wght@600&family=Cinzel&display=swap');
:root {
  /* ============================================================
     仙台青葉クリニック デザイントークン（Figma準拠・2026-07）
     白ベース × 紺(#004294) × 金(#CBB583)、明朝系（Zen Old Mincho / Noto Serif JP）
     ============================================================ */
  --bg-base: #ffffff;
  --bg-paper: #eef2f7;   /* 薄いブルーグレー（セクション背景） */
  --bg-warm: #f0f0f0;    /* フッター等の薄グレー（Figma #F0F0F0） */
  --ink: #1a1a1a;
  --text-main: #333f52;
  --text-sub: #55637a;
  --text-muted: #8b97a8;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: rgba(255, 255, 255, 0.82);
  --navy: #004294;       /* プライマリ（Figma実測） */
  --navy-dark: #002f6b;
  --navy-pale: #e8eef7;
  --gold: #cbb583;       /* アクセント金（Figma実測 #CBB583） */
  --gold-light: #ddcda2;
  --vermilion: #b3343d;
  /* ボタン共通カラートークン（⑫）。既定は紺系。ダッシュボード「サイト基本設定」から上書き注入できる。
     塗りボタン=bg/fg/bg-hover、枠線ボタン=outline-fg（枠線＆文字色、hoverでbgが塗られる）。 */
  --fc-btn-bg: var(--navy);
  --fc-btn-fg: #ffffff;
  --fc-btn-bg-hover: var(--navy-dark);
  --fc-btn-fg-hover: #ffffff;
  --fc-btn-border: var(--navy);
  --fc-btn-outline-fg: var(--navy);
  --line: #ced6df;       /* 区切り線（Figma実測 #CED6DF） */
  --line-dark: rgba(0, 48, 107, 0.16);
  --shadow-base: 0 14px 40px rgba(16, 44, 84, 0.10);
  --font-serif: "Zen Old Mincho", "Noto Serif JP", "Yu Mincho", serif;
  --font-sans: "Noto Serif JP", "Yu Mincho", serif; /* 本文も明朝（Figma準拠）。トークン名は互換のため維持 */
  --font-en: "Zen Old Mincho", "Times New Roman", serif;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.8;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  writing-mode: horizontal-tb;
  overflow-wrap: break-word;
}
body::before { display: none; }
/* 固定ヘッダー分だけ本文を下げる（ヒーロー等がヘッダーに潜り込まないように） */
body { padding-top: 78px; }
@media (max-width: 992px) { body { padding-top: 64px; } }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s ease, background .25s ease, border-color .25s ease; }
a:hover { color: var(--navy); }
button { font: inherit; }

.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.fade-up.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }

.section-header, .menu-section-header, .slf-header, .course-list-header, .news-section-header, .job-section-header, .contact-section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2, .menu-main-title, .slf-main-title, .course-list-title, .news-main-title, .job-main-title, .contact-main-title {
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  color: var(--navy);
  letter-spacing: .12em;
  font-weight: 600;
}
.section-header p, .menu-sub-text, .slf-sub-text, .course-list-desc, .news-sub-text, .job-sub-text, .contact-sub-text {
  margin-top: 14px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 2;
}

.global-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  min-height: 78px;
  padding: 12px 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-logo {
  font-family: var(--font-serif);
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .1em;
  white-space: nowrap;
}
.header-logo img { max-height: 46px; width: auto; object-fit: contain; }
.desktop-nav { display: flex; justify-content: flex-end; align-items: center; }
.desktop-nav > a, .desktop-nav .nav-has-dropdown { padding: 0 16px; border-left: 1px solid var(--line); }
.desktop-nav > a:first-child, .desktop-nav .nav-has-dropdown:first-child { border-left: none; }
.desktop-nav a {
  color: var(--text-main);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .06em;
  position: relative;
  white-space: nowrap;
  text-align: center;
  display: inline-block;
}
.desktop-nav .nav-jp { display: block; line-height: 1.3; }
.desktop-nav .nav-en {
  display: block;
  font-family: var(--font-en);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: .16em;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.2;
}
.desktop-nav .nav-caret { font-size: 9px; color: var(--text-muted); vertical-align: 1px; }
.desktop-nav a:hover .nav-jp, .desktop-nav a.active .nav-jp { color: var(--navy); }
/* 診療案内ドロップダウン */
.nav-has-dropdown { position: relative; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 210px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 2px solid var(--navy);
  box-shadow: 0 14px 34px rgba(16, 44, 84, .14);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  z-index: 1200;
}
.nav-has-dropdown::after { /* hover の橋（ボタンとパネルの隙間で hover が切れないように） */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 16px;
}
.nav-has-dropdown:hover .nav-dropdown, .nav-has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 11px 20px;
  font-size: 13px;
  text-align: left;
  color: var(--text-main);
  border-bottom: 1px solid rgba(206, 214, 223, .5);
}
.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a:hover, .nav-dropdown a.active { background: var(--navy-pale); color: var(--navy); }
/* Figma MV_2 準拠の2階層ドロップダウン（親=ロゴマーク＋濃色／子=「─」＋グレー） */
.nav-dropdown .nav-dd-main {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px 8px;
  font-family: var(--font-serif);
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--text-main);
  border-bottom: none;
}
.nav-dd-mark { width: 12px; height: 15px; object-fit: cover; object-position: center; flex: 0 0 auto; }
.nav-dropdown .nav-dd-sub {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 18px 4px 22px;
  font-size: 12px; letter-spacing: 0.06em;
  color: var(--text-sub);
  border-bottom: none;
}
.nav-dd-dash { display: inline-block; width: 10px; height: 1px; background: #9aa4b2; flex: 0 0 auto; }
.nav-dropdown .nav-dd-sub:last-child, .nav-dropdown .nav-dd-main:last-child { padding-bottom: 10px; }
.header-btns { display: flex; align-items: center; gap: 10px; }
/* ヘッダー/フッター 3ボタンは高さ44pxで統一（box-sizing:border-box 前提で border 込み44px） */
.btn-header-tel {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  background: var(--navy);
  color: #ffffff;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .04em;
  padding: 0 16px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
  border: 1px solid var(--navy);
}
.btn-header-tel:hover { background: var(--navy-dark); color: #ffffff; }
.btn-header-contact {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  background: #3d6cb3;
  color: #ffffff;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: .04em;
  padding: 0 16px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
  border: 1px solid #3d6cb3;
}
.btn-header-contact:hover { background: var(--navy); border-color: var(--navy); color: #ffffff; }
.btn-header-insta {
  /* Figma Frame180: 背景 #C0CEDF ＋紺アイコン。高さは他ボタンと揃える（44px） */
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 2px;
  color: var(--navy);
  font-size: 19px;
  background: #c0cedf;
}
.btn-header-insta img { width: 24px; height: 24px; object-fit: contain; }
.btn-header-insta:hover { background: #aebfd3; color: var(--navy); }

/* 固定ヘッダー分のアンカースクロール余白（#access 等） */
[id] { scroll-margin-top: 96px; }
.btn-header-reserve, .course-list-reserve, .slf-reserve-btn, .btn-menu-more, .btn-recruit-link, .btn-job-apply, .btn-submit-contact, .btn-nab-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 4px;
  border: 1px solid var(--fc-btn-border);
  background: var(--fc-btn-bg);
  color: var(--fc-btn-fg);
  font-weight: 800;
  padding: 12px 22px;
  cursor: pointer;
}
.btn-header-reserve:hover, .course-list-reserve:hover, .slf-reserve-btn:hover, .btn-menu-more:hover, .btn-recruit-link:hover, .btn-job-apply:hover, .btn-submit-contact:hover, .btn-nab-back:hover {
  background: var(--fc-btn-bg-hover);
  border-color: var(--fc-btn-bg-hover);
  color: var(--fc-btn-fg-hover);
}
.menu-trigger {
  /* Figma Frame71: 紺塗り＋白線 */
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: none;
  background: var(--navy);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 2px;
  font-size: 18px;
}
/* SPメニュー（Figma sp_menu 準拠） */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 64px 20px 40px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.mobile-nav-overlay.active { opacity: 1; visibility: visible; }
.sp-menu-close {
  position: absolute; top: 14px; right: 14px;
  width: 44px; height: 44px; border: none; border-radius: 4px;
  background: var(--navy); color: #fff; font-size: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1; cursor: pointer;
}
.sp-menu-list { width: 100%; max-width: 340px; display: flex; flex-direction: column; }
.sp-menu-item { border-bottom: 1px solid rgba(0, 66, 148, .16); }
.sp-menu-item:last-child { border-bottom: none; }
.sp-menu-link {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 100%; padding: 16px 8px 14px;
  background: none; border: none; cursor: pointer; text-decoration: none;
}
.sp-menu-jp { font-family: var(--font-serif); font-size: 16px; color: var(--text-main); letter-spacing: .22em; text-indent: .22em; }
.sp-menu-en { font-family: var(--font-en, var(--font-serif)); font-size: 10px; color: var(--navy); letter-spacing: .3em; text-indent: .3em; opacity: .75; }
.sp-menu-link:hover .sp-menu-jp { color: var(--navy); }
.sp-menu-caret { font-size: 11px; color: var(--navy); transition: transform .2s; vertical-align: 1px; }
.sp-menu-open .sp-menu-caret { transform: rotate(180deg); }
/* 診療案内の開閉カード（白＋影・PCドロップダウンと同じ2階層） */
.sp-menu-children {
  margin: 2px auto 16px; padding: 12px 18px 14px;
  width: 88%; background: #fff; border-radius: 4px;
  box-shadow: 0 6px 24px rgba(16, 44, 84, .18);
  text-align: left;
}
.sp-menu-child {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 2px 7px;
  font-family: var(--font-serif); font-size: 14px; font-weight: 600;
  letter-spacing: .08em; color: var(--text-main); text-decoration: none;
}
.sp-menu-sub {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 2px 4px 6px;
  font-size: 12.5px; letter-spacing: .06em; color: var(--text-sub); text-decoration: none;
}
.sp-menu-child:hover, .sp-menu-sub:hover { color: var(--navy); }

/* MV: Figma準拠（1440×720 の事前合成コラージュ画像・オーバーレイ焼き込み済み） */
.hero-wrapper { width: 100%; height: min(50vw, 720px); min-height: 480px; position: relative; overflow: hidden; background: #10233f; }
.hero-img-window, .hero-img-window img, .hero-img-window video { width: 100%; height: 100%; object-fit: cover; }
.hero-wrapper::after {
  content: "";
  display: none; /* 画像側にオーバーレイ焼き込み済みのためグラデーションは使わない */
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16,23,24,.76), rgba(16,23,24,.2) 55%, rgba(16,23,24,.7));
  pointer-events: none;
}

/* 下層ページ共通ヒーロー（Figma実測 Rectangle1/2 準拠: 左720＝紺ベタ #004294＋白タイトル /
   右720＝写真。グラデーションではなく50:50のくっきり2分割）。
   写真は wrapper 全体ではなく「右半分の枠(.ph-photo)」に cover 配置する。全体に敷くと
   1440px基準の cover になって切り取り位置がFigma(720px枠のcover)とズレるため。 */
.page-hero-wrapper {
  position: relative;
  min-height: 0;
  padding: 92px 20px 88px;
  text-align: left;
  color: #ffffff;
  background-color: #004294;
  overflow: hidden;
}
/* 右半分の写真枠。この枠(≒720px)を基準に cover するのでFigmaと同じ切り取りになる。 */
.ph-photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}
.ph-container { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; }
.ph-title { font-family: var(--font-serif); font-size: clamp(1.6rem, 3vw, 2.3rem); color: #ffffff; letter-spacing: .18em; font-weight: 500; }
.ph-desc { margin-top: 8px; color: rgba(255, 255, 255, .66); font-size: 12px; letter-spacing: .26em; line-height: 1.6; font-family: var(--font-en); text-transform: uppercase; }
@media (max-width: 768px) {
  /* SPは右半分の写真だと狭すぎるため紺一色の帯にする（写真は非表示） */
  .page-hero-wrapper { padding: 40px 18px; }
  .ph-photo { display: none; }
}

/* 旧・飲食フッターの各ルールは Figma 白基調フッター（blocks.css 側）へ全面置換したため削除済み。
   フローティングボタンは別機能のため下に温存する。 */

/* フローティングボタンは SP 専用（PCでは非表示。PCはヘッダーのCTAで導線が足りるため）。
   769px以上で非表示にし、768px以下（下のメディアクエリ）で表示する。 */
.fc-floating-actions {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1800;
  display: none;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.fc-floating-action {
  pointer-events: auto;
  min-width: 136px;
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--fc-btn-border);
  background: rgba(16, 23, 24, .92);
  color: var(--text-main);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
  backdrop-filter: blur(10px);
}
.fc-floating-action:hover {
  background: var(--fc-btn-bg);
  color: var(--fc-btn-fg);
}
.fc-floating-reserve {
  background: var(--fc-btn-bg);
  color: var(--fc-btn-fg);
}
.fc-floating-reserve:hover {
  background: var(--fc-btn-bg-hover);
  border-color: var(--fc-btn-bg-hover);
  color: #101718;
}
.fc-floating-line {
  border-color: rgba(6, 199, 85, .75);
}
/* Instagram は Figma 準拠で背景 #C0CEDF ＋紺アイコン（ヘッダー/フッターの insta ボタンと同じ）。PC/SP共通。 */
.fc-floating-instagram {
  background: #c0cedf;
  border: none;
  color: var(--navy);
}
.fc-floating-instagram:hover {
  background: #aebfd3;
  color: var(--navy);
}

@media (max-width: 992px) {
  .global-header { display: flex; min-height: 68px; padding: 12px 18px; }
  .desktop-nav, .header-btns { display: none; }
  .menu-trigger { display: inline-flex; margin-left: auto; }
  .header-logo { font-size: 18px; }
}

@media (max-width: 768px) {
  /* SPヒーロー: Figma MV_*_sp（375×720）＝ヘッダーを除く1画面ぶんの縦構図 */
  .hero-wrapper { min-height: 520px; height: calc(100svh - 60px); max-height: 820px; }
  body.has-floating-actions { padding-bottom: 74px; }
  /* SPフローティングCTA（Figma MV_*_sp 下部: 紺ボタン＋内側白枠・インスタ角ボタン）。SPでのみ表示 */
  .fc-floating-actions {
    display: flex;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: row;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: none;
    border-top: none;
    backdrop-filter: none;
  }
  .fc-floating-action {
    flex: 1 1 0;
    min-width: 0;
    min-height: 50px;
    padding: 0 10px;
    flex-direction: row;
    gap: 8px;
    border-radius: 2px;
    border: 1px solid var(--navy);
    background: var(--navy);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), 0 8px 22px rgba(0, 0, 0, .3);
    font-family: var(--font-serif);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .06em;
    line-height: 1.2;
    backdrop-filter: none;
  }
  .fc-floating-action:hover { background: var(--navy-dark, #002f6b); color: #fff; }
  .fc-floating-contact { background: #3d6cb3; border-color: #3d6cb3; }
  .fc-floating-reserve { background: #3d6cb3; border-color: #3d6cb3; color: #fff; }
  .fc-floating-line, .fc-floating-instagram {
    flex: 0 0 50px;
    padding: 0;
  }
  .fc-floating-line span, .fc-floating-instagram span { display: none; }
  .fc-floating-action i { font-size: 16px; }
  .fc-floating-instagram i, .fc-floating-line i { font-size: 22px; }
  /* Instagram は #C0CEDF 背景＋紺アイコン維持（上の一律紺塗りを上書き。box-shadow の白内枠も外す） */
  .fc-floating-instagram {
    background: #c0cedf;
    border: none;
    color: var(--navy);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
  }
}
/* ============================================================
   よしむら歯科（yoshimuradc）— Figma「よしむら歯科様」実測（2026-11-06・docs/figma/design_tokens.md）
   青 #3B80B8 × ベージュ #F5F0E9 × 灰の文字 #616B6D。Zen Kaku Gothic Antique＋Montserrat（＋Josefin Sans）。
   この部分は docs/css/yd.css が元。docs/tools/build_style.sh が「書体の読み込み＋正本の style.css（docs/_orig）＋この CSS」を
   assets/css/style.css に連結する（正本のブロックの骨組みを落とさないため全面書き換えはしない）。
   読み込み順は style.css → blocks.css → custom.css。標準ブロックの上書きは `body` を付けて blocks.css に勝たせる。
   ============================================================ */
:root {
  --yd-blue: #3B80B8;
  --yd-blue-deep: #226CA8;
  --yd-teal: #2496B3;
  --yd-text: #616B6D;
  --yd-line: #A1A1A1;
  --yd-beige: #F5F0E9;
  --yd-pale: #E2EAEB;
  --yd-gray: #747474;
  --yd-yellow: #C3BE4E;
  --f-jp: "Zen Kaku Gothic Antique", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-en: "Montserrat", "Zen Kaku Gothic Antique", sans-serif;
  /* 斜線の模様（Figma の PATTERN：433×433 のタイルに斜線「＼」1 本・線と間が同じ幅。タイル＝433×scale）。
     線の間隔（線に直角の距離）＝タイル÷√2。太い順に 円 13px／GREETING 8.66px／三角 4.33px */
  --yd-hatch-13: repeating-linear-gradient(45deg, rgba(36, 150, 179, .2) 0 4.595px, transparent 4.595px 9.19px);
  --yd-hatch-8: repeating-linear-gradient(45deg, rgba(36, 150, 179, .2) 0 3.062px, transparent 3.062px 6.124px);
  --yd-hatch-4: repeating-linear-gradient(45deg, #2496B3 0 1.531px, transparent 1.531px 3.062px);
  --yd-hatch-4h: repeating-linear-gradient(45deg, rgba(36, 150, 179, .5) 0 1.531px, transparent 1.531px 3.062px);
  /* 正本のトークン（残っている標準ブロック用）を青系に */
  --bg-base: #fff; --bg-paper: var(--yd-beige); --bg-warm: var(--yd-beige);
  --ink: var(--yd-text); --text-main: var(--yd-text); --text-sub: var(--yd-text); --text-muted: #8a9294;
  --navy: var(--yd-blue); --navy-dark: #2c6a9c; --navy-pale: var(--yd-pale);
  --gold: var(--yd-blue); --gold-light: var(--yd-pale); --vermilion: var(--yd-blue);
  --fc-btn-bg: var(--yd-blue); --fc-btn-fg: #fff; --fc-btn-bg-hover: #2c6a9c; --fc-btn-fg-hover: #fff; --fc-btn-border: var(--yd-blue); --fc-btn-outline-fg: var(--yd-blue);
  --line: var(--yd-line); --font-serif: var(--f-jp); --font-sans: var(--f-jp); --font-en: var(--f-en);
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: #fff; color: var(--yd-text);
  font-family: var(--f-jp); font-size: 16px; line-height: 32px; letter-spacing: 0;
  padding-top: 0 !important; overflow-x: hidden;
}
body::before { display: none; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.yd-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.sp-br { display: none; }
@media (max-width: 768px) { .sp-br { display: inline; } .pc-br { display: none; } }
[id] { scroll-margin-top: 20px; }
/* 正本のフェードアップ演出は使わない（長い custom_html が透明のまま残る・スクロールの描き直しを避ける） */
body .fade-up { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ------------------------------------------------------------
   ヘッダー（global_header）— Figma 5:481（MV に重ねる・1440×113）＋ナビ 34:15209（MV／下層ヒーローの下）
   ロゴは文字（よしむら歯科＋線＋英字）を CSS で描く。TEL・住所の箱は各ページのヒーロー（custom_html）が持つ
   ------------------------------------------------------------ */
body .global-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 60;
  height: 113px; min-height: 0; padding: 10px 80px; margin: 0;
  display: block; background: transparent; border: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  pointer-events: none;
}
body .global-header > * { pointer-events: auto; }
body .header-logo {
  position: absolute; left: 80px; top: 10px; width: 239px; height: 93px;
  display: flex; flex-direction: column; align-items: center; font-size: 0; line-height: 0; color: #fff;
}
body .header-logo img { display: none; }
body .header-logo::before {
  content: "よしむら歯科"; display: block; width: 100%; padding-bottom: 15px;
  font-family: var(--f-jp); font-weight: 500; font-size: 36px; line-height: 43.2px; letter-spacing: 3.6px; text-indent: 3.6px; text-align: center; color: #fff;
  background: linear-gradient(#fff, #fff) center bottom / 100px 1px no-repeat;
}
body .header-logo::after {
  content: "Yoshimura Dental Clinic"; display: block; margin-top: 15px;
  font-family: var(--f-en); font-weight: 500; font-size: 20px; line-height: 20px; white-space: nowrap; color: #fff;
}
body .header-page-eyebrow {
  position: absolute; top: 6px; right: 80px; margin: 0; max-width: 40%; text-align: right;
  font-family: var(--f-jp); font-weight: 400; font-size: 10px; line-height: 14px; letter-spacing: .04em; color: #fff; opacity: .75;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 0 4px rgba(0, 0, 0, .35); pointer-events: none;
}
body .header-btns { display: none !important; }
/* ナビ：1180×46・項目の間 40・縦線 #A1A1A1 35px。TOP は y=700、下層は y=476 */
body .desktop-nav {
  position: absolute; left: 50%; top: 476px; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center; gap: 0; width: max-content; margin: 0;
}
body:has(.yd-mv) .desktop-nav { top: 700px; }
/* 項目・40・縦線・40・項目（両端は余白なし） */
body .desktop-nav > a, body .desktop-nav > .nav-has-dropdown { position: relative; padding: 0 40px; border: none; }
body .desktop-nav > :first-child { padding-left: 0; }
body .desktop-nav > :last-child { padding-right: 0; }
body .desktop-nav > a + a::before, body .desktop-nav > a + .nav-has-dropdown::before, body .desktop-nav > .nav-has-dropdown + a::before, body .desktop-nav > .nav-has-dropdown + .nav-has-dropdown::before {
  content: ""; position: absolute; left: 0; top: 5.5px; width: 1px; height: 35px; background: var(--yd-line);
}
body .desktop-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  font-family: var(--f-jp); font-weight: 400; font-size: 18px; line-height: 21.6px; letter-spacing: 0; color: var(--yd-text); white-space: nowrap; text-align: center;
}
body .desktop-nav .nav-jp { display: block; line-height: 21.6px; color: var(--yd-text); }
body .desktop-nav .nav-paren { font-size: 16px; }
/* 英字は項目の幅に数えない（Figma は日本語の幅の枠から英字がはみ出して中央に乗る） */
body .desktop-nav .nav-jp, body .desktop-nav .nav-en { margin: 0; padding: 0; }
body .desktop-nav .nav-en { display: flex; justify-content: center; width: 0; white-space: nowrap; letter-spacing: 0; font-family: var(--f-en); font-weight: 400; font-size: 16px; line-height: 19.2px; color: var(--yd-blue); }
body .desktop-nav a:hover .nav-jp, body .desktop-nav a.active .nav-jp { color: var(--yd-blue); }
body .desktop-nav > a::after, body .desktop-nav > .nav-has-dropdown > a::after { display: none; }
/* ▼（Figma 8×4・#616B6D）：日本語の右 10px。開くメニューのある項目は ▼ の分だけ右が広い */
body .desktop-nav .nav-caret { display: inline-block; width: 8px; height: 4px; margin-left: 10px; vertical-align: middle; font-size: 0; background: url('/image/assets/yd_ic_caret.svg') no-repeat center / 8px 4px; }
body .desktop-nav .nav-caret::before { content: none; }
body .nav-has-dropdown { position: relative; }
body .nav-has-dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px; }
body .nav-dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; z-index: 1200; min-width: 220px; padding: 8px 0;
  background: #fff; border: 1px solid var(--yd-blue); box-shadow: 0 10px 24px rgba(59, 128, 184, .16);
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(6px); transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}
body .nav-has-dropdown:hover .nav-dropdown, body .nav-has-dropdown:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
body .desktop-nav .nav-dropdown a { display: block; padding: 9px 22px; font-size: 16px; line-height: 24px; text-align: left; color: var(--yd-text); }
body .desktop-nav .nav-dropdown a:hover { background: var(--yd-pale); color: var(--yd-blue); }
body .menu-trigger { display: none; }

/* ------------------------------------------------------------
   ヒーロー共通：右上の TEL・住所の箱（Figma 1:480：200×60＋240×60・間 10・右 80・上 26）
   ------------------------------------------------------------ */
.yd-topboxes { position: absolute; top: 26px; right: 80px; z-index: 61; display: flex; gap: 10px; }
.yd-topbox { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 60px; padding: 10px; font-family: var(--f-jp); }
.yd-topbox--tel { width: 200px; gap: 5px; background: var(--yd-blue); color: #fff; }
.yd-topbox--tel .yd-topbox-label { font-size: 12px; line-height: 14.4px; }
.yd-topbox--tel .yd-topbox-num { display: flex; align-items: center; gap: 10px; font-family: var(--f-en); font-weight: 400; font-size: 20px; line-height: 24px; }
.yd-topbox--tel .yd-topbox-num img { width: 20px; height: 20px; }
.yd-topbox--addr { width: 240px; flex-direction: row; gap: 10px; background: #fff; border: 2px solid var(--yd-blue); color: var(--yd-blue); font-size: 16px; line-height: 19.2px; }
.yd-topbox--addr img { width: 19px; height: 25px; flex: none; }
.yd-topbox:hover { opacity: .85; }

/* 写真の下端の波（白）：Figma の Union（下 120px が波形） */
.yd-wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 121px; display: block; pointer-events: none; z-index: 2; }

/* ------------------------------------------------------------
   TOP：MV（Figma 1:475 ほか・1440×660）。ブロックの高さ 770＝写真 660＋ナビの段（110）
   ------------------------------------------------------------ */
.custom-html-inner > .yd-mv { margin-top: 0 !important; }
.yd-mv { position: relative; height: 770px; overflow: hidden; }
.yd-mv-photo { position: absolute; left: 0; top: 0; width: 100%; height: 660px; overflow: hidden; background: #dfe7ea; }
.yd-mv-slide { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.yd-mv-slide.is-active { opacity: 1; }
.yd-mv-shade { position: absolute; inset: 0; background: rgba(75, 96, 101, .1); }
.yd-mv-catch { position: absolute; left: 32px; top: 353px; width: 673px; height: 259px; z-index: 3; }
.yd-mv-bubble { position: absolute; left: 0; top: 20px; width: 643px; height: 245px; margin: -3px 0 0 -2.5px; overflow: visible; }
.yd-mv-copy {
  position: absolute; left: 55px; top: 53px; width: 514px; margin: 0; text-align: center;
  font-family: var(--f-jp); font-weight: 500; font-size: 32px; line-height: 64px; letter-spacing: 3.2px; color: var(--yd-text); white-space: nowrap;
}
.yd-mv-em { font-size: 40px; letter-spacing: 4px; }
.yd-mv-em--yellow { color: var(--yd-yellow); }
.yd-mv-em--blue { color: var(--yd-blue); }
.yd-mv-underline { position: absolute; left: 154px; top: 180px; width: 426px; height: 31px; overflow: visible; }
.yd-mv-stars { position: absolute; left: 581px; top: 113px; width: 92px; height: 118px; }
.yd-mv-dashes { position: absolute; left: 16px; top: 0; width: 94px; height: 94px; z-index: 2; }

/* ------------------------------------------------------------
   波形の帯（ベージュ）：Figma 1:459 ほか（1440×724：上の波 147＋帯＋下の波 147）
   ------------------------------------------------------------ */
.yd-band { position: absolute; left: 0; right: 0; height: 724px; z-index: 0; pointer-events: none; }
.yd-band, body .nlg-grid, body .news-article-body-section {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 147' preserveAspectRatio='none'%3E%3Cpath d='M0 68.289C53.594 120.65 273.228 193.955 723.015 68.289C1046 -21.95 1388.416 -9.538 1440 30.09L1440 147L0 147Z' fill='%23F5F0E9'/%3E%3C/svg%3E") left top / 100% 147px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 147' preserveAspectRatio='none'%3E%3Cpath d='M0 0L1440 0L1440 116.91C1388.416 156.538 1046 168.95 723.015 78.711C273.228 -46.955 53.594 26.35 0 78.711Z' fill='%23F5F0E9'/%3E%3C/svg%3E") left bottom / 100% 147px no-repeat,
    linear-gradient(var(--yd-beige), var(--yd-beige)) left 146px / 100% calc(100% - 292px) no-repeat !important;
}
.yd-band--info { top: -16px; }
.yd-band--f1, .yd-band--medical { transform: scaleX(-1); }  /* Figma で左右反転（1:463・1:471） */

/* ------------------------------------------------------------
   TOP：NEWS＋INFORMATION（Figma 3:62・x=110 w=1220：560＋100＋560。上端 y=786＝MV ブロックの下から 16）
   ------------------------------------------------------------ */
.yd-info { position: relative; padding: 16px 0 53px; }
.yd-info-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 560px 560px; column-gap: 100px; justify-content: center; }
.yd-info-il { display: block; height: 60px; width: auto; }
.yd-info-head { display: flex; align-items: baseline; gap: 10px; margin: 5px 0 0; padding-bottom: 9px; border-bottom: 1px solid var(--yd-text); }
.yd-info-head-en { font-family: var(--f-en); font-weight: 600; font-size: 32px; line-height: 38.4px; color: var(--yd-blue); }
.yd-info-head-jp { font-family: var(--f-jp); font-weight: 400; font-size: 18px; line-height: 21.6px; color: var(--yd-text); }
.yd-news { position: relative; margin-top: 40px; padding-right: 20px; min-height: 68px; }
.yd-news-bar { position: absolute; right: 0; top: 0; width: 3px; height: 68px; background: var(--yd-blue); }
/* latest_news_bar（標準ブロック）を NEWS 欄の行に */
/* blocks.css の !important（飲食の名残の白いカード）に勝つため、ここも !important */
body .yd-news .news-bar-section { padding: 0 !important; margin: 0 !important; background: none !important; border: none; text-align: left !important; }
body .yd-news .news-bar-container { display: flex; flex-direction: column; gap: 40px; max-width: none !important; width: 540px; margin: 0 !important; padding: 0; background: none; border: none; box-shadow: none; }
body .yd-news .news-bar-link { display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: flex-start !important; gap: 20px !important; height: 35px; padding: 0 0 15px !important; margin: 0 !important; background: none !important; border: none !important; border-bottom: 1px solid var(--yd-line) !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important; text-align: left !important; }
body .yd-news .news-bar-left { display: contents !important; }
body .yd-news .news-badge, body .yd-news .news-arrow { display: none; }
body .yd-news .news-date { flex: none; font-family: var(--f-en); font-weight: 600; font-size: 16px; line-height: 19.2px; color: var(--yd-line); letter-spacing: 0; }
body .yd-news .news-title { flex: 1 1 auto !important; text-align: left !important; width: auto !important; margin: 0; font-family: var(--f-jp); font-weight: 400; font-size: 16px; line-height: 19.2px; color: var(--yd-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body .yd-news .news-bar-link:hover .news-title { color: var(--yd-blue); }
/* スクリプトで移す前（読み込み中）は帯の上に出さない */
body .news-bar-section:not(.is-moved) { display: none; }
.yd-info-col--info { display: flex; flex-direction: column; align-items: center; }
.yd-info-col--info .yd-info-il { align-self: flex-start; }
.yd-info-col--info .yd-info-head { align-self: stretch; }
.yd-info-body { display: flex; flex-direction: column; align-items: center; gap: 21px; margin-top: 21px; width: 560px; }

/* 文字ロゴ（INFORMATION・フッター） */
.yd-logo { display: flex; flex-direction: column; align-items: center; margin: 0; color: var(--yd-text); }
.yd-logo-jp { padding: 0 0 15px; font-family: var(--f-jp); font-weight: 500; font-size: 36px; line-height: 43.2px; letter-spacing: 3.6px; text-indent: 3.6px; background: linear-gradient(currentColor, currentColor) center bottom / 100px 1px no-repeat; }
.yd-logo-en { margin-top: 15px; font-family: var(--f-en); font-weight: 500; font-size: 20px; line-height: 20px; white-space: nowrap; }
/* 住所・交通 */
.yd-addr { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; font-family: var(--f-en); font-weight: 600; font-size: 16px; line-height: 25.6px; color: var(--yd-text); }
.yd-addr img { width: 26px; height: 35px; flex: none; }
.yd-transit { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.yd-transit li { display: flex; align-items: center; justify-content: center; gap: 10px; width: 270px; height: 62px; padding: 10px; background: var(--yd-pale); border: 1px solid var(--yd-blue); font-family: var(--f-en); font-weight: 600; font-size: 16px; line-height: 25.6px; color: var(--yd-text); }
.yd-transit li img { width: 40px; height: 40px; flex: none; }
/* 診療時間の表（Figma 1:551：560×200） */
.yd-hours { width: 560px; }
.yd-hours-table { width: 560px; height: 200px; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--yd-line); table-layout: fixed; font-family: var(--f-jp); font-size: 18px; line-height: 21.6px; color: var(--yd-text); }
.yd-hours-table th, .yd-hours-table td { padding: 0; border: none; background: none; font-weight: 400; text-align: center; vertical-align: middle; }
.yd-hours-table thead th { height: 62px; padding-top: 2px; border-bottom: 1px solid var(--yd-line); }
.yd-hours-table tbody tr:first-child > * { height: 65px; border-bottom: 1px solid var(--yd-line); }
.yd-hours-table tbody tr:last-child > * { height: 71px; padding-bottom: 6px; }
.yd-hours-table th:first-child { width: 154px; padding-left: 19px; text-align: left; }
.yd-hours-table thead th:nth-child(2), .yd-hours-table td:nth-child(2) { width: 55px; }
.yd-hours-table thead th:nth-child(3), .yd-hours-table td:nth-child(3) { width: 55px; }
.yd-hours-table thead th:nth-child(4), .yd-hours-table td:nth-child(4) { width: 55px; }
.yd-hours-table thead th:nth-child(5), .yd-hours-table td:nth-child(5) { width: 48px; }
.yd-hours-table thead th:nth-child(6), .yd-hours-table td:nth-child(6) { width: 49px; }
.yd-hours-table thead th:nth-child(7), .yd-hours-table td:nth-child(7) { width: 63px; }
.yd-hours-table thead th:nth-child(8), .yd-hours-table td:nth-child(8) { width: 59px; }
/* 外枠の線（1px）の内側に 20px の余白を取った線（520px） */
.yd-hours-table thead th:first-child, .yd-hours-table tbody tr:first-child > :first-child { border-bottom: none; background: linear-gradient(var(--yd-line), var(--yd-line)) 19px 100% / calc(100% - 19px) 1px no-repeat; }
.yd-hours-table thead th:last-child, .yd-hours-table tbody tr:first-child > :last-child { border-bottom: none; background: linear-gradient(var(--yd-line), var(--yd-line)) 0 100% / calc(100% - 19px) 1px no-repeat; }
.yd-on { display: inline-block; width: 25px; height: 25px; border-radius: 50%; background: var(--yd-blue); vertical-align: middle; }
.yd-off { display: inline-block; width: 14px; height: 14px; vertical-align: middle; background: linear-gradient(to bottom right, transparent calc(50% - .5px), var(--yd-text) calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px)); }
.yd-hours-note { margin: 10px 0 0; font-family: var(--f-jp); font-size: 18px; line-height: 28.8px; color: var(--yd-text); letter-spacing: 0; }

/* ------------------------------------------------------------
   TOP：GREETING（Figma 1:717・y=1578〜2218：1440×640・padding 80）
   ------------------------------------------------------------ */
.custom-html-inner > .yd-greeting { margin-top: 84px !important; }
.yd-greeting { position: relative; height: 640px; overflow-x: clip; }
.yd-greeting-bg {
  position: absolute; inset: 0; overflow: hidden;
  /* Figma：写真の上にベージュのグラデーション（右上だけ透ける。gradientTransform から 223deg・4.6%→48%） */
  background: linear-gradient(223deg, rgba(245, 240, 233, 0) 4.6%, var(--yd-beige) 48%), url('/image/assets/yd_a477dc05.webp') center / cover no-repeat;
}
.yd-greeting-bg::after { content: ""; position: absolute; left: 0; bottom: 0; width: 640px; height: 213px; background: var(--yd-hatch-8); clip-path: polygon(0 0, 100% 100%, 0 100%); }
.yd-greeting-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 720px 480px; column-gap: 80px; justify-content: center; align-items: center; height: 100%; }
.yd-greeting-en { margin: 0; font-family: var(--f-en); font-weight: 600; font-size: 64px; line-height: 64px; letter-spacing: 6.4px; color: var(--yd-blue); }
.yd-greeting-lead { margin: 40px 0 0; font-size: 24px; line-height: 38.4px; color: var(--yd-text); }
.yd-greeting-text { margin-top: 40px; font-size: 16px; line-height: 32px; }
.yd-greeting-text p { margin: 0; }
.yd-greeting-text p + p { margin-top: 32px; }
.yd-greeting-photo { position: relative; width: 480px; height: 560px; margin: 0; box-shadow: 4px 4px 40px rgba(0, 0, 0, .25); }
.yd-greeting-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border: 3px solid #fff; }
.yd-nameplate { position: absolute; left: 0; bottom: 0; display: flex; align-items: baseline; justify-content: center; gap: 10px; width: 320px; height: 71px; padding-top: 10px; background: #fff; font-family: var(--f-jp); }
.yd-nameplate-role { font-size: 20px; line-height: 51.2px; color: var(--yd-text); }
.yd-nameplate-name { font-size: 32px; line-height: 51.2px; color: var(--yd-blue); }
.yd-greeting-il { position: absolute; right: -24px; top: 299px; width: 174px; height: 337px; z-index: 2; }

/* ------------------------------------------------------------
   TOP：大見出し（FEATURE・MEDICAL・INSTAGRAM：Montserrat 600 96px・字間 9.6）
   ------------------------------------------------------------ */
.yd-bighead { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.yd-bighead-en { margin: 0; font-family: var(--f-en); font-weight: 600; font-size: 96px; line-height: 96px; letter-spacing: 9.6px; text-indent: 9.6px; color: var(--yd-blue); }
/* 白抜きの文字は Figma の形の SVG（文字は見えない形で残す）。-webkit-text-stroke だと書体の輪郭の重なりが文字の中に出る */
.yd-bighead-en--outline { width: 519px; height: 96px; overflow: hidden; color: transparent; text-indent: 0; white-space: nowrap; background: url('/image/assets/yd_title_feature.svg') center / 519px 96px no-repeat; }
.yd-bighead-jp { margin: 0; font-size: 32px; line-height: 32px; color: var(--yd-text); }
.yd-bighead-brush { position: absolute; left: 50%; top: 35px; width: 555px; height: 173px; margin-left: -277.5px; background: url('/image/assets/yd_brush.webp') center / 100% 100% no-repeat; opacity: .5; z-index: -1; }

/* ------------------------------------------------------------
   TOP：FEATURE（Figma y=2258〜5048）
   ------------------------------------------------------------ */
.custom-html-inner > .yd-feature { margin-top: 0 !important; }
.yd-feature { position: relative; padding-top: 100px; padding-bottom: 100px; overflow-x: clip; }
.yd-feature-circle { position: absolute; left: -85px; top: 40px; width: 501px; height: 501px; border-radius: 50%; background: var(--yd-hatch-13); }
.yd-band--f1 { top: 614px; }
.yd-band--f4 { top: 1936px; }
.yd-ft { position: relative; z-index: 1; }
.yd-ft-num { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--yd-blue); font-family: var(--f-en); font-weight: 600; }
.yd-ft-num-label { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 18px; line-height: 18px; }
.yd-ft-num-no { font-size: 96px; line-height: 96px; }
.yd-ft-title { margin: 20px 0 0; font-weight: 400; font-size: 32px; line-height: 51.2px; text-align: center; color: var(--yd-text); }
/* 見出しは行ごとに大きさが違う（Figma の文字ごとの書式）。行の高さも行ごとに */
.yd-ft-l { display: block; }
.yd-ft-l--24 { font-size: 24px; line-height: 41.8px; }
.yd-ft-l--32 { font-size: 32px; line-height: 51.2px; }
.yd-ft-l--32b { font-size: 32px; line-height: 47.6px; }
.yd-ft-l--24b { font-size: 24px; line-height: 38.4px; }
.yd-ft-l--32c { font-size: 32px; line-height: 41.2px; }
.yd-ft-l--28 { font-size: 28px; line-height: 44.8px; }
.yd-ft-text { margin: 20px 0 0; font-size: 16px; line-height: 32px; }
/* 01：文 x=80 w=480｜写真 800×516（右端まで） */
.yd-ft--1 { display: grid; grid-template-columns: 480px 800px; column-gap: 80px; align-items: start; margin-top: 100px; padding-left: max(80px, calc(50% - 640px)); }
.yd-ft--1 .yd-ft-body { display: flex; flex-direction: column; align-items: center; }
.yd-ft--1 .yd-ft-text { align-self: stretch; }
.yd-ft-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.yd-ft--1 .yd-ft-media { width: 800px; height: 516px; }
/* 02：写真 2 枚（460×516 を 60 下げる＋320×516）｜文 x=880 w=480 */
.yd-ft--2 { display: grid; grid-template-columns: 800px 480px; column-gap: 80px; align-items: center; margin-top: 85px; padding-right: max(80px, calc(50% - 640px)); }
.yd-ft--2 .yd-ft-media { display: grid; grid-template-columns: 460px 320px; column-gap: 20px; height: 576px; }
.yd-ft-img--2a { height: 516px; margin-top: 60px; }
.yd-ft-img--2b { height: 516px; }
.yd-ft--2 .yd-ft-body { display: flex; flex-direction: column; align-items: center; }
.yd-ft--2 .yd-ft-text { align-self: stretch; }
/* 03：見出し行（番号＋見出し）・文 885｜写真 885×320。右に木 */
.yd-ft--3 { width: 1280px; margin: 80px auto 0; padding-right: 319px; max-width: calc(100% - 160px); }
.yd-ft-headrow { display: flex; align-items: flex-start; gap: 20px; }
.yd-ft-title--3 { margin: 0; font-size: 24px; line-height: 38.4px; text-align: center; }
.yd-ft--3 .yd-ft-text { margin-top: 20px; max-width: 885px; }
.yd-ft--3 .yd-ft-media { margin-top: 20px; width: 885px; max-width: 100%; height: 320px; }
.yd-ft-img--3 { object-position: 50% 30%; }
.yd-ft-il { position: absolute; right: -30px; top: -30px; width: 320px; height: 408px; }
/* 04：文 x=80 w=480｜写真 720×516（右端）＋360×232（左下に重ねる） */
.yd-ft--4 { display: grid; grid-template-columns: 480px 800px; column-gap: 80px; align-items: center; margin-top: 80px; padding-left: max(80px, calc(50% - 640px)); }
.yd-ft--4 .yd-ft-body { display: flex; flex-direction: column; align-items: center; }
.yd-ft--4 .yd-ft-text { align-self: stretch; }
.yd-ft--4 .yd-ft-media { position: relative; width: 800px; height: 592px; }
.yd-ft-img--4a { position: absolute; right: 0; top: 0; width: 720px; height: 516px; }
.yd-ft-img--4b { position: absolute; left: 0; bottom: 0; width: 360px; height: 232px; }

/* ------------------------------------------------------------
   TOP：親子で通える歯科医院（Figma 4:100・1280×632）
   ------------------------------------------------------------ */
.custom-html-inner > .yd-kids { margin-top: 0 !important; }
.yd-kids { padding: 0 0 100px; }
.yd-kids-frame { width: 1280px; max-width: calc(100% - 160px); margin: 0 auto; padding: 40px 60px; background: linear-gradient(rgba(36, 150, 179, .6), rgba(36, 150, 179, .6)), url('/image/assets/yd_2ac35fd4.webp') center / cover no-repeat; }
.yd-kids-box { display: flex; flex-direction: column; align-items: center; gap: 40px; padding: 40px; background: #fff; }
.yd-kids-head { display: flex; align-items: flex-start; gap: 40px; margin: 0; padding-bottom: 20px; font-weight: 500; font-size: 40px; line-height: 64px; color: var(--yd-blue); background: linear-gradient(var(--yd-blue), var(--yd-blue)) center bottom / 100px 2px no-repeat; }
.yd-kids-head img { width: auto; height: 60px; }
.yd-kids-text { width: 100%; margin: -20px 0 0; font-size: 16px; line-height: 32px; text-align: center; }
.yd-kids-photos { display: grid; grid-template-columns: repeat(3, 320px); gap: 20px; margin: 0; padding: 0; list-style: none; }
.yd-kids-photos img { display: block; width: 320px; height: 200px; object-fit: cover; }

/* ------------------------------------------------------------
   TOP：MEDICAL（Figma 1:647）
   ------------------------------------------------------------ */
.custom-html-inner > .yd-medical { margin-top: 0 !important; }
.yd-medical { position: relative; padding-top: 139px; overflow: hidden; }
.yd-band--medical { top: 210px; }
.yd-medical-circle { position: absolute; right: -116px; top: 0; width: 501px; height: 501px; border-radius: 50%; background: var(--yd-hatch-13); }
.yd-bighead--medical .yd-bighead-bird { position: absolute; left: calc(50% - 311px); top: -66px; width: 61px; height: 66px; }
.yd-med-big { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); margin: 40px 0 0; padding: 0; list-style: none; }
.yd-med-big a { position: relative; display: block; height: 440px; overflow: hidden; }
.yd-med-big img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.yd-med-big a::before { content: ""; position: absolute; left: 13px; right: 14px; top: 20px; bottom: 20px; border: 1px solid #fff; z-index: 1; pointer-events: none; }
.yd-med-big a:hover img { transform: scale(1.04); }
.yd-med-big-label { position: absolute; left: 13px; right: 14px; bottom: 20px; z-index: 2; display: flex; flex-direction: column; gap: 5px; height: 120px; padding: 23px 40px 0 60px; background: #fff; }
.yd-med-big-label::before { content: ""; position: absolute; left: 0; bottom: 0; width: 53px; height: 80px; background: var(--yd-hatch-4); clip-path: polygon(0 0, 100% 100%, 0 100%); }
.yd-med-big-label::after { content: ""; position: absolute; right: 40px; top: 58px; width: 45px; height: 5px; background: url('/image/assets/yd_ic_arrow.svg') no-repeat center / contain; }
.yd-med-big-jp { font-size: 32px; line-height: 38px; color: var(--yd-text); }
.yd-med-big-en { font-family: var(--f-en); font-size: 14px; line-height: 16.8px; color: var(--yd-blue); }
.yd-med-small-wrap { position: relative; z-index: 1; padding: 80px; background: linear-gradient(rgba(245, 240, 233, .9), rgba(245, 240, 233, .9)), url('/image/assets/yd_82b41a47.webp') center / cover; }
.yd-med-small { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; max-width: 1044px; margin: 0 auto; padding: 0; list-style: none; }
.yd-med-small a { display: flex; align-items: center; gap: 15px; width: 320px; height: 120px; padding-left: 20px; background: #fff; border-left: 5px solid var(--yd-blue); }
.yd-med-small a > img { width: 50px; height: 50px; flex: none; }
.yd-med-small-txt { display: flex; flex-direction: column; gap: 5px; padding-bottom: 15px; background: url('/image/assets/yd_ic_arrow.svg') left bottom / 35px 4px no-repeat; }
.yd-med-small-jp { font-weight: 500; font-size: 24px; line-height: 38.4px; color: var(--yd-text); }
.yd-med-small-en { font-family: var(--f-en); font-size: 14px; line-height: 16.8px; color: var(--yd-blue); }
.yd-med-small a:hover .yd-med-small-jp, .yd-med-big a:hover .yd-med-big-jp { color: var(--yd-blue); }

/* ------------------------------------------------------------
   TOP：INSTAGRAM（Figma 5:327）・ギャラリー（5:340）
   ------------------------------------------------------------ */
.custom-html-inner > .yd-insta { margin-top: 0 !important; }
.yd-insta { position: relative; padding: 100px 0 0; text-align: center; }
.yd-bighead--insta { display: inline-flex; flex-direction: row; align-items: flex-start; gap: 0; }
.yd-bighead--insta .yd-bighead-bird { margin: -48px 0 0 -10px; width: 77px; height: 84px; }
.yd-insta-embed { display: flex; justify-content: center; width: 920px; max-width: calc(100% - 40px); margin: 31px auto 0; }
.yd-insta-embed .instagram-media { min-width: 0 !important; width: 100% !important; max-width: 920px !important; margin: 0 !important; }
.custom-html-inner > .yd-gallery { margin-top: 60px !important; margin-bottom: 80px !important; }
.yd-gallery { position: relative; height: 724px; margin-top: 60px; overflow: hidden; }
.yd-band--gallery { top: 0; }
.yd-gallery-row { position: absolute; left: 50%; top: 192px; z-index: 1; display: flex; gap: 20px; width: 1540px; margin: 0 0 0 -770px; padding: 0; list-style: none; }
.yd-gallery-row li { flex: none; width: 360px; height: 280px; margin-top: 30px; }
.yd-gallery-row li.is-low { width: 380px; margin-top: 60px; }
.yd-gallery-row img { display: block; width: 100%; height: 100%; object-fit: cover; }
.yd-gallery-il { position: absolute; right: -13px; top: 346px; z-index: 2; width: 135px; height: 283px; }

/* ------------------------------------------------------------
   フッター（Figma 38:51619：1440×1379。上に青 5px・ベージュの地）
   ------------------------------------------------------------ */
body .global-footer, body .footer-copy-text { display: none !important; }
.custom-html-inner > .yd-footer { margin-top: 0 !important; }
.yd-footer { position: relative; z-index: 3; background: var(--yd-beige); border-top: 5px solid var(--yd-blue); }
.yd-footer-access { display: flex; flex-direction: column; align-items: center; padding: 60px 0 63px; }
.yd-footer-grid { display: grid; grid-template-columns: 560px 560px; column-gap: 60px; align-items: center; margin-top: 40px; }
.yd-footer-left { display: flex; flex-direction: column; align-items: center; gap: 21px; }
.yd-telbtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 240px; height: 80px; background: var(--yd-blue); color: #fff; }
.yd-telbtn-label { font-size: 12px; line-height: 14.4px; }
.yd-telbtn-num { display: flex; align-items: center; gap: 10px; font-family: var(--f-en); font-weight: 400; font-size: 24px; line-height: 28.8px; }
.yd-telbtn-num img { width: 20px; height: 20px; }
.yd-telbtn:hover { background: #2c6a9c; color: #fff; }
.yd-footer-map { width: 1120px; max-width: calc(100% - 40px); height: 394px; margin-top: 63px; }
.yd-footer-map iframe, .yd-accessmap iframe { display: block; width: 100%; height: 100%; border: 0; }
.yd-footer-links { display: flex; justify-content: center; gap: 60px; padding: 60px 0; background: var(--yd-pale); }
.yd-footer-col { width: 600px; }
.yd-footer-col-head { margin: 0; padding-bottom: 20px; border-bottom: 1px solid var(--yd-text); font-family: var(--f-en); font-weight: 400; font-size: 40px; line-height: 48px; color: var(--yd-text); }
.yd-footer-list { display: grid; gap: 20px 34px; margin: 20px 0 0; padding: 0; list-style: none; }
.yd-footer-list--site { grid-template-columns: 196px 160px 138px; }
.yd-footer-list--medical { grid-template-columns: 88px 106px 160px; }
.yd-footer-list a { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 18px; line-height: 21.6px; color: var(--yd-text); white-space: nowrap; }
.yd-footer-list a::before { content: ""; width: 20px; height: 1px; background: var(--yd-text); flex: none; }
.yd-footer-list a:hover { color: var(--yd-blue); }
.yd-copy { margin: 0; padding: 32px 10px 32.6px; background: var(--yd-blue); text-align: center; font-weight: 500; font-size: 12px; line-height: 14.4px; color: #fff; }

/* ------------------------------------------------------------
   お知らせ一覧（news_list_grid）・記事（news_article_body）。Figma に無いページなので TOP の NEWS と下層の部品に合わせる
   一覧：節の見出し＋波の帯の上に TOP と同じ行（画像のある記事だけ小さい写真）
   記事：波の帯の上の白い箱に、日付・題名・波の点線・本文。blocks.css が !important なのでこちらも !important
   ------------------------------------------------------------ */
body .news-list-grid-section { padding: 0 !important; background: none !important; }
body .news-section-header { max-width: none !important; margin: 0 0 40px !important; }
body .news-section-header::before {
  content: "新着情報"; display: block; padding-bottom: 43px; margin-bottom: -2px; text-align: center; font-size: 40px; line-height: 48px; color: var(--yd-blue);
  background: url('/image/assets/yd_wave_line.svg') center bottom / 4320px 25px no-repeat;
}
body .nlg-grid {
  position: relative; display: flex !important; flex-direction: column; gap: 0 !important; max-width: none !important; min-height: 520px;
  margin: 0 0 80px !important; padding: 150px max(40px, calc(50% - 560px)) 170px !important; overflow-x: clip;
}
body .nlg-grid::before { content: ""; position: absolute; left: -85px; top: -130px; width: 300px; height: 300px; border-radius: 50%; background: var(--yd-hatch-13); pointer-events: none; }
body .nlg-grid::after { content: ""; position: absolute; right: -24px; bottom: 30px; width: 174px; height: 337px; background: url('/image/assets/yd_il_tree_greeting.webp') center / contain no-repeat; pointer-events: none; }
body a.nlg-card, body .nlg-card {
  position: relative; z-index: 1; display: flex !important; flex-direction: row !important; align-items: center; gap: 30px; width: 100%; padding: 24px 80px 24px 0 !important; margin: 0 !important;
  background: none !important; border: none !important; border-bottom: 1px solid var(--yd-line) !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important;
}
body .nlg-card::after { content: ""; position: absolute; right: 10px; top: 50%; width: 45px; height: 5px; margin-top: -2.5px; background: url('/image/assets/yd_ic_arrow.svg') center / contain no-repeat; transition: transform .25s ease; }
body a.nlg-card:hover::after { transform: translateX(8px); }
body a.nlg-card:hover { background: none !important; border-color: var(--yd-blue) !important; box-shadow: none !important; transform: none !important; }
body .nlg-img { flex: none; width: 150px !important; height: 100px !important; aspect-ratio: auto !important; margin: 0; border: none !important; background: none !important; overflow: hidden; }
body .nlg-img img { width: 100%; height: 100%; object-fit: cover; }
body .nlg-img:has(.nlg-no-img) { display: none !important; }  /* 画像の無い記事に歯のアイコンの枠を出さない */
body .nlg-body { display: flex !important; align-items: center; gap: 30px; flex: 1 1 auto; min-width: 0; padding: 0 !important; }
body .nlg-meta { flex: none; margin: 0 !important; }
body .nlg-date { font-family: var(--f-en) !important; font-weight: 600 !important; font-size: 16px !important; line-height: 19.2px; letter-spacing: 0 !important; color: var(--yd-line) !important; }
body .nlg-title { margin: 0 !important; font-family: var(--f-jp) !important; font-weight: 400 !important; font-size: 18px !important; line-height: 28.8px !important; letter-spacing: 0 !important; color: var(--yd-text) !important; }
body a.nlg-card:hover .nlg-title { color: var(--yd-blue) !important; }

body .news-article-body-section { position: relative; margin: 0 0 80px !important; padding: 150px 20px 170px !important; overflow-x: clip; }
body .news-article-body-section::before { content: ""; position: absolute; left: -85px; top: -60px; width: 501px; height: 501px; border-radius: 50%; background: var(--yd-hatch-13); pointer-events: none; }
body .news-article-body-section::after { content: ""; position: absolute; right: -24px; bottom: 30px; width: 174px; height: 337px; background: url('/image/assets/yd_il_tree_greeting.webp') center / contain no-repeat; pointer-events: none; }
body .nab-container { position: relative; z-index: 1; max-width: 1000px !important; padding: 60px 80px 70px !important; background: #fff !important; border: none !important; box-shadow: none !important; }
body .nab-header { margin: 0 0 40px !important; padding: 0 0 43px !important; text-align: center; border: none !important; background: url('/image/assets/yd_wave_line.svg') center bottom / 4320px 25px no-repeat; }
body .nab-header::before { content: ""; display: block; width: 37px; height: 60px; margin: 0 auto 10px; background: url('/image/assets/yd_il_tree_news.webp') center / contain no-repeat; }
body .nab-meta { justify-content: center; margin-bottom: 10px !important; }
body .nab-date { font-family: var(--f-en) !important; font-weight: 600 !important; font-size: 16px !important; letter-spacing: 0 !important; color: var(--yd-line) !important; }
body .nab-date i { display: none; }
body .nab-title { margin: 0 !important; padding: 0 !important; border: none !important; font-family: var(--f-jp) !important; font-weight: 400 !important; font-size: 32px !important; line-height: 51.2px !important; letter-spacing: 0 !important; color: var(--yd-blue) !important; }
body .nab-main-img-box { margin: 0 0 40px; border: none !important; background: none !important; aspect-ratio: auto !important; }
body .nab-main-img-box img { height: auto !important; }
body .nab-body-text { font-family: var(--f-jp) !important; font-size: 16px !important; line-height: 32px !important; letter-spacing: 0 !important; color: var(--yd-text) !important; overflow-wrap: anywhere; }
body .nab-footer-nav { margin-top: 50px !important; padding-top: 0 !important; border: none !important; text-align: center; }
body .btn-nab-back { display: inline-flex !important; align-items: center; justify-content: center; gap: 10px; width: 240px; height: 60px; padding: 0 !important; background: var(--yd-blue) !important; border: 1px solid var(--yd-blue) !important; border-radius: 0 !important; color: #fff !important; font-family: var(--f-jp) !important; font-weight: 400 !important; font-size: 16px !important; letter-spacing: 0 !important; }
body .btn-nab-back:hover { background: #2c6a9c !important; border-color: #2c6a9c !important; color: #fff !important; }

/* ------------------------------------------------------------
   下層：ヒーロー（Figma Union 1440×436・写真＋暗幕 30%＋下端の波。見出し 64px・英字 40px は右寄せ）
   ブロックの高さ 582＝写真 436＋ナビの段（146）
   ------------------------------------------------------------ */
.custom-html-inner > .yd-hero { margin-top: 0 !important; }
.yd-hero { position: relative; height: 582px; }
.yd-hero-photo { position: absolute; left: 0; top: 0; width: 100%; height: 436px; overflow: hidden; background: #dfe7ea; }
.yd-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.yd-hero-photo::after { content: ""; position: absolute; inset: 0; background: rgba(75, 96, 101, .3); }
.yd-hero .yd-wave { z-index: 2; }
.yd-hero-head { position: absolute; right: 80px; top: 246px; z-index: 3; margin: 0; text-align: right; color: #fff; }
.yd-hero-title { display: block; font-weight: 400; font-size: 64px; line-height: 76.8px; }
.yd-hero-en { display: block; margin-top: 5px; font-family: var(--f-en); font-weight: 400; font-size: 40px; line-height: 48px; }

/* ------------------------------------------------------------
   下層：共通部品
   ------------------------------------------------------------ */
.custom-html-inner > .yd-page { margin-top: 0 !important; }
.yd-page { padding-bottom: 80px; }
.yd-page > * { margin-top: var(--mt, 0); }
/* 節の見出し（Frame 1236：40px 青＋波の点線 1440×21） */
.yd-sechead {
  margin-bottom: -2px; padding-bottom: 43px; text-align: center; font-weight: 400; font-size: 40px; line-height: 48px; color: var(--yd-blue);
  background: url('/image/assets/yd_wave_line.svg') center bottom / 4320px 25px no-repeat;
}
/* 写真と文の 2 列（Frame 5010＝写真が左／5009＝写真が右：600×400＋間 40＋640） */
.yd-2col { display: grid; grid-template-columns: 600px 640px; column-gap: 40px; align-items: center; width: 1280px; max-width: calc(100% - 160px); margin-left: auto; margin-right: auto; }
.yd-2col--imgR { grid-template-columns: 640px 600px; }
.yd-2col--imgR .yd-2col-img { order: 2; }
.yd-2col-img { display: block; width: 600px; height: 400px; object-fit: cover; }
.yd-2col-head { margin: 0; padding-bottom: 20px; font-weight: 400; font-size: 28px; line-height: 44.8px; color: var(--yd-text); background: linear-gradient(var(--yd-text), var(--yd-text)) left bottom / 560px 1px no-repeat; }
.yd-2col-text { margin: 20px 0 0; font-size: 16px; line-height: 32px; }
.yd-2col--nohead .yd-2col-text { margin: 0; }
/* チェックリスト（TROUBLE＝灰／RECOMMENDED＝青。1280・padding 40/60） */
.yd-check { width: 1280px; max-width: calc(100% - 160px); margin-left: auto; margin-right: auto; padding: 40px 60px; background: #fff; border: 1px solid var(--yd-gray); }
.yd-check--recommend { border-color: var(--yd-blue); }
.yd-check-head { position: relative; display: flex; flex-direction: column; align-items: center; height: 104px; margin: 0; padding: 20px 10px; overflow: hidden;
  background: linear-gradient(rgba(116, 116, 116, .9), rgba(116, 116, 116, .9)), url('/image/assets/yd_82b41a47.webp') center / cover; }
.yd-check--recommend .yd-check-head { background: linear-gradient(rgba(59, 128, 184, .9), rgba(59, 128, 184, .9)), url('/image/assets/yd_82b41a47.webp') center / cover; }
.yd-check-en { font-family: "Josefin Sans", var(--f-en); font-weight: 600; font-size: 64px; line-height: 64px; letter-spacing: 9.6px; text-indent: 9.6px; color: rgba(53, 53, 53, .4); white-space: nowrap; }
.yd-check--recommend .yd-check-en { color: var(--yd-blue-deep); }
.yd-check-jp { margin-top: -24px; font-weight: 700; font-size: 20px; line-height: 24px; color: #fff; }
.yd-check-list { display: grid; grid-template-columns: repeat(2, 550px); column-gap: 20px; margin: 20px 0 0; padding: 0; list-style: none; }
.yd-check-list li { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 20px; font-size: 16px; line-height: 19.2px; letter-spacing: 1.6px;
  background: repeating-linear-gradient(to right, var(--yd-text) 0 2px, transparent 2px 4px) left bottom / 100% 1px no-repeat; }
.yd-check-list li::before { content: ""; width: 20px; height: 20px; flex: none; background: url('/image/assets/yd_ic_check_gray.svg') no-repeat center / contain; }
.yd-check--recommend .yd-check-list li::before { background-image: url('/image/assets/yd_ic_check_blue.svg'); }
/* 帯見出し（Component 1：1280×80・ベージュ＋葉の模様・左下と右上に斜線の三角） */
.yd-bandhead { position: relative; display: flex; align-items: center; justify-content: center; width: 1280px; max-width: calc(100% - 160px); height: 80px; margin-left: auto; margin-right: auto; margin-bottom: 0; padding: 20px 30px; overflow: hidden;
  font-weight: 400; font-size: 32px; line-height: 38.4px; color: var(--yd-blue); text-align: center;
  background: linear-gradient(rgba(245, 240, 233, .9), rgba(245, 240, 233, .9)), url('/image/assets/yd_82b41a47.webp') center / cover; }
.yd-bandhead::before, .yd-bandhead::after { content: ""; position: absolute; width: 140px; height: 80px; background: var(--yd-hatch-4h); }
.yd-bandhead::before { left: 0; bottom: 0; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.yd-bandhead::after { right: 0; top: 0; clip-path: polygon(0 0, 100% 0, 100% 100%); }
/* 小見出し（Frame 1238：木 24×40＋24px・下に点線 #A1A1A1） */
.yd-smallhead { display: flex; align-items: center; gap: 10px; margin-bottom: 0; padding-bottom: 10px; font-weight: 400; font-size: 24px; line-height: 28.8px; color: var(--yd-text);
  background: repeating-linear-gradient(to right, var(--yd-line) 0 2px, transparent 2px 4px) left bottom / 100% 1px no-repeat; }
.yd-smallhead::before { content: ""; width: 24px; height: 40px; flex: none; background: url('/image/assets/yd_il_tree_small.webp') no-repeat center / contain; }
.yd-smallhead--inset, .yd-text--inset { width: 1120px; max-width: calc(100% - 160px); margin-left: auto; margin-right: auto; }
.yd-text { font-size: 16px; line-height: 32px; margin-bottom: 0; }
.yd-text--center { text-align: center; width: 1280px; max-width: calc(100% - 40px); margin-left: auto; margin-right: auto; }

/* 診療理念・当院について（写真 680×480 が画面端まで＋文 640） */
.yd-philo { display: grid; grid-template-columns: 680px 640px; column-gap: 40px; align-items: center; padding-right: max(80px, calc(50% - 640px)); }
.yd-philo--imgR { grid-template-columns: 640px 680px; padding-right: 0; padding-left: max(80px, calc(50% - 640px)); }
.yd-philo--imgR .yd-philo-img { order: 2; }
.yd-philo-img { display: block; width: 680px; height: 480px; object-fit: cover; }
.yd-philo--imgR .yd-philo-body { padding-right: 0; }
/* 特徴（写真 600×400＋小見出し・本文 640。左右交互） */
.yd-feat { display: grid; grid-template-columns: 640px 600px; column-gap: 40px; align-items: center; width: 1280px; max-width: calc(100% - 160px); margin-left: auto; margin-right: auto; }
.yd-feat--imgL { grid-template-columns: 600px 640px; }
.yd-feat--imgR .yd-feat-img { order: 2; }
.yd-feat-img { display: block; width: 600px; height: 400px; object-fit: cover; }
.yd-feat-text { margin: 20px 0 0; font-size: 16px; line-height: 32px; }
/* 医院案内：INFORMATION（ベージュの帯） */
.yd-clinicinfo { display: grid; grid-template-columns: 560px 560px; column-gap: 60px; justify-content: center; align-items: center; padding: 60px 0; background: var(--yd-beige); }
.yd-clinicinfo-left { display: flex; flex-direction: column; align-items: center; gap: 21px; }
.yd-accessmap { width: 1180px; max-width: calc(100% - 160px); height: 400px; margin-left: auto; margin-right: auto; }
.yd-transit--wide { justify-content: center; }
.yd-transit--wide li { width: 400px; }
/* 医院紹介の写真（400×300・3＋2） */
.yd-photos { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; width: 1280px; max-width: calc(100% - 160px); margin-left: auto; margin-right: auto; padding: 0; list-style: none; }
.yd-photos figure { position: relative; width: 400px; margin: 0; }
.yd-photos img { display: block; width: 400px; height: 300px; object-fit: cover; border: 1px solid #ddd; }
.yd-photos figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* 医師紹介 */
.yd-director { padding: 60px 0; background: var(--yd-beige); }
.yd-director-inner { display: grid; grid-template-columns: 720px 480px; column-gap: 80px; justify-content: center; align-items: center; }
.yd-director-catch { margin: 0; padding-left: 21px; border-left: 5px solid var(--yd-blue); font-weight: 400; font-size: 28px; line-height: 44.8px; color: var(--yd-text); }
.yd-director-text { margin: 40px 0 0; font-size: 16px; line-height: 32px; }
.yd-greeting-photo--staff { box-shadow: 4px 4px 40px rgba(0, 0, 0, .25); }
.yd-career { display: grid; grid-template-columns: 620px 620px; column-gap: 40px; width: 1280px; max-width: calc(100% - 160px); margin-left: auto; margin-right: auto; }
.yd-career-list { margin: 20px 0 0; padding: 0; list-style: none; }
.yd-career-list li { display: flex; gap: 16px; font-size: 16px; line-height: 32px; }
.yd-career-year { flex: none; white-space: nowrap; }
.yd-societies { margin-left: auto; margin-right: auto; padding: 0; list-style: none; text-align: center; font-size: 16px; line-height: 32px; }
.yd-preparing { margin-bottom: 0; text-align: center; font-size: 40px; line-height: 80px; color: var(--yd-text); }
/* 初めての方へ：診療の流れ（3 列×2 段・ベージュのカード） */
.yd-flow { display: grid; grid-template-columns: repeat(3, 400px); gap: 40px; justify-content: center; margin-left: auto; margin-right: auto; padding: 0; list-style: none; }
.yd-flow-card { display: flex; flex-direction: column; align-items: center; padding: 40px 40px 50px; background: var(--yd-beige); }
.yd-flow-card img { width: 80px; height: 80px; }
.yd-flow-head { width: 100%; margin: 20px 0 0; padding-bottom: 20px; text-align: center; font-weight: 400; font-size: 24px; line-height: 38.4px; color: var(--yd-text); background: linear-gradient(var(--yd-text), var(--yd-text)) center bottom / 100% 1px no-repeat; }
.yd-flow-text { margin: 20px 0 0; font-size: 16px; line-height: 32px; }
/* 料金表（2026-11-11：期間・回数の 2 列と、表の下の主なリスク・副作用を追加。SP は表を横にスクロール） */
.yd-fee { width: 1280px; max-width: calc(100% - 160px); margin-left: auto; margin-right: auto; }
.yd-fee-hint { display: none; }
.yd-fee-scroll { width: 100%; }
.yd-fee-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 18px; line-height: 28.8px; color: var(--yd-text); background: #fff; }
.yd-fee-table th, .yd-fee-table td { padding: 10px; border: 1px solid var(--yd-line); text-align: center; font-weight: 400; vertical-align: middle; }
.yd-fee-table thead th { background: var(--yd-blue); color: #fff; border-color: #fff var(--yd-line); }
.yd-fee-table thead th + th { border-left-color: #fff; }
.yd-fee-table th:first-child { width: 28%; }
.yd-fee-table thead th:nth-child(2) { width: 24%; }
.yd-fee-table thead th:nth-child(3) { width: 17%; }
.yd-fee-table thead th:nth-child(4) { width: 15%; }
.yd-fee-table tbody th { background: #fff; }
.yd-fee-table td.yd-fee-span { font-size: 16px; color: var(--yd-text); background: #fafafa; }
.yd-fee-table td.yd-fee-price { white-space: nowrap; }
/* 主なリスク・副作用（表のすぐ下・ベージュの箱に左の青線） */
.yd-fee-risk { width: 1280px; max-width: calc(100% - 160px); margin-left: auto; margin-right: auto; padding: 28px 40px 30px; background: var(--yd-beige); border-left: 5px solid var(--yd-blue); }
.yd-fee-risk-item + .yd-fee-risk-item { margin-top: 24px; padding-top: 24px; border-top: 1px dashed var(--yd-line); }
.yd-fee-risk-head { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; font-size: 18px; line-height: 28.8px; color: var(--yd-blue); }
.yd-fee-risk-head::before { content: ""; width: 18px; height: 30px; flex: none; background: url('/image/assets/yd_il_tree_small.webp') no-repeat center / contain; }
.yd-fee-risk-text { margin: 8px 0 0; font-size: 16px; line-height: 30px; color: var(--yd-text); }
.yd-fee-risk-note { margin: 10px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 24px; color: var(--yd-text); }
.yd-fee-risk-note li { padding-left: 1em; text-indent: -1em; }
.yd-fee-note { width: 760px; max-width: calc(100% - 40px); margin-left: auto; margin-right: auto; padding: 40px 120px; list-style: none; background: #fff; border: 1px solid var(--yd-blue); box-shadow: 0 4px 12px rgba(59, 128, 184, .2); font-size: 16px; line-height: 28.8px; }
.yd-fee-note li::before { content: "・"; }

/* ------------------------------------------------------------
   SP 下部の固定ボタン（global_footer の fc-floating-actions）：Figma SP の「ご予約・お問い合わせ｜ACCESS」
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  body .fc-floating-actions { gap: 5px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .92); }
  body .fc-floating-action { min-height: 40px; border-radius: 0; font-family: var(--f-jp); font-weight: 400; font-size: 12px; letter-spacing: 0; box-shadow: none; }
  body .fc-floating-phone { background: var(--yd-blue); border: 1px solid var(--yd-blue); color: #fff; }
  body .fc-floating-contact { background: #fff; border: 1px solid var(--yd-blue); color: var(--yd-blue); font-family: var(--f-en); font-size: 13px; }
  body .fc-floating-contact i { display: none; }
  body .fc-floating-contact::before { content: ""; width: 10px; height: 14px; background: url('/image/assets/yd_ic_pin.svg') no-repeat center / contain; }
}

/* ============================================================
   中間幅（1440 未満）：横幅の固定値を割合に
   ============================================================ */
@media (max-width: 1439px) {
  .yd-ft--1, .yd-ft--4 { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); column-gap: 60px; }
  .yd-ft--1 .yd-ft-media { width: 100%; height: auto; aspect-ratio: 800 / 516; }
  .yd-ft--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); column-gap: 60px; }
  .yd-ft--2 .yd-ft-media { grid-template-columns: 1.44fr 1fr; height: auto; }
  .yd-ft-img--2a, .yd-ft-img--2b { height: auto; aspect-ratio: 320 / 516; }
  .yd-ft-img--2a { aspect-ratio: 460 / 516; }
  .yd-ft--4 .yd-ft-media { width: 100%; height: auto; aspect-ratio: 800 / 592; }
  .yd-ft-img--4a { width: 90%; height: 87%; }
  .yd-ft-img--4b { width: 45%; height: 39%; }
  .yd-ft--3 { padding-right: 25%; }
  .yd-philo { grid-template-columns: minmax(0, 680px) minmax(0, 640px); }
  .yd-philo--imgR { grid-template-columns: minmax(0, 640px) minmax(0, 680px); }
  .yd-philo-img { width: 100%; height: auto; aspect-ratio: 680 / 480; }
  .yd-ft-il { width: 22%; height: auto; }
}
@media (max-width: 1280px) {
  body .desktop-nav > a, body .desktop-nav > .nav-has-dropdown { padding: 0 12px; }
  body .desktop-nav a { font-size: 15px; }
  body .desktop-nav .nav-en { font-size: 13px; }
  .yd-info-grid { grid-template-columns: minmax(0, 560px) minmax(0, 560px); column-gap: 40px; padding: 0 40px; }
  .yd-news .news-bar-container { width: 100% !important; }
  .yd-info-body, .yd-hours, .yd-hours-table { width: 100%; }
  .yd-hours-table th:first-child { width: 28%; }
  .yd-hours-table thead th:not(:first-child), .yd-hours-table td { width: auto !important; }
  .yd-transit li { width: auto; flex: 1 1 0; }
  .yd-greeting-inner { grid-template-columns: minmax(0, 1fr) 400px; column-gap: 40px; padding: 0 60px; }
  .yd-greeting-photo { width: 400px; height: 467px; }
  .yd-2col, .yd-feat, .yd-career { grid-template-columns: minmax(0, 46%) minmax(0, 1fr); column-gap: 40px; max-width: calc(100% - 80px); }
  .yd-2col--imgR, .yd-feat--imgR { grid-template-columns: minmax(0, 1fr) minmax(0, 46%); }
  .yd-feat--imgL { grid-template-columns: minmax(0, 46%) minmax(0, 1fr); }
  .yd-career { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .yd-2col-img, .yd-feat-img { width: 100%; height: auto; aspect-ratio: 3 / 2; }
  .yd-2col-head { background-size: 100% 1px; }
  .yd-philo { grid-template-columns: minmax(0, 50%) minmax(0, 1fr); padding-right: 40px; }
  .yd-philo--imgR { grid-template-columns: minmax(0, 1fr) minmax(0, 50%); padding-left: 40px; padding-right: 0; }
  .yd-philo-img { width: 100%; height: auto; aspect-ratio: 680 / 480; }
  .yd-fee-risk, .yd-check, .yd-bandhead, .yd-fee, .yd-accessmap, .yd-photos, .yd-smallhead--inset, .yd-text--inset { max-width: calc(100% - 80px); }
  .yd-check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yd-clinicinfo, .yd-footer-grid { grid-template-columns: minmax(0, 560px) minmax(0, 560px); column-gap: 40px; padding-left: 40px; padding-right: 40px; }
  .yd-director-inner { grid-template-columns: minmax(0, 1fr) 400px; column-gap: 40px; padding: 0 40px; }
  .yd-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: calc(100% - 80px); gap: 24px; }
  .yd-footer-links { padding-left: 40px; padding-right: 40px; }
  .yd-footer-col { width: auto; flex: 1 1 0; }
  .yd-footer-list--site, .yd-footer-list--medical { grid-template-columns: repeat(2, max-content); }
  .yd-med-big-label { padding-left: 40px; }
  .yd-med-big-jp { font-size: 26px; }
  .yd-kids-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .yd-kids-photos img { width: 100%; height: auto; aspect-ratio: 8 / 5; }
}
@media (max-width: 1100px) {
  body .desktop-nav { display: none; }
  body .menu-trigger { display: inline-flex; }
}

/* ============================================================
   SP（〜768px）— Figma TOP_sp（375）。下層は TOP の縮め方を当てはめる
   ============================================================ */
@media (max-width: 1100px) {
  /* ハンバーガー（Figma 7:38580：40×40・白 1px 枠・白線 3 本）。スクロールしても使えるよう画面に固定し、青の半透明を敷く */
  body .menu-trigger {
    position: fixed; top: 16px; right: 20px; z-index: 1500; width: 40px; height: 40px; padding: 0;
    align-items: center; justify-content: center; border: 1px solid #fff; border-radius: 0; background: rgba(59, 128, 184, .85); color: #fff; cursor: pointer;
  }
  body .menu-trigger i { display: none; }
  body .menu-trigger::before { content: ""; width: 20px; height: 3px; background: #fff; box-shadow: 0 -8px 0 #fff, 0 8px 0 #fff; }
  /* SP メニュー（Figma 1:7：#2496B3 の全面・白字・項目は日本語＋英字・区切り線） */
  body .mobile-nav-overlay { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; padding: 70px 40px 40px; overflow-y: auto; background: var(--yd-teal); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
  body .mobile-nav-overlay.active { opacity: 1; visibility: visible; }
  body .sp-menu-close { position: absolute; top: 16px; right: 20px; width: 40px; height: 40px; border: 1px solid #fff; border-radius: 0; background: none; color: #fff; font-size: 20px; display: inline-flex; align-items: center; justify-content: center; }
  body .sp-menu-list { display: flex; flex-direction: column; width: 100%; max-width: 335px; margin: 0 auto; }
  body .sp-menu-item { border-bottom: 1px solid rgba(255, 255, 255, .8); }
  body .sp-menu-link { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 16px 0 14px; background: none; border: none; text-align: left; color: #fff; cursor: pointer; }
  body .sp-menu-jp { font-family: var(--f-jp); font-size: 18px; line-height: 24px; color: #fff; letter-spacing: 0; text-indent: 0; }
  body .sp-menu-en { font-family: var(--f-en); font-size: 16px; line-height: 20px; letter-spacing: 0; text-indent: 0; color: #fff; }
  body .sp-menu-caret { margin-left: 12px; font-size: 11px; color: #fff; }
  body .sp-menu-children { margin: 0 0 14px; padding: 6px 14px; background: rgba(255, 255, 255, .12); }
  body .sp-menu-child { display: block; padding: 9px 0; font-family: var(--f-jp); font-size: 15px; line-height: 22px; color: #fff; }
  body .sp-menu-child + .sp-menu-child { border-top: 1px solid rgba(255, 255, 255, .3); }
}
@media (max-width: 768px) {
  body { font-size: 13px; line-height: 26px; }
  body.has-floating-actions { padding-bottom: 60px; }
  /* ヘッダー（Figma 7:38578：375×72・左右 20） */
  body .global-header { height: 72px; padding: 10px 20px; }
  body .header-logo { left: 20px; top: 10px; width: 130px; height: 52px; }
  body .header-logo::before { font-size: 20px; line-height: 24px; letter-spacing: 2px; text-indent: 2px; padding-bottom: 9px; }
  body .header-logo::after { margin-top: 9px; font-size: 10px; line-height: 10px; }
  body .header-page-eyebrow { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); opacity: 0; }
  .yd-topboxes { display: none; }
  .yd-wave { height: 64px; }
  /* MV（Figma TOP_sp：写真 375×670・下端の波・その下に TEL／ACCESS） */
  .yd-mv { height: auto; overflow: visible; padding-bottom: 0; }
  .yd-mv-photo { position: relative; height: 670px; }
  .yd-mv-slide { object-position: 32% 50%; }
  .yd-mv-catch { left: 50%; top: 466px; width: 335px; height: 140px; margin-left: -168px; }
  .yd-mv-bubble { width: 335px; height: 128px; margin: 0; top: 6px; }
  .yd-mv-copy { left: 0; top: 24px; width: 335px; font-size: 16px; line-height: 32px; letter-spacing: 1.6px; }
  .yd-mv-em { font-size: 20px; letter-spacing: 2px; }
  .yd-mv-underline { left: 82px; top: 95px; width: 212px; height: 15px; }
  .yd-mv-stars { left: 287px; top: 54px; width: 46px; height: 59px; }
  .yd-mv-dashes { left: 6px; top: -8px; width: 47px; height: 47px; }
  /* 波形の帯（Figma SP の Union：上の波 60・下の波 57。左右反転は無し） */
  .yd-band, body .nlg-grid, body .news-article-body-section {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 375 60' preserveAspectRatio='none'%3E%3Cpath d='M188.285 26.441C267.5 -14.56 331.5 -2.56 375 26.441L375 60L0 60L0 26.441C60.5 66.44 167.04 37.437 188.285 26.441Z' fill='%23F5F0E9'/%3E%3C/svg%3E") left top / 100% 60px no-repeat,
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 375 57' preserveAspectRatio='none'%3E%3Cpath d='M375 30.499C331.5 59.5 267.5 71.5 188.285 30.499C167.04 19.503 60.5 -9.499 0 30.5L0 0L375 0Z' fill='%23F5F0E9'/%3E%3C/svg%3E") left bottom / 100% 57px no-repeat,
      linear-gradient(var(--yd-beige), var(--yd-beige)) left 59px / 100% calc(100% - 115px) no-repeat !important;
  }
  .yd-band--f1, .yd-band--medical { transform: none; }
  .yd-band--info { top: 123px; height: 514px; }
  .yd-band--f1 { top: 434px; height: 514px; }
  .yd-band--f4 { top: 1306px; height: 1008px; }
  .yd-band--medical { top: 244px; height: 514px; }
  .yd-band--gallery { top: 0; height: 334px; }
  /* NEWS／INFORMATION（Figma 7:38605：335 幅） */
  .yd-info { padding: 40px 0 70px; }
  .yd-info-grid { grid-template-columns: minmax(0, 1fr); row-gap: 40px; padding: 0 20px; }
  .yd-info-il { display: none; }
  .yd-info-head { margin-top: 0; }
  .yd-info-head-en { font-size: 24px; line-height: 28.8px; }
  .yd-info-head-jp { font-size: 16px; line-height: 19.2px; }
  .yd-news { margin-top: 20px; }
  body .yd-news .news-bar-container { gap: 20px; }
  body .yd-news .news-bar-link { height: 32px; padding-bottom: 12px; }
  body .yd-news .news-date, body .yd-news .news-title { font-size: 13px; }
  .yd-info-body { gap: 15px; margin-top: 15px; }
  .yd-logo-jp { font-size: 28px; line-height: 33.6px; letter-spacing: 2.8px; padding-bottom: 10px; }
  .yd-logo-en { margin-top: 10px; font-size: 14px; line-height: 14px; }
  .yd-addr { font-size: 13px; line-height: 20.8px; }
  .yd-addr img { width: 15px; height: 20px; }
  .yd-transit { gap: 15px; width: 100%; }
  .yd-transit li { flex: 1 1 0; flex-direction: column; gap: 10px; width: auto; height: 83px; padding: 10px 5px; font-size: 13px; line-height: 20.8px; text-align: center; }
  .yd-transit li img { width: 30px; height: 30px; }
  .yd-hours, .yd-hours-table { width: 100%; }
  .yd-hours-table { height: 120px; font-size: 12px; line-height: 14.4px; }
  .yd-hours-table thead th { height: 38px; }
  .yd-hours-table tbody tr:first-child > * { height: 39px; }
  .yd-hours-table tbody tr:last-child > * { height: 41px; padding-bottom: 2px; }
  .yd-hours-table th:first-child { width: 30%; padding-left: 14px; }
  .yd-hours-table thead th:not(:first-child), .yd-hours-table td { width: auto !important; }
  .yd-on { width: 15px; height: 15px; }
  .yd-off { width: 8px; height: 8px; }
  .yd-hours-note { font-size: 12px; line-height: 21px; }
  /* GREETING（Figma 7:38814：写真が先・文が後） */
  .custom-html-inner > .yd-greeting { margin-top: 0 !important; }
  .yd-greeting { height: auto; }
  .yd-greeting-bg { background: linear-gradient(180deg, rgba(245, 240, 233, .2) 0%, var(--yd-beige) 40%), url('/image/assets/yd_a477dc05.webp') center top / auto 60% no-repeat; }
  .yd-greeting-bg::after { width: 100%; height: 155px; }
  .yd-greeting-inner { display: flex; flex-direction: column-reverse; gap: 30px; height: auto; padding: 40px 20px; }
  .yd-greeting-photo { width: 100%; height: auto; aspect-ratio: 335 / 391; box-shadow: 2.8px 2.8px 28px rgba(0, 0, 0, .25); }
  .yd-nameplate { width: 223px; height: 50px; padding-top: 7px; gap: 7px; }
  .yd-nameplate-role { font-size: 14px; line-height: 36px; }
  .yd-nameplate-name { font-size: 22px; line-height: 36px; }
  .yd-greeting-en { font-size: 32px; line-height: 32px; letter-spacing: 3.2px; }
  .yd-greeting-lead { margin-top: 20px; font-size: 18px; line-height: 28.8px; }
  .yd-greeting-text { margin-top: 20px; font-size: 13px; line-height: 26px; }
  .yd-greeting-text p + p { margin-top: 26px; }
  .yd-greeting-il { display: none; }
  /* 大見出し（SP は 48px・日本語 16px） */
  .yd-bighead { gap: 10px; }
  .yd-bighead-en { font-size: 48px; line-height: 48px; letter-spacing: 4.8px; text-indent: 4.8px; }
  .yd-bighead-en--outline { width: 260px; height: 48px; background-image: url('/image/assets/yd_title_feature_sp.svg'); background-size: 260px 48px; }
  .yd-bighead-jp { font-size: 16px; line-height: 16px; }
  .yd-bighead-brush { top: 15px; width: 295px; height: 92px; margin-left: -147.5px; }
  /* FEATURE（写真が先・文が後。文は中央の見出し＋本文 13px） */
  .yd-feature { padding: 45px 20px 20px; }
  .yd-feature-circle { left: -63px; top: 20px; width: 131px; height: 131px; }
  .yd-ft-il { display: none; }
  .yd-ft, .yd-ft--1, .yd-ft--2, .yd-ft--3, .yd-ft--4 { display: flex; flex-direction: column-reverse; gap: 20px; width: auto; max-width: none; margin: 30px 0 0; padding: 0; }
  .yd-ft--1 { margin-top: 20px; }
  .yd-ft--2 { flex-direction: column; }
  .yd-ft--2 .yd-ft-media { order: 1; }
  .yd-ft--2 .yd-ft-body { order: 2; }
  .yd-ft-body { display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .yd-ft-num-label { font-size: 12px; line-height: 12px; }
  .yd-ft-num-no { font-size: 48px; line-height: 48px; }
  .yd-ft-title, .yd-ft-title--3 { margin: 0; }
  .yd-ft-l { font-size: 16px; line-height: 26px; }
  .yd-ft-l--32, .yd-ft-l--32b, .yd-ft-l--32c { font-size: 20px; line-height: 30px; }
  .yd-ft-text { margin: 0; font-size: 13px; line-height: 26px; }
  .yd-ft--1 .yd-ft-media { width: 100%; height: auto; aspect-ratio: 335 / 216; }
  .yd-ft--2 .yd-ft-media { display: grid; grid-template-columns: 193fr 134fr; column-gap: 8px; height: auto; }
  .yd-ft-img--2a { margin-top: 25px; aspect-ratio: 193 / 216; }
  .yd-ft-img--2b { aspect-ratio: 134 / 216; }
  .yd-ft-headrow { flex-direction: column; align-items: flex-start; gap: 20px; }
  .yd-ft--3 .yd-ft-body { align-items: flex-start; }
  .yd-ft--3 .yd-ft-title--3 { text-align: left; }
  .yd-ft--3 { flex-direction: column-reverse; }
  .yd-ft--3 .yd-ft-media { width: 100%; height: auto; aspect-ratio: 335 / 160; margin: 0; }
  .yd-ft--4 .yd-ft-media { width: 100%; height: auto; aspect-ratio: 335 / 248; }
  .yd-ft-img--4a { width: 90%; height: 87%; }
  .yd-ft-img--4b { width: 45%; height: 39%; }
  /* 親子（Figma 7:40435：335・枠 20） */
  .yd-kids { padding: 40px 20px 40px; }
  .yd-kids-frame { max-width: none; width: auto; padding: 20px; }
  .yd-kids-box { gap: 20px; padding: 20px 6px; }
  .yd-kids-text, .yd-kids-photos { padding: 0 4px; }
  .yd-kids-head { gap: 18px; padding-bottom: 10px; font-size: 20px; line-height: 32px; white-space: nowrap; }
  .yd-kids-head img { height: 40px; }
  .yd-kids-text { margin: 0; font-size: 13px; line-height: 26px; text-align: left; }
  .yd-kids-photos { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  /* MEDICAL（Figma 7:38742） */
  .yd-medical { padding-top: 80px; }
  .yd-medical-circle { right: -31px; top: 0; width: 138px; height: 138px; }
  .yd-bighead--medical .yd-bighead-bird { left: calc(50% - 150px); top: -40px; width: 43px; height: 46px; }
  .yd-med-big { grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
  .yd-med-big a { height: 344px; }
  .yd-med-big-label { height: 96px; padding: 18px 30px 0 48px; }
  .yd-med-big-label::before { width: 42px; height: 64px; }
  .yd-med-big-label::after { right: 30px; top: 46px; width: 35px; height: 4px; }
  .yd-med-big-jp { font-size: 24px; line-height: 30px; }
  .yd-med-small-wrap { padding: 40px 20px; }
  .yd-med-small { flex-direction: column; align-items: stretch; gap: 15px; }
  .yd-med-small a { width: 100%; height: 96px; }
  .yd-med-small a > img { width: 46px; height: 46px; }
  .yd-med-small-jp { font-size: 20px; line-height: 30px; }
  /* INSTAGRAM・ギャラリー */
  .yd-insta { padding-top: 60px; }
  .yd-bighead--insta { position: relative; }
  .yd-bighead--insta .yd-bighead-bird { position: absolute; right: -10px; top: -30px; margin: 0; width: 42px; height: 46px; }
  .yd-insta-embed { margin-top: 20px; }
  .custom-html-inner > .yd-gallery { margin-top: 20px !important; margin-bottom: 40px !important; }
  .yd-gallery { height: 334px; }
  .yd-gallery-row { top: 69px; gap: 10px; width: 830px; margin-left: -415px; }
  .yd-gallery-row li { width: 200px; height: 156px; margin-top: 16px; }
  .yd-gallery-row li.is-low { width: 200px; height: 147px; margin-top: 40px; }
  .yd-gallery-il { right: -13px; top: 146px; width: 62px; height: 131px; }
  /* フッター（Figma 7:38825） */
  .yd-footer-access { padding: 60px 20px 20px; }
  .yd-footer-grid { grid-template-columns: minmax(0, 1fr); row-gap: 20px; width: 100%; margin-top: 20px; padding: 0; }
  .yd-footer-left { gap: 20px; }
  .yd-telbtn { width: 240px; height: 70px; }
  .yd-telbtn-num { font-size: 20px; }
  .yd-footer-map { max-width: none; width: 100%; height: 320px; margin-top: 20px; }
  .yd-footer-links { flex-direction: column; gap: 40px; padding: 40px 20px; }
  .yd-footer-col-head { padding-bottom: 10px; font-size: 24px; line-height: 28.8px; }
  .yd-footer-list { gap: 14px 20px; margin-top: 10px; }
  .yd-footer-list--site, .yd-footer-list--medical { grid-template-columns: repeat(2, max-content); }
  .yd-footer-list a { font-size: 14px; line-height: 18px; }
  .yd-copy { padding: 32px 10px; }
  /* お知らせ（SP：TOP の SP の縮め方） */
  body .news-section-header { margin-bottom: 20px !important; }
  body .news-section-header::before { padding-bottom: 29.5px; margin-bottom: -1.5px; font-size: 24px; line-height: 32px; background-image: url('/image/assets/yd_wave_line_sp.svg'); background-size: 2160px 13.5px; }
  body .news-list-grid-section { margin-top: 30px; }
  body .nlg-grid { min-height: 340px; margin-bottom: 40px !important; padding: 80px 20px 90px !important; }
  body .nlg-grid::before { left: -63px; top: -50px; width: 131px; height: 131px; }
  body .nlg-grid::after, body .news-article-body-section::after { right: -13px; bottom: 16px; width: 62px; height: 120px; }
  body a.nlg-card, body .nlg-card { gap: 12px; padding: 14px 44px 14px 0 !important; }
  body .nlg-card::after { right: 0; width: 30px; height: 4px; margin-top: -2px; }
  body .nlg-img { width: 90px !important; height: 60px !important; }
  body .nlg-body { flex-direction: column; align-items: flex-start; gap: 4px; }
  body .nlg-date { font-size: 13px !important; }
  body .nlg-title { font-size: 14px !important; line-height: 22.4px !important; }
  body .news-article-body-section { margin-bottom: 40px !important; padding: 80px 20px 140px !important; }
  body .news-article-body-section::before { left: -63px; top: 20px; width: 131px; height: 131px; }
  body .nab-container { padding: 30px 20px 40px !important; }
  body .nab-header { margin-bottom: 24px !important; padding-bottom: 29.5px !important; background-image: url('/image/assets/yd_wave_line_sp.svg'); background-size: 2160px 13.5px; }
  body .nab-header::before { width: 22px; height: 36px; margin-bottom: 6px; }
  body .nab-date { font-size: 13px !important; }
  body .nab-title { font-size: 20px !important; line-height: 32px !important; }
  body .nab-body-text { font-size: 13px !important; line-height: 26px !important; }
  body .nab-footer-nav { margin-top: 30px !important; }
  body .btn-nab-back { width: 100% !important; max-width: 240px; height: 50px; font-size: 14px !important; }
  /* 下層ヒーロー（SP の Figma は無い：TOP の SP ヘッダーに合わせ 375×260 程度） */
  .yd-hero { height: 260px; }
  .yd-hero-photo { height: 260px; }
  .yd-hero-head { right: 20px; top: 132px; }
  .yd-hero-title { font-size: 32px; line-height: 40px; }
  .yd-hero-en { margin-top: 0; font-size: 18px; line-height: 24px; }
  /* 下層の部品（PC の余白を 0.6 倍に） */
  .yd-page { padding-bottom: 40px; }
  .yd-page > * { margin-top: calc(var(--mt, 0) * .6); }
  .yd-page > :first-child { margin-top: 30px; }
  .yd-sechead { margin-bottom: -1.5px; padding-bottom: 29.5px; font-size: 24px; line-height: 32px; background-image: url('/image/assets/yd_wave_line_sp.svg'); background-size: 2160px 13.5px; }
  .yd-2col, .yd-feat, .yd-philo, .yd-philo--imgR { display: flex; flex-direction: column; gap: 20px; width: auto; max-width: none; margin-left: 20px; margin-right: 20px; padding: 0; }
  .yd-2col-img, .yd-feat-img, .yd-philo-img { width: 100%; height: auto; aspect-ratio: 3 / 2; order: 0 !important; }
  .yd-2col-head { padding-bottom: 12px; font-size: 18px; line-height: 28.8px; background-size: 100% 1px; }
  .yd-2col-text, .yd-feat-text { margin-top: 12px; font-size: 13px; line-height: 26px; }
  .yd-check { max-width: none; width: auto; margin-left: 20px; margin-right: 20px; padding: 20px 15px; }
  .yd-check-head { height: 70px; padding: 12px 6px; }
  .yd-check-en { font-size: 34px; line-height: 34px; letter-spacing: 4px; text-indent: 4px; }
  .yd-check-jp { margin-top: -10px; font-size: 15px; line-height: 20px; }
  .yd-check-list { grid-template-columns: minmax(0, 1fr); margin-top: 10px; }
  .yd-check-list li { height: auto; min-height: 44px; padding: 10px 6px; font-size: 13px; line-height: 19px; letter-spacing: .6px; }
  .yd-bandhead { max-width: none; width: auto; height: auto; min-height: 56px; margin-left: 20px; margin-right: 20px; padding: 12px 20px; font-size: 18px; line-height: 26px; }
  .yd-bandhead::before, .yd-bandhead::after { width: 70px; height: 100%; }
  .yd-smallhead { gap: 8px; padding-bottom: 8px; font-size: 17px; line-height: 24px; }
  .yd-smallhead::before { width: 18px; height: 30px; }
  .yd-smallhead--inset, .yd-text--inset, .yd-text--center { max-width: none; width: auto; margin-left: 20px; margin-right: 20px; }
  .yd-text { font-size: 13px; line-height: 26px; }
  .yd-text--center { text-align: left; }
  .yd-clinicinfo { grid-template-columns: minmax(0, 1fr); row-gap: 20px; padding: 40px 20px; }
  .yd-accessmap { max-width: none; width: auto; height: 300px; margin-left: 20px; margin-right: 20px; }
  .yd-transit--wide { flex-direction: column; gap: 10px; margin-left: 20px; margin-right: 20px; width: auto; }
  .yd-transit--wide li { width: auto; height: auto; flex-direction: row; padding: 10px; text-align: left; }
  .yd-photos { max-width: none; width: auto; gap: 10px; margin-left: 20px; margin-right: 20px; }
  .yd-photos li { width: calc(50% - 5px); }
  .yd-photos figure { width: 100%; }
  .yd-photos img { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .yd-director { padding: 30px 20px; }
  .yd-director-inner { display: flex; flex-direction: column-reverse; gap: 30px; padding: 0; }
  .yd-director-catch { font-size: 18px; line-height: 28.8px; padding-left: 14px; }
  .yd-director-text { margin-top: 20px; font-size: 13px; line-height: 26px; }
  .yd-greeting-photo--staff { width: 100%; height: auto; aspect-ratio: 335 / 391; }
  .yd-career { display: flex; flex-direction: column; gap: 30px; width: auto; max-width: none; margin-left: 20px; margin-right: 20px; }
  .yd-career-list li { flex-direction: column; gap: 0; font-size: 13px; line-height: 22px; padding: 6px 0; }
  .yd-career-year { color: var(--yd-blue); }
  .yd-societies { font-size: 13px; line-height: 26px; }
  .yd-preparing { font-size: 24px; line-height: 48px; }
  .yd-flow { grid-template-columns: minmax(0, 1fr); gap: 15px; max-width: none; margin-left: 20px; margin-right: 20px; }
  .yd-flow-card { padding: 24px 20px 26px; }
  .yd-flow-card img { width: 60px; height: 60px; }
  .yd-flow-head { margin-top: 12px; padding-bottom: 12px; font-size: 18px; line-height: 28px; }
  .yd-flow-text { margin-top: 12px; font-size: 13px; line-height: 26px; }
  .yd-fee { max-width: none; width: auto; margin-left: 20px; margin-right: 20px; }
  .yd-fee-hint { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin: 0 0 6px; font-size: 11px; line-height: 16px; color: var(--yd-line); }
  .yd-fee-hint::after { content: ""; width: 30px; height: 4px; background: url('/image/assets/yd_ic_arrow.svg') center / contain no-repeat; }
  .yd-fee-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .yd-fee-table { width: 660px; font-size: 13px; line-height: 20px; }
  .yd-fee-table th, .yd-fee-table td { padding: 8px 6px; }
  .yd-fee-table th:first-child { width: 170px; }
  .yd-fee-table thead th:nth-child(2) { width: 150px; }
  .yd-fee-table thead th:nth-child(3) { width: 120px; }
  .yd-fee-table thead th:nth-child(4) { width: 110px; }
  .yd-fee-table td.yd-fee-span { font-size: 12px; }
  /* 1 列目（診療項目）は横にスクロールしても残す */
  .yd-fee-table th:first-child { position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 var(--yd-line); }
  .yd-fee-table thead th:first-child { background: var(--yd-blue); }
  .yd-fee-risk { max-width: none; width: auto; margin-left: 20px; margin-right: 20px; padding: 18px 16px 20px; border-left-width: 4px; }
  .yd-fee-risk-item + .yd-fee-risk-item { margin-top: 16px; padding-top: 16px; }
  .yd-fee-risk-head { font-size: 15px; line-height: 24px; }
  .yd-fee-risk-head::before { width: 14px; height: 24px; }
  .yd-fee-risk-text { font-size: 13px; line-height: 24px; }
  .yd-fee-risk-note { font-size: 12px; line-height: 20px; }
  .yd-fee-note { width: auto; margin-left: 20px; margin-right: 20px; padding: 20px 16px; font-size: 12px; line-height: 22px; }
}
