.page-route-grid {
  position: relative;
  z-index: 1;
}

/* ------------------------------------------------------------------
   トップページ H1 テキスト強化（SEO対策）
   ロゴ画像のみだったH1に、可視のキーワードテキストを追加。
   word-break: keep-all で、単語やLP等の英字混じり箇所の途中で
   改行されないように制御し、<br> で改行位置を明示している。
   ------------------------------------------------------------------ */
.hero-title-text {
  display: block;
  margin-top: 30px;
  color: #fff;
  font-size: clamp(1.5rem, 3.2vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.28;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero-title-text em {
  color: var(--cyan);
  font-style: normal;
}

.service-heading-break {
  display: none;
}

.page-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(62px, 8vw, 100px);
}

.page-route {
  isolation: isolate;
  border: 1px solid rgba(8, 105, 237, 0.16);
  border-radius: var(--radius);
  min-height: 400px;
  padding: clamp(28px, 4vw, 46px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(20, 73, 140, 0.12);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s,
    border-color 0.28s;
}

.page-route::after {
  z-index: -1;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  width: min(44vw, 470px);
  opacity: 0.1;
  content: "";
  position: absolute;
  right: -24%;
  bottom: -58%;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-route:hover {
  border-color: rgba(8, 105, 237, 0.4);
  transform: translateY(-7px);
  box-shadow: 0 34px 90px rgba(20, 73, 140, 0.2);
}

.page-route:hover::after {
  transform: scale(1.1);
}

.page-route--website {
  background:
    radial-gradient(circle at 88% 12%, rgba(25, 216, 255, 0.22), transparent 26%),
    #fff;
}

.page-route--lp {
  color: var(--white);
  background:
    radial-gradient(circle at 88% 14%, rgba(25, 216, 255, 0.22), transparent 28%),
    linear-gradient(145deg, #07142d, #0b326c);
  border-color: rgba(255, 255, 255, 0.16);
}

.page-route--faq {
  min-height: 330px;
  background: linear-gradient(145deg, #fff, #eaf4ff);
}

.page-route--contact {
  min-height: 330px;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(25, 216, 255, 0.14), transparent 48%),
    var(--blue);
  border-color: rgba(255, 255, 255, 0.24);
}

.page-route--samples {
  grid-column: 1 / -1;
  min-height: 350px;
  color: var(--white);
  background:
    linear-gradient(100deg, rgba(7, 20, 45, .96) 0%, rgba(7, 20, 45, .82) 48%, rgba(7, 20, 45, .28) 100%),
    url("samples/images/09-housing/01-wooden-house-hero.jpg") center 54% / cover no-repeat;
  border-color: rgba(255, 255, 255, .2);
}

.page-route--samples .page-route__type { color: var(--cyan); }
.page-route--samples p { color: rgba(255, 255, 255, .76); }
.page-route--samples .page-route__action { border-top-color: rgba(255, 255, 255, .24); }
.page-route--samples .page-route__action--button { color: var(--ink); background: var(--cyan); }

.page-route__number {
  position: absolute;
  top: 22px;
  right: clamp(24px, 3vw, 40px);
  color: currentColor;
  opacity: 0.16;
  letter-spacing: -0.08em;
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 900;
  line-height: 1;
}

.page-route__type {
  color: var(--blue);
  letter-spacing: 0.15em;
  font-size: 0.58rem;
  font-weight: 900;
}

.page-route--lp .page-route__type,
.page-route--contact .page-route__type {
  color: var(--cyan);
}

.page-route > div {
  max-width: 82%;
  margin-top: auto;
}

.page-route h3 {
  margin: 0 0 15px;
  letter-spacing: -0.055em;
  font-size: clamp(2rem, 4.2vw, 4rem);
  font-weight: 850;
  line-height: 1.05;
}

.page-route--faq h3,
.page-route--contact h3 {
  font-size: clamp(1.75rem, 3.3vw, 3rem);
}

.page-route p {
  color: var(--muted);
  margin: 0;
  font-size: 0.8rem;
}

.page-route--lp p,
.page-route--contact p {
  color: rgba(255, 255, 255, 0.72);
}

.page-route__action {
  width: 100%;
  border-top: 1px solid rgba(8, 105, 237, 0.18);
  margin-top: 34px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-size: 0.74rem;
  font-weight: 900;
}

.page-route--lp .page-route__action,
.page-route--contact .page-route__action {
  border-top-color: rgba(255, 255, 255, 0.24);
}

.page-route__action--button {
  width: fit-content;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  justify-content: center;
  padding: 0 22px;
}

.page-route--website .page-route__action--button {
  background: var(--ink);
  color: var(--white);
}

.page-route--lp .page-route__action--button {
  background: var(--cyan);
  color: var(--ink);
}

.page-route--faq .page-route__action--button {
  background: var(--ink);
  color: var(--white);
}

.page-route--contact .page-route__action--button {
  background: var(--white);
  color: var(--blue);
}

.page-route__action i {
  display: inline-grid;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  place-items: center;
  background: var(--blue);
  color: var(--white);
  font-size: 1rem;
  font-style: normal;
  transition: transform 0.25s;
}

.page-route--lp .page-route__action i {
  background: var(--cyan);
  color: var(--ink);
}

.page-route--contact .page-route__action i {
  background: var(--white);
  color: var(--blue);
}

.page-route:hover .page-route__action i {
  transform: translate(3px, -3px);
}

@media (max-width: 820px) {
  .page-route-grid {
    grid-template-columns: 1fr;
  }

  .page-route,
  .page-route--faq,
  .page-route--contact {
    min-height: 330px;
  }

  .page-route--samples { grid-column: auto; }
}

@media (max-width: 560px) {
  .section--service .section-heading h2 {
    font-size: clamp(1.75rem, 8.2vw, 2.3rem);
  }

  .service-heading-break {
    display: block;
  }

  .page-route {
    min-height: 310px;
    padding: 26px 22px;
    border-radius: 22px;
  }

  .page-route > div {
    max-width: 94%;
  }

  .page-route__number {
    top: 20px;
    right: 22px;
  }

  .page-route h3,
  .page-route--faq h3,
  .page-route--contact h3 {
    font-size: clamp(1.85rem, 10vw, 2.7rem);
  }

  .page-route__action--button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-route,
  .page-route::after,
  .page-route__action i {
    transition: none;
  }
}
