:root {
  --white: #ffffff;
  --ice: #f4fbfd;
  --aqua: #dff5f8;
  --mint: #bfe9e5;
  --teal: #0f928f;
  --teal-dark: #08716f;
  --navy: #193b5a;
  --ink: #203342;
  --muted: #657887;
  --line: #d8e8ed;
  --accent: #f5b84b;
  --shadow: 0 18px 50px rgba(25, 59, 90, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.75;
  background: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section-padding {
  padding: 88px 0;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.25;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 1.35;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.45;
}

p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(216, 232, 237, 0.85);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.clinic-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), #44bbb3);
  border-radius: 50%;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(15, 146, 143, 0.22);
}

.logo-text {
  display: grid;
  gap: 0;
}

.logo-name {
  color: var(--navy);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.3;
}

.logo-sub {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.2;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  color: #42586a;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.global-nav a {
  transition: color 0.2s ease;
}

.global-nav a:hover {
  color: var(--teal-dark);
}

.header-actions {
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 11px 18px;
  font-weight: 800;
  line-height: 1.25;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  box-shadow: 0 12px 24px rgba(15, 146, 143, 0.22);
}

.btn-secondary {
  color: var(--navy);
  background: var(--white);
  border-color: var(--line);
  box-shadow: 0 10px 26px rgba(25, 59, 90, 0.1);
}

.btn-outline {
  color: var(--teal-dark);
  background: var(--white);
  border-color: #9ed9d4;
}

.btn-small {
  min-height: 40px;
  padding: 9px 14px;
  font-size: 0.86rem;
}

.btn-large {
  min-height: 54px;
  padding: 14px 24px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 38px 0 76px;
  background:
    radial-gradient(circle at 92% 18%, rgba(245, 184, 75, 0.15), transparent 28%),
    radial-gradient(circle at 15% 24%, rgba(191, 233, 229, 0.55), transparent 30%),
    linear-gradient(145deg, #f7fcfd 0%, #e8f8fb 58%, #ffffff 100%);
}

.section-wave::after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -68px;
  height: 135px;
  background: var(--white);
  border-radius: 50% 50% 0 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: calc(100svh - 118px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(46px, 7vw, 86px);
  border: 1px solid rgba(216, 232, 237, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #eaf7fa;
  isolation: isolate;
}

.hero-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 36%, rgba(255, 255, 255, 0.28) 48%, rgba(255, 255, 255, 0) 56%),
    radial-gradient(circle at 18% 22%, rgba(223, 245, 248, 0.42), transparent 30%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 24px;
  max-width: 560px;
}

.hero-lead {
  max-width: 620px;
  color: #4d6577;
  font-size: 1.08rem;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  color: var(--muted);
  font-weight: 700;
}

.hero-contact a {
  color: var(--navy);
  font-size: 1.35rem;
  font-weight: 800;
}

.hero-contact small {
  color: var(--muted);
}

.hero-visual {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -2;
  width: 62%;
  min-height: 100%;
}

.visual-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    url("assets/hero-doctor.png") calc(100% + 130px) center / cover no-repeat;
  box-shadow: none;
}

.doctor-badge {
  position: absolute;
  right: clamp(24px, 5vw, 62px);
  bottom: clamp(22px, 5vw, 54px);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 290px;
  padding: 16px 18px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-weight: 800;
}

.doctor-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 33%, #f0c7ad 0 12px, transparent 13px),
    linear-gradient(180deg, transparent 0 43%, #ffffff 44% 100%),
    linear-gradient(135deg, #8ec9d2, #0f928f);
}

.status-section {
  position: relative;
  z-index: 2;
  margin-top: -34px;
}

.status-panel {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 26px;
  align-items: center;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.status-items {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1.25fr;
  gap: 14px;
}

.status-item {
  display: grid;
  gap: 4px;
  min-height: 88px;
  align-content: center;
  padding: 16px;
  background: var(--ice);
  border-radius: 8px;
}

.status-item span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.status-item strong {
  color: var(--navy);
  font-size: 1.02rem;
}

.status-open {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #28b66f;
  box-shadow: 0 0 0 8px rgba(40, 182, 111, 0.12);
}

.section-header-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.text-link {
  color: var(--teal-dark);
  font-weight: 800;
  border-bottom: 2px solid currentColor;
}

.news-list {
  display: grid;
  gap: 14px;
}

.news-item {
  display: grid;
  grid-template-columns: 110px 88px 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(25, 59, 90, 0.06);
}

.news-item time {
  color: var(--muted);
  font-weight: 700;
}

.news-tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  color: var(--teal-dark);
  background: var(--aqua);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.news-item p {
  grid-column: 3;
  color: var(--muted);
  font-size: 0.92rem;
}

.hours-section,
.features-section,
.access-section {
  background: var(--ice);
}

.split-layout,
.about-grid,
.doctor-grid,
.access-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: 54px;
}

.section-copy {
  display: grid;
  gap: 18px;
}

.section-copy p {
  color: #536a7b;
}

.note {
  padding: 14px 16px;
  color: var(--navy) !important;
  background: var(--white);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  font-weight: 700;
}

.hours-card {
  overflow: auto;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hours-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  text-align: center;
}

.hours-table th,
.hours-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
}

.hours-table thead th {
  color: var(--white);
  background: var(--navy);
  font-size: 0.92rem;
}

.hours-table thead th:first-child {
  border-radius: 8px 0 0 0;
}

.hours-table thead th:last-child {
  border-radius: 0 8px 0 0;
}

.hours-table tbody th {
  color: var(--navy);
  background: #f7fbfc;
  font-weight: 800;
}

.hours-table td {
  color: var(--teal-dark);
  font-weight: 800;
}

.table-caption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.about-grid,
.doctor-grid {
  grid-template-columns: 1fr 1fr;
}

.about-visual {
  position: relative;
  min-height: 420px;
}

.about-photo {
  height: 380px;
  border: 12px solid var(--white);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.88) 0 3px, transparent 3px 33%),
    linear-gradient(180deg, #cfe9ee 0 52%, #f8fbfb 53% 100%);
  box-shadow: var(--shadow);
}

.about-photo::after {
  content: "";
  display: block;
  width: 70%;
  height: 92px;
  margin: 230px auto 0;
  background: linear-gradient(180deg, #ffffff, #e3eff1);
  border-radius: 8px;
  box-shadow: 0 16px 30px rgba(25, 59, 90, 0.1);
}

.about-mini-card {
  position: absolute;
  right: 20px;
  bottom: 6px;
  max-width: 260px;
  padding: 18px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-weight: 800;
}

.section-center {
  max-width: 720px;
  margin-bottom: 34px;
  text-align: center;
}

.section-center p:last-child {
  margin-top: 12px;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card,
.step-card {
  display: grid;
  gap: 12px;
  min-height: 220px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(25, 59, 90, 0.07);
}

.service-card p,
.step-card p,
.feature-item p {
  color: var(--muted);
}

.card-icon,
.step-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--teal-dark);
  background: var(--aqua);
  border-radius: 50%;
  font-weight: 800;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.feature-item {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-item span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-weight: 800;
}

.doctor-portrait {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 12px solid var(--white);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 24%, #f4c9ad 0 52px, transparent 53px),
    linear-gradient(180deg, #dff5f8 0 42%, #f8fbfc 43% 100%);
  box-shadow: var(--shadow);
}

.doctor-portrait::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 13%;
  width: 122px;
  height: 60px;
  transform: translateX(-50%);
  background: #24374d;
  border-radius: 60px 60px 18px 18px;
}

.portrait-face {
  position: absolute;
  left: 50%;
  top: 19%;
  width: 112px;
  height: 132px;
  transform: translateX(-50%);
  background: #f1c7ad;
  border-radius: 50% 50% 46% 46%;
  box-shadow: inset 0 -10px 0 rgba(194, 121, 91, 0.13);
}

.portrait-coat {
  position: absolute;
  left: 50%;
  bottom: -28px;
  width: 280px;
  height: 220px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #ffffff 0 48%, #eaf5f7 49% 51%, #ffffff 52% 100%);
  border-radius: 90px 90px 0 0;
  box-shadow: 0 -12px 28px rgba(25, 59, 90, 0.08);
}

.doctor-name {
  color: var(--navy) !important;
  font-size: 1.25rem;
  font-weight: 800;
}

.career-list,
.access-list {
  margin: 0;
  padding-left: 1.25em;
  color: #536a7b;
}

.first-visit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.visit-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.visit-info > div {
  padding: 24px;
  background: var(--ice);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.visit-info p {
  margin-top: 8px;
  color: var(--muted);
}

address {
  color: #536a7b;
  font-style: normal;
}

.access-tel {
  color: var(--navy) !important;
  font-size: 1.2rem;
  font-weight: 800;
}

.map-placeholder {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(25,59,90,0.1) 49% 51%, transparent 52% 100%),
    linear-gradient(180deg, #dceff3, #f8fbfb);
  border: 10px solid var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.map-road {
  position: absolute;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(25, 59, 90, 0.07);
}

.road-main {
  left: -12%;
  top: 50%;
  width: 125%;
  height: 44px;
  transform: rotate(-12deg);
}

.road-sub {
  left: 24%;
  top: -10%;
  width: 42px;
  height: 130%;
  transform: rotate(24deg);
}

.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  color: var(--white);
  background: var(--teal);
  border: 6px solid var(--white);
  border-radius: 50% 50% 50% 6px;
  box-shadow: 0 16px 28px rgba(25, 59, 90, 0.22);
  font-weight: 800;
}

.map-placeholder span {
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 800;
}

.cta-section {
  padding: 88px 0;
  background: linear-gradient(135deg, #e6f8f9, #ffffff 58%, #eef9f6);
}

.cta-panel {
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: 48px 28px;
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.cta-panel p:not(.section-kicker) {
  color: var(--muted);
}

.site-footer {
  color: #d9e8ef;
  background: var(--navy);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  padding: 48px 0 28px;
}

.footer-logo {
  margin-bottom: 18px;
}

.footer-logo .logo-name,
.footer-logo .logo-sub {
  color: var(--white);
}

.site-footer p {
  margin-top: 8px;
  color: #c1d5df;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  align-content: start;
  font-weight: 700;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-copy {
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
  font-size: 0.84rem;
}

.page-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--teal-dark);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 12px 24px rgba(25, 59, 90, 0.2);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.page-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .global-nav,
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-nav.is-open {
    display: grid;
    gap: 12px;
  }

  .mobile-nav a {
    padding: 10px 4px;
    color: var(--navy);
    font-weight: 800;
  }

  .mobile-nav-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 8px;
  }

  .hero-grid,
  .status-panel,
  .split-layout,
  .about-grid,
  .doctor-grid,
  .access-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 360px;
  }

  .status-items,
  .service-grid,
  .first-visit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .section-padding,
  .cta-section {
    padding: 58px 0;
  }

  .header-inner {
    min-height: 66px;
    width: min(100% - 24px, 1180px);
  }

  .logo-mark {
    width: 38px;
    height: 38px;
  }

  .logo-name {
    font-size: 0.98rem;
  }

  .logo-sub {
    display: none;
  }

  .hero-section {
    padding: 50px 0 54px;
  }

  .hero-grid {
    gap: 34px;
    min-height: 760px;
    align-items: start;
    padding: 36px 22px 310px;
  }

  .hero-grid::before {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.92) 55%, rgba(255, 255, 255, 0) 72%);
  }

  .hero-content {
    gap: 18px;
    max-width: 100%;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-actions,
  .cta-actions,
  .mobile-nav-actions {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .cta-actions .btn,
  .mobile-nav-actions .btn {
    width: 100%;
  }

  .hero-visual {
    inset: auto 0 0 0;
    width: 100%;
    height: 330px;
    min-height: 0;
  }

  .visual-card {
    background:
      url("assets/hero-doctor.png") 62% center / cover no-repeat;
  }

  .doctor-badge {
    left: 14px;
    right: 14px;
    bottom: -18px;
    max-width: none;
  }

  .status-panel {
    padding: 20px;
  }

  .status-items,
  .service-grid,
  .feature-list,
  .first-visit-grid,
  .visit-info,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .news-item {
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
  }

  .news-item h3,
  .news-item p {
    grid-column: 1 / -1;
  }

  .section-header-row {
    display: grid;
    align-items: start;
  }

  .hours-card {
    padding: 12px;
  }

  .about-visual,
  .doctor-portrait,
  .map-placeholder {
    min-height: 310px;
  }

  .about-photo {
    height: 300px;
  }

  .about-photo::after {
    margin-top: 178px;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
