:root {
  --navy: #082e52;
  --ink: #123a5b;
  --muted: #577088;
  --line: #b7d3dc;
  --mint: #eaf7f7;
  --mist: #f4f8fa;
  --lime: #73d719;
  --white: #ffffff;
  --content: min(1180px, calc(100vw - 112px));
  --serif: "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  line-height: 1.9;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 9px 15px;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  width: var(--content);
  min-height: 100px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 18px;
  color: var(--navy);
}

.brand strong {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.12em;
}

.brand span {
  padding-left: 18px;
  border-left: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.clinic-link {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  padding: 11px 0;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
}

.clinic-link span {
  color: #1696b1;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.clinic-link:hover span,
.closing a:hover span {
  transform: translateX(5px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(120px, 0.32fr) minmax(540px, 1.1fr) minmax(160px, 0.42fr);
  width: var(--content);
  min-height: 660px;
  margin: 0 auto;
  overflow: hidden;
}

.hero::after {
  position: absolute;
  top: 34px;
  right: -210px;
  width: 560px;
  height: 480px;
  border: 1px solid #80cadd;
  border-radius: 50% 25% 52% 38%;
  content: "";
  transform: rotate(-14deg);
}

.hero__rail {
  position: relative;
  z-index: 2;
  width: 120px;
  min-height: 570px;
}

.hero__rail::before {
  position: absolute;
  top: 24px;
  bottom: 62px;
  left: 51px;
  width: 1px;
  background: var(--navy);
  content: "";
}

.hero__rail::after {
  position: absolute;
  bottom: 61px;
  left: 51px;
  width: 102px;
  height: 68px;
  border-bottom: 1px solid var(--navy);
  border-left: 1px solid var(--navy);
  border-radius: 0 0 0 64px;
  content: "";
  transform: skewX(22deg);
  transform-origin: left bottom;
}

.hero__rail span,
.hero__rail i {
  position: absolute;
  z-index: 2;
  left: 12px;
  width: 28px;
  height: 54px;
  border: 2px solid var(--lime);
  border-radius: 100% 0 100% 0;
  content: "";
  transform: rotate(-35deg);
}

.hero__rail span {
  bottom: 175px;
}

.hero__rail i {
  bottom: 125px;
  left: 58px;
  transform: rotate(28deg) scale(0.82);
}

.hero__sidecopy {
  position: absolute;
  z-index: 3;
  top: 190px;
  left: 0;
  margin: 0;
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 2.15;
}

.hero__body {
  position: relative;
  z-index: 4;
  align-self: center;
  padding: 25px 46px 85px;
}

.page-name {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.12em;
}

.accent-line {
  width: 70px;
  height: 3px;
  margin: 28px 0 38px;
  background: var(--lime);
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(3.25rem, 4.8vw, 5.5rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero__message {
  margin: 34px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.09em;
}

.hero__note {
  position: relative;
  z-index: 3;
  align-self: end;
  margin: 0 0 105px;
  padding-left: 30px;
  color: var(--muted);
  border-left: 1px solid #80cadd;
  font-family: var(--serif);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 2;
}

.clinic-facts {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(60px, 9vw, 140px);
  padding: 96px max(56px, calc((100vw - 1180px) / 2));
  background: var(--mint);
}

.section-heading {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 28px;
}

.section-heading > span {
  padding-top: 4px;
  color: #168faf;
  border-right: 1px solid #168faf;
  font-family: var(--serif);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
}

.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(2rem, 3.1vw, 3.35rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.45;
}

.section-heading p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.facts-list {
  margin: 0;
}

.facts-list > div {
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 25px;
  padding: 22px 0 27px;
  border-top: 1px solid #86b8c5;
}

.facts-list > div:last-child {
  border-bottom: 1px solid #86b8c5;
}

.facts-list dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.facts-list dd {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.9;
}

.future {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(70px, 9vw, 140px);
  width: var(--content);
  margin: 0 auto;
  padding: 120px 0 135px;
}

.future__text {
  max-width: 570px;
  margin: 56px 0 0 92px;
  font-size: 0.96rem;
  line-height: 2.25;
}

#job-content {
  align-self: center;
}

.closed-panel {
  position: relative;
  display: flex;
  min-height: 315px;
  padding: 58px;
  flex-direction: column;
  justify-content: center;
  background: var(--mist);
  border-top: 1px solid #c9d9df;
  border-bottom: 1px solid #c9d9df;
  text-align: center;
}

.closed-panel > span {
  display: block;
  width: 52px;
  height: 1px;
  margin: 0 auto 32px;
  background: #6e8ea0;
}

.closed-panel p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.closed-panel strong {
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.9vw, 1.7rem);
  font-weight: 600;
  letter-spacing: 0.07em;
}

.closed-panel small {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.77rem;
}

.job-card {
  padding: 48px;
  border: 1px solid var(--line);
}

.job-card + .job-card {
  margin-top: 24px;
}

.job-card h3 {
  margin: 0 0 28px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.7rem;
}

.job-card dl,
.job-card dd {
  margin: 0;
}

.job-card dl > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 17px 0;
  border-top: 1px solid #d5e2e7;
}

.job-card dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.job-card dd {
  font-size: 0.88rem;
}

.job-card > a {
  display: flex;
  margin-top: 32px;
  padding: 17px 20px;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  background: var(--navy);
  font-size: 0.84rem;
  font-weight: 700;
}

.closing {
  position: relative;
  display: flex;
  min-height: 270px;
  padding: 60px max(56px, calc((100vw - 1180px) / 2));
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  border-top: 1px solid #9ed2df;
}

.closing::after {
  position: absolute;
  right: 12%;
  bottom: -95px;
  width: 470px;
  height: 190px;
  border: 1px solid #8ccddd;
  border-radius: 50% 50% 0 0;
  content: "";
}

.closing p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.7rem);
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1.9;
}

.closing a {
  position: relative;
  z-index: 2;
  display: inline-flex;
  min-width: 220px;
  padding: 17px 0;
  align-items: center;
  justify-content: space-between;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
}

.closing a span {
  color: #1696b1;
  transition: transform 0.2s ease;
}

.site-footer {
  display: flex;
  min-height: 150px;
  padding: 36px max(56px, calc((100vw - 1180px) / 2));
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  background: var(--navy);
}

.site-footer > div {
  display: flex;
  flex-direction: column;
}

.site-footer strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.11em;
}

.site-footer span,
.site-footer small {
  color: #bdd1df;
  font-size: 0.68rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  :root {
    --content: min(100% - 56px, 820px);
  }

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

  .hero__body {
    padding-right: 0;
  }

  .hero__note {
    display: none;
  }

  .clinic-facts,
  .future {
    grid-template-columns: 1fr;
  }

  .future__text {
    margin-left: 92px;
  }
}

@media (max-width: 680px) {
  :root {
    --content: calc(100vw - 40px);
  }

  .site-header {
    min-height: 82px;
  }

  .brand {
    gap: 10px;
  }

  .brand strong {
    font-size: 1.05rem;
    letter-spacing: 0.08em;
  }

  .brand span {
    padding-left: 10px;
    font-size: 0.62rem;
  }

  .clinic-link {
    gap: 10px;
    font-size: 0.7rem;
  }

  .hero {
    grid-template-columns: 50px 1fr;
    min-height: 590px;
  }

  .hero::after {
    top: 110px;
    right: -300px;
    opacity: 0.7;
  }

  .hero__rail {
    width: 50px;
    min-height: 520px;
  }

  .hero__rail::before,
  .hero__rail::after {
    left: 12px;
  }

  .hero__rail span {
    left: 0;
  }

  .hero__rail i {
    left: 20px;
  }

  .hero__sidecopy {
    display: none;
  }

  .hero__body {
    padding: 10px 0 70px 14px;
  }

  .page-name {
    font-size: 1.25rem;
  }

  .accent-line {
    margin: 22px 0 28px;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.15rem);
    letter-spacing: 0;
    line-height: 1.5;
  }

  .hero__message {
    max-width: 290px;
    margin-top: 28px;
    font-size: 0.9rem;
    line-height: 2;
  }

  .clinic-facts,
  .closing,
  .site-footer {
    padding-right: 20px;
    padding-left: 20px;
  }

  .clinic-facts {
    gap: 50px;
    padding-top: 70px;
    padding-bottom: 74px;
  }

  .section-heading {
    grid-template-columns: 40px 1fr;
    gap: 18px;
  }

  .section-heading h2 {
    font-size: 1.8rem;
  }

  .facts-list > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .future {
    gap: 55px;
    padding: 80px 0 90px;
  }

  .future__text {
    margin: 36px 0 0 58px;
    font-size: 0.85rem;
  }

  .closed-panel {
    min-height: 270px;
    padding: 42px 24px;
  }

  .job-card {
    padding: 30px 22px;
  }

  .job-card dl > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .closing {
    min-height: 300px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 36px;
  }

  .site-footer {
    min-height: 170px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 22px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

.error-page {
  display: grid;
  min-height: 100vh;
  padding: 32px;
  place-items: center;
}

.error-page main {
  width: min(100%, 680px);
  padding: 70px clamp(28px, 8vw, 80px);
  background: var(--mist);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.error-page__brand,
.error-page h1 {
  color: var(--navy);
  font-family: var(--serif);
}

.error-page__brand {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.error-page__code {
  margin: 35px 0 8px;
  color: #168faf;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.error-page h1 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 600;
}

.error-page main > p:not([class]) {
  color: var(--muted);
  font-size: 0.84rem;
}

.error-page main > a {
  display: inline-flex;
  width: min(100%, 270px);
  margin-top: 24px;
  padding: 15px 0;
  align-items: center;
  justify-content: space-between;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
}
