.p-thanks {
  padding-bottom: clamp(48px, 8vw, 96px);
}

.page-template-template-thanks-download-php #content.l-content,
.page-template-template-thanks-contact-php #content.l-content,
.page-template-template-thanks-consultation-php #content.l-content,
.page-template-template-thanks-document-php #content.l-content,
.page-template-template-thanks-service-document-php #content.l-content,
.single-service-thanks #content.l-content,
.single-resources-thanks #content.l-content {
  padding-top: 32px;
}

@media (max-width: 767px) {
  .page-template-template-thanks-download-php #content.l-content,
  .page-template-template-thanks-contact-php #content.l-content,
  .page-template-template-thanks-consultation-php #content.l-content,
  .page-template-template-thanks-document-php #content.l-content,
  .page-template-template-thanks-service-document-php #content.l-content,
  .single-service-thanks #content.l-content,
  .single-resources-thanks #content.l-content {
    padding-top: 0;
  }
}

/* パンくずリスト（ブログ記事の p-blog-breadcrumb と同様、#content.l-container の幅にそのまま乗せる） */
.p-thanks-breadcrumb.p-service-fv__breadcrumb {
  margin-bottom: clamp(32px, 6vw, 64px);
}

.p-thanks-breadcrumb .p-service-fv__breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 4px;
  border-bottom: 1px solid #dddcdc;
}

.p-thanks-breadcrumb .p-service-fv__breadcrumb-item {
  font-size: 16px;
  letter-spacing: 2px;
  color: #1a1a1a;
}

.p-thanks-breadcrumb .p-service-fv__breadcrumb-item a {
  color: inherit;
  text-decoration: none;
}

.p-thanks-breadcrumb .p-service-fv__breadcrumb-item a:hover {
  text-decoration: underline;
}

.p-thanks-breadcrumb .p-service-fv__breadcrumb-item:not(:last-child)::after {
  content: "＞";
  margin-left: 8px;
}

@media (max-width: 767px) {
  .p-thanks-breadcrumb .p-service-fv__breadcrumb-item {
    font-size: 14px;
  }
}

.p-thanks__inner {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: 20px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

@media (max-width: 767px) {
  .p-thanks__inner {
    gap: 40px;
    padding-inline: 0;
  }
}

.p-thanks__hero {
  text-align: center;
  padding-bottom: 32px;
  border-bottom: 1px solid #dddcdc;
}

.p-thanks__hero-title {
  margin: 0;
  color: #0e254d;
  font-size: clamp(22px, calc(1vw + 16px), 30px);
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.6;
}

.p-thanks__hero-title-br {
  display: none;
}

@media (max-width: 767px) {
  .p-thanks__hero-title-br {
    display: block;
  }
}

.p-thanks__block,
.p-thanks__consult {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.p-thanks__block-text,
.p-thanks__consult-text {
  margin: 0;
  color: #0e254d;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
}

.p-thanks__consult-title {
  margin: 0;
  color: #0e254d;
  font-size: clamp(18px, calc(0.5vw + 15px), 22px);
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.6;
}

.p-thanks__note {
  margin: 0;
  color: #767676;
  font-size: 13px;
  line-height: 1.7;
}

.p-thanks__resources {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 767px) {
  .p-thanks__resources {
    grid-template-columns: 1fr;
  }
}

.p-thanks__resources-link {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background-color: #ebf2fa;
  border: 0.667px solid #fff;
  padding: 20px;
  color: inherit;
  text-decoration: none;
  text-align: left;
  transition: opacity 0.2s ease;
}

.p-thanks__resources-link:hover {
  opacity: 0.8;
}

.p-thanks__resources-title {
  margin: 0;
  color: #0e254d;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.5;
}

.p-thanks__resources-desc {
  margin: 0;
  color: #0e254d;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

.p-thanks__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  justify-content: center;
}

@media (max-width: 767px) {
  .p-thanks__actions {
    flex-direction: column;
    max-width: 320px;
    margin-inline: auto;
  }
}

.p-thanks__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 280px;
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.5;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

@media (max-width: 767px) {
  .p-thanks__btn {
    width: 100%;
    min-width: 0;
  }
}

.p-thanks__btn:hover {
  opacity: 0.8;
}

.p-thanks__btn--secondary {
  background-color: #fff;
  border: 1px solid #0e254d;
  color: #0e254d;
}

.p-thanks__btn--primary {
  background: linear-gradient(to bottom, #eaa418, #d81e18);
  color: #fff;
}

.p-thanks__btn-icon {
  display: block;
  flex-shrink: 0;
  width: 21px;
  height: 18px;
}

.p-thanks__btn-arrow {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

/* 【一時対応】外部リンク無効化 — functions.php の ST_SERVICE_DISABLE_EXTERNAL_LINKS を false にして解除 */
.p-thanks a.is-link-disabled {
  opacity: 0.8;
  pointer-events: none;
  cursor: default;
}

/* フッター手前のブログパーツ（親テーマの余白を打ち消す） */
.page-template-template-thanks-download-php #before_footer_widget.w-beforeFooter,
.page-template-template-thanks-contact-php #before_footer_widget.w-beforeFooter,
.page-template-template-thanks-service-document-php #before_footer_widget.w-beforeFooter,
.single-resources-thanks #before_footer_widget.w-beforeFooter {
  margin: 0;
}
