/* ================================================================
   資料請求フォームページ / 送信完了ページ 共通スタイル
   テンプレート: page-form-download.php / page-form-thanks.php
   ================================================================ */

/* ページ共通
---------------------------------------------------------------- */
#page-form-download,
#page-form-thanks {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ヒーロー（グローバルの .page .hero-content { height: 80px } をオーバーライド）
---------------------------------------------------------------- */
body.page-form-download .hero-content,
body.page-form-thanks .hero-content {
  flex: 0 0 auto;
  padding-bottom: 32px;
}

@media (width <= 767px) {
  body.page-form-download,
  body.page-form-thanks {
    padding-top: 10px;
  }

  body.page-form-download .hero-content,
  body.page-form-thanks .hero-content {
    padding-top: 16px;
    padding-bottom: 20px;
  }
}

/* ヒーロータイトル
---------------------------------------------------------------- */
#page-form-download .heading h1,
#page-form-thanks .heading h1 {
  font-family: "Noto Sans Japanese", "Helvetica Neue", Arial, sans-serif;
  font-size: 3.25rem !important;
  font-weight: 600;
  font-style: normal;
  color: #fff;
  text-align: center;

  @media (width <= 767px) {
    font-size: 6.5vw !important;
    line-height: 1.3;
  }
}

/* メインエリア
---------------------------------------------------------------- */
.dl-main {
  flex: 1 0 auto;
  padding: 56px 0;
  background: #fff;

  @media (width <= 767px) {
    padding: 32px 0;
  }
}

.dl-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 左右レイアウト
---------------------------------------------------------------- */
.dl-layout {
  display: flex;
  gap: 32px;
}

.dl-left {
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  flex-direction: column;
}

.dl-right {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

@media (width <= 767px) {
  .dl-layout {
    flex-direction: column;
    gap: 40px;
  }

  .dl-left {
    flex: none;
    max-width: 100%;
    width: 100%;
  }
}

/* PDF サムネイル
---------------------------------------------------------------- */
.dl-thumbnail {
  margin-bottom: 32px;
  overflow: hidden;
}

.dl-thumbnail-img {
  display: block;
  width: 100%;
  height: auto;
}

/* この資料でわかること
---------------------------------------------------------------- */
.dl-about {
  flex: 1;
  background: #f3f4f1;
  border-radius: 8px;
  padding: 24px 40px;
}

.dl-about-title {
  font-size: 2rem;
  line-height: 1.25;
  font-weight: 700;
  margin: 4px 0 16px;
  text-align: center;
  color: #00bfd7;

  @media (width <= 767px) {
    font-size: 5vw;
    margin: 4px 0 8px;
  }
}

.dl-about-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dl-about-list li {
  font-size: 1.6rem;
  line-height: 1.7;
  padding: 4px 0 4px 20px;
  position: relative;

  @media (width <= 767px) {
    font-size: 3.5vw;
    padding: 2px 0 2px 20px;
  }
}

.dl-about-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free", sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  color: #00bfd7;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.dl-about-list li:last-child {
  border-bottom: none;
}

/* ================================================================
   右カラム: CF7 フォーム
   ================================================================ */
.dl-form-wrap {
  flex: 1;
  background: #fff;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 32px 40px 10px;
}

@media (width <= 767px) {
  .dl-form-wrap {
    padding: 28px 20px 8px;
  }
}

.dl-form-wrap .wpcf7 {
  width: 100%;
}

.dl-form-wrap .wpcf7-form p {
  margin-bottom: 18px;
}

.dl-form-wrap .wpcf7-form p:has(input[type="submit"]) {
  margin-bottom: 0;
}

/* ラベル */
.dl-form-wrap .wpcf7-form label {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

/* テキスト・メール・電話入力 */
.dl-form-wrap .wpcf7-form input[type="text"],
.dl-form-wrap .wpcf7-form input[type="email"],
.dl-form-wrap .wpcf7-form input[type="tel"] {
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #444;
  font-size: 1.6rem;
  border-radius: 4px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.dl-form-wrap .wpcf7-form input::placeholder {
  color: #bbb;
}

.dl-form-wrap .wpcf7-form input[type="text"]:focus,
.dl-form-wrap .wpcf7-form input[type="email"]:focus,
.dl-form-wrap .wpcf7-form input[type="tel"]:focus {
  outline: none;
  border-color: #eb4266;
}

/* hidden field の p タグは非表示 */
.dl-form-wrap .wpcf7-form p:has(input[type="hidden"]) {
  display: none;
}

/* バリデーションエラー */
.dl-form-wrap .wpcf7-not-valid-tip {
  font-size: 1.2rem;
  color: #f55;
  margin-top: 4px;
  display: block;
}

.dl-form-wrap .wpcf7-not-valid {
  border-color: #f55 !important;
}

/* 送信結果メッセージ（Thanks ページへリダイレクトするため非表示） */
.dl-form-wrap .wpcf7-response-output {
  display: none;
}

.dl-form-wrap .wpcf7-form.sent .wpcf7-response-output {
  background: rgb(0 191 215 / 15%);
  color: #eb4266;
}

.dl-form-wrap .wpcf7-form.failed .wpcf7-response-output,
.dl-form-wrap .wpcf7-form.invalid .wpcf7-response-output,
.dl-form-wrap .wpcf7-form.spam .wpcf7-response-output {
  background: rgb(255 85 85 / 15%);
  color: #f55;
}

/* 必須ラベル */
.dl-required {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: #eb4266;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: text-top;
}

/* 個人情報同意チェックボックス */
.dl-acceptance {
  margin-top: 32px;
  margin-bottom: 24px;
  text-align: center;

  @media (width <= 767px) {
    margin-top: 32px;
  }
}

.dl-acceptance .wpcf7-list-item {
  margin: 0;
}

.dl-acceptance .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  cursor: pointer;
}

.dl-acceptance-input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #eb4266;
  cursor: pointer;
}

.dl-acceptance a {
  color: #00bfd7;
  text-decoration: underline;
}

.dl-acceptance a:hover {
  text-decoration: none;
}

/* 送信ボタン */
.dl-form-wrap .wpcf7-form input[type="submit"] {
  display: block;
  width: 100%;
  padding: 14px 0;
  background: #eb4266;
  background-size: 200% auto;
  color: #fff;
  font-size: 1.6rem;
  font-family: urw-din-condensed, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition:
    background-position 0.4s,
    opacity 0.2s;
  margin-top: 8px;
}

.dl-form-wrap .wpcf7-form input[type="submit"]:hover {
  background-position: right center;
}

.dl-form-wrap .wpcf7-form input[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ================================================================
   送信完了ページ（Thanks）
   ================================================================ */
.dl-thanks {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.dl-thanks-message {
  font-size: 1.6rem;
  line-height: 2;
  margin-bottom: 48px;
}

.dl-thanks-back {
  max-width: 280px;
  margin: 0 auto;
}

.dl-thanks-back .btn {
  font-size: 1.5rem;
  padding: 14px 24px;
  border-radius: 4px;
}

@media (width <= 767px) {
  .dl-thanks-back {
    max-width: 100%;
  }
}

/* ================================================================
   フッター
   ================================================================ */
.dl-footer {
  border-top: 1px solid #222;
  padding: 16px 24px;
  text-align: center;
}

.dl-footer-copyright {
  font-size: 1.2rem;
  font-weight: 400;
  color: #fff;
  margin: 0;
}
