@charset "utf-8";

/*============================　
　既存スタイル上書き及び追加
=============================*/
.p-contetns-contact:has(+ .p-contents) {
  padding-bottom: 0;
}

.s-top+.p-contetns-contact {
  padding-top: 32px;
}

.s-pickup+.p-contetns-contact {
  padding-top: 32px;
}

.l-contact__wrap:not(:root) {
  margin-top: 0;
}

/* メインビジュアル */
.p-top {
  position: relative;
  background-image: url("../images/mv.webp");
  background-position: center;
  background-size: cover;
}

.p-top__inner {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 40px 32px;
}

.p-top__titleArea {
  max-width: fit-content;
  margin-right: auto;
  width: 100%;
}

.p-top__heading {
  font-size: clamp(2rem, 1.7549rem + 1.0458vw, 2.5rem);
}

.p-top__text {
  font-size: clamp(1rem, 0.9387rem + 0.2614vw, 1.125rem);
}

@media not screen and (min-width: 768px) {
  .p-top {
    background-color: #000000;
    padding: 80px 0 64px;
    border-radius: 10px 10px 0 0;
    background-repeat: no-repeat;
    background-position: unset;
  }
}

@media screen and (min-width: 768px) {
  .p-top {
    padding: 120px 0 120px;
    background-color: #f0f0f0;
    border-radius: 15px 15px 0 0;
    background-attachment: fixed;
  }

  .p-top__inner {
    padding-inline: 4vw;
    max-width: 1420px;
    /* flex-direction: row; */
  }
}

@media screen and (min-width: 1024px) {
  .p-top__inner {
    flex-direction: row;
  }
}

/*============================　
　個別 s-xx
=============================*/

/* 共通 */
/* ------------------- */
.s-text {
  font-size: 16px;
}

.s-mx-auto {
  margin-inline: auto;
}

.s-fit-mx {
  max-width: fit-content;
  margin-inline: auto;
}

/* コンテンツ */
/* ------------------- */
.s-wrapper {
  position: relative;
  padding-top: clamp(3rem, 2.5098rem + 2.0915vw, 4rem);
  padding-bottom: 80px;
  margin-inline: auto;
}

.s-wrapper::after {
  position: absolute;
  z-index: -1;
  width: 100vw;
  content: "";
  display: block;
  background-color: #e9ecf2;
  height: 100%;
  inset: 0px;
  margin-inline: calc(50% - 50vw);
}

/* ナビゲーション */
.s-nav__lists {
  overflow: hidden;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(1, 1fr);
  border-radius: 8px;
}

.s-nav__item a {
  display: grid;
  place-content: center;
  height: 100%;
  font-size: 18px;
  font-weight: bold;
  padding: 12px;
  background-color: #fff;
  translate: 0;
  transition-duration: 0.3s;
}

.s-nav__item.is-disabled {
  opacity: 0.7;
}

.s-nav__item.is-disabled a {
  pointer-events: none;
}

@media (any-hover: hover) {
  .s-nav__item a:hover {
    color: #fff;
    background-color: #003366;
  }
}

@media screen and (min-width: 640px) {
  .s-nav__lists {
    overflow: hidden;
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(2, 1fr);
    border-radius: 8px;
  }
}

@media screen and (min-width: 768px) {
  .s-nav__lists {
    overflow: hidden;
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(4, 1fr);
    border-radius: 8px;
  }
}

/* 検索 */
.s-search {
  margin-top: 32px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.s-search__title {
  font-size: 15px;
  font-weight: bold;
}

.s-search__box {
  position: relative;
  max-width: 400px;
  width: 100%;
}

.s-search__box input {
  width: 100%;
  padding: 8px 12px;
  background-color: #fff;
  border: 1px solid #dadada;
  font: unset;
  font-size: 15px;
  line-height: 1;
  border-radius: calc(infinity * 1px);
}

.s-search__box input::placeholder {
  color: #8d8d8d;
  font-weight: normal;
}

.s-search__box button {
  position: absolute;
  top: 8px;
  right: 8px;
}

.s-dl__searchText {
  max-width: fit-content;
  margin-inline: auto;
  margin-top: 48px;
  font-size: 16px;
}

/* ダウンロードリスト */
.s-dl {
  margin-top: 0;
}

.s-dl__main {
  margin-top: 64px;
}

.s-dl__cont:not(:is(:first-of-type, [aria-label="検索結果"])) {
  margin-top: clamp(5rem, 3.7745rem + 5.2288vw, 7.5rem);
}

.s-dl__cont[aria-label="検索結果"] {
  min-height: 200px;
}

.s-dl__lists {
  margin-top: clamp(3rem, 2.5098rem + 2.0915vw, 4rem);
  display: grid;
  gap: 32px 24px;
  grid-template-columns: repeat(1, 1fr);
}

@media screen and (min-width: 640px) {
  .s-dl__lists {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 768px) {
  .s-dl__lists {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* カード */
.s-card {
  display: grid;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

:is(.s-card, .s-card__link):not(.s-card--pickup, .s-card--pickup .s-card__link) {
  grid-template-rows: subgrid;
  grid-row: span 4;
  gap: 0;
}

.s-card__body:not(.s-card--pickup .s-card__body) {
  display: grid;
  gap: 0;
  grid-template-rows: subgrid;
  grid-row: span 2;
}

.s-card__link {
  height: 100%;
  display: grid;
  padding: 16px;
  background-color: #fff;
  transition: opacity 0.5s;
}

.s-card__tag {
  z-index: 1;
  position: absolute;
}

.s-card__tag:not(.s-card__tag--pickup) {
  top: 0;
  right: 0;
  max-width: fit-content;
  padding: 3px 8px 2px;
  background-color: #ff0000;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
}

.s-card__tag--pickup {
  top: 4px;
  left: 4px;
  padding-top: 4px;
  width: 64px;
  aspect-ratio: 1;
  place-content: center;
  border-radius: calc(infinity * 1px);
  color: #fff;
  background: linear-gradient(180deg, #4fc0c5 0%, #5884c8 100%);
  font-size: 16px;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-align: center;
}

.s-card__cover {
  overflow: hidden;
  background-color: #f4f7fd;
  border-radius: 4px;
}

.s-card__cover>div {
  padding: 32px 24px;
}

.s-card__cover img {
  max-width: 100%;
  width: 100%;
  object-fit: contain;
  /* aspect-ratio: 600 / 422; */
  background-color: #fff;
  transition: scale 0.5s;
  box-shadow: 9px 266px 106px rgba(0, 0, 0, 0.03), 5px 150px 90px rgba(0, 0, 0, 0.04), 1px 17px 37px rgba(0, 0, 0, 0.12);
}

.s-card__body {
  margin-top: 24px;
}

.s-card__title {
  font-size: clamp(1.125rem, calc(1.054932735426009rem + 0.29895366218236175vw), 1.25rem);
  font-weight: 600;
  line-height: 1.3;
}

.s-card__text {
  margin-top: 12px;
}

.s-card__button {
  place-self: end;
  margin-top: 40px;
  max-width: 100%;
  margin-inline: auto;
}

.s-card__button.c-rounded-button_dl {
  width: 150px;
}

.s-card__button .p-contetns-contact__text_dl {
  font-size: 0.875rem;
}

@media (any-hover: hover) {
  .s-card__link:hover {
    opacity: 0.8;
  }

  .s-card__link:hover .c-rounded-button--border-black .c-rounded-button__text {
    color: #fff;
  }

  .s-card__link:hover .c-rounded-button:not(.is-disabled-hover):before {
    transform-origin: left top;
    transform: scale(1, 1);
  }

  .s-card__link:hover .s-card__cover img {
    scale: 1.2;
  }

  .s-card__link:hover .p-contetns-contact__text_dl {
    color: #000;
  }

  .s-card__link:hover .c-rounded-button_dl:not(.is-disabled-hover):before {
    transform-origin: left top;
    transform: scale(1, 1);
  }
}

/* ピックアップカード */
.s-pickup {
  width: 100%;
  container-type: inline-size;
}

.s-card--pickup {
  opacity: 0;
  box-shadow: 0px 0rem 8rem 2rem hsl(200 50% 20% / 10%);
  animation: fadeIn 1s ease-in 1.2s;
  animation-fill-mode: forwards;
}

.s-card--pickup .s-card__link {
  padding: 24px;
}

.s-card--pickup .s-card__cover>div {
  place-content: center;
  padding: 0;
}

.s-card--pickup .s-card__title {
  color: #003366;
}

@container (min-width: 520px) {
  .s-card--pickup .s-card__link {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    gap: 24px 32px;
    padding: 40px;
  }

  .s-card--pickup .s-card__cover {
    align-self: self-start;
    grid-column: 1;
    grid-row: 1 / 3;
    width: 100%;
  }

  .s-card--pickup .s-card__body {
    margin-top: 0;
  }

  .s-card--pickup .s-card__text {
    align-self: center;
    grid-column: 2;
    grid-row: 1 / 1;
  }

  .s-card--pickup .s-card__button {
    margin-top: 0;
    align-self: end;
    grid-column: 2;
    margin-left: auto;
    margin-right: unset;
  }

  .s-card__tag--pickup {
    top: 12px;
    left: 12px;
  }
}

/* もっと見る */
.s-dl__moreBtn {
  position: relative;
  overflow: hidden;
  display: block;
  margin-top: clamp(2.5rem, 2.0098rem + 2.0915vw, 3.5rem);
  max-width: 380px;
  width: 100%;
  margin-inline: auto;
  padding: 12px 16px 10px;
  font-size: clamp(1rem, 0.8775rem + 0.5229vw, 1.25rem);
  font-weight: bold;
  line-height: 1.3;
  text-align: center;
  border-radius: calc(infinity * 1px);
  background-color: #fff;
  transition: opacity 0.5s;
}

.s-dl__moreBtn::before {
  content: "";
  width: 100%;
  height: 100%;
  background-color: #003366;
  transform: scale(0, 1);
  transform-origin: right top;
  position: absolute;
  top: 0;
  left: 0;
}

.s-dl__moreBtn span {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  column-gap: calc(8 * 1em / 16);
  align-items: center;
  color: #003366;
}

.s-dl__moreBtn span::before {
  content: "";
  margin-top: -2px;
  mask-image: url("../images/icon_morebtn.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  position: relative;
  justify-self: start;
  inline-size: 24px;
  aspect-ratio: 1;
  background-color: #003366;
}

.s-dl__moreBtn span::after {
  content: "";
}

@media (any-hover: hover) {
  .s-dl__moreBtn:hover {
    opacity: 0.8;
  }
}

/* 非表示関連 */
.s-card.is-hidden {
  display: none;
}

.s-card.is-fading-in {
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.s-card.is-visible {
  opacity: 1;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}