.kikaku-page {
  background: #fbfcfa;
}

.kikaku-hero {
  position: relative;
  min-height: 650px;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: calc(var(--header-height) + 78px) 0 94px;
  color: #fff;
}

.kikaku-hero-media,
.kikaku-hero-shade {
  position: absolute;
  inset: 0;
}

.kikaku-hero-media {
  z-index: -3;
  background: var(--green-900);
}

.kikaku-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.kikaku-hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 30, 22, 0.78) 0%, rgba(11, 45, 31, 0.54) 54%, rgba(11, 45, 31, 0.18) 100%),
    linear-gradient(180deg, rgba(5, 19, 14, 0.16) 0%, rgba(5, 19, 14, 0.66) 100%);
}

.kikaku-hero-inner {
  position: relative;
}

.kikaku-hero-inner::before {
  position: absolute;
  top: 8px;
  left: -28px;
  width: 3px;
  height: 210px;
  content: "";
  background: linear-gradient(180deg, var(--gold), rgba(217, 179, 90, 0));
}

.kikaku-hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 6.6rem);
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.kikaku-hero-message {
  max-width: 780px;
  margin: 28px 0 0;
  font-size: clamp(1.42rem, 2.7vw, 2.32rem);
  font-weight: 800;
  line-height: 1.5;
}

.kikaku-hero-lead {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.04rem;
  line-height: 2;
}

.kikaku-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.kikaku-anchor-nav {
  position: sticky;
  top: var(--header-height);
  z-index: 24;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(21, 47, 34, 0.08);
  backdrop-filter: blur(12px);
}

.kikaku-anchor-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}

.kikaku-anchor-inner::-webkit-scrollbar {
  display: none;
}

.kikaku-anchor-inner a {
  flex: 1 0 auto;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: var(--green-900);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.kikaku-anchor-inner a:hover,
.kikaku-anchor-inner a:focus-visible {
  color: #fff;
  background: var(--green-800);
  border-color: var(--green-800);
}

.kikaku-frame-section {
  padding: 104px 0;
}

#kikaku-frame {
  scroll-margin-top: calc(var(--header-height) + 82px);
}

.kikaku-frame-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.kikaku-frame-heading h2,
.kikaku-related h2 {
  margin: 0;
  color: var(--green-900);
  font-size: clamp(2rem, 3.55vw, 3.2rem);
  line-height: 1.34;
  letter-spacing: 0;
}

.kikaku-frame-shell {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.kikaku-detail-frame {
  display: block;
  width: 100%;
  min-height: 1180px;
  border: 0;
  background: #fff;
}

.kikaku-related {
  padding: 96px 0;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(12, 49, 35, 0.94), rgba(31, 86, 63, 0.82)),
    url("../img/services-one-stop-forest-generated.png") center / cover no-repeat;
}

.kikaku-related h2 {
  color: #fff;
}

.kikaku-related-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(320px, 0.42fr);
  gap: 54px;
  align-items: center;
}

.kikaku-related p:not(.eyebrow) {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
  line-height: 2;
}

.kikaku-related-links {
  display: grid;
  gap: 10px;
}

.kikaku-related-links a {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.kikaku-related-links a::after {
  content: "→";
  font-size: 1.2rem;
}

.kikaku-related-links a:hover,
.kikaku-related-links a:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.38);
}

@media (max-width: 920px) {
  .kikaku-frame-heading,
  .kikaku-related-inner {
    grid-template-columns: 1fr;
  }

  .kikaku-frame-heading {
    display: grid;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .kikaku-hero {
    min-height: 590px;
    padding: calc(var(--header-height) + 54px) 0 74px;
  }

  .kikaku-hero-inner::before {
    left: 0;
    height: 150px;
  }

  .kikaku-hero h1 {
    font-size: clamp(2.7rem, 15vw, 4.2rem);
  }

  .kikaku-hero-message {
    font-size: 1.35rem;
  }

  .kikaku-frame-section,
  .kikaku-related {
    padding: 72px 0;
  }

  .kikaku-detail-frame {
    min-height: 1050px;
  }

  .kikaku-related-inner {
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .kikaku-hero-actions .button,
  .kikaku-frame-heading .button {
    width: 100%;
  }
}
