/*------------------------
カウントダウンタイマー　css
------------------------*/
#page-top img {
  bottom: 249px;
}

/* ===== ベース ===== */
.cdt_wrapper {
  background: #e63c3c;
  font-weight: bold;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 10;
  bottom: 0;
  width: 100%;
  letter-spacing: 0;
  padding: 12px 5%;
  box-sizing: border-box;
}
.cdt_wrapper small {
  padding: 0 .4em;
  color: #fff;
}
.cdt {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1000px;
}
.cdt_txt {
  display: inline-block;
  margin-right: .6em;
  line-height: 1.2;
  white-space: nowrap; /* 改行を禁止 */
}
.cdt_txt span {
  color: #fff;
}
.cdt_num {
  background-color: #fff;
  line-height: 1;
  padding: .3em .2em;
}

/* ===== 立体ボタン ===== */
.cdt_app {
  display: block;
  background: linear-gradient(to bottom, #ffffff, #ffe8e8);
  border-radius: 8px;
  border-bottom: 4px solid #b83030;
  text-decoration: none !important;
  font-weight: 700;
  color: #e63c3c;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.1s ease, box-shadow 0.1s ease, border-bottom-width 0.1s ease;
}
.cdt_app:hover {
  background: linear-gradient(to bottom, #fff5f5, #ffd5d5);
}
.cdt_app:active {
  transform: translateY(3px);
  border-bottom-width: 1px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* ===== スマホ（〜767px） ===== */
@media screen and (max-width: 767px) {
  .cdt_wrapper {
    padding: 10px 4% 15px; /* 下側の余白を少し広めに */
  }

  .cdt {
    display: flex;
    flex-direction: column; /* 「テキスト＋タイマー」と「ボタン」を上下に分ける */
    align-items: center;
    gap: 12px; /* タイマーとボタンの間のスペース */
  }

  /* テキストとタイマー部分を1行にまとめる */
  .cdt_txt, .cdt_date {
    display: inline-flex; /* 横並びを強制 */
    align-items: baseline;
    justify-content: center;
    margin: 0;
    width: auto;
    white-space: nowrap;
  }

  /* 「早割期間終了まで」の文字サイズ */
  .cdt_txt span {
    font-size: 1.3rem !important; /* 少し小さくして1行に収める */
    margin-right: 5px;
  }

  /* 数字ボックスの調整 */
  .cdt_num {
    font-size: 1.8rem;
    padding: 2px 4px;
    margin: 0 2px;
    border-radius: 3px;
    display: inline-block;
    line-height: 1.2;
    vertical-align: middle;
  }

  /* 単位（時間・分・秒）の調整 */
  .cdt_wrapper small {
    font-size: 1rem;
    padding: 0 2px;
    vertical-align: middle;
  }

  /* ボタンの調整 */
  .cdt_app {
    width: 100%; /* 横幅いっぱい */
    max-width: 320px;
    padding: 12px 0;
    font-size: 1.6rem;
    margin-left: 0; /* PC版の余白をリセット */
  }
}
  .kikan {
    display: inline;
  }
  footer {
    margin-bottom: 90px;
  }
}

/* 極小スマホ（〜320px） */
@media screen and (max-width: 320px) {
  .cdt_app {
    font-size: 1.5rem;
    width: 90vw;
  }
  footer {
    margin-bottom: 72px;
  }
}

/* ===== PC（768px〜） ===== */
@media screen and (min-width: 768px) {
  footer {
    margin-bottom: 90px;
  }
  .cdt_wrapper {
    font-size: 2rem;
    padding: 14px 40px;
  }
  .cdt_wrapper small {
    font-size: 2.6rem;
    padding: 0 .4em;
  }
  .cdt_date {
    font-size: 2.6rem;
  }
  .cdt_date small {
    font-size: 2rem;
  }
  .cdt_txt {
    font-size: .6em;
    margin-right: 30px;
  }
  .cdt_txt span {
    font-size: 2.2rem;
    line-height: 1.2;
    display: block;
  }
  .cdt_app {
    width: 220px;
    font-size: 2.4rem;
    height: 68px;
    line-height: 64px;
    margin-left: 30px;
    padding: 0;
  }
}

/* PC版の調整 */
@media screen and (min-width: 768px) {
  .cdt_txt span {
    font-size: 2.6rem; /* サイズアップ */
    line-height: 1;
    display: inline-block; /* blockから変更して横並びを維持 */
  }
  .cdt_app {
    width: 320px; /* 文言が長くなる場合は幅を広げる */
    font-size: 2.2rem;
    margin-left: 20px;
  }
}

/* スマホ版の調整 */
@media screen and (max-width: 767px) {
  .cdt {
    gap: 0; /* gapを一度リセット */
  }
  .cdt_txt {
    font-size: 1.6rem; /* 全体バランスを見て調整 */
    width: 100%; /* テキストを中央配置するために幅一杯に */
    margin-right: 0;
    margin-bottom: 5px;
  }
  .cdt_txt span {
    font-size: 1.8rem; /* 「早割期間〜」の文字を大きく */
  }
  .cdt_date {
    width: 100%;
    margin-bottom: 15px; /* タイマーとボタンの間の余白をしっかり取る */
    font-size: 2rem;
  }
  .cdt_app {
    width: 90%;
    padding: 12px 0;
    font-size: 1.8rem;
  }
}

/* スマホ版（〜767px）の横並び調整 */
@media screen and (max-width: 767px) {
  .cdt_wrapper {
    padding: 10px 2%; /* 左右の余白を少し削って横幅を確保 */
  }

  .cdt {
    flex-direction: row; /* 上下から横並びに戻す */
    flex-wrap: wrap;     /* 画面が極端に狭い場合は折り返しを許可 */
    justify-content: center;
    gap: 8px;            /* 要素間の隙間 */
  }

  /* テキスト部分 */
  .cdt_txt {
    width: auto;         /* 幅を自動にして横に並ぶようにする */
    margin-bottom: 0;    /* 下の余白を消す */
    font-size: 1.8rem;   /* 横に収まるようサイズ調整 */
  }

  .cdt_txt span {
    font-size: 1.8rem !important;
    white-space: nowrap;
  }

  /* タイマー部分 */
  .cdt_date {
    width: auto;         /* 幅を自動にする */
    margin-bottom: 0;    /* 下の余白を消す */
    display: flex;
    align-items: center;
    font-size: 1.7rem;
  }

  /* 数字ボックス */
  .cdt_num {
    font-size: 2.6rem;   /* 横に並べるため少し小さく */
    padding: 2px 3px;
    margin: 0 1px;
  }

  /* 単位（時間・分・秒） */
  .cdt_wrapper small {
    font-size: 1.2rem;
    padding: 0 1px;
  }

  /* ボタン */
  .cdt_app {
    width: 100%;         /* ボタンも横に並べるならauto、幅いっぱいに戻すなら100% */
    padding: 8px 15px;   /* 高さを抑える */
    font-size: 1.8rem;
    height: auto;
    line-height: 1.4;
    margin-left: 5px;
  }
}

/* 極小スマホ（〜350px）で入り切らない場合の微調整 */
@media screen and (max-width: 350px) {
  .cdt_txt span, .cdt_num, .cdt_app {
    font-size: 1rem !important;
  }
}