/* ==========================================================================
   download/index.html 専用スタイル
   PC   = @media (min-width:1200px) 固定px
   タブレット = @media (min-width:769px) and (max-width:1199px) vwスケール(基準960px, px/9.6)
   SP   = @media (max-width:768px) Figmaデザイン準拠で固定px
   カードリストの列数: ≥961px 4列 / 769〜960px 3列 / ≤768px 1列
   ※ ヒーロー・見出し共通部分(.m-heading等)・パンくず・Contact・footerは
     style.css側の既存クラスに任せるため、ここでは触らない。
   ========================================================================== */

/* ---------- セクション共通 ---------- */
#kantanpack {
  padding-top: 120px;
}
#brochures {
  margin-top: 64px;
  padding-bottom: 24px;
}
@media (min-width: 769px) and (max-width: 1199px) {
  #kantanpack {
    padding-top: 12.5vw;
  }
  #brochures {
    margin-top: 6.6666vw;
  }
}
@media (max-width: 480px) {
  #kantanpack {
    padding-top: 32px;
  }
}

.l-dl-panel {
  margin: 0 24px;
  background: #edf8ff;
  border-radius: 48px;
  /* 左右24px: 1200px付近でリスト(max-width:1140px)が端に密着するのを防ぐ最低限の余白 */
  padding: 62px 24px 48px;
}
.l-dl-panel.-brochures {
  background: #f8fcff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}
@media (min-width: 769px) and (max-width: 1199px) {
  .l-dl-panel {
    margin: 0 2.5vw;
    border-radius: 5vw;
    /* この帯域はリストのmax-width(118.75vw)がパネル幅を超えカードが端に密着するため、
       blogの色付きセクション(.l-bg_inner内コンテンツのmargin:0 2.5vw)に合わせ左右余白を確保 */
    padding: 5vw 2.5vw;
  }
  .l-dl-panel.-brochures {
    gap: 6.6666vw;
  }
}
@media (max-width: 768px) {
  .l-dl-panel {
    /* SP以下はカードリスト側の margin で左右の余白を作るため、パネルは画面幅いっぱい */
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

/* ---------- かんたんパック カードリスト ---------- */
.m-dlList {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 16px;
  row-gap: 64px;
  max-width: 1140px;
  margin: 0 auto;
}
/* サムネ無しは .thumb.-noThumb 指定(本番はul内で有無が混在するため、liは共通のまま)。
   枠ボックスをカード幅より少し細く見せるためのインセット。
   テキスト・ボタンへの波及は後続兄弟セレクタ(~)で行う */
.m-dlList .item .thumb.-noThumb {
  width: calc(100% - 12px);
  margin-left: auto;
  margin-right: auto;
}
/* ボタン位置を行内で揃える: グリッド行の高さ(=行内最大カード)いっぱいに
   .txtを伸ばし、.btnを下端に押し下げる */
.m-dlList .item {
  display: flex;
  flex-direction: column;
}
.m-dlList .item .txt {
  flex-grow: 1;
}

/* 枠線は左半分#d5e6f1・右半分#e2f3ffの2トーン(Figma実測、50%ハード分割)。
   border-imageはborder-radiusと併用できないため、padding+グラデーション背景で表現 */
.m-dlList .item .img {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 4px;
  background: linear-gradient(90deg, #d5e6f1 50%, #e2f3ff 50%);
  border-radius: 15px;
  overflow: hidden;
}
.m-dlList .item .img img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 11px;
  background: #fff;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: top center;
  object-position: top center;
}
.m-dlList .item .thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 4px solid transparent;
  border-radius: 8px;
  /* 2トーンボーダー: 透明borderの下にborder-box背景を敷き、内側をpadding-box白で覆う */
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #d5e6f1 50%, #e2f3ff 50%) border-box;
}
.m-dlList .item .thumb img {
  width: 70px;
  height: 70px;
}

.m-dlList .item .txt {
  padding: 24px 16px 0;
}
.m-dlList .item .title {
  font-family: A1 Gothic B;
  font-weight: 700; /* A1 Gothic B不読込時の代替フォント用 */
  font-size: 20px;
  line-height: 28px;
  text-align: center;
  color: #2c3133;
}
.m-dlList .item .description {
  margin-top: 12px;
  font-size: 17px;
  line-height: 27px;
  text-align: left;
  color: #2c3133;
}

.m-dlList .item .btn {
  margin-top: 16px;
  padding: 0 8px;
}
.m-dlList .thumb.-noThumb ~ .txt,
.m-dlList .thumb.-noThumb ~ .btn {
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 769px) and (max-width: 1199px) {
  .m-dlList {
    column-gap: 1.6666vw;
    row-gap: 6.6666vw;
    max-width: 118.75vw;
  }
  .m-dlList .item .img {
    border-radius: 1.5625vw;
  }
  .m-dlList .item .img img {
    border-radius: calc(1.5625vw - 4px);
  }
  .m-dlList .item .thumb {
    border-radius: 0.8333vw;
  }
  .m-dlList .item .thumb img {
    width: 7.2916vw;
    height: 7.2916vw;
  }
  .m-dlList .item .txt {
    padding: 2.5vw 1.6666vw 0;
  }
  .m-dlList .item .title {
    font-size: 2.0833vw;
    line-height: 2.9166vw;
  }
  .m-dlList .item .description {
    margin-top: 1.25vw;
    font-size: 1.7708vw;
    line-height: 2.8125vw;
  }
  .m-dlList .item .btn {
    margin-top: 1.6666vw;
    padding: 0 0.8333vw;
  }
  .m-dlList .item .thumb.-noThumb {
    width: calc(100% - 1.25vw);
  }
  .m-dlList .thumb.-noThumb ~ .txt,
  .m-dlList .thumb.-noThumb ~ .btn {
    padding-left: 1.6666vw;
    padding-right: 1.6666vw;
  }
}

@media (max-width: 768px) {
  .m-dlList {
    grid-template-columns: 1fr;
    max-width: none;
    /* 左右余白は blog の .m-articleList .item と同値
       (.l-bg.-spWide .l-bg_inner 6.4vw + .m-articleList.-all padding 6.4vw) */
    margin: 0 12.8vw;
  }
}

/* ---------- 紹介資料 カードリスト ---------- */
.m-leafletList {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 16px;
  row-gap: 64px; /* ul統合前のパネルflex gapと同値(.m-dlListと同方式) */
  max-width: 1140px;
  margin: 0 auto;
}
/* ボタン位置を行内で揃える(.m-dlListと同方式) */
.m-leafletList .item {
  display: flex;
  flex-direction: column;
}
.m-leafletList .item .title {
  flex-grow: 1;
}
/* 枠線はパックカード同様、左半分#d5e6f1・右半分#e2f3ffの2トーン(Figma実測) */
.m-leafletList .item .img {
  display: block;
  position: relative;
  aspect-ratio: 178 / 260;
  padding: 4px;
  background: linear-gradient(90deg, #d5e6f1 50%, #e2f3ff 50%);
  border-radius: 8px;
  overflow: hidden;
}
.m-leafletList .item .img img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background: #fff;
  -o-object-fit: contain;
  object-fit: contain;
}
.m-leafletList .item .thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 178 / 260;
  border: 4px solid transparent;
  border-radius: 8px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #d5e6f1 50%, #e2f3ff 50%) border-box;
}
.m-leafletList .item .thumb img {
  width: 70px;
  height: 70px;
}
.m-leafletList .item .title {
  padding-top: 20px;
  min-height: 56px;
  font-family: A1 Gothic B;
  font-weight: 700; /* A1 Gothic B不読込時の代替フォント用 */
  font-size: 20px;
  line-height: 28px;
  text-align: center;
  color: #2c3133;
}
.m-leafletList .thumb.-noThumb ~ .title {
  padding-top: 20px;
  padding-bottom: 20px;
}
.m-leafletList .item .btn {
  margin-top: 16px;
  padding: 0 8px;
}
.m-leafletList .thumb.-noThumb ~ .btn {
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 769px) and (max-width: 1199px) {
  .m-leafletList {
    column-gap: 1.6666vw;
    row-gap: 6.6666vw;
    max-width: 118.75vw;
  }
  .m-leafletList .item .img,
  .m-leafletList .item .thumb {
    border-radius: 0.8333vw;
  }
  .m-leafletList .item .img img {
    border-radius: calc(0.8333vw - 4px);
  }
  .m-leafletList .item .thumb img {
    width: 7.2916vw;
    height: 7.2916vw;
  }
  .m-leafletList .item .title {
    padding-top: 2.0833vw;
    min-height: 5.8333vw;
    font-size: 2.0833vw;
    line-height: 2.9166vw;
  }
  .m-leafletList .thumb.-noThumb ~ .title {
    padding-top: 2.0833vw;
    padding-bottom: 2.0833vw;
  }
  .m-leafletList .item .btn {
    margin-top: 1.6666vw;
    padding: 0 0.8333vw;
  }
  .m-leafletList .thumb.-noThumb ~ .btn {
    padding-left: 1.6666vw;
    padding-right: 1.6666vw;
  }
}

@media (max-width: 768px) {
  .m-leafletList {
    grid-template-columns: 1fr;
    row-gap: 48px;
    max-width: none;
    margin: 0 12.8vw; /* .m-dlList と同じ左右余白(blog .m-articleList 準拠) */
  }
}

/* ---------- カードリストの列数(両リスト共通) ----------
   ≥961px: 4列(各リストの基本指定) / 769〜960px: 3列 / ≤768px: 1列(各リストのSP指定) */
@media (min-width: 769px) and (max-width: 960px) {
  .m-dlList,
  .m-leafletList {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- ダウンロードボタン(既存 .c-btn を上書き) ---------- */
.c-btn.-dl {
  height: 48px;
  padding: 0 16px;
  border-width: 2px;
  border-radius: 99px;
  box-shadow: 4px 4px 12px rgba(39, 70, 89, 0.12);
  justify-content: center;
}
/* 文字はデザイン通り全幅17px固定。style.cssのSP用vw指定(390px基準)だと
   481〜767pxで文字が拡大しはみ出すため上書き */
@media (max-width: 768px) {
  .c-btn.-dl {
    font-size: 17px;
    line-height: 1.4;
  }
}
/* アイコン枠は16px角・right10px(Figma準拠)。style.cssの .c-btn[href^="#"]:after が
   シェブロン用の8px角を当ててくるため、ダミーリンクでも明示指定して見切れを防ぐ */
.c-btn.-dl:after,
.c-btn.-dl[href^="#"]:after {
  width: 16px;
  height: 16px;
  right: 10px;
}
@media (min-width: 769px) and (max-width: 1199px) {
  .c-btn.-dl:after,
  .c-btn.-dl[href^="#"]:after {
    width: 1.6666vw;
    height: 1.6666vw;
    right: 1.0416vw;
  }
}
/* ダミーリンク(href="#")でも通常のアイコン表示にする。
   style.css の .c-btn[href^="#"] がシェブロン+シャドウ無しへ変えてしまうため戻す */
.c-btn.-dl[href^="#"]:after {
  background: url(../img/common/btn_arrow.svg) no-repeat 50% 50%;
  border: 0;
  rotate: none;
  translate: 0 -50%;
}
.c-btn.-dl[href^="#"]:hover:after {
  background-image: url(../img/common/btn_arrow_white.svg);
}
/* 紹介資料用ボタンはアローアイコン(target=_blankの外部アイコンを上書き) */
.c-btn.-dl.-file:after,
.c-btn.-dl.-file[href^="#"]:after {
  background-image: url(../img/common/btn_arrow.svg);
}
.c-btn.-dl.-file:hover:after,
.c-btn.-dl.-file[href^="#"]:hover:after {
  background-image: url(../img/common/btn_arrow_white.svg);
}

@media (min-width: 769px) and (max-width: 1199px) {
  .c-btn.-dl {
    height: 5vw;
    padding: 0 1.6666vw;
  }
}
