@charset "utf-8";
/* 下部の申し込み導線
 * 編集先の案内: ../CSS_MAINTENANCE.md
 * 各章の順序はカスケードを維持するため固定。日付・改修番号のCSSを追加しない。
 */

/* ===== SECTION 01 | 移行元: top-cta.css ===== */
/* REV21：下部の2ボタンだけをフラットなデザインに。 */
/* .page-top {
  padding-bottom: calc(94px + env(safe-area-inset-bottom, 0px));
} */

#bottomCta.bottom-cta-pair {
  --dekisugi-logo-blue: #01508f;
  --bottom-cta-label-size: 17px;
  display: block;
  padding: 10px 24px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #dbe5ec;
  background: #fff;
  box-shadow: none;
}

#bottomCta .bottom-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, .44fr) minmax(0, .56fr);
  gap: 10px;
  width: min(920px, 100%);
  margin-inline: auto;
}

#bottomCta .bottom-cta-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 64px;
  padding: 10px 18px;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: var(--bottom-cta-label-size);
  font-weight: 600;
  line-height: 1.5;
}

#bottomCta .bottom-cta-story {
  background: var(--dekisugi-logo-blue);
  gap: 6px;
}

#bottomCta .bottom-story-label {
  display: block;
  line-height: 1.5;
  font-size: var(--bottom-cta-label-size);
  font-weight: 700;
}

#bottomCta .cta-heart {
  display: block;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
}

#bottomCta .cta-story-break {
  display: none;
}

#bottomCta .bottom-cta-apply {
  flex-direction: column;
  gap: 3px;
  background: #c65312;
}

#bottomCta .bottom-apply-label {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: var(--bottom-cta-label-size);
  font-weight: 700;
  white-space: nowrap;
}

#bottomCta .cta-chevron {
  width: 18px;
  height: 18px;
}

#bottomCta .bottom-apply-details {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px 14px;
  font-size: 12px;
  font-weight: 400;
}

#bottomCta .bottom-apply-price {
  white-space: nowrap;
}

#bottomCta .bottom-apply-price strong {
  color: inherit;
  font-size: 17px;
  font-weight: 700;
}

#bottomCta .bottom-apply-tax {
  font-size: 13px;
}

#bottomCta .bottom-apply-contract {
  font-size: 13px;
  white-space: nowrap;
}

#bottomCta .bottom-cta-action:focus-visible {
  outline: 3px solid #17384b;
  outline-offset: 3px;
}

body.modal-open #bottomCta {
  display: none;
}

@media (hover: hover) {
  #bottomCta .bottom-cta-story:hover {
    background: #003f75;
  }

  #bottomCta .bottom-cta-apply:hover {
    background: #ad440b;
  }
}

@media (max-width: 600px) {
  #bottomCta.bottom-cta-pair {
    --bottom-cta-label-size: 14px;
  }

  #bottomCta.bottom-cta-pair {
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  }

  #bottomCta .bottom-cta-inner {
    grid-template-columns: minmax(0, .42fr) minmax(0, .58fr);
    gap: 8px;
  }

  #bottomCta .bottom-cta-action {
    min-height: 66px;
    padding: 8px 10px;
    gap: 7px;
    font-size: var(--bottom-cta-label-size);
    border-radius: 5px;
  }

  #bottomCta .cta-heart {
    width: 20px;
    height: 20px;
  }

  #bottomCta .cta-story-break {
    display: inline;
  }

  #bottomCta .bottom-story-label {
    white-space: nowrap;
  }

  #bottomCta .bottom-apply-label {
    font-size: var(--bottom-cta-label-size);
    gap: 6px;
  }

  #bottomCta .bottom-apply-details {
    font-size: 13px;
    gap: 0;
  }

  #bottomCta .bottom-apply-price strong {
    font-size: 16px;
  }

  #bottomCta .bottom-apply-contract {
    display: none;
  }
}

@media (max-width: 360px) {
  #bottomCta.bottom-cta-pair {
    --bottom-cta-label-size: 13px;
  }

  #bottomCta .bottom-cta-action {
    padding-inline: 7px;
    gap: 5px;
  }

  #bottomCta .bottom-story-label {
    font-size: var(--bottom-cta-label-size);
  }

  #bottomCta .cta-heart {
    width: 18px;
    height: 18px;
  }

  #bottomCta .bottom-apply-label {
    font-size: var(--bottom-cta-label-size);
    gap: 4px;
  }

  #bottomCta .cta-chevron {
    width: 16px;
    height: 16px;
  }
}


/* TOP：特典帯通過後は下へ読む間だけヘッダーを隠す。
 * 高さは維持して本文の位置が跳ねないようにする。
 * フォーカスが入るとhome.jsが即座に再表示する。 */
.page-top #smartHeader {
  transition: transform 180ms ease;
}

.page-top #smartHeader.is-scroll-hidden {
  transform: translateY(calc(-100% - 2px));
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .page-top #smartHeader {
    transition: none;
  }
}