/* ==========================================================================
   CSS変数定義
   ========================================================================== */

:root {
  --floating-footer-height: 100px;
}

@media screen and (max-width: 767px) {
  :root {
    --floating-footer-height: 55px;
  }
}

/* フローティングフッター分の余白を確保 */
footer {
  margin-block-end: var(--floating-footer-height);
}

/* タブレット（768px〜1024px）はフッター非表示のため余白不要 */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  footer {
    margin-block-end: 0;
  }
}

/* ==========================================================================
   フローティングフッター（PC専用）
   ========================================================================== */

.floating-footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: var(--floating-footer-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #DD2027;
  z-index: 1000;
}

.floating-footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
  height: 100%;
}

.floating-footer__staff {
  display: block;
  object-fit: contain;
  pointer-events: none;
  height: var(--floating-footer-height);
  width: auto;
}

.floating-footer__staff--left {
  margin-right: -20px;
  position: relative;
  z-index: 1;
}

.floating-footer__staff--right {
  margin-left: 30px;
}

.floating-footer__link {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.floating-footer__link:hover {
  opacity: 1;
}

.floating-footer__container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background-color: #fff;
  border: 0.5px solid #ccc;
  border-radius: 40px;
  width: 593px;
  height: 70px;
  padding-inline: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.floating-footer__web-text {
  font-size: 12px;
  font-weight: 500;
  color: #4a4a4a;
  line-height: 1.3;
  white-space: nowrap;
}

.floating-footer__mail-icon {
  width: 32px;
  height: 26px;
}

.floating-footer__text {
  font-family: "Noto Sans JP", "Yu Gothic Medium", YuGothic, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #4a4a4a;
  letter-spacing: 0.84px;
  white-space: nowrap;
}

/* 24時間受付中バッジ */
.floating-footer__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #d9d9d9;
  color: #4a4a4a;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  width: 74px;
  height: 56px;
  border-radius: 50%;
  white-space: nowrap;
  flex-shrink: 0;
}

.floating-footer__badge-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.floating-footer__badge-number {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.16px;
}

.floating-footer__badge-unit {
  font-size: 12px;
  font-weight: 600;
}

.floating-footer__badge-text {
  font-size: 12px;
  font-weight: 600;
}

/* ==========================================================================
   レスポンシブ対応
   ========================================================================== */

/* タブレット対応（1024px以下で非表示） */
@media screen and (max-width: 1024px) {
  .floating-footer {
    display: none;
  }
}

/* ==========================================================================
   フローティングフッター（スマホ専用）
   ========================================================================== */

.floating-footer-sp {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  z-index: 1000;
}

.floating-footer-sp__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: var(--floating-footer-height);
  background-color: #e7141a;
  border: 0.5px solid #ccc;
  text-decoration: none;
  box-sizing: border-box;
}

.floating-footer-sp__label {
  display: flex;
  align-items: center;
  gap: 4px;
}

.floating-footer-sp__icon {
  width: 10px;
  height: 10px;
}

.floating-footer-sp__label-text {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1.1px;
  line-height: 1;
}

.floating-footer-sp__main-text {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1.33px;
  line-height: 1;
  text-align: center;
  margin-block-start: 4px;
}

/* スマホ版のみ表示（767px以下） */
@media screen and (max-width: 767px) {
  .floating-footer-sp {
    display: grid;
  }
}
