/* ===== Tokens ===== */
:root {
  --primary: #4ec0a8;        /* pastel green */
  --primary-2: #3aa890;
  --primary-soft: #e6f5f0;
  --primary-soft-2: #d3ecdf;
  --pink: #f4b3b3;
  --pink-soft: #fbe4e4;
  --bg: #ffffff;
  --bg-soft: #f5faf7;
  --bg-section: #f1f8f4;
  --text: #3a3a3a;
  --text-sub: #6b6b6b;
  --text-mute: #9a9a9a;
  --line: #e1ebe6;
  --line-soft: #ecf2ee;
  --card-bg: #ffffff;
  --card-radius: 18px;
  --btn-radius: 999px;
  --shadow-card: 0 1px 2px rgba(58, 110, 95, 0.05), 0 6px 24px rgba(58, 110, 95, 0.06);
  --shadow-pop: 0 12px 36px rgba(58, 110, 95, 0.12);
  --font-jp: "Zen Maru Gothic", "Noto Sans JP", "Hiragino Maru Gothic ProN", system-ui, sans-serif;
  --font-jp-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  --font-en: "Inter", system-ui, sans-serif;
  --container: 1080px;
  --header-h: 84px;
  --header-h-shrink: 64px;
}

/* ===== Reset ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-jp-body);
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.icon-fill {
  fill: currentColor;
  stroke: none;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--btn-radius);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  font-family: var(--font-jp-body);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(78, 192, 168, 0.32);
}
.btn-outline {
  background: #fff;
  color: var(--primary-2);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary-soft);
}
.btn-ghost {
  background: transparent;
  color: var(--primary-2);
  border-color: var(--line);
  padding: 8px 16px;
  font-size: 12.5px;
}
.btn-ghost:hover { border-color: var(--primary); background: var(--primary-soft); }
.btn-lg { padding: 16px 30px; font-size: 15px; }
.btn-sm { padding: 8px 16px; font-size: 12.5px; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: height 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  height: var(--header-h);
}
.site-header.is-scrolled {
  height: var(--header-h-shrink);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 2px 12px rgba(58, 110, 95, 0.05);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  width: 44px;
  height: 44px;
  flex: none;
}
.is-scrolled .brand-logo { width: 36px; height: 36px; }
.brand-name {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 19px;
  color: #3a3a3a;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.brand-en {
  font-family: var(--font-en);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--primary-2);
  margin-top: 3px;
  font-weight: 500;
}
.is-scrolled .brand-name { font-size: 17px; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13.5px;
  font-weight: 500;
}
.nav-list a {
  position: relative;
  padding: 6px 0;
  color: var(--text);
  transition: color 0.15s ease;
}
.nav-list a:hover { color: var(--primary-2); }
.nav-list a.active {
  color: var(--primary-2);
  font-weight: 700;
}
.nav-list a.active::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.tel-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
}
.tel-num {
  font-family: var(--font-en);
  font-size: 21px;
  font-weight: 700;
  color: var(--primary-2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.tel-hours {
  font-size: 10.5px;
  color: var(--text-mute);
  margin-top: 3px;
}
.is-scrolled .tel-num { font-size: 18px; }
.btn-reserve {
  background: var(--primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: 14px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  gap: 4px;
  font-weight: 600;
  font-size: 12px;
  position: relative;
  border: none;
}
.btn-reserve:hover { background: var(--primary-2); }
.btn-reserve .ico { font-size: 20px; }

.hamburger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--primary-2);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: #fff;
  z-index: 40;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu-inner {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 8px;
  border-bottom: 1px solid var(--line-soft);
  font-weight: 500;
}
.mobile-menu .mobile-cta {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding-top: var(--header-h);
  background: var(--primary-soft);
  overflow: hidden;
  min-height: 640px;
}
.hero-bg {
  position: absolute;
  inset: var(--header-h) 0 0 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  display: block;
}
.hero-bg-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(230, 245, 240, 0.96) 0%,
      rgba(230, 245, 240, 0.85) 28%,
      rgba(230, 245, 240, 0.40) 50%,
      rgba(230, 245, 240, 0.05) 72%,
      rgba(230, 245, 240, 0) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 56px 0 80px;
  min-height: 540px;
  display: flex;
  align-items: center;
}
.hero-copy {
  max-width: 540px;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 22px;
  letter-spacing: 0.02em;
}
.hero-title {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 46px;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: #2f2f2f;
  margin-bottom: 22px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}
.hero-title .em-pink { color: var(--pink); }
.hero-title .em-green { color: var(--primary); }
.hero-lead {
  font-size: 14.5px;
  line-height: 2;
  color: var(--text-sub);
  margin-bottom: 28px;
}
.hero-pills {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-pill {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(58, 110, 95, 0.08);
  backdrop-filter: blur(4px);
}
.hero-pill-ico {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.hero-pill-text {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.hero-floating-badge {
  position: absolute;
  right: 6%;
  bottom: 70px;
  background: #fff;
  width: 138px;
  height: 138px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 10px 32px rgba(58, 110, 95, 0.18);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  padding: 8px;
  z-index: 2;
}
.hero-floating-badge .ico {
  width: 36px; height: 36px;
  color: var(--primary);
  margin-bottom: 4px;
}

.hero-wave {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -1px;
  position: relative;
  z-index: 1;
}

/* ===== Section base ===== */
.section {
  padding: 76px 0;
  position: relative;
}
.section-tight { padding: 56px 0; }
.section-head {
  text-align: center;
  margin-bottom: 36px;
}
.section-title {
  font-family: var(--font-jp);
  font-size: 26px;
  font-weight: 700;
  color: var(--primary-2);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.section-title .leaf {
  width: 18px; height: 18px;
  color: var(--primary);
}
.section-sub {
  font-size: 14px;
  color: var(--text-sub);
  margin-top: 12px;
}

/* ===== Services ===== */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.svc-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--card-radius);
  padding: 22px 14px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.svc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-pop);
}
.svc-illust {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.svc-illust svg { width: 100%; height: 100%; }
.svc-illust svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svc-name {
  font-family: var(--font-jp);
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-2);
}
.svc-desc {
  font-size: 11.5px;
  color: var(--text-sub);
  line-height: 1.7;
  flex: 1;
}
.svc-link {
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--primary-2);
  border: 1px solid var(--primary);
  padding: 6px 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}
.svc-link:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== Two-column (院長 / アクセス) ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.panel {
  background: var(--primary-soft);
  border-radius: var(--card-radius);
  padding: 28px;
}
.panel-title {
  font-family: var(--font-jp);
  font-size: 19px;
  font-weight: 700;
  color: var(--primary-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
}
.panel-title .leaf {
  width: 16px; height: 16px;
  color: var(--primary);
}

/* 院長 */
.doctor-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  align-items: flex-start;
}
.doctor-photo {
  width: 130px;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor-h {
  font-family: var(--font-jp);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 10px;
}
.doctor-text {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.85;
  margin-bottom: 14px;
}
.doctor-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 12.5px;
  color: var(--text);
}
.doctor-name .label {
  font-size: 10.5px;
  color: var(--text-mute);
}
.doctor-name strong { font-weight: 700; }
.doctor-profile {
  font-size: 10.5px;
  color: var(--text-mute);
}
.doctor-name .arrow {
  margin-left: 6px;
  color: var(--primary);
  font-size: 14px;
}

/* アクセス */
.access-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.access-photo.access-map { background: #e8efe9; }
.access-photo.access-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.access-photo {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 4 / 3;
}
.access-photo img { width: 100%; height: 100%; object-fit: cover; }
.access-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-sub);
}
.access-list li {
  display: flex;
  gap: 10px;
  align-items: center;
}
.access-list .ico {
  width: 18px; height: 18px;
  color: var(--primary-2);
  flex: none;
}

/* ===== CTA bar ===== */
.cta-bar {
  background: var(--primary-soft);
  padding: 0;
}
.cta-bar-inner {
  display: grid;
  grid-template-columns: 300px 1fr 1fr;
  gap: 0;
  align-items: stretch;
  border-radius: var(--card-radius);
  overflow: hidden;
  margin: 28px 0;
  background: #fff;
  border: 1px solid var(--line-soft);
  min-height: 160px;
}
.cta-bar-photo {
  background: var(--primary-soft);
  position: relative;
  overflow: hidden;
  min-height: 220px;
}
.cta-bar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  min-height: 220px;
  display: block;
}
.cta-bar-block {
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.cta-bar-green {
  background: var(--primary);
  color: #fff;
}
.cta-bar-green .cta-bar-h {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 4px;
}
.cta-bar-green .cta-bar-p {
  font-size: 12px;
  opacity: 0.95;
}
.btn-web-reserve {
  background: #fff;
  color: var(--primary-2);
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  max-width: 280px;
}
.btn-web-reserve:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255,255,255,0.3); }
.cta-bar-tel { position: relative; }
.cta-bar-tel-h {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}
.cta-bar-tel-num {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 28px;
  color: var(--primary-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cta-bar-tel-hours {
  font-size: 11.5px;
  color: var(--text-mute);
  margin-top: 2px;
}
.cta-bar-tooth {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 64px; height: 64px;
  color: var(--primary);
}

/* ===== Footer ===== */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line-soft);
  padding: 24px 0 32px;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.footer-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  font-size: 12.5px;
  color: var(--text);
  border-radius: 10px;
  transition: background 0.15s ease;
}
.footer-link:hover { background: var(--primary-soft); color: var(--primary-2); }
.footer-link .ico {
  width: 22px; height: 22px;
  color: var(--text-mute);
}
.footer-link:hover .ico { color: var(--primary-2); }
.footer-copy {
  text-align: center;
  font-size: 11.5px;
  color: var(--text-mute);
  margin-top: 18px;
}

/* ===== Placeholder ===== */
.ph {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(135deg, #e6f5f0 0 12px, #d3ecdf 12px 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3aa890;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
  text-align: center;
  padding: 12px;
}
.ph::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(58, 168, 144, 0.45);
  border-radius: 10px;
  pointer-events: none;
}
.ph-label {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ===== Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.svc-card.reveal.is-visible:hover {
  transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .site-header,
  .mobile-menu,
  .hamburger span,
  .btn,
  .svc-card,
  .svc-link {
    transition: none;
  }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-title { font-size: 34px; }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-list { display: none; }
  .header-cta .tel-block { display: none; }
  .hamburger { display: flex; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
  .cta-bar-inner { grid-template-columns: 1fr 1fr; }
  .cta-bar-photo { display: none; }
  .hero-floating-badge { right: 4%; bottom: 80px; }
  .hero-bg img { object-position: 80% center; }
  .hero-bg-fade {
    background:
      linear-gradient(90deg,
        rgba(230, 245, 240, 0.96) 0%,
        rgba(230, 245, 240, 0.92) 40%,
        rgba(230, 245, 240, 0.55) 70%,
        rgba(230, 245, 240, 0.10) 100%);
  }
}
@media (max-width: 720px) {
  .container, .container-wide { padding: 0 18px; }
  .hero { min-height: 0; }
  .hero-inner {
    padding: 32px 0 60px;
    min-height: 0;
  }
  .hero-bg img { object-position: 75% center; }
  .hero-bg-fade {
    background:
      linear-gradient(180deg,
        rgba(230, 245, 240, 0.95) 0%,
        rgba(230, 245, 240, 0.88) 35%,
        rgba(230, 245, 240, 0.65) 60%,
        rgba(230, 245, 240, 0.30) 100%);
  }
  .hero-floating-badge {
    width: 104px; height: 104px;
    right: 4%; bottom: 30px;
    font-size: 10.5px;
  }
  .hero-floating-badge .ico { width: 28px; height: 28px; }
  .hero-title { font-size: 26px; line-height: 1.55; }
  .hero-pills { flex-direction: column; align-items: stretch; }
  .section { padding: 56px 0; }
  .section-title { font-size: 22px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .doctor-row { grid-template-columns: 1fr; }
  .doctor-photo { width: 100%; height: 220px; }
  .cta-bar-inner { grid-template-columns: 1fr; min-height: 0; }
  .cta-bar-tooth { display: none; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
  .footer-link { font-size: 11.5px; }
  .btn-reserve { padding: 10px 12px; }
}
