html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* スマホ時のローカルナビ位置をspec/feature/customers/solutionページに合わせる */
@media only screen and (width <= 768px) {
  .p-lnav--download {
    top: 0px;
  }
}

/* common/css/style.css の .l-main--spec .l-main__inner はspec.htmとも共用のため、
   このページだけ上部余白をなくすようここで上書き（spec.htmには影響させない） */
@media print, screen and (width > 768px) {
  .l-main--spec .l-main__inner {
    padding-top: 20px;
  }
}

/* ==========================================================================
   p-doclist (お役立ち資料ダウンロード)
   ========================================================================== */
.p-doclist {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 0 30px 60px;
}
@media print, screen and (width > 768px) {
  .p-doclist {
    padding: 0 0 100px;
  }
}

/* カタログセクションへのアンカーリンク */
.p-doclist__anchor {
  margin: 0 0 20px;
  text-align: right;
}
.p-doclist__anchorlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #005ab4 !important;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none !important;
}
.p-doclist__anchorlink::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 2px solid #005ab4;
  border-bottom: 2px solid #005ab4;
  transform: rotate(45deg);
}
.p-doclist__anchorlink:hover {
  text-decoration: underline !important;
}

/* 見出しバナー(お役立ち資料 / カタログダウンロード 共通) */
.p-doclist__heading {
  margin: 0 0 30px;
  padding: 10px 10px 8px;
  background: linear-gradient(to right, #3caad0 0%, #28be5a 99%);
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  text-align: center;
}
@media print, screen and (width > 768px) {
  .p-doclist__heading {
    padding: 18px 10px;
    margin-bottom: 30px;
    font-size: 21px;
    font-weight: 700;
  }
}
@media only screen and (width <= 768px) {
  #catalog {
    scroll-margin-top: 175px; /* 固定ローカルナビ(155px)＋余白20px */
  }
}
.p-doclist__list + .p-doclist__heading {
  margin-top: 60px;
}
@media print, screen and (width > 768px) {
  .p-doclist__list + .p-doclist__heading {
    margin-top: 120px;
  }
}

.p-doclist__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media print, screen and (width > 768px) {
  .p-doclist__list {
    grid-template-columns: repeat(3, 380px);
    justify-content: space-between;
  }
}

.p-doclist__card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
  border: 1px solid #c7c7c7;
}

.p-doclist__thumb {
  width: 100%;
  margin: 0; /* figureのデフォルト余白リセット */
  aspect-ratio: 280 / 156;
  overflow: hidden;
}
.p-doclist__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* カタログ画像のみクロップして表示（他のカードはcontainのまま） */
.p-doclist__list--catalog .p-doclist__thumb img {
  object-fit: cover;
}

.p-doclist__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 15px 15px 20px;
}
@media print, screen and (width > 768px) {
  .p-doclist__body {
    padding: 15px 0 20px;
  }
}

.p-doclist__title {
  margin: 0 0 15px;
  width: 100%;
  color: #193044;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}
@media print, screen and (width > 768px) {
  .p-doclist__title {
    text-wrap: balance;
  }
}

.p-doclist__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  width: 100%;
}

.p-doclist__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 240px;
  height: 40px;
  padding: 0 16px;
  background-color: #233a99;
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
}
.p-doclist__btn__txt {
  color: #fff !important;
}

/* 別窓アイコン（白）。altでアクセシブルネームに別窓遷移を含める */
.p-doclist__btn__ico {
  display: inline-block;
  flex-shrink: 0;
  margin-left: 8px;
}
