:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --surface-muted: #f0f4f6;
  --ink: #17212b;
  --muted: #68757f;
  --line: #d9dee1;
  --teal: #2c6f8f;
  --teal-strong: #1d526b;
  --mint: #eaf3f6;
  --navy: #172430;
  --charcoal: #111820;
  --gold: #b69a68;
  --danger: #b94242;
  --success: #23745a;
  --shadow: 0 22px 50px rgba(17, 24, 32, 0.08);
  --radius: 6px;
  --max: 1180px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    Arial, sans-serif;
  line-height: 1.68;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid rgba(182, 154, 104, 0.36);
  outline-offset: 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(17, 24, 32, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(18px);
}

.is-home .topbar {
  position: fixed;
  width: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0));
  border-bottom-color: transparent;
}

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

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

.brand small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  letter-spacing: 0.16em;
  line-height: 1;
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.2vw, 28px);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

[data-test-only] {
  display: none !important;
}

body.test-mode [data-test-only] {
  display: inline-flex !important;
}

.lang-switch {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.main-nav a.active,
.main-nav a:hover {
  background: transparent;
  color: #fff;
}

.main-nav a.active::after,
.main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.18em;
  bottom: 0;
  height: 1px;
  background: currentColor;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.menu-button span {
  width: 18px;
  height: 2px;
  background: #fff;
}

#app {
  min-height: calc(100vh - 220px);
}

.page {
  animation: fadeIn 200ms var(--ease);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  padding: clamp(56px, 8vw, 110px) clamp(18px, 4vw, 56px);
}

.section.alt {
  background: #fff;
}

.intro-section {
  border-top: 1px solid var(--line);
}

.section.tight {
  padding-top: 32px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.52) 42%, rgba(0, 0, 0, 0.28) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.48), transparent 34%, rgba(0, 0, 0, 0.28)),
    url("./assets/timc-hero.png") center / cover no-repeat;
  color: #fff;
}

.hero-inner {
  position: relative;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(132px, 16vw, 184px) clamp(18px, 4vw, 56px) clamp(88px, 12vw, 132px);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--teal-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
}

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

h1 {
  max-width: 9em;
  margin-bottom: 24px;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Songti SC", STSong,
    Georgia, serif;
  font-size: clamp(44px, 6.6vw, 90px);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: 0.08em;
  white-space: pre-line;
}

h2 {
  margin-bottom: 14px;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Songti SC", STSong,
    Georgia, serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.03em;
}

h3 {
  font-size: 20px;
  line-height: 1.25;
}

.lead {
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 300;
  letter-spacing: 0.15em;
}

.hero-actions,
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 0;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 0 0 rgba(17, 24, 32, 0);
  transform: translateY(0);
  transition:
    background-color 180ms var(--ease),
    border-color 180ms var(--ease),
    box-shadow 220ms var(--ease),
    color 180ms var(--ease),
    filter 180ms var(--ease),
    transform 180ms var(--ease);
}

.button.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.hero .button {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.94);
  color: var(--charcoal);
}

.hero .button.secondary {
  border-color: rgba(255, 255, 255, 0.56);
  background: transparent;
  color: #fff;
}

.button.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--teal-strong);
}

.button.small {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.button:hover {
  filter: brightness(0.98);
  box-shadow: 0 12px 24px rgba(17, 24, 32, 0.1);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  box-shadow: none;
  transform: none;
}

.button:disabled:hover {
  filter: none;
  box-shadow: none;
  transform: none;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 46px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 34px;
  display: grid;
  justify-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  transform: translateX(-50%);
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 54px;
  background: currentColor;
}

.stat {
  min-height: 110px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
}

.stat strong {
  display: block;
  font-size: 28px;
  color: var(--navy);
}

.stat span {
  color: var(--muted);
  font-size: 14px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 42px;
  margin-bottom: 34px;
}

.section-head p {
  max-width: 660px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

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

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tile {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  box-shadow: 0 0 0 rgba(17, 24, 32, 0);
  transform: translateY(0);
  transition:
    border-color 180ms var(--ease),
    background-color 180ms var(--ease),
    box-shadow 220ms var(--ease),
    transform 180ms var(--ease);
}

.tile:hover {
  border-color: rgba(182, 154, 104, 0.44);
  box-shadow: 0 16px 34px rgba(17, 24, 32, 0.07);
  transform: translateY(-2px);
}

.tile::before,
.project-row::before,
.hospital-row::before,
.option-choice::before,
.side-panel::before,
.form-panel::before,
.data-panel::before,
.confirmation-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 1px;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    115deg,
    rgba(182, 154, 104, 0) 14%,
    rgba(182, 154, 104, 0.26) 34%,
    rgba(255, 255, 255, 0.84) 50%,
    rgba(44, 111, 143, 0.18) 64%,
    rgba(182, 154, 104, 0) 86%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transform: translateX(-28%);
  transition:
    opacity 260ms var(--ease),
    transform 820ms var(--ease);
}

.tile::after,
.project-row::after,
.hospital-row::after,
.option-choice::after,
.side-panel::after,
.form-panel::after,
.data-panel::after,
.confirmation-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(182, 154, 104, 0.11), transparent 34%),
    linear-gradient(135deg, rgba(44, 111, 143, 0.055), rgba(255, 255, 255, 0) 58%);
  transform: translateY(8px);
  transition:
    opacity 260ms var(--ease),
    transform 260ms var(--ease);
}

.tile > *,
.project-row > *,
.hospital-row > *,
.option-choice > *,
.side-panel > *,
.form-panel > *,
.data-panel > *,
.confirmation-card > * {
  position: relative;
  z-index: 2;
}

.tile:hover::before,
.project-row:hover::before,
.hospital-row:hover::before,
.option-choice:hover::before,
.option-choice:has(input[type="checkbox"]:focus-visible)::before,
.option-choice:has(input[type="checkbox"]:checked)::before,
.side-panel:hover::before,
.form-panel:focus-within::before,
.data-panel:hover::before,
.confirmation-card:hover::before {
  opacity: 1;
  transform: translateX(34%);
}

.tile:hover::after,
.project-row:hover::after,
.hospital-row:hover::after,
.option-choice:hover::after,
.option-choice:has(input[type="checkbox"]:focus-visible)::after,
.option-choice:has(input[type="checkbox"]:checked)::after,
.side-panel:hover::after,
.form-panel:focus-within::after,
.data-panel:hover::after,
.confirmation-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.tile.highlight {
  background: var(--navy);
  color: #fff;
}

.tile.highlight p,
.tile.highlight .muted {
  color: rgba(255, 255, 255, 0.74);
}

.muted {
  color: var(--muted);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.badge,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--teal-strong);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status.pending {
  background: #fff4dd;
  color: #8a5c0a;
}

.status.paid,
.status.confirmed,
.status.active {
  background: #def3e9;
  color: var(--success);
}

.status.cancelled,
.status.risk {
  background: #f8dddd;
  color: var(--danger);
}

.status.draft {
  background: #eef2f6;
  color: #5a6877;
}

.status.in_progress {
  background: #e3edff;
  color: #2459a7;
}

.status.completed {
  background: #def3e9;
  color: var(--success);
}

.status.refunded {
  background: #f1e7fb;
  color: #6d3a9b;
}

.project-list {
  display: grid;
  gap: 16px;
}

.project-row,
.hospital-row {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  box-shadow: 0 0 0 rgba(17, 24, 32, 0);
  transform: translateY(0);
  transition:
    border-color 180ms var(--ease),
    background-color 180ms var(--ease),
    box-shadow 220ms var(--ease),
    transform 180ms var(--ease);
}

.project-row {
  grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.8fr) auto;
}

.hospital-row {
  grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.8fr) auto;
}

.project-row:hover,
.hospital-row:hover {
  border-color: rgba(182, 154, 104, 0.56);
  background: #fffefa;
  box-shadow:
    0 18px 38px rgba(17, 24, 32, 0.08),
    0 0 0 1px rgba(182, 154, 104, 0.06);
  transform: translateY(-2px);
}

.project-row h3,
.hospital-row h3 {
  margin-bottom: 6px;
}

.hospital-hero {
  min-height: 82vh;
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.44) 48%, rgba(0, 0, 0, 0.18)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.18) 46%, rgba(0, 0, 0, 0.62)),
    url("./assets/timc-hero.png") center / cover no-repeat;
  color: #fff;
}

.hospital-hero-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(138px, 15vw, 176px) clamp(18px, 4vw, 56px) clamp(70px, 10vw, 118px);
}

.hospital-hero h1 {
  max-width: none;
  margin-bottom: 12px;
  font-size: clamp(54px, 9vw, 118px);
  letter-spacing: 0.12em;
  line-height: 1.05;
}

.hospital-hero .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.hospital-hero-lead {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(19px, 2.4vw, 30px);
  letter-spacing: 0.16em;
}

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

.hospital-hero .button {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.94);
  color: var(--charcoal);
}

.hospital-hero .button.secondary {
  border-color: rgba(255, 255, 255, 0.56);
  background: transparent;
  color: #fff;
}

.hospital-overview,
.hospital-access {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 4vw, 56px);
  background: #fff;
}

.hospital-overview-grid,
.hospital-access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 380px;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.hospital-copy {
  max-width: 780px;
  color: #40504e;
  font-size: 17px;
}

.hospital-facts,
.hospital-contact-card {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.hospital-facts {
  display: grid;
  gap: 18px;
}

.hospital-facts div {
  display: grid;
  gap: 5px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.hospital-facts span,
.hospital-route-step span {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  letter-spacing: 0.18em;
}

.hospital-facts strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

.hospital-section {
  padding-top: clamp(58px, 8vw, 104px);
  padding-bottom: clamp(58px, 8vw, 104px);
}

.hospital-strengths {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #fff;
}

.hospital-strength {
  min-height: 260px;
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hospital-strength span {
  display: block;
  margin-bottom: 34px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
}

.hospital-strength h3 {
  margin-bottom: 12px;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Songti SC", STSong,
    Georgia, serif;
  font-weight: 400;
}

.hospital-strength p,
.hospital-tech p,
.hospital-band-copy p,
.hospital-route-step p {
  color: var(--muted);
}

.hospital-band {
  padding: 0 clamp(18px, 4vw, 56px);
  background: #fff;
}

.hospital-band-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  min-height: 520px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hospital-band-image {
  min-height: 420px;
  background:
    linear-gradient(180deg, rgba(20, 42, 70, 0.04), rgba(20, 42, 70, 0.08)),
    url("./assets/timc-hero.png") center / cover no-repeat;
}

.hospital-band-copy {
  display: grid;
  align-content: center;
  padding: clamp(36px, 6vw, 74px);
  background: #f7f7f4;
}

.hospital-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.hospital-mini-grid span {
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: #40504e;
  font-weight: 700;
}

.hospital-tech-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.hospital-tech {
  min-height: 220px;
  padding: 26px;
  background: #fff;
}

.hospital-tech h3 {
  color: var(--teal-strong);
}

.hospital-spec-panel {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 24px;
  margin-top: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  background: #fff;
}

.hospital-spec-panel h3 {
  margin-bottom: 0;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Songti SC", STSong,
    Georgia, serif;
  font-weight: 400;
}

.hospital-spec-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.hospital-spec-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 16px;
  background: #fff;
}

.hospital-spec-row span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hospital-spec-row strong {
  color: #2c3a45;
  font-size: 14px;
  line-height: 1.6;
}

.hospital-detail-lab {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 4vw, 56px);
  background: #f0f4f6;
}

.hospital-detail-lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}

.hospital-detail-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hospital-detail-cards article {
  min-height: 174px;
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
}

.hospital-detail-cards h3,
.hospital-program h3 {
  margin-bottom: 10px;
  color: var(--teal-strong);
}

.hospital-detail-cards p,
.hospital-program p {
  margin-bottom: 0;
  color: var(--muted);
}

.hospital-program-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.hospital-program {
  min-height: 210px;
  padding: 24px;
  background: #fff;
}

.hospital-route {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.hospital-route-step {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.hospital-route-step strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.hospital-contact-card {
  position: sticky;
  top: 112px;
}

.filter-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.filter-panel .field {
  gap: 6px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}

.feature.yes {
  border-color: #b9d8f3;
  background: #eef7ff;
  color: var(--teal-strong);
  font-weight: 700;
}

.feature.no {
  color: #9aa6b2;
}

.option-section {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.option-section + .option-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.option-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 14px;
}

.option-section-head strong {
  color: var(--ink);
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Songti SC", STSong,
    Georgia, serif;
  font-size: 17px;
  font-weight: 400;
}

.option-section-head span {
  color: var(--muted);
  font-size: 13px;
}

.option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}

.option-pill.included {
  border-color: #c9dce8;
  background: #f4f8fb;
  color: #40504e;
}

.option-pill strong {
  color: var(--teal-strong);
  font-size: 12px;
}

.option-categories {
  display: grid;
  gap: 18px;
}

.option-category {
  display: grid;
  gap: 10px;
}

.option-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 8px;
  border-bottom: 1px solid rgba(182, 154, 104, 0.28);
}

.option-category-head strong {
  color: #22323c;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Songti SC", STSong,
    Georgia, serif;
  font-size: 16px;
  font-weight: 400;
}

.option-category-head span {
  min-width: 42px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f7f2e8;
  color: #8a744d;
  font-size: 12px;
  text-align: center;
}

.option-choice {
  position: relative;
  overflow: hidden;
  align-items: center;
  min-height: 52px;
  padding: 12px 48px 12px 14px;
  border-color: #ded8ca;
  background: linear-gradient(180deg, #fff 0%, #fbfaf7 100%);
  color: #33434b;
  font-weight: 600;
  cursor: pointer;
  transform: translateY(0);
  transition:
    border-color 180ms var(--ease),
    background-color 180ms var(--ease),
    box-shadow 220ms var(--ease),
    color 180ms var(--ease),
    transform 180ms var(--ease);
}

.feature.yes.option-choice {
  border-color: #ded8ca;
  background: linear-gradient(180deg, #fff 0%, #fbfaf7 100%);
  color: #33434b;
  font-weight: 600;
}

.option-choice span {
  line-height: 1.35;
}

.option-choice:hover {
  border-color: rgba(182, 154, 104, 0.72);
  background: #fffdf8;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(17, 24, 32, 0.07);
}

.option-choice input[type="checkbox"] {
  position: absolute;
  right: 12px;
  top: 50%;
  display: grid;
  width: 24px;
  height: 24px;
  margin: 0;
  place-items: center;
  border: 1.5px solid #cfc4ad;
  border-radius: 50%;
  appearance: none;
  background: #fffdf8;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    border-color 180ms var(--ease),
    background-color 180ms var(--ease),
    box-shadow 220ms var(--ease),
    transform 220ms var(--ease);
}

.option-choice input[type="checkbox"]::after {
  content: none;
}

.option-choice:has(input[type="checkbox"]:checked) {
  border-color: var(--gold);
  background: linear-gradient(180deg, #fffdf7 0%, #f6f0e4 100%);
  color: #263944;
  box-shadow: 0 14px 30px rgba(90, 71, 39, 0.13);
  transform: translateY(-1px);
}

.option-choice:has(input[type="checkbox"]:checked) input[type="checkbox"] {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(182, 154, 104, 0.16);
  transform: translateY(-50%) scale(1.04);
}

.option-choice:has(input[type="checkbox"]:checked) input[type="checkbox"]::after {
  content: none;
}

.option-choice:has(input[type="checkbox"]:focus-visible) {
  outline: 2px solid rgba(182, 154, 104, 0.32);
  outline-offset: 2px;
}

.option-choice:active {
  transform: translateY(0);
}

.option-grid {
  min-height: 48px;
}

.price {
  color: var(--teal-strong);
  font-size: 22px;
  font-weight: 800;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

.tab {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  min-height: 38px;
  padding: 8px 12px;
  cursor: pointer;
}

.tab.active {
  border-color: var(--teal);
  background: var(--mint);
  color: var(--teal-strong);
  font-weight: 700;
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  gap: 24px;
  align-items: start;
}

.side-panel,
.form-panel,
.data-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.side-panel,
.form-panel {
  padding: 24px;
}

.side-panel {
  position: sticky;
  top: 92px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
}

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

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: #40504e;
  font-size: 13px;
  font-weight: 700;
}

.field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 0 0 rgba(17, 24, 32, 0);
  transition:
    border-color 180ms var(--ease),
    box-shadow 220ms var(--ease),
    background-color 180ms var(--ease);
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(182, 154, 104, 0.2);
  border-color: rgba(182, 154, 104, 0.78);
  box-shadow: 0 0 0 4px rgba(182, 154, 104, 0.08);
}

.notice {
  padding: 16px;
  border: 1px solid #b9dcd6;
  border-radius: var(--radius);
  background: #ebf7f5;
  color: #235f59;
}

.booking-total {
  display: grid;
  gap: 8px;
  border-color: rgba(182, 154, 104, 0.42);
  background: #fffaf0;
  color: var(--ink);
}

.booking-total-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.booking-total-main span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.booking-total-main strong {
  color: var(--navy);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.1;
}

.price-conversion {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.price-conversion span {
  padding: 5px 9px;
  border: 1px solid rgba(44, 111, 143, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--teal-strong);
  font-size: 13px;
  font-weight: 700;
}

.price-breakdown,
.price-rate-note {
  color: var(--muted);
  font-size: 13px;
}

.notice.subtle {
  border-color: var(--line);
  background: #f8fafb;
  color: var(--muted);
}

.crm-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
}

.crm-status strong {
  color: var(--ink);
}

.crm-status.pending {
  border-color: #f1d7a3;
  background: #fff8ea;
  color: #8a5c0a;
}

.crm-status.cancelled {
  border-color: #edb8b8;
  background: #fff0f0;
  color: var(--danger);
}

.payment-summary {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.confirmation-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 8px;
  margin: 24px 0;
  padding: 24px;
  border: 1px solid rgba(182, 154, 104, 0.42);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.94), rgba(255, 255, 255, 0.98)),
    #fff;
  box-shadow: var(--shadow-soft);
}

.confirmation-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0;
}

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

.confirmation-mark {
  width: max-content;
  padding: 6px 10px;
  border: 1px solid rgba(35, 95, 89, 0.22);
  border-radius: 999px;
  background: #ebf7f5;
  color: var(--teal-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.confirmation-timeline {
  margin: 0 0 20px;
}

.confirmation-actions {
  display: grid;
  gap: 10px;
}

.confirmation-actions .button {
  width: 100%;
}

.comparison {
  width: 100%;
  overflow-x: auto;
}

.comparison table {
  min-width: 860px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: step;
}

.timeline-step {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.timeline-step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
}

.qr-box {
  display: grid;
  place-items: center;
  width: 160px;
  height: 160px;
  margin: 18px auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, #142a46 10px, transparent 10px) 0 0 / 28px 28px,
    linear-gradient(#142a46 10px, transparent 10px) 0 0 / 28px 28px,
    #fff;
  color: #fff;
  font-size: 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.portal {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: calc(100vh - 72px);
}

.portal-nav {
  padding: 28px 18px;
  background: var(--navy);
  color: #fff;
}

.portal-nav h2 {
  font-size: 22px;
}

.portal-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  margin: 6px 0;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.72);
}

.portal-nav a.active,
.portal-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.portal-main {
  padding: clamp(24px, 4vw, 46px);
  overflow: hidden;
}

.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.kpi {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.kpi strong {
  display: block;
  font-size: 26px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(100%, 360px);
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
}

.searchbar input {
  width: 100%;
  border: 0;
  outline: 0;
  min-height: 28px;
}

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

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: #526260;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  background: #f8fbfa;
}

td input,
td select {
  width: 100%;
  min-width: 96px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
}

tr:last-child td {
  border-bottom: 0;
}

.login-shell {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 36px 18px;
  background:
    linear-gradient(135deg, rgba(23, 38, 59, 0.88), rgba(15, 123, 115, 0.72)),
    url("./assets/timc-hero.png") center / cover no-repeat;
}

.login-panel {
  width: min(100%, 430px);
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition:
    border-color 180ms var(--ease),
    box-shadow 220ms var(--ease);
}

.faq-item:hover,
.faq-item.open {
  border-color: rgba(182, 154, 104, 0.42);
  box-shadow: 0 12px 28px rgba(17, 24, 32, 0.06);
}

.faq-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font-weight: 800;
  transition: color 180ms var(--ease);
}

.faq-item button:hover {
  color: var(--teal-strong);
}

.faq-item p {
  display: none;
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}

.faq-item.open p {
  display: block;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(18px, 4vw, 56px);
  background: #0f1e20;
  color: #fff;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.72);
}

.footer p {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  justify-content: flex-end;
  gap: 12px;
}

.empty-state {
  padding: 26px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
}

@media (max-width: 980px) {
  .menu-button {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 76px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    justify-content: flex-start;
  }

  .main-nav a {
    color: var(--ink);
  }

  .main-nav a.active,
  .main-nav a:hover {
    color: var(--teal-strong);
  }

  .lang-switch {
    border-color: var(--line);
    background: #fff;
    color: var(--teal-strong);
  }

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

  .hero {
    min-height: 100svh;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.54) 54%, rgba(0, 0, 0, 0.32) 100%),
      url("./assets/timc-hero.png") center / cover no-repeat;
  }

  .stats,
  .grid.three,
  .kpis,
  .timeline,
  .hospital-strengths,
  .hospital-tech-grid,
  .hospital-program-grid,
  .filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-shell,
  .hospital-overview-grid,
  .hospital-access-grid,
  .hospital-band-grid,
  .hospital-spec-panel,
  .hospital-detail-lab-grid,
  .portal {
    grid-template-columns: 1fr;
  }

  .side-panel,
  .hospital-contact-card {
    position: static;
  }

  .hospital-facts,
  .hospital-contact-card {
    border-left: 0;
    padding-left: 0;
  }

  .hospital-band-copy {
    padding: 36px 0;
  }

  .portal-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 16px 18px;
  }

  .portal-nav h2 {
    min-width: 120px;
    margin: 8px 8px 0 0;
  }

  .portal-nav a {
    min-width: max-content;
  }

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

@media (max-width: 680px) {
  .topbar {
    min-height: 72px;
  }

  .brand small {
    display: none;
  }

  .hero-inner {
    padding-top: 122px;
    padding-bottom: 112px;
  }

  h1 {
    font-size: clamp(38px, 13vw, 56px);
    line-height: 1.34;
  }

  .lead {
    font-size: 16px;
    letter-spacing: 0.08em;
  }

  .hero-actions,
  .actions {
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .section-head,
  .footer {
    display: block;
  }

  .grid.two,
  .grid.three,
  .stats,
  .kpis,
  .form-grid,
  .timeline,
  .hospital-strengths,
  .hospital-tech-grid,
  .hospital-program-grid,
  .hospital-detail-cards,
  .hospital-mini-grid,
  .filter-panel,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hospital-hero {
    min-height: 78svh;
  }

  .hospital-hero-inner {
    padding: 118px 18px 70px;
  }

  .hospital-hero h1 {
    font-size: clamp(42px, 15vw, 62px);
    letter-spacing: 0.08em;
  }

  .hospital-hero-lead {
    font-size: 16px;
    letter-spacing: 0.08em;
  }

  .hospital-overview,
  .hospital-access,
  .hospital-band,
  .hospital-detail-lab {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hospital-spec-panel {
    padding: 18px;
  }

  .hospital-spec-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hospital-strength {
    min-height: auto;
  }

  .hospital-band-image {
    min-height: 280px;
  }

  .project-row,
  .hospital-row {
    grid-template-columns: 1fr;
  }

  .portal-header,
  .top-actions {
    display: block;
  }

  .portal-main {
    padding: 24px 18px;
  }

  .footer-links {
    justify-content: flex-start;
    margin-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
