:root {
  --ink: #26332f;
  --muted: #6f7772;
  --line: #e4ded3;
  --paper: #ffffff;
  --mist: #fbf8f1;
  --leaf: #26765f;
  --leaf-dark: #155543;
  --sun: #d99933;
  --rose: #bd6f62;
  --sky: #dceceb;
  --shadow: 0 22px 48px rgba(60, 51, 38, .13);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fffdf8;
  font-family: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 18px;
  line-height: 1.9;
}

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 98px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: linear-gradient(180deg, rgba(21, 33, 30, .72), rgba(21, 33, 30, .34) 72%, rgba(21, 33, 30, .06));
  border-bottom: 0;
  box-shadow: 0 12px 28px rgba(13, 30, 26, .16);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
  color: white;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .38);
}

.brand img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.brand span {
  white-space: nowrap;
  letter-spacing: 0;
  font-size: 19px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 17px;
  font-weight: 500;
}

.nav-link {
  padding: 10px 13px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .88);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .34);
}

.nav-link:hover,
.nav-link.active {
  color: white;
  background: rgba(255, 255, 255, .18);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  width: 20px;
  height: 2px;
  background: var(--leaf-dark);
}

.home-hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-slide,
.page-hero {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-slide::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(27, 46, 39, .72), rgba(27, 46, 39, .18) 55%, rgba(62, 48, 33, .34));
}

.hero-slide {
  opacity: 0;
  transform: scale(1.025) translate3d(0, 0, 0);
  filter: saturate(.95) contrast(1.02);
  will-change: opacity, transform;
  backface-visibility: hidden;
  animation: heroCrossfade 24s ease-in-out infinite;
}

.hero-slide.is-first {
  animation-name: heroCrossfadeFirst;
}

.hero-slide.is-second {
  animation-delay: 8s;
}

.hero-slide.is-third {
  animation-delay: 16s;
}

@keyframes heroCrossfadeFirst {
  0% {
    opacity: 1;
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  31% {
    opacity: 1;
    transform: scale(1.035) translate3d(.6%, 0, 0);
  }
  44% {
    opacity: 0;
    transform: scale(1.04) translate3d(1%, 0, 0);
  }
  100% {
    opacity: 0;
    transform: scale(1.02) translate3d(0, 0, 0);
  }
}

@keyframes heroCrossfade {
  0% {
    opacity: 0;
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  8% {
    opacity: 1;
  }
  31% {
    opacity: 1;
    transform: scale(1.035) translate3d(.6%, 0, 0);
  }
  44% {
    opacity: 0;
    transform: scale(1.04) translate3d(1%, 0, 0);
  }
  100% {
    opacity: 0;
    transform: scale(1.02) translate3d(0, 0, 0);
  }
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100% - 40px));
  min-height: 245px;
  margin: 0 auto;
  color: white;
  text-align: center;
}

.hero-copy p,
.eyebrow {
  margin: 0 0 12px;
  color: var(--sun);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: none;
  margin: 0;
  font-family: "Shippori Mincho", serif;
  font-size: clamp(44px, 5vw, 80px);
  line-height: 1.12;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .32);
}

.hero-copy span {
  display: block;
  max-width: 900px;
  margin: 26px auto 0;
  font-size: clamp(25px, 2.6vw, 36px);
  font-weight: 700;
  letter-spacing: .04em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .32);
}

.hero-copy span::before,
.hero-copy span::after {
  display: none;
}

.hero-message {
  position: absolute;
  inset: 0 0 auto;
  opacity: 0;
  transform: translateY(18px) scale(.99);
  will-change: opacity, transform;
  animation: heroTextFade 24s ease-in-out infinite;
}

.hero-message.is-first {
  animation-name: heroTextFadeFirst;
}

.hero-message.is-second {
  animation-delay: 8s;
}

.hero-message.is-third {
  animation-delay: 16s;
}

@keyframes heroTextFadeFirst {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  30% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  43% {
    opacity: 0;
    transform: translateY(-10px) scale(1.006);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px) scale(1.006);
  }
}

@keyframes heroTextFade {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(.995);
  }
  8% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  30% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  43% {
    opacity: 0;
    transform: translateY(-10px) scale(1.006);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px) scale(1.006);
  }
}

.hero-actions {
  position: absolute;
  top: 210px;
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 0;
}

.hero-actions .button {
  width: 174px;
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--leaf);
  color: white;
  font-weight: 800;
}

.button.secondary {
  background: #fffdf8;
  color: var(--leaf-dark);
}

.text-link {
  min-height: auto;
  padding: 0;
  background: transparent;
  color: var(--leaf-dark);
}

.page-hero {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: end start;
  padding: 0 clamp(20px, 8vw, 96px) 64px;
  color: white;
}

.page-hero > div {
  position: relative;
  z-index: 1;
}

.page-hero p {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
}

.page-hero h1 {
  margin: 0;
  font-family: "Shippori Mincho", serif;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.18;
}

.section,
.intro-band,
.legacy-content section {
  padding-block: clamp(64px, 9vw, 104px);
}

.intro-band {
  position: relative;
  background: linear-gradient(180deg, #fffdf8 0%, var(--mist) 100%);
}

.home-intro-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.home-intro-head {
  align-self: start;
}

.home-intro-head > p:not(.eyebrow) {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 19px;
  line-height: 2;
}

.home-principles {
  display: grid;
  gap: 16px;
}

.home-principles article {
  display: grid;
  grid-template-columns: minmax(150px, .42fr) 1fr;
  gap: 20px;
  align-items: center;
  overflow: hidden;
  min-height: 140px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 12px 30px rgba(49, 70, 63, .07);
}

.home-principles figure {
  position: relative;
  height: 100%;
  min-height: 140px;
  margin: 0;
  overflow: hidden;
}

.home-principles figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 51, 44, .08), rgba(20, 51, 44, .18));
}

.home-principles img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-principles p {
  margin: 0;
  padding: 20px 22px 20px 0;
  font-size: 18px;
  line-height: 1.9;
}

.home-intro-photo {
  grid-column: 1 / -1;
  position: relative;
  margin: 4px 0 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.home-intro-photo img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.home-intro-photo figcaption {
  position: absolute;
  left: 22px;
  bottom: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 253, 248, .92);
  color: var(--leaf-dark);
  font-size: 15px;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 5vw, 44px);
  align-items: start;
}

h2,
.legacy-content h2 {
  position: relative;
  margin: 0 0 28px;
  font-family: "Shippori Mincho", serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.25;
}

h2::after,
.legacy-content h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--leaf), var(--sun));
}

.blog-empty h2::after {
  margin-inline: auto;
}

.legacy-content h2 span {
  display: inline;
}

h3,
.legacy-content h3 {
  margin: 36px 0 14px;
  color: var(--leaf-dark);
  font-size: 22px;
  line-height: 1.45;
}

h4,
.legacy-content h4 {
  margin: 24px 0 10px;
  font-size: 18px;
}

.feature-photo {
  width: min(560px, 100%);
  margin: 0;
  justify-self: center;
  border-radius: 48% 52% 46% 54% / 58% 44% 56% 42%;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-photo img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.section-head {
  display: block;
  gap: 20px;
  margin-bottom: 28px;
  border-bottom: 0;
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.facility-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  min-height: 100%;
  padding: 16px 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 44px rgba(49, 70, 63, .1);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.facility-card:hover {
  transform: translateY(-5px);
  border-color: rgba(32, 131, 108, .28);
  box-shadow: 0 24px 58px rgba(49, 70, 63, .16);
}

.facility-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
}

.facility-card-body {
  display: grid;
  gap: 8px;
}

.facility-card h3 {
  margin: 0;
  color: var(--leaf-dark);
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 800;
  line-height: 1.45;
}

.facility-card p,
.notice-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.facility-card-actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.facility-card-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
}

.facility-detail-button {
  color: white;
  background: var(--leaf);
  box-shadow: 0 12px 26px rgba(32, 131, 108, .18);
}

.facility-index-cards .facility-detail-button {
  width: min(220px, 100%);
  margin-inline: auto;
}

.gallery-band,
.enhancement-band {
  padding-block: clamp(64px, 9vw, 104px);
  background: var(--mist);
}

.gallery-band > .container {
  width: 100%;
  max-width: none;
}

.gallery-band .section-head {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.home-gallery-marquee {
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.home-gallery-track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: galleryMarquee 42s linear infinite;
}

.home-gallery-card {
  position: relative;
  flex: 0 0 clamp(300px, 34vw, 560px);
  height: clamp(220px, 25vw, 360px);
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--ink);
  isolation: isolate;
}

.home-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 42, 36, 0), rgba(21, 42, 36, .66));
}

.home-gallery-card figcaption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 1;
  color: white;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.35;
  text-shadow: 0 3px 16px rgba(0, 0, 0, .38);
}

@keyframes galleryMarquee {
  from { transform: translateX(calc(-50% - 9px)); }
  to { transform: translateX(0); }
}

.blog-empty-main {
  background: white;
}

.blog-empty {
  display: grid;
  place-items: center;
  padding-block: clamp(70px, 10vw, 120px);
  text-align: center;
}

.blog-empty h2 {
  margin-bottom: 14px;
}

.blog-empty p:not(.eyebrow) {
  max-width: 620px;
  margin: 0 auto 30px;
  color: var(--muted);
}

.blog-empty figure {
  width: min(760px, 100%);
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.blog-empty img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.news-public {
  padding-block: clamp(70px, 10vw, 120px);
}

.news-public-list {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.news-public-card {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 50px rgba(49, 70, 63, .08);
}

.news-public-card time {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
}

.news-public-card h3 {
  margin: 0 0 10px;
  color: var(--leaf-dark);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.45;
}

.news-public-card p {
  margin: 0;
  color: var(--muted);
  line-height: 2;
}

.pdf-documents {
  background: white;
}

.pdf-document-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.pdf-document-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid rgba(32, 131, 108, .18);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(32, 131, 108, .08), white);
  box-shadow: 0 18px 44px rgba(49, 70, 63, .08);
}

.pdf-document-card span {
  color: var(--leaf-dark);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.5;
}

.pdf-document-card small {
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
}

.admin-page {
  min-height: 100vh;
  background: #f7f4ed;
}

.admin-login {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(12, 32, 43, .62), rgba(12, 32, 43, .78)),
    url("/assets/media/themes/hakuyou/images/bg_04.jpg") center / cover;
}

.admin-login[hidden],
.admin-shell[hidden] {
  display: none;
}

.admin-login-card {
  width: min(460px, 100%);
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 28px 80px rgba(10, 26, 34, .28);
}

.admin-login-card img {
  width: 84px;
  height: auto;
  margin-bottom: 18px;
}

.admin-login-card h1 {
  margin: 0 0 22px;
  color: var(--leaf-dark);
  font-size: clamp(28px, 7vw, 42px);
  line-height: 1.25;
}

.admin-login-card label {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  color: var(--leaf-dark);
  font-weight: 800;
}

.admin-login-card select,
.admin-login-card input {
  width: 100%;
  min-height: 50px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.admin-login-card .button {
  width: 100%;
  margin-top: 20px;
}

.admin-login-error {
  min-height: 24px;
  margin: 10px 0 0;
  color: #a34b3f;
  font-weight: 800;
}

.admin-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 22px;
  background:
    linear-gradient(rgba(16, 27, 53, .94), rgba(16, 27, 53, .96)),
    url("/assets/media/themes/hakuyou/images/bg_04.jpg") center / cover;
  color: white;
}

.admin-brand {
  margin-bottom: 34px;
}

.admin-sidebar nav,
.admin-news-list,
.admin-facility-list,
.admin-staff-list,
.admin-document-list,
.admin-fee-preview {
  display: grid;
  gap: 16px;
}

.admin-tab,
.admin-back {
  display: flex;
  align-items: center;
  min-height: 48px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: white;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.admin-tab.is-active,
.admin-tab:hover,
.admin-back:hover {
  background: white;
  color: var(--leaf-dark);
  text-shadow: none;
}

.admin-back {
  margin-top: 28px;
}

.admin-workspace {
  padding: clamp(28px, 5vw, 64px);
}

.admin-heading {
  position: relative;
  max-width: 980px;
  margin-bottom: 28px;
}

.admin-heading h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.25;
}

.admin-heading p:not(.eyebrow),
.admin-note {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.admin-status {
  margin-top: 12px !important;
  color: var(--leaf) !important;
  font-weight: 800;
}

.admin-status.is-error {
  color: #a34b3f !important;
}

.admin-logout {
  margin-top: 18px;
  min-height: 42px;
  padding: 8px 18px;
  border: 1px solid rgba(32, 131, 108, .22);
  border-radius: 999px;
  background: white;
  color: var(--leaf-dark);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.admin-panel {
  display: none;
}

.admin-panel.is-active {
  display: block;
}

.admin-card,
.admin-edit-card,
.admin-table-card {
  border: 1px solid rgba(228, 222, 211, .95);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}

.admin-card {
  padding: clamp(20px, 4vw, 34px);
}

.admin-card-head,
.admin-inline-actions,
.admin-export-actions,
.admin-fee-tools,
.admin-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-card h2 {
  margin-bottom: 18px;
  font-size: clamp(26px, 3vw, 36px);
}

.admin-card h2::after {
  width: 56px;
}

.admin-news-list,
.admin-facility-list,
.admin-staff-list,
.admin-document-list,
.admin-fee-preview {
  margin-top: 20px;
}

.admin-edit-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(49, 70, 63, .07);
}

.admin-role-badge {
  grid-column: 1 / -1;
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(212, 148, 42, .12);
  color: #8a5c15;
  font-weight: 900;
}

.admin-field {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.admin-field.wide {
  grid-column: 1 / -1;
}

.admin-field span,
.admin-fee-tools label {
  color: var(--leaf-dark);
  font-size: 14px;
  font-weight: 800;
}

.admin-field input,
.admin-field textarea,
.admin-fee-tools select,
.admin-export {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.admin-field input,
.admin-fee-tools select {
  min-height: 46px;
  padding: 10px 12px;
}

.admin-field textarea {
  min-height: 110px;
  padding: 12px;
  resize: vertical;
}

.admin-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--leaf-dark);
  font-size: 15px;
  font-weight: 800;
}

.admin-danger {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(189, 111, 98, .34);
  border-radius: 999px;
  background: rgba(189, 111, 98, .08);
  color: #9d4f43;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.admin-empty {
  margin: 0;
  padding: 20px;
  border-radius: 8px;
  background: var(--mist);
  color: var(--muted);
}

.admin-table-card {
  padding: 18px;
  overflow: hidden;
}

.admin-table-card h3 {
  margin-top: 0;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.admin-table-wrap th,
.admin-table-wrap td {
  min-width: 88px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  background: white;
}

.admin-table-wrap th {
  background: #eef2ef;
  color: var(--leaf-dark);
}

.admin-table-wrap [contenteditable="true"]:focus {
  outline: 3px solid rgba(38, 118, 95, .22);
  background: #fffaf1;
}

.admin-export {
  min-height: 320px;
  margin-top: 20px;
  padding: 16px;
  font-family: Consolas, "Courier New", monospace;
  line-height: 1.5;
  resize: vertical;
}

.facility-showcase {
  padding-block: clamp(64px, 9vw, 108px);
  background: linear-gradient(180deg, #fffdf8 0%, #f3f8f3 100%);
}

.facility-feature-slider {
  position: relative;
  min-height: clamp(420px, 48vw, 620px);
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--ink);
}

.facility-feature-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  opacity: 0;
  transition: opacity 900ms ease;
  isolation: isolate;
}

.facility-feature-slide.is-visible {
  opacity: 1;
}

.facility-feature-slide img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.facility-feature-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(22, 38, 33, .05), rgba(22, 38, 33, .78));
}

.facility-feature-slide > div {
  width: min(780px, calc(100% - 40px));
  padding: clamp(26px, 6vw, 58px);
  color: white;
}

.facility-feature-slide h3 {
  margin: 0 0 12px;
  color: white;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.25;
  text-shadow: 0 3px 16px rgba(0, 0, 0, .32);
}

.facility-feature-slide p {
  max-width: 650px;
  margin: 0 0 18px;
  font-size: 19px;
  line-height: 1.8;
}

.facility-feature-slide .text-link {
  color: white;
}

.facility-mini-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.facility-mini-grid a,
.facility-mini-grid span {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.facility-mini-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.facility-mini-grid b {
  color: var(--leaf-dark);
  font-size: 15px;
  line-height: 1.45;
}

.facility-slider-band {
  padding-block: clamp(58px, 8vw, 96px);
  background: #fffdf8;
}

.facility-slider-band > .container {
  width: 100%;
  max-width: none;
}

.facility-slider-band .section-head {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.facility-map-band {
  padding-block: clamp(46px, 7vw, 82px);
  background: var(--mist);
}

.facility-map-frame {
  overflow: hidden;
  border: 1px solid rgba(228, 222, 211, .9);
  border-radius: 8px;
  background:
    linear-gradient(rgba(251, 248, 241, .86), rgba(251, 248, 241, .86)),
    url("/assets/media/themes/hakuyou/images/bg_04.jpg") center / cover;
  box-shadow: var(--shadow);
}

.facility-map-frame iframe {
  display: block;
  width: 100%;
  height: clamp(320px, 44vw, 520px);
  border: 0;
}

.facility-map-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px 0 0;
}

.facility-map-actions p {
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(32, 131, 108, .08);
  color: var(--leaf-dark);
  font-weight: 800;
}

.facility-contact-panel {
  display: grid;
  grid-template-columns: 1.6fr .8fr .8fr auto;
  gap: 12px;
  align-items: stretch;
  margin: 0 0 26px;
  padding: clamp(16px, 2.6vw, 24px);
  border: 1px solid rgba(211, 198, 172, .9);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(32, 131, 108, .08), rgba(255, 253, 248, .96) 58%),
    #fffdf8;
  box-shadow: 0 18px 46px rgba(49, 70, 63, .08);
}

.facility-contact-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
}

.facility-contact-item span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}

.facility-contact-item strong {
  color: var(--leaf-dark);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.55;
}

.facility-contact-item a {
  color: inherit;
  text-decoration: none;
}

.facility-contact-map {
  align-self: center;
  min-width: 176px;
  box-shadow: 0 14px 28px rgba(32, 131, 108, .2);
}

.facility-slider {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: #fffdf8;
}

.facility-slide-track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: galleryMarquee 68s linear infinite;
}

.facility-slide {
  position: relative;
  flex: 0 0 clamp(300px, 38vw, 620px);
  height: clamp(230px, 30vw, 430px);
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--mist);
  box-shadow: var(--shadow);
}

.facility-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.enhancement-band {
  background: linear-gradient(180deg, #fffdf8 0%, var(--mist) 100%);
}

.enhancement-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.enhancement-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.photo-mosaic {
  display: grid;
  grid-template-columns: 1.25fr .75fr 1fr;
  grid-auto-rows: 190px;
  gap: 16px;
}

.photo-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.photo-mosaic img:nth-child(1),
.photo-mosaic img:nth-child(5) {
  grid-row: span 2;
}

.notice-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, var(--mist), var(--sky));
}

.legacy-content,
.legacy-content > section,
.legacy-content .bg-light {
  background: #fffdf8;
}

.legacy-content .sidebar {
  display: none !important;
}

.legacy-content > section {
  width: 100%;
  margin-inline: 0;
}

.legacy-content > section + section {
  border-top: 1px solid rgba(228, 222, 211, .72);
}

.legacy-content .container,
.legacy-content .row {
  width: min(1120px, calc(100% - 40px));
  max-width: 1120px;
  margin-inline: auto;
}

.legacy-content .container .row,
.legacy-content .row .row {
  width: 100%;
  max-width: none;
}

.legacy-content .room {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 44px rgba(49, 70, 63, .1);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.legacy-content .room:hover {
  transform: translateY(-5px);
  border-color: rgba(32, 131, 108, .28);
  box-shadow: 0 24px 58px rgba(49, 70, 63, .16);
}

.legacy-content .room .img {
  display: block;
  min-height: clamp(220px, 28vw, 360px);
  background-size: cover;
  background-position: center;
}

.legacy-content .room .icon {
  display: none;
}

.legacy-content .room .text {
  display: grid;
  gap: 12px;
  padding: 22px !important;
  text-align: left !important;
}

.legacy-content .room h3 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
}

.legacy-content .room h3 a {
  color: inherit;
}

.legacy-content .room p {
  margin: 0;
  color: var(--muted);
}

.legacy-content .row,
.legacy-content .dl-horizontal,
.legacy-content dl.row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.legacy-content [class*="col-md-"],
.legacy-content [class*="col-lg-"],
.legacy-content [class*="col-sm-"] {
  grid-column: span 12;
}

.legacy-content .col-md-4,
.legacy-content .col-lg-4 {
  grid-column: span 4;
}

.legacy-content .col-md-6,
.legacy-content .col-lg-6 {
  grid-column: span 6;
}

.legacy-content .col-md-8,
.legacy-content .col-lg-8 {
  grid-column: span 12;
}

.legacy-content p {
  margin: 0 0 1em;
  font-size: 18px;
}

.legacy-content .lead,
.legacy-content p.lead,
.legacy-content p.h3,
.legacy-content .h3 {
  display: inline-block;
  margin: 0 0 16px;
  padding: 10px 16px;
  border-left: 5px solid var(--sun);
  border-radius: 0 8px 8px 0;
  background: #fff8e7;
  color: var(--leaf-dark);
  font-size: clamp(21px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.5;
}

.legacy-content a,
.legacy-content li,
.legacy-content dt,
.legacy-content dd {
  font-size: 18px;
}

.legacy-content .services,
.legacy-content .room,
.legacy-content .staff,
.legacy-content .block-20 {
  border-radius: 8px;
  overflow: hidden;
}

.legacy-content .room {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #fffdf8;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(49, 70, 63, .08);
}

.legacy-content .icon,
.legacy-content .flaticon-hospital,
.legacy-content .flaticon-customer-service,
.legacy-content .flaticon-charity {
  display: none;
}

.legacy-content .media-body,
.legacy-content .services,
.legacy-content .staff,
.legacy-content .info,
.legacy-content .tab-content,
.legacy-content .modal-content {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.legacy-content .wrap-about {
  align-self: center;
}

.about-philosophy .container {
  width: min(1240px, calc(100% - 40px));
  max-width: 1240px;
}

.about-philosophy-visual {
  position: relative;
  margin: 0 auto clamp(28px, 5vw, 56px);
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.about-philosophy-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 51, 44, .36), rgba(20, 51, 44, .02));
  pointer-events: none;
}

.about-philosophy-visual img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: center;
}

.about-philosophy-grid .media.block-6.services {
  position: relative;
  display: grid !important;
  grid-template-rows: auto 1fr;
  height: 100%;
  padding: 0 !important;
  border: 1px solid rgba(228, 222, 211, .9) !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, white, rgba(255, 253, 248, .94));
  box-shadow: 0 18px 46px rgba(49, 70, 63, .1);
}

.about-philosophy-grid .icon {
  display: none;
}

.about-philosophy-grid .media.block-6.services::before {
  content: none;
}

.philosophy-card-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.philosophy-card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 51, 44, 0), rgba(20, 51, 44, .28));
}

.philosophy-card-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .45s ease;
}

.about-philosophy-grid .media.block-6.services:hover .philosophy-card-photo img {
  transform: scale(1.04);
}

.about-philosophy-grid .media-body {
  padding: 26px 28px 30px !important;
  border: 0 !important;
  background: transparent !important;
  text-align: left !important;
}

.about-philosophy-grid .heading {
  color: var(--sun-dark);
  font-size: 26px;
  line-height: 1.25;
}

.about-philosophy-grid p {
  font-size: 19px;
  line-height: 1.95;
}

.legacy-content .block-6.services.p-4 {
  border: 1px solid rgba(228, 222, 211, .88);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(251, 248, 241, .94));
  box-shadow: 0 18px 44px rgba(49, 70, 63, .08);
}

.legacy-content dl.row dt {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 18px 22px !important;
  border-color: rgba(32, 131, 108, .16) !important;
  color: var(--leaf-dark);
  font-weight: 800;
}

.legacy-content dl.row dd {
  min-height: 64px;
  padding: 18px 22px !important;
  border-color: rgba(228, 222, 211, .86) !important;
  background: rgba(255, 255, 255, .64);
  line-height: 1.9;
}

.legacy-content .heading-section,
.legacy-content .text-center {
  text-align: left;
}

.legacy-content .img,
.legacy-content .block-20 {
  min-height: 260px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
}

.legacy-content .img-3 {
  min-height: 360px;
  background-position: 78% center;
}

.legacy-content .room .img {
  min-height: 300px;
  border-radius: 8px 8px 0 0;
}

.legacy-content .room .text {
  padding: 22px 20px 24px;
  text-align: center;
}

.legacy-content .room h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 23px;
}

.legacy-content .room p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.legacy-content table {
  display: table;
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 32px;
  font-size: 16px;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 12px 30px rgba(49, 70, 63, .06);
}

.legacy-content .room-single,
.legacy-content .table-responsive-sm,
.legacy-content .table-responsive {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.legacy-content .facility-readable-intro {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(211, 198, 172, .88);
  border-left: 5px solid var(--leaf);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(32, 131, 108, .06), rgba(255, 255, 255, .94) 52%),
    #fffdf8;
  box-shadow: 0 18px 48px rgba(49, 70, 63, .08);
}

.legacy-content .facility-readable-intro p {
  position: relative;
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 2.05;
}

.legacy-content .facility-readable-intro p::before {
  content: "";
  position: absolute;
  left: 0;
  top: .85em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold);
}

.legacy-content .facility-readable-intro h3 {
  margin: 14px 0 6px;
  padding-top: 18px;
  border-top: 1px solid rgba(211, 198, 172, .72);
  color: var(--leaf-dark);
  font-size: clamp(24px, 2.7vw, 34px);
}

.legacy-content .facility-readable-intro h3:first-child {
  border-top: 0;
  padding-top: 0;
}

.legacy-content .facility-readable-intro ol {
  margin: 4px 0 0;
  padding-left: 1.4em;
}

.legacy-content .facility-readable-intro li {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.9;
}

  .legacy-content th,
  .legacy-content td {
  min-width: 96px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  vertical-align: top;
  background: white;
}

.legacy-content th {
  background: #ecf5ef;
  color: var(--leaf-dark);
  font-weight: 800;
}

.legacy-content tbody tr:nth-child(even) td,
.legacy-content tbody tr:nth-child(even) th {
  background: #fbf8f1;
}

.legacy-content table caption,
.legacy-content figcaption {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.legacy-content table::-webkit-scrollbar {
  height: 10px;
}

.legacy-content table::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(38, 118, 95, .32);
}

.legacy-content dt,
.legacy-content dd {
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.legacy-content dt {
  grid-column: span 3;
  color: var(--leaf-dark);
  font-weight: 800;
}

.legacy-content dd {
  grid-column: span 9;
}

.legacy-content ul,
.legacy-content ol {
  padding-left: 1.4em;
}

.legacy-content li::marker {
  color: var(--leaf);
}

.legacy-content .nav-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0 0 20px;
  padding: 0 0 8px;
  list-style: none;
  scrollbar-width: thin;
}

.legacy-content .nav-tabs li {
  display: block;
  flex: 0 0 auto;
}

.legacy-content .nav-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(38, 118, 95, .25);
  border-radius: 999px;
  background: white;
  color: var(--leaf-dark);
  text-shadow: none;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.legacy-content .nav-tabs .nav-link.active,
.legacy-content .nav-tabs .nav-link:hover {
  background: var(--leaf);
  color: white;
}

.legacy-content .tab-pane {
  display: none;
  margin: 0 0 18px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 28px rgba(49, 70, 63, .06);
}

.legacy-content .tab-pane.active {
  display: block;
}

.legacy-content .tab-pane h3 {
  margin-top: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.legacy-content .tab-pane small {
  color: var(--sun);
  font-size: 15px;
  font-weight: 800;
}

.legacy-content .hellowork-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin: 10px 0 20px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--leaf);
  color: white;
  box-shadow: 0 16px 32px rgba(38, 118, 95, .18);
  font-size: 18px;
  font-weight: 800;
}

.legacy-content .hellowork-button:hover {
  background: var(--leaf-dark);
}

.legacy-content .mw_wp_form {
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid rgba(228, 222, 211, .86);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .97), rgba(251, 248, 241, .92)),
    radial-gradient(circle at top right, rgba(220, 236, 235, .65), transparent 36%);
  box-shadow: 0 24px 58px rgba(49, 70, 63, .12);
}

.legacy-content .mw_wp_form dl.row {
  gap: 0 24px;
}

.legacy-content .mw_wp_form dt {
  padding-top: 24px;
  font-size: 18px;
}

.legacy-content .mw_wp_form dd {
  padding-top: 18px;
}

.legacy-content .mw_wp_form .category {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--rose);
  color: white;
  font-size: 12px;
  line-height: 1;
}

.legacy-content .mwform-radio-field {
  display: inline-flex;
  margin: 0 8px 10px 0;
}

.legacy-content .mwform-radio-field label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid rgba(38, 118, 95, .22);
  border-radius: 999px;
  background: white;
  color: var(--leaf-dark);
  cursor: pointer;
}

.legacy-content input,
.legacy-content textarea,
.legacy-content select {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid rgba(38, 118, 95, .18);
  border-radius: 8px;
  background: white;
  font: inherit;
  font-size: 17px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
}

.legacy-content input:focus,
.legacy-content textarea:focus,
.legacy-content select:focus {
  outline: 3px solid rgba(38, 118, 95, .18);
  border-color: var(--leaf);
}

.legacy-content textarea {
  min-height: 220px;
}

.legacy-content input[type="radio"],
.legacy-content input[type="checkbox"] {
  width: auto;
  min-height: auto;
}

.legacy-content input[type="submit"],
.legacy-content button {
  width: auto;
  min-width: 220px;
  min-height: 56px;
  padding-inline: 26px;
  border: 0;
  border-radius: 999px;
  background: var(--leaf);
  color: white;
  box-shadow: 0 18px 36px rgba(38, 118, 95, .2);
  font-weight: 800;
  cursor: pointer;
}

.legacy-content input[type="submit"]:hover,
.legacy-content button:hover {
  background: var(--leaf-dark);
}

.legacy-content .mwform-tel-field {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}

.access-page {
  background: var(--paper);
}

.access-overview {
  padding-block: clamp(72px, 9vw, 116px);
}

.access-grid {
  display: grid;
  gap: 28px;
}

.access-card {
  display: grid;
  grid-template-columns: minmax(300px, .95fr) minmax(340px, .9fr) minmax(380px, 1.15fr);
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 24px 70px rgba(31, 58, 49, .08);
}

.access-card figure {
  min-height: 100%;
  margin: 0;
}

.access-card img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.access-card-body {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(24px, 4vw, 42px);
}

.access-card h3 {
  margin: 0;
  color: var(--leaf-dark);
  font-family: "Shippori Mincho", serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.35;
}

.access-address {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.8;
}

.access-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.access-card dl div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: baseline;
}

.access-card dt {
  color: var(--leaf-dark);
  font-weight: 800;
}

.access-card dd {
  margin: 0;
  white-space: nowrap;
}

.access-card a {
  color: var(--leaf-dark);
  font-weight: 800;
}

.access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.access-card .access-actions .button {
  color: white;
}

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

.access-map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.access-legacy {
  display: none;
}

.cta-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.cta-band a {
  position: relative;
  min-height: 230px;
  display: grid;
  place-content: center;
  padding: 28px;
  color: white;
  text-align: center;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.cta-band a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(21, 72, 58, .58);
}

.cta-band span {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .34);
}

.site-footer {
  padding: clamp(64px, 8vw, 96px) clamp(20px, 5vw, 56px) 24px;
  color: #eaf3f0;
  background: #101b35;
  text-align: left;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1.1fr 1.35fr;
  gap: clamp(28px, 5vw, 64px);
  width: min(1180px, 100%);
  margin-inline: auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.site-footer h2 {
  margin: 0 0 24px;
  color: white;
  font-size: 23px;
  line-height: 1.4;
}

.site-footer h2::after {
  display: none;
}

.site-footer a,
.site-footer p {
  display: block;
  margin: 0 0 16px;
  color: #d3e2de;
  font-size: 17px;
  line-height: 1.8;
}

.site-footer .footer-name {
  margin: 0;
  color: white;
  font-size: 24px;
  font-weight: 700;
}

.footer-contact {
  font-style: normal;
}

.copyright {
  width: min(1120px, 100%);
  margin: 56px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  text-align: center;
}

.d-none,
.owl-carousel,
.modal,
.popup-youtube,
.ftco-loader,
script {
  display: none !important;
}

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

  .site-nav {
    position: fixed;
    inset: 92px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
      linear-gradient(rgba(255, 253, 248, .88), rgba(255, 253, 248, .9)),
      url("/assets/media/themes/hakuyou/images/bg_04.jpg") center / cover;
    box-shadow: var(--shadow);
  }

  .site-nav .nav-link {
    background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(228, 222, 211, .92);
    color: var(--leaf-dark);
    text-shadow: none;
  }

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

  .home-hero {
    min-height: 600px;
  }

  .hero-copy h1 {
    max-width: min(900px, calc(100vw - 40px));
    margin-inline: auto;
    font-size: clamp(40px, 7.6vw, 64px);
    white-space: normal;
    word-break: normal;
    line-break: strict;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .split,
  .home-intro-layout,
  .footer-grid,
  .cta-band,
  .access-card,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: relative;
    height: auto;
  }

  .footer-brand {
    align-items: flex-start;
  }

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

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

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

  .facility-contact-map {
    width: 100%;
  }

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

  .access-card {
    min-height: auto;
  }

  .access-card img,
  .access-map,
  .access-map iframe {
    min-height: 300px;
  }

  .legacy-content .col-md-4,
  .legacy-content .col-lg-4,
  .legacy-content .col-md-6,
  .legacy-content .col-lg-6,
  .legacy-content .col-md-8,
  .legacy-content .col-lg-8,
  .legacy-content dt,
  .legacy-content dd {
    grid-column: span 12;
  }
}

@media (max-width: 620px) {
  .container,
  .legacy-content > section {
    width: min(100% - 28px, 1120px);
  }

  .legacy-content > section {
    width: 100%;
  }

  .legacy-content .container,
  .legacy-content .row {
    width: min(100% - 28px, 1120px);
  }

  .brand span {
    font-size: 14px;
  }

  .home-hero {
    min-height: 560px;
  }

  .hero-copy {
    min-height: 250px;
    margin-top: 56px;
  }

  .hero-copy h1 {
    max-width: min(480px, calc(100vw - 28px));
    font-size: clamp(27px, 8.4vw, 36px);
    white-space: normal;
    word-break: normal;
    line-break: strict;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .hero-copy span {
    font-size: 18px;
  }

  .access-card-body {
    padding: 24px 18px;
  }

  .access-card dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .facility-grid {
    grid-template-columns: 1fr;
  }

  .facility-mini-grid {
    grid-template-columns: 1fr 1fr;
  }

  .facility-feature-slider {
    min-height: 500px;
  }

  .home-principles article {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0;
  }

  .home-principles figure {
    min-height: 180px;
  }

  .home-principles p {
    padding: 0 18px 20px;
    font-size: 16px;
  }

  .home-intro-photo img {
    aspect-ratio: 4 / 3;
  }

  .home-gallery-card {
    flex-basis: clamp(260px, 78vw, 340px);
    height: clamp(190px, 58vw, 260px);
  }

  .access-card img {
    min-height: 210px;
  }

  .access-map {
    display: none;
  }

  .legacy-content .room-single,
  .legacy-content .table-responsive-sm,
  .legacy-content .table-responsive {
    grid-column: span 12;
    width: 100%;
    overflow-x: auto;
  }

  .legacy-content table {
    width: max-content;
    min-width: 720px;
    table-layout: auto;
    font-size: 14px;
    white-space: nowrap;
  }

  .legacy-content th,
  .legacy-content td {
    min-width: 86px;
    padding: 9px 10px;
    line-height: 1.6;
    word-break: normal;
    overflow-wrap: normal;
  }

  .legacy-content table caption,
  .legacy-content figcaption {
    font-size: 13px;
  }

  .photo-mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .notice-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-workspace {
    padding: 24px 14px;
  }

  .admin-edit-card {
    grid-template-columns: 1fr;
  }

  .admin-card-head,
  .admin-inline-actions,
  .admin-export-actions,
  .admin-fee-tools {
    align-items: stretch;
    flex-direction: column;
  }
}
