/* フッター上のお問い合わせ・カタログ案内カード（footer/footer-cta.php） */
.kec-fcta {
  --kec-fcta-blue: #174f9e;
  --kec-fcta-red: #e50012; /* ロゴ img/klogo0707.svg の赤 */
  --kec-fcta-gray: #f5f6f8;
  position: relative;
  margin-bottom: 5rem;
  padding: 183px 16px 10px;
}

.kec-fcta__bg {
  position: absolute;
  top: 13px;
  right: 0;
  bottom: 59px; /* カードが写真の下へ49pxはみ出す */
  left: calc(50% - 345px);
  opacity: 0.7;
}

.kec-fcta__bg img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}

/* 写真を薄くして見出しを読みやすくする */
.kec-fcta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.645);
}

.kec-fcta__inner {
  position: relative;
  max-width: 1024px;
  margin: 0 auto;
}

.kec-fcta .kec-fcta__title {
  margin: 0 0 32px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--kec-fcta-blue);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 72px;
  font-weight: 700 !important; /* font.css の見出し指定より優先 */
  line-height: 1;
  letter-spacing: 0.01em;
}

.kec-fcta__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.kec-fcta .kec-fcta__card {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 147px;
  padding: 24px 22px 24px 27px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 16px rgba(21, 32, 51, 0.1);
  color: #152033;
  text-decoration: none;
}

/* マウスを乗せたときに左から入る灰色 */
.kec-fcta__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--kec-fcta-gray);
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.kec-fcta__body {
  display: block;
  min-width: 0;
}

/* font.css の自動ハイフンで sup-plies と切れるのを防ぐ */
.kec-fcta__name,
.kec-fcta__desc {
  -webkit-hyphens: none !important;
  hyphens: none !important;
}

.kec-fcta__name {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.kec-fcta__desc {
  display: block;
  color: #152033;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.75;
}

.kec-fcta__btn {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--kec-fcta-blue);
  box-shadow: 0 4px 10px rgba(21, 32, 51, 0.18);
  color: #fff;
  transition: background-color 0.3s ease;
}

.kec-fcta__btn svg {
  display: block;
  transition: transform 0.3s ease;
}

@media (hover: hover) {
  .kec-fcta__card:hover::before {
    transform: translateX(0);
  }
  .kec-fcta__card:hover .kec-fcta__btn {
    background: var(--kec-fcta-red);
  }
  .kec-fcta__card:hover .kec-fcta__btn svg {
    transform: translateX(1px) scale(1.25);
  }
}

.kec-fcta__card:focus-visible {
  outline: 2px solid var(--kec-fcta-blue);
  outline-offset: 3px;
}

.kec-fcta__card:focus-visible::before {
  transform: translateX(0);
}

.kec-fcta__card:focus-visible .kec-fcta__btn {
  background: var(--kec-fcta-red);
}

.kec-fcta__card:focus-visible .kec-fcta__btn svg {
  transform: translateX(1px) scale(1.25);
}

@media (max-width: 767px) {
  .kec-fcta {
    padding-top: 96px;
  }
  .kec-fcta__bg {
    top: 0;
    left: 0;
  }
  .kec-fcta .kec-fcta__title {
    margin-bottom: 24px;
    font-size: 48px;
  }
  .kec-fcta__cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .kec-fcta .kec-fcta__card {
    min-height: 0;
    padding: 20px 16px 20px 20px;
  }
  .kec-fcta__name {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kec-fcta__card::before,
  .kec-fcta__btn,
  .kec-fcta__btn svg {
    transition: none;
  }
}
