/* Shared PHP include hooks. Page-level CSS carries the imported design. */

:root {
  --draw-frame-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --selection-bg: rgba(216, 189, 226, 0.72);
  --selection-color: #3c3545;
}

::selection {
  background: var(--selection-bg);
  color: var(--selection-color);
  text-shadow: none;
}

::-moz-selection {
  background: var(--selection-bg);
  color: var(--selection-color);
  text-shadow: none;
}

.site-header .brand-signboard {
  display: inline-grid;
  align-items: center;
  justify-items: start;
  gap: 0;
  width: min(270px, 42vw);
}

.brand-signboard .brand-wordmark {
  display: block;
  width: min(238px, 100%);
  height: auto;
}

.brand-signboard .brand-name {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(0.62rem, 0.8vw, 0.72rem);
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-signboard .brand-sub {
  display: block;
  overflow: hidden;
  margin: 0 0 -1px 2px;
  color: #d87943;
  font-size: clamp(0.52rem, 0.68vw, 0.62rem);
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .site-header .brand-signboard {
    width: min(230px, calc(100vw - 96px));
  }

  .brand-signboard .brand-wordmark {
    width: min(188px, 100%);
  }

  .brand-signboard .brand-name {
    font-size: 0.58rem;
  }

  .brand-signboard .brand-sub {
    margin-left: 1px;
    font-size: 0.5rem;
  }
}

body.design-v2 .top-home-button {
  position: fixed;
  right: clamp(16px, 2.2vw, 28px);
  bottom: clamp(16px, 2.2vw, 28px);
  z-index: 70;
  width: clamp(44px, 5vw, 54px);
  height: clamp(44px, 5vw, 54px);
  display: inline-grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--sign-orange) 18%, transparent);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--sign-orange);
  box-shadow: 0 14px 34px rgba(178, 103, 54, 0.12);
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.top-home-button span {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 21px;
  font-weight: 300;
  line-height: 1;
}

body.design-v2 .top-home-button:hover,
body.design-v2 .top-home-button:focus-visible {
  background: var(--sign-orange);
  color: #fff;
  box-shadow: 0 18px 44px rgba(178, 103, 54, 0.18);
  transform: translateY(-3px);
  outline: none;
}

.site-footer {
  padding: clamp(52px, 7vw, 76px) 0 30px;
  border-top: 1px solid rgba(206, 118, 67, 0.18);
  background:
    radial-gradient(circle at 86% 14%, rgba(255, 218, 169, 0.42), transparent 24rem),
    linear-gradient(180deg, #fffdf9, #fff8f0);
  color: var(--text, #625b6d);
}

.footer-inner,
.footer-copy {
  width: min(var(--max, 1120px), calc(100% - 32px));
  margin-inline: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(390px, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}

.footer-company {
  min-width: 0;
}

.footer-company-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #a45d3d;
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: clamp(1.05rem, 1.7vw, 1.26rem);
  letter-spacing: 0.05em;
}

.footer-company-logo {
  width: clamp(42px, 5vw, 54px);
  height: auto;
  display: block;
  flex: 0 0 auto;
}

.footer-company-address,
.footer-company-area {
  margin: 10px 0 0;
  color: var(--muted, #83778e);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.8;
}

.footer-company-area {
  max-width: 48rem;
  margin-top: 5px;
}

.footer-network-wrap {
  justify-self: end;
  width: min(100%, 496px);
}

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

.footer-network > p {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  color: #a89c94;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.footer-network a {
  min-height: 76px;
  padding: 14px 13px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid rgba(190, 126, 89, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 7px 18px rgba(142, 85, 48, 0.05);
  color: #675c60;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.footer-network a:hover,
.footer-network a:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(209, 118, 63, 0.6);
  box-shadow: 0 12px 24px rgba(178, 103, 54, 0.15);
  outline: none;
}

.footer-network a.is-current {
  border-color: rgba(204, 106, 51, 0.56);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 54%),
    linear-gradient(135deg, #d87943, #eead69);
  box-shadow: 0 12px 25px rgba(188, 105, 54, 0.23);
}

.footer-network small {
  color: #9e908a;
  font-size: 0.62rem;
  letter-spacing: 0.03em;
}

.footer-network strong {
  color: #5c4e4d;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.35;
}

.footer-network .is-current small,
.footer-network .is-current strong {
  color: #fff;
  text-shadow: 0 1px 1px rgba(117, 60, 31, 0.16);
}

.footer-copy {
  margin-top: 42px;
  color: #afa49e;
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-align: center;
}

@media (max-width: 680px) {
  body.design-v2 .top-home-button {
    right: 12px;
    /* Keep the button above the nursery's fixed inquiry bar. */
    bottom: calc(82px + env(safe-area-inset-bottom));
  }

}

@media (max-width: 980px) {
  .site-footer {
    padding-top: 48px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-network-wrap {
    justify-self: stretch;
    width: 100%;
  }

  .footer-company-address,
  .footer-company-area {
    font-size: 0.68rem;
  }

  .footer-network a {
    min-height: 82px;
    padding: 12px 9px;
  }

  .footer-network strong {
    font-size: 0.78rem;
  }

  .footer-copy {
    margin-top: 34px;
    font-size: 0.59rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  body.design-v2 .top-home-button {
    transition: none;
  }

  body.design-v2 .top-home-button:hover,
  body.design-v2 .top-home-button:focus-visible {
    transform: none;
  }

  .is-frame-visible::after,
  .is-frame-visible {
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
}
