/* 色を変更する場合は、まずこの変数を調整してください */
:root {
  --green: #123f31;
  --green-2: #1e5a46;
  --gold: #b68a3a;
  --gold-soft: #d6bd7a;
  --black: #202624;
  --text: #3d4643;
  --muted: #6d7773;
  --line: #ded8c8;
  --white: #ffffff;
  --ivory: #f8f4eb;
  --ivory-2: #fcfaf4;
  --header-height: 76px;
  --container: 1120px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Yu Gothic Medium", Meiryo, sans-serif;
  font-size: 17px;
  line-height: 1.85;
  background: var(--white);
}

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

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

button {
  font: inherit;
}

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

.narrow {
  width: min(100% - 40px, 880px);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(182, 138, 58, 0.2);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  gap: 20px;
}

.logo,
.footer-logo {
  color: var(--green);
  font-weight: 800;
  letter-spacing: 0.05em;
}

.logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  font-size: clamp(1.35rem, 2vw, 1.62rem);
  white-space: nowrap;
}

.logo img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.logo::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--gold);
  content: "";
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--black);
  font-size: 1.06rem;
  font-weight: 800;
}

.global-nav a {
  padding-block: 8px;
}

.global-nav a:hover,
.global-nav a:focus-visible {
  color: var(--green-2);
}

.header-phone {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  color: var(--green);
  font-weight: 800;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--green);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
  padding: calc(var(--header-height) + 80px) 0 84px;
  background: url("../images/building-exterior.jpg") center / cover no-repeat;
  overflow: hidden;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 24, 22, 0.68) 0%, rgba(24, 42, 36, 0.42) 42%, rgba(20, 24, 22, 0.08) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.12), rgba(255, 255, 255, 0.06));
}

.hero-content {
  position: relative;
  color: var(--white);
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-label-light {
  color: var(--gold-soft);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 730px;
  margin-bottom: 24px;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.32;
  letter-spacing: 0.03em;
}

h2 {
  position: relative;
  margin-bottom: 30px;
  color: var(--black);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.45;
  letter-spacing: 0.04em;
}

h2::after {
  display: block;
  width: 72px;
  height: 2px;
  margin-top: 18px;
  background: var(--gold);
  content: "";
}

h3 {
  margin-bottom: 10px;
  color: var(--black);
  font-size: 1.18rem;
  line-height: 1.55;
}

.hero h1,
.hero h2,
.contact-section h2 {
  color: var(--white);
}

.hero h1::after,
.contact-section h2::after {
  background: var(--gold-soft);
}

.hero-lead {
  max-width: 720px;
  margin-bottom: 28px;
  font-size: 1.1rem;
}

.opening-note {
  width: fit-content;
  margin: 22px 0 0;
  padding: 9px 14px;
  border-left: 3px solid var(--gold);
  background: rgba(0, 0, 0, 0.24);
  font-weight: 700;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.4;
}

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

.button.outline-light {
  margin-left: 12px;
  color: var(--white);
  border-color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.08);
}

.button:hover,
.button:focus-visible,
.service-card a:hover,
.service-card a:focus-visible {
  color: var(--gold-soft);
}

.section {
  padding: 94px 0;
}

.section-ivory {
  background: var(--ivory);
}

.split-layout,
.nursing-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
  gap: 56px;
  align-items: center;
}

.section-copy {
  max-width: 720px;
}

.lead-text {
  color: #4b5652;
  font-size: 1.08rem;
}

.image-panel {
  margin: 0;
  border: 1px solid rgba(182, 138, 58, 0.2);
  background: var(--white);
}

.image-panel img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

.image-panel-dark {
  border-color: rgba(18, 63, 49, 0.24);
  background: var(--green);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading p:last-child {
  color: var(--muted);
}

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

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(182, 138, 58, 0.22);
  background: var(--white);
}

.service-card img {
  width: 100%;
  height: auto;
  object-fit: initial;
  background: #f7f3ec;
}

.service-card div {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.service-card p {
  color: var(--muted);
}

.service-card a {
  width: fit-content;
  margin-top: auto;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--gold);
  color: var(--green);
  font-weight: 800;
}

.service-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 8px 0 24px;
  list-style: none;
}

.service-points li {
  padding: 7px 11px;
  border: 1px solid rgba(182, 138, 58, 0.34);
  color: var(--green);
  font-size: 0.92rem;
  font-weight: 800;
  background: rgba(247, 243, 236, 0.72);
}

.service-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(0, 0.95fr);
  background: #fdfbf6;
}

.service-featured img {
  height: auto;
  min-height: 0;
  object-fit: initial;
  align-self: center;
}

.nursing-section {
  background:
    linear-gradient(90deg, rgba(18, 63, 49, 0.06), transparent 42%),
    var(--white);
}

.facility-info {
  display: grid;
  margin: 30px 0 0;
  border-top: 1px solid var(--line);
}

.facility-info div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.facility-info dt {
  color: var(--green);
  font-weight: 800;
}

.facility-info dd {
  margin: 0;
}

.feature-details {
  grid-column: 1 / -1;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  margin: 0 0 28px;
  list-style: none;
}

.feature-list li {
  padding: 24px;
  border-left: 3px solid var(--gold);
  background: var(--ivory-2);
}

.feature-list p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

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

.facility-blocks article {
  padding: 24px;
  border: 1px solid rgba(182, 138, 58, 0.22);
  background: var(--white);
}

.facility-blocks ul {
  padding-left: 1.2em;
  margin: 0;
  color: var(--muted);
}

.facility-blocks li + li {
  margin-top: 6px;
}

.value-section {
  color: var(--white);
  background: var(--green);
}

.value-section h2,
.value-section h3 {
  color: var(--white);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-grid article {
  padding: 26px 0 0;
  border-top: 1px solid rgba(214, 189, 122, 0.55);
}

.value-grid span {
  display: block;
  margin-bottom: 12px;
  color: var(--gold-soft);
  font-weight: 800;
}

.value-grid p {
  color: rgba(255, 255, 255, 0.82);
}

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

.news-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

.company-table th,
.company-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.company-table th {
  width: 180px;
  color: var(--green);
  font-weight: 800;
}

.company-table a {
  color: var(--green);
  font-weight: 800;
}

.contact-section {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(18, 63, 49, 0.96), rgba(32, 38, 36, 0.96)),
    var(--green);
}

.contact-layout {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.84);
}

.contact-methods {
  padding: 30px;
  border: 1px solid rgba(214, 189, 122, 0.42);
}

.contact-method {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(214, 189, 122, 0.32);
}

.contact-method:first-child {
  padding-top: 0;
}

.contact-method span,
.contact-hours,
.contact-note {
  color: rgba(255, 255, 255, 0.72);
}

.contact-method strong {
  color: var(--white);
  font-size: clamp(1.2rem, 2.8vw, 1.7rem);
  letter-spacing: 0.02em;
}

.contact-hours {
  margin: 20px 0 0;
  font-weight: 800;
}

.contact-note {
  margin: 10px 0 0;
}

.site-footer {
  padding: 42px 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.03rem;
  background: #151a18;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(560px, 1.3fr);
  gap: 30px;
  align-items: start;
}

.site-footer .footer-logo {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 1.36rem;
}

.footer-contact {
  margin: 4px 0;
  font-size: 1.05rem;
}

.footer-contact a,
.footer-nav a {
  color: rgba(255, 255, 255, 0.9);
}

.footer-nav a {
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0 24px;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
  white-space: nowrap;
}

.mobile-contact-bar {
  display: none;
}

@media (max-width: 1080px) {
  .header-phone {
    display: none;
  }

  .global-nav {
    gap: 14px;
    font-size: 1rem;
  }
}

@media (max-width: 920px) {
  .split-layout,
  .nursing-layout,
  .contact-layout,
  .service-card,
  .service-featured {
    grid-template-columns: 1fr;
  }

  .feature-list,
  .facility-blocks,
  .value-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .image-panel {
    order: -1;
  }

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

  .footer-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px 20px;
    white-space: normal;
  }

  .copyright {
    white-space: normal;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  body {
    padding-bottom: 70px;
  }

  .container,
  .narrow {
    width: min(100% - 28px, var(--container));
  }

  .menu-toggle {
    display: block;
  }

  .logo {
    gap: 10px;
    font-size: 1.16rem;
  }

  .logo img {
    width: 46px;
    height: 46px;
  }

  .global-nav {
    position: fixed;
    top: var(--header-height);
    right: 14px;
    left: 14px;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 16px 34px rgba(18, 63, 49, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

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

  .global-nav a {
    padding: 13px 10px;
    border-bottom: 1px solid var(--line);
  }

  .global-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: 590px;
    padding: calc(var(--header-height) + 54px) 0 58px;
    background-position: 58% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(20, 24, 22, 0.76), rgba(24, 42, 36, 0.46)),
      linear-gradient(0deg, rgba(0, 0, 0, 0.12), transparent);
  }

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

  .button.outline-light {
    margin: 12px 0 0;
  }

  .section {
    padding: 68px 0;
  }

  .facility-info div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .company-table,
  .company-table tbody,
  .company-table tr,
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }

  .company-table th {
    padding-bottom: 4px;
    border-bottom: 0;
  }

  .company-table td {
    padding-top: 0;
  }

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

  .mobile-contact-bar {
    position: fixed;
    right: 14px;
    bottom: 14px;
    left: 14px;
    z-index: 50;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    background: var(--green);
    box-shadow: 0 12px 30px rgba(18, 63, 49, 0.22);
  }

  .mobile-contact-bar a {
    padding: 13px 10px;
    color: var(--white);
    font-weight: 800;
    text-align: center;
  }

  .mobile-contact-bar a + a {
    border-left: 1px solid rgba(214, 189, 122, 0.5);
  }
}

/* WordPress admin toolbar compatibility */
body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}
