:root {
  --ink: #26302c;
  --muted: #68716b;
  --line: #dfe3dc;
  --paper: #fbfbf8;
  --soft: #f2f3ef;
  --green: #5e8154;
  --green-dark: #42633c;
  --white: #fff;
  --shadow: 0 18px 48px rgba(37, 48, 43, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(250, 252, 252, 0.78) 0%, var(--paper) 46rem),
    #f8fbfb;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  line-height: 1.8;
}

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

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

.site-header,
main,
.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
  letter-spacing: -0.02em;
}

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

.brand-name {
  font-size: 18px;
  letter-spacing: 0.08em;
}

.brand-sub {
  margin-top: 1px;
  font-size: 13px;
  color: var(--ink);
}

.global-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  font-size: 14px;
}

.menu-toggle {
  display: none;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(38, 48, 44, 0.24);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle-lines {
  position: relative;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after {
  position: absolute;
  left: 0;
}

.menu-toggle-lines::before {
  top: -7px;
}

.menu-toggle-lines::after {
  top: 7px;
}

.menu-toggle-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.mobile-menu-actions {
  display: none;
}

.global-nav a,
.site-footer nav a {
  position: relative;
  white-space: nowrap;
}

.global-nav a::after,
.site-footer nav a::after {
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--green);
  content: "";
  transition: width 180ms ease;
}

.global-nav a:hover::after,
.site-footer nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}

.phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 24px;
  letter-spacing: 0.05em;
  line-height: 1;
  white-space: nowrap;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

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

.button-primary:hover {
  background: var(--green-dark);
}

.button-outline {
  background: rgba(255, 255, 255, 0.74);
  border-color: #9da59c;
}

.hero-stage {
  margin: 0 calc(50% - 50vw) 52px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(248, 250, 249, 0.98) 0%, rgba(248, 250, 249, 0.9) 36%, rgba(248, 250, 249, 0.5) 62%, rgba(248, 250, 249, 0.08) 100%),
    linear-gradient(180deg, rgba(248, 250, 249, 0.42) 0%, rgba(248, 250, 249, 0.18) 58%, rgba(251, 251, 248, 0.94) 100%),
    url("assets/clinic-exterior.jpg") center 28% / cover no-repeat;
}

.hero {
  width: min(1180px, calc(100% - 48px));
  min-height: 560px;
  margin-inline: auto;
  position: relative;
  display: flex;
  align-items: center;
  padding: 34px 52px 76px;
}

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

.eyebrow {
  margin: 0 0 20px;
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.15em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.hero-copy p:not(.eyebrow) {
  max-width: 510px;
  margin: 28px 0 0;
  font-size: 16px;
  letter-spacing: 0.06em;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.vertical-label {
  position: absolute;
  right: 24px;
  top: 60px;
  writing-mode: vertical-rl;
  padding-top: 26px;
  border-top: 84px solid rgba(38, 48, 44, 0.35);
  color: rgba(38, 48, 44, 0.78);
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.overview-grid,
.detail-grid {
  display: grid;
  gap: 20px;
}

.overview-grid {
  grid-template-columns: 1.4fr 1fr 0.95fr;
  align-items: stretch;
}

.detail-grid {
  grid-template-columns: 1.05fr 1fr;
  margin-top: 34px;
}

.panel,
.message-card {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.panel {
  padding: 28px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.section-heading.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.section-heading a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

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

th,
td {
  padding: 9px 8px;
  border-top: 1px solid var(--line);
  font-weight: 500;
}

th:not(:last-child),
td:not(:last-child) {
  border-right: 1px solid var(--line);
}

thead th {
  color: var(--muted);
  font-size: 13px;
}

.closed,
.green-note {
  color: var(--green);
}

.news-item {
  width: 100%;
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 14px;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease, transform 180ms ease;
}

.news-item:not(:last-child) {
  padding-bottom: 18px;
}

.news-item:hover {
  color: var(--green);
  transform: translateY(-1px);
}

.news-item:focus-visible {
  outline: 2px solid rgba(94, 129, 84, 0.55);
  outline-offset: 6px;
}

.news-item time {
  color: var(--muted);
}

.news-modal[hidden] {
  display: none;
}

.news-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.news-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(38, 48, 44, 0.34);
  backdrop-filter: blur(8px);
}

.news-dialog {
  width: min(560px, 100%);
  position: relative;
  z-index: 1;
  padding: 38px;
  border: 1px solid rgba(223, 227, 220, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(37, 48, 43, 0.2);
  animation: newsFloatIn 180ms ease-out;
}

.news-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(104, 113, 107, 0.24);
  border-radius: 50%;
  color: var(--ink);
  background: var(--white);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.news-close:focus-visible {
  outline: 2px solid rgba(94, 129, 84, 0.55);
  outline-offset: 4px;
}

.news-dialog-date {
  margin: 0 0 10px;
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.news-dialog h2 {
  margin: 0 0 20px;
  padding-right: 42px;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.5;
}

.news-dialog-body {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.news-dialog-body p {
  margin: 0;
  font-size: 15px;
}

.news-dialog-body p + p {
  margin-top: 12px;
}

.news-open {
  overflow: hidden;
}

@keyframes newsFloatIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.message-card {
  position: relative;
  min-height: 270px;
  overflow: hidden;
}

.message-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(31, 42, 38, 0.54) 100%);
  content: "";
}

.message-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: saturate(0.85) brightness(1.02);
}

.message-card div {
  position: absolute;
  left: 30px;
  bottom: 26px;
  z-index: 1;
  color: var(--white);
}

.message-card p {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.08em;
}

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

.department-card {
  min-height: 238px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
}

.department-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
}

.department-card p,
.department-card li,
.note,
.green-note,
.access-info p {
  font-size: 14px;
}

.department-card p {
  margin: 0 0 16px;
}

.department-card ul {
  margin: 0;
  padding-left: 1.2em;
}

.line-icon {
  width: 50px;
  height: 50px;
  align-self: flex-end;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #aeb7ad;
  border-radius: 50%;
  color: var(--muted);
  font-size: 13px;
}

.note {
  margin: 18px 0 0;
  padding: 11px 16px;
  border-radius: 6px;
  background: var(--soft);
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 20px;
  min-height: 86px;
  padding: 14px 20px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
}

.step-number {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-size: 11px;
  line-height: 1.1;
  text-align: center;
}

.step-number strong {
  font-size: 30px;
  font-weight: 500;
}

.step-icon {
  display: none;
}

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

.steps strong {
  font-size: 16px;
  line-height: 1.7;
}

.steps small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.green-note {
  margin: 16px 0 0;
}

.access {
  display: grid;
  grid-template-columns: 0.46fr 1fr;
  gap: 28px;
  margin-top: 34px;
  align-items: stretch;
}

.access-info p {
  margin: 12px 0;
  padding-left: 26px;
  position: relative;
}

.access-info p::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "◎";
}

.map-embed {
  width: 100%;
  min-height: 165px;
  aspect-ratio: 16 / 5;
  overflow: hidden;
  border-radius: 6px;
  background: var(--soft);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.site-footer {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 38px;
  border-top: 1px solid var(--line);
}

.site-footer small {
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .site-header {
    flex-wrap: wrap;
    padding: 18px 0;
  }

  .global-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .overview-grid,
  .detail-grid,
  .access {
    grid-template-columns: 1fr;
  }

  .message-card {
    min-height: 220px;
  }
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }

  .site-header,
  main,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    align-items: center;
    min-height: 78px;
  }

  .site-footer nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .menu-toggle {
    display: grid;
    flex: 0 0 auto;
  }

  .menu-open .menu-toggle {
    position: fixed;
    right: 14px;
    top: 13px;
    z-index: 51;
    background: var(--white);
  }

  .menu-open .menu-toggle-lines {
    background: transparent;
  }

  .menu-open .menu-toggle-lines::before {
    transform: translateY(7px) rotate(42deg);
  }

  .menu-open .menu-toggle-lines::after {
    transform: translateY(-7px) rotate(-42deg);
  }

  .global-nav {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 0;
    padding: 96px 22px 28px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 246, 0.97)),
      url("assets/clinic-exterior.jpg") center top / cover no-repeat;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .menu-open .global-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .menu-open {
    overflow: hidden;
  }

  .global-nav a {
    display: flex;
    align-items: center;
    min-height: 56px;
    border-bottom: 1px solid rgba(104, 113, 107, 0.18);
    font-size: 18px;
  }

  .global-nav a::after {
    display: none;
  }

  .mobile-menu-actions {
    display: grid;
    gap: 14px;
    margin-top: 28px;
  }

  .mobile-menu-actions a {
    min-height: 54px;
    border-bottom: 0;
  }

  .mobile-menu-actions .phone {
    justify-content: center;
    min-height: 54px;
    padding: 0 18px;
    border: 1px solid rgba(94, 129, 84, 0.32);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
  }

  .mobile-menu-actions .button {
    width: 100%;
    font-size: 15px;
  }

  .header-actions {
    display: none;
  }

  .phone {
    font-size: 18px;
  }

  .hero-stage {
    margin-top: -78px;
    margin-bottom: 26px;
    padding-top: 78px;
    background:
      linear-gradient(180deg, rgba(248, 250, 249, 0.88) 0%, rgba(248, 250, 249, 0.68) 44%, rgba(251, 251, 248, 0.98) 100%),
      url("assets/clinic-exterior.jpg") 52% top / auto 520px no-repeat;
  }

  .hero {
    width: min(100% - 28px, 1180px);
    min-height: 510px;
    padding: 82px 0 44px;
  }

  .vertical-label {
    display: none;
  }

  .hero h1 {
    font-size: 30px;
    letter-spacing: 0.04em;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 14px;
  }

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

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

  .panel {
    padding: 22px 18px;
  }

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

  .steps li {
    grid-template-columns: 58px 1fr;
  }

  .step-icon {
    display: none;
  }

  .access {
    gap: 18px;
  }

  .map-embed {
    min-height: 240px;
    aspect-ratio: 4 / 3;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 0;
  }
}

@media (max-width: 520px) {
  .brand-name {
    font-size: 16px;
  }

  .brand-sub {
    font-size: 12px;
  }

  .hero h1 {
    font-size: clamp(23px, 7.2vw, 27px);
    letter-spacing: 0.02em;
  }

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

  table {
    font-size: 12px;
  }

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

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

  .news-dialog {
    padding: 30px 22px;
  }

  .news-dialog h2 {
    font-size: 22px;
  }
}
