/* ==========================================================================
   お役立ち資料・資料請求（/download/）  page-download.php
   接頭辞：.p-dlh-
   ========================================================================== */
.p-dlh {
  --dlh-red: #d6000f;
  --dlh-ink: #1a1a1a;
  --dlh-text: #333;
  --dlh-sub: #666;
  --dlh-gray: #f4f4f4;
  --dlh-line: #e3e3e3;
  color: var(--dlh-text);
}

/* FV内のページ内リンク */
.p-dlh-jump {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
}
.p-dlh-jump a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--dlh-ink);
  background: #fff;
  color: var(--dlh-ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.p-dlh-jump a::after {
  content: "";
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-2px, -2px);
}
.p-dlh-jump li:first-child a {
  background: var(--dlh-red);
  border-color: var(--dlh-red);
  color: #fff;
}
.p-dlh-jump a:hover {
  opacity: 0.85;
}

/* 共通の見出し */
.p-dlh-head {
  text-align: center;
  margin: 0 auto 40px;
  max-width: 760px;
}
.p-dlh-head__en {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--dlh-red);
  margin: 0 0 8px;
}
.p-dlh-head__ja {
  font-size: 32px;
  font-weight: 700;
  color: var(--dlh-ink);
  line-height: 1.4;
  margin: 0;
}
.p-dlh-head__ja::after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  margin: 18px auto 0;
  background: var(--dlh-red);
}
.p-dlh-head__lead {
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--dlh-sub);
}

/* ---- お役立ち資料 -------------------------------------------------------- */
.p-dlh-guides {
  padding: 80px 0 90px;
  scroll-margin-top: 80px;
}
.p-dlh-steps {
  list-style: none;
  margin: 0 auto 48px;
  padding: 0;
  max-width: 880px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  counter-reset: none;
}
.p-dlh-steps li {
  position: relative;
  background: var(--dlh-gray);
  border-radius: 14px;
  padding: 18px 18px 18px 64px;
  min-height: 72px;
}
.p-dlh-steps__n {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--dlh-red);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.p-dlh-steps b {
  display: block;
  font-size: 15px;
  color: var(--dlh-ink);
}
.p-dlh-steps small {
  display: block;
  font-size: 12px;
  color: var(--dlh-sub);
  margin-top: 2px;
  line-height: 1.6;
}

/* 絞り込み */
.p-dlh-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 0 32px;
}
.p-dlh-filter__btn {
  border: 1px solid var(--dlh-line);
  background: #fff;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  color: var(--dlh-text);
  cursor: pointer;
}
.p-dlh-filter__btn.is-active {
  background: var(--dlh-ink);
  border-color: var(--dlh-ink);
  color: #fff;
  font-weight: 700;
}

/* カード一覧 */
.p-dlh-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.p-dlh-card[hidden] {
  display: none;
}
.p-dlh-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--dlh-line);
  border-radius: 16px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.25s, transform 0.25s;
}
.p-dlh-card__link:hover {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}
.p-dlh-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--dlh-gray);
  overflow: hidden;
}
.p-dlh-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.p-dlh-card__link:hover .p-dlh-card__img {
  transform: scale(1.03);
}
.p-dlh-card__new {
  position: absolute;
  left: 12px;
  top: 12px;
  background: var(--dlh-red);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
}
.p-dlh-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}
.p-dlh-card__cats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
}
.p-dlh-card__cats li {
  font-size: 11px;
  font-weight: 700;
  color: var(--dlh-red);
  border: 1px solid var(--dlh-red);
  border-radius: 999px;
  padding: 2px 10px;
}
.p-dlh-card__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--dlh-ink);
  margin: 0;
}
.p-dlh-card__desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--dlh-sub);
  margin: 10px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.p-dlh-card__foot {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.p-dlh-card__meta {
  font-size: 12px;
  color: var(--dlh-sub);
}
.p-dlh-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--dlh-red);
  white-space: nowrap;
}
.p-dlh-card__cta i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--dlh-red);
  position: relative;
}
.p-dlh-card__cta i::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  width: 6px;
  height: 6px;
  border: solid #fff;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}

/* 資料が1つのときは横長カード */
.p-dlh-list--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 980px;
  margin: 0 auto;
}
.p-dlh-list--single .p-dlh-card__link {
  flex-direction: row;
}
/* 横並び時は高さが本文に合わせて伸びるため、表紙を切らずに中央表示（背景は表紙と同じ黒） */
.p-dlh-list--single .p-dlh-card__thumb {
  flex: 0 0 50%;
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  background: #1a1a1a;
}
.p-dlh-list--single .p-dlh-card__img {
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.p-dlh-list--single .p-dlh-card__body {
  padding: 32px 36px;
  justify-content: center;
}
.p-dlh-list--single .p-dlh-card__title {
  font-size: 22px;
}
.p-dlh-list--single .p-dlh-card__foot {
  margin-top: 20px;
}
.p-dlh-list--single .p-dlh-card__cta {
  background: var(--dlh-red);
  color: #fff;
  padding: 12px 18px 12px 22px;
  border-radius: 999px;
}
.p-dlh-list--single .p-dlh-card__cta i {
  background: #fff;
}
.p-dlh-list--single .p-dlh-card__cta i::after {
  border-color: var(--dlh-red);
}

.p-dlh-guides__more {
  text-align: center;
  font-size: 13px;
  color: var(--dlh-sub);
  margin: 32px 0 0;
}

/* ---- サービス資料のご請求 ------------------------------------------------- */
.p-dlh-service {
  background: var(--dlh-gray);
  padding-top: 80px;
  scroll-margin-top: 80px;
}
.p-dlh-service .p-dlh-head {
  margin-bottom: 32px;
}

/* ---- 次の一歩 ------------------------------------------------------------ */
.p-dlh-next {
  padding: 80px 0 100px;
}
.p-dlh-next__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.p-dlh-next__item {
  background: var(--dlh-gray);
  border-radius: 20px;
  padding: 36px 36px 32px;
  display: flex;
  flex-direction: column;
}
.p-dlh-next__item--dark {
  background: var(--dlh-ink);
  color: #fff;
}
.p-dlh-next__en {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--dlh-red);
  margin: 0 0 8px;
}
.p-dlh-next__ttl {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 10px;
}
.p-dlh-next__txt {
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 24px;
  opacity: 0.85;
}
.p-dlh-next__btn {
  margin-top: auto;
  align-self: flex-start;
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--dlh-red);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.p-dlh-next__btn:hover {
  opacity: 0.85;
}

/* ---- SP ------------------------------------------------------------------ */
@media screen and (max-width: 767px) {
  .p-dlh-jump a {
    padding: 11px 18px;
    font-size: 13px;
  }
  .p-dlh-head__ja {
    font-size: 24px;
  }
  .p-dlh-head__lead {
    font-size: 14px;
    text-align: left;
  }
  .p-dlh-guides,
  .p-dlh-next {
    padding: 56px 0 64px;
  }
  .p-dlh-service {
    padding-top: 56px;
  }
  .p-dlh-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 32px;
  }
  .p-dlh-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
  }
  .p-dlh-filter__btn {
    flex: 0 0 auto;
  }
  .p-dlh-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .p-dlh-list--single .p-dlh-card__link {
    flex-direction: column;
  }
  .p-dlh-list--single .p-dlh-card__thumb {
    flex: none;
  }
  .p-dlh-list--single .p-dlh-card__body {
    padding: 20px 22px 22px;
  }
  .p-dlh-list--single .p-dlh-card__title {
    font-size: 18px;
  }
  .p-dlh-card__foot {
    flex-wrap: wrap;
  }
  .p-dlh-next__list {
    grid-template-columns: minmax(0, 1fr);
  }
  .p-dlh-next__item {
    padding: 28px 22px;
  }
  .p-dlh-next__btn {
    align-self: stretch;
    text-align: center;
  }
}

/* ==========================================================================
   2026-10-21 追加：サービス資料のカード化・件数表示・NEWバッジの位置
   ========================================================================== */
/* FVのページ内リンクの件数 */
.p-dlh-jump small,
.p-dlh-filter__btn small {
  display: inline-block;
  min-width: 1.6em;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}
.p-dlh-jump li:first-child a small,
.p-dlh-filter__btn.is-active small {
  background: rgba(255, 255, 255, 0.25);
}

/* ダウンロードの流れ（FV直下） */
.p-dlh-flow {
  padding: 24px 0 0;
}
.p-dlh-flow .p-dlh-steps {
  margin: 0 auto;
}

/* サービス資料 */
.p-dlh-service {
  margin-top: 56px;
  padding-top: 72px;
}
.p-dlh-service__body {
  padding-bottom: 80px;
}
.p-dlh-list--wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1040px;
  margin: 0 auto;
}
.p-dlh-list--wide .p-dlh-card__title {
  font-size: 20px;
}
.p-dlh-card--service .p-dlh-card__cats li {
  color: #fff;
  background: var(--dlh-ink);
  border-color: var(--dlh-ink);
}
.p-dlh-card--service .p-dlh-card__cta {
  background: var(--dlh-red);
  color: #fff;
  padding: 10px 14px 10px 20px;
  border-radius: 999px;
}
.p-dlh-card--service .p-dlh-card__cta i {
  background: #fff;
}
.p-dlh-card--service .p-dlh-card__cta i::after {
  border-color: var(--dlh-red);
}

/* NEWバッジは表紙に重ねず、カテゴリの横に */
.p-dlh-card__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
}
.p-dlh-card__tags .p-dlh-card__cats {
  margin: 0;
}
.p-dlh-card__tags .p-dlh-card__new {
  position: static;
  padding: 2px 9px;
  font-size: 10px;
  line-height: 1.7;
}

/* お役立ち資料 */
.p-dlh-guides {
  padding-top: 80px;
}

@media screen and (max-width: 767px) {
  .p-dlh-flow {
    padding-top: 32px;
  }
  .p-dlh-service {
    margin-top: 40px;
    padding-top: 56px;
  }
  .p-dlh-service__body {
    padding-bottom: 56px;
  }
  .p-dlh-list--wide {
    grid-template-columns: minmax(0, 1fr);
  }
  .p-dlh-list--wide .p-dlh-card__title {
    font-size: 18px;
  }
  .p-dlh-guides {
    padding-top: 56px;
  }
}

/* ---- お役立ち資料：準備中（0件のとき「Coming Soon」） ---------------------- */
.p-dlh-soon {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 40px;
  background: #fff;
  border: 1px solid var(--dlh-line);
  border-top: 4px solid var(--dlh-red);
  text-align: center;
}

.p-dlh-soon__en {
  margin: 0 0 8px;
  color: var(--dlh-red);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.p-dlh-soon__ttl {
  margin: 0 0 16px;
  color: var(--dlh-ink);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
}

.p-dlh-soon__txt {
  margin: 0;
  color: var(--dlh-text);
  font-size: 15px;
  line-height: 1.9;
}

@media screen and (max-width: 767px) {
  .p-dlh-soon {
    padding: 32px 20px;
  }

  .p-dlh-soon__ttl {
    font-size: 20px;
  }

  .p-dlh-soon__txt {
    font-size: 14px;
    text-align: left;
  }
}
