/* ==========================================================================
   Footer直前 CTAセクション
   ========================================================================== */

.amc-footer-cta {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* グラデーションオーバーレイ（左濃→右薄） */
.amc-footer-cta__overlay {
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.72) 50%,
    rgba(0, 0, 0, 0.50) 100%
  );
  padding: 72px 60px 72px 80px;
  display: flex;
  align-items: center;
  gap: 48px;
  position: relative;
}

/* 縦書きテキスト（左端） */
.amc-footer-cta__vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.12em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* メインコンテンツ */
.amc-footer-cta__body {
  flex: 1;
  max-width: 700px;
}

/* 見出し */
.amc-footer-cta__heading {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 16px;
  line-height: 1.3;
}

/* オレンジのアクセントライン */
.amc-footer-cta__accent {
  display: block;
  width: 48px;
  height: 3px;
  background-color: #EC4800;
  border-radius: 2px;
  margin-bottom: 20px;
}

/* サブテキスト */
.amc-footer-cta__sub {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.9;
  margin: 0 0 36px;
}

/* ボタン並び */
.amc-footer-cta__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

/* ボタン共通 */
.amc-footer-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 60px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.35s ease;
}

/* 背景スライド用の疑似要素 */
.amc-footer-cta__btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  transform: translateX(-101%);
  transition: transform 0.35s ease;
  z-index: -1;
  border-radius: inherit;
}

.amc-footer-cta__btn:hover::before {
  transform: translateX(0);
}

/* primary: オレンジ背景 */
.amc-footer-cta__btn--primary {
  background-color: #EC4800;
  color: #ffffff;
}

.amc-footer-cta__btn--primary:hover {
  color: #EC4800;
}

/* secondary: 白枠線 */
.amc-footer-cta__btn--secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.amc-footer-cta__btn--secondary:hover {
  color: #EC4800;
  border-color: #ffffff;
}

.amc-footer-cta__btn-icon {
  flex-shrink: 0;
  opacity: 0.9;
}

.amc-footer-cta__btn-arrow {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.amc-footer-cta__btn:hover .amc-footer-cta__btn-arrow {
  transform: translateX(4px);
}

/* 電話番号エリア */
.amc-footer-cta__phone {
  flex-shrink: 0;
}

.amc-footer-cta__phone-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
  transition: color 0.3s ease;
}

.amc-footer-cta__phone-link:hover {
  color: #feaf00;
}

.amc-footer-cta__phone-link:hover .amc-footer-cta__freedial {
  filter: brightness(0) saturate(100%) invert(76%) sepia(60%) saturate(1000%) hue-rotate(1deg) brightness(103%) contrast(101%);
}

.amc-footer-cta__freedial {
  height: 20px;
  width: auto;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

.amc-footer-cta__phone-num {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
}

.amc-footer-cta__hours {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 6px 0 0;
  padding-left: 34px;
}

/* ----- タブレット ----- */
@media screen and (max-width: 959px) {
  .amc-footer-cta__overlay {
    padding: 56px 32px 56px 48px;
    gap: 32px;
  }

  .amc-footer-cta__heading {
    font-size: 1.5rem;
  }

  .amc-footer-cta__phone-num {
    font-size: 1.4rem;
  }
}

/* ----- SP ----- */
@media screen and (max-width: 599px) {
  .amc-footer-cta__overlay {
    padding: 48px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .amc-footer-cta__vertical {
    writing-mode: horizontal-tb;
    text-orientation: initial;
    margin-bottom: 16px;
  }

  .amc-footer-cta__heading {
    font-size: 1.35rem;
  }

  .amc-footer-cta__sub {
    font-size: 0.85rem;
    margin-bottom: 28px;
  }

  .amc-footer-cta__sub br {
    display: none;
  }

  .amc-footer-cta__buttons {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 24px;
  }

  .amc-footer-cta__btn {
    justify-content: center;
    padding: 14px 24px;
    width: 100%;
  }

  .amc-footer-cta__phone {
    text-align: center;
    width: 100%;
  }

  .amc-footer-cta__phone-link {
    justify-content: center;
  }

  .amc-footer-cta__phone-num {
    font-size: 1.35rem;
  }

  .amc-footer-cta__hours {
    text-align: center;
    padding-left: 0;
  }
}
