:root {
  --ink: #1d2733;
  --muted: #5b6673;
  --line: #dfe7ec;
  --paper: #f5f9fb;
  --white: #ffffff;
  --blue: #2f7f9f;
  --blue-dark: #195f7a;
  --blue-soft: #e5f3f7;
  --mint: #dff2ee;
  --yellow: #f6bd45;
  --shadow: 0 18px 54px rgba(24, 72, 92, .12);
  --max: 1120px;
  font-family: "Noto Sans JP", "Yu Gothic", Meiryo, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
  overflow-x: hidden;
  padding-bottom: 68px;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px clamp(18px, 4vw, 42px);
  color: var(--white);
  background: var(--blue-dark);
  font-size: 13px;
  font-weight: 700;
}

.topbar p {
  margin: 0;
}

.topbar a {
  text-decoration: none;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 42px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  font-weight: 900;
}

.brand-mark svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 20px;
  line-height: 1.3;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
}

.reserve {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
}

.reserve {
  color: var(--ink);
  background: var(--yellow);
}

.global-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 10px 18px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav-toggle {
  display: none;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.nav-links a {
  padding: 10px 14px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.hero {
  width: min(1240px, calc(100% - 36px));
  margin: clamp(18px, 3vw, 34px) auto 0;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  min-width: 0;
  overflow-wrap: anywhere;
  line-break: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.16;
  font-weight: 520;
  letter-spacing: .02em;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.22;
  font-weight: 520;
}

h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 620;
}

.hero-lead,
.text-block p,
.section-head p,
.first-card p,
.doctor-copy p,
.hours p,
.contact p {
  color: var(--muted);
  line-height: 1.85;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
}

.button.outline {
  border: 1px solid var(--line);
  background: var(--white);
}

.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(240px, .72fr);
  grid-template-rows: minmax(250px, 42svh) minmax(190px, 27svh);
  gap: clamp(12px, 1.8vw, 22px);
}

.hero-panel {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.hero-main {
  grid-row: 1 / span 2;
  min-height: 620px;
}

.hero-room,
.hero-doctor {
  min-height: 0;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20, 60, 75, .32), transparent 56%);
  pointer-events: none;
}

.hero-title {
  position: absolute;
  left: clamp(24px, 4.2vw, 58px);
  right: clamp(24px, 4vw, 54px);
  bottom: clamp(26px, 5vw, 70px);
  z-index: 2;
  max-width: 620px;
  color: var(--white);
  text-shadow: 0 2px 14px rgba(20, 60, 75, .24);
}

.hero-title span,
.hero-panel figcaption:not(.hero-title) {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-title h1 {
  margin-top: 10px;
  color: var(--white);
}

.hero-title p {
  margin: 16px 0 0;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.8;
  font-weight: 400;
}

.hero-title strong {
  font-weight: 700;
}

.hero-panel figcaption:not(.hero-title) {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(20, 60, 75, .28);
}

.quick-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(var(--max), calc(100% - 36px));
  margin: 18px auto 0;
}

.quick-info article,
.care-grid article,
.first-card,
.doctor-copy,
.schedule,
.map-card,
.faq-list details {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(24, 72, 92, .07);
}

.quick-info article {
  padding: 20px;
}

.quick-info span,
.care-grid span {
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.quick-info strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.quick-info p,
.care-grid p,
.faq-list p,
.access-list dd {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.section {
  padding: clamp(58px, 8vw, 100px) clamp(18px, 4vw, 42px);
}

.container {
  width: min(var(--max), 100%);
  margin-inline: auto;
}

.news {
  padding-block: 38px;
}

.news-layout,
.split,
.first-layout,
.doctor-layout,
.hours-layout,
.access-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: start;
}

.news-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.news-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.news-list time {
  color: var(--blue-dark);
  font-weight: 900;
}

.news-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.intro {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.text-block {
  display: grid;
  gap: 14px;
}

.text-block p {
  margin: 0;
}

.section-head {
  display: grid;
  gap: 12px;
  width: min(720px, 100%);
  margin-bottom: 28px;
}

.section-head p {
  margin: 0;
}

.care-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.care-grid article {
  min-height: 210px;
  padding: 22px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.first {
  background: var(--blue-soft);
}

.first-card {
  padding: clamp(24px, 4vw, 36px);
}

.first-card > p {
  margin: 14px 0 0;
}

.first-card ol {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.first-card li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 4px 12px;
  padding: 14px;
  border-left: 4px solid var(--yellow);
  background: var(--paper);
}

.first-card li span {
  color: var(--blue-dark);
  font-weight: 900;
}

.first-card li p {
  grid-column: 2;
  margin: 0;
}

.section-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.doctor-layout {
  align-items: center;
}

.doctor-copy {
  padding: clamp(24px, 4vw, 36px);
  border-left: 6px solid var(--blue);
}

.doctor-name {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.doctor-name span {
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 900;
}

.doctor-name strong {
  font-size: 26px;
}

.hours {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.schedule {
  padding: 20px;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

th:first-child,
td:first-child {
  text-align: left;
}

thead th,
tbody th {
  color: var(--blue-dark);
}

.schedule p {
  margin: 14px 0 0;
  font-size: 14px;
}

.access-layout {
  align-items: center;
}

.map-card {
  min-height: 360px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(47, 127, 159, .12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(47, 127, 159, .12) 1px, transparent 1px),
    #f7fbfd;
  background-size: 42px 42px;
}

.map-card span {
  color: rgba(25, 95, 122, .22);
  font-size: 72px;
  font-weight: 900;
}

.access-list {
  display: grid;
  gap: 16px;
  margin: 24px 0 0;
}

.access-list div {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.access-list dt {
  color: var(--blue-dark);
  font-weight: 900;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.faq-list details {
  padding: 20px;
}

summary {
  cursor: pointer;
  font-weight: 900;
  line-height: 1.5;
}

.contact {
  padding: clamp(52px, 7vw, 86px) clamp(18px, 4vw, 42px);
  color: var(--white);
  background: var(--blue-dark);
}

.contact .section-label,
.contact p {
  color: rgba(255, 255, 255, .78);
}

.contact h2 {
  color: var(--white);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-self: center;
}

.contact .button.outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, .42);
  background: transparent;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 42px);
  color: rgba(255, 255, 255, .74);
  background: #102d3a;
}

footer p {
  margin: 0;
}

footer a {
  color: var(--white);
  font-weight: 900;
}

.reservation-bar {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(620px, calc(100% - 28px));
  transform: translateX(-50%);
  overflow: hidden;
  border: 1px solid rgba(223, 231, 236, .8);
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 48px rgba(24, 72, 92, .18);
  backdrop-filter: blur(14px);
}

.reservation-bar a {
  display: grid;
  place-items: center;
  min-height: 50px;
  padding: 9px 14px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
}

.reservation-phone {
  color: var(--blue-dark);
  background: var(--white);
}

.reservation-online {
  color: var(--ink);
  background: var(--yellow);
}

@media (max-width: 920px) {
  .nav-links {
    justify-content: start;
    overflow-x: auto;
  }

  .news-layout,
  .split,
  .first-layout,
  .doctor-layout,
  .hours-layout,
  .access-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(420px, 64svh) minmax(180px, 26svh);
  }

  .hero-main {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 420px;
  }

  .quick-info,
  .care-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .doctor-layout img {
    order: 2;
  }
}

@media (max-width: 560px) {
  .topbar {
    display: none;
  }

  .site-header {
    gap: 10px;
    padding-block: 14px;
  }

  .brand {
    min-width: 0;
    gap: 10px;
  }

  .brand strong {
    font-size: 16px;
    white-space: nowrap;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-mark svg {
    width: 25px;
    height: 25px;
  }

  .global-nav {
    display: none;
    position: sticky;
    top: 0;
    padding: 0 12px 12px;
    background: rgba(255, 255, 255, .98);
  }

  .nav-toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--blue-dark);
    background: var(--white);
    box-shadow: 0 8px 24px rgba(24, 72, 92, .08);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
  }

  .nav-toggle-lines {
    display: grid;
    gap: 4px;
    width: 18px;
  }

  .nav-toggle-lines span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .nav-links {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .global-nav.is-open {
    display: block;
  }

  .nav-links a {
    width: 100%;
    padding: 14px 12px;
    border-radius: 10px;
    background: var(--paper);
    font-size: 15px;
    text-align: left;
  }

  .reserve {
    width: 100%;
  }

  .hero {
    width: calc(100% - 24px);
    margin-top: 14px;
  }

  .hero-stage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(360px, 52svh) 132px;
    gap: 10px;
  }

  .hero-main {
    grid-column: 1 / -1;
    min-height: 360px;
  }

  .hero-title {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .hero-title span {
    font-size: 12px;
  }

  .hero-title p {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.65;
  }

  .hero-panel figcaption:not(.hero-title) {
    left: 10px;
    bottom: 9px;
    font-size: 11px;
  }

  h1 {
    font-size: clamp(30px, 8.8vw, 40px);
  }

  h2 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .contact-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

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

  footer {
    display: grid;
  }

  .reservation-bar {
    bottom: 8px;
    grid-template-columns: 1fr 1fr;
    width: calc(100% - 20px);
    border-radius: 16px;
  }

  .reservation-bar a {
    min-height: 48px;
    padding: 8px 8px;
    font-size: 13px;
  }
}
