/* footer.css — コンタクト帯＋サイトフッター
   Figma: GENKIport_footer (node 990:29784) の実値に対応 */

/* ==========================================================================
   l-contact — 白カードが暗い帯にまたがるコンタクトブロック
   ========================================================================== */
.l-contact {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: var(--space-80);
}

/* Figma: 下端に揃えた高さ280pxの暗い背景。白カードが上下にまたがる見せ方を作る */
.l-contact__bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 17.5rem; /* Figma: 280px */
  background: var(--color-bg-dark);
}

.l-contact__inner {
  position: relative; /* __bg より前面に置く */
  display: flex;
  gap: var(--space-40);
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-40);
  border-radius: var(--radius-xl);
  background: var(--color-white);
}

/* --- 左：リード --------------------------------------------------------- */
.l-contact__lead {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  gap: var(--space-16);
  align-items: center;
  min-width: 0;
  color: var(--color-text);
}

.l-contact__header {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: var(--space-4);
  align-items: center;
  white-space: nowrap;
}

.l-contact__header-en {
  font-size: var(--font-size-h2-lead);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wide);
}

.l-contact__header-jp {
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-black);
  letter-spacing: var(--letter-spacing-wider);
}

.l-contact__text {
  width: 100%;
  font-size: var(--font-size-h3); /* Figma: 18.29px（トップページ）*/
  text-align: center;
}

/* --- 下層ページバリアント（Figma: 下層フッター 1212:33307 系）------------
   トップと色が反転する：外側カード＝モーヴ50%、フォームカード＝白。
   リード文は2行・16px。ラベルは「見学・体験に申し込む」（PHP側で切替）。 */
.l-contact--sub .l-contact__inner { background: var(--color-mauve-50); }
.l-contact--sub .l-contact__card { background: var(--color-white); }
.l-contact--sub .l-contact__card:hover { background: var(--color-gray-light); }
.l-contact--sub .l-contact__text { font-size: var(--font-size-body); } /* Figma: 16px */

/* --- 右：フォームカード ------------------------------------------------- */
.l-contact__content {
  display: flex;
  flex: 1 0 0;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  align-self: stretch;
}

.l-contact__card {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  gap: var(--space-8);
  align-items: flex-start;
  align-self: stretch;
  min-width: 0;
  padding: var(--space-32);
  border-radius: var(--radius-lg);
  background: var(--color-mauve-50);
  color: var(--color-text);
  transition:
    translate var(--transition-fast) ease,
    box-shadow var(--transition-fast) ease,
    background-color var(--transition-fast) ease;
}

/* 統一hover演出（tokens.css 参照）：浮き上がり＋浮き影、矢印アイコンが右へ */
.l-contact__card:hover {
  text-decoration: none;
  translate: 0 var(--hover-lift);
  box-shadow: var(--shadow-hover);
}

.l-contact__card-heading {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: var(--space-8);
  width: 100%;
}

.l-contact__card-en {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-black);
  letter-spacing: var(--letter-spacing-wide);
}

.l-contact__card-jp {
  font-size: var(--font-size-h2-lead);
  font-weight: var(--font-weight-black);
  letter-spacing: var(--letter-spacing-wide);
}

.l-contact__card-action {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
}

.l-contact__card-icon {
  width: 2.5rem;  /* Figma: 40px */
  height: 2.5rem;
  transition: translate var(--transition-fast) ease;
}

.l-contact__card:hover .l-contact__card-icon {
  translate: var(--space-4) 0;
}

/* ==========================================================================
   l-footer
   ========================================================================== */
.l-footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  align-items: center;
  overflow: clip;
  padding-bottom: var(--space-16);
  background: var(--color-bg-dark);
  color: var(--color-text-invert);
}

/* CTA帯なしのページ（お問い合わせ）はフッター自身に上余白を持つ（Figma: 3158:19446 pt=80px） */
.l-footer--solo { padding-top: var(--space-80); }

.l-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  white-space: nowrap;
}

.l-footer__company {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  gap: var(--space-16);
  align-items: flex-start;
  min-width: 0;
}

.l-footer__company-name {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
}

.l-footer__nav {
  flex: 1 0 0;
  min-width: 0;
  align-self: stretch;
}

.l-footer__nav-list {
  display: flex;
  gap: var(--space-24);
  align-items: flex-start;
}

.l-footer__meta {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-block: var(--space-16);
}

.l-footer__meta-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  font-size: var(--font-size-h6);
  line-height: var(--line-height-heading); /* Figma: 19.2px / 12.8px = 1.5 */
  white-space: nowrap;
}

/* ==========================================================================
   SP（767px以下）— コンタクトカード・フッターをシングルカラムに
   ========================================================================== */
@media (max-width: 767px) {
  .l-contact { padding-inline: var(--space-24); }

  /* c-section-header__heading のSPと同じバランス（EN=h3・JP=h2・行間tight） */
  .l-contact__header {
    gap: 0;
    line-height: var(--line-height-tight);
  }

  .l-contact__header-en { font-size: var(--font-size-h3); }
  .l-contact__header-jp { font-size: var(--font-size-h2); }

  .l-contact__text { text-align: left; }

  /* カードはテキスト（左）と矢印（右）の横並び */
  .l-contact__card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  /* 見出しは l-contact__header に準じたバランス（行間tight）。左寄せのまま */
  .l-contact__card-heading {
    gap: var(--space-8);
    width: auto;
    line-height: var(--line-height-tight);
  }

  .l-contact__card-en { font-size: var(--font-size-h5); }
  .l-contact__card-jp { font-size: var(--font-size-h2-lead); }
  .l-contact__card-action { width: auto; }

  .l-contact__inner {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-24);
    width: 100%;
    padding: var(--space-24);
  }

  .l-footer__inner {
    flex-direction: column;
    gap: var(--space-24);
    white-space: normal;
  }

  .l-footer__nav-list {
    flex-wrap: wrap;
    gap: var(--space-12) var(--space-24);
  }

  /* 左にプライバシーポリシー・右にコピーライト（PCと同じ横並びを維持） */
  .l-footer__meta-inner {
    gap: var(--space-8);
    align-items: center;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .l-contact__card,
  .l-contact__card-icon { transition: none; }
}
