/* ============================================
   ボトムナビ (SP専用)
============================================ */
.bottom-nav {
  display: none;
}

@media screen and (max-width: 767px) {
  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 20px));
  }

  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #e60712;
    border-top: 1px solid #a00000;
    z-index: 9999;
    padding-bottom: max(env(safe-area-inset-bottom), 8px);
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }
  .bottom-nav.is-visible {
    transform: translateY(0);
  }
  .bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 0;
    color: #fff;
    text-decoration: none;
    gap: 3px;
  }
  .bottom-nav__item--active {
    position: relative;
    color: #cfcfcf;
  }
  .bottom-nav__item--active::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.9) 50%, transparent 70%);
    opacity: 0.5;
  }
  .bottom-nav__icon {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .bottom-nav__icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
  }
  .bottom-nav__label {
    font-size: 9px;
    line-height: 1;
    white-space: nowrap;
  }
}

/* ============================================
   SP固定TELボタン
============================================ */
.sp-tel-btn {
  display: none;
}

@media (max-width: 767px) {
  .sp-tel-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 80px;
    right: 12px;
    width: 56px;
    height: 56px;
    background: #fff;
    color: #e60712;
    border: 3px solid #e60712;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.20);
    z-index: 9000;
    gap: 1px;
    transform: translateX(calc(100% + 20px));
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  }
  .sp-tel-btn.is-visible {
    transform: translateX(0);
    opacity: 1;
  }
  .sp-tel-btn__icon svg {
    width: 22px;
    height: 22px;
    fill: #e60712;
  }
  .sp-tel-btn__label {
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 0.05em;
    line-height: 1;
    color: #e60712;
  }
  .sp-tel-btn:active {
    transform: translateX(0) scale(0.92);
  }
}
