/* フッターの波（.footer-above：高さは画面幅の25%）の分だけ引き上げて、下部フォームの緑からそのままフッターにつなげる */
.section-download {
  margin-bottom: -25vw;
  line-height: 1.5;
  color: #2b312e;
}
/* リセットは :where で詳細度を0にし、各コンポーネントの margin / padding を優先させる */
:where(.section-download) *,
:where(.section-download) *::before,
:where(.section-download) *::after {
  box-sizing: border-box;
}
:where(.section-download) :where(h1, h2, h3, p, ul, ol) {
  margin: 0;
  padding: 0;
}
:where(.section-download) :where(ul, ol) {
  list-style: none;
}
/* ページ内リンク（#download-docs / #download-bottom）をなめらかに移動する。
   スクロールするのは html なので html に指定する（style.css の body 指定は効かない）。動きを減らす設定のときは行わない */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
/* モーダルは .section-download の外に置いているため、同じリセットを当てる */
:where(.section-download, .download-modal) button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.section-download [hidden],
.download-modal[hidden] {
  display: none !important;
}
body.is-modal-open {
  overflow: hidden;
}

/* =============================================
  Buttons（見た目は common.css の .form-btn）
============================================= */
.download-btn-primary {
  margin-top: 28px;
}

/* =============================================
  Cover / Page mock（画像が入るまでのプレースホルダー）
============================================= */
.download-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 200 / 141.41;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  background: #fff;
}
.download-cover > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.download-cover__band {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 42%;
  border-right: 4px solid #46a73c;
  background: linear-gradient(149deg, #8fd535, #46a73c);
}
.download-cover__ph {
  position: absolute;
  top: 50%;
  left: 71%;
  transform: translate(-50%, -50%);
  font-size: 9px;
  line-height: 1.6;
  color: #9aa09c;
  text-align: center;
  white-space: nowrap;
}
.download-cover--hero {
  flex: none;
  width: 352px;
  aspect-ratio: 16 / 9; /* 表紙画像（スライド）の比率 */
  box-shadow: 0 8px 24px rgba(43, 49, 46, 0.18);
}
.download-cover--thumb {
  flex: none;
  width: 100px;
  aspect-ratio: 16 / 9; /* 表紙画像（スライド）の比率 */
  border-radius: 3px;
}
.download-cover--card {
  flex: none;
  width: 100%;
  aspect-ratio: 16 / 9; /* 表紙画像（スライド）の比率 */
}

/* =============================================
  Check list
============================================= */
.download-checklist li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.7;
}
.download-checklist li::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 15px;
  height: 11px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 11'%3E%3Cpath d='M1 5.6l4 4L14 1' fill='none' stroke='%2346a73c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.download-checklist--lg li {
  padding-left: 23px;
  font-size: 15px;
  line-height: 1.8;
}

/* =============================================
  FV
============================================= */
/* 背景はヘッダー（100px）の裏まで伸ばす */
.download-hero {
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  isolation: isolate; /* 模様（::before）を、背景の上・中身の下に置くため */
  background: url("../../img/form/download/Background.png") center / cover no-repeat,
    linear-gradient(180deg, #46a73c 0%, #8fd535 100%); /* 画像読み込み前のフォールバック */
}
/* 背景の模様。画像自体は黒の約10%透過で、opacity で約3%まで薄くする */
.download-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../../img/form/download/HeroPattern.png") center / cover no-repeat;
  opacity: 0.3;
  pointer-events: none;
}
.download-hero__inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 20px 72px;
}
.download-hero__main {
  flex: none;
  width: 600px;
  color: #fff;
}

.download-hero__label {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 24px;
  border-radius: 18px;
  background: #fff;
  color: #46a73c;
  font-size: 14px;
  font-weight: bold;
}
.download-hero__title {
  margin-top: 22px;
  font-size: 44px;
  font-weight: bold;
  line-height: 1.5;
}
.download-hero__lead {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.8;
}

.download-hero__visual {
  display: flex;
  gap: 24px;
  margin-top: 39px;
}
.download-hero__pages {
  padding-top: 2px;
}
.download-hero__pages-caption {
  font-size: 13px;
  font-weight: bold;
}
/* 中面画像を少しずつずらして重ねる（奥から手前へ。手前＝若いページ） */
.download-hero__pages-stack {
  position: relative;
  width: 208px;
  aspect-ratio: 1244 / 720;
  margin-top: 10px;
}
.download-hero__pages-image {
  position: absolute;
  width: 84%;
  height: auto;
  border: 1px solid #dbdbdb;
  box-shadow: 0 2px 8px rgba(43, 49, 46, 0.15);
}
.download-hero__pages-image:nth-last-child(1) {
  top: 0;
  left: 16%;
}
.download-hero__pages-image:nth-last-child(2) {
  top: 9%;
  left: 8%;
}
.download-hero__pages-image:nth-last-child(3) {
  top: 18%;
  left: 0;
}
.download-hero__pills {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.download-hero__pill {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 16px;
  border-radius: 16px;
  background: #fff;
  color: #1b9e5a;
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;
}
.download-hero__pill--free {
  background: #ffe737;
}

.download-learn {
  margin-top: 40px;
  padding: 30px 32px 32px;
  border-radius: 16px;
  background: #fff;
  color: #2b312e;
}
.download-learn__title {
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: bold;
  color: #1b9e5a;
}
.download-learn .download-checklist--lg li {
  line-height: 1.2;
}
.download-learn .download-checklist--lg li::before {
  top: 4px;
}
.download-learn .download-checklist--lg li + li {
  margin-top: 9px;
}

/* =============================================
  Card（FVフォーム）
============================================= */
.download-hero__form {
  position: relative;
  flex: none;
  width: 456px;
  margin-top: -8px;
  /* 送信完了で #download-form-fv に戻ったとき、固定ヘッダー（100px）に隠れないようにする */
  scroll-margin-top: 120px;
}
.download-time {
  position: absolute;
  top: -52px;
  right: -40px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ffe737;
  color: #46a73c;
  font-weight: bold;
  line-height: 1.2;
}
.download-time span {
  font-size: 11px;
}
.download-time strong {
  font-size: 21px;
}

.download-card {
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(43, 49, 46, 0.2);
  color: #2b312e;
}
.download-card__header {
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 24px;
  background: linear-gradient(135deg, #8fd535 0%, #46a73c 100%);
  color: #fff;
}
.download-card__title {
  font-size: 16px;
  font-weight: bold;
}
.download-card__body {
  padding: 24px 32px 28px;
}
.download-card__note {
  margin-top: 10px;
  font-size: 13px;
  text-align: center;
}

.download-selected {
  display: grid;
  grid-template-columns: 100px 1fr;
  grid-template-rows: auto auto;
  align-items: start;
  column-gap: 14px;
  row-gap: 8px;
  padding: 14px;
  border-radius: 8px;
  background: #f3f9ee;
}
.download-selected .download-cover--thumb {
  grid-row: 1 / 3;
}
.download-selected__main {
  font-size: 14px;
  font-weight: bold;
}
.download-selected__added {
  font-size: 13px;
  font-weight: bold;
  color: #1b9e5a;
}

/* =============================================
  Complete（送信完了。送信したフォームのカードの中身を切り替える）
============================================= */
.download-complete {
  max-width: 560px;
  margin: 0 auto;
}
/* 下部フォームはカードに見出しの帯が無いため、本文の上に見出しを置く */
.download-complete__title {
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.5;
  letter-spacing: 0.04em;
}
.download-complete__lead {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.75;
  letter-spacing: 0.06em;
}
.download-complete__list-title {
  margin-top: 26px;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.06em;
  color: #7d8e97;
}
.download-complete__list {
  margin-top: 12px;
}
.download-complete__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #f3f9ee;
}
.download-complete__item + .download-complete__item {
  margin-top: 9px;
}
.download-complete__name {
  min-width: 0;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.5;
  letter-spacing: 0.06em;
}
.download-complete__btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 18px;
  background: #1b9e5a;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.download-complete__btn:hover {
  opacity: 0.85;
}
.download-complete__note {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.7;
}
/* 見た目は無料相談（inquiry.css）の .c-btn-back と同じ */
.download-complete__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 51px;
  margin-top: 20px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(43, 49, 46, 0.08);
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.06em;
  color: #46a73c;
  text-decoration: none;
  transition: box-shadow 0.2s;
}
.download-complete__back:hover {
  box-shadow: 0 6px 20px rgba(43, 49, 46, 0.14);
}

/* =============================================
  Form parts（FV・下部フォーム共通）
============================================= */
/* FVは1列。お名前と電話番号だけ横に並べる */
.download-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  margin-top: 8px;
}
.download-field {
  grid-column: 1 / -1;
  min-width: 0;
  margin-top: 18px;
}
.download-field--name,
.download-field--tel {
  grid-column: auto;
}

.download-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: bold;
}

.download-input {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 8px;
  padding: 0 14px;
  border: 1px solid #dbdbdb;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: #2b312e;
  appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.download-input::placeholder {
  color: #9aa09c;
}
.download-input:focus {
  outline: none;
  border-color: #46a73c;
  box-shadow: 0 0 0 3px rgba(70, 167, 60, 0.15);
}
.download-input.is-invalid {
  border-color: #e61b1b;
}
.download-error {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  font-weight: bold;
  color: #e61b1b;
}


.download-checks {
  margin-top: 22px;
}
.download-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 20px;
  font-size: 14px;
  cursor: pointer;
}
.download-check + .download-check,
.download-checks .download-error + input + .download-check {
  margin-top: 14px;
}
/* チェックボックス本体は common.css の .form-check */
.download-check input:focus-visible {
  box-shadow: 0 0 0 3px rgba(70, 167, 60, 0.25);
}
.download-check input.is-invalid {
  border-color: #e61b1b;
}

/* =============================================
  See more
============================================= */
.download-seemore {
  padding: 44px 20px 18px;
  background: #fff;
  text-align: center;
}
.download-seemore__title {
  font-size: 24px;
  font-weight: bold;
  line-height: 1.2;
}
.download-seemore__text {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.2;
}
.download-seemore__arrow {
  display: inline-block;
  margin-top: 18px;
  transition: transform 0.2s;
}
.download-seemore__arrow:hover {
  transform: translateY(3px);
}
.download-seemore__arrow img {
  display: block;
  width: 40px;
  height: 40px;
}

/* =============================================
  Docs
============================================= */
.download-docs {
  padding: 103px 20px 120px;
  background: #f3f9ee;
}
.download-docs__inner {
  max-width: 1120px;
  margin: 0 auto;
}
.download-docs__head {
  display: flex;
  align-items: baseline;
  gap: 33px;
}
.download-docs__title {
  font-size: 32px;
  font-weight: bold;
  line-height: 1.2;
}
.download-docs__sub {
  font-size: 15px;
}

.download-docs__cats {
  display: flex;
  gap: 12px;
  margin-top: 29px;
}
.download-cat {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  border: 1px solid #dbdbdb;
  border-radius: 20px;
  background: #fff;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.download-cat:hover {
  border-color: #1b9e5a;
}
.download-cat.is-active {
  border-color: #1b9e5a;
  background: #1b9e5a;
  color: #fff;
}

.download-docs__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.download-docs__tags-label {
  margin-right: 10px;
  font-size: 13px;
  font-weight: bold;
}
.download-tag {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border: 1px solid #dbdbdb;
  border-radius: 16px;
  background: #fff;
  font-size: 13px;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.download-tag:hover {
  border-color: #46a73c;
}
.download-tag.is-active {
  border-color: #46a73c;
  background: #f3f9ee;
  font-weight: bold;
  color: #1b9e5a;
}

.download-docs__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.download-docs__empty {
  margin-top: 40px;
  font-size: 14px;
  text-align: center;
}

/* ---------- doc card ---------- */
.download-doc {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); /* 左：表紙、右：本文 */
  align-content: start;
  column-gap: 32px;
  padding: 24px;
  border: 1px solid #dbdbdb;
  border-radius: 16px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.download-doc.is-selected {
  border-color: #46a73c;
  box-shadow: inset 0 0 0 1px #46a73c;
}
.download-doc__added {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s, transform 0.2s;
}
.download-doc.is-selected .download-doc__added {
  opacity: 1;
  transform: scale(1);
}
/* 上段：カテゴリ・更新日・タグ（カード幅いっぱい） */
.download-doc__metarow {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding-right: 24px; /* 追加済みアイコンと重ならないように空ける */
}
.download-catbadge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border: 1px solid #2b312e;
  border-radius: 12px;
  background: #fff;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
}
.download-doc__date {
  font-size: 12px;
  white-space: nowrap;
}
.download-doc__tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 12px;
  border: 1px solid #d3eedf;
  border-radius: 12px;
  background: #ebf9f1;
  font-size: 12px;
  font-weight: bold;
  color: #1b9e5a;
  white-space: nowrap;
}

/* 左：表紙と「中身をのぞく」 */
.download-doc__side {
  grid-column: 1;
  margin-top: 20px;
  min-width: 0;
}
.download-doc__peek {
  margin-top: 10px;
  font-size: 12px;
  text-decoration: underline;
  white-space: nowrap;
}
.download-doc__peek:hover {
  color: #1b9e5a;
}

/* 右：タイトル・わかること・ボタン */
.download-doc__main {
  grid-column: 2;
  margin-top: 16px;
  min-width: 0;
}
.download-doc__title {
  font-size: 19px;
  font-weight: bold;
  line-height: 1.5;
}
.download-doc__body {
  margin-top: 8px;
}
.download-doc__learn {
  font-size: 13px;
  font-weight: bold;
  color: #1b9e5a;
}
.download-doc .download-checklist {
  margin-top: 6px;
}
.download-doc .download-checklist li {
  line-height: 1.2;
}
.download-doc .download-checklist li::before {
  top: 3px;
  left: -1px;
}
.download-doc .download-checklist li + li {
  margin-top: 7px;
}
.download-doc__actions {
  margin-top: 20px;
}

/* ---------- add button ---------- */
.download-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 156px;
  height: 44px;
  border: 1.5px solid #1b9e5a;
  border-radius: 22px;
  background: #fff;
  font-size: 14px;
  font-weight: bold;
  color: #1b9e5a;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}
.download-add:hover {
  background: #f3f9ee;
}
.download-add__on {
  display: none;
  align-items: center;
  gap: 8px;
}
.download-add__on svg {
  width: 14px;
  height: 10.4px;
}
.download-add.is-selected {
  background: #1b9e5a;
  color: #fff;
}
.download-add.is-selected .download-add__off {
  display: none;
}
.download-add.is-selected .download-add__on {
  display: inline-flex;
}

/* ---------- coming soon ---------- */
.download-doc--coming {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 266.9px;
  border: 1.5px dashed #bfc4c1;
  background: rgba(255, 255, 255, 0.5);
  text-align: center;
}
.download-doc__coming-title {
  font-size: 17px;
  font-weight: bold;
}
.download-doc__coming-text {
  margin-top: 11px;
  font-size: 13px;
}

/* =============================================
  Bottom form
============================================= */
/* 下部は、波の高さ分（25vw）を余白に足す。波の手前の余白はPCで-170px（波がカードの裏に回り込む） */
.download-bottom {
  padding: 127px 20px calc(25vw - 170px);
  background: linear-gradient(119deg, #8fd535, #46a73c);
  text-align: center;
}
.download-bottom__title {
  position: relative;
  padding-bottom: 21px;
  font-size: 32px;
  font-weight: bold;
  line-height: 1.2;
  color: #fff;
}
.download-bottom__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 40px;
  height: 4px;
  margin-left: -20px;
  border-radius: 2px;
  background: #fff;
}
.download-bottom__lead {
  margin-top: 36px;
  font-size: 16px;
  color: #fff;
}

.download-bottom__card {
  /* 引き上げたフッターの波より手前に出す */
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 45px auto 0;
  padding: 48px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(43, 49, 46, 0.2);
  text-align: left;
}
.download-bottom__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.download-bottom__chips-selected {
  display: contents;
}
.download-chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;
}
.download-chip--fixed {
  border: 1px solid #2b312e;
  background: #fff;
}
.download-chip--selected {
  gap: 10px;
  padding: 0 10px 0 16px;
  border: 1px solid #46a73c;
  background: #f3f9ee;
  color: #1b9e5a;
}
.download-chip__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  transition: background-color 0.2s;
}
.download-chip__remove:hover {
  background: rgba(27, 158, 90, 0.12);
}
.download-chip__remove svg {
  width: 9px;
  height: 9px;
}
.download-bottom__addmore {
  margin-left: 8px;
  font-size: 13px;
  font-weight: bold;
  color: #1b9e5a;
  text-decoration: none;
}
.download-bottom__addmore:hover {
  text-decoration: underline;
}

/* 下部は入力欄を4列に並べる */
.download-bottom__card .download-fields {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 30px;
}
.download-bottom__card .download-field,
.download-bottom__card .download-field--name,
.download-bottom__card .download-field--tel {
  grid-column: auto;
  margin-top: 0;
}
.download-bottom__card .download-field--department,
.download-bottom__card .download-field--status {
  grid-column: span 2;
}
.download-bottom__card .download-checks {
  margin-top: 30px;
}
.download-bottom__bubble {
  margin-top: 16px;
  font-size: 14px;
  font-weight: bold;
  color: #1b9e5a;
  text-align: center;
}
.download-bottom__submit {
  width: 440px;
  max-width: 100%;
  margin: 10px auto 0;
}

/* =============================================
  Fixed bar
============================================= */
.download-fixbar {
  position: fixed;
  right: 0;
  bottom: 24px;
  left: 0;
  z-index: 90;
  padding: 0 20px;
  pointer-events: none;
  /* 表示・非表示の両方をなめらかにするため、display ではなく opacity / transform / visibility で切り替える。
     隠れたあとに操作を受けないよう、visibility は動きが終わってから hidden にする */
  opacity: 0;
  transform: translateY(16px);
  visibility: hidden;
  transition: opacity 0.25s ease-out, transform 0.25s ease-out, visibility 0s linear 0.25s;
}
.download-fixbar.is-visible {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition-delay: 0s;
}
.download-fixbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  height: 80px;
  margin: 0 auto;
  padding: 0 16px 0 32px;
  border-radius: 40px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(43, 49, 46, 0.16);
  pointer-events: auto;
}
.download-fixbar__info {
  display: flex;
  align-items: center;
  min-width: 0;
}
.download-fixbar__main {
  flex: none;
  font-size: 15px;
  font-weight: bold;
}
.download-fixbar__pill {
  display: inline-flex;
  flex: none;
  align-items: center;
  height: 32px;
  margin-left: 22px;
  padding: 0 14px;
  border: 1px solid #46a73c;
  border-radius: 16px;
  background: #f3f9ee;
  font-size: 13px;
  font-weight: bold;
  color: #1b9e5a;
}
.download-fixbar__pill:empty {
  display: none;
}
.download-fixbar__names {
  margin-left: 16px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.download-fixbar__btn {
  flex: none;
  width: 248px;
  height: 52px;
  font-size: 16px;
}

/* =============================================
  Modal
============================================= */
.download-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #2b312e;
}
.download-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(43, 49, 46, 0.6);
  animation: download-modal-fade 0.2s ease-out;
}
@keyframes download-modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.download-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 1000px;
  max-width: 100%;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(43, 49, 46, 0.2);
  outline: none;
  animation: download-modal-in 0.25s ease-out;
}
@keyframes download-modal-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.download-modal__head {
  position: relative;
  flex: none;
  padding: 36px 96px 26px 40px;
  border-bottom: 1px solid #dbdbdb;
}
.download-modal__metarow {
  display: flex;
  align-items: center;
  gap: 12px;
}
.download-modal__title {
  margin: 12px 0 0;
  font-size: 24px;
  font-weight: bold;
  line-height: 1.2;
}
.download-modal__close {
  position: absolute;
  top: 34px;
  right: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: opacity 0.2s;
}
.download-modal__close:hover {
  opacity: 0.7;
}
.download-modal__close svg {
  display: block;
  width: 44px;
  height: 44px;
}
.download-modal__body {
  display: flex;
  gap: 40px;
  padding: 32px 40px 12px;
}
.download-modal__preview-wrap {
  flex: none;
  width: 560px;
}
.download-modal__preview {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9; /* 中面画像（スライド）の比率 */
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  background: #fff;
}
.download-modal__preview > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.download-modal__pl {
  position: absolute;
  left: 8%;
  border-radius: 2px;
  background: #e6e8e6;
}
.download-modal__pl--1 {
  top: 11.3%;
  width: 45%;
  height: 7%;
}
.download-modal__pl--2 {
  top: 24.3%;
  width: 35%;
  height: 5%;
}
.download-modal__pfig {
  position: absolute;
  top: 36%;
  right: 8%;
  left: 8%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46%;
  border-radius: 3px;
  background: #f3f9ee;
  font-size: 16px;
  color: #9aa09c;
}
.download-modal__pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: bold;
}
.download-modal__pager button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
.download-modal__pager button:hover {
  background: #f3f9ee;
}
.download-modal__pager button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.download-modal__pager button:disabled:hover {
  background: transparent;
}
.download-modal__pager svg {
  width: 8px;
  height: 14px;
}
.download-modal__toc {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}
.download-modal__toc-title {
  font-size: 16px;
  font-weight: bold;
}
.download-modal__toc-list {
  margin-top: 20px;
}
.download-modal__toc-list li {
  display: flex;
  padding: 0 0 13px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  line-height: 1.2;
}
.download-modal__toc-list li + li {
  padding-top: 13px;
}
.download-modal__toc-no {
  flex: none;
  width: 36px;
  font-weight: bold;
  color: #1b9e5a;
}
.download-modal__foot {
  display: flex;
  flex: none;
  justify-content: center;
  padding: 24px 40px 40px;
  border-top: 1px solid #dbdbdb;
}
.download-add--modal {
  width: 260px;
  height: 52px;
  border-radius: 26px;
  font-size: 16px;
}

/* =============================================
  Tablet
============================================= */
@media screen and (min-width: 768px) and (max-width: 1199px) {
  .download-hero__main {
    flex: 1;
    width: auto;
    min-width: 0;
  }
  .download-hero__visual {
    flex-wrap: wrap;
  }
  .download-time {
    right: -12px;
  }
  .download-docs__grid {
    grid-template-columns: 1fr;
  }
}
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .download-hero__inner {
    flex-direction: column;
    align-items: center;
  }
  .download-hero__main {
    flex: none;
    width: 600px;
    max-width: 100%;
  }
  .download-hero__form {
    margin-top: 40px;
  }
  .download-bottom__card .download-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .download-bottom__card .download-field--department,
  .download-bottom__card .download-field--status {
    grid-column: auto;
  }
}

/* =============================================
  SP
============================================= */
@media screen and (max-width: 767px) {
  /* FV */
  .download-hero {
    padding-top: 80px;
  }
  .download-hero__inner {
    flex-direction: column;
    gap: 0;
    padding: 28px 20px 48px;
  }
  .download-hero__main {
    width: 100%;
  }
  .download-hero__label {
    height: 32px;
    border-radius: 16px;
    font-size: 13px;
  }
  .download-hero__title {
    margin-top: 13px;
    font-size: 28px;
  }
  .download-hero__lead {
    margin-top: 15px;
    font-size: 14px;
  }
  .download-hero__visual {
    flex-direction: column;
    gap: 0;
    margin-top: 24px;
  }
  .download-cover--hero {
    width: 100%;
  }
  .download-hero__pages {
    padding-top: 0;
  }
  /* スマホは表紙のみ。中面イメージは出さない */
  .download-hero__pages-caption,
  .download-hero__pages-stack {
    display: none;
  }
  .download-hero__pills {
    margin-top: 16px;
  }
  .download-hero__pill {
    height: 30px;
    padding: 0 14px;
    border-radius: 15px;
    font-size: 12px;
  }
  .download-learn {
    margin-top: 24px;
    padding: 24px 24px 28px;
  }
  .download-learn__title {
    margin-bottom: 12px;
    font-size: 15px;
  }
  .download-learn .download-checklist--lg li {
    padding-left: 22px;
    font-size: 14px;
    line-height: 1.8;
  }
  .download-learn .download-checklist--lg li::before {
    top: 4.5px;
  }
  .download-learn .download-checklist--lg li + li {
    margin-top: 8px;
  }

  /* Card */
  .download-hero__form {
    width: 100%;
    margin-top: 48px;
  }
  .download-time {
    top: -56px;
    right: 0;
    width: 60px;
    height: 60px;
  }
  .download-time span {
    font-size: 9px;
  }
  .download-time strong {
    font-size: 17px;
  }
  .download-card__header {
    height: 56px;
  }
  .download-card__body {
    padding: 20px 20px 28px;
  }
  .download-selected {
    grid-template-columns: 88px 1fr;
    column-gap: 12px;
    row-gap: 10px;
    padding: 12px;
  }
  .download-selected .download-cover--thumb {
    grid-row: auto;
    width: 88px;
  }
  .download-selected__main {
    font-size: 13px;
  }
  .download-selected__added {
    grid-column: 1 / -1;
    font-size: 12px;
  }
  .download-fields {
    display: flex;
    flex-direction: column;
  }
  .download-field--tel {
    order: 1;
  }
  .download-field--department,
  .download-field--status {
    order: 2;
  }
  .download-check {
    font-size: 13px;
  }
  .download-btn-primary {
    font-size: 16px;
  }
  .download-card__note {
    margin-top: 12px;
    font-size: 12px;
  }

  /* See more */
  .download-seemore {
    padding: 36px 20px 28px;
  }
  .download-seemore__title {
    font-size: 20px;
  }
  .download-seemore__text {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.7;
  }
  .download-seemore__arrow {
    margin-top: 20px;
  }
  .download-seemore__arrow img {
    width: 36px;
    height: 36px;
  }

  /* Docs */
  .download-docs {
    padding: 62px 0 48px;
  }
  .download-docs__head {
    display: block;
    padding: 0 20px;
  }
  .download-docs__title {
    font-size: 26px;
  }
  .download-docs__sub {
    margin-top: 9px;
    font-size: 13px;
  }
  .download-docs__cats {
    gap: 8px;
    margin-top: 19px;
    padding: 0 20px 2px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .download-docs__cats::-webkit-scrollbar {
    display: none;
  }
  .download-cat {
    flex: none;
    height: 38px;
    padding: 0 16px;
    border-radius: 19px;
    font-size: 13px;
  }
  .download-docs__tags {
    margin-top: 12px;
    padding: 0 20px;
  }
  .download-docs__tags-label {
    display: none;
  }
  .download-tag {
    height: 30px;
    padding: 0 12px;
    border-radius: 15px;
    font-size: 12px;
  }
  .download-docs__grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 28px;
    padding: 0 20px;
  }
  .download-docs__empty {
    padding: 0 20px;
  }

  /* SP は左右の枠を外し、表紙の横にタイトル、その下に本文を並べる */
  .download-doc {
    grid-template-columns: 128px minmax(0, 1fr);
    grid-template-areas:
      "meta meta"
      "cover title"
      "peek title"
      "body body"
      "actions actions";
    column-gap: 14px;
    padding: 16px;
  }
  .download-doc__added {
    width: 24px;
    height: 24px;
  }
  .download-doc__metarow {
    grid-area: meta;
    gap: 6px 8px;
  }
  .download-catbadge,
  .download-doc__tag {
    font-size: 11px;
  }
  .download-doc__date {
    font-size: 11px;
  }
  .download-doc__side,
  .download-doc__main {
    display: contents;
  }
  .download-doc .download-cover--card {
    grid-area: cover;
    margin-top: 14px;
  }
  .download-doc__peek {
    grid-area: peek;
    justify-self: start;
    margin-top: 8px;
    font-size: 11px;
  }
  .download-doc__title {
    grid-area: title;
    margin-top: 12px;
    font-size: 16px;
  }
  .download-doc__body {
    grid-area: body;
    margin-top: 16px;
  }
  .download-doc__learn {
    font-size: 12px;
  }
  .download-doc .download-checklist {
    margin-top: 7px;
  }
  .download-doc .download-checklist li {
    padding-left: 21px;
    font-size: 13px;
  }
  .download-doc .download-checklist li::before {
    top: 2.5px;
    width: 14px;
  }
  .download-doc .download-checklist li + li {
    margin-top: 6px;
  }
  .download-doc__actions {
    grid-area: actions;
    margin-top: 17px;
  }
  .download-add {
    width: 168px;
  }
  .download-doc--coming {
    display: none;
  }

  /* Fixed bar */
  .download-fixbar {
    bottom: 0;
    padding: 0;
  }
  .download-fixbar__inner {
    height: 80px;
    padding: 0 20px;
    border-radius: 0;
    box-shadow: 0 -4px 24px rgba(43, 49, 46, 0.12);
  }
  .download-fixbar__info {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .download-fixbar__main {
    font-size: 12px;
  }
  .download-fixbar__pill {
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    font-size: 12px;
  }
  .download-fixbar__names {
    display: none;
  }
  .download-fixbar__btn {
    height: 56px;
    width: 176px;
    font-size: 14px;
  }

  /* Bottom form */
  .download-bottom {
    padding: 77px 20px calc(25vw + 16px);
  }
  .download-bottom__title {
    padding-bottom: 14px;
    font-size: 22px;
    line-height: 1.7;
  }
  .download-bottom__title::after {
    width: 32px;
    height: 3px;
    margin-left: -16px;
  }
  .download-bottom__lead {
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.8;
  }
  .download-bottom__card {
    margin-top: 32px;
    padding: 24px 20px 28px;
  }
  .download-bottom__chips {
    flex-direction: column;
    align-items: flex-start;
  }
  .download-chip {
    max-width: 100%;
    height: auto;
    min-height: 30px;
    padding-block: 4px;
    border-radius: 15px;
    font-size: 12px;
    line-height: 1.4;
    white-space: normal;
  }
  .download-chip--selected {
    padding: 4px 8px 4px 16px;
  }
  .download-bottom__addmore {
    margin: 4px 0 0;
    font-size: 12px;
  }
  .download-bottom__card .download-fields {
    gap: 18px;
    margin-top: 26px;
  }
  .download-bottom__card .download-checks {
    margin-top: 22px;
  }
  .download-bottom__bubble {
    margin-top: 16px;
    font-size: 12px;
  }
  .download-bottom__submit {
    width: 100%;
  }

  /* Modal（SPデザイン未提供のため1カラムに再構成） */
  .download-modal {
    padding: 12px;
  }
  .download-modal__panel {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
  }
  .download-modal__head {
    padding: 20px 64px 18px 20px;
  }
  .download-modal__title {
    margin-top: 10px;
    font-size: 18px;
  }
  .download-modal__close {
    top: 14px;
    right: 12px;
  }
  .download-modal__body {
    flex-direction: column;
    gap: 24px;
    padding: 20px;
  }
  .download-modal__preview-wrap {
    width: 100%;
  }
  .download-modal__pfig {
    font-size: 12px;
  }
  .download-modal__pager {
    margin-top: 12px;
  }
  .download-modal__toc-list {
    margin-top: 12px;
  }
  .download-modal__foot {
    padding: 16px 20px 20px;
  }
  .download-add--modal {
    width: 100%;
    max-width: 260px;
  }

  /* Complete */
  .download-complete__title {
    font-size: 18px;
  }
  .download-complete__item {
    flex-direction: column;
    align-items: stretch;
  }
  .download-complete__btn {
    width: 100%;
  }
}
