:root {
  --green: #386858;
  --deep-green: #23483d;
  --ink: #2f3430;
  --muted: #65706a;
  --paper: #f6f3ec;
  --cream: #fffaf0;
  --white: #ffffff;
  --coral: #d97838;
  --rose: #a45e69;
  --line: #e3ddd0;
  --soft-line: #eee7d8;
  --shadow: 0 18px 42px rgba(47, 52, 48, .1);
  --radius: 8px;
  --max: 1220px;
}

body:has(.carehouse-page) #site-header,
body:has(.carehouse-page) .lightning_swiper,
body:has(.carehouse-page) .page-header,
body:has(.carehouse-page) #breadcrumb,
body:has(.carehouse-page) .entry-header,
body:has(.carehouse-page) .entry-meta,
body:has(.carehouse-page) .entry-footer,
body:has(.carehouse-page) .post-navigation,
body:has(.carehouse-page) .postNextPrev,
body:has(.carehouse-page) .nav-links,
body:has(.carehouse-page) .vk_posts.next-prev,
body:has(.carehouse-page) .next-prev-prev,
body:has(.carehouse-page) .next-prev-next,
body:has(.carehouse-page) .sub-section,
body:has(.carehouse-page) .veu_socialSet,
body:has(.carehouse-page) .veu_relatedPosts,
body:has(.carehouse-page) .veu_postList,
body:has(.carehouse-page) > .site-footer,
body:has(.carehouse-page) .vk-mobile-nav-menu-btn,
body:has(.carehouse-page) #vk-mobile-nav,
body:has(.carehouse-page) #page_top {
  display: none !important;
}

body:has(.carehouse-page) .site-body,
body:has(.carehouse-page) .site-body-container,
body:has(.carehouse-page) .main-section,
body:has(.carehouse-page) .entry,
body:has(.carehouse-page) .entry-body {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.carehouse-page {
  min-height: 100vh;
  color: var(--ink);
  background: #fffdf8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fffdf8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 16px; color: #fff; background: #111; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
a:focus-visible { outline: 3px solid rgba(217, 120, 56, .65); outline-offset: 3px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, .96);
  border-bottom: 1px solid rgba(227, 221, 208, .86);
  backdrop-filter: blur(12px);
}
.header-inner {
  min-height: 104px;
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr) minmax(190px, auto);
  align-items: center;
  gap: 18px 28px;
  padding: 14px 0;
}
.brand {
  min-width: 0;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand img { width: 66px; height: 66px; object-fit: contain; }
.brand small { display: block; color: var(--muted); font-size: .78rem; font-weight: 800; line-height: 1.35; }
.brand strong {
  display: block;
  margin-top: 4px;
  color: var(--deep-green);
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.46rem;
  line-height: 1.18;
}
.global-nav { display: flex; justify-content: center; align-items: center; gap: 8px; min-width: 0; }
.global-nav a {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid var(--soft-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(47, 52, 48, .04);
}
.global-nav a:hover, .global-nav a:focus { border-color: rgba(217, 120, 56, .52); background: #fff; color: var(--green); }
.global-nav a[aria-current="page"] { border-color: rgba(56, 104, 88, .42); background: var(--green); color: #fff; }
.header-contact { display: grid; justify-items: end; gap: 2px; color: var(--muted); font-size: .78rem; font-weight: 800; white-space: nowrap; }
.header-contact a { color: var(--deep-green); font-size: .96rem; font-weight: 900; text-decoration: none; font-variant-numeric: tabular-nums; }

.page-title {
  background: var(--paper) url("https://yakami.or.jp/wp-content/uploads/2026/07/carehouse-washi-final.webp") center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.title-inner { min-height: 270px; display: grid; grid-template-columns: minmax(0, 1fr) 150px; align-items: center; gap: 40px; padding-block: 42px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; color: var(--muted); font-size: .8rem; font-weight: 700; }
.breadcrumb a { text-underline-offset: 3px; }
.eyebrow { margin: 0 0 8px; color: var(--green); font-size: .92rem; font-weight: 900; }
h1, h2, h3 { color: var(--ink); }
h1 { margin: 0; font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 3.1rem; line-height: 1.3; font-weight: 700; }
.title-lead { max-width: 700px; margin: 14px 0 0; color: var(--muted); font-weight: 700; }
.facility-symbol { width: 150px; padding: 12px; border: 1px solid rgba(227, 221, 208, .9); border-radius: 14px; background: rgba(255, 255, 255, .82); box-shadow: var(--shadow); }

.local-nav { background: var(--deep-green); color: #fff; }
.local-nav .wrap { display: grid; grid-template-columns: repeat(5, 1fr); }
.local-nav a { display: grid; place-items: center; min-height: 58px; padding: 10px 12px; border-left: 1px solid rgba(255, 255, 255, .16); font-size: .9rem; font-weight: 800; text-align: center; text-decoration: none; }
.local-nav a:last-child { border-right: 1px solid rgba(255, 255, 255, .16); }
.local-nav a:hover, .local-nav a:focus { background: rgba(255, 255, 255, .12); }

main { background: linear-gradient(180deg, #fffdf8 0%, #fff 38%, var(--paper) 100%); }
.content-wrap { max-width: 1080px; padding-top: 60px; padding-bottom: 110px; }
.hero-photo { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.hero-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.intro-block { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.25fr); gap: 44px; align-items: start; padding: 42px 8px 0; }
.intro-block h2 { margin: 0; padding: 0; border: 0; font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 2rem; line-height: 1.5; }
.intro-block p { margin: 0; color: var(--muted); font-size: 1.08rem; font-weight: 650; line-height: 2; }

.content-section { padding-top: 88px; scroll-margin-top: 118px; }
.content-section > h2 { margin: 0 0 30px; padding: 8px 0 8px 18px; border-left: 6px solid var(--green); font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 2.1rem; line-height: 1.4; }
.content-section h3 { margin: 48px 0 20px; padding-bottom: 12px; border-bottom: 2px solid var(--line); font-size: 1.35rem; line-height: 1.5; }

.info-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: #fff; }
.info-table th, .info-table td { padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.info-table th { width: 190px; background: var(--paper); font-size: .96rem; font-weight: 900; }
.info-table td { font-size: 1rem; font-weight: 600; }
.info-table td a { color: var(--green); font-weight: 900; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.room-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.room-gallery figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 10px 24px rgba(47, 52, 48, .06); }
.room-gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.room-gallery figcaption { padding: 12px 14px; color: var(--muted); font-size: .88rem; font-weight: 800; }
.gallery-grid figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 10px 24px rgba(47, 52, 48, .06); }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-grid figcaption { padding: 12px 14px; color: var(--muted); font-size: .88rem; font-weight: 800; }

.fee-highlight { display: grid; justify-items: center; margin-bottom: 28px; padding: 30px 24px; border: 1px solid #dbe8e1; border-radius: var(--radius); background: #eef5f1; text-align: center; }
.fee-highlight > span { color: var(--green); font-size: .92rem; font-weight: 900; }
.fee-highlight > strong { margin-top: 4px; color: var(--deep-green); font-size: 2.65rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.fee-highlight strong small { font-size: 1rem; }
.fee-highlight p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; font-weight: 700; }
.notice { margin-top: 22px; padding: 18px 20px; border-left: 4px solid var(--green); background: var(--paper); }
.notice p { margin: 0; font-size: .92rem; font-weight: 650; }
.pdf-link, .map-link { display: inline-flex; align-items: center; min-height: 48px; margin-top: 22px; padding: 12px 22px; border-radius: 999px; background: var(--green); color: #fff; font-size: .96rem; font-weight: 900; text-decoration: none; }
.pdf-link:hover, .pdf-link:focus, .map-link:hover, .map-link:focus { background: var(--deep-green); }

.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.visit-grid h3 { margin-top: 0; }
.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { display: grid; gap: 5px; padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); background: #fff; }
.steps strong { color: var(--green); }
.steps span { color: var(--muted); font-size: .94rem; font-weight: 650; }
.access-table th { width: 130px; }
.contact-box { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 42px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); }
.contact-box > div > strong { font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 1.35rem; }
.contact-box p { margin: 7px 0 0; color: var(--muted); font-size: .92rem; font-weight: 700; }
.contact-box > a { flex: 0 0 auto; display: grid; padding: 13px 22px; border-radius: 7px; background: var(--coral); color: #fff; line-height: 1.25; text-decoration: none; }
.contact-box a small { font-size: .74rem; font-weight: 800; }
.contact-box a strong { font-size: 1.55rem; font-variant-numeric: tabular-nums; }

.site-footer { padding: 56px 0 28px; background: var(--ink); color: rgba(255, 255, 255, .78); }
.footer-grid { display: grid; grid-template-columns: 1.05fr 1.35fr .7fr; gap: 36px; }
.site-footer h2, .site-footer h3 { margin-top: 0; color: #fff; }
.site-footer h2 { margin-bottom: 0; font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 1.72rem; }
.site-footer h3 { margin-bottom: 10px; font-size: 1.05rem; }
.site-footer p { margin: 10px 0 0; }
.site-footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: rgba(255, 255, 255, .84); text-decoration: none; }
.footer-office-list { gap: 7px; }
.footer-office-list a, .footer-office-static { display: grid; gap: 3px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-office-list span { font-weight: 850; line-height: 1.35; }
.footer-office-list small { color: rgba(255, 255, 255, .58); font-size: .78rem; font-weight: 850; }
.footer-links a { display: inline-block; padding: 3px 0; }
.footer-bottom { margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .6); font-size: .88rem; }
.mobile-phone { display: none; }

.carehouse-page h1 { font-size: clamp(2.5rem, 5vw, 3.1rem) !important; }
.carehouse-page .intro-block h2 { font-size: 2rem !important; }
.carehouse-page .content-section > h2 { font-size: 2.1rem !important; }
.carehouse-page h1::before,
.carehouse-page h1::after,
.carehouse-page h2::before,
.carehouse-page h2::after,
.carehouse-page h3::before,
.carehouse-page h3::after { display: none !important; content: none !important; }
.carehouse-page footer.site-footer { display: block !important; }

@media (max-width: 1100px) {
  .header-inner { grid-template-columns: 1fr; align-items: start; gap: 12px; }
  .global-nav { justify-content: start; width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .header-contact { justify-items: start; }
}

@media (max-width: 820px) {
  .title-inner { grid-template-columns: minmax(0, 1fr) 110px; }
  .facility-symbol { width: 110px; }
  .local-nav .wrap { grid-template-columns: repeat(3, 1fr); }
  .local-nav a { border-bottom: 1px solid rgba(255, 255, 255, .16); }
  .intro-block, .visit-grid { grid-template-columns: 1fr; gap: 26px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { padding-bottom: 66px; font-size: 16px; }
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .site-header { position: relative; }
  .header-inner { min-height: 0; padding: 12px 0; }
  .brand { grid-template-columns: 52px minmax(0, 1fr); }
  .brand img { width: 52px; height: 52px; }
  .brand strong { font-size: 1.14rem; }
  .global-nav { flex-wrap: wrap; overflow: visible; }
  .global-nav a { flex: 1 1 calc(33.333% - 8px); min-height: 34px; padding: 7px 12px; font-size: .78rem; }
  .header-contact { display: none; }
  .title-inner { min-height: 0; grid-template-columns: 1fr; gap: 24px; padding-block: 34px; }
  .facility-symbol { width: 92px; }
  .breadcrumb { margin-bottom: 18px; }
  h1 { font-size: 2.45rem; }
  .carehouse-page h1 { font-size: 2.45rem !important; }
  .title-lead { font-size: .95rem; }
  .local-nav .wrap { width: 100%; grid-template-columns: repeat(2, 1fr); }
  .local-nav a { min-height: 52px; padding: 9px 8px; font-size: .82rem; }
  .content-wrap { padding-top: 34px; padding-bottom: 74px; }
  .hero-photo img { aspect-ratio: 4 / 3; }
  .intro-block { padding-top: 30px; }
  .intro-block h2 { font-size: 1.7rem; }
  .carehouse-page .intro-block h2 { font-size: 1.7rem !important; }
  .intro-block p { font-size: 1rem; }
  .content-section { padding-top: 68px; scroll-margin-top: 18px; }
  .content-section > h2 { margin-bottom: 24px; padding-left: 14px; font-size: 1.75rem; }
  .carehouse-page .content-section > h2 { font-size: 1.75rem !important; }
  .content-section h3 { font-size: 1.25rem; }
  .info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td { display: block; width: 100%; }
  .info-table tr { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .info-table th, .info-table td { border-right: 0; border-bottom: 0; padding: 13px 15px; }
  .info-table th { font-size: .9rem; }
  .gallery-grid, .room-gallery { grid-template-columns: 1fr; }
  .fee-highlight > strong { font-size: 2rem; }
  .contact-box { align-items: stretch; flex-direction: column; padding: 24px; }
  .contact-box > a { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .mobile-phone { position: fixed; right: 0; bottom: 0; left: 0; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 66px; padding: 9px 16px; background: var(--coral); color: #fff; }
  .mobile-phone span { font-size: .75rem; font-weight: 800; }
  .mobile-phone a { font-size: 1.18rem; font-weight: 900; text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
