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

:root {
  --draw-frame-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --service-care: #587d68;
  --service-care-soft: #edf5ef;
  --service-care-line: rgba(88, 125, 104, 0.32);
  --service-housekeeping: #66819b;
  --service-housekeeping-soft: #eef4f8;
  --service-housekeeping-line: rgba(102, 129, 155, 0.32);
  --service-childcare: #b17683;
  --service-childcare-soft: #fdf0f2;
  --service-childcare-line: rgba(177, 118, 131, 0.32);
}

.pore2-heart-float-active {
  will-change: transform;
}

.pore2-back-to-top {
  position: fixed;
  right: clamp(16px, 2.2vw, 28px);
  bottom: clamp(16px, 2.2vw, 28px);
  z-index: 60;
  width: clamp(44px, 5vw, 54px);
  height: clamp(44px, 5vw, 54px);
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(107, 76, 154, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #6b4c9a;
  box-shadow: 0 14px 34px rgba(74, 68, 77, 0.12);
  text-decoration: none;
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  visibility: hidden;
}

.pore2-back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.pore2-back-to-top:hover,
.pore2-back-to-top:focus-visible {
  background: #6b4c9a;
  color: #fff;
  box-shadow: 0 18px 44px rgba(107, 76, 154, 0.18);
  outline: none;
}

.pore2-back-to-top.is-visible:hover,
.pore2-back-to-top.is-visible:focus-visible {
  transform: translateY(-3px);
}

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

.top-home-button {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid rgba(174, 139, 192, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--violet-deep, #66507f);
  box-shadow: 0 16px 34px rgba(75, 59, 98, 0.18);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.top-home-button::before {
  content: "↑";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--violet-soft, #eee7f7);
  color: var(--violet-deep, #66507f);
  font-size: 0.76rem;
  line-height: 1;
}

.top-home-button::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  border: 1px solid rgba(241, 222, 216, 0.72);
  pointer-events: none;
}

.top-home-button:hover,
.top-home-button:focus-visible {
  transform: translateY(-3px);
  border-color: #6b4c9a;
  background: #6b4c9a;
  color: #fff;
  box-shadow: 0 20px 42px rgba(75, 59, 98, 0.22);
  outline: none;
}

.top-home-button:hover::before,
.top-home-button:focus-visible::before {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/*
 * サービス案内カード
 * TOPと下層で共通利用する3色のカード本体。
 */
.service-guide-card {
  position: relative;
  isolation: isolate;
  min-height: 282px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--service-accent-line, rgba(107, 76, 154, 0.12));
  border-radius: 24px;
  color: #4a444d;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(74, 68, 77, 0.06);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.service-guide-card > :not(.service-guide-card-photo, .pore2-pansy-card-decor__art) {
  position: relative;
  z-index: 1;
}

.service-guide-card--care {
  --service-accent: var(--service-care);
  --service-accent-soft: var(--service-care-soft);
  --service-accent-line: var(--service-care-line);
  background: linear-gradient(150deg, #f7faf7, #eaf2ec);
}

.service-guide-card--housekeeping {
  --service-accent: var(--service-housekeeping);
  --service-accent-soft: var(--service-housekeeping-soft);
  --service-accent-line: var(--service-housekeeping-line);
  background: linear-gradient(150deg, #f8fafc, #ebeff4);
}

.service-guide-card--childcare {
  --service-accent: var(--service-childcare);
  --service-accent-soft: var(--service-childcare-soft);
  --service-accent-line: var(--service-childcare-line);
  background: linear-gradient(150deg, #fffafb, #f8edf0);
}

.service-guide-card:hover,
.service-guide-card:focus-visible {
  border-color: var(--service-accent, rgba(107, 76, 154, 0.32));
  box-shadow: 0 24px 48px rgba(74, 68, 77, 0.12);
  outline: none;
  transform: translateY(-6px);
}

/*
 * 菫カード装飾セット
 * 淡い菫の花束と円のモチーフを添える、再利用用のカード装飾。
 * .pore2-pansy-card-decor__content で文字を前面に、
 * .pore2-pansy-card-decor__art で花束画像を指定する。
 */
.pore2-pansy-card-decor {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.pore2-pansy-card-decor::before {
  position: absolute;
  right: -36px;
  bottom: -62px;
  z-index: 0;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(107, 76, 154, 0.12);
  border-radius: 50%;
  content: "";
  transition: transform 0.45s ease;
}

.pore2-pansy-card-decor__content {
  position: relative;
  z-index: 1;
}

.pore2-pansy-card-decor__art {
  position: absolute;
  right: -34px;
  bottom: -42px;
  z-index: 0;
  width: clamp(182px, 18vw, 250px);
  max-width: 78%;
  height: auto;
  opacity: 0.14;
  pointer-events: none;
  mix-blend-mode: multiply;
  transform: rotate(-12deg);
  transform-origin: right bottom;
  transition: opacity 0.32s ease, transform 0.45s ease;
}

.pore2-pansy-card-decor--housekeeping .pore2-pansy-card-decor__art {
  right: -44px;
  bottom: -38px;
  opacity: 0.11;
  transform: rotate(4deg) scale(0.98);
}

.pore2-pansy-card-decor--childcare .pore2-pansy-card-decor__art {
  right: -24px;
  bottom: -50px;
  opacity: 0.12;
  transform: rotate(13deg) scale(1.05);
}

.pore2-pansy-card-decor:hover::before,
.pore2-pansy-card-decor:focus-visible::before {
  transform: scale(1.16);
}

.pore2-pansy-card-decor:hover .pore2-pansy-card-decor__art,
.pore2-pansy-card-decor:focus-visible .pore2-pansy-card-decor__art {
  opacity: 0.3;
  transform: rotate(-5deg) scale(1.2);
}

.pore2-pansy-card-decor--housekeeping:hover .pore2-pansy-card-decor__art,
.pore2-pansy-card-decor--housekeeping:focus-visible .pore2-pansy-card-decor__art {
  transform: rotate(10deg) scale(1.18);
}

.pore2-pansy-card-decor--childcare:hover .pore2-pansy-card-decor__art,
.pore2-pansy-card-decor--childcare:focus-visible .pore2-pansy-card-decor__art {
  transform: rotate(19deg) scale(1.24);
}

@media (max-width: 760px) {
  .service-guide-card {
    min-height: 230px;
    padding: 26px;
  }
}

@media (max-width: 680px) {
  .pore2-back-to-top {
    right: 12px;
    bottom: max(16px, env(safe-area-inset-bottom));
  }

  .top-home-button {
    right: 12px;
    bottom: calc(env(safe-area-inset-bottom) + 76px);
    min-height: 40px;
    padding: 0 13px;
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .is-frame-visible::after,
  .is-frame-visible {
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }

  .pore2-back-to-top {
    transition-duration: 1ms;
  }

  .pore2-back-to-top.is-visible:hover,
  .pore2-back-to-top.is-visible:focus-visible {
    transform: none;
  }

  .pore2-pansy-card-decor::before,
  .pore2-pansy-card-decor__art {
    transition-duration: 1ms !important;
  }
}

/*
 * 本サイト共通シェル
 * ヘッダー・フッター・グローバルメニューは common/include/ のPHPと
 * このブロックだけで管理する。
 */
.pore2-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid rgba(107, 76, 154, 0.1);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 3px 18px rgba(52, 45, 58, 0.04);
  backdrop-filter: blur(14px);
}

.content-layer {
  position: relative;
  z-index: 10;
}

.pore2-header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.pore2-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: #342d3a;
  text-decoration: none;
}

.pore2-header-logo {
  width: clamp(106px, 10vw, 142px);
  height: auto;
  display: block;
  flex: 0 0 auto;
}

.pore2-header-wordmark {
  display: grid;
  gap: 2px;
  color: #342d3a;
  line-height: 1;
}

.pore2-header-kicker {
  color: rgba(107, 76, 154, 0.78);
  font-size: 8px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.pore2-header-name {
  font-family: "Shippori Mincho", serif;
  font-size: 19px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.pore2-site-nav,
.pore2-header-actions {
  display: flex;
  align-items: center;
}

.pore2-site-nav {
  gap: clamp(18px, 2vw, 30px);
  margin-left: auto;
  color: #6e6771;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.pore2-site-nav a,
.pore2-site-footer-links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.22s ease;
}

.pore2-site-nav a:hover,
.pore2-site-nav a:focus-visible,
.pore2-site-nav a[aria-current="page"],
.pore2-site-footer-links a:hover,
.pore2-site-footer-links a:focus-visible {
  color: #6b4c9a;
  outline: none;
}

.pore2-header-actions {
  gap: 14px;
}

.pore2-header-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #6b4c9a;
  font-family: "Shippori Mincho", serif;
  font-size: 15px;
  text-decoration: none;
}

.pore2-contact-label {
  padding: 2px 5px;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.pore2-header .pore2-header-consult {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  background: #6b4c9a;
  color: #fff8e7;
  text-shadow: 0 1px 1px rgba(47, 29, 73, 0.24);
  box-shadow: 0 8px 18px rgba(107, 76, 154, 0.16);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.pore2-header .pore2-header-consult:hover,
.pore2-header .pore2-header-consult:focus-visible {
  transform: translateY(-2px);
  background: #5b3d87;
  box-shadow: 0 12px 26px rgba(107, 76, 154, 0.24);
  outline: none;
}

.pore2-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-content: center;
  gap: 5px;
  border: 1px solid rgba(107, 76, 154, 0.18);
  border-radius: 999px;
  background: #fff;
}

.pore2-menu-toggle span {
  width: 16px;
  height: 1px;
  display: block;
  background: #6b4c9a;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.pore2-menu-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.pore2-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.pore2-menu-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.pore2-mobile-menu { display: none; }

.pore2-site-footer {
  padding: 58px 0 26px;
  border-top: 1px solid rgba(107, 76, 154, 0.1);
  background: #fff;
}

.pore2-site-footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.pore2-site-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6b4c9a;
  font-family: "Shippori Mincho", serif;
  font-size: 19px;
}

.pore2-footer-company-logo {
  width: 48px;
  height: auto;
  display: block;
  flex: 0 0 auto;
}

.pore2-site-footer-address,
.pore2-site-footer-area {
  margin: 8px 0 0;
  color: #8c8490;
  font-size: 10px;
}

.pore2-site-footer-links {
  display: flex;
  gap: 20px;
  color: #77707b;
  font-size: 11px;
}

.pore2-site-footer-right {
  display: grid;
  justify-items: end;
  gap: 20px;
}

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

.pore2-site-network > p {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  color: #9d94a2;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.pore2-site-network a {
  min-height: 68px;
  padding: 13px 14px;
  display: grid;
  align-content: center;
  gap: 3px;
  border: 1px solid rgba(107, 76, 154, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
  color: #5e5761;
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.pore2-site-network a[aria-current="page"] {
  border-color: rgba(107, 76, 154, 0.42);
  background: rgba(238, 231, 247, 0.76);
}

.pore2-site-network a:hover,
.pore2-site-network a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(107, 76, 154, 0.52);
  box-shadow: 0 9px 19px rgba(75, 59, 98, 0.1);
  outline: none;
}

.pore2-site-network small {
  color: #9a919d;
  font-size: 9px;
  letter-spacing: 0.04em;
}

.pore2-site-network strong {
  color: #564b5d;
  font-size: 12px;
  font-weight: 500;
}

.pore2-site-tabs {
  position: fixed;
  top: 54%;
  right: 0;
  z-index: 40;
  display: grid;
  justify-items: end;
  gap: 2px;
  transform: translateY(-50%);
}

.pore2-site-tab {
  position: relative;
  width: 38px;
  min-height: 112px;
  padding: 12px 10px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(107, 76, 154, 0.2);
  border-right: 0;
  border-radius: 13px 0 0 13px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 7px 18px rgba(52, 45, 58, 0.1);
  color: #5e5761;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  writing-mode: vertical-rl;
  transition: width 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.22s ease, color 0.22s ease;
}

.pore2-site-tab-external-icon {
  position: absolute;
  bottom: 9px;
  left: 50%;
  width: 16px;
  height: 16px;
  display: block;
  writing-mode: horizontal-tb;
  transform: translateX(-50%);
  pointer-events: none;
  stroke-width: 2;
}

.pore2-site-tab:hover,
.pore2-site-tab:focus-visible {
  width: 46px;
  background: #6b4c9a;
  color: #fff;
  outline: none;
}

.pore2-site-tab[aria-current="page"] {
  width: 52px;
  background: #6b4c9a;
  color: #fff;
  outline: none;
}

.pore2-site-tab--kids {
  border-color: rgba(177, 118, 131, 0.26);
}

.pore2-site-tab--recruit {
  border-color: rgba(102, 129, 155, 0.25);
}

.pore2-site-footer-copy {
  width: min(1180px, calc(100% - 40px));
  margin: 42px auto 0;
  color: #b4afb7;
  font-family: "Shippori Mincho", serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-align: center;
}

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

@media (max-width: 760px) {
  .pore2-header-inner,
  .pore2-site-footer-inner,
  .pore2-site-footer-copy {
    width: min(100% - 28px, 560px);
  }

  .pore2-header-inner {
    min-height: 68px;
    gap: 10px;
  }

  .pore2-header-brand {
    flex: 1 1 auto;
    gap: 0;
  }

  .pore2-header-logo { width: 100px; }
  .pore2-header-wordmark { display: none; }
  .pore2-site-nav { display: none; }

  .pore2-header-actions {
    flex: 0 0 auto;
    gap: 8px;
  }

  .pore2-header .pore2-header-consult {
    min-height: 42px;
    padding: 10px 14px;
    flex: 0 0 auto;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .pore2-menu-toggle { display: grid; }

  .pore2-mobile-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    padding: 1px;
    border-top: 1px solid rgba(107, 76, 154, 0.09);
    background: rgba(107, 76, 154, 0.08);
  }

  .pore2-mobile-menu.is-open { display: grid; }

  .pore2-mobile-menu a {
    padding: 12px 10px;
    background: #fff;
    color: #5e5761;
    font-size: 12px;
    text-align: center;
    text-decoration: none;
  }

  .pore2-mobile-menu a:last-child { grid-column: 1 / -1; }

  .pore2-site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .pore2-site-footer-right {
    width: 100%;
    justify-items: start;
  }

  .pore2-site-network {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .pore2-site-tabs {
    display: none;
  }
}
