/* ========================================
   まごころ苑 リニューアル モック
   Accent: #248B44 | Warm base
   ======================================== */

:root {
  --accent: #248B44;
  --accent-dark: #1A6B34;
  --accent-light: #E8F3EA;
  --warm-bg: #FAF7F2;
  --warm-cream: #F5EDE0;
  --warm-sand: #EDE4D4;
  --text: #4A3F35;
  --text-muted: #7A6E62;
  --white: #FFFFFF;
  --header-h: 72px;
  --max-w: 1120px;
  --font-sans: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

main .section-head[id],
main .recruit-inner[id],
main .container[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background: var(--warm-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.75; }

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

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--warm-sand);
}

.header-inner {
  width: min(100% - 32px, var(--max-w));
  margin-inline: auto;
  height: 100%;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.logo-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.2;
  text-decoration: none;
  color: inherit;
}

.logo-tagline {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1.35;
}

.logo-name {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.site-header .logo-brand {
  justify-content: center;
  flex-shrink: 0;
}

.site-header .logo-name {
  font-size: 28px;
  line-height: 1.05;
}

.header-tel-block {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.header-contact-note {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  line-height: 1.4;
}

.header-tel {
  font-weight: 700;
  font-size: 17px;
  color: var(--accent);
  white-space: nowrap;
  line-height: 1.2;
}

.global-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.global-nav a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  border-radius: 4px;
}

.global-nav a:hover { background: var(--accent-light); opacity: 1; }

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
}

.global-nav a.is-active {
  color: var(--accent);
  background: var(--accent-light);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: calc(var(--header-h) + 48px) 24px 80px 50px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--warm-bg);
  background-image:
    linear-gradient(
      to right,
      rgba(250, 247, 242, 0.38) 0%,
      rgba(250, 247, 242, 0.18) 38%,
      rgba(245, 237, 224, 0.05) 58%,
      rgba(250, 247, 242, 0) 78%
    ),
    linear-gradient(
      to top,
      rgba(74, 63, 53, 0.1) 0%,
      rgba(74, 63, 53, 0) 28%
    ),
    url("/assets/img/hero.webp");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  margin: 0;
}

@media (min-width: 961px) {
  .hero-inner {
    max-width: min(820px, calc(100vw - 74px));
  }

  .hero-title-line.accent {
    white-space: nowrap;
  }
}

.hero-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text);
  margin: 0 0 24px;
  text-shadow: 0 1px 12px rgba(250, 247, 242, 0.95);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 0 0 32px;
  color: var(--text);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85),
    0 2px 20px rgba(250, 247, 242, 0.9),
    0 4px 40px rgba(250, 247, 242, 0.65);
}

.hero-title-line { display: block; }

.hero-title .accent {
  color: var(--accent-dark);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85),
    0 2px 20px rgba(250, 247, 242, 0.9);
}

.hero-lead {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.95;
  margin: 0 0 40px;
  color: var(--text);
  font-weight: 600;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95),
    0 2px 18px rgba(250, 247, 242, 0.98),
    0 4px 32px rgba(250, 247, 242, 0.85);
  max-width: 28em;
}

.hero-lead-line {
  display: block;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 20px;
  background: var(--white);
  border: 1px solid var(--accent-light);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}

.badge-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-badge-text {
  min-width: 0;
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  z-index: 1;
  text-shadow: 0 1px 8px rgba(74, 63, 53, 0.55);
}

.scroll-hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 48px;
  margin: 12px auto 0;
  background: var(--accent);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover { background: var(--accent-dark); opacity: 1; }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover { background: var(--accent-light); opacity: 1; }

.btn-lg { padding: 18px 48px; font-size: 16px; }

/* Medical trust */
.medical-trust {
  padding: 80px 0;
  background: var(--accent);
  color: var(--white);
}

.medical-trust-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.medical-trust .section-label { color: rgba(255,255,255,0.7); }
.medical-trust .section-title { color: var(--white); margin-bottom: 24px; }
.medical-trust .section-text { color: rgba(255,255,255,0.9); margin-bottom: 24px; }

.link-arrow {
  color: var(--white);
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 2px;
}

.medical-trust-visual {
  display: grid;
  gap: 16px;
}

.trust-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  padding: 28px 32px;
}

.trust-number {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.trust-label {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
}

.trust-note {
  margin: 0;
  font-size: 14px;
  opacity: 0.85;
}

/* Section common */
.section-block { padding: 100px 0; }
.section-alt { background: var(--warm-cream); }

.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: var(--text);
}

.section-title-line {
  display: block;
}

.section-title.large {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.section-lead {
  max-width: 640px;
  margin: 20px auto 0;
  color: var(--text-muted);
  font-size: 17px;
}

.section-text {
  font-size: 17px;
  line-height: 2;
  color: var(--text-muted);
}

/* News */
.news { padding: 80px 0; background: var(--white); }

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--warm-sand);
}

.news-list li {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--warm-sand);
  align-items: center;
}

.news-list time {
  font-size: 14px;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 100px;
}

.news-list a {
  color: var(--text);
  font-weight: 500;
  flex: 1;
  min-width: 0;
}

.news-list .news-new {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(36, 139, 68, 0.35);
}

.news-list .news-new:empty {
  visibility: hidden;
  box-shadow: none;
  pointer-events: none;
}

.news-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.news-more {
  margin-top: 32px;
  text-align: center;
}

.subpage-main {
  padding: calc(var(--header-h) + 48px) 0 80px;
  background: var(--warm-bg);
}

.news-page-head {
  margin-bottom: 40px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 20px;
  line-height: 1.6;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb a:hover { opacity: 0.75; }

.breadcrumb-sep {
  margin: 0 0.5em;
  color: var(--text-muted);
}

.news-page-list {
  background: var(--white);
  border-radius: 8px;
  padding: 8px 32px;
}

.news-article {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 8px;
  padding: 40px 48px;
}

.news-article time {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.news-article-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--warm-sand);
  color: var(--text);
}

.news-article-body {
  font-size: 16px;
  line-height: 1.95;
  color: var(--text);
}

.news-article-body p {
  margin: 0 0 1.25em;
}

.news-article-body p:last-child {
  margin-bottom: 0;
}

.news-back-link {
  margin-top: 40px;
  text-align: center;
}

.news-back-link a {
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
}

.news-back-link a:hover {
  opacity: 0.75;
}

@media (max-width: 960px) {
  .news-page-list {
    padding: 8px 20px;
  }

  .news-list li {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .news-list time {
    min-width: 0;
  }

  .news-article {
    padding: 32px 24px;
  }
}

/* About */
.about-block { margin-bottom: 64px; }
.about-block:last-child { margin-bottom: 0; }

.about-heading {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.about-text { margin: 0 0 16px; max-width: 760px; }

.philosophy-visual {
  margin: 40px auto 0;
  max-width: 601px;
  text-align: center;
}

.philosophy-visual img {
  width: 100%;
  max-width: 601px;
  height: auto;
  margin-inline: auto;
  display: block;
}

.bullet-list {
  margin: 0;
  padding-left: 1.2em;
  max-width: 760px;
}

.bullet-list li { margin-bottom: 12px; }
.bullet-list li:last-child { margin-bottom: 0; }

.flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: flow;
  max-width: 720px;
}

.flow-list li {
  position: relative;
  padding: 0 0 32px 48px;
  counter-increment: flow;
}

.flow-list li::before {
  content: counter(flow);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.flow-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 36px;
  bottom: 4px;
  width: 2px;
  background: var(--warm-sand);
}

.flow-list strong {
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
}

.flow-list p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* Facilities */
.facility-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.stat-card {
  background: var(--white);
  padding: 32px 24px;
  text-align: center;
  border-radius: 8px;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-unit {
  font-size: 1.25rem;
  font-weight: 700;
  margin-left: 4px;
}

.stat-desc {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.floor-plans {
  display: grid;
  gap: 56px;
}

.floor-plan-item {
  display: flex;
  justify-content: center;
}

.floor-plan-panel {
  width: fit-content;
  max-width: 100%;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
}

.floor-plan-panel-head {
  padding: 16px 28px;
  background: var(--accent-light);
  border-bottom: 1px solid rgba(36, 139, 68, 0.15);
}

.floor-plan-panel-head h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: var(--accent);
  margin: 0;
}

.floor-plan-body {
  display: flex;
  align-items: stretch;
  gap: 28px;
  padding: 32px 28px 36px 36px;
}

.floor-plan-figure {
  margin: 0;
  flex: 0 1 auto;
  line-height: 0;
  padding: 12px;
  background: var(--warm-bg);
  border-radius: 8px;
}

.floor-plan-figure img {
  width: auto;
  max-width: min(620px, calc(100vw - 200px));
  height: auto;
  display: block;
}

.floor-plan-legend {
  flex: 0 0 200px;
  padding: 20px 22px;
  border-radius: 8px;
  background: var(--warm-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.floor-plan-legend-title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.floor-room-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.floor-room-list li {
  position: relative;
  padding: 9px 0 9px 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  border-bottom: 1px solid var(--warm-sand);
}

.floor-room-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.floor-room-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

/* Fees */
.fee-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.fee-card {
  background: var(--white);
  padding: 40px;
  border-radius: 8px;
  border-top: 4px solid var(--accent);
}

.fee-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0 0 24px;
  color: var(--accent);
}

.fee-list { margin: 0; }

.fee-list > div {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--warm-sand);
}

.fee-list dt { font-weight: 500; }
.fee-list dd { margin: 0; font-weight: 700; }

.fee-basic-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--warm-sand);
}

.fee-basic-heading {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.6;
}

.fee-total {
  margin-top: 8px;
  padding-top: 16px !important;
  border-bottom: none !important;
}

.fee-total dt { font-size: 1.1rem; font-weight: 700; }
.fee-total dd { font-size: 1.5rem; color: var(--accent); }

.fee-deposit-note {
  max-width: 720px;
  margin: 0 auto 48px;
  padding: 28px 32px;
  background: var(--white);
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}

.fee-subsection-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.8vw, 1.75rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
  margin: 0 0 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--accent);
}

.fee-deposit-note .fee-subsection-title {
  margin-bottom: 16px;
  padding-bottom: 12px;
}

.fee-deposit-note p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
}

.fee-deposit-note p:last-child {
  margin-bottom: 0;
}

.fee-deposit-formula {
  font-weight: 700;
  color: var(--accent-dark);
}

.fee-deposit-note-sub {
  font-size: 14px !important;
  color: var(--text-muted) !important;
}

.fee-alert {
  text-align: center;
  padding: 16px;
  background: var(--accent-light);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}

.fees .service-block {
  margin-bottom: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--warm-sand);
}

.fees .service-block:first-of-type {
  padding-top: 0;
  border-top: none;
}

.fees .service-block:last-child {
  margin-bottom: 0;
  padding-top: 0;
  border-top: none;
}

.care-service-section {
  display: grid;
  grid-template-columns: minmax(280px, auto) minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 32px;
  row-gap: 16px;
  align-items: start;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--warm-sand);
}

.care-service-section:first-of-type {
  margin-top: 32px;
  padding-top: 0;
  border-top: none;
}

.care-service-heading {
  grid-column: 1;
  grid-row: 1;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans) !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  color: var(--text-muted) !important;
  margin: 0 !important;
}

.care-service-heading::before {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 2px;
  background: var(--accent);
}

.care-service-visual {
  grid-column: 1;
  grid-row: 2;
  aspect-ratio: 4 / 3;
  min-height: 150px;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
}

.care-service-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.care-service-content {
  grid-column: 2;
  grid-row: 2;
}

.care-service-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: care-service;
}

.care-service-list li {
  counter-increment: care-service;
  margin-bottom: 20px;
  padding-left: 2em;
  position: relative;
}

.care-service-list li:last-child {
  margin-bottom: 0;
}

.care-service-list li::before {
  content: "（" counter(care-service) "）";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 500;
  color: var(--text);
}

.care-service-list strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.care-service-list p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-muted);
}

.care-service-content .about-text {
  margin: 0;
}

.included-service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.included-service-card {
  background: var(--white);
  padding: 28px 24px;
  border-radius: 8px;
  border-left: 4px solid var(--accent);
  box-shadow: 0 2px 12px rgba(74, 63, 53, 0.06);
}

.included-service-card h4 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--accent-dark);
}

.included-service-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

@media (max-width: 900px) {
  .included-service-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .included-service-cards {
    grid-template-columns: 1fr;
  }
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
}

.data-table th,
.data-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--warm-sand);
  font-size: 15px;
}

.data-table th {
  width: 35%;
  font-weight: 700;
  background: var(--warm-bg);
  color: var(--text);
}

.company-table th { width: 28%; }

/* Life */
.life-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.life-card {
  background: var(--white);
  padding: 40px;
  border-radius: 8px;
}

.life-card h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.4;
  margin: 0 0 16px;
  color: var(--accent);
}

.life-card p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.85;
}

.life-photo {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
}

.life-photo img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Access */
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.access-address {
  font-size: 17px;
  font-weight: 500;
  line-height: 2;
  margin: 0 0 32px;
}

.access-route { margin-bottom: 24px; }

.access-route h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 8px;
}

.access-route p { margin: 0; font-size: 15px; color: var(--text-muted); }

.access-note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.map-wrap {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--warm-sand);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* Recruit */
.recruit {
  padding: 120px 0;
  background: var(--text);
  color: var(--white);
  text-align: center;
}

.recruit .section-label { color: rgba(255,255,255,0.6); }
.recruit .section-title { color: var(--white); margin-bottom: 24px; }
.recruit .section-text { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 40px; }

.recruit-inner { max-width: 720px; }

.recruit-tel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.recruit-tel-note {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}

.recruit-tel-number {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  text-decoration: none;
}

.recruit-tel-number:hover {
  color: var(--accent-light);
  opacity: 1;
}

/* Privacy */
.privacy { padding: 80px 0; }
.privacy .section-title { margin-bottom: 32px; }
.privacy-sign { text-align: right; margin-top: 24px; font-weight: 500; }

/* Footer */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.85);
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  margin-bottom: 16px;
}

.site-footer .logo-tagline {
  color: rgba(255, 255, 255, 0.55);
}

.site-footer .logo-name {
  color: rgba(255, 255, 255, 0.85);
}

.footer-address {
  font-size: 14px;
  line-height: 1.85;
  margin: 0;
}

.footer-nav ul,
.footer-related ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li,
.footer-related li { margin-bottom: 8px; }

.footer-nav a,
.footer-related a { color: rgba(255,255,255,0.85); font-size: 14px; }

.footer-related > p:first-of-type {
  font-weight: 700;
  margin: 0 0 12px;
  font-size: 14px;
}

.footer-related-subheading {
  font-weight: 700;
  margin: 30px 0 12px;
  font-size: 14px;
}

.footer-documents a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.5;
}

.copyright {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive */
@media (min-width: 961px) {
  :root {
    --header-h: 128px;
  }

  .header-inner {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 0;
    padding: 14px 0 0;
  }

  .header-top {
    height: auto;
  }

  .global-nav {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    min-height: 0;
    padding: 0;
  }

  .global-nav ul {
    justify-content: center;
    align-items: center;
    gap: 6px;
  }

  .global-nav a {
    padding: 6px 14px;
    font-size: 14px;
  }

}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 960px) {
  .header-tel-block { display: none; }

  .header-top {
    width: 100%;
  }

  .menu-toggle { display: flex; }

  .global-nav {
    position: fixed;
    z-index: 99;
    inset: var(--header-h) 0 auto 0;
    background: var(--warm-bg);
    border-bottom: 1px solid var(--warm-sand);
    padding: 16px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

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

  .global-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .global-nav a { padding: 12px 16px; font-size: 15px; }

  .medical-trust-grid,
  .access-grid,
  .fee-cards,
  .floor-plans,
  .facility-stats,
  .life-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .floor-plan-panel {
    width: 100%;
  }

  .floor-plan-body {
    flex-direction: column;
    gap: 20px;
    padding: 24px 20px 28px;
  }

  .floor-plan-figure {
    padding: 16px;
  }

  .floor-plan-figure img {
    width: 100%;
    max-width: none;
  }

  .floor-plan-legend {
    flex: none;
  }

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

  .facility-stats { grid-template-columns: repeat(2, 1fr); }

  .care-service-section {
    grid-template-columns: 1fr;
    row-gap: 16px;
  }

  .care-service-heading,
  .care-service-visual,
  .care-service-content {
    grid-column: 1;
  }

  .care-service-heading {
    grid-row: 1;
    white-space: normal;
  }

  .care-service-visual {
    grid-row: 2;
    max-width: 280px;
  }

  .care-service-content { grid-row: 3; }

  .section-block { padding: 72px 0; }
}

@media (max-width: 960px) {
  .hero {
    align-items: flex-start;
    padding-top: calc(var(--header-h) + 28px);
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 120px;
    overflow-x: clip;
    overflow-y: visible;
  }

  .hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .scroll-hint {
    z-index: 0;
  }

  .hero-title {
    width: max-content;
    max-width: 100%;
    font-size: clamp(1.35rem, 7.5vw, 2.4rem);
  }

  .hero-title-line {
    white-space: nowrap;
  }

  .hero-lead {
    width: max-content;
    max-width: 100%;
    font-size: clamp(0.8125rem, 3.2vw, 1.25rem);
  }

  .hero-lead-line {
    white-space: nowrap;
  }

  #medical-title {
    width: max-content;
    max-width: 100%;
    font-size: clamp(1.125rem, 4.5vw, 2.5rem);
  }

  #medical-title .section-title-line {
    white-space: nowrap;
  }

  #recruit-title {
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
    font-size: clamp(1.25rem, 5vw, 3.25rem);
  }

  #recruit-title .section-title-line {
    white-space: nowrap;
  }

  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px clamp(12px, 3.5vw, 20px);
    font-size: 14px;
    line-height: 1.45;
    white-space: nowrap;
  }

  .hero-badge-text {
    flex: 1 1 auto;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .facility-stats { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
}

@media (max-width: 374px) {
  .hero {
    padding-left: 12px;
    padding-right: 12px;
  }
}
