/* Homepage-only footer. Other pages keep the shared site footer unchanged. */
.home-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid rgba(117, 145, 128, 0.16);
  background: linear-gradient(105deg, #f5faf7 0%, #f7fbf8 48%, #f1f8f3 100%);
  padding: 0;
  color: #18372a;
}

.home-footer::after {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -1;
  width: min(34vw, 500px);
  content: "";
  background-image: linear-gradient(90deg, rgba(245, 250, 247, 0), rgba(245, 250, 247, 0.3)), url("generated/home-authority-sources-bg-v1.png");
  background-position: left top, 100% 0;
  background-repeat: no-repeat;
  background-size: 100% 100%, auto 205%;
  opacity: 0.18;
  pointer-events: none;
}

.home-footer .home-footer-inner {
  display: block;
  width: min(1320px, calc(100% - 64px));
  max-width: none;
  margin-inline: auto;
  padding: 42px 0 26px;
}

.home-footer-main {
  display: grid;
  grid-template-columns: minmax(250px, 1.45fr) minmax(128px, 0.72fr) minmax(128px, 0.72fr) minmax(118px, 0.64fr) minmax(350px, 2.15fr);
  align-items: start;
}

.home-footer-column {
  min-width: 0;
  min-height: 176px;
}

.home-footer-column + .home-footer-column {
  border-left: 1px solid rgba(95, 128, 109, 0.18);
  padding-left: clamp(24px, 2.5vw, 38px);
}

.home-footer-brand {
  padding-right: clamp(26px, 3vw, 48px);
}

.home-footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.home-footer-brand-mark {
  display: inline-flex;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  color: #16804b;
}

.home-footer-brand-mark svg {
  width: 38px;
  height: 38px;
  stroke-width: 2.1;
}

.home-footer-brand h2,
.home-footer-guide h2 {
  margin: 0;
  color: #103f2a;
  font-family: inherit;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.home-footer-brand h2 {
  font-size: clamp(1.35rem, 1.8vw, 1.72rem);
  font-weight: 850;
}

.home-footer-brand p {
  max-width: 280px;
  margin: 0;
  color: #53665c;
  font-size: 0.95rem;
  line-height: 1.65;
}

.home-footer-brand-line {
  display: block;
  width: 34px;
  height: 1px;
  margin: 18px 0 14px;
  background: #2d8a59;
}

.home-footer-motto {
  color: #197149;
  font-family: "Kaiti SC", STKaiti, KaiTi, serif;
  font-size: 1.08rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.home-footer-nav h2 {
  margin: 0 0 11px;
  color: #173d2d;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 850;
  line-height: 1.4;
}

.home-footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-footer-nav li + li {
  margin-top: 6px;
}

.home-footer-nav a,
.home-footer-guide-links a,
.home-footer-backtotop {
  color: #50645a;
  text-decoration: none;
  transition: color 0.16s ease;
}

.home-footer-nav a {
  font-size: 0.94rem;
  line-height: 1.5;
}

.home-footer-nav a:hover,
.home-footer-nav a:focus-visible,
.home-footer-guide-links a:hover,
.home-footer-guide-links a:focus-visible,
.home-footer-backtotop:hover,
.home-footer-backtotop:focus-visible {
  color: #147344;
}

.home-footer a:focus-visible {
  border-radius: 3px;
  outline: 3px solid rgba(31, 122, 77, 0.22);
  outline-offset: 4px;
}

.home-footer-guide {
  padding-left: clamp(42px, 4vw, 62px) !important;
}

.home-footer-guide h2 {
  margin-bottom: 9px;
  font-size: clamp(1.3rem, 1.7vw, 1.62rem);
  font-weight: 850;
}

.home-footer-guide > p {
  margin: 0;
  color: #5a6b62;
  font-size: 0.95rem;
}

.home-footer-guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px clamp(24px, 3.4vw, 52px);
  margin-top: 26px;
}

.home-footer-guide-links a {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid rgba(26, 118, 72, 0.58);
  padding-bottom: 5px;
  color: #315a46;
  font-size: 0.96rem;
  font-weight: 650;
}

.home-footer-guide-links svg {
  width: 20px;
  height: 20px;
  color: #16804b;
  stroke-width: 2;
}

.home-footer-legal {
  margin-top: 24px;
  border-top: 1px solid rgba(95, 128, 109, 0.18);
  padding-top: 18px;
}

.home-footer-health-note {
  margin: 0;
  color: #62736a;
  font-size: 0.82rem;
  line-height: 1.65;
}

.home-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 13px;
}

.home-footer-copyright {
  margin: 0;
  color: #5a6d63;
  font-size: 0.8rem;
}

.home-footer-backtotop {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  color: #4d6358;
  font-size: 0.82rem;
  font-weight: 650;
}

.home-footer-backtotop svg {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

@media (max-width: 1120px) {
  .home-footer-main {
    grid-template-columns: minmax(235px, 1.25fr) repeat(3, minmax(112px, 0.66fr)) minmax(300px, 1.65fr);
  }

  .home-footer-guide {
    padding-left: 28px !important;
  }

  .home-footer-guide-links {
    gap: 16px 26px;
  }
}

@media (max-width: 900px) {
  .home-footer::after {
    opacity: 0.09;
  }

  .home-footer .home-footer-inner {
    width: min(100% - 40px, 720px);
    padding-block: 38px 24px;
  }

  .home-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }

  .home-footer-column,
  .home-footer-column + .home-footer-column {
    min-height: 0;
    border-left: 0;
    padding-left: 0;
  }

  .home-footer-brand,
  .home-footer-guide {
    grid-column: 1 / -1;
    padding: 0 !important;
  }

  .home-footer-brand {
    padding-bottom: 26px !important;
    border-bottom: 1px solid rgba(95, 128, 109, 0.16);
  }

  .home-footer-brand p {
    max-width: 410px;
  }

  .home-footer-guide {
    margin-top: 2px;
    border-top: 1px solid rgba(95, 128, 109, 0.16);
    padding-top: 26px !important;
  }

  .home-footer-legal {
    margin-top: 28px;
  }
}

@media (max-width: 560px) {
  .home-footer::after {
    display: none;
  }

  .home-footer .home-footer-inner {
    width: calc(100% - 28px);
    padding-block: 32px 22px;
  }

  .home-footer-main {
    gap: 26px 20px;
  }

  .home-footer-brand-lockup {
    gap: 9px;
  }

  .home-footer-brand-mark,
  .home-footer-brand-mark svg {
    width: 32px;
    height: 32px;
  }

  .home-footer-brand h2 {
    font-size: 1.36rem;
  }

  .home-footer-motto {
    font-size: 1rem;
    white-space: normal;
  }

  .home-footer-guide h2 {
    font-size: 1.3rem;
  }

  .home-footer-guide-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    gap: 15px 26px;
    margin-top: 20px;
  }

  .home-footer-guide-links a {
    gap: 8px;
  }

  .home-footer-health-note {
    font-size: 0.78rem;
  }

  .home-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .home-footer-copyright {
    font-size: 0.76rem;
    line-height: 1.65;
  }
}
