@charset "UTF-8";

/* =========================================================
   色・書体の設定（ここを変えるとサイト全体が変わります）
   ========================================================= */
:root {
  --white: #FFFFFF;
  --mist: #F3F6F9;       /* うすい青みのグレー（背景の切り替え） */
  --line: #DCE3EA;       /* 線の色 */
  --ink: #0E1B2C;        /* 文字色（黒に近い紺） */
  --ink-sub: #55606E;    /* 補足の文字色 */
  --navy: #0B2E59;       /* 深い青（メインカラー） */
  --navy-deep: #071F3D;  /* さらに濃い青（設備セクション） */
  --blue: #2F7FC1;       /* 明るい青（細い線・数字のアクセント） */
  --ice: #9CC7E8;        /* 濃い背景の上のアクセント */

  --font-ja: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Noto Sans CJK JP", sans-serif;
  --font-en: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --container: 1160px;
  --r: 4px;             /* 角丸は小さく、シャープに */
}


/* =========================================================
   基本設定
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background-color: var(--white);
  color: var(--ink);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; background-color: var(--mist); }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

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

.section { padding: 140px 0; }

.en { font-family: var(--font-en); }
.sp-only { display: none; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}


/* =========================================================
   見出し・ボタン（共通）
   ========================================================= */

/* --- 見出し：英字の小見出し（前に細い線）＋日本語 --- */
.heading { margin-bottom: 64px; }

.heading__en {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue);
}

.heading__en::before {
  content: "";
  width: 32px;
  height: 1px;
  background-color: currentColor;
}

.heading__ja {
  margin-top: 18px;
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.55;
  letter-spacing: 0.08em;
}

.heading--center { text-align: center; }
.heading--center .heading__en { justify-content: center; }

.heading--light .heading__ja { color: var(--white); }
.heading--light .heading__en { color: var(--ice); }

/* --- ボタン --- */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: 999px;
  background-color: var(--navy);
  color: var(--white);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.12em;
  line-height: 1.5;
  transition: background-color 0.3s;
}

.btn:hover { background-color: var(--blue); }

.btn--small { padding: 10px 26px; font-size: 14px; }
.btn--large { padding: 18px 48px; font-size: 16px; }
.btn--block { display: flex; width: 100%; padding: 18px 24px; font-size: 17px; }

.btn--line {
  background-color: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn--line:hover { background-color: var(--navy); color: var(--white); }

.btn--white { background-color: var(--white); color: var(--navy); }
.btn--white:hover { background-color: var(--ice); }

.btn__sub {
  font-size: 12px;
  letter-spacing: 0.06em;
  opacity: 0.8;
}

/* --- 矢印つきのテキストリンク --- */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--navy);
}

.text-link::after {
  content: "";
  width: 40px;
  height: 1px;
  background-color: currentColor;
  transition: width 0.3s;
}

.text-link:hover::after { width: 56px; }


/* =========================================================
   架空サイトのお知らせバー
   ========================================================= */
.demo-bar {
  background-color: var(--ink);
  color: #E6ECF2;
  font-size: 12px;
  text-align: center;
  padding: 8px 16px;
  line-height: 1.6;
}

.demo-bar a { margin-left: 12px; text-decoration: underline; text-underline-offset: 3px; }


/* =========================================================
   ヘッダー
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.header.is-scrolled { border-bottom-color: var(--line); }

.header__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.logo__mark { width: 32px; height: 32px; flex-shrink: 0; }
.logo__text { display: flex; flex-direction: column; line-height: 1.35; }
.logo__name { font-weight: 700; font-size: 17px; letter-spacing: 0.1em; color: var(--ink); }
.logo__en { font-family: var(--font-en); font-weight: 500; font-size: 10px; letter-spacing: 0.28em; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 32px; font-size: 14px; letter-spacing: 0.1em; }
.nav__list a { position: relative; padding: 6px 0; }
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background-color: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.nav__list a:hover::after { transform: scaleX(1); }
.nav__sp-contact { display: none; }

.header__contact { display: flex; align-items: center; gap: 24px; }

.header__tel {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--navy);
}

.header__tel-label { font-family: var(--font-ja); font-weight: 400; font-size: 11px; color: var(--ink-sub); }

.menu-btn { display: none; }


/* =========================================================
   1. ファーストビュー
   ========================================================= */
.hero {
  position: relative;
  padding: 56px 0 0;
  overflow: hidden;
  /* うっすら方眼の背景 */
  background-image:
    linear-gradient(var(--mist) 1px, transparent 1px),
    linear-gradient(90deg, var(--mist) 1px, transparent 1px);
  background-size: 56px 56px;
}

.hero__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.hero__en {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--blue);
}

.hero__title {
  margin-top: 24px;
  font-weight: 500;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.4;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.hero__lead {
  margin-top: 32px;
  font-size: 16px;
  line-height: 2.1;
  color: var(--ink-sub);
}

.hero__actions {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

.hero__text .reveal:nth-child(2) { transition-delay: 0.12s; }
.hero__text .reveal:nth-child(3) { transition-delay: 0.24s; }
.hero__text .reveal:nth-child(4) { transition-delay: 0.36s; }

.hero__visual { position: relative; padding: 0 0 56px 0; }

.hero__photo {
  aspect-ratio: 7 / 8;
  overflow: hidden;
  border-radius: 280px 280px var(--r) var(--r); /* 上が丸いアーチ（レンズの形） */
}

/* 写真の一部を拡大して見せる丸いレンズ */
.hero__lens {
  position: absolute;
  left: -64px;
  bottom: 18%;
  width: 188px;
  height: 188px;
  border-radius: 50%;
  border: 6px solid var(--white);
  box-shadow: 0 20px 50px rgba(11, 46, 89, 0.22);
  overflow: hidden;
}

.hero__lens-img {
  position: absolute;
  inset: 0;
  background: url("images/hero.jpg") 58% 62% / 420% auto no-repeat;
}

/* レンズの十字線 */
.hero__lens::before,
.hero__lens::after {
  content: "";
  position: absolute;
  z-index: 1;
  background-color: rgba(255, 255, 255, 0.75);
}
.hero__lens::before { left: 50%; top: 18%; bottom: 18%; width: 1px; }
.hero__lens::after { top: 50%; left: 18%; right: 18%; height: 1px; }

.hero__lens-label {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 0 10px;
  border-radius: 999px;
  background-color: var(--navy);
  color: var(--white);
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.hero__coord {
  position: absolute;
  right: -8px;
  top: 40%;
  writing-mode: vertical-rl;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--ink-sub);
  transform: translateX(100%);
}

/* 数字で見る特徴 */
.hero__facts {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  background-color: var(--white);
}

.hero__facts li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px 24px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-sub);
}

.hero__facts li + li { border-left: 1px solid var(--line); }

.num {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 40px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--navy);
  white-space: nowrap;
}

.num small { margin-left: 2px; font-size: 14px; font-weight: 500; letter-spacing: 0.04em; }


/* =========================================================
   2. 診療時間・ご予約
   ========================================================= */
.quick { background-color: var(--mist); padding: 72px 0; }

.quick__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: start;
}

.quick__title {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.1em;
}

.quick__title .en,
.news__title .en {
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue);
}

.hours {
  width: 100%;
  background-color: var(--white);
  font-family: var(--font-en);
  font-size: 15px;
  text-align: center;
}

.hours th, .hours td { padding: 14px 6px; border-bottom: 1px solid var(--line); }
.hours thead th { font-family: var(--font-ja); font-weight: 500; font-size: 14px; background-color: var(--navy); color: var(--white); }
.hours tbody th { font-weight: 500; text-align: left; padding-left: 20px; white-space: nowrap; }
.hours td { color: var(--navy); }
.hours td.off { color: #A9B3BE; }

.quick__note { margin-top: 12px; font-size: 13px; color: var(--ink-sub); }

.quick__reserve {
  padding: 36px;
  background-color: var(--white);
  border-top: 3px solid var(--navy);
}

.quick__label { margin-bottom: 16px; font-weight: 500; font-size: 15px; letter-spacing: 0.1em; }

.quick__tel {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 0.06em;
  color: var(--navy);
}

.quick__tel span { font-family: var(--font-ja); font-weight: 400; font-size: 13px; color: var(--ink-sub); }

.quick__address {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-sub);
}


/* =========================================================
   3. お知らせ
   ========================================================= */
.news { padding: 56px 0; border-bottom: 1px solid var(--line); }

.news__inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
}

.news__title {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.6;
}

.news__list li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}

.news__list li:first-child { padding-top: 0; }
.news__list time { font-family: var(--font-en); font-size: 13px; color: var(--ink-sub); }

.tag {
  flex-shrink: 0;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.9;
  color: var(--ink-sub);
}

.news__list a:hover { color: var(--blue); }


/* =========================================================
   4. 当院の考え方
   ========================================================= */
.philosophy__head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 72px;
}

.philosophy__head .heading { margin-bottom: 0; }
.philosophy__lead { color: var(--ink-sub); line-height: 2.2; }

.philosophy__body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: center;
}

.philosophy__photo { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); }

.principle {
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: 8px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.principle:last-child { border-bottom: 1px solid var(--line); }
.principle:nth-child(2) { transition-delay: 0.12s; }
.principle:nth-child(3) { transition-delay: 0.24s; }

.principle__num {
  grid-row: 1 / 3;
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 28px;
  line-height: 1.3;
  color: var(--blue);
}

.principle__title { font-weight: 500; font-size: 20px; letter-spacing: 0.1em; line-height: 1.6; }
.principle p { margin-top: 8px; font-size: 15px; color: var(--ink-sub); }


/* =========================================================
   5. 設備（濃い青）
   ========================================================= */
.technology {
  position: relative;
  background-color: var(--navy-deep);
  color: #C9D5E3;
  overflow: hidden;
}

/* うっすら方眼 */
.technology::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(156, 199, 232, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(156, 199, 232, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.technology .container { position: relative; }

.technology__head {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 72px;
}

.technology__head .heading { margin-bottom: 0; }
.technology__lead { line-height: 2.2; }

.tech-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(156, 199, 232, 0.25);
  border-left: 1px solid rgba(156, 199, 232, 0.25);
}

.tech {
  padding: 32px 28px 40px;
  border-right: 1px solid rgba(156, 199, 232, 0.25);
  border-bottom: 1px solid rgba(156, 199, 232, 0.25);
  transition: background-color 0.4s;
}

.tech:hover { background-color: rgba(156, 199, 232, 0.06); }
.tech:nth-child(2) { transition-delay: 0.1s; }
.tech:nth-child(3) { transition-delay: 0.2s; }
.tech:nth-child(4) { transition-delay: 0.3s; }

.tech__top { display: flex; justify-content: space-between; align-items: flex-start; }

.tech__no {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ice);
}

.tech__icon { width: 48px; height: 48px; color: var(--ice); }

.tech__value {
  margin-top: 40px;
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 48px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--white);
}

.tech__name {
  margin-top: 24px;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: var(--white);
}

.tech__name span {
  display: block;
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ice);
}

.tech__text { margin-top: 16px; font-size: 14px; line-height: 2; }

.hygiene {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  align-items: center;
  padding: 28px 32px;
  border: 1px solid rgba(156, 199, 232, 0.25);
}

.hygiene__label {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ice);
}

.hygiene__text { font-size: 15px; }
.hygiene__text strong { display: block; font-weight: 500; color: var(--white); }


/* =========================================================
   6. 診療案内
   ========================================================= */
.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.feature:nth-child(2) { transition-delay: 0.12s; }
.feature:nth-child(3) { transition-delay: 0.24s; }

.feature__photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r);
}

.feature__photo img { transition: transform 0.8s ease; }
.feature:hover .feature__photo img { transform: scale(1.04); }

.feature__body { padding-top: 28px; }

.feature__en {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
}

.feature__title {
  margin: 6px 0 16px;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 0.1em;
  line-height: 1.5;
}

.feature__body p:not([class]) { font-size: 15px; color: var(--ink-sub); }

.feature__tag {
  display: inline-block;
  margin-top: 20px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  line-height: 2;
  color: var(--ink-sub);
}

.general {
  margin-top: 88px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.general__title { font-weight: 500; font-size: 18px; letter-spacing: 0.1em; }

.general__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 40px;
}

.general__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-sub);
}

.general__list span { font-weight: 500; font-size: 16px; color: var(--ink); }


/* =========================================================
   7. はじめての方へ
   ========================================================= */
.flow { background-color: var(--mist); }

.flow__head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 64px;
}

.flow__head .heading { margin-bottom: 0; }
.flow__lead { color: var(--ink-sub); line-height: 2.2; }

/* 安心のポイント（白い面に線で区切った6マス） */
.ease-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background-color: var(--line);   /* すき間の1pxが線に見える */
  border: 1px solid var(--line);
}

.ease { padding: 36px 32px 40px; background-color: var(--white); }
.ease:nth-child(3n+2) { transition-delay: 0.1s; }
.ease:nth-child(3n+3) { transition-delay: 0.2s; }

.ease__no {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 28px;
  line-height: 1;
  color: var(--blue);
}

.ease__title {
  margin: 20px 0 12px;
  font-weight: 500;
  font-size: 19px;
  line-height: 1.6;
  letter-spacing: 0.08em;
}

.ease p { font-size: 14px; color: var(--ink-sub); }

.flow__sub {
  margin: 96px 0 32px;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.1em;
}

.flow__foot {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.flow__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: flow;
}

.flow-step {
  position: relative;
  padding: 36px 28px 40px;
  background-color: var(--white);
  border-radius: var(--r);
}

.flow-step:nth-child(2) { transition-delay: 0.1s; }
.flow-step:nth-child(3) { transition-delay: 0.2s; }
.flow-step:nth-child(4) { transition-delay: 0.3s; }

/* ステップの間の矢印線 */
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 52px;
  right: -24px;
  width: 24px;
  height: 1px;
  background-color: var(--blue);
}

.flow-step__num {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 32px;
  line-height: 1;
  color: var(--blue);
}

.flow-step h3 { margin: 24px 0 12px; font-weight: 500; font-size: 18px; line-height: 1.6; letter-spacing: 0.08em; }
.flow-step p { font-size: 14px; color: var(--ink-sub); }

.flow__bring { font-size: 14px; color: var(--ink-sub); }


/* =========================================================
   8. 院長あいさつ
   ========================================================= */
.doctor__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 96px;
  align-items: center;
}

.doctor__photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); }
.doctor .heading { margin-bottom: 40px; }

.doctor__quote {
  font-weight: 500;
  font-size: 22px;
  line-height: 1.9;
  letter-spacing: 0.08em;
  color: var(--navy);
}

.doctor__text { margin-top: 32px; color: var(--ink-sub); }
.doctor__text p + p { margin-top: 1.2em; }

.doctor__profile { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }

.doctor__name { font-weight: 500; font-size: 22px; letter-spacing: 0.16em; }
.doctor__name span { margin-right: 16px; font-size: 13px; letter-spacing: 0.1em; color: var(--ink-sub); }
.doctor__name small { margin-left: 16px; font-family: var(--font-en); font-weight: 400; font-size: 12px; letter-spacing: 0.18em; color: var(--blue); }

.doctor__career {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 4em 1fr;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-sub);
}

.doctor__career dd + dt, .doctor__career dd + dt + dd { margin-top: 6px; }


/* =========================================================
   9. 院内のようす（横に流れる写真）
   ========================================================= */
.gallery { padding-bottom: 140px; }
.gallery .heading { margin-bottom: 48px; }

.gallery__list {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 16px;
  padding: 0 40px;
  max-width: 1600px;
  margin: 0 auto;
}

.gallery__list li:nth-child(even) { margin-top: 64px; }
.gallery__list li:nth-child(2) { transition-delay: 0.1s; }
.gallery__list li:nth-child(3) { transition-delay: 0.2s; }
.gallery__list li:nth-child(4) { transition-delay: 0.3s; }

.gallery__list img { aspect-ratio: 4 / 3; border-radius: var(--r); }
.gallery__list li:nth-child(2) img, .gallery__list li:nth-child(3) img { aspect-ratio: 3 / 4; }

.gallery__list figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-sub);
}


/* =========================================================
   10. 自由診療の費用
   ========================================================= */
.fee { background-color: var(--mist); padding: 112px 0; }

.fee__inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
}

.fee-table { width: 100%; background-color: var(--white); }

.fee-table th, .fee-table td { padding: 18px 28px; border-bottom: 1px solid var(--line); }
.fee-table th { font-weight: 400; text-align: left; }
.fee-table td { font-family: var(--font-en); font-weight: 500; font-size: 17px; text-align: right; color: var(--navy); white-space: nowrap; }

.fee__note { margin-top: 16px; font-size: 13px; color: var(--ink-sub); }

.risk { margin-top: 24px; background-color: var(--white); }

.risk summary {
  position: relative;
  padding: 18px 56px 18px 28px;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  font-size: 15px;
}

.risk summary::-webkit-details-marker { display: none; }

.risk summary::after {
  content: "";
  position: absolute;
  right: 28px;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  background:
    linear-gradient(var(--navy), var(--navy)) center / 12px 1px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center / 1px 12px no-repeat;
  transition: transform 0.3s;
}

.risk[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.risk p { padding: 0 28px 24px; font-size: 14px; color: var(--ink-sub); }


/* =========================================================
   11. アクセス
   ========================================================= */
.access__inner {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 72px;
  align-items: center;
}

.access .heading { margin-bottom: 40px; }

.access__list {
  display: grid;
  grid-template-columns: 6em 1fr;
  font-size: 15px;
}

.access__list dt, .access__list dd { padding: 16px 0; border-bottom: 1px solid var(--line); }
.access__list dt { font-weight: 500; color: var(--navy); }
.access__list dt:first-of-type, .access__list dd:first-of-type { border-top: 1px solid var(--line); }

.map { overflow: hidden; border-radius: var(--r); }
.map svg { display: block; width: 100%; height: auto; }


/* =========================================================
   12. 予約の帯
   ========================================================= */
.cta { background-color: var(--navy); color: var(--white); padding: 88px 0; }

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta__en {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ice);
}

.cta__title { margin-top: 12px; font-weight: 500; font-size: 28px; line-height: 1.6; letter-spacing: 0.08em; }

.cta__actions { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta__actions .btn { padding: 18px 48px; font-size: 16px; }

.cta__tel {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.06em;
}

.cta__tel span { font-family: var(--font-ja); font-size: 13px; color: var(--ice); }


/* =========================================================
   フッター
   ========================================================= */
.footer { padding: 64px 0 32px; background-color: var(--navy-deep); color: #A9B7C8; font-size: 13px; }

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(156, 199, 232, 0.2);
}

.footer__name { font-weight: 500; font-size: 17px; letter-spacing: 0.1em; color: var(--white); }
.footer__name span { margin-left: 16px; font-family: var(--font-en); font-size: 11px; letter-spacing: 0.24em; color: var(--ice); }
.footer__address { margin-top: 8px; }

.footer__nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__nav a:hover { color: var(--white); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* スマホ下部の予約バー（PCでは非表示） */
.sp-bar { display: none; }


/* =========================================================
   スクロールでふわっと表示
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}


/* =========================================================
   タブレット（1080px 以下）
   ========================================================= */
@media (max-width: 1080px) {
  .header__inner { gap: 24px; }
  .nav__list { gap: 20px; font-size: 13px; }
  .header__tel { display: none; }

  .tech-list { grid-template-columns: repeat(2, 1fr); }
  .flow__list { grid-template-columns: repeat(2, 1fr); }
  .flow-step:nth-child(2)::after { display: none; }
  .ease-list { grid-template-columns: repeat(2, 1fr); }
  .ease:nth-child(n) { transition-delay: 0s; }
  .general__list { grid-template-columns: repeat(2, 1fr); }
  .doctor__inner { gap: 56px; }
}


/* =========================================================
   スマホ（820px 以下）
   ========================================================= */
@media (max-width: 820px) {
  body { font-size: 15px; padding-bottom: 64px; /* 下部バーのぶん */ }

  .pc-only { display: none; }
  .sp-only { display: inline; }

  .container, .header__inner, .hero__inner, .hero__facts { padding-left: 20px; padding-right: 20px; }

  .section { padding: 88px 0; }
  .heading { margin-bottom: 40px; }
  .heading__ja { font-size: 26px; }

  /* --- ヘッダー：ハンバーガーメニュー --- */
  /* ぼかし効果があると全画面メニューがヘッダー内に閉じこめられるため、スマホでは外す */
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background-color: var(--white); }
  .header__inner { padding-top: 12px; padding-bottom: 12px; }
  .logo__name { font-size: 15px; }
  .header__contact { display: none; }

  .menu-btn {
    display: block;
    position: relative;
    z-index: 2;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
  }

  .menu-btn span {
    position: absolute;
    left: 10px;
    width: 24px;
    height: 1px;
    background-color: var(--ink);
    transition: transform 0.3s, top 0.3s;
  }

  .menu-btn span:nth-child(1) { top: 17px; }
  .menu-btn span:nth-child(2) { top: 26px; }
  .header.is-open .menu-btn span:nth-child(1) { top: 22px; transform: rotate(30deg); }
  .header.is-open .menu-btn span:nth-child(2) { top: 22px; transform: rotate(-30deg); }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    padding: 0 32px;
    background-color: var(--white);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }

  .header.is-open .nav { opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; font-size: 17px; }
  .nav__list a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav__list a::after { display: none; }
  .nav__sp-contact { display: grid; gap: 12px; }
  .nav__sp-contact .btn { padding: 16px; font-size: 16px; }

  /* --- ファーストビュー：写真を上に --- */
  .hero { padding-top: 24px; background-size: 40px 40px; }
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero__visual { order: -1; width: 86%; margin-left: auto; padding-bottom: 0; }
  .hero__photo { aspect-ratio: 5 / 4; border-radius: 200px 200px var(--r) var(--r); }
  .hero__lens { left: -14%; bottom: -12%; width: 112px; height: 112px; border-width: 4px; }
  .hero__lens-label { bottom: 8px; font-size: 10px; }
  .hero__coord { display: none; }
  .hero__text { padding-top: 24px; }
  .hero__title { margin-top: 14px; font-size: 36px; }
  .hero__lead { margin-top: 20px; font-size: 14px; }
  .hero__actions { margin-top: 32px; gap: 24px; }
  .hero__actions .btn { width: 100%; }

  .hero__facts { grid-template-columns: 1fr 1fr; margin-top: 48px; }
  .hero__facts li { flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 12px; font-size: 12px; }
  .hero__facts li + li { border-left: none; }
  .hero__facts li:nth-child(even) { border-left: 1px solid var(--line); padding-left: 16px; }
  .hero__facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .num { font-size: 32px; }

  /* --- 診療時間 --- */
  .quick { padding: 56px 0; }
  .quick__inner { grid-template-columns: 1fr; gap: 32px; }
  .hours { font-size: 13px; }
  .hours th, .hours td { padding: 12px 2px; }
  .hours tbody th { padding-left: 10px; font-size: 12px; }
  .quick__reserve { padding: 28px 20px; }

  /* --- お知らせ --- */
  .news__inner { grid-template-columns: 1fr; gap: 16px; }
  .news__title { flex-direction: row; align-items: baseline; gap: 12px; }
  .news__list li { flex-wrap: wrap; gap: 4px 12px; font-size: 14px; }
  .news__list a { width: 100%; }

  /* --- 考え方 --- */
  .philosophy__head, .philosophy__body { grid-template-columns: 1fr; gap: 32px; }
  .philosophy__head { margin-bottom: 40px; }
  .principle { grid-template-columns: 48px 1fr; }
  .principle__num { font-size: 22px; }
  .principle__title { font-size: 18px; }

  /* --- 設備 --- */
  .technology__head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
  .tech-list { grid-template-columns: 1fr; }
  .tech { padding: 28px 24px 32px; transition-delay: 0s !important; }
  .tech__value { margin-top: 20px; font-size: 40px; }
  .hygiene { grid-template-columns: 1fr; gap: 8px; padding: 24px; }

  /* --- 診療案内 --- */
  .feature-list { grid-template-columns: 1fr; gap: 48px; }
  .feature { transition-delay: 0s !important; }
  .feature__title { font-size: 22px; }
  .general { margin-top: 64px; grid-template-columns: 1fr; gap: 16px; }
  .general__list { grid-template-columns: 1fr; }

  /* --- はじめての方へ --- */
  .flow__head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
  .ease-list { grid-template-columns: 1fr; }
  .ease { display: grid; grid-template-columns: 44px 1fr; column-gap: 8px; padding: 24px 20px 28px; }
  .ease__no { grid-row: 1 / 3; font-size: 22px; line-height: 1.5; }
  .ease__title { margin: 0 0 6px; font-size: 17px; }
  .flow__sub { margin: 64px 0 20px; font-size: 19px; }
  .flow__foot .btn { width: 100%; }

  /* --- 初診の流れ --- */
  .flow__list { grid-template-columns: 1fr; gap: 12px; }
  .flow-step { display: grid; grid-template-columns: 48px 1fr; column-gap: 8px; padding: 24px 20px; transition-delay: 0s !important; }
  .flow-step::after { display: none; }
  .flow-step__num { grid-row: 1 / 3; font-size: 24px; }
  .flow-step h3 { margin: 0 0 4px; font-size: 16px; }

  /* --- 院長 --- */
  .doctor__inner { grid-template-columns: 1fr; gap: 40px; }
  .doctor__photo { width: 72%; }
  .doctor__quote { font-size: 18px; }
  .doctor__name small { display: block; margin: 4px 0 0; }

  /* --- 院内 --- */
  .gallery { padding-bottom: 88px; }
  .gallery__list {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 72%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 20px; /* 1枚目が画面の端にくっつかないように */
    padding: 0 20px 8px;
    gap: 12px;
  }
  .gallery__list li { scroll-snap-align: start; margin-top: 0 !important; transition-delay: 0s !important; }
  .gallery__list img { aspect-ratio: 4 / 3 !important; }

  /* --- 費用 --- */
  .fee { padding: 80px 0; }
  .fee__inner { grid-template-columns: 1fr; gap: 0; }
  .fee-table th, .fee-table td { padding: 16px; font-size: 14px; }
  .fee-table td { font-size: 15px; }
  .risk summary { padding: 16px 48px 16px 16px; }
  .risk summary::after { right: 16px; }
  .risk p { padding: 0 16px 20px; }

  /* --- アクセス --- */
  .access__inner { grid-template-columns: 1fr; gap: 32px; }
  .access__list { grid-template-columns: 5.5em 1fr; font-size: 14px; }

  /* --- 予約の帯 --- */
  .cta { padding: 64px 0; }
  .cta__title { font-size: 22px; }
  .cta__actions { width: 100%; }
  .cta__actions .btn { width: 100%; }

  /* --- フッター --- */
  .footer__inner { flex-direction: column; }
  .footer__name span { display: block; margin: 4px 0 0; }
  .footer__nav { gap: 12px 20px; }

  /* --- スマホ下部の予約バー --- */
  .sp-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    padding-bottom: env(safe-area-inset-bottom);
    background-color: var(--white);
    border-top: 1px solid var(--line);
    transition: transform 0.3s;
  }

  .sp-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.1em;
  }

  .sp-bar__tel { color: var(--navy); }
  .sp-bar__web { background-color: var(--navy); color: var(--white); }

  /* 最初の画面ではかくす（script.js で is-hidden を付けています） */
  .sp-bar.is-hidden { transform: translateY(100%); }
}
