:root {
  --mint: #2fa89a;
  --mint-dark: #1f7f74;
  --mint-pale: #e9f6f4;
  --sky: #dff0fa;
  --sun: #ffb84d;
  --ink: #33464a;
  --muted: #6d8084;
  --line: #d5e6e3;
  --white: #fff;
  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --max: 1100px;
  --pad: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--font); font-weight: 500; color: var(--ink); background: var(--white); line-height: 1.9; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
.sp { display: none; }

/* ---------- ヘッダー ---------- */
.header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px var(--pad); background: rgba(255, 255, 255, .95); transition: box-shadow .3s; }
.header.scrolled { box-shadow: 0 4px 18px rgba(47, 168, 154, .16); }

.logo { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 700; color: var(--mint-dark); white-space: nowrap; }
.logo svg { width: 36px; height: 36px; fill: var(--mint); }
.logo span { display: flex; flex-direction: column; line-height: 1.3; }
.logo small { font-size: .56rem; font-weight: 500; letter-spacing: .14em; color: var(--muted); }

.nav { display: flex; gap: 26px; font-size: .92rem; font-weight: 700; }
.nav a { padding: 6px 0; border-bottom: 2px dotted transparent; white-space: nowrap; transition: color .2s, border-color .2s; }
.nav a:hover { color: var(--mint-dark); border-color: var(--mint); }

.header-side { display: flex; align-items: center; gap: 14px; }
.tel { display: flex; flex-direction: column; font-size: 1.25rem; font-weight: 700; line-height: 1.2; color: var(--mint-dark); white-space: nowrap; }
.tel small { font-size: .62rem; color: var(--muted); }
.header-cta { padding: 10px 22px; font-weight: 700; color: var(--white); background: var(--sun); border-radius: 999px; box-shadow: 0 4px 0 #e09a2c; white-space: nowrap; transition: transform .15s, box-shadow .15s; }
.header-cta:hover { transform: translateY(2px); box-shadow: 0 2px 0 #e09a2c; }

.nav-toggle { display: none; position: relative; width: 44px; height: 44px; background: var(--mint-pale); border: 0; border-radius: 50%; cursor: pointer; }
.nav-toggle span { position: absolute; left: 12px; width: 20px; height: 2px; background: var(--mint-dark); border-radius: 2px; transition: transform .25s; }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- ファーストビュー ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 30px clamp(24px, 5vw, 60px); align-items: end; max-width: calc(var(--max) + 120px); margin: 0 auto; padding: clamp(40px, 7vw, 86px) var(--pad) clamp(40px, 6vw, 70px); }
.hero::before { content: ""; position: absolute; inset: 0 -50vw; z-index: -2; background: linear-gradient(180deg, var(--mint-pale), var(--sky)); border-radius: 0 0 50% 50% / 0 0 60px 60px; }

.hero-shape { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-shape i { position: absolute; border-radius: 50%; }
.hero-shape i:nth-child(1) { right: 4%; top: 8%; width: clamp(180px, 30vw, 380px); aspect-ratio: 1; background: rgba(255, 255, 255, .7); border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%; animation: blob 14s ease-in-out infinite alternate; }
.hero-shape i:nth-child(2) { right: 30%; top: 4%; width: 70px; aspect-ratio: 1; background: var(--sun); opacity: .5; }
.hero-shape i:nth-child(3) { left: 44%; bottom: 14%; width: 36px; aspect-ratio: 1; background: var(--mint); opacity: .35; }
@keyframes blob { to { border-radius: 44% 56% 42% 58% / 56% 44% 58% 42%; transform: rotate(12deg); } }

.hero-badge { display: inline-block; padding: 5px 18px; font-size: .86rem; font-weight: 700; color: var(--mint-dark); background: var(--white); border-radius: 999px; }
.hero h1 { margin: 18px 0 18px; font-size: clamp(2rem, 5.2vw, 3.6rem); line-height: 1.45; letter-spacing: .04em; color: var(--mint-dark); }
.hero-text > p:not(.hero-badge) { max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 12px 34px; font-size: 1rem; font-weight: 700; border-radius: 999px; transition: transform .15s, box-shadow .15s, background .2s; }
.btn-main { color: var(--white); background: var(--mint); box-shadow: 0 5px 0 var(--mint-dark); }
.btn-main:hover { transform: translateY(3px); box-shadow: 0 2px 0 var(--mint-dark); }
.btn-sub { color: var(--mint-dark); background: var(--white); border: 2px solid var(--mint); }
.btn-sub:hover { background: var(--mint-pale); }
.btn-white { color: var(--mint-dark); background: var(--white); box-shadow: 0 5px 0 rgba(0, 0, 0, .14); }

.hours { padding: 22px clamp(14px, 2.4vw, 26px) 20px; background: var(--white); border-radius: 26px; box-shadow: 0 16px 40px rgba(47, 168, 154, .18); }
.hours h2 { margin-bottom: 10px; font-size: 1.05rem; color: var(--mint-dark); }
.hours table { width: 100%; border-collapse: collapse; font-size: .9rem; text-align: center; }
.hours th, .hours td { padding: 9px 2px; border-bottom: 1px solid var(--line); }
.hours thead th { color: var(--white); background: var(--mint); border: 0; }
.hours thead th:first-child { border-radius: 10px 0 0 10px; }
.hours thead th:last-child { border-radius: 0 10px 10px 0; }
.hours tbody th { font-size: .8rem; white-space: nowrap; text-align: left; }
.hours td { color: var(--mint); }
.hours p { margin-top: 10px; font-size: .76rem; color: var(--muted); }

/* ---------- 共通 ---------- */
.section { max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; padding: clamp(56px, 8vw, 100px) var(--pad); }
.head { margin-bottom: 40px; text-align: center; }
.head p, .eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .28em; color: var(--sun); }
.head h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); letter-spacing: .08em; color: var(--mint-dark); }

/* ---------- 特長 ---------- */
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.points article { position: relative; padding: 40px 26px 28px; text-align: center; background: var(--mint-pale); border-radius: 26px; }
.points i { position: absolute; top: -20px; left: 50%; display: grid; place-items: center; width: 46px; height: 46px; margin-left: -23px; font-style: normal; font-weight: 700; font-size: 1.2rem; color: var(--white); background: var(--sun); border-radius: 50%; }
.points h3 { margin-bottom: 8px; font-size: 1.14rem; color: var(--mint-dark); }
.points p { font-size: .92rem; }

/* ---------- 初めての方へ ---------- */
.wave { position: relative; max-width: none; background: var(--mint-pale); }
.wave > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.wave::before, .wave::after { content: ""; position: absolute; left: 0; right: 0; height: 30px; background: radial-gradient(circle at 30px 0, var(--white) 30px, transparent 31px) 0 0 / 60px 30px repeat-x; }
.wave::before { top: 0; }
.wave::after { bottom: 0; transform: scaleY(-1); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.steps li { padding: 26px 20px; background: var(--white); border-radius: 22px; }
.steps span { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 10px; font-weight: 700; color: var(--white); background: var(--mint); border-radius: 50%; }
.steps h3 { font-size: 1.08rem; color: var(--mint-dark); }
.steps p { font-size: .88rem; }
.bring { margin-top: 26px !important; padding: 16px 24px; font-size: .92rem; background: var(--white); border: 2px dashed var(--mint); border-radius: 18px; }
.bring b { display: inline-block; margin-right: 16px; color: var(--mint-dark); }

/* ---------- 診療案内 ---------- */
.menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.menu article { padding: 28px 24px; border: 2px solid var(--line); border-radius: 24px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.menu article:hover { transform: translateY(-5px); border-color: var(--mint); box-shadow: 0 12px 26px rgba(47, 168, 154, .16); }
.ico { width: 58px; height: 58px; margin-bottom: 14px; border-radius: 20px 20px 20px 6px; }
.ico-a { background: #bfe6df; }
.ico-b { background: #ffd9a0; border-radius: 50%; }
.ico-c { background: #c5e3f6; border-radius: 6px 20px 20px 20px; }
.ico-d { background: #ffd0d0; border-radius: 50% 50% 50% 8px; }
.ico-e { background: #d8d4f2; border-radius: 20px 6px 20px 20px; }
.ico-f { background: #f6ecb0; border-radius: 50% 8px 50% 50%; }
.menu h3 { margin-bottom: 6px; font-size: 1.12rem; color: var(--mint-dark); }
.menu p { font-size: .9rem; }
.menu small { display: inline-block; margin-left: 6px; padding: 0 10px; font-size: .72rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; }

/* ---------- 院長紹介 ---------- */
.doctor { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.doctor-photo { aspect-ratio: 1; background: radial-gradient(circle at 50% 38%, #fff 0 17%, transparent 17.5%), radial-gradient(ellipse at 50% 100%, #fff 0 44%, transparent 44.5%), linear-gradient(160deg, #bfe6df, #c5e3f6); border-radius: 46% 54% 50% 50% / 52% 48% 52% 48%; }
.doctor h2 { margin: 4px 0 16px; font-size: clamp(1.5rem, 3.2vw, 2rem); color: var(--mint-dark); }
.doctor-body > p + p { margin-top: 12px; }
.doctor dl { margin-top: 22px; border-top: 2px dotted var(--line); }
.doctor dl > div { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 14px; padding: 12px 0; font-size: .9rem; border-bottom: 2px dotted var(--line); }
.doctor dt { font-weight: 700; color: var(--mint-dark); }

/* ---------- 予約 ---------- */
.reserve { margin: 0 var(--pad) clamp(56px, 8vw, 90px); padding: clamp(40px, 6vw, 64px) 22px; text-align: center; color: var(--white); background: var(--mint); border-radius: 36px; }
.reserve h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); }
.reserve-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 22px; }
.reserve .btn-main { background: var(--sun); box-shadow: 0 5px 0 #e09a2c; }
.reserve .btn-main:hover { box-shadow: 0 2px 0 #e09a2c; }
.reserve-note { margin-top: 18px; font-size: .8rem; }

/* ---------- フッター ---------- */
.footer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--mint-pale); }
.map { position: relative; min-height: 300px; background: linear-gradient(0deg, transparent 48%, #fff 48% 52%, transparent 52%), linear-gradient(90deg, transparent 30%, #fff 30% 33%, transparent 33% 68%, #fff 68% 70%, transparent 70%), #cfe7e3; }
.map span { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -34px 0 0 -13px; background: var(--sun); border: 5px solid var(--white); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 4px 10px rgba(0, 0, 0, .18); }
.footer-info { padding: clamp(32px, 5vw, 56px) var(--pad); }
.footer-logo { margin-bottom: 14px; font-size: 1.3rem; font-weight: 700; color: var(--mint-dark); }
.footer dl > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); padding: 8px 0; font-size: .92rem; border-bottom: 1px solid var(--line); }
.footer dt { font-weight: 700; color: var(--mint-dark); }
.copy { margin-top: 20px; font-size: .76rem; color: var(--muted); }

/* ---------- 表示アニメーション ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px) scale(.98); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .menu article[data-reveal].in:hover { transform: translateY(-5px); }

@media (max-width: 1000px) {
  .tel { display: none; }
  .nav-toggle { display: block; }
  .nav { position: absolute; top: calc(100% + 8px); left: var(--pad); right: var(--pad); flex-direction: column; gap: 0; padding: 10px 22px; background: var(--white); border-radius: 22px; box-shadow: 0 14px 34px rgba(47, 168, 154, .22); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s; }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 13px 0; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .sp { display: inline; }
  .logo { font-size: 1rem; }
  .logo small { display: none; }
  .header-cta { padding: 8px 16px; font-size: .88rem; }
  .points { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .steps, .menu { grid-template-columns: minmax(0, 1fr); }
  .doctor { grid-template-columns: minmax(0, 1fr); }
  .doctor-photo { max-width: 220px; margin: 0 auto; }
  .footer { grid-template-columns: minmax(0, 1fr); }
  .map { min-height: 200px; }
  .bring b { display: block; }
  .btn { width: 100%; }
}

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