:root {
  --ink: #314346;
  --muted: #6f7f7f;
  --line: #dbe8e4;
  --soft: #f3f8f5;
  --mint: #8cbcaf;
  --mint-dark: #5c9385;
  --leaf: #dcebdd;
  --cream: #fffaf0;
  --white: #ffffff;
  --shadow: 0 20px 55px rgba(68, 96, 93, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 14px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--white);
  background: var(--mint-dark);
  border-radius: 50%;
  font: 700 26px/1 "Roboto", sans-serif;
  box-shadow: inset 0 -7px 0 rgba(255, 255, 255, 0.18);
}

.logo strong {
  display: block;
  font-size: 23px;
  letter-spacing: 0;
}

.logo small {
  display: block;
  color: var(--mint-dark);
  font: 500 11px/1.3 "Roboto", sans-serif;
  letter-spacing: 0.08em;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.header-actions,
.hero-buttons,
.contact-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-link {
  min-height: 42px;
  padding: 8px 18px;
  color: var(--mint-dark);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.icon-link::before {
  content: "☎";
  margin-right: 6px;
}

.icon-link.pin::before {
  content: "⌖";
}

.global-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0 20px 14px;
  overflow-x: auto;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.global-nav a {
  padding: 8px 18px;
  border-radius: 999px;
  white-space: nowrap;
}

.global-nav a:hover {
  background: var(--soft);
  color: var(--mint-dark);
}

.hero {
  position: relative;
  min-height: 660px;
  padding: 72px max(34px, calc((100vw - 1180px) / 2)) 92px;
  display: grid;
  align-items: end;
}

.hero-image {
  position: absolute;
  inset: 0 0 0 11%;
  z-index: 0;
  border-bottom-left-radius: 72px;
  overflow: hidden;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.7) 31%, rgba(255,255,255,0.06) 70%);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.03);
  animation: heroFade 18s infinite;
}

.hero-slide.slide-1 {
  background-image: url("https://images.unsplash.com/photo-1588776814546-1ffcf47267a5?auto=format&fit=crop&w=1800&q=80");
}

.hero-slide.slide-2 {
  background-image: url("https://images.unsplash.com/photo-1606811971618-4486d14f3f99?auto=format&fit=crop&w=1800&q=80");
  animation-delay: 6s;
}

.hero-slide.slide-3 {
  background-image: url("https://images.unsplash.com/photo-1629909613654-28e377c37b09?auto=format&fit=crop&w=1800&q=80");
  animation-delay: 12s;
}

@keyframes heroFade {
  0% {
    opacity: 0;
    transform: scale(1.03);
  }
  8%,
  33% {
    opacity: 1;
  }
  41%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 620px;
}

.eyebrow,
.section-heading span {
  display: block;
  color: var(--mint-dark);
  font: 700 13px/1.3 "Roboto", sans-serif;
  letter-spacing: 0.14em;
}

.hero h1 {
  margin: 18px 0 20px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.35;
  letter-spacing: 0;
}

.hero p {
  max-width: 500px;
  margin: 0 0 30px;
  color: #506365;
  font-size: 17px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  white-space: nowrap;
}

.button.primary {
  color: var(--white);
  background: var(--mint-dark);
}

.button.secondary {
  color: var(--mint-dark);
  background: var(--white);
  border-color: var(--line);
}

.button.line {
  color: var(--mint-dark);
  background: var(--leaf);
}

.split-news {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  width: min(1080px, calc(100% - 40px));
  margin: -56px auto 110px;
  position: relative;
  z-index: 3;
}

.info-panel,
.schedule-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.45;
  letter-spacing: 0;
}

.section-heading.compact h2 {
  font-size: 22px;
}

.section-heading.centered {
  text-align: center;
}

.news-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.news-list li {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.news-list time {
  color: var(--mint-dark);
  font: 700 13px/1.8 "Roboto", sans-serif;
}

table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  text-align: center;
  font-size: 14px;
}

th,
td {
  padding: 9px 6px;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-weight: 500;
}

td {
  color: var(--mint-dark);
  font-weight: 700;
}

.schedule-panel p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.service-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 118px;
}

.service-band.reverse {
  grid-template-columns: minmax(360px, 520px) minmax(0, 1fr);
}

.service-band.reverse .service-copy {
  order: 2;
}

.lead {
  margin: 24px 0 30px;
  color: #506365;
  font-size: 18px;
}

.link-grid,
.about-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.link-grid a,
.about-links a,
.activity-list a {
  min-height: 56px;
  padding: 14px 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
}

.link-grid a::after,
.about-links a::after,
.activity-list a::after {
  content: "→";
  float: right;
  color: var(--mint-dark);
}

.rounded-photo {
  margin: 0;
  position: relative;
}

.rounded-photo::before {
  content: "";
  position: absolute;
  inset: 24px -22px -22px 24px;
  background: var(--leaf);
  border-radius: 42px;
  z-index: -1;
}

.rounded-photo img {
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 48px 8px 48px 8px;
  box-shadow: var(--shadow);
}

.activities {
  padding: 92px 20px 102px;
  background: linear-gradient(180deg, var(--soft), #ffffff);
}

.activity-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: min(1120px, 100%);
  margin: 36px auto 0;
}

.activity-list a {
  display: grid;
  align-content: space-between;
  min-height: 160px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(68, 96, 93, 0.08);
}

.about-band {
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  align-items: center;
  gap: 58px;
  width: min(1180px, calc(100% - 40px));
  margin: 112px auto;
}

.about-photo {
  min-height: 430px;
  border-radius: 8px 70px 8px 70px;
  background:
    linear-gradient(180deg, rgba(62,92,88,0.04), rgba(62,92,88,0.12)),
    url("https://images.unsplash.com/photo-1629909615184-74f495363b67?auto=format&fit=crop&w=1100&q=80") center / cover;
  box-shadow: var(--shadow);
}

.about-copy {
  padding: 10px 0;
}

.about-links {
  margin-top: 32px;
}

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.card-grid article {
  padding: 34px;
  background: var(--cream);
  border: 1px solid #efe7d4;
  border-radius: 8px;
}

.card-grid span {
  color: var(--mint-dark);
  font: 700 14px/1 "Roboto", sans-serif;
}

.card-grid h3 {
  margin: 14px 0 12px;
  font-size: 24px;
}

.card-grid p {
  margin: 0;
  color: var(--muted);
}

.doctor-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  margin-top: 34px;
  padding: 40px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.doctor-role {
  margin: 0 0 6px;
  color: var(--mint-dark);
  font-weight: 700;
}

.doctor-panel h3 {
  margin: 0 0 12px;
  font-size: 28px;
}

.doctor-panel p:last-child {
  margin: 0;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 96px;
  padding: 44px 52px;
  color: var(--white);
  background: var(--mint-dark);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact .section-heading span,
.contact p {
  color: rgba(255, 255, 255, 0.8);
}

.contact .button.primary {
  color: var(--mint-dark);
  background: var(--white);
}

.contact p {
  margin: 14px 0 0;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: end;
  padding: 58px max(20px, calc((100vw - 1120px) / 2));
  background: #314346;
  color: var(--white);
}

.site-footer p {
  margin: 18px 0 0;
  color: rgba(255,255,255,0.72);
  font-size: 14px;
}

.footer-logo .logo-mark {
  background: var(--white);
  color: var(--mint-dark);
}

.footer-logo small {
  color: rgba(255,255,255,0.7);
}

.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: rgba(255,255,255,0.78);
  font-size: 14px;
}

@media (max-width: 900px) {
  .header-top,
  .split-news,
  .service-band,
  .service-band.reverse,
  .about-band,
  .card-grid,
  .doctor-panel,
  .contact,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .header-top {
    gap: 12px;
  }

  .tagline {
    order: 3;
  }

  .header-actions {
    justify-self: start;
    flex-wrap: wrap;
  }

  .hero {
    min-height: 620px;
    padding-top: 54px;
  }

  .hero-image {
    left: 0;
    border-bottom-left-radius: 42px;
  }

  .split-news {
    margin-top: -36px;
    margin-bottom: 82px;
  }

  .service-band.reverse .service-copy {
    order: 0;
  }

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

  .contact-buttons,
  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .header-top {
    width: min(100% - 28px, 1180px);
  }

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

  .logo strong {
    font-size: 20px;
  }

  .global-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .hero {
    min-height: 560px;
    padding: 42px 20px 72px;
  }

  .hero-image {
    border-bottom-left-radius: 42px;
  }

  .hero-image::after {
    background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 43%, rgba(255,255,255,0.12) 100%);
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-buttons,
  .contact-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .info-panel,
  .schedule-panel,
  .card-grid article,
  .contact {
    padding: 26px;
  }

  .news-list li {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  table {
    font-size: 12px;
  }

  th,
  td {
    padding: 8px 3px;
  }

  .link-grid,
  .about-links,
  .activity-list {
    grid-template-columns: 1fr;
  }

  .rounded-photo img {
    border-radius: 34px 8px 34px 8px;
  }

  .about-photo {
    min-height: 320px;
    border-radius: 8px 44px 8px 44px;
  }
}
