:root {
  --ink: #12212b;
  --muted: #5c6b73;
  --paper: #f7fbfa;
  --white: #ffffff;
  --cyan: #28d5e4;
  --teal: #007d8a;
  --mint: #4fcf9f;
  --coral: #ff795f;
  --amber: #e5ad36;
  --line: rgba(18, 33, 43, 0.12);
  --shadow: 0 24px 70px rgba(19, 48, 58, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(0, 125, 138, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 125, 138, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Yu Gothic",
    "YuGothic",
    "Noto Sans JP",
    sans-serif;
  line-height: 1.7;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 54px);
  color: var(--white);
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 40px rgba(18, 33, 43, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: currentColor;
  font-weight: 800;
}

.brand-name,
.brand-sub {
  display: block;
}

.brand-name {
  font-size: 15px;
  font-weight: 800;
}

.brand-sub {
  margin-top: -3px;
  font-size: 10px;
  opacity: 0.75;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2.4vw, 28px);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 2px;
  background: var(--cyan);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  color: var(--white);
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(4, 20, 28, 0.82), rgba(4, 20, 28, 0.45) 44%, rgba(4, 20, 28, 0.06)),
    linear-gradient(180deg, rgba(4, 20, 28, 0.3), rgba(4, 20, 28, 0.1) 58%, rgba(4, 20, 28, 0.68));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 36px));
  padding: clamp(130px, 16vw, 190px) 0 150px;
  margin-left: clamp(18px, 7vw, 92px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--cyan);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(48px, 8vw, 100px);
  line-height: 1.05;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.18;
}

h3 {
  margin-bottom: 10px;
  font-size: 23px;
  line-height: 1.25;
}

.hero-lead {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2vw, 19px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
}

.button.primary {
  color: var(--ink);
  background: var(--cyan);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel {
  position: absolute;
  z-index: 3;
  right: clamp(18px, 5vw, 70px);
  bottom: 34px;
  display: grid;
  width: min(620px, calc(100% - 36px));
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(4, 24, 31, 0.58);
  backdrop-filter: blur(18px);
}

.hero-panel div {
  min-width: 0;
  padding: 18px;
}

.hero-panel div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.panel-label {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 700;
}

.hero-panel strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(16px, 2vw, 22px);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.quick-links a {
  display: flex;
  min-height: 94px;
  align-items: center;
  gap: 14px;
  padding: 24px clamp(18px, 3vw, 36px);
  border-right: 1px solid var(--line);
  font-weight: 800;
}

.quick-links span {
  color: var(--teal);
  font-size: 13px;
}

.section {
  padding: clamp(70px, 9vw, 118px) clamp(18px, 6vw, 86px);
}

.section-heading {
  max-width: 790px;
  margin-bottom: 36px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.section-heading.compact {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

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

.visit-showcase {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: stretch;
}

.care-image {
  position: relative;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.care-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.care-image::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 34%;
  min-width: 160px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--mint));
  content: "";
  box-shadow: 0 0 30px rgba(40, 213, 228, 0.8);
}

.visit-showcase .visit-grid {
  grid-template-columns: 1fr;
  gap: 14px;
}

.visit-card,
.research-grid article {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 50px rgba(18, 33, 43, 0.08);
}

.visit-showcase .visit-card {
  min-height: 210px;
}

.visit-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  content: "";
}

.accent-blue::before {
  background: var(--cyan);
}

.accent-green::before {
  background: var(--mint);
}

.accent-coral::before {
  background: var(--coral);
}

.card-kicker {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.visit-card p:not(.card-kicker),
.research-grid p,
.future-copy p,
.access-copy p {
  color: var(--muted);
}

.visit-card a {
  position: absolute;
  right: 26px;
  bottom: 24px;
  color: var(--teal);
  font-weight: 900;
}

.departments-section {
  background: #eaf7f4;
}

.department-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
}

.department-tabs {
  display: grid;
  gap: 10px;
  align-content: start;
}

.tab {
  min-height: 58px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.tab.is-active {
  color: var(--white);
  border-color: var(--teal);
  background: var(--teal);
}

.department-panel {
  min-height: 320px;
  padding: clamp(28px, 5vw, 52px);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.department-panel p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.department-panel ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0;
  margin: 34px 0 0;
  list-style: none;
}

.department-panel li {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
}

.future-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: var(--ink);
  color: var(--white);
}

.future-section .eyebrow {
  color: var(--amber);
}

.future-copy p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.signal-board {
  display: grid;
  gap: 14px;
}

.signal-board div {
  display: grid;
  grid-template-columns: 64px 170px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.signal-board span {
  color: var(--cyan);
  font-weight: 900;
}

.signal-board strong {
  font-size: 18px;
}

.signal-board p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.ward-section {
  display: grid;
  grid-template-columns: minmax(340px, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  background: #f2f8f4;
}

.ward-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.ward-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.ward-points span {
  padding: 10px 14px;
  border: 1px solid rgba(0, 125, 138, 0.18);
  border-radius: 999px;
  color: var(--teal);
  background: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 900;
}

.research-section {
  background: var(--white);
}

.research-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
}

.research-layout .section-heading {
  margin-bottom: 28px;
}

.research-layout .research-grid {
  grid-template-columns: 1fr;
  gap: 14px;
}

.research-grid article {
  min-height: 160px;
  box-shadow: none;
}

.research-image figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(6, 26, 33, 0.62);
  backdrop-filter: blur(16px);
}

.research-image figcaption span {
  color: rgba(255, 255, 255, 0.72);
}

.news-section {
  padding-top: 0;
  background: var(--white);
}

.news-list {
  border-top: 1px solid var(--line);
}

.news-list a {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

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

.news-list span {
  font-weight: 800;
}

.access-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
}

.access-map {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(18, 33, 43, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 33, 43, 0.08) 1px, transparent 1px),
    #dff5ee;
  background-size: 32px 32px;
  box-shadow: var(--shadow);
}

.route {
  position: absolute;
  display: block;
  border-radius: 999px;
}

.route.one {
  top: 45%;
  left: 12%;
  width: 78%;
  height: 12px;
  background: var(--teal);
  transform: rotate(-10deg);
}

.route.two {
  top: 25%;
  left: 43%;
  width: 12px;
  height: 54%;
  background: var(--coral);
  transform: rotate(18deg);
}

.node {
  position: absolute;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 4px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  font-weight: 900;
  box-shadow: 0 16px 38px rgba(18, 33, 43, 0.2);
}

.node.station {
  left: 12%;
  bottom: 22%;
  background: var(--amber);
}

.node.hospital {
  top: 18%;
  right: 16%;
  background: var(--teal);
}

.node.emergency {
  right: 24%;
  bottom: 18%;
  background: var(--coral);
}

.access-copy dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 30px;
}

.access-copy dl div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.access-copy dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.access-copy dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 6vw, 86px);
  color: var(--white);
  background: #0b171c;
}

.site-footer p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.62);
}

.site-footer a {
  color: var(--cyan);
  font-weight: 900;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
  }

  .menu-button {
    display: block;
    flex: 0 0 auto;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 10px 4px;
  }

  .hero {
    min-height: 860px;
  }

  .hero-content {
    margin-left: 18px;
    padding-top: 112px;
    padding-bottom: 230px;
  }

  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(4, 20, 28, 0.86), rgba(4, 20, 28, 0.44) 54%, rgba(4, 20, 28, 0.82)),
      linear-gradient(90deg, rgba(4, 20, 28, 0.44), rgba(4, 20, 28, 0.08));
  }

  .quick-links,
  .visit-grid,
  .research-grid,
  .visit-showcase,
  .ward-section,
  .research-layout,
  .future-section,
  .access-section {
    grid-template-columns: 1fr;
  }

  .quick-links a {
    min-height: 72px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .department-layout {
    grid-template-columns: 1fr;
  }

  .department-tabs {
    grid-template-columns: repeat(3, 1fr);
  }

  .tab {
    text-align: center;
  }

  .department-panel ul,
  .access-copy dl {
    grid-template-columns: 1fr;
  }

  .care-image img {
    min-height: 330px;
  }

  .signal-board div {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .signal-board p {
    grid-column: 2;
  }
}

@media (max-width: 620px) {
  .brand {
    min-width: 0;
  }

  .brand-sub {
    display: none;
  }

  .hero {
    min-height: 920px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-panel div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section-heading.compact {
    display: block;
  }

  .department-tabs {
    grid-template-columns: 1fr;
  }

  .news-list a {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .access-map {
    min-height: 340px;
  }

  .care-image img {
    min-height: 280px;
  }

  .research-image figcaption {
    display: block;
  }

  .research-image figcaption span {
    display: block;
    margin-top: 4px;
  }

  .site-footer {
    display: block;
  }

  .site-footer a {
    display: inline-block;
    margin-top: 18px;
  }
}
