/* =============================================================================
   contact.css — 末尾の Contact / Recruit パネル
   ============================================================================= */

.closing-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  isolation: isolate;
  background: linear-gradient(115deg,#1b4db4,#2374b2);
  color: #fff;
  overflow: hidden;
}

.closing-actions:before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 80%;
  height: 270%;
  left: 8%;
  top: -70%;
  border: 55px solid #f59b7166;
  border-radius: 50%;
  filter: blur(32px);
  transform: rotate(45deg);
}

/* パネル全体が 1 つのリンク。padding をリンク側に持たせることでパネルのどこを押しても
   反応し、狙って押す別のボタンを置かずに済む。 */
.closing-link {
  display: block;
  position: relative;
  isolation: isolate;
  padding: 70px 0 64px;
  color: inherit;
}

/* ホバー時: パネル自身のグラデーションの上に、左上から柔らかな光が広がる。 */
.closing-link::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgb(255 255 255 / .24), rgb(255 255 255 / .05) 48%, rgb(255 255 255 / 0) 78%);
  opacity: 0;
  transition: opacity .45s var(--motion-ease);
}

@media (hover: hover) {
  .closing-link:hover::before {
    opacity: 1;
  }
}

.closing-link:focus-visible::before {
  opacity: 1;
}

/* 大きな矢印がボタンと同じ動きで外側へ傾く。 */
.contact-title > span {
  transition: translate .3s var(--motion-ease);
}

@media (hover: hover) {
  .closing-link:hover .contact-title > span {
    translate: 7px -7px;
  }
}

.closing-actions section + section {
  border-left: 1px solid #ffffff33;
}

.contact-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-title h2 {
  line-height: 1;
  letter-spacing: -.055em;
}

/* 英語タイトルの下の日本語の 1 行：他のセクションタイトル（.section-title p）と同じく明朝体。
   その下の小見出しはゴシックのまま（2026-10-28 レビュー）。 */
.closing-actions .contact-label {
  font-family: var(--f-serif);
  letter-spacing: .08em;
  line-height: 1.7;
  margin-top: 17px;
}

.contact-bottom h3 {
  margin: 30px 0 10px;
}

.contact-bottom > p:first-child {
  margin-top: 30px;
}

.contact-bottom p {
  color: #e7f3ff;
}

@media (max-width:760px) {
  .closing-actions {
    grid-template-columns: 1fr;
  }

  .closing-link {
    padding: 48px 0;
  }

  .closing-actions section + section {
    border-left: 0;
    border-top: 1px solid #ffffff50;
  }

  .contact-bottom h3 {
    margin: 24px 0 10px;
  }

  .closing-actions .contact-label {
    margin-top: 13px;
  }

  .contact-bottom > p:first-child {
    margin-top: 24px;
  }
}

.contact-bottom p {
  color: #f4faff;
}

.scroll-choreography .closing-actions .contact-title h2[data-motion] {
  transform: translateY(calc((1 - var(--enter)) * 52px));
}

.scroll-choreography .closing-actions:before {
  translate: calc(var(--section-progress, 0) * -80px) 0;
}

.closing-actions #contact {
  background: linear-gradient(to top right, #219acb 0%, var(--c-cyan) 55%, #86d5f3 100%);
}

.closing-actions #recruit-cta {
  background: radial-gradient(ellipse at 95% 5%,#40b7e999,transparent 45%),linear-gradient(120deg,var(--c-orange),#ee7926 65%,#f29546);
}

.contact-bottom h3 {
  line-height: 1.6;
}

.contact-bottom p {
  margin-top: 18px;
}

.closing-actions #recruit-cta {
  background-size: 180% 180%,160% 160%;
  animation: closing-gradient-drift 12s ease-in-out infinite alternate;
}

.closing-actions #recruit-cta {
  animation-delay: -6s;
}

.closing-actions #contact {
  background-size: 100% 100%;
}

@keyframes closing-gradient-drift {
  from { background-position: 0% 15%,0% 50%; }
  to { background-position: 100% 90%,100% 50%; }
}
