.c-detail-heading-bg {
  padding-block: 30px 60px;
  padding-inline: 20px;
  background: url(/img/service/seo-consulting/new/pc/fv_bg.jpg);
  background-size: cover;
  background-position: top left;
  position: relative;
}

.c-detail-heading-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1040px;
  margin-inline: auto;
}
.c-detail-heading-flex__left {
  width: fit-content;
}
.c-detail-heading-flex__right {
  width: 60%;
  max-width: 500px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgb(29 72 95 / 30%);
  flex-shrink: 0;
  margin-inline: auto;
}
.c-detail-heading-flex__right-title {
  background: #3ea2d7;
  margin: 0;
  padding: 10px 20px;
  text-align: center;
  color: #fff;
  border-radius: 10px 10px 0 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}
.hbspt-form {
  padding: 14px 16px;
}

/* HubSpotフォームの圧縮スタイル */
.c-detail-heading-flex__right .hbspt-form form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* PCでは2カラム配置に詰めて1画面に収める */
@media (min-width: 769px) {
  .c-detail-heading-flex__right {
    max-width: 560px;
  }
  .c-detail-heading-flex__right .hbspt-form form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 12px;
    row-gap: 8px;
    align-items: stretch;
  }
  /* ラベル・説明文の行数差があっても、同じ行の入力欄を下端で揃える */
  .c-detail-heading-flex__right .hbspt-form form .hs-form-field {
    display: flex;
    flex-direction: column;
  }
  .c-detail-heading-flex__right .hbspt-form form .hs-form-field > .input {
    margin-top: auto;
  }
  .c-detail-heading-flex__right .hbspt-form form fieldset.form-columns-2 {
    display: flex;
    gap: 12px;
    align-items: stretch;
  }
  .c-detail-heading-flex__right .hbspt-form form fieldset.form-columns-1 {
    display: flex;
    align-items: stretch;
  }
  .c-detail-heading-flex__right .hbspt-form form fieldset.form-columns-1 .hs-form-field {
    flex: 1;
  }
  .c-detail-heading-flex__right .hbspt-form form fieldset.form-columns-2,
  .c-detail-heading-flex__right .hbspt-form form .legal-consent-container,
  .c-detail-heading-flex__right .hbspt-form form .hs_recaptcha,
  .c-detail-heading-flex__right .hbspt-form form .hs-submit,
  .c-detail-heading-flex__right .hbspt-form form .hs_error_rollup {
    grid-column: 1 / -1;
  }
  /* 全幅にするフィールド（会社名・調査対象サービス名・プロンプト例・同意ブロック） */
  .c-detail-heading-flex__right .hbspt-form form fieldset:has(.hs_company),
  .c-detail-heading-flex__right .hbspt-form form fieldset:has(.hs_llmoreport_servicename),
  .c-detail-heading-flex__right .hbspt-form form fieldset:has(.hs_llmoreport_promptsample),
  .c-detail-heading-flex__right .hbspt-form form fieldset:has(.legal-consent-container) {
    grid-column: 1 / -1;
  }
  /* 同意チェックの文言を1行に */
  .c-detail-heading-flex__right .hbspt-form .legal-consent-container .hs-form-booleancheckbox-display > span {
    white-space: nowrap;
  }
}
.c-detail-heading-flex__right .hbspt-form .hs-form-field {
  margin-bottom: 0;
}
.c-detail-heading-flex__right .hbspt-form .hs-form-field > label {
  font-size: 12px;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
  line-height: 1.3;
}
.c-detail-heading-flex__right .hbspt-form legend.hs-field-desc {
  font-size: 10px;
  color: #666;
  line-height: 1.3;
  margin-bottom: 2px;
}
.c-detail-heading-flex__right .hbspt-form .hs-input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  box-sizing: border-box;
  padding: 5px 8px;
  font-size: 13px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.c-detail-heading-flex__right .hbspt-form textarea.hs-input {
  height: 40px;
}
.c-detail-heading-flex__right .hbspt-form fieldset {
  max-width: 100%;
}
.c-detail-heading-flex__right .hbspt-form fieldset.form-columns-2 .hs-form-field {
  width: 50%;
  flex: 1;
  box-sizing: border-box;
}
.c-detail-heading-flex__right .hbspt-form fieldset.form-columns-2 .hs-form-field .hs-input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
}
.c-detail-heading-flex__right .hbspt-form ul.hs-error-msgs {
  margin: 2px 0 0;
  padding-left: 0;
  list-style: none;
}
.c-detail-heading-flex__right .hbspt-form ul.hs-error-msgs label {
  font-size: 11px;
  color: #e00;
}
.c-detail-heading-flex__right .hbspt-form .legal-consent-container p,
.c-detail-heading-flex__right .hbspt-form .legal-consent-container label {
  font-size: 11px;
  line-height: 1.4;
}
.c-detail-heading-flex__right .hbspt-form .legal-consent-container .hs-form-booleancheckbox-display {
  margin: 0;
}
/* 同意チェック内の必須マーカー（*）が単独行で浮くため非表示（必須バリデーション自体は有効） */
.c-detail-heading-flex__right .hbspt-form .legal-consent-container .hs-form-required {
  display: none;
}
.c-detail-heading-flex__right .hbspt-form .hs_recaptcha .grecaptcha-badge,
.c-detail-heading-flex__right .hbspt-form .hs_recaptcha > .input {
  transform: scale(0.85);
  transform-origin: 0 0;
}
.c-detail-heading-flex__right .hbspt-form .hs_recaptcha {
  height: 66px;
  overflow: hidden;
}
.c-detail-heading-flex__right .hbspt-form .hs-submit .hs-button {
  background: #ff7a59;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  padding: 10px 30px;
  width: 100%;
  cursor: pointer;
  transition: .3s;
}
.c-detail-heading-flex__right .hbspt-form .hs-submit .hs-button:hover {
  opacity: 0.7;
}

.c-detail-heading-flex__subtitle {
  background-color: #014173;
  color: #fff;
  text-align: center;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.1em;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  margin-bottom: 20px;
}
.c-detail-heading-flex__title {
  width: fit-content;
  margin-inline: auto;
  margin-block: 20px;
  font-size: 52px;
  line-height: 1.4;
}
.c-detail-heading-flex__img {
  max-width: 400px;
  margin-inline: auto;
}
.c-detail-heading-flex__img img {
  width: 100%;
  height: auto;
}

.c-detail-heading__content {
  margin-top: 100px;
}
.c-detail-heading__content-box {
  border-radius: 10px;
  border: 3px solid #F5F5F5;
  max-width: 840px;
  margin-inline: auto;
  padding: 30px 20px;
  margin-top: 40px;
  margin-bottom: 80px;
  position: relative;
}
.c-detail-heading__content-box-title {
  color: #014173;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  background: #FFF;
  padding: 2px 7px;
  width: max-content;
  max-width: 100%;
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
}

.c-detail-heading__content-title {
  color: #014173;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 40px;
}
.c-detail-heading__content-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
}
.c-detail-heading__content-flex-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: calc((100% - 20px) / 2);
}
.c-detail-heading__content-flex-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.c-detail-heading__content-flex-item-description {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: #000000;
}

@media (max-width: 768px) {
  .c-detail-heading-flex {
    flex-direction: column;
  }
  .c-detail-heading-flex__left {
    width: 100%;
  }
  .c-detail-heading-flex__right {
    width: 100%;
  }
  .c-detail-heading-flex__subtitle {
    font-size: 18px;
  }
  .c-detail-heading-flex__title {
    font-size: 42px;
  }
  .c-detail-heading__content-box {
    padding: 20px;
  }
  .c-detail-heading__content-box-title {
    font-size: 18px;
    width: max-content;
  }
  .c-detail-heading__content-flex {
    flex-direction: column;
  }
  .c-detail-heading__content-flex-item {
    width: 100%;
  }
  .c-detail-heading__content-flex-item-description {
    font-size: 14px;
  }
  .c-detail-heading-flex__right .hbspt-form fieldset.form-columns-2 .hs-form-field {
    width: 100%;
  }
  .c-detail-heading-flex__right .hbspt-form fieldset.form-columns-2 .hs-form-field .hs-input:not([type="checkbox"]):not([type="radio"]) {
    width: 100%;
  }
}
