/* ============================================================
   お役立ち資料（paper.html）と、その下の記事ページ
   （paper_2025.html / paper_2026.html）専用
   読み込み順: style.css → sub.css → paper.css
   ※レスポンシブは一覧ページのカードのみ対応（ファイル末尾）
============================================================ */

/* ===============================
   一覧ページ（paper.html）：記事ブロック
                画像枠600×400 角丸26 背景#F1F3F4 / 中の画像520×293＋影
                見出し33px Semi Bold / 日付18px #848484 / 本文22px / 各要素の間25
                ボタン400×60 文字22px
   ※ブロックを増やすときは <li class="p-paper__item"> を丸ごとコピーする
=============================== */
.p-paper__list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.p-paper__item {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px;
  align-items: start;
  padding: 45px;
  border-radius: 22px;
  font-family: var(--sub-font);
  color: #3C4043;
}

/* 資料の表紙を入れるグレーの枠（一覧・記事ページ共通） */
.p-paper__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  aspect-ratio: 600 / 400;
  background: #F1F3F4;
  border-radius: 20px;
}
.p-paper__thumb-img {
  width: 86.67%; /* 520 / 600 */
  height: auto;
  display: block;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
}

.p-paper__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 19px;
}
.p-paper__item-title {
  margin: 0;
  width: 100%;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.4;
}
.p-paper__item-date {
  margin: 0;
  width: 100%;
  font-size: 14px;
  line-height: 1.4;
  color: #848484;
}
.p-paper__item-text {
  margin: 0;
  width: 100%;
  font-size: 16px;
  line-height: 1.5;
}
.p-paper__item-button {
  min-width: 300px;
  min-height: 45px;
}

/* ===============================
   記事ページ（paper_2025.html / paper_2026.html）
=============================== */

/* パンくず（ヘッダー直下のグレー帯） */
.p-paper__breadcrumb {
  background: #F1F3F4;
  padding: 10px 0;
  font-family: var(--sub-font);
  font-size: 13px;
  line-height: 1.4;
  color: #3C4043;
}
.p-paper__breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.p-paper__breadcrumb-item + .p-paper__breadcrumb-item::before {
  content: ">";
  margin-right: 6px;
}
.p-paper__breadcrumb-link {
  color: #3C4043;
  text-decoration: none;
}
.p-paper__breadcrumb-link:hover {
  text-decoration: underline;
}

.p-paper__date {
  margin: 0;
  font-family: var(--sub-font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: #848484;
  text-align: right;
}

/* 記事タイトル：共通の c-title-line を左寄せにして使う */
.p-paper__title {
  text-align: left;
}

.p-paper__thumb--large {
  aspect-ratio: 1000 / 667;
  border-radius: 38px;
}
.p-paper__thumb--large .p-paper__thumb-img {
  width: 87%; /* 870 / 1000 */
}

.p-paper__lead {
  margin: 0;
  font-family: var(--sub-font);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.7;
  color: #3C4043;
}

.p-paper__points {
  padding: 36px 40px;
  background: #EEF5EF;
  border-radius: 20px;
  font-family: var(--sub-font);
  color: #3C4043;
}
.p-paper__points-title {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
}
.p-paper__points-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.p-paper__points-item {
  position: relative;
  padding: 7px 0 7px 34px;
  font-size: 18px;
  line-height: 1.6;
}
/* チェックマーク（CSSで描画） */
.p-paper__points-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 14px;
  height: 7px;
  border-left: 3px solid #5E9468;
  border-bottom: 3px solid #5E9468;
  transform: rotate(-45deg);
}
@media (max-width: 640px) {
  .p-paper__lead {
    font-size: 16px;
  }
  .p-paper__points {
    padding: 24px 20px;
    border-radius: 16px;
  }
  .p-paper__points-title {
    margin-bottom: 12px;
    font-size: 18px;
  }
  .p-paper__points-item {
    padding: 5px 0 5px 28px;
    font-size: 14px;
  }
  .p-paper__points-item::before {
    left: 2px;
    top: 11px;
    width: 12px;
    height: 6px;
  }
}

/* ===============================
   一覧ページのカード：レスポンシブ
=============================== */

/* 820px以下：画像を上、文章を下の縦並びに */
@media (max-width: 820px) {
  .p-paper__item {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px;
  }
}

/* 640px以下：スマートフォン向けに余白と文字を詰める */
@media (max-width: 640px) {
  .p-paper__list {
    gap: 24px;
  }
  .p-paper__item {
    gap: 20px;
    padding: 20px 16px 24px;
    border-radius: 16px;
  }
  .p-paper__thumb {
    border-radius: 12px;
  }
  .p-paper__body {
    gap: 14px;
  }
  .p-paper__item-title {
    font-size: 20px;
  }
  .p-paper__item-date {
    font-size: 13px;
  }
  .p-paper__item-text {
    font-size: 14px;
    line-height: 1.6;
  }
  .p-paper__item-button {
    min-width: 0;
    width: 100%;
    max-width: 320px;
  }
}
