@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600&display=swap');

.bp-test-print {
  --tp-ink: #303538;
  --tp-yellow: #f1cc00;
  --tp-light: #eff0ea;
  color: var(--tp-ink);
  font: 400 16px/1.85 "Noto Sans JP", sans-serif;
}

.bp-test-print *, .bp-test-print *::before, .bp-test-print *::after {
  box-sizing: border-box;
}

.bp-test-print .btp-wrap {
  width: min(1100px, calc(100% - 48px));
  margin-inline: auto;
}

.bp-test-print h2 {
  margin: 0 0 24px;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.55;
  letter-spacing: 0.02em;
}

.bp-test-print .btp-hero h2 {
  letter-spacing: -0.05em;
}

.bp-test-print h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.5;
  font-weight: 700;
}

.bp-test-print p, .bp-test-print figure, .bp-test-print dl {
  margin: 0;
  letter-spacing: -0.05em;
}

.bp-test-print dd {
  margin: 0;
  letter-spacing: 0;
}

.bp-test-print .btp-rule {
  border-bottom: 1px dashed;
  padding-bottom: 18px;
}

.bp-test-print .btp-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(26px, 5vw, 60px);
  padding-block: 70px 112px;
}

.bp-test-print .btp-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.bp-test-print .btp-hero-price {
  margin-block: 26px 16px;
  padding: 14px 20px;
  border-left: 12px solid var(--tp-yellow);
  background: var(--tp-light);
}

.bp-test-print .btp-hero-price > span {
  font-weight: 700;
}

.bp-test-print .btp-hero-price strong, .bp-test-print .btp-price-box strong {
  font: 500 clamp(36px, 5vw, 50px)/1.3 "Noto Sans JP", sans-serif;
  font-weight: 500 !important;
}

.bp-test-print .btp-spec > div {
  display: grid;
  grid-template-columns: 6em 1fr;
  gap: 6px;
  border-bottom: 1px solid;
  padding: 12px 0;
  font-size: 14px;
}

.bp-test-print .btp-spec dt {
  font-weight: 700;
}

.bp-test-print .btp-note {
  margin-top: 8px;
  font-size: 13px;
}

.bp-test-print .btp-button, .bp-test-print .btp-text-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  margin-top: 24px;
  padding: 10px 24px;
  border-radius: 30px;
  color: var(--tp-ink);
  background: var(--tp-yellow);
  font-weight: 700;
  text-decoration: none;
}

.bp-test-print .btp-button:hover, .bp-test-print .btp-text-link:hover {
  filter: brightness(.92);
}

.bp-test-print .btp-button:focus-visible, .bp-test-print .btp-text-link:focus-visible {
  outline: 2px solid var(--tp-ink);
  outline-offset: 3px;
}

.bp-test-print .btp-text-link {
  display: flex;
  width: fit-content;
  margin-inline: auto;
  background: var(--tp-ink);
  color: white;
}

.bp-test-print .btp-section {
  padding-top: 90px;
}

.bp-test-print .btp-usage {
  border-radius: 150px 0 0;
  background: var(--tp-light);
}

.bp-test-print .btp-usage .btp-section {
  padding-block: 72px 84px;
}

.bp-test-print .btp-usage h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.bp-test-print .btp-usage h2, .bp-test-print .btp-uses h3 {
  text-align: center;
}

.bp-test-print .btp-uses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-top: 76px;
}

.bp-test-print .btp-uses article {
  position: relative;
  border-radius: 16px;
  background: white;
  padding: 40px 32px 50px;
}

.bp-test-print .btp-number {
  display: grid;
  place-items: center;
  position: absolute;
  top: -25px;
  left: calc(50% - 25px);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--tp-yellow);
  font-family: 'Noto Serif JP', serif;
  font-size: 1.2em;
  font-weight: 600;
}

.bp-test-print .btp-uses p {
  margin-top: 20px;
  font-size: 15px;
}

.bp-test-print .btp-checks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 36px 0;
  padding: 0;
  border-right: 1px solid;
}

.bp-test-print .btp-price-box {
  margin-top: 40px;
  background: var(--tp-light);
}

.bp-test-print .btp-price-head {
  padding: 16px;
  text-align: center;
  background: var(--tp-yellow);
}

.bp-test-print .btp-price-head.btp-dark {
  color: white;
  background: var(--tp-ink);
}

.bp-test-print .btp-price-body {
  max-width: 580px;
  margin-inline: auto;
  padding: 24px;
}

.bp-test-print .btp-base-price {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0 24px;
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  padding-bottom: 18px; /* 線との間隔 */
}

/* 破線を疑似要素で描画 */
.bp-test-print .btp-base-price::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(475px, 100%); /* ここで線の長さを自由に調整（スマホでもはみ出さない設定） */
  border-bottom: 1px dashed;
}

.bp-test-print .btp-base-price > span {
  white-space: nowrap;
}

.bp-test-print .btp-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  list-style: none;
  margin: 25px 0;
}

.bp-test-print .btp-tags li {
  border: 1px solid;
  border-radius: 25px;
  background: white;
  padding: 5px 14px;
  font-size: 14px;
}

.bp-test-print .btp-notes, .bp-test-print .btp-terms ul {
  padding-left: 1em;
}

.bp-test-print .btp-terms li {
  list-style: disc;
  padding-left: 0.5em;
}

.bp-test-print .btp-notes {
  font-size: 14px;
}

.bp-test-print .btp-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 44px;
  max-width: 720px;
  margin-inline: auto;
  padding: 24px;
}

.bp-test-print .btp-options > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px dashed;
  padding-bottom: 8px;
}

.bp-test-print .btp-options dt {
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.bp-test-print .btp-options small {
  display: block;
}

.bp-test-print .btp-options dd {
  text-align: right;
}

.bp-test-print .btp-steps {
  list-style: none;
  counter-reset: tp-step;
  border: 1px dashed;
  max-width: 900px;
  margin: 42px auto 0;
  padding: 42px 56px;
}

.bp-test-print .btp-steps li {
  counter-increment: tp-step;
  position: relative;
  padding: 0 0 35px 74px;
}

.bp-test-print .btp-steps li:last-child {
  padding-bottom: 0;
}

.bp-test-print .btp-steps li::before {
  content: counter(tp-step);
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 4px double #92938e;
  border-radius: 50%;
  background: var(--tp-light);
  font: 500 24px/1 Oswald, sans-serif;
}

.bp-test-print .btp-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 48px;
  bottom: 0;
  border-left: 1px solid;
}

.bp-test-print .btp-steps h3 {
  display: inline;
  border-bottom: 3px solid #f8e979;
}

.bp-test-print .btp-steps p {
  margin-top: 12px;
  font-size: 15px;
}

.bp-test-print .btp-terms li + li {
  margin-top: 6px;
}

.bp-test-print .btp-apply {
  margin-block: 84px 112px;
  text-align: center;
}

.bp-test-print .btp-apply .btp-wrap {
  border-block: 1px solid;
  padding: 55px 12px;
}

.bp-test-print .btp-apply h2 {
  font-size: clamp(20px, 2.8vw, 36px);
  margin-bottom: 10px;
}

.bp-test-print .btp-apply .page-nav-center {
  margin-top: 2em;
}




.bp-test-print .btp-checks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 48px 0;
  padding: 0;
  border-right: 1px solid #999;
}

.bp-test-print .btp-checks li {
  position: relative;
  padding: 30px 25px;
  border-left: 1px solid #999;
}

/* 黄色い丸のベース */
.bp-test-print .btp-checks li::before {
  content: "";
  display: block;
  width: 34px;
  height: 34px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--tp-yellow);
}

/* 白いチェックマーク */
.bp-test-print .btp-checks li::after {
  content: "";
  position: absolute;
  top: 40px;
  left: 50%;
  width: 13px;
  height: 9.5px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: translateX(-50%) rotate(-45deg);
}

/* 見出し部分 */
.bp-test-print .btp-checks .btp-check-title {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
  text-align: center;
}

/* 説明文部分 */
.bp-test-print .btp-checks p {
  font-size: 14px;
  line-height: 1.75;
  font-weight: 400;
  text-align: justify;
  letter-spacing: 0;
}

.bp-test-print #price .pagetitle-left,
.bp-test-print #flow .pagetitle-left {
  border-bottom: none;
  padding-bottom: 0; /* テーマ側で下線用の余白が設定されている場合はこちらもリセット */
}

/* 「ご利用の流れ」のステップフローに破線枠と内側余白を追加 */
.bp-test-print #flow ul.step-flow {
  border: 1px dashed #333;
  max-width: 900px;
  margin-top: 42px;
  padding: 25px 85px;
}

.bp-test-print #flow ul.step-flow li.step-flow-wrap:last-child dd {
  padding-bottom: 0;
}




@media (max-width: 768px) {
  .bp-test-print {
    font-size: 15px;
  }

  .bp-test-print .btp-wrap {
    width: calc(100% - 32px);
  }

  .bp-test-print .btp-hero {
    grid-template-columns: 1fr;
    padding-block: 42px 64px;
  }

  .bp-test-print .btp-usage {
    border-radius: 68px 0 0;
  }

  .bp-test-print .btp-usage .btp-section {
    padding-block: 48px;
  }

  .bp-test-print .btp-uses {
    grid-template-columns: 1fr;
    gap: 46px;
    margin-top: 55px;
  }

  .bp-test-print .btp-checks {
    grid-template-columns: 1fr; /* 1カラムに変更 */
    border-right: none;         /* PC用の右端縦線を解除 */
  }

  .bp-test-print .btp-checks li {
    padding: 24px 12px;
    border-left: none;                 /* PC用の左縦線を解除 */
    border-bottom: 1px solid #999;     /* 1カラム用の横区切り線に変更 */
  }

  .bp-test-print .btp-checks li:last-child {
    border-bottom: none; /* 最後の項目の下線は消す（残したい場合はこの3行を削除） */
  }

  .bp-test-print .btp-checks li::after {
    top: 34px; /* liのpadding-top(24px)に合わせて白いチェック位置を調整 */
  }

  .bp-test-print .btp-section {
    padding-top: 58px;
  }

  .bp-test-print .btp-steps {
    padding: 22px 14px;
  }

  .bp-test-print .btp-steps li {
    padding-left: 46px;
  }

  .bp-test-print .btp-steps li::before {
    width: 36px;
    height: 36px;
    font-size: 19px;
  }

  .bp-test-print .btp-steps li:not(:last-child)::after {
    left: 18px;
    top: 34px;
  }

  .bp-test-print .btp-steps h3 {
    font-size: 16px;
  }

  .bp-test-print .btp-options {
    grid-template-columns: 1fr;
  }

  .bp-test-print .btp-apply {
    margin-block: 54px 66px;
  }

  .bp-test-print #flow ul.step-flow {
    padding: 16px 20px;
  }
}
