:root {
  --sky: #38a8e0;
  --sky-deep: #1b7fb5;
  --sky-pale: #eaf6fd;
  --sky-line: #cde9f8;
  --ink: #2b3a44;
  --ink-soft: #5a6b76;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.9;
}

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

/* ---------- hero ---------- */

.hero {
  background: linear-gradient(rgba(16, 62, 92, 0.55), rgba(35, 118, 166, 0.45)),
    url("assets/hero-clinic.jpg") center/cover no-repeat;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.3rem 2rem;
  position: relative;
}

.logo {
  font-size: 1.25rem;
  font-weight: bold;
  letter-spacing: 0.06em;
}

.logo-mark {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a:hover {
  opacity: 0.75;
}

.nav-cta {
  background: var(--sky);
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  font-weight: bold;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 20;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 8vw;
  max-width: 960px;
}

.hero-eyebrow {
  background: rgba(255, 255, 255, 0.9);
  color: var(--sky-deep);
  font-weight: bold;
  font-size: 0.85rem;
  padding: 0.2rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
  letter-spacing: 0.08em;
}

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 12px rgba(0, 40, 70, 0.4);
}

.hero-lead {
  margin-top: 1.2rem;
  font-size: 1.05rem;
  text-shadow: 0 1px 8px rgba(0, 40, 70, 0.5);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.cta-button {
  background: var(--sky);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 0.85rem 2.2rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(20, 90, 130, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(20, 90, 130, 0.45);
}

.cta-button.outline {
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid #fff;
}

.cta-button.outline.dark {
  background: transparent;
  border: 2px solid var(--sky-deep);
  color: var(--sky-deep);
  box-shadow: none;
}

.hero-info-bar {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  padding: 0.9rem 2rem;
  font-size: 0.92rem;
}

.hero-info-bar strong {
  color: var(--sky-deep);
  margin-right: 0.4rem;
}

/* ---------- sections ---------- */

.section {
  padding: 5rem 8vw;
  max-width: 1100px;
  margin: 0 auto;
}

.section.alt {
  max-width: none;
  background: var(--sky-pale);
}

.section.alt > * {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.section-en {
  color: var(--sky);
  font-weight: bold;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.8rem;
  text-align: center;
}

.section h2 {
  text-align: center;
  font-size: 1.7rem;
  letter-spacing: 0.08em;
  margin-bottom: 2.8rem;
  position: relative;
  padding-bottom: 0.9rem;
}

.section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 4px;
  border-radius: 2px;
  background: var(--sky);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s, transform 0.7s;
}

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

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.about-grid img {
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(30, 90, 130, 0.15);
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.about-text p + p {
  margin-top: 1rem;
}

.about-points {
  list-style: none;
  margin-top: 1.4rem;
  display: grid;
  gap: 0.6rem;
}

.about-points li {
  background: var(--sky-pale);
  border-left: 4px solid var(--sky);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-weight: bold;
  font-size: 0.95rem;
}

/* ---------- services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--sky-line);
  border-radius: 16px;
  padding: 1.8rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(30, 90, 130, 0.08);
  transition: transform 0.15s, box-shadow 0.15s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(30, 90, 130, 0.14);
}

.service-icon {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 0.8rem;
}

.service-card h3 {
  color: var(--sky-deep);
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-align: left;
}

/* ---------- feature ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.feature-item {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(30, 90, 130, 0.12);
}

.feature-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.feature-item figcaption {
  padding: 1.4rem 1.6rem 1.8rem;
}

.feature-item h3 {
  color: var(--sky-deep);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.feature-item p {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- doctor ---------- */

.doctor-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.doctor-avatar svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(30, 90, 130, 0.18));
}

.doctor-title {
  color: var(--sky);
  font-weight: bold;
  letter-spacing: 0.15em;
}

.doctor-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.doctor-kana {
  font-size: 0.9rem;
  font-weight: normal;
  color: var(--ink-soft);
}

.doctor-text p + p {
  margin-top: 0.8rem;
}

.doctor-history {
  margin-top: 1.4rem;
  background: var(--white);
  border: 1px solid var(--sky-line);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  font-size: 0.92rem;
}

.doctor-history dt {
  color: var(--sky-deep);
  font-weight: bold;
}

.doctor-history dd + dt {
  margin-top: 0.7rem;
}

/* ---------- hours ---------- */

.hours-wrap {
  overflow-x: auto;
}

.hours-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(30, 90, 130, 0.1);
}

.hours-table th,
.hours-table td {
  border: 1px solid var(--sky-line);
  padding: 0.8rem 0.6rem;
  text-align: center;
  font-size: 0.95rem;
}

.hours-table thead th {
  background: var(--sky);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.hours-table tbody th {
  background: var(--sky-pale);
  font-weight: bold;
  white-space: nowrap;
}

.hours-table td {
  color: var(--sky-deep);
  font-weight: bold;
}

.hours-table td.closed {
  color: #b0bec7;
  background: #f7fafc;
}

.hours-note {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- access ---------- */

.access-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.access-info dt {
  color: var(--sky-deep);
  font-weight: bold;
  margin-top: 1rem;
}

.access-info dt:first-child {
  margin-top: 0;
}

.access-info dd {
  font-size: 0.95rem;
}

.access-info a {
  color: var(--sky-deep);
}

.map-wrap iframe {
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(30, 90, 130, 0.15);
}

/* ---------- contact ---------- */

.contact-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--sky-pale), #ffffff);
  max-width: none;
}

.contact-cta p {
  max-width: 640px;
  margin: 0 auto;
}

.contact-cta .hero-buttons {
  justify-content: center;
}

/* ---------- footer ---------- */

footer {
  background: var(--ink);
  color: #cfdbe3;
  text-align: center;
  padding: 2.2rem 1.5rem;
  font-size: 0.85rem;
}

footer .credits {
  margin-top: 0.6rem;
  font-size: 0.78rem;
}

footer .credits a {
  color: #9fc8e2;
}

footer .copyright {
  margin-top: 0.8rem;
  opacity: 0.7;
}

.back-home {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(155deg, #ffb46b 0%, #f0964f 45%, #c17a52 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.8rem;
  font-weight: bold;
  line-height: 1.4;
  text-decoration: none;
  box-shadow:
    0 16px 28px rgba(193, 122, 82, 0.45),
    0 6px 12px rgba(74, 50, 34, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.45),
    inset 0 -3px 5px rgba(120, 60, 20, 0.25);
  z-index: 100;
  transition: transform 0.2s, box-shadow 0.2s;
}

.back-home:hover {
  transform: translateY(-5px) scale(1.06);
  box-shadow:
    0 22px 34px rgba(193, 122, 82, 0.55),
    0 8px 14px rgba(74, 50, 34, 0.35),
    inset 0 1px 2px rgba(255, 255, 255, 0.5),
    inset 0 -3px 5px rgba(120, 60, 20, 0.3);
}

/* ---------- mobile ---------- */

@media (max-width: 720px) {
  .back-home {
    width: 68px;
    height: 68px;
    font-size: 0.65rem;
    right: 1rem;
    bottom: 1rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(20, 60, 90, 0.97);
    padding: 1.5rem 0;
    gap: 1.1rem;
    z-index: 10;
  }

  .nav-links.open {
    display: flex;
  }

  .hero-info-bar {
    gap: 0.4rem;
    flex-direction: column;
    text-align: center;
  }

  .section {
    padding: 3.5rem 6vw;
  }

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

  .doctor-avatar {
    max-width: 200px;
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}
