@charset "UTF-8";
/* ==========================================================
   いまがね歯科医院 スタイルシート（全ページ共通）
   色・角丸・文字サイズは「:root」の値を変えるだけで
   サイト全体がまとめて変わります。
   ========================================================== */

:root {
  /* ----- 色（藍色ベース） ----- */
  --color-main:        #165E83;   /* 藍色：見出し・カード・ボタン */
  --color-main-dark:   #0F4462;   /* 濃い藍色：ホバー時・フッター */
  --color-main-light:  #2F7BA3;   /* 明るい藍色：カードの色違い */
  --color-accent:      #C2A36B;   /* ゴールド：英字見出し・飾り線 */
  --color-accent-dark: #A88A55;
  --color-bg:          #FFFFFF;
  --color-bg-blue:     #EEF4F8;   /* 薄い藍色の背景帯 */
  --color-bg-warm:     #FAF7F2;   /* あたたかみのある生成り色の背景帯 */
  --color-text:        #2B3A44;   /* 本文 */
  --color-text-sub:    #5E6B73;   /* 注釈 */
  --color-border:      #D8E2E9;
  --color-white:       #FFFFFF;

  /* ----- 角丸 ----- */
  --radius:   12px;   /* カード・写真 */
  --radius-s: 8px;    /* ボタン・小さなパーツ */

  /* ----- 影 ----- */
  --shadow: 0 6px 20px rgba(22, 94, 131, .08);

  /* ----- フォント ----- */
  --font-heading: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --font-body:    "Noto Sans JP", "Hiragino Sans", sans-serif;

  /* ----- 文字サイズ（スマホ → PC で自動的に変わる） ----- */
  --fs-ll: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);     /* 28→40px */
  --fs-l:  clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);   /* 20→26px */
  --fs-m:  clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);    /* 17→20px */
  --fs-base: 1rem;                                      /* 16px */
  --fs-s:  0.875rem;                                    /* 14px */
  --fs-xs: 0.8125rem;                                   /* 13px */

  /* ----- 余白 ----- */
  --container: 1200px;
  --container-narrow: 900px;
  --gutter: 20px;
  --section-space: clamp(64px, 4rem + 2vw, 104px);
  --header-h: 70px;
}

/* ==========================================================
   リセット・基本
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.8;
  letter-spacing: 0.04em;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .2s, background-color .2s, color .2s, box-shadow .2s; }
a:hover { opacity: .8; }

/* ==========================================================
   レイアウト
   ========================================================== */
.container {
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }

.section { padding: var(--section-space) 0; }
.section--blue { background: var(--color-bg-blue); }
.section--warm { background: var(--color-bg-warm); }

/* セクション見出し（英字 ＋ 日本語） */
.section__title {
  margin-bottom: 2.75rem;
  color: var(--color-main);
  font-family: var(--font-heading);
  font-size: var(--fs-ll);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-align: center;
}
.section__title-en {
  display: block;
  margin-bottom: .2em;
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: 0.3em;
}
.section__title::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin: .6em auto 0;
  border-radius: 2px;
  background: var(--color-accent);
}
.section__lead { margin: -1.25rem auto 2.5rem; max-width: 760px; text-align: center; }

.note { color: var(--color-text-sub); font-size: var(--fs-xs); line-height: 1.7; }

/* 医院で撮影する写真の仮置き枠（写真が届いたら <img> に差し替え） */
.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background:
    repeating-linear-gradient(45deg, rgba(22, 94, 131, .04) 0 12px, transparent 12px 24px),
    var(--color-bg-blue);
  color: var(--color-text-sub);
  font-size: var(--fs-xs);
  line-height: 1.6;
  text-align: center;
}
.photo-placeholder svg { width: 32px; height: 32px; fill: var(--color-main-light); opacity: .6; }
.greeting__image .photo-placeholder,
.staff__image .photo-placeholder { border-radius: var(--radius); }

/* ==========================================================
   ボタン
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .85em 2.4em;
  border-radius: var(--radius-s);
  background: var(--color-main);
  color: var(--color-white);
  font-size: var(--fs-s);
  letter-spacing: .1em;
}
.btn::after { content: "›"; font-size: 1.2em; line-height: 1; }
.btn:hover { opacity: 1; background: var(--color-main-dark); }
.btn--outline { background: var(--color-white); border: 1px solid var(--color-main); color: var(--color-main); }
.btn--outline:hover { background: var(--color-main); color: var(--color-white); }
.btn-area { margin-top: 2.5rem; text-align: center; }

/* ==========================================================
   ヘッダー
   ========================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 1px 0 var(--color-border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: calc(var(--container) + var(--gutter) * 2);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.header__logo { display: flex; align-items: center; gap: .6rem; line-height: 1.3; color: var(--color-main); }
.header__logo-mark { flex-shrink: 0; width: 44px; height: 44px; }   /* ロゴマークの大きさ（スマホ） */
.header__logo-text { display: flex; flex-direction: column; }
@media (min-width: 1024px) {
  .header__logo-mark { width: 56px; height: 56px; }                  /* ロゴマークの大きさ（PC） */
}
@media (max-width: 374px) {
  .header__logo-mark { width: 36px; height: 36px; }                  /* 小さいスマホ用 */
  .header__logo-main { font-size: 1.2rem; }
}
.header__logo-sub  { font-size: 0.6875rem; letter-spacing: .1em; }
.header__logo-main { font-family: var(--font-heading); font-size: 1.375rem; font-weight: 500; letter-spacing: .12em; }

.header__toggle {
  position: relative;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--radius-s);
  background: var(--color-main);
  cursor: pointer;
}
.header__toggle span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-white);
  transition: transform .3s, opacity .3s;
}
.header__toggle span:nth-child(1) { top: 14px; }
.header__toggle span:nth-child(2) { top: 21px; }
.header__toggle span:nth-child(3) { top: 28px; }
.header__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__toggle.is-open span:nth-child(2) { opacity: 0; }
.header__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  padding: 1rem var(--gutter) 2rem;
  background: var(--color-main);
  color: var(--color-white);
  border-radius: 0 0 var(--radius) var(--radius);
  transform: translateY(-120%);
  transition: transform .35s;
  z-index: -1;
}
.nav.is-open { transform: translateY(0); }
.nav__list li { border-bottom: 1px solid rgba(255, 255, 255, .2); }
.nav__list a { display: block; padding: 1rem 0; letter-spacing: .1em; }
.nav__list a[aria-current="page"] { color: var(--color-accent); }
.nav__contact { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.5rem; text-align: center; }

.tel { font-weight: 700; letter-spacing: .06em; }
.btn-tel {
  display: inline-block;
  padding: .55em 1.4em;
  border-radius: var(--radius-s);
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 700;
  letter-spacing: .06em;
}

.btn-web {
  display: inline-block;
  padding: .55em 1.4em;
  border-radius: var(--radius-s);
  background: var(--color-white);
  color: var(--color-main);
  font-weight: 700;
  letter-spacing: .1em;
}
@media (min-width: 1024px) {
  .btn-web { background: var(--color-main); color: var(--color-white); }
}

/* ==========================================================
   トップ：メインビジュアル
   ========================================================== */
.hero__image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 40% 60%; }
/* キャッチの白いカードを写真の下側に少し重ねる */
.hero__body { position: relative; display: grid; gap: 1.5rem; margin-top: -3rem; }
.hero__text {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow);
}
.hero__catch {
  color: var(--color-main);
  font-family: var(--font-heading);
  font-size: clamp(1.625rem, 1.2rem + 2vw, 2.75rem);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: .16em;
}
.hero__lead { margin-top: .75rem; font-size: var(--fs-s); }

/* 診療時間カード（トップ・フッターで共通） */
.hours-card {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow);
}
.hours-card__title {
  margin-bottom: .5rem;
  color: var(--color-main);
  font-family: var(--font-heading);
  font-size: var(--fs-m);
  font-weight: 500;
  letter-spacing: .1em;
}

/* 診療時間表 */
.hours {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: var(--radius-s);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  font-size: var(--fs-s);
  text-align: center;
}
.hours th, .hours td { padding: .6em .25em; border-bottom: 1px solid var(--color-border); }
.hours tbody tr:last-child td { border-bottom: none; }
.hours thead th { background: var(--color-main); color: var(--color-white); font-weight: 400; }
.hours td { color: var(--color-main); }
.hours td:first-child { white-space: nowrap; padding: .6em .6em; }
.hours td.off { color: var(--color-text-sub); }
.hours + .note { margin-top: .5rem; }

/* ==========================================================
   お知らせ
   ========================================================== */
.news {
  padding: .5rem 1.5rem;
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow);
}
.news li {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--color-border);
}
.news li:last-child { border-bottom: none; }
.date { color: var(--color-accent-dark); font-size: var(--fs-xs); letter-spacing: .14em; }

/* ==========================================================
   About Us（ご挨拶）
   ========================================================== */
.about { display: grid; gap: 2.5rem; align-items: center; }
.about__catch {
  margin-bottom: 1.5rem;
  color: var(--color-main);
  font-family: var(--font-heading);
  font-size: var(--fs-l);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .1em;
}
.about__text p + p { margin-top: 1.2em; }
.about__photo img { width: 100%; border-radius: var(--radius); }
.about__photo figcaption {
  margin-top: .8rem;
  color: var(--color-main);
  font-family: var(--font-heading);
  text-align: right;
}
.about__photo figcaption span { margin-right: 1em; font-size: var(--fs-xs); }

/* 写真3枚の帯 */
.pictures { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 3rem; }
.pictures img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* ==========================================================
   医院の特徴（画像と文章が交互）
   ========================================================== */
.features { display: grid; gap: 2rem; }
.feature {
  display: grid;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--color-main) 0%, var(--color-main-light) 100%);
  color: var(--color-white);
  box-shadow: var(--shadow);
}
.feature__image img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.feature__body { padding: 1.75rem 1.5rem 2rem; }
.feature__num {
  display: inline-block;
  margin-bottom: .6rem;
  padding: .1em .9em;
  border-radius: var(--radius-s);
  background: var(--color-accent);
  color: var(--color-white);
  font-size: var(--fs-xs);
  letter-spacing: .14em;
}
.feature__title {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--fs-l);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: .08em;
}
.feature__body p { font-size: var(--fs-s); line-height: 1.9; }
/* 青い背景の上のボタンは白い枠線に */
.feature__body .btn {
  margin-top: 1.25rem;
  background: transparent;
  border: 1px solid var(--color-white);
  color: var(--color-white);
}
.feature__body .btn:hover { background: var(--color-white); color: var(--color-main); }

/* ==========================================================
   バナー（医院紹介・採用情報）
   ========================================================== */
.banners { display: grid; gap: 1rem; }
.banner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 180px;
  padding: 1.5rem 2rem;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--color-white);
  isolation: isolate;
}
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner::before { content: ""; position: absolute; inset: 0; background: rgba(15, 68, 98, .62); z-index: -1; transition: background .3s; }
.banner:hover { opacity: 1; }
.banner:hover::before { background: rgba(15, 68, 98, .45); }
.banner__en { color: var(--color-accent); font-size: var(--fs-xs); letter-spacing: .3em; }
.banner__title { font-family: var(--font-heading); font-size: var(--fs-l); letter-spacing: .14em; }
.banner__title::after { content: " ›"; }

/* ==========================================================
   診療項目
   ========================================================== */
.menu-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.menu-list a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  height: 100%;
  padding: 1.5rem .75rem 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--color-main) 0%, var(--color-main-light) 100%);
  color: var(--color-white);
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.menu-list a:hover { opacity: 1; transform: translateY(-3px); box-shadow: 0 10px 28px rgba(22, 94, 131, .25); }
/* アイコンを白い丸の中に入れる */
.menu-list__icon {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--color-white);
}
.menu-list__icon img { width: auto; height: 62px; object-fit: contain; }
.menu-list__icon svg { width: 60px; height: 60px; }
/* スマホで最後の1つが余るときは中央に置く */
@media (max-width: 767px) {
  .menu-list li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - .5rem); }
}
.menu-list__name {
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 500;
  letter-spacing: .1em;
  text-align: center;
}

/* ==========================================================
   写真が流れる帯（スライダー）
   ========================================================== */
.photo-loop { overflow: hidden; padding: 3rem 0; }
.photo-loop__track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: loop 50s linear infinite;
}
.photo-loop img { width: 280px; aspect-ratio: 55 / 32; object-fit: cover; border-radius: var(--radius); }
@keyframes loop { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .photo-loop__track { animation: none; } }

/* ==========================================================
   よくあるご質問（開閉式）
   ========================================================== */
.qa { display: grid; gap: .9rem; }
.qa details {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow);
}
.qa summary {
  position: relative;
  display: flex;
  gap: .9rem;
  padding: 1.1rem 3.2rem 1.1rem 1.25rem;
  color: var(--color-main);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  transition: transform .3s;
}
.qa details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.qa__q, .qa__a {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--color-main);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1;
}
.qa__a { background: var(--color-accent); }
.qa__answer { display: flex; gap: .9rem; padding: 0 1.25rem 1.25rem; }
.qa__answer p { font-size: var(--fs-s); line-height: 1.9; padding-top: .15rem; }

/* ==========================================================
   下層ページ：ページタイトル
   ========================================================== */
.page-header {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 200px;
  overflow: hidden;
  color: var(--color-white);
  text-align: center;
  isolation: isolate;
}
.page-header img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-header::before { content: ""; position: absolute; inset: 0; background: rgba(15, 68, 98, .55); z-index: -1; }
.page-header__en { display: block; color: var(--color-accent); font-size: var(--fs-xs); letter-spacing: .3em; }
.page-header__title { font-family: var(--font-heading); font-size: var(--fs-ll); font-weight: 300; letter-spacing: .16em; }

.breadcrumb { padding: .9rem 0; font-size: var(--fs-xs); color: var(--color-text-sub); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .5em; }
.breadcrumb li + li::before { content: "›"; margin-right: .5em; }
.breadcrumb a { color: var(--color-main); }

/* ご予約について（下層ページ共通） */
.reserve {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
.reserve__title {
  color: var(--color-main);
  font-family: var(--font-heading);
  font-size: var(--fs-m);
  font-weight: 500;
  text-align: center;
  letter-spacing: .1em;
}
.reserve__card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--color-bg-blue);
}
.reserve__card h3 {
  margin-bottom: .5rem;
  color: var(--color-main);
  font-size: var(--fs-base);
  font-weight: 700;
}
.reserve__card p { font-size: var(--fs-s); }
.reserve__card .btn-tel { margin-top: .9rem; }
.reserve--contact { margin-bottom: 10px; }   /* 採用情報ページの「応募・お問い合わせ」 */

/* ==========================================================
   下層ページ：医院紹介
   ========================================================== */
.greeting { display: grid; gap: 2rem; }
.greeting__image img { width: 100%; border-radius: var(--radius); }
.greeting__text p + p { margin-top: 1.2em; }
.greeting__name {
  text-align: right;
  color: var(--color-main);
  font-family: var(--font-heading);
  font-size: var(--fs-m);
}
.greeting__name span { margin-right: 1em; font-size: var(--fs-s); }

.profile {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  gap: .4rem 0;
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--color-bg-blue);
  font-size: var(--fs-s);
  line-height: 1.8;
}
.profile dt { color: var(--color-main); font-weight: 700; }
.profile dd + dt { margin-top: .8rem; }
.profile dd + dt + dd { margin-top: .8rem; }

.staff {
  display: grid;
  gap: 1.5rem;
  margin-top: 4rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow);
}
.staff__image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-s); }
.staff__title {
  margin-bottom: 1rem;
  color: var(--color-main);
  font-family: var(--font-heading);
  font-size: var(--fs-l);
  font-weight: 500;
  letter-spacing: .08em;
}
.staff__text p + p { margin-top: 1em; }

/* 院内写真のカード */
.gallery { display: grid; gap: 1.5rem; }
.gallery__item {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow);
}
.gallery__item img { width: 100%; aspect-ratio: 55 / 32; object-fit: cover; }
.gallery__title {
  padding: 1rem 1.25rem .4rem;
  color: var(--color-main);
  font-family: var(--font-heading);
  font-size: var(--fs-m);
  font-weight: 500;
  letter-spacing: .08em;
}
.gallery__item p { padding: 0 1.25rem 1.25rem; font-size: var(--fs-s); line-height: 1.8; }

/* 表（医院概要・募集要項） */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow);
  font-size: var(--fs-s);
}
.table th, .table td { padding: 1rem 1.25rem; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.table tr:last-child th, .table tr:last-child td { border-bottom: none; }
.table th { width: 30%; background: var(--color-bg-blue); color: var(--color-main); font-weight: 700; white-space: nowrap; }

/* ==========================================================
   下層ページ：診療項目
   ========================================================== */
.medical-block {
  display: grid;
  gap: 1.75rem;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow);
}
.medical-block + .medical-block { margin-top: 2.5rem; }
.medical-block__title {
  padding-bottom: .7rem;
  border-bottom: 2px solid var(--color-bg-blue);
  color: var(--color-main);
  font-family: var(--font-heading);
  font-size: var(--fs-l);
  font-weight: 500;
  letter-spacing: .12em;
}
.medical-block__title small {
  display: block;
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  letter-spacing: .3em;
}
.medical-block__image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-s); }
.medical-block__text p + p { margin-top: 1em; }
.medical-block__text h3 {
  margin: 1.5rem 0 .6rem;
  color: var(--color-main);
  font-size: var(--fs-base);
  font-weight: 700;
}
.check-list { display: grid; gap: .5rem; }
.check-list li {
  position: relative;
  padding: .6rem 1rem .6rem 2.4rem;
  border-radius: var(--radius-s);
  background: var(--color-bg-blue);
  font-size: var(--fs-s);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 1rem;
  color: var(--color-main);
  font-weight: 700;
}
.flow { display: grid; gap: .75rem; counter-reset: flow; }
.flow li {
  position: relative;
  padding: 1rem 1.25rem 1rem 3.4rem;
  border-radius: var(--radius-s);
  background: var(--color-bg-warm);
  font-size: var(--fs-s);
  counter-increment: flow;
}
.flow li::before {
  content: counter(flow);
  position: absolute;
  left: 1rem;
  top: 1rem;
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--color-main);
  color: var(--color-white);
  font-size: var(--fs-xs);
}
.flow strong { display: block; color: var(--color-main); }

/* ==========================================================
   下層ページ：採用情報
   ========================================================== */
.recruit-message {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.recruit-message img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.recruit-message__title {
  margin-bottom: 1.25rem;
  color: var(--color-main);
  font-family: var(--font-heading);
  font-size: var(--fs-l);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .1em;
}
.recruit-message p + p { margin-top: 1em; }
.job-label {
  display: inline-block;
  margin-bottom: 1rem;
  padding: .3em 1.2em;
  border-radius: var(--radius-s);
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 700;
  letter-spacing: .1em;
}

/* ==========================================================
   フッター
   ========================================================== */
.footer-info { background: var(--color-bg-blue); }
.footer-info__grid { display: grid; gap: 2rem; }
.footer-info__name {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .5rem;
  color: var(--color-main);
  font-family: var(--font-heading);
  font-size: var(--fs-l);
  letter-spacing: .14em;
}
.footer-info__mark { flex-shrink: 0; width: 48px; height: 48px; }   /* フッターのロゴマークの大きさ */
.footer-info__list {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  margin: 1.25rem 0;
  font-size: var(--fs-s);
}
.footer-info__list dt, .footer-info__list dd { padding: .6em 0; border-bottom: 1px solid var(--color-border); }
.footer-info__list dt { color: var(--color-main); font-weight: 700; }
.footer-info__map iframe {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: var(--radius);
}

.footer {
  padding: 3rem 0 6rem;        /* 下はスマホの固定ボタンぶん広め */
  background: var(--color-main-dark);
  color: var(--color-white);
  text-align: center;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.75rem;
  font-size: var(--fs-s);
}
.footer__copy { margin-top: 2rem; font-size: var(--fs-xs); opacity: .7; }

.fixed-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  box-shadow: 0 -4px 14px rgba(0, 0, 0, .12);
}
.fixed-cta a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  padding: .6em .25em .65em;
  color: var(--color-white);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
}
.fixed-cta svg { width: 22px; height: 22px; fill: currentColor; }
.fixed-cta__tel   { background: var(--color-main); }
.fixed-cta__hours { background: var(--color-main-light); }
.fixed-cta__web   { background: var(--color-accent); }

/* ==========================================================
   タブレット以上（768px〜）
   ========================================================== */
@media (min-width: 768px) {
  :root { --gutter: 40px; }

  .menu-list { grid-template-columns: repeat(3, 1fr); }
  .fixed-cta a { flex-direction: row; justify-content: center; gap: .5rem; padding: .9em; font-size: var(--fs-s); }
  .gallery   { grid-template-columns: repeat(2, 1fr); }
  .banners   { grid-template-columns: 1fr 1fr; }
  .news li   { flex-direction: row; gap: 2.5rem; align-items: center; }
  .reserve   { grid-template-columns: 1fr 1fr; }
  .reserve__title { grid-column: 1 / -1; }

  .feature { grid-template-columns: 1fr 1fr; }
  .feature:nth-child(even) .feature__image { order: 2; }
  .feature__image img { aspect-ratio: auto; min-height: 300px; }
  .feature__body { padding: 2.5rem; align-self: center; }

  .about { grid-template-columns: 1.3fr 1fr; gap: 3.5rem; }
  .greeting { grid-template-columns: 360px 1fr; align-items: start; gap: 3.5rem; }
  .staff { grid-template-columns: 1fr 1fr; align-items: center; padding: 2rem; gap: 2.5rem; }
  .medical-block { grid-template-columns: 360px 1fr; padding: 2.5rem; gap: 2.5rem; align-items: start; }
  .medical-block__title { grid-column: 1 / -1; }
  .recruit-message { grid-template-columns: 1fr 1fr; gap: 3rem; }

  .page-header { min-height: 280px; }
  .pictures { gap: 1rem; }
}

/* ==========================================================
   PC（1024px〜）
   ========================================================== */
@media (min-width: 1024px) {
  :root { --header-h: 90px; }

  .header__toggle { display: none; }
  .nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0;
    background: none;
    color: var(--color-main);
    border-radius: 0;
    transform: none;
    z-index: auto;
  }
  .nav__list { display: flex; gap: 1.75rem; }
  .nav__list li { border: none; }
  .nav__list a { position: relative; padding: .5rem 0; font-size: var(--fs-s); }
  .nav__list a[aria-current="page"] { color: var(--color-main); }
  .nav__list a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--color-accent);
  }
  .nav__contact { flex-direction: row; align-items: center; margin: 0; }

  /* メインビジュアル：写真の下側に、キャッチと診療時間カードを重ねる */
  .hero__image img { aspect-ratio: 1450 / 600; object-position: center 58%; }
  .hero__body {
    grid-template-columns: 1fr 460px;
    align-items: end;
    gap: 3rem;
    margin-top: -7rem;
    padding: 0;
    position: relative;
  }
  .hero__text {
    padding: 2.25rem 2.5rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow);
  }

  .menu-list { grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
  .gallery   { grid-template-columns: repeat(3, 1fr); }
  .footer-info__grid { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
  .footer-info__map iframe { aspect-ratio: auto; height: 100%; min-height: 440px; }

  .photo-loop img { width: 340px; }

  .footer { padding-bottom: 3rem; }
  .fixed-cta { display: none; }
}

/* ==========================================================
   お知らせ（投稿）の個別ページ・一覧のページ送り
   ========================================================== */
.post {
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow);
}
.post__title {
  margin: .4rem 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-bg-blue);
  color: var(--color-main);
  font-family: var(--font-heading);
  font-size: var(--fs-l);
  font-weight: 500;
}
.post__body > * + * { margin-top: 1em; }
.post__body img { border-radius: var(--radius-s); }
.pagination { margin-top: 2rem; text-align: center; }
.pagination .page-numbers {
  display: inline-block;
  min-width: 2.4em;
  margin: 0 .2em;
  padding: .4em .6em;
  border-radius: var(--radius-s);
  background: var(--color-white);
  color: var(--color-main);
  box-shadow: var(--shadow);
}
.pagination .page-numbers.current { background: var(--color-main); color: var(--color-white); }
@media (min-width: 768px) { .post { padding: 2.5rem; } }
#jobs{
display:none;
}
.demo-none{
display:noe;
}

/* ==========================================================
   WEB予約のお知らせ（WEB予約ボタンを押すと表示）
   ========================================================== */
.web-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: var(--gutter); }
.web-modal[hidden] { display: none; }
.web-modal__bg { position: absolute; inset: 0; background: rgba(15, 68, 98, .6); }
.web-modal__box {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 2.5rem 1.5rem 2rem;
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow);
}
.web-modal__title {
  margin-bottom: 1.25rem;
  color: var(--color-main);
  font-family: var(--font-heading);
  font-size: var(--fs-l);
  font-weight: 500;
  letter-spacing: .1em;
  text-align: center;
}
.web-modal__box h3 {
  margin: 1.5rem 0 .5rem;
  padding: .4em .9em;
  border-radius: var(--radius-s);
  background: var(--color-bg-blue);
  color: var(--color-main);
  font-size: var(--fs-base);
  font-weight: 700;
}
.web-modal__box p { font-size: var(--fs-s); }
.web-modal__box .btn-tel { margin: .9rem 0 .6rem; }
.web-modal__btn { margin-top: 2rem; text-align: center; }
.web-modal__btn .btn { width: 100%; max-width: 320px; font-size: var(--fs-base); }

/* ×ボタン */
.web-modal__close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--color-main);
  cursor: pointer;
}
.web-modal__close::before,
.web-modal__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-white);
}
.web-modal__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.web-modal__close::after  { transform: translate(-50%, -50%) rotate(-45deg); }
.web-modal__close:hover { background: var(--color-main-dark); }

body.is-modal-open { overflow: hidden; }
@media (min-width: 768px) { .web-modal__box { padding: 3rem 2.5rem 2.5rem; } }

/* WEB予約 準備中のお知らせ */
.web-modal__closed { text-align: center; }
.web-modal__lead {
  margin-bottom: 1rem;
  padding: .7em 1em;
  border-radius: var(--radius-s);
  background: var(--color-bg-blue);
  color: var(--color-main);
  font-size: var(--fs-m) !important;
  font-weight: 700;
}
.web-modal__closed .btn-tel { margin: 1.25rem 0 1rem; font-size: var(--fs-m); }
