/* ============================================================
   tokens.css （WordPress化時はこのブロックを別ファイルへ分離）
============================================================ */
:root {
  /* Color */
  --color-primary: #2f7e88;        /* メインティール（信頼・清潔） */
  --color-primary-deep: #23616a;
  --color-secondary: #9fd0c8;      /* ペールティール（tint） */
  --color-accent: #e8794d;         /* CTA・予約（あたたかいコーラル） */
  --color-accent-deep: #d0603a;
  --color-text: #3a3a38;
  --color-text-weak: #8a8f8c;
  --color-bg: #fbf8f3;             /* ウォームアイボリー */
  --color-bg-alt: #eff6f4;         /* セクション交互（淡ティール） */
  --color-bg-white: #ffffff;
  --color-dark: #223d3a;           /* 深緑（挨拶・CTA帯） */
  --color-dark-deep: #182b28;      /* フッター */
  --color-line: #e5ded2;

  /* orb（背景の光の粒） */
  --orb-teal: #bfe3da;
  --orb-pink: #f6cfd4;
  --orb-apricot: #f8d9b8;
  --orb-lav: #d5d0ef;
  --orb-lemon: #f3e7b9;

  /* Typography */
  --font-heading: "Zen Maru Gothic", sans-serif;
  --font-body: "Zen Kaku Gothic New", sans-serif;
  --font-en: "Marcellus", serif;
  --fs-h1: 32px;   /* SP基準。PCはmedia query内で上書き */
  --fs-h2: 26px;
  --fs-h3: 19px;
  --fs-body: 15px;
  --fs-note: 12px;
  --lh-heading: 1.5;
  --lh-body: 2;

  /* Spacing (8px scale) */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 40px;
  --sp-5: 64px;
  --sp-6: 96px;

  /* Radius / Shadow */
  --radius-btn: 999px;
  --radius-card: 16px;
  --radius-img: 24px;
  --shadow-card: 0 6px 24px rgba(52, 74, 70, .08);
  --shadow-card-hover: 0 12px 32px rgba(52, 74, 70, .14);

  /* Layout */
  --header-h: 64px;
  --content-w: 1120px;
}
@media (min-width: 1024px) {
  :root {
    --fs-h1: 52px;
    --fs-h2: 36px;
    --fs-h3: 22px;
    --fs-body: 16px;
    --header-h: 84px;
  }
}

/* ============================================================
   style.css （WordPress化時はこのブロックを別ファイルへ分離）
============================================================ */

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { vertical-align: middle; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; transition: opacity .25s ease; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: 4px; }

.u-pc { display: none; }
@media (min-width: 1024px) {
  .u-pc { display: block; }
  .u-sp { display: none; }
}

.l-inner {
  width: min(100% - 40px, var(--content-w));
  margin-inline: auto;
}

/* ---------- components ---------- */

/* section head */
.c-head { margin-bottom: var(--sp-4); }
.c-head__label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-en);
  font-size: 13px; letter-spacing: .22em;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.c-head__label .c-spark { width: 15px; height: 15px; fill: var(--color-accent); flex: none; }
.c-head__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  letter-spacing: .06em;
}
.c-head__lead { margin-top: var(--sp-2); color: var(--color-text); }
.c-head--center { text-align: center; }
.c-head--center .c-head__label { justify-content: center; }
.c-head--white .c-head__label { color: var(--color-secondary); }
.c-head--white .c-head__title { color: #fff; }

/* buttons */
.c-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 240px; min-height: 56px;
  padding: 14px 48px 14px 32px;
  border-radius: var(--radius-btn);
  font-family: var(--font-heading); font-weight: 700; font-size: 15px;
  letter-spacing: .08em; line-height: 1.4;
  background: var(--color-primary); color: #fff;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.c-btn::after {
  content: ""; position: absolute; right: 22px; top: 50%;
  width: 8px; height: 8px;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  transition: right .25s ease;
}
.c-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); background: var(--color-primary-deep); }
.c-btn:hover::after { right: 18px; }
.c-btn--accent { background: linear-gradient(135deg, #ef8f5f, var(--color-accent)); }
.c-btn--accent:hover { background: var(--color-accent-deep); }
.c-btn--ghost { background: transparent; color: var(--color-primary); border: 1.5px solid var(--color-primary); box-shadow: none; }
.c-btn--ghost:hover { background: var(--color-primary); color: #fff; }
.c-btn--light { background: #fff; color: var(--color-dark); }
.c-btn--light:hover { background: var(--color-bg); }

/* text link with circle arrow */
.c-more {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-heading); font-weight: 700; font-size: 14px;
  color: var(--color-primary); letter-spacing: .08em;
}
.c-more__circle {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  transition: transform .25s ease, background-color .25s ease;
}
.c-more__circle svg { width: 14px; height: 14px; }
.c-more:hover .c-more__circle { transform: translateX(4px); background: var(--color-accent); }

/* image placeholder（テンプレ差し替え前提） */
.c-ph {
  position: relative;
  display: grid; place-items: center;
  width: 100%; height: 100%;
  background:
    radial-gradient(120% 90% at 15% 10%, rgba(255,255,255,.65), transparent 55%),
    linear-gradient(140deg, #e6f1ec 0%, #f7ecdf 60%, #edf0e4 100%);
  color: #a9b4ad;
  overflow: hidden;
}
.c-ph__inner { display: grid; justify-items: center; gap: 6px; text-align: center; }
.c-ph__inner svg { width: 34px; height: 34px; opacity: .8; }
.c-ph__inner span { font-size: 11px; letter-spacing: .2em; font-family: var(--font-en); }

/* chip */
.c-chip {
  display: inline-block; padding: 3px 12px;
  border-radius: 999px; font-size: 11px; letter-spacing: .08em;
  background: var(--color-bg-alt); color: var(--color-primary); font-weight: 700;
}
.c-chip--news { background: #fdeee6; color: var(--color-accent-deep); }

/* orb（背景の光） */
.c-orb {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: .55; pointer-events: none; z-index: 0;
  animation: orbFloat 18s ease-in-out infinite alternate;
}
@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(24px, -28px) scale(1.08); }
}

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--header-h);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.header.is-scrolled { background: rgba(251, 248, 243, .88); backdrop-filter: blur(12px); box-shadow: 0 2px 20px rgba(52,74,70,.08); }
.header__inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
  padding-inline: 20px; gap: 24px;
}
@media (min-width: 1024px) { .header__inner { padding-inline: 32px; } }

.header__logo { display: flex; align-items: center; gap: 10px; }
.header__logo svg { width: 30px; height: 30px; fill: var(--color-accent); }
.header__logo-txt { display: grid; line-height: 1.3; }
.header__logo-txt b { font-family: var(--font-heading); font-size: 17px; letter-spacing: .06em; }
.header__logo-txt small { font-family: var(--font-en); font-size: 9px; letter-spacing: .24em; color: var(--color-text-weak); }
@media (min-width: 1024px) { .header__logo-txt b { font-size: 19px; } }

.gnav { display: none; }
@media (min-width: 1024px) {
  .gnav { display: block; }
  .gnav__list { display: flex; gap: 28px; }
  .gnav__list a {
    position: relative; font-size: 14px; font-weight: 500; letter-spacing: .06em;
    padding-block: 8px;
  }
  .gnav__list a::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
    background: var(--color-accent); border-radius: 2px;
    transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
  }
  .gnav__list a:hover::after { transform: scaleX(1); }
}

.header__cta { display: none; }
@media (min-width: 1024px) {
  .header__cta { display: flex; align-items: center; gap: 18px; }
  .header__tel { display: grid; justify-items: end; line-height: 1.4; }
  .header__tel b { font-family: var(--font-en); font-size: 20px; letter-spacing: .05em; color: var(--color-primary-deep); display: flex; align-items: center; gap: 6px; }
  .header__tel b svg { width: 16px; height: 16px; fill: var(--color-accent); }
  .header__tel small { font-size: 10px; color: var(--color-text-weak); letter-spacing: .06em; }
  .header__btn { min-width: 0; min-height: 48px; padding: 10px 40px 10px 24px; font-size: 13px; }
}

/* hamburger */
.menu-btn {
  display: grid; place-items: center; gap: 5px;
  width: 48px; height: 48px; border: none; border-radius: 14px;
  background: var(--color-primary); cursor: pointer; z-index: 1200;
}
.menu-btn span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.menu-btn span:nth-child(1) { transform: translateY(3px); }
.menu-btn span:nth-child(3) { transform: translateY(-3px); }
body.is-drawer-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.is-drawer-open .menu-btn span:nth-child(2) { opacity: 0; }
body.is-drawer-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1024px) { .menu-btn { display: none; } }

/* drawer (SP) */
.drawer {
  position: fixed; inset: 0; z-index: 990; /* ヘッダー(1000)の下・固定バー(900)の上 */
  background: var(--color-bg);
  padding: calc(var(--header-h) + 24px) 28px 120px;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s ease;
}
body.is-drawer-open .drawer { opacity: 1; visibility: visible; }
body.is-drawer-open { overflow: hidden; }
.drawer__list { display: grid; gap: 4px; margin-bottom: var(--sp-4); }
.drawer__list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 6px; border-bottom: 1px solid var(--color-line);
  font-family: var(--font-heading); font-weight: 500; font-size: 15px;
}
.drawer__list a::after { content: ""; width: 7px; height: 7px; border-top: 2px solid var(--color-accent); border-right: 2px solid var(--color-accent); transform: rotate(45deg); }
.drawer__cta { display: grid; gap: 12px; }
@media (min-width: 1024px) { .drawer { display: none; } }

/* ---------- FV ---------- */
.fv {
  position: relative;
  padding: calc(var(--header-h) + 32px) 0 56px;
  overflow: hidden;
}
@media (min-width: 1024px) { .fv { padding: calc(var(--header-h) + 48px) 0 72px; min-height: 92vh; display: flex; align-items: center; } }

.fv__inner { position: relative; z-index: 1; display: grid; gap: 40px; }
@media (min-width: 1024px) {
  .fv__inner { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 48px; }
}

.fv__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 999px;
  background: #fff; box-shadow: var(--shadow-card);
  font-size: 11px; letter-spacing: .08em; color: var(--color-primary-deep); font-weight: 500;
  margin-bottom: 20px;
}
.fv__eyebrow .c-spark { width: 12px; height: 12px; fill: var(--color-accent); }

.fv__title {
  font-family: var(--font-heading); font-weight: 700;
  font-size: var(--fs-h1); line-height: 1.55; letter-spacing: .1em;
  color: var(--color-text);
}
.fv__title span { display: block; }
.fv__title em { font-style: normal; color: var(--color-primary); }

.fv__lead { margin-top: 20px; font-size: 14px; max-width: 480px; }
@media (min-width: 1024px) { .fv__lead { font-size: 15px; } }

.fv__btns { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 600px) { .fv__btns { display: flex; flex-wrap: wrap; } }

/* FV 診療時間ミニカード */
.fv__info {
  margin-top: 32px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px;
  padding: 16px 22px;
  background: rgba(255,255,255,.75); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: var(--radius-card); box-shadow: var(--shadow-card);
  font-size: 12px;
}
.fv__info dt {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-heading); font-weight: 700; color: var(--color-primary-deep);
}
.fv__info dt svg { width: 15px; height: 15px; fill: var(--color-accent); }
.fv__info div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }

/* FV ビジュアル（有機ブロブ写真＝このデザインのシグネチャ） */
.fv__visual { position: relative; }
.fv__photo {
  position: relative; aspect-ratio: 5 / 4.4; max-width: 620px; margin-inline: auto;
  border-radius: 58% 42% 46% 54% / 52% 46% 54% 48%;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(47, 126, 136, .18);
  animation: blob 14s ease-in-out infinite;
}
@keyframes blob {
  0%, 100% { border-radius: 58% 42% 46% 54% / 52% 46% 54% 48%; }
  33%      { border-radius: 46% 54% 58% 42% / 46% 56% 44% 54%; }
  66%      { border-radius: 52% 48% 42% 58% / 56% 44% 56% 44%; }
}
.fv__badge {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: #fff; box-shadow: var(--shadow-card);
  font-family: var(--font-heading); font-weight: 700; font-size: 12px;
  color: var(--color-primary-deep);
  animation: badgeFloat 5s ease-in-out infinite;
}
.fv__badge .c-spark { width: 13px; height: 13px; fill: var(--color-accent); }
.fv__badge--1 { top: 8%; right: 2%; }
.fv__badge--2 { bottom: 6%; left: 0; animation-delay: 1.6s; }
@keyframes badgeFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.fv__scroll {
  display: none;
}
@media (min-width: 1024px) {
  .fv__scroll {
    position: absolute; left: 34px; bottom: 24px; z-index: 2;
    display: flex; align-items: center; gap: 12px;
    font-family: var(--font-en); font-size: 11px; letter-spacing: .3em; color: var(--color-text-weak);
    writing-mode: vertical-rl;
  }
  .fv__scroll::after {
    content: ""; width: 1px; height: 56px; background: var(--color-text-weak);
    animation: scrollLine 2.2s ease-in-out infinite;
    transform-origin: top;
  }
  @keyframes scrollLine { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
}

/* FV load animation */
.js-load { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s ease; }
body.is-loaded .js-load { opacity: 1; transform: none; }
.js-load--zoom { transform: scale(.94); }
body.is-loaded .js-load--zoom { transform: scale(1); }

/* ---------- NEWS ---------- */
.news { position: relative; padding: 8px 0 var(--sp-5); }
.news__card {
  position: relative; z-index: 1;
  display: grid; gap: 20px;
  background: var(--color-bg-white); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); padding: 28px 24px;
}
@media (min-width: 1024px) {
  .news__card { grid-template-columns: 190px 1fr auto; align-items: center; padding: 36px 44px; }
}
.news__head .c-head__label { margin-bottom: 4px; }
.news__head .c-head__title { font-size: 20px; }
.news__list { display: grid; }
/* ▼ WP化メモ：ここは「お知らせ」投稿ループに置換（最新3件） */
.news__list li a {
  display: grid; grid-template-columns: auto auto; gap: 4px 14px; align-items: center;
  padding: 12px 4px; border-bottom: 1px dashed var(--color-line);
  font-size: 13px;
}
.news__list li:last-child a { border-bottom: none; }
.news__list time { font-family: var(--font-en); letter-spacing: .08em; color: var(--color-text-weak); font-size: 12px; }
.news__list p { grid-column: 1 / -1; font-weight: 500; }
@media (min-width: 1024px) {
  .news__list li a { grid-template-columns: 100px auto 1fr; }
  .news__list p { grid-column: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .news__list li a:hover p { color: var(--color-primary); }
}

/* ---------- WORRIES ---------- */
.worries { position: relative; padding: var(--sp-5) 0 0; overflow: hidden; }
.worries__bg {
  position: relative;
  background: var(--color-bg-alt);
  border-radius: 40px 40px 0 0;
  padding: var(--sp-5) 0 var(--sp-6);
}
@media (min-width: 1024px) { .worries__bg { border-radius: 64px 64px 0 0; } }

.worries__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .worries__grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.worries__item {
  display: grid; justify-items: center; gap: 10px; text-align: center;
  background: var(--color-bg-white); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); padding: 22px 12px 20px;
  font-family: var(--font-heading); font-weight: 700; font-size: 13px; line-height: 1.6;
  transition: transform .25s ease, box-shadow .25s ease;
}
.worries__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
@media (min-width: 1024px) { .worries__item { font-size: 14px; padding: 26px 14px 24px; } }
.worries__check {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-bg-alt); color: var(--color-primary);
}
.worries__check svg { width: 18px; height: 18px; }

.worries__connect {
  position: relative; z-index: 1;
  margin-top: var(--sp-4); text-align: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 16px; letter-spacing: .08em;
  color: var(--color-primary-deep);
}
@media (min-width: 1024px) { .worries__connect { font-size: 19px; } }
.worries__connect::after {
  content: ""; display: block; width: 1px; height: 40px; margin: 18px auto 0;
  background: linear-gradient(var(--color-primary), transparent);
}
.worries__connect em { font-style: normal; color: var(--color-accent-deep); }

/* ---------- ABOUT ---------- */
.about { position: relative; padding: var(--sp-6) 0; overflow: hidden; }
.about__inner { position: relative; z-index: 1; display: grid; gap: 48px; }
@media (min-width: 1024px) { .about__inner { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 72px; } }

.about__photos { position: relative; padding-bottom: 56px; }
.about__photo-main { aspect-ratio: 4 / 3; border-radius: var(--radius-img); overflow: hidden; box-shadow: var(--shadow-card); }
.about__photo-sub {
  position: absolute; right: -4px; bottom: 0;
  width: 46%; aspect-ratio: 1; border-radius: var(--radius-img);
  overflow: hidden; box-shadow: var(--shadow-card-hover);
  border: 5px solid var(--color-bg);
}
.about__deco {
  position: absolute; left: -20px; bottom: 10px; width: 110px; height: 110px;
  background: linear-gradient(135deg, var(--orb-apricot), var(--orb-pink));
  border-radius: 62% 38% 50% 50% / 50% 60% 40% 50%;
  opacity: .8; z-index: -1;
}
.about__text p + p { margin-top: 1.2em; }
.about__btn { margin-top: var(--sp-4); }

/* ---------- FEATURE ---------- */
.feature { position: relative; padding: var(--sp-6) 0; background: var(--color-bg-white); overflow: hidden; }
.feature__list { display: grid; gap: var(--sp-5); margin-top: var(--sp-5); position: relative; z-index: 1; }
@media (min-width: 1024px) { .feature__list { gap: var(--sp-6); } }

.feature__item { display: grid; gap: 28px; position: relative; }
@media (min-width: 1024px) {
  .feature__item { grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; }
  .feature__item:nth-child(even) .feature__visual { order: 2; }
}
.feature__visual { position: relative; }
.feature__img { aspect-ratio: 16 / 10.5; border-radius: var(--radius-img); overflow: hidden; box-shadow: var(--shadow-card); }
.feature__num {
  position: absolute; top: -26px; left: -6px;
  font-family: var(--font-en); font-size: 64px; line-height: 1;
  color: var(--color-primary); opacity: .28; letter-spacing: .04em;
}
@media (min-width: 1024px) { .feature__num { font-size: 96px; top: -44px; left: -18px; } }
.feature__body h3 {
  font-family: var(--font-heading); font-weight: 700;
  font-size: var(--fs-h3); line-height: 1.6; letter-spacing: .06em;
  margin-bottom: 14px;
  display: flex; align-items: baseline; gap: 12px;
}
.feature__body h3 i {
  font-style: normal; font-family: var(--font-en); font-size: 14px;
  color: var(--color-accent); letter-spacing: .12em; flex: none;
}
.feature__body p { font-size: 14px; }
@media (min-width: 1024px) { .feature__body p { font-size: 15px; } }

/* ---------- MEDICAL ---------- */
.medical { position: relative; padding: var(--sp-6) 0; background: var(--color-bg-alt); overflow: hidden; }
.medical__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 768px) { .medical__grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.medical__grid > li { display: grid; } /* 内側のaカードを全高に伸ばす */
.medical__item {
  display: grid; justify-items: center; gap: 6px; text-align: center;
  background: var(--color-bg-white); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); padding: 26px 12px 22px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.medical__item:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); }
.medical__icon {
  display: grid; place-items: center;
  width: 74px; height: 74px; border-radius: 50%;
  background: linear-gradient(150deg, #eaf5f1, #fdeee2);
  color: var(--color-primary); margin-bottom: 6px;
  transition: transform .3s ease;
}
.medical__item:hover .medical__icon { transform: scale(1.08) rotate(-4deg); }
.medical__icon svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.medical__name { font-family: var(--font-heading); font-weight: 700; font-size: 15px; letter-spacing: .06em; }
.medical__en { font-family: var(--font-en); font-size: 10px; letter-spacing: .2em; color: var(--color-accent); }
.medical__txt { font-size: 11.5px; color: var(--color-text-weak); line-height: 1.6; }
.medical__note { position: relative; z-index: 1; margin-top: var(--sp-3); text-align: center; font-size: var(--fs-note); color: var(--color-text-weak); }

/* ---------- BLOG ---------- */
.blog { padding: var(--sp-6) 0; position: relative; overflow: hidden; }
.blog__grid { position: relative; z-index: 1; display: grid; gap: 24px; }
@media (min-width: 768px) { .blog__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
/* ▼ WP化メモ：ブログ投稿ループに置換（最新2件） */
.blog__card {
  display: grid; gap: 0;
  background: var(--color-bg-white); border-radius: var(--radius-card);
  overflow: hidden; box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.blog__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.blog__thumb { aspect-ratio: 16 / 9; overflow: hidden; }
.blog__body { padding: 20px 22px 24px; display: grid; gap: 8px; align-content: start; }
.blog__meta { display: flex; align-items: center; gap: 12px; font-size: 12px; }
.blog__meta time { font-family: var(--font-en); color: var(--color-text-weak); letter-spacing: .08em; }
.blog__title { font-family: var(--font-heading); font-weight: 700; font-size: 15px; line-height: 1.7; }
.blog__more { margin-top: var(--sp-4); text-align: center; }

/* ---------- VOICE ---------- */
/* ▼ 患者様の声（有料オプション）：不要な場合はこのセクションごと削除 */
.voice { padding: var(--sp-6) 0; background: var(--color-bg-white); position: relative; overflow: hidden; }
.voice__slider { position: relative; z-index: 1; max-width: 880px; margin-inline: auto; }
.voice__viewport { overflow: hidden; border-radius: var(--radius-card); }
.voice__track { display: flex; transition: transform .5s ease; }
.voice__slide { flex: 0 0 100%; padding: 4px; }
.voice__card {
  position: relative; height: 100%;
  background: var(--color-bg); border-radius: var(--radius-card);
  padding: 40px 28px 30px; box-shadow: var(--shadow-card);
}
@media (min-width: 768px) { .voice__card { padding: 52px 56px 36px; } }
.voice__quote {
  position: absolute; top: 18px; left: 24px;
  font-family: var(--font-en); font-size: 60px; line-height: 1; color: var(--color-secondary);
}
.voice__text { font-size: 14px; position: relative; z-index: 1; }
@media (min-width: 768px) { .voice__text { font-size: 15px; } }
.voice__meta { margin-top: 18px; display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--color-text-weak); }
.voice__meta::before { content: ""; width: 28px; height: 1px; background: var(--color-accent); }

.voice__nav {
  display: grid; place-items: center;
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--color-bg-white); color: var(--color-primary); box-shadow: var(--shadow-card);
  transition: background-color .25s ease, color .25s ease;
}
.voice__nav:hover { background: var(--color-primary); color: #fff; }
.voice__nav svg { width: 15px; height: 15px; }
.voice__nav--prev { left: -8px; }
.voice__nav--next { right: -8px; }
@media (min-width: 1024px) { .voice__nav--prev { left: -23px; } .voice__nav--next { right: -23px; } }

.voice__dots { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.voice__dot { width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0; background: var(--color-line); cursor: pointer; transition: background-color .25s ease, transform .25s ease; }
.voice__dot.is-active { background: var(--color-accent); transform: scale(1.25); }
.voice__note { margin-top: var(--sp-3); text-align: center; font-size: var(--fs-note); color: var(--color-text-weak); }
.voice__more { margin-top: var(--sp-3); text-align: center; }

/* ---------- GREETING ---------- */
.greeting { position: relative; padding: var(--sp-6) 0; background: var(--color-dark); color: #fff; overflow: hidden; }
.greeting .c-orb { opacity: .16; }
.greeting__inner { position: relative; z-index: 1; display: grid; gap: 44px; }
@media (min-width: 1024px) { .greeting__inner { grid-template-columns: 1fr 1.15fr; align-items: center; gap: 80px; } }
.greeting__photo {
  aspect-ratio: 4 / 4.6; max-width: 420px; margin-inline: auto; width: 100%;
  border-radius: 46% 54% 50% 50% / 56% 48% 52% 44%;
  overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.3);
}
.greeting__catch {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 22px; line-height: 1.8; letter-spacing: .08em; margin-bottom: 22px;
}
@media (min-width: 1024px) { .greeting__catch { font-size: 28px; } }
.greeting__text { font-size: 14px; color: rgba(255,255,255,.86); }
.greeting__text p + p { margin-top: 1.2em; }
.greeting__name { margin-top: 26px; display: flex; align-items: baseline; gap: 14px; }
.greeting__name small { font-size: 12px; color: var(--color-secondary); }
.greeting__name b { font-family: var(--font-heading); font-size: 21px; letter-spacing: .14em; }
.greeting__btn { margin-top: var(--sp-4); }
.greeting .c-btn--light:hover { color: var(--color-primary-deep); }

/* ---------- LINKS（3バナー） ---------- */
.links { padding: var(--sp-6) 0 0; }
.links__grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .links__grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.links__card {
  position: relative; display: block; aspect-ratio: 16 / 8;
  border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card);
}
@media (min-width: 768px) { .links__card { aspect-ratio: 4 / 3.1; } }
.links__card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(24,43,40,.14), rgba(24,43,40,.66));
  transition: background-color .3s ease;
}
.links__card:hover::after { background-color: rgba(47,126,136,.32); }
.links__label {
  position: absolute; left: 22px; bottom: 18px; z-index: 1; color: #fff; display: grid; gap: 2px;
}
.links__label small { font-family: var(--font-en); font-size: 10px; letter-spacing: .26em; color: var(--color-secondary); }
.links__label b { font-family: var(--font-heading); font-size: 17px; letter-spacing: .1em; }
.links__arrow {
  position: absolute; right: 16px; bottom: 16px; z-index: 1;
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--color-primary);
  transition: transform .25s ease;
}
.links__arrow svg { width: 13px; height: 13px; }
.links__card:hover .links__arrow { transform: translateX(4px); }

/* ---------- ACCESS ---------- */
.access { padding: var(--sp-6) 0; position: relative; overflow: hidden; }
.access__inner { position: relative; z-index: 1; display: grid; gap: 36px; }
@media (min-width: 1024px) { .access__inner { grid-template-columns: 1.15fr 1fr; align-items: start; gap: 56px; } }
.access__map { aspect-ratio: 4 / 3; border-radius: var(--radius-img); overflow: hidden; box-shadow: var(--shadow-card); }
/* ▼ WP化メモ：Google Map埋め込み（iframe）に差し替え */
.access__table th, .access__table td {
  padding: 14px 6px; border-bottom: 1px solid var(--color-line);
  font-size: 13.5px; text-align: left; vertical-align: top; line-height: 1.8;
}
.access__table th { width: 92px; font-family: var(--font-heading); font-weight: 700; color: var(--color-primary-deep); white-space: nowrap; }
.access__note { margin-top: 14px; font-size: var(--fs-note); color: var(--color-text-weak); }

/* ---------- RECRUIT ---------- */
.recruit { position: relative; overflow: hidden; }
.recruit__bg { position: absolute; inset: 0; }
.recruit__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(24,43,40,.86) 20%, rgba(35,97,106,.72)); }
.recruit__inner { position: relative; z-index: 1; padding: var(--sp-6) 0; color: #fff; text-align: center; }
.recruit__copy { font-family: var(--font-heading); font-weight: 700; font-size: 24px; letter-spacing: .1em; line-height: 1.8; margin-bottom: 16px; }
@media (min-width: 1024px) { .recruit__copy { font-size: 32px; } }
.recruit__text { font-size: 14px; color: rgba(255,255,255,.88); max-width: 620px; margin: 0 auto 32px; }

/* ---------- CTA ---------- */
.cta { position: relative; padding: var(--sp-6) 0; background: linear-gradient(160deg, var(--color-dark), #1c3a44); color: #fff; overflow: hidden; }
.cta .c-orb { opacity: .18; }
.cta__lead { text-align: center; font-size: 14px; color: rgba(255,255,255,.85); margin-top: -16px; margin-bottom: var(--sp-4); position: relative; z-index: 1; }
.cta__grid { position: relative; z-index: 1; display: grid; gap: 18px; max-width: 880px; margin-inline: auto; }
@media (min-width: 768px) { .cta__grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.cta__card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-card); padding: 30px 24px; text-align: center;
  display: grid; gap: 12px; align-content: start;
  backdrop-filter: blur(4px);
}
.cta__card-label { display: inline-flex; justify-content: center; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 700; font-size: 14px; color: var(--color-secondary); }
.cta__card-label svg { width: 16px; height: 16px; fill: var(--color-secondary); }
.cta__tel { font-family: var(--font-en); font-size: 34px; letter-spacing: .04em; color: #fff; line-height: 1.2; display: inline-block; }
@media (min-width: 1024px) { .cta__tel { font-size: 40px; } }
.cta__small { font-size: 11.5px; color: rgba(255,255,255,.7); }
.cta__card .c-btn { justify-self: center; }

.cta__hours { position: relative; z-index: 1; max-width: 880px; margin: var(--sp-4) auto 0; background: #fff; border-radius: var(--radius-card); padding: 24px 18px; color: var(--color-text); box-shadow: var(--shadow-card); overflow-x: auto; }
@media (min-width: 768px) { .cta__hours { padding: 32px 36px; } }
.cta__hours-title { display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 700; font-size: 15px; color: var(--color-primary-deep); margin-bottom: 14px; }
.cta__hours-title svg { width: 17px; height: 17px; fill: var(--color-accent); }
.hours-table { min-width: 520px; }
.hours-table th, .hours-table td {
  border: 1px solid var(--color-line); padding: 10px 4px; text-align: center;
  font-size: 13px;
}
.hours-table thead th { background: var(--color-bg-alt); font-family: var(--font-heading); font-weight: 700; color: var(--color-primary-deep); }
.hours-table tbody th { background: var(--color-bg); font-weight: 500; font-size: 12.5px; white-space: nowrap; padding-inline: 10px; }
.hours-table .on { color: var(--color-primary); font-weight: 700; }
.hours-table .tri { color: var(--color-accent-deep); font-weight: 700; }
.hours-table .off { color: #c8c4bb; }
.cta__hours-note { margin-top: 12px; font-size: var(--fs-note); color: var(--color-text-weak); line-height: 1.9; }
.cta__form-link { position: relative; z-index: 1; margin-top: var(--sp-4); text-align: center; }
.cta__form-link a { color: var(--color-secondary); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.cta__form-link a:hover { color: #fff; }

/* ---------- FOOTER ---------- */
.footer { background: var(--color-dark-deep); color: rgba(255,255,255,.82); padding: var(--sp-5) 0 120px; }
@media (min-width: 1024px) { .footer { padding-bottom: var(--sp-4); } }
.footer__inner { display: grid; gap: 40px; }
@media (min-width: 1024px) { .footer__inner { grid-template-columns: 1.2fr 1fr 1fr; gap: 56px; } }
.footer__logo { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: #fff; }
.footer__logo svg { width: 28px; height: 28px; fill: var(--color-accent); }
.footer__logo b { font-family: var(--font-heading); font-size: 18px; letter-spacing: .06em; }
.footer__info { font-size: 12.5px; line-height: 2.1; }
.footer__nav h4 { font-family: var(--font-en); font-size: 11px; letter-spacing: .24em; color: var(--color-secondary); margin-bottom: 14px; }
.footer__nav ul { display: grid; gap: 8px; }
.footer__nav a { font-size: 13px; opacity: .85; }
.footer__nav a:hover { opacity: 1; color: #fff; }
.footer__bottom {
  margin-top: var(--sp-5); padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; align-items: center;
  font-size: 11px; letter-spacing: .06em;
}
.footer__bottom a { text-decoration: underline; text-underline-offset: 3px; opacity: .8; }

/* ---------- 固定UI ---------- */
/* PC：右端の縦型WEB予約タブ */
.side-cta {
  display: none;
}
@media (min-width: 1024px) {
  .side-cta {
    position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 900;
    display: flex; align-items: center; gap: 8px;
    writing-mode: vertical-rl;
    padding: 26px 14px;
    background: linear-gradient(180deg, #ef8f5f, var(--color-accent));
    color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: 14px; letter-spacing: .2em;
    border-radius: 14px 0 0 14px;
    box-shadow: -4px 6px 20px rgba(208, 96, 58, .35);
    transition: padding .25s ease, filter .25s ease;
  }
  .side-cta:hover { padding-right: 20px; filter: brightness(1.05); }
  .side-cta svg { width: 16px; height: 16px; fill: #fff; }
}

/* SP：下部固定バー */
.sp-fixed {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  display: grid; grid-template-columns: 1fr 1fr;
  box-shadow: 0 -4px 20px rgba(52,74,70,.16);
}
.sp-fixed a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 58px; font-family: var(--font-heading); font-weight: 700; font-size: 13px; color: #fff;
}
.sp-fixed a svg { width: 16px; height: 16px; fill: #fff; }
.sp-fixed__tel { background: var(--color-primary); }
.sp-fixed__web { background: linear-gradient(135deg, #ef8f5f, var(--color-accent)); }
@media (min-width: 1024px) { .sp-fixed { display: none; } }

/* pagetop */
.pagetop {
  position: fixed; right: 16px; bottom: 74px; z-index: 890;
  display: grid; place-items: center; width: 44px; height: 44px; border: none; border-radius: 50%;
  background: var(--color-bg-white); color: var(--color-primary); box-shadow: var(--shadow-card);
  cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
}
.pagetop.is-show { opacity: 1; visibility: visible; transform: none; }
.pagetop svg { width: 14px; height: 14px; }
@media (min-width: 1024px) { .pagetop { right: 24px; bottom: 24px; } }

/* ---------- scroll reveal ----------
   ※各コンポーネント自身のtransition定義より後に置くこと（ソース順で優先させる）。
   　表示完了後はJS側で js-reveal / d1〜d6 を除去し、ホバー用transitionへ引き継ぐ */
.js-reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.js-reveal.is-inview { opacity: 1; transform: none; }
.js-reveal.d1 { transition-delay: .1s; } .js-reveal.d2 { transition-delay: .2s; }
.js-reveal.d3 { transition-delay: .3s; } .js-reveal.d4 { transition-delay: .4s; }
.js-reveal.d5 { transition-delay: .5s; } .js-reveal.d6 { transition-delay: .6s; }
.js-load.d1 { transition-delay: .1s; } .js-load.d2 { transition-delay: .25s; }
.js-load.d3 { transition-delay: .4s; } .js-load.d4 { transition-delay: .55s; }
.js-load.d5 { transition-delay: .7s; } .js-load.d6 { transition-delay: .85s; }

/* ---------- motion 配慮 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-reveal, .js-load { opacity: 1 !important; transform: none !important; }
}
