/* ==========================================================================
   Components：LINEエントリーボタン・見出しパーツ・CTA帯
   ========================================================================== */

/* --- LINE エントリーボタン（350×70） ----------------------------------- */

.lx-btn {
  position: relative;
  display: block;
  width: 350px;
  height: 72px;
  color: var(--lx-black);
  text-decoration: none;
  transition: transform 0.15s ease;
  animation: lx-btn-pulse 1.8s ease-in-out infinite;
}

.lx-btn::before,
.lx-btn::after {
  content: "";
  position: absolute;
  left: 0;
  width: 350px;
  height: 70px;
  border: 2px solid var(--lx-black);
  border-radius: 100px;
}

/* 下にずらした影 */
.lx-btn::before {
  top: 2px;
  background: var(--lx-black);
}

.lx-btn::after {
  top: 0;
  background: var(--lx-line-green) url("../images/btn-line-mask.svg") left top / 350px 70px no-repeat;
}

.lx-btn:hover,
.lx-btn:focus-visible {
  transform: translateY(2px);
  animation-play-state: paused;
}

/* 押したくなる動き：ふわっと拡大縮小（scale）＋ボタン面を光が横切る */
.lx-btn__shine {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 350px;
  height: 70px;
  overflow: hidden;
  border-radius: 100px;
  pointer-events: none;
}

.lx-btn__shine::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -80px;
  width: 50px;
  height: 90px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.75) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-20deg);
  animation: lx-btn-shine 3.6s ease-in-out infinite;
}

@keyframes lx-btn-pulse {
  0%,
  100% {
    scale: 1;
  }

  50% {
    scale: 1.04;
  }
}

@keyframes lx-btn-shine {
  0% {
    left: -80px;
  }

  35%,
  100% {
    left: 400px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lx-btn,
  .lx-btn__shine::before {
    animation: none;
  }
}

.lx-btn__badge,
.lx-btn__label,
.lx-btn__arrow {
  position: absolute;
  z-index: 1;
}

.lx-btn__badge {
  top: 12px;
  left: 39px;
  transform: translateX(-50%);
  color: var(--lx-white);
  font-size: 19px;
  font-weight: 700;
  line-height: 23px;
  text-align: center;
  white-space: nowrap;
}

.lx-btn__badge b {
  display: block;
  color: #b6ff07;
  font-weight: 700;
}

.lx-btn__badge b span {
  font-size: 24px;
  letter-spacing: -0.08em;
}

.lx-btn__label {
  top: 18px;
  left: 198px;
  transform: translateX(-50%);
  font-size: 24px;
  font-weight: 700;
  line-height: 33px;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.lx-btn__arrow {
  top: 28.5px;
  left: 311px;
  width: 19.05px;
  height: 12.75px;
  transform: rotate(90deg);
}

/* --- 見出しパーツ ------------------------------------------------------ */

/* 白・赤・黒の帯の上に文字を重ねる見出し。帯と文字は各セクションで絶対配置 */
.lx-band {
  position: absolute;
  height: 33px;
}

.lx-band--white {
  background: var(--lx-white);
}

.lx-band--red {
  background: var(--lx-red);
}

.lx-band--black {
  background: var(--lx-black);
}

.lx-heading {
  position: absolute;
  font-size: 24px;
  font-weight: 700;
  line-height: 33px;
  white-space: nowrap;
}

.lx-heading--mincho {
  color: var(--lx-white);
  font-family: var(--lx-font-mincho);
  font-weight: 800;
}

/* 黒帯＋斜体の白文字（業界比較グラフ・ワークスタイル・先輩ドライバーの声） */
.lx-slant-title {
  position: absolute;
  height: 43px;
  background: var(--lx-black);
}

.lx-slant-title__text {
  position: absolute;
  top: 5px;
  color: var(--lx-white);
  font-size: 30px;
  font-weight: 700;
  line-height: 33px;
  white-space: nowrap;
  transform: skewX(-5deg);
}

/* --- CTA 帯 ------------------------------------------------------------ */

.lx-cta {
  position: relative;
  padding: 25px 20px 28px;
  background: var(--lx-red);
  color: var(--lx-white);
  text-align: center;
}

/* 前のセクションに 138px 重ね、グレーと赤の斜めの面で切り替える */
.lx-cta--chevron {
  margin-top: -138px;
  padding: 171px 20px 41px;
  background:
    url("../images/cta-chevron-bg.svg") center top / 390px 138px no-repeat,
    linear-gradient(transparent 138px, var(--lx-red) 138px);
}

.lx-cta__lead {
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}
