/* ==========
  section
========== */
section {
  border-bottom: 4px solid var(--colorLightGray);
}

.container {
  padding-block: 6rem;
}

.section__title {
  font-size: 3rem;
  font-weight: 800;
  font-family: "Nunito Sans", sans-serif;
  color: var(--colorMain);
  line-height: 130%;
}

.section__title--ja {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 700;
}

@media screen and (max-width:767px) {
  .container {
    padding-block: 4rem;
  }

  .section__title {
    font-size: min(10.25vw, 2.5rem);
  }

  .section__title--ja {
    font-size: min(3.08vw, 0.75rem);
  }
}

/* ==========
  mv
========== */
.mv {
  position: relative;
  border-bottom: none;
  overflow: hidden;
  padding-inline: 0;
  height: 100dvh;
}

.slider-wrapper {
  display: flex;
  overflow: hidden;
  gap: 0.5rem;
  width: 100%;
}

.slider {
  display: flex;
  flex-shrink: 0;
  animation: scroll-left 90s infinite linear .5s both;
  gap: 0.5rem;
}

@keyframes scroll-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

.slide {
  flex-shrink: 0;
}

.slide img {
  display: block;
  border-radius: 1.5rem;
  width: auto;
  height: 100dvh;
}

/* 画像の下部を暗くするグラデーション（imgには疑似要素が付けられないため親に重ねる） */
.mv .slide {
  position: relative;
}

.mv .slide::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}

.mv__leadText img {
  width: 49.11vw;
}

.mv__textWrap {
  position: absolute;
  bottom: 4.75vw;
  left: 4.5vw;
  opacity: 0;
  animation: fade-in 1s forwards;
  animation-delay: 0.35s;
  z-index: 2;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(3vw);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mv__text {
  font-size: 1.41vw;
  font-weight: 300;
  color: var(--colorWhite);
  letter-spacing: 0.05em;
  line-height: 1.5;
  margin-top: 1.35vw;
}

.mv__line {
  position: absolute;
  bottom: -0.35rem;
  left: 0;
  object-fit: cover;
  width: 100%;
  height: auto;
  z-index: 1;
}

.mv__line img {
  width: 100%;
}

.scrollDown {
  position: absolute;
  bottom: 4.375vw;
  right: 4.375vw;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scrollDown__text {
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1;
  color: var(--colorWhite);
  writing-mode: vertical-rl;
}

.scrollDown__line {
  position: relative;
  display: block;
  background-color: var(--colorWhite);
  margin: 0.9375rem auto 0;
  width: 1px;
  height: 3.75rem;
}

.scrollDown__line::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  display: block;
  background-color: var(--colorMain);
  border-radius: 50%;
  animation: scroll-down 5s infinite;
  width: 0.5rem;
  height: 0.5rem;
}

@keyframes scroll-down {
  0% {
    top: 0;
  }

  80% {
    top: 100%;
  }

  100% {
    top: 100%;
  }
}

@media screen and (max-width:767px) {
  .mv__textWrap {
    left: 4.35vw;
    bottom: 10.26vw;
  }

  .mv__leadText img {
    width: 62.3vw;
  }

  .mv__text {
    font-size: 4.1vw;
    margin-top: 5.5vw;
  }

  .mv__line {
    left: max(-32.82vw, -8rem);
  }

  .mv__line img {
    width: min(246vw, 60.1875rem);
    max-width: unset;
    max-height: 20rem;
  }

  .scrollDown {
    bottom: 8.21vw;
    right: 3.59vw;
  }

  .scrollDown__text {
    font-size: 0.58rem;
  }
}

/* ==========
  pickup
========== */
.pickup hgroup {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.pickup .section__title {
  font-size: 2rem;
}

.pickup__contentWrap {
  margin-top: 1.5rem;
}

.pickup__productList {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pickup__productListItem a {
  display: grid;
  grid-template-columns: min(7.1875vw + 92px, 230px) 1fr;
  background-color: var(--colorLightGray);
  border-radius: 0.5rem;
}

.pickup__productItemImg {
  border-radius: 0.5rem 0 0 0.5rem;
  overflow: hidden;
}

.pickup__productItemImg img {
  display: block;
  transition: transform 0.35s ease-out;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

@media (hover: hover) {
  .pickup__productListItem a:hover .pickup__productItemImg img {
    transform: scale(110%);
  }
}

.pickup__productItemTextWrap {
  display: flex;
  flex-direction: column;
  padding: min(1.875vw, 1.665rem) min(1.64vw, 1.46rem) min(1.875vw, 1.665rem) min(1.875vw, 1.665rem);
}

.pickup__productItemName {
  font-size: min(1.25vw, 1.11rem);
  font-weight: 700;
  color: var(--colorBlack);
  line-height: 1.5;
  transition: color 0.35s ease-out;
}

@media (hover: hover) {
  .pickup__productListItem a:hover .pickup__productItemName {
    color: var(--colorMain);
  }
}

.pickup__productItemBtn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: min(1.09vw, 0.97125rem);
  font-weight: 700;
  color: var(--colorBlack);
  transition: color 0.35s ease-out;
  margin-top: auto;
}

@media (hover: hover) {
  .pickup__productListItem a:hover .pickup__productItemBtn {
    color: var(--colorMain);
  }
}

.pickup__productItemBtn .product__arrow {
  position: relative;
  overflow: hidden;
  width: min(1.875vw, 1.665rem);
  height: min(1.875vw, 1.665rem);
}

.pickup__productItemBtn .product__arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: min(1.875vw, 1.665rem);
  transform: translate(100%, -50%);
  display: block;
  background-image: url(../images/common/img-arrow-red.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: min(1.875vw, 1.665rem);
  height: min(1.875vw, 1.665rem);
}

@media (hover: hover) {
  .pickup__productListItem a:hover .pickup__productItemBtn .product__arrow::after {
    animation: product-hover 0.5s forwards;
  }
}

@media screen and (max-width:767px) {
  .pickup .section__title {
    font-size: min(6.15vw, 1.5rem);
  }

  .pickup__productList {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .pickup__productListItem a {
    grid-template-columns: min(33.51%, 7.5rem) 1fr;
  }

  .pickup__productItemName {
    font-size: 0.875rem;
    line-height: 143%;
  }

  .pickup__productItemTextWrap {
    padding: 1rem;
  }

  .pickup__productItemBtn {
    font-size: 0.75rem;
  }

  .pickup__productItemBtn .product__arrow {
    width: 1.5rem;
    height: 1.5rem;
  }

  .pickup__productItemBtn .product__arrow::after {
    right: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
  }
}

/* ==========
  about
========== */
.about__container {
  background: linear-gradient(to right, var(--colorLightGray) 0%, var(--colorLightGray) 65%, transparent 75%), url(../images/top/img-about-bg.webp);
  background-repeat: no-repeat;
  background-position: left center, right center;
  background-size: 75% 100%, 70% 100%;
  border-radius: 1rem;
}

.about__content {
  padding: 9.06vw 5vw 9.45vw;
  width: 51.5%;
}

.about__textWrap {
  margin-top: 2.5rem;
}

.about__text {
  color: var(--colorGray);
  line-height: 175%;
}

.about .detail__btn {
  margin-top: 3.5rem;
}

@media screen and (max-width:767px) {
  .about__container {
    background: linear-gradient(to bottom, var(--colorLightGray) 0%, var(--colorLightGray) 65%, transparent 80%), url(../images/top/img-about-bg-sp.webp);
    background-repeat: no-repeat;
    background-position: top center, bottom center;
    background-size: 100% 80%, 100% 45%;
  }

  .about__content {
    padding: 2.4375rem 1.5rem 23.6875rem;
    width: fit-content;
  }

  .about__text {
    font-size: 0.875rem;
  }

  .about .detail__btn {
    margin-top: 2.25rem;
  }
}

/* ==========
  product
========== */
.product .container {
  padding-bottom: 7.5rem;
}

.product__container {
  display: grid;
  grid-template-columns: 14.875rem 1fr;
  gap: min(5.3125vw, 4.25rem);
}

.product__titleWrap {
  position: sticky;
  top: 36vh;
  margin-top: 13.8rem;
  height: fit-content;
}

.product .section__title {
  font-weight: 800;
}

.product .detail__btn {
  margin-top: 4rem;
}

.product__contentTitle {
  font-size: 1.25rem;
  font-weight: 700;
}

.product__contentList01 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18.5rem, 1fr));
  border-radius: 0.5rem;
  overflow: hidden;
  margin-top: 1.75rem;
  gap: 0.125rem;
}

.product__contentList01 .product__contentListItem a {
  display: flex;
  align-items: center;
  background-color: var(--colorLightGray);
  height: 100%;
}

.product__contentList01 .product__itemImg {
  flex-shrink: 0;
  overflow: hidden;
  /* height: 100%; */
}

.product__contentList01 .product__itemImg img {
  transition: transform 0.35s ease-out;
  object-fit: cover;
  height: 100%;
}

@media (hover: hover) {
  .product__contentList01 .product__contentListItem a:hover .product__itemImg img {
    transform: scale(110%);
  }
}

.product__itemNameWrap {
  padding: 1.5rem;
  width: 100%;
}

.product__contentList01 .product__itemName {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: var(--colorBlack);
  line-height: 150%;
  transition: color 0.35s ease-out;
}

@media (hover: hover) {
  .product__contentList01 .product__contentListItem a:hover .product__itemName {
    color: var(--colorMain);
  }

  .product__contentList02 .product__contentListItem a:hover {
    color: var(--colorMain);
  }
}

.product__contentList01 .product__arrow,
.product__contentList02 .product__arrow {
  position: relative;
  overflow: hidden;
  width: 1.5rem;
  height: 1.5rem;
}

.product__contentList01 .product__arrow::after,
.product__contentList02 .product__arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.5rem;
  transform: translate(100%, -50%);
  display: block;
  background-image: url(../images/common/img-arrow-red.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 1.5rem;
  height: 1.5rem;
}

@media (hover: hover) {
  .product__contentList01 .product__contentListItem a:hover .product__arrow::after,
  .product__contentList02 .product__contentListItem a:hover .product__arrow::after {
    animation: product-hover 0.5s forwards;
  }
}

.product__content02 {
  margin-top: 5.25rem;
}

.product__contentList02 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 1.5rem;
}

@media screen and (max-width:1199px) {
  .product__contentList02 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width:999px) {
  .product__contentList02 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product__contentList02 .product__contentListItem a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: var(--colorBlack);
  border-right: 1px solid var(--colorMediumLightGray);
  border-bottom: 1px solid var(--colorMediumLightGray);
  transition: color 0.35s ease-out;
  padding-inline: 1.5rem;
  height: 5.5rem;
}

/* 外枠と角丸は列数に応じてアイテム側で描画する（親のoverflow:hiddenで切ると角の線が途切れるため） */
.product__contentList02 .product__contentListItem:first-child a {
  border-top-left-radius: 0.5rem;
}

/* 4列 */
@media screen and (min-width:1200px) {
  .product__contentList02 .product__contentListItem:nth-child(-n+4) a {
    border-top: 1px solid var(--colorMediumLightGray);
  }

  .product__contentList02 .product__contentListItem:nth-child(4n+1) a {
    border-left: 1px solid var(--colorMediumLightGray);
  }

  /* 1行目の右端 */
  .product__contentList02 .product__contentListItem:nth-child(4) a,
  .product__contentList02 .product__contentListItem:last-child:nth-child(-n+4) a {
    border-top-right-radius: 0.5rem;
  }

  /* 最終行の左端 */
  .product__contentList02 .product__contentListItem:nth-child(4n+1):nth-last-child(-n+4) a {
    border-bottom-left-radius: 0.5rem;
  }

  /* 最終行が埋まっている場合の右下 */
  .product__contentList02 .product__contentListItem:nth-child(4n):last-child a {
    border-bottom-right-radius: 0.5rem;
  }
}

/* 3列 */
@media screen and (min-width:1000px) and (max-width:1199px) {
  .product__contentList02 .product__contentListItem:nth-child(-n+3) a {
    border-top: 1px solid var(--colorMediumLightGray);
  }

  .product__contentList02 .product__contentListItem:nth-child(3n+1) a {
    border-left: 1px solid var(--colorMediumLightGray);
  }

  .product__contentList02 .product__contentListItem:nth-child(3) a,
  .product__contentList02 .product__contentListItem:last-child:nth-child(-n+3) a {
    border-top-right-radius: 0.5rem;
  }

  .product__contentList02 .product__contentListItem:nth-child(3n+1):nth-last-child(-n+3) a {
    border-bottom-left-radius: 0.5rem;
  }

  .product__contentList02 .product__contentListItem:nth-child(3n):last-child a {
    border-bottom-right-radius: 0.5rem;
  }
}

/* 2列（タブレット・SP） */
@media screen and (max-width:999px) {
  .product__contentList02 .product__contentListItem:nth-child(-n+2) a {
    border-top: 1px solid var(--colorMediumLightGray);
  }

  .product__contentList02 .product__contentListItem:nth-child(2n+1) a {
    border-left: 1px solid var(--colorMediumLightGray);
  }

  .product__contentList02 .product__contentListItem:nth-child(2) a,
  .product__contentList02 .product__contentListItem:last-child:nth-child(-n+2) a {
    border-top-right-radius: 0.5rem;
  }

  .product__contentList02 .product__contentListItem:nth-child(2n+1):nth-last-child(-n+2) a {
    border-bottom-left-radius: 0.5rem;
  }

  .product__contentList02 .product__contentListItem:nth-child(2n):last-child a {
    border-bottom-right-radius: 0.5rem;
  }
}

@media screen and (max-width:767px) {
  .product .container {
    padding-bottom: 4rem;
  }

  .product__container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product__titleWrap {
    position: relative;
    top: 0;
    margin-top: 0;
  }

  .product__contentWrap {
    margin-top: 0.875rem;
  }

  .product__contentTitle {
    font-size: 1.125rem;
  }

  .product__contentList01 {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 1.5rem;
  }

  .product__contentList01 .product__contentListItem a {
    flex-direction: column;
    height: 100%;
  }

  .product__contentList01 .product__itemImg {
    width: 100%;
  }

  .product__contentList01 .product__itemImg img {
    width: 100%;
  }

  .product__itemNameWrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: stretch;
    font-size: 0.875rem;
    padding: 1.5625rem 1rem;
    height: 4.625rem;
  }

  .product__content02 {
    margin-top: 2.65rem;
  }

  .product__contentList02 .product__contentListItem a {
    font-size: 0.875rem;
    padding-inline: 1rem;
    height: 4.5rem;
  }

  .product .detail__btn {
    margin: 0.875rem 2.5rem 0 auto;
    width: fit-content;
  }
}

/* ==========
  service
========== */
.service hgroup {
  text-align: center;
}

.service__contentWrap {
  margin-top: 2.25rem;
}

/* ==========
  reason
========== */
.reason {
  position: relative;
  overflow: hidden;
}

.reason__container {
  position: relative;
  max-height: 100vh;
  overflow: hidden;
}

.reason .section__titleWrap {
  transform: translateY(min(6.25vw, 5rem));
}

@media screen and (max-width:1080px) {
  .reason .section__titleWrap {
    transform: translateY(0);
    margin-bottom: 2rem;
  }

  .reason__content .reason__contentItem {
    top: 0;
    bottom: unset;
    align-items: flex-start;
  }
}

.reason__content {
  position: relative;
  overflow: hidden;
}

.reason__contentItem {
  position: absolute;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 32% auto;
  align-items: flex-end;
  justify-content: space-between;
  gap: min(10.5vw, 7.875rem);
}

.reason__itemTextWrap {
  transform: translateY(-0.5rem);
}

.reason__itemTitle--num {
  font-size: 2.25rem;
  font-weight: 800;
  font-family: "Nunito Sans", sans-serif;
  color: var(--colorMain);
  line-height: 130%;
}

.reason__itemTitle {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 1rem;
}

.reason__itemLeadText {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 1rem;
}

.reason__itemText {
  color: var(--colorGray);
  line-height: 175%;
  margin-top: 1.5rem;
}

.reason__itemImg {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 690 / 480;
  max-height: 60vh;
  transform: translateZ(0);
}

.reason__itemImg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reason__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
}

.reason__slideNavBtn.for-pc {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reason__slideNavBtn.for-sp {
  display: none;
}

.reason__slideNavBtn--prev {
  transform: rotate(180deg);
}

.reason__slideNavBtn--prev,
.reason__slideNavBtn--next {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--colorMediumLightGray);
  border-radius: 50%;
  transition: border 0.35s ease-out;
  cursor: pointer;
  overflow: hidden;
  width: 2.5rem;
  height: 2.5rem;
}

@media (hover: hover) {
  .reason__slideNavBtn--prev:hover,
  .reason__slideNavBtn--next:hover {
    border: 1px solid var(--colorMain);
  }

  .reason__slideNavBtn--prev:hover img,
  .reason__slideNavBtn--next:hover img {
    animation: reason-hover 0.5s forwards;
  }
}

@keyframes reason-hover {
  0% {
    transform: translateX(0%);
    opacity: 1;
  }

  50% {
    transform: translateX(300%);
    opacity: 1;
  }

  51% {
    transform: translateX(-300%);
    opacity: 0;
  }

  52% {
    transform: translateX(-100%);
    opacity: 1;
  }

  100% {
    transform: translateX(0%);
    opacity: 1;
  }
}

.reason .detail__btn {
  margin-right: 2.5rem;
}

@media screen and (max-width:767px) {
  .reason__content {
    margin-top: 2.5rem;
  }

  .reason .section__titleWrap {
    margin-bottom: 0;
  }

  .reason__contentItem {
    inset: auto;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .reason__itemTextWrap {
    position: relative;
    order: 2;
  }

  .reason__itemImg {
    max-height: 38vh;
  }

  .reason__itemTitle--num {
    font-size: 1.75rem;
  }

  .reason__itemTitle {
    font-size: 1.5rem;
    margin-top: 0.5rem;
  }

  .reason__itemLeadText {
    font-size: 1rem;
    margin-top: 0.35rem;
  }

  .reason__itemText {
    font-size: 0.875rem;
  }

  .reason__slideNavBtn.for-pc {
    display: none;
  }

  .reason__slideNavBtn.for-sp {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  /* PC用の前後ボタンが非表示になる分、矢印の丸（2rem）が切れないよう高さを確保する */
  .reason__bottom {
    justify-content: flex-end;
    min-height: 2.5rem;
  }

  .reason .detail__btn {
    mask-image: auto;
  }
}

/* ==========
  news
========== */
.news .container {
  padding-block: 4rem 6rem;
}

.news__container {
  display: grid;
  grid-template-columns: 11.5rem 1fr;
  align-items: center;
  gap: min(9.375vw, 7.5rem);
}

.news .detail__btn {
  margin-top: 4rem;
}

.news__listItem a {
  border-bottom: 1px solid #DEDEDE;
  padding-block: 1.5rem;
}

.news__listItem:first-of-type {
  padding-top: 0;
}

.news__listItem:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.news__listItem a {
  position: relative;
  display: flex;
  align-items: center;
  gap: min(3.75vw, 3rem);
  padding-right: 1.5rem;
}

.news__listItem .product__arrow {
  position: relative;
  overflow: hidden;
  margin-left: auto;
  width: 1.5rem;
  height: 1.5rem;
}

.news__listItem .product__arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.5rem;
  transform: translate(100%, -50%);
  display: block;
  background-image: url(../images/common/img-arrow-red.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 1.5rem;
  height: 1.5rem;
}

@media (hover: hover) {
  .news__listItem a:hover .product__arrow::after {
    animation: product-hover 0.5s forwards;
  }
}

.news__itemInfo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: min(3.75vw, 3rem);
}

.news__itemDate {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-family: "Nunito Sans", sans-serif;
  color: var(--colorGray);
}

.news__itemTag {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--colorWhite);
  background-color: var(--colorMain);
  border: 1px solid var(--colorMain);
  transition: 0.35s ease-out;
  padding: 0.25rem;
}

.news__itemTitle {
  color: var(--colorBlack);
  line-height: 1.5;
  transition: color 0.35s ease-out;
}

@media (hover: hover) {
  .news__listItem a:hover .news__itemTitle {
    color: var(--colorMain);
  }
}

@media screen and (max-width:767px) {
  .news__container {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .news__listItem {
    padding-bottom: 0.5rem;
  }

  .news__listItem a {
    display: grid;
    grid-template-columns: auto 1fr;
    padding: 1.15rem 0.5rem 1rem 0;
    gap: 0.5rem 1rem;
  }

  .news__itemInfo {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }

  .news__itemDate {
    font-size: 0.75rem;
  }

  .news__itemTag {
    font-size: 0.625rem;
    line-height: 140%;
    padding: 0 0.375rem;
  }

  .news__itemTitle {
    font-size: 0.875rem;
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }

  .news__listItem .product__arrow {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  .news .detail__btn {
    margin: 1.3rem 2.5rem 0 auto;
  }
}

/* ==========
  note
========== */
.note .container {
  padding-bottom: 6.25rem;
}

.note hgroup {
  text-align: center;
}

.note__content {
  margin-top: 2.25rem;
}

.note__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.note__listItem a {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--colorLightGray);
  border-radius: 0.5rem;
  padding: 1rem 1.5rem 1rem 1rem;
  max-width: 100%;
}

.note__listItem .product__arrow {
  position: relative;
  overflow: hidden;
  margin-left: auto;
  width: 1.5rem;
  height: 1.5rem;
}

.note__listItem .product__arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.5rem;
  transform: translate(100%, -50%);
  display: block;
  background-image: url(../images/common/img-arrow-red.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 1.5rem;
  height: 1.5rem;
}

@media (hover: hover) {
  .note__listItem a:hover .product__arrow::after {
    animation: product-hover 0.5s forwards;
  }
}

.note__itemImg {
  flex-shrink: 0;
}

.note__itemImg img {
  width: 10rem;
  aspect-ratio: 160 / 108;
  object-fit: cover;
}

.note__itemTextWrap {
  padding-inline: 1rem;
}

.note__itemTitle {
  font-size: 1rem;
  font-weight: 700;
  color: var(--colorBlack);
  line-height: 1.5;
  font-feature-settings: normal;
  transition: color 0.35s ease-out;
}

@media (hover: hover) {
  .note__listItem a:hover .note__itemTitle {
    color: var(--colorMain);
  }
}

.note__itemDate {
  font-size: 0.875rem;
  font-family: "Nunito Sans", sans-serif;
  color: var(--colorGray);
  margin-top: 0.75rem;
}

.note .detail__btn {
  margin: 2rem 2.5rem 0 auto;
  width: fit-content;
}

@media screen and (max-width:767px) {
  .note .container {
    padding-bottom: 4rem;
  }

  .note__list {
    grid-template-columns: 1fr;
  }

  .note__listItem a {
    padding: 1rem;
  }

  .note__listItem a::after {
    top: unset;
    bottom: 1rem;
    right: 1rem;
    transform: translate(0);
  }

  .note__itemTextWrap {
    padding-left: 1rem;
  }

  .note__itemImg img {
    max-width: 8.5rem;
  }

  .note__itemTitle {
    font-size: 0.875rem;
    line-height: 150%;
  }

  .note__itemDate {
    font-size: 0.75rem;
    margin-top: 0.35rem;
  }
}

/* ==========
  company
========== */
.company .container {
  padding-bottom: 7.5rem;
}

.company__container {
  display: flex;
  justify-content: space-between;
  gap: min(8.05vw, 6.4375rem);
}

.zh-TW .company__container {
  align-items: center;
}

.company__content {
  display: flex;
  flex-direction: column;
  width: max(30vw, 24rem);
}

.zh-TW .company__content {
  height: auto;
  max-height: unset;
}

.company__leadText {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 3.4rem;
}

.company__textWrap {
  margin-block: 2rem;
}

.company__text {
  color: var(--colorGray);
  line-height: 180%;
}

.company__img img {
  border-radius: 1rem 0 0 1rem;
}

@media screen and (min-width: 768px) {
  .company {
    overflow-x: clip;
  }

  /* 左ブロックの高さを最大680pxに抑え、右の画像がそれより高い場合は上下中央に配置する */
  .company__container {
    display: grid;
    grid-template-columns: max(30vw, 24rem) 1fr;
    align-items: center;
  }

  .company__content {
    width: auto;
    height: 100%;
    max-height: 42.5rem;
  }

  /* コンテナ右端から画面右端までの余白分、右にはみ出させる */
  .company__img {
    flex: 1;
    min-width: 0;
    margin-right: calc((min(93.75vw, 100rem) - 100vw) / 2);
  }

  .company__img img {
    width: 100%;
  }
}

.company__linkList {
  margin-top: auto;
}

.company__linkListItem a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: var(--colorBlack);
  padding: 0.875rem 1.4rem 0.875rem 0;
  border-bottom: 1px solid #DEDEDE;
  transition: color 0.35s ease-out;
  width: 100%;
}

.company__linkListItem:first-of-type a {
  border-top: 1px solid #DEDEDE;
}

@media (hover: hover) {
  .company__linkListItem a:hover {
    color: var(--colorMain);
  }
}

.company__linkListItem .product__arrow {
  position: relative;
  overflow: hidden;
  width: 1.5rem;
  height: 1.5rem;
}

.company__linkListItem .product__arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.75rem;
  transform: translate(100%, -50%);
  display: block;
  background-image: url(../images/common/img-arrow-red.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 1.5rem;
  height: 1.5rem;
}

@media (hover: hover) {
  .company__linkListItem a:hover .product__arrow::after {
    animation: product-hover 0.5s forwards;
  }
}

@media screen and (max-width:767px) {
  .company .container {
    padding-bottom: 6rem;
  }

  .company__container {
    flex-direction: column;
  }

  .company__content {
    width: auto;
  }

  .company__img {
    margin: 2.25rem -4.1% 0 auto;
  }

  .company__leadText {
    font-size: 1.5rem;
    margin-top: 2.5rem;
  }

  .company__textWrap {
    margin-block: 1.875rem 0;
  }

  .company__text {
    font-size: 0.875rem;
  }

  .company__linkList {
    margin-top: 2rem;
  }

  .company .detail__btn {
    margin-top: 2rem;
  }

  .company__linkListItem a {
    font-size: 0.875rem;
  }
}