/* ============================================================
   pamphlet.html 専用スタイル（cycle-hoken.com）
   kazai-hoken.jp の pamphlet デザインに統一。
   common.css の :root 変数 --brand / --brand-strong / --danger /
   --fs-h4 を利用。cycle の common.css には --fs-caption が無いため
   .doc-section にスコープ定義する。
   ============================================================ */

/* セクション（cycle common.css の --fs-caption 不足を補う） */
.doc-section {
  --fs-caption: clamp(1.4rem, 1.25rem + 0.35vw, 1.6rem);
  margin: 0;
  padding: 2rem 0 0;
}

/* 強調テキスト（common.css には汎用 .attention が無いため定義） */
.doc-section .attention {
  color: var(--danger, #c50f0f);
  font-weight: 700;
}

/* リード文・注記（cycle の `.about .container > p` (0,2,1) に勝つよう
   `.about.doc-section ...` (0,3,0) で特異度を確保） */
.about.doc-section .doc-lead {
  margin: 0 0 1.6rem;
  line-height: 1.8;
}
.about.doc-section .doc-note {
  margin: 0.8rem 0 0;
  font-size: var(--fs-caption);
  line-height: 1.7;
}

/* ダウンロード一覧 */
.doc-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
}
.doc-item {
  background: #fff;
  border: 2px solid var(--brand, #117713);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(17, 119, 19, 0.07);
  padding: 1.6rem 1.6rem 1.2rem;
}
.doc-item h2 {
  margin: 0 0 0.4rem;
  font-size: var(--fs-h4);
  color: var(--brand, #117713);
}
.doc-item p {
  margin: 0 0 1rem;
  line-height: 1.7;
}
.doc-item > p {
  color: #5a5f5a;
}

/* アイコン＋「全N版」バッジ（doc-head 構造） */
.doc-head {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.doc-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 1.2rem;
  background: #eef6ee;
  color: var(--brand, #117713);
}
.doc-ico svg {
  width: 2.4rem;
  height: 2.4rem;
}
.doc-head-text {
  min-width: 0;
  flex: 1 1 auto;
}
.doc-head-text h2 {
  margin: 0 0 0.4rem;
}
.doc-head-text p {
  margin: 0;
}
.doc-count {
  flex: none;
  align-self: flex-start;
  font-size: var(--fs-caption, 1.4rem);
  font-weight: 700;
  color: var(--brand, #117713);
  background: #eef6ee;
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .doc-count {
    display: none;
  }
}

/* 始期契約期間別ダウンロード一覧 */
.doc-versions {
  list-style: none;
  margin: 0;
  padding: 0;
}
.doc-versions > li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.2rem;
  padding: 1.1rem 0.2rem;
  border-top: 1px solid #ecefec;
}
/* 先頭行（＝最新版）をハイライトブロックに */
.doc-versions > li:first-child {
  margin: 0.2rem 0 1rem;
  padding: 1.2rem 1.4rem;
  background: #eef6ee;
  border: 1px solid #cfe6cf;
  border-radius: 10px;
  border-top: none;
}
.ver-period {
  font-weight: 700;
}
.ver-now {
  display: inline-block;
  margin-left: 0.6rem;
  padding: 0.1rem 0.7rem;
  font-size: var(--fs-caption);
  font-weight: 700;
  color: #fff;
  background: var(--danger, #c50f0f);
  border-radius: 4px;
  vertical-align: middle;
}
.doc-versions > li:first-child .ver-now {
  margin-left: 0.8rem;
  background: var(--brand, #117713);
}
.doc-versions > li:first-child .ver-now::after {
  content: "版";
}

/* ダウンロードボタン */
.doc-dl {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.4rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--brand, #117713);
  border: 2px solid var(--brand, #117713);
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.doc-dl:hover,
.doc-dl:focus {
  background: var(--brand, #117713);
  color: #fff;
}
.doc-dl img,
.doc-dl svg {
  width: 24px;
  height: auto;
}
.doc-dl:hover img,
.doc-dl:focus img {
  filter: brightness(0) invert(1);
}
.doc-versions > li:first-child .doc-dl {
  background: var(--brand, #117713);
  color: #fff;
}
.doc-versions > li:first-child .doc-dl img {
  filter: brightness(0) invert(1);
}
.doc-versions > li:first-child .doc-dl:hover,
.doc-versions > li:first-child .doc-dl:focus {
  background: var(--brand-strong, #0c5d0f);
  color: #fff;
}

/* 注記 */
.doc-adobe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

@media (max-width: 480px) {
  .doc-dl {
    width: 100%;
    justify-content: center;
  }
  .doc-versions > li:first-child {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
}
