@charset "UTF-8";
/* ==========================================================================
   資料請求ページ専用スタイル（issue #229）
   documents.html / documents_thanks.html が landing.css の後に読み込む。
   デザイントークン・ボタン・フォーム部品 (.field 等) は landing.css を
   再利用し、資料カード・資料選択・サンクス固有の規則だけをここに置く。
   ========================================================================== */

/* ヒーロー直下にカードを畳みかけるため、セクション上余白を詰める */
.lp-section--tight { padding-top: 0; }

/* ----------------------------------------------------------
   資料カード
   ---------------------------------------------------------- */
.doc-card { display: flex; flex-direction: column; }

.doc-card__cover {
  margin: -8px -8px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: 0 6px 18px rgba(16, 20, 24, .07);
}

/* A4 縦の表紙サムネイル（PDF 1ページ目から生成。横長の納品画像は使わない） */
.doc-card__cover img {
  display: block;
  width: 100%;
  aspect-ratio: 827 / 1169;
  object-fit: cover;
}

.doc-card__audience {
  margin-top: 4px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--brand-ink);
}

.doc-card__summary {
  margin-top: 10px;
  font-size: .875rem;
  color: var(--ink-2);
}

.doc-card__summary li {
  position: relative;
  padding-left: 1.1em;
  line-height: 1.8;
}

.doc-card__summary li::before {
  content: "";
  position: absolute;
  left: .1em;
  top: .78em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

.doc-card .card__meta { margin-top: auto; padding-top: 14px; }

/* ----------------------------------------------------------
   請求資料の選択（既定は全選択）
   .field には入れない: .field input の width:100% がチェックボックスに
   当たるのを避けるため、独立した fieldset スタイルにする。
   ---------------------------------------------------------- */
.doc-select {
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid #d5dbe0;
  border-radius: 6px;
}

.doc-select legend {
  padding: 0 6px;
  font-size: .8125rem;
  font-weight: 600;
}

.doc-select legend .req {
  margin-left: 6px;
  font-size: .6875rem;
  font-weight: 700;
  color: var(--danger);
}

.doc-select__note {
  margin-bottom: 12px;
  font-size: .8125rem;
  color: var(--gray);
}

.doc-select__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color .3s ease, background-color .3s ease;
}

.doc-select__item + .doc-select__item { margin-top: 10px; }

.doc-select__item:hover { border-color: var(--brand-ink); }

.doc-select__item input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--brand-btn);
  cursor: pointer;
}

.doc-select__title {
  display: block;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.6;
}

.doc-select__meta {
  display: block;
  font-size: .8125rem;
  color: var(--gray);
}

.documents-form .btn { margin-top: 22px; }

/* ----------------------------------------------------------
   サンクス（送信後その場でDL）
   ---------------------------------------------------------- */
.doc-dl-list {
  display: grid;
  gap: 14px;
  margin-top: 36px;
  max-width: 640px;
}

.doc-dl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 22px;
  text-align: left;
}

.doc-dl__title { font-weight: 600; line-height: 1.6; }

.doc-dl__meta {
  flex-shrink: 0;
  font-size: .8125rem;
  opacity: .85;
}

.doc-thanks-note { margin-top: 28px; }

/* 警告フラッシュ（メール送信失敗時。DL自体は成功しているため error にしない） */
.flash--warn {
  border-color: #e3cd8b;
  background: #fdf6e0;
  color: #7a6215;
}
