/* 12 資料請求 —— このページ専用の差分 */

:root {
  /* 資料表紙イメージの斜めハッチ（アートボードの #F2F0EC / #EAE7E1） */
  --hatch-light: #F2F0EC;
  --hatch-dark: #EAE7E1;
}

/* ===== 本体：左に資料請求フォーム、右に資料の内容 ===== */
.download-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 80px;
  align-items: start;
}
.download-main__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  max-width: 620px;
}
.download-main__aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

/* ===== 入力項目 =====
   素の見た目は components.css の .field / .field__label / .field__input。
   ここはアートボード12に合わせた差分だけ。 */
.field__label { line-height: 1.6; }
.field__input { padding: 16px; }
.field__input::placeholder { color: var(--text-faint); opacity: 1; }
.field__input:hover { border-color: var(--text-faint); }
.field__input:focus { border-color: var(--gold); outline: none; }
.field__input:focus-visible {
  border-color: var(--gold);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ===== 同意チェックボックス ===== */
.field-agree {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding-top: 8px;
}
.field-check {
  flex: none;
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  margin: 3px 0 0;
  border: 1px solid var(--gold);
  border-radius: 0;
  background: var(--surface);
  cursor: pointer;
}
.field-check:checked { background: var(--gold); }
.field-check:checked::after {
  content: "";
  display: block;
  width: 9px;
  height: 5px;
  margin: 3px auto 0;
  border-left: 1.5px solid var(--surface);
  border-bottom: 1.5px solid var(--surface);
  transform: rotate(-45deg);
}
.field-check:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.field-agree__label {
  min-width: 0;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--text-body);
  cursor: pointer;
}
/* 文中に置くので共通の .link-underline を本文サイズに合わせる */
.field-agree__label .link-underline {
  font-size: inherit;
  letter-spacing: normal;
  padding-bottom: 2px;
}

/* ===== 送信ボタンと注記 ===== */
.form-submit {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  padding-top: 8px;
  flex-wrap: wrap;
}
.form-submit__btn {
  flex: none;
  padding: 18px 48px;
  border: 0;
  font-family: var(--font-sans);
  cursor: pointer;
}
.form-note {
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--text-muted);
}

/* ===== 資料表紙イメージ ===== */
.cover-mock {
  display: flex;
  align-items: flex-end;
  min-width: 0;
  height: var(--cover-h, 400px);
  padding: 20px;
  border: 1px solid var(--border);
  background: repeating-linear-gradient(135deg,
      var(--hatch-light) 0 9px, var(--hatch-dark) 9px 18px);
}
.cover-mock__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-caption);
}

/* ===== 収録内容 ===== */
.toc-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 28px 30px;
  border: 1px solid var(--border);
}
.toc-box__title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--text-strong);
}
.toc-list { display: flex; flex-direction: column; min-width: 0; }
.toc-list__item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--border-light);
}
.toc-list__item:last-child { border-bottom: 1px solid var(--border-light); }
.toc-list__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
}
.toc-list__text {
  min-width: 0;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--text-body);
}

/* ===================== タブレット ===================== */
@media (max-width: 1024px) {
  .download-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .download-main__form { max-width: none; }
  .download-main__aside { gap: 20px; }
  .cover-mock { --cover-h: 320px; }
}

/* ===================== スマホ ===================== */
@media (max-width: 767px) {
  /* SPアートボードでは資料請求と「収録内容」で地色が分かれるので、
     セクションの余白を外して2ブロックそれぞれに持たせる */
  .download-main {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }
  .download-main__form {
    gap: 18px;
    max-width: none;
    padding: 28px 20px;
  }
  .download-main__aside {
    gap: 16px;
    padding: 28px 20px;
    background: var(--surface-alt);
  }

  .field__input { padding: 14px; }

  .field-agree { gap: 10px; padding-top: 0; }
  .field-check { width: 16px; height: 16px; margin-top: 2px; }
  .field-check:checked::after { width: 8px; height: 4px; margin-top: 3px; }
  .field-agree__label { font-size: 12.5px; line-height: 1.9; }

  .form-submit {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding-top: 0;
  }
  .form-submit__btn { padding: 16px 0; text-align: center; }
  .form-note { font-size: 11.5px; }

  .cover-mock { --cover-h: 260px; padding: 14px; }
  .cover-mock__label { font-size: 10px; }

  .toc-box {
    gap: 12px;
    padding: 20px;
    background: var(--surface);
  }
  .toc-box__title { font-size: 12.5px; }
  .toc-list__item {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 0;
  }
  .toc-list__num { font-size: 10px; }
  .toc-list__text { font-size: 12.5px; line-height: 1.85; }
}
