/* Only for Nipponseika block (page-hole-transport-material-nipponseika) */

.htm_nipponseika .main_txt {
  max-width: 980px;
  margin: 0 auto;
}

.htm_nipponseika .text-justify {
  text-align: justify;
  text-justify: inter-word;
}

.htm_nipponseika .htm_btn_bottom {
  display: none;
}

.htm_nipponseika .htm_btn_top {
  display: flex;
}

.htm_nipponseika__cards {
  margin: auto;
  max-width: 980px;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: stretch;
}

.htm_card {
  border: 1px solid #EBEBEB;
  border-radius: 5px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.htm_card--dev {
  position: relative;
}

.htm_corner_tag {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 14px 12px 0 0;
  background: #D7E9FF;
  clip-path: polygon(100% 0%, 0% 0%, 100% 80%);
  z-index: 2;
  pointer-events: none;
}

.htm_card__head {
  padding: 30px 30px 0;
  gap: 14px;
}

.htm_logo {
  width: 100%;
  max-width: 290px;
}

.htm_logo img {
  width: 60%;
  height: auto;
  display: block;
}

.htm_molecule {
  padding: 16px 30px 0;
}

.htm_molecule img {
  width: 100%;
  height: auto;
  display: block;
}

.htm_card__body {
  padding: 26px 30px 34px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tt_box {
  margin-bottom: 32px;
}

@media screen and (max-width: 1024px) {
  .htm_nipponseika__cards {
    gap: 28px;
  }
}

@media screen and (max-width: 768px) {
  .htm_nipponseika__cards {
    margin-top: 50px;
    grid-template-columns: 1fr;
    gap: 80px;
  }

  .htm_nipponseika__cards > .htm_card + .htm_card {
    position: relative;
    overflow: visible;
  }

  .htm_nipponseika__cards > .htm_card + .htm_card::before {
    content: "";
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    height: 1px;
    background: #EBEBEB;
  }

  .htm_card {
    border: none;
    box-shadow: none;
  }

  .htm_card__head {
    padding: 22px 0 0 0;
  }

  .htm_molecule {
    padding: 12px 0 0 0;
  }

  .htm_card__body {
    padding: 22px 0 0 0;
  }
}

@media screen and (min-width: 769px) {
  .htm_nipponseika .htm_btn_top {
    display: none;
  }

  .htm_nipponseika .htm_btn_bottom {
    display: flex;
  }
}
