/* ============================================================
   資料 共通スタイル
   /ao/document  /so/document  /ao/document/{slug}  /so/document/{slug}
============================================================ */

/* ============================================================
   一覧ページ
============================================================ */

.document-archive {
  padding: 80px 0 100px;
}

/* ---- セクション ---- */
.document-archive__section {
  padding: 80px 0;
}

.document-archive__section:first-child {
  padding-top: 0;
}

.document-archive__section:last-child {
  padding-bottom: 0;
}

.document-archive__section-title {
  font-weight: 700;
  font-size: 30px;
  color: #2a2d2a;
  line-height: 1.4;
  letter-spacing: 0.06em;
  margin: 0 0 40px;
  font-feature-settings: "palt" 1;
}

/* ---- カードグリッド ---- */
.document-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 50px;
}

/* ---- カード ---- */
.document-card {
  width: 100%;
}

.document-card__link {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-decoration: none;
  color: inherit;
}

/* サムネイル */
.document-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #edf3f5;
  border: 1px solid rgba(42, 45, 42, 0.1);
  border-radius: 10px;
  flex-shrink: 0;
}

.document-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.document-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(42, 45, 42, 0.2);
}

/* ボディ */
.document-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
}

.document-card__title {
  font-weight: 700;
  font-size: 17px;
  color: #2a2d2a;
  line-height: 1.75;
  letter-spacing: 0.05em;
  margin: 0;
  font-feature-settings: "palt" 1;
  width: 100%;
}

.document-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 30px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: #cdb60b;
  letter-spacing: 0.05em;
  font-feature-settings: "palt" 1;
  border-radius: 5px;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.document-card__link:hover .document-card__cta {
  opacity: 0.85;
}

/* ---- ページネーション ---- */
.document-archive__pager {
  margin-top: 60px;
  display: flex;
  justify-content: center;
}

.document-archive__pager .nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.document-archive__pager .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  border: 1px solid rgba(42, 45, 42, 0.15);
  font-size: 14px;
  color: #2a2d2a;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.document-archive__pager .page-numbers.current,
.document-archive__pager .page-numbers:hover {
  background: var(--color-primary, #0781a8);
  border-color: var(--color-primary, #0781a8);
  color: #fff;
}

/* ---- 記事なし ---- */
.document-archive__empty {
  text-align: center;
  font-size: 16px;
  color: rgba(42, 45, 42, 0.5);
  padding: 80px 0;
}

/* ============================================================
   詳細ページ
============================================================ */

/* ============================================================
   資料詳細 — 2カラムレイアウト
============================================================ */
.document-single-layout {
  display: flex;
  align-items: stretch;
}

/* ---- 左：コンテンツパネル ---- */
.document-single-layout__content {
  flex: 1;
  min-width: 0;
  background: #f1f7f9;
  display: flex;
  justify-content: flex-end;
}

.document-single-content {
  width: 100%;
  max-width: 660px;
  padding: 60px 70px 80px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.document-single-content__title {
  font-weight: 700;
  font-size: 30px;
  color: #2a2d2a;
  line-height: 1.4;
  letter-spacing: 0.06em;
  margin: 0;
  font-feature-settings: "palt" 1;
}

.document-single-content__desc {
  font-size: 14px;
  color: #2a2d2a;
  line-height: 1.8;
  letter-spacing: 0.06em;
  margin: 0;
  font-feature-settings: "palt" 1;
}

/* この資料でわかること */
.document-single-content__points {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid rgba(42, 45, 42, 0.12);
}

.document-single-content__points-title {
  font-weight: 700;
  font-size: 16px;
  color: #2a2d2a;
  line-height: 1.4;
  letter-spacing: 0.06em;
  margin: 0;
}

.document-single-content__points-body {
  font-size: 14px;
  color: #2a2d2a;
  line-height: 1.8;
  letter-spacing: 0.06em;
}

.document-single-content__points-body ul {
  margin: 0;
  padding-left: 1.4em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.document-single-content__points-body p {
  margin: 0 0 8px;
}

/* プレビュー画像 */
.document-single-content__preview {
  border-radius: 10px;
  overflow: hidden;
}

.document-single-content__preview img {
  width: 100%;
  height: auto;
  display: block;
}

/* 戻るリンク */
.document-single-content__back {
  padding-top: 20px;
  border-top: 1px solid rgba(42, 45, 42, 0.12);
}

.document-single-content__back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-primary, #0781a8);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.document-single-content__back-link:hover {
  opacity: 0.7;
}

/* ---- 右：フォームパネル ---- */
.document-single-layout__form {
  flex: 1;
  min-width: 0;
  background: #fff;
}

.document-single-form {
  width: 100%;
  max-width: 660px;
  padding: 60px 50px 80px;
  box-sizing: border-box;
  position: sticky;
  top: calc(var(--header-height, 72px) + 20px);
}

.document-single-form__iframe {
  display: block;
  width: 100%;
  height: 700px;
  border: none;
}

.document-single-form__note {
  font-size: 13px;
  color: rgba(42, 45, 42, 0.5);
  letter-spacing: 0.04em;
  margin: 0;
}

/* ============================================================
   Tablet  (max-width: 1199px)
============================================================ */
@media (max-width: 1199px) {
  .document-archive__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 30px;
  }

  .document-single-layout {
    flex-direction: column;
  }

  .document-single-layout__content {
    justify-content: center;
  }

  .document-single-content {
    max-width: 100%;
  }

  .document-single-form {
    max-width: 100%;
    position: static;
  }
}

/* ============================================================
   Mobile  (max-width: 767px)
============================================================ */
@media (max-width: 767px) {

  /* ---- 一覧 ---- */
  .document-archive {
    padding: 40px 0 60px;
  }

  .document-archive__section {
    padding: 40px 0;
  }

  .document-archive__section-title {
    font-size: 22px;
    margin: 0 0 24px;
  }

  .document-archive__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .document-card__body {
    gap: 24px;
  }

  .document-card__title {
    font-size: 16px;
  }

  .document-card__cta {
    width: 100%;
    box-sizing: border-box;
  }

  /* ---- 詳細 ---- */
  .document-single-layout {
    flex-direction: column;
  }

  .document-single-layout__content {
    justify-content: flex-start;
  }

  .document-single-content {
    max-width: 100%;
    padding: 40px 20px;
    gap: 24px;
  }

  .document-single-content__title {
    font-size: 22px;
  }

  .document-single-form {
    max-width: 100%;
    padding: 32px 20px 60px;
    position: static;
  }

}