@charset "UTF-8";

/* ========================================
  CTA
========================================= */
.contact-cta {
  padding: 38px 20px 58px;
  background-color: #d1ecff;
}

.contact-cta__inner {
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .contact-cta {
    padding: 50px 0;
  }
}

/* 見出し
----------------------------------------- */
.contact-cta__heading {
  --cta-heading-color-main: #224087;
  --cta-heading-color-accent: #e52d2c;

  position: relative;
  display: flex;
  gap: 5px;
  align-items: flex-end;
  justify-content: center;
  margin: 0 0 20px;
}

.contact-cta__heading-text {
  display: inline-block;
  font-size: clamp(2.2rem, 1.98rem + 0.585vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
  color: var(--cta-heading-color-main);
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.contact-cta__heading::before,
.contact-cta__heading::after {
  display: block;
  width: 3px;
  height: 22px;
  content: '';
  background: var(--cta-heading-color-main);
}

.contact-cta__heading::before {
  transform: translate(-6px, 1px) rotate(-30deg);
}

.contact-cta__heading::after {
  transform: translate(6px, 1px) rotate(30deg);
}

.contact-cta__time {
  line-height: 1;
  color: var(--cta-heading-color-accent);
}
.contact-cta__time-number {
  font-size: clamp(3.2rem, 2.834rem + 0.976vw, 4.2rem);
}

@media (min-width: 768px) {
  .contact-cta__heading::before,
  .contact-cta__heading::after {
    width: 4px;
    height: 30px;
  }

  .contact-cta__heading::before {
    transform: translate(-10px, 3px) rotate(-30deg);
  }

  .contact-cta__heading::after {
    transform: translate(10px, 3px) rotate(30deg);
  }
}

/* ボタン配置
----------------------------------------- */
.contact-cta__list {
  display: grid;
  gap: 22px;
}

@media (min-width: 768px) {
  .contact-cta__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 24px;
  }

  .contact-cta__button--full {
    grid-column: 1 / -1;
  }
}

/* ボタンカラー
----------------------------------------- */
.contact-cta__button {
  --cta-button-color-main: #fff;
  --cta-button-color-dark: #ddd;
  --cta-button-color-shiny: #ffebee;
  --cta-button-color-shadow: #96969666;
}

.contact-cta__button--green {
  --cta-button-color-main: #5bc963;
  --cta-button-color-dark: #01a60d;
  --cta-button-color-shiny: #2bb635;
  --cta-button-color-shadow: #006808;
}

.contact-cta__button--orange {
  --cta-button-color-main: #faad52;
  --cta-button-color-dark: #ec8913;
  --cta-button-color-shiny: #f7a544;
  --cta-button-color-shadow: #a75b00;
}

.contact-cta__button--red {
  --cta-button-color-main: #d5304b;
  --cta-button-color-dark: #cb0021;
  --cta-button-color-shiny: #d32542;
  --cta-button-color-shadow: #950016;
}

.contact-cta__button--blue {
  --cta-button-color-main: #5897dc;
  --cta-button-color-dark: #246ab2;
  --cta-button-color-shiny: #7db5f2;
  --cta-button-color-shadow: #1f3b9e;
}

.contact-cta__button--tel {
  --cta-button-color-main: #fff;
  --cta-button-color-dark: #ddd;
  --cta-button-color-shiny: #ffebee;
  --cta-button-color-shadow: #96969666;
  --cta-button-color-accent: #f2285f;
}

/* 共通ボタン
----------------------------------------- */
.contact-cta__button {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 9.5px 16px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(to bottom, rgb(255 255 255 / 85%) 0, rgb(255 255 255 / 20%) 30%, transparent 50%), linear-gradient(to bottom, var(--cta-button-color-main), var(--cta-button-color-dark));
  border: 2px solid var(--cta-button-color-dark);
  border-radius: 999px;
  box-shadow: 0 5px 8px rgb(0 0 0 / 25%);
}

/* 無料ラベル */
.contact-cta__label {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  color: var(--cta-button-color-dark);
  background: #fff;
  border-radius: 50%;
}

/* ボタンテキスト */
.contact-cta__button-text {
  min-width: 0;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgb(0 0 0 / 12%);
}

.contact-cta__button-text:has(.contact-cta__button-text-large) {
  font-size: clamp(2rem, 1.854rem + 0.39vw, 2.4rem);
}

.contact-cta__button-text-large {
  font-size: clamp(2.4rem, 2.254rem + 0.39vw, 2.8rem);
}

.contact-cta__button-text-small {
  font-size: 2rem;
}

/* 丸矢印 */
.contact-cta__arrow {
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #fff;
}

.contact-cta__arrow circle {
  fill: currentColor;
}

.contact-cta__arrow path {
  fill: var(--cta-button-color-dark);
}

/* 電話ボタン */
.contact-cta__button--tel {
  padding-inline: 18px;
  color: var(--cta-button-color-accent);
  background: #fff;
  border: 1px solid var(--cta-button-color-accent);
}

.contact-cta__tel-icon {
  display: block;
  width: 30px;
  height: 30px;
}

.contact-cta__tel-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-cta__tel-content {
  display: grid;
  justify-items: center;
  min-width: 0;
}

.contact-cta__tel-number {
  font-size: clamp(2.6rem, 2.527rem + 0.195vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.contact-cta__tel-note {
  margin-top: 2px;
  font-size: clamp(1rem, 0.927rem + 0.195vw, 1.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: #222;
  white-space: nowrap;
}

.contact-cta__arrow--tel {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--cta-button-color-accent);
  border-right: 2px solid var(--cta-button-color-accent);
  transform: rotate(45deg);
}

@media (min-width: 768px) {
  .contact-cta__button {
    min-height: 65px;
    padding-inline: 16px;
  }

  /* 電話ボタン */
  .contact-cta__button--tel {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 72px;
    padding-inline: 24px;
  }

  .contact-cta__tel-icon {
    width: 30px;
    height: 30px;
    transform: translateX(140px);
  }

  .contact-cta__tel-number {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
  }

  .contact-cta__arrow--tel {
    /* width: 10px; */
    /* height: 10px; */
  }
}

/* 共通ボタン（small）
----------------------------------------- */
.contact-cta__button--small {
  gap: 10px;
  min-height: 47px;
  padding: 7px 12px;
  box-shadow: 0px 3.7px 3.7px 0px #00000040;
}

/* 無料ラベル */
.contact-cta__button--small .contact-cta__label {
  width: 33px;
  height: 33px;
  font-size: clamp(1.1rem, 0.837rem + 0.702vw, 1.3rem);
}

/* ボタンテキスト */
.contact-cta__button--small .contact-cta__button-text {
  font-size: clamp(1.5rem, 0.711rem + 2.105vw, 2.1rem);
  line-height: 1;
}

.contact-cta__button--small .contact-cta__button-text-large {
  font-size: clamp(1.8rem, 1.011rem + 2.105vw, 2.4rem);
}

/* 丸矢印 */
.contact-cta__button--small .contact-cta__arrow {
  width: 16px;
  height: 16px;
}

/* 電話ボタン */
.contact-cta__button--small.contact-cta__button--tel {
  padding-inline: 18px;
}

.contact-cta__button--small .contact-cta__tel-icon {
  width: 20px;
  height: 20px;
}

.contact-cta__button--small .contact-cta__tel-number {
  font-size: clamp(2rem, 1.474rem + 1.404vw, 2.4rem);
}

.contact-cta__button--small .contact-cta__tel-note {
  font-size: clamp(0.9rem, 0.505rem + 1.053vw, 1.2rem);
}

.contact-cta__button--small .contact-cta__arrow--tel {
  width: 10px;
  height: 10px;
}

@media (min-width: 768px) {
  .contact-cta__button--small {
    min-height: 63px;
    padding-inline: 14px 24px;
    box-shadow: 0px 4.38px 4.38px 0px #00000040;
  }

  /* 無料ラベル */
  .contact-cta__button--small .contact-cta__label {
    width: 40px;
    height: 40px;
  }

  /* 丸矢印 */
  .contact-cta__button--small .contact-cta__arrow {
    width: 20px;
    height: 20px;
  }

  /* 電話ボタン */
  .contact-cta__button--small .contact-cta__tel-icon {
    width: 30px;
    height: 30px;
    transform: translateX(90px);
  }

  .contact-cta__button--small .contact-cta__arrow--tel {
    width: 10px;
    height: 10px;
  }
}

/* ========================================
  光るボタン (.contact-cta--shiny)
========================================= */
.contact-cta--shiny .contact-cta__button {
  position: relative;
  overflow: hidden;
}

.contact-cta--shiny .contact-cta__button::before {
  position: absolute;
  top: -180px;
  left: 0;
  z-index: 2;
  display: inline-block;
  width: 30px;
  height: 100%;
  pointer-events: none;
  content: '';
  background: var(--cta-button-color-shiny);
  mix-blend-mode: overlay;
  animation: shiny 3.8s ease-in-out infinite;
}

@keyframes shiny {
  0% {
    opacity: 0;
    transform: scale(0) rotate(30deg);
  }

  80% {
    opacity: 0.5;
    transform: scale(0) rotate(30deg);
  }

  81% {
    opacity: 1;
    transform: scale(4) rotate(30deg);
  }

  100% {
    opacity: 0;
    transform: scale(50) rotate(30deg);
  }
}

/* ========================================
  ホバーで沈むボタン (.contact-cta--pressable)
========================================= */
.contact-cta--pressable .contact-cta__button {
  filter: drop-shadow(0 7px 0 var(--cta-button-color-shadow));
  transition:
    transform 100ms ease,
    filter 100ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .contact-cta--pressable .contact-cta__button:hover {
    filter: drop-shadow(0 0 0 var(--cta-button-color-shadow));
    transform: translateY(7px);
  }
}

.contact-cta--pressable .contact-cta__button:active {
  filter: drop-shadow(0 0 0 var(--cta-button-color-shadow));
  transform: translateY(7px);
}

/* 動きを抑える
----------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .contact-cta__button {
    transition: none;
  }

  .contact-cta__button:hover,
  .contact-cta__button:active {
    transform: none;
  }

  .contact-cta--shiny .contact-cta__button::before {
    animation: none;
  }
}
