/* White paper / 調査レポート DL — page-white-paper */
/* フォントサイズは rem（html の font-size 基準） */

.white-paper {
  --wp-navy: #001b3a;
  --wp-navy-hover: #002a52;
  --wp-blue: #5b8ad3;
  --wp-line: #dfe3e8;
  --wp-bg: #fff;
  --wp-card-panel: #f0f2f5;
  --wp-lead-blue: rgb(14, 53, 111);
  --wp-required: #e64b3b;
  --wp-text: #222;
  --wp-muted: #5c6370;
  --wp-input-border: #d8dce3;
  --jp-stack: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Helvetica Neue", "Arial", "Meiryo", sans-serif;
  --wp-serif-stack: "Noto Serif JP Subset", "Noto-serifJP", "YuMincho", "Times New Roman", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
  background-color: var(--wp-bg);
  color: var(--wp-text);
  font-family: var(--jp-stack);
}

/* 固定ヘッダー分の上余白（パンくずは main より前に出力されるためここで確保） */
body.page-template-page-white-paper-php,
body.page-white-paper {
  --wp-header-offset: clamp(60px, calc(60px + (100px - 60px) * ((100vw - 768px) / (1440px - 768px))), 100px);
}

body.page-template-page-white-paper-php .white-paper,
body.page-white-paper .white-paper {
  padding-block: 0 clamp(2.5rem, 5vw, 4.5rem);
}

body.page-template-page-white-paper-php .white-paper {
  padding-top: clamp(40px, calc(40px + (60px - 40px) * ((100vw - 768px) / (1440px - 768px))), 60px);
}

/* 白背景ページではヘッダーを常にダーク表示（IntersectionObserver に依存しない） */
body.page-template-page-white-paper-php #header .cls-1,
body.page-white-paper #header .cls-1 {
  fill: var(--main);
}

body.page-template-page-white-paper-php #header #menu ul li a,
body.page-white-paper #header #menu ul li a {
  color: var(--main);
  border-bottom-color: var(--main);
}

/* ヒーロー未設定時は page_header を畳む（パンくずとの二重余白を防ぐ） */
body.page-template-page-white-paper-php #page_header:not(:has(.swiper, video)),
body.page-white-paper #page_header:not(:has(.swiper, video)) {
  display: none;
}

/* パンくず（コンプ寄せ：小さめ・グレー） */
body.page-template-page-white-paper-php #page_header:not(:has(.swiper, video)) + #breadcrums_wrap,
body.page-white-paper #page_header:not(:has(.swiper, video)) + #breadcrums_wrap {
  padding-top: var(--wp-header-offset);
}

body.page-template-page-white-paper-php #breadcrums_wrap,
body.page-white-paper #breadcrums_wrap {
  background-color: var(--wp-bg);
}

body.page-template-page-white-paper-php #breadcrumbs,
body.page-white-paper #breadcrumbs {
  background-color: var(--wp-bg);
  padding-block: 0.75rem;
  padding-inline: clamp(1.5rem, 5vw, 5rem);
}

body.page-template-page-white-paper-php #breadcrumbs a,
body.page-template-page-white-paper-php #breadcrumbs span,
body.page-white-paper #breadcrumbs a,
body.page-white-paper #breadcrumbs span {
  color: var(--wp-muted);
  font-size: clamp(0.6875rem, 0.85vw, 0.8125rem);
}

.white-paper__inner {
  box-sizing: border-box;
  container-name: white-paper;
  container-type: inline-size;
  margin-inline: auto;
  max-width: 1600px;
  padding-inline: clamp(1.5rem, 5vw, 5rem);
}

.white-paper__grid {
  align-items: stretch;
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  /* @container 非対応時のフォールバック */
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 49rem);

  @media screen and (max-width: 1024px) {
    gap: clamp(2rem, 4vw, 3rem);
  }

  @media screen and (max-width: 767px) {
    grid-template-columns: 1fr;
  }

  /* コンテナ幅ベース：フォーム列を min〜49rem の範囲で可変（cqi = コンテナ行方向の1%） */
  @container white-paper (min-width: 768px) {
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, min(49rem, 42cqi));
  }

  @container white-paper (max-width: 767px) {
    grid-template-columns: 1fr;
  }
}

.white-paper__main,
.white-paper__aside {
  min-width: 0;
}

.white-paper__main {
  background-color: transparent;
  box-sizing: border-box;
  padding-block: 0;
}

.white-paper__main-inner {
  box-sizing: border-box;
  max-width: 100%;
  padding-inline: 0;
  width: 100%;
}

.white-paper__kicker {
  margin: 0 0 3rem;
}

.white-paper__kickerInner {
  align-items: center;
  color: var(--wp-navy);
  display: inline-flex;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  font-weight: 600;
  gap: 0.5rem 0.75rem;
  letter-spacing: 0.02em;
}

.white-paper__kickerJp {
  font-weight: 500;
}

.white-paper__kickerSep {
  background-color: var(--wp-line);
  display: inline-block;
  height: 0.9em;
  vertical-align: middle;
  width: 1px;
}

.white-paper__kickerEn {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.white-paper__title,
.white-paper__titleLg,
.white-paper__titleSm {
  font-feature-settings: "palt" 1;
  font-variant-east-asian: proportional-width;
}

.white-paper__title {
  color: var(--wp-lead-blue);
  font-family: var(--wp-serif-stack);
  font-size: clamp(1.75rem, 2.35vw, 3.333rem);
  font-weight: 700;
  font-synthesis: none;
  hanging-punctuation: first allow-end;
  letter-spacing: 0.04em;
  line-height: 1.7;
  margin: 0 0 1.25rem;
}

.white-paper__titleLg {
  font-size: 1.2em;
  font-weight: 700;
}

.white-paper__titleSm {
  font-size: 1.02em;
  font-weight: 700;
}

.white-paper__lead {
  color: var(--wp-lead-blue);
  font-size: clamp(1.05rem, 1.15vw, 1.759rem);
  font-weight: 400;
  line-height: 1.85;
  margin: 0 0 clamp(1.75rem, 3vw, 2.5rem);
  max-width: 42em;
}

.white-paper__main-split {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 21rem);

  @media screen and (max-width: 767px) {
    align-items: start;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 3vw, 2.75rem) clamp(1.5rem, 3vw, 3rem);
  }
}

.white-paper__visual {
  align-self: center;

  @media screen and (max-width: 767px) {
    justify-self: center;
    max-width: 31rem;
  }
}

.white-paper__visual img {
  display: block;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.white-paper__features {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;

  @media screen and (max-width: 767px) {
    max-width: 36rem;
    margin-inline: auto;
  }
}

.white-paper__feature {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  text-align: center;
  @media screen and (max-width: 767px) {
    flex-direction: row;
  }
}

.white-paper__featureIcon {
  flex-shrink: 0;
}

.white-paper__featureIcon img {
  display: block;
  height: 50px;
  object-fit: contain;
  width: 40px;
  @media screen and (max-width: 767px) {
    height: 30px;
  }
}

.white-paper__featureText {
  color: var(--wp-lead-blue);
  font-size: clamp(1rem, 1.05vw, 1.204rem);
  font-weight: 600;
  line-height: 1.6;
}

.white-paper__featureBr {
  display: inline;

  @media screen and (max-width: 767px) {
    display: none;
  }
}

.white-paper__footnote {
  color: var(--wp-muted);
  font-size: 1.2rem;
  line-height: 1.7;
  margin: clamp(1.75rem, 3vw, 2.5rem) 0 0;
}

.white-paper__aside {
  align-self: stretch;
  background-color: transparent;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-block: 0;
  padding-inline: 0;
}

.white-paper__card {
  background-color: var(--wp-card-panel);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  box-sizing: border-box;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 100%;
  padding-block: clamp(2rem, 4vw, 3rem) 0;
  padding-inline: clamp(1.5rem, 3vw, 3rem);
}

.white-paper__form-wrap {
  flex: 1;
  margin-bottom: 0;
}

.white-paper__form-title {
  color: var(--wp-navy);
  font-family: var(--jp-stack);
  font-size: clamp(1.5rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.45;
  margin: 0 0 clamp(1.75rem, 2.5vw, 2.25rem);
  text-align: center;
}

.white-paper__admin-notice {
  background: #fff8e6;
  border-radius: 8px;
  color: #5c4a00;
  font-size: 1.35rem;
  line-height: 1.6;
  margin: 0;
  padding: 1rem;
}

.white-paper__form-unavailable {
  color: var(--wp-muted);
  font-size: 1.4rem;
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

.white-paper__success {
  padding-block: clamp(1rem, 2vw, 1.5rem);
  text-align: center;
}

.white-paper__success-title {
  color: var(--wp-navy);
  font-family: var(--jp-stack);
  font-size: clamp(1.5rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.45;
  margin: 0 0 1rem;
}

.white-paper__success-text {
  color: var(--wp-muted);
  font-size: 1.4rem;
  line-height: 1.7;
  margin: 0;
}

/* Contact Form 7 */
.white-paper__card .wpcf7 {
  margin: 0;
}

.white-paper__card .white-paper__wpcf7-form {
  margin: 0;
}

.white-paper__card .wpcf7-form {
  margin: 0;
  text-align: left;
}

.white-paper__card .wpcf7-form > p {
  margin: 0 0 clamp(1.15rem, 2vw, 1.5rem);
}

.white-paper__card .wpcf7-form > p:last-of-type {
  margin-bottom: 0;
}

.white-paper__card .wpcf7-form label,
.white-paper__card .white-paper__field {
  display: block;
  margin: 0;
}

.white-paper__card .white-paper__label-text {
  color: var(--wp-lead-blue);
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 700;
  margin-right: 0.35rem;
  vertical-align: middle;

  @media screen and (max-width: 767px) {
    font-size: 1.25rem;
  }
}

.white-paper__card .haveto {
  background-color: #fff;
  border: 1px solid var(--wp-required);
  border-radius: 3px;
  box-sizing: border-box;
  color: var(--wp-required);
  display: inline-block;
  font-size: clamp(0.75rem, 0.85vw, 0.8125rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-left: 0;
  padding: 0.25rem 0.5rem;
  vertical-align: middle;
}

.white-paper__card .white-paper__input,
.white-paper__card .wpcf7-form-control.wpcf7-text,
.white-paper__card .wpcf7-form-control.wpcf7-email,
.white-paper__card .wpcf7-form-control.wpcf7-tel,
.white-paper__card .wpcf7-form-control.wpcf7-url,
.white-paper__card .wpcf7-form-control.wpcf7-textarea {
  background-color: #fff;
  border: 1px solid var(--wp-input-border);
  border-radius: 6px;
  box-sizing: border-box;
  display: block;
  font-family: var(--jp-stack);
  font-size: 1.25rem;
  line-height: 1.4;
  margin-top: 0.5rem;
  padding: 0.4rem 1rem;
  width: 100%;

  @media screen and (max-width: 767px) {
    font-size: 1.25rem;
  }
}

.white-paper__card .white-paper__input,
.white-paper__card .wpcf7-form-control.wpcf7-text,
.white-paper__card .wpcf7-form-control.wpcf7-email,
.white-paper__card .wpcf7-form-control.wpcf7-tel,
.white-paper__card .wpcf7-form-control.wpcf7-url {
  height: 48px;
}

.white-paper__card .white-paper__select,
.white-paper__card .wpcf7-form-control.wpcf7-select {
  -webkit-appearance: none;
  appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235c6370' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 1rem center;
  background-repeat: no-repeat;
  border: 1px solid var(--wp-input-border);
  border-radius: 6px;
  box-sizing: border-box;
  color: var(--wp-text);
  cursor: pointer;
  display: block;
  font-family: var(--jp-stack);
  font-size: 1.45rem;
  height: 48px;
  line-height: 1.4;
  margin-top: 0.5rem;
  padding: 0.4rem 2.5rem 0.4rem 1rem;
  width: 100%;

  @media screen and (max-width: 767px) {
    font-size: 1.25rem;
  }
}

.white-paper__card .white-paper__input:focus,
.white-paper__card .wpcf7-form-control:focus {
  border-color: var(--wp-blue);
  outline: 2px solid rgba(91, 138, 211, 0.28);
  outline-offset: 0;
}

.white-paper__card .wpcf7-form-control::placeholder {
  color: #9ca3af;
}

.white-paper__card .wpcf7-not-valid-tip {
  font-size: 1.25rem;
  margin-top: 0.35rem;
}

/* 同意チェック */
.white-paper__card .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}

.white-paper__card .wpcf7-acceptance label {
  align-items: flex-start;
  cursor: pointer;
  display: flex;
  gap: 0.65rem;
  font-size: 1.35rem;
  line-height: 1.65;

  @media screen and (max-width: 767px) {
    font-size: 1.2rem;
  }
}

.white-paper__card .wpcf7-acceptance input[type="checkbox"] {
  accent-color: var(--wp-navy);
  flex-shrink: 0;
  height: 1.15em;
  margin-top: 0.2em;
  width: 1.15em;
}

.white-paper__card .wpcf7-list-item-label {
  font-weight: 700;
}

.white-paper__card .wpcf7-list-item-label a {
  color: var(--wp-navy);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.white-paper__card .wpcf7-list-item-label a:hover {
  opacity: 0.85;
}

.white-paper__card .wpcf7-submit,
.white-paper__card .white-paper__submit {
  background-color: var(--wp-navy) !important;
  border: none !important;
  border-radius: 6px !important;
  box-sizing: border-box;
  color: #fff !important;
  cursor: pointer;
  display: block;
  font-family: var(--jp-stack);
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  margin-top: clamp(1.5rem, 2.5vw, 2rem) !important;
  padding-block: 1.05rem !important;
  text-align: center !important;
  transition: background-color 0.2s ease;
  width: 100% !important;
}

.white-paper__card .wpcf7-submit:hover,
.white-paper__card .white-paper__submit:hover {
  background-color: var(--wp-navy-hover) !important;
}

.white-paper__card .wpcf7-spinner {
  margin: 0 auto;
}

.pc-none {
  display: none;
  @media screen and (max-width: 767px) {
    display: block;
  }
}
