@charset "UTF-8";

/* Figma「SP_固定CTA」の414px幅・87px高を基準に端末幅へ追従します。 */
.mobile-fixed-cta,
.mobile-fixed-cta[hidden] {
  display: none;
}

@media (max-width: 767px) {
  .has-mobile-fixed-cta {
    --fixed-cta-unit: calc(100vw / 414);
    --fixed-cta-height: calc(87 * var(--fixed-cta-unit) + env(safe-area-inset-bottom, 0px));
    /* 最下部の内容を固定ボタンの裏に隠さないための余白。 */
    padding-bottom: var(--fixed-cta-height);
  }

  .mobile-fixed-cta:not([hidden]) {
    display: block;
  }

  .mobile-fixed-cta {
    position: fixed;
    z-index: 40;
    right: 0;
    bottom: 0;
    left: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgb(255 255 255 / 82%);
  }

  .mobile-fixed-cta__inner {
    position: relative;
    height: calc(87 * var(--fixed-cta-unit));
  }

  .mobile-fixed-cta__button {
    position: absolute;
    top: calc(18 * var(--fixed-cta-unit));
    height: calc(60 * var(--fixed-cta-unit));
    border-radius: calc(10 * var(--fixed-cta-unit));
    color: #fff;
    text-decoration: none;
    box-shadow: 0 calc(4 * var(--fixed-cta-unit)) calc(4 * var(--fixed-cta-unit)) rgb(0 0 0 / 25%);
  }

  .mobile-fixed-cta__button::before {
    position: absolute;
    inset: 0;
    border: calc(2 * var(--fixed-cta-unit)) solid #fff;
    border-radius: inherit;
    content: '';
    pointer-events: none;
  }

  .mobile-fixed-cta__button:active {
    filter: brightness(0.95);
  }

  .mobile-fixed-cta__phone {
    left: calc(11 * var(--fixed-cta-unit));
    width: calc(236 * var(--fixed-cta-unit));
    background: linear-gradient(to bottom, #fb6d00, #e2320b);
  }

  .mobile-fixed-cta__badge {
    position: absolute;
    top: calc(-11 * var(--fixed-cta-unit));
    left: calc(38 * var(--fixed-cta-unit));
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(161 * var(--fixed-cta-unit));
    height: calc(22 * var(--fixed-cta-unit));
    border: calc(2 * var(--fixed-cta-unit)) solid #fff;
    border-radius: calc(11 * var(--fixed-cta-unit));
    background: #d8100f;
    font-size: calc(10 * var(--fixed-cta-unit));
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
  }

  .mobile-fixed-cta__phone-icon {
    position: absolute;
    top: calc(22 * var(--fixed-cta-unit));
    left: calc(20 * var(--fixed-cta-unit));
    width: calc(33.5 * var(--fixed-cta-unit));
    height: auto;
  }

  .mobile-fixed-cta__number {
    position: absolute;
    top: calc(16 * var(--fixed-cta-unit));
    left: calc(59 * var(--fixed-cta-unit));
    font-size: calc(27.048 * var(--fixed-cta-unit));
    letter-spacing: -0.055em;
    white-space: nowrap;
  }

  .mobile-fixed-cta__hours {
    position: absolute;
    top: calc(42 * var(--fixed-cta-unit));
    left: calc(59 * var(--fixed-cta-unit));
    font-size: calc(8 * var(--fixed-cta-unit));
    line-height: 1;
    white-space: nowrap;
  }

  .mobile-fixed-cta__mail {
    left: calc(255 * var(--fixed-cta-unit));
    width: calc(155 * var(--fixed-cta-unit));
    background: linear-gradient(147.171deg, #fff200 20.101%, #ffd900 61.263%);
  }

  .mobile-fixed-cta__diagnosis {
    position: absolute;
    top: calc(13 * var(--fixed-cta-unit));
    left: calc(12 * var(--fixed-cta-unit));
    width: calc(132 * var(--fixed-cta-unit));
    height: auto;
  }
}
