@charset "utf-8";

#product {
  --sec-ttl-mb: min((50vw / 7.5), 53px);
  --sec-ttl-size-h: min((123vw / 7.5), 123px);
}


.section__title-wrapper {
  position: relative;
  margin-bottom: min((30vw / 7.5), 25px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* section__title のスタイル */
/* #product .section__title {
 position: relative;
  z-index: 1;
  margin-bottom: 0;
  padding-left: min((20vw / 7.5), 20px);
   画像が重なるので左パディングを調整 
  
}*/
#product .section__title {
 @media (min-width: 751px) {
    width: 100%;
    margin: 0 auto 28px;
    position: relative; /* 疑似要素の配置基準 */
    overflow: hidden; /* はみ出しを隠す */
  }
  /* SPのスタイルを調整 */
  @media (max-width: 750px) {
    position: relative; /* SPでも疑似要素の配置基準に */
    overflow: hidden; /* SPでもはみ出しを隠す */
    /* 元々width: 59%なので、イラストを収めるためにpaddingを調整するか、widthを100%にするか検討 */
    padding-left: min((15vw / 7.5) + 30px, 45px); /* イラスト分の左パディングを追加 */
    padding-right: min((15vw / 7.5) + 30px, 45px); /* イラスト分の右パディングを追加 */
}  
}
  @media (max-width: 750px) {
    #product .section__inner {
width: min((700vw / 7.5), 830px);
}
}


/* 画像を囲む要素のスタイル */
.product-side-image {
  position: absolute;

  top: 0;

  left: 0;

  transform: translateX(-50%);

  z-index: 2;

  width: min(calc(200vw / 7.5), 150px);

  height: auto;

}

.product-side-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* メディアクエリでの調整 */
@media (max-width: 750px) {

  /* SPでの調整 */
  .section__title-wrapper {
    /* SPでは中央に寄せるか、調整が必要 */
    justify-content: center;
    align-items: center;
    /* 縦方向も中央に寄せるか検討 */
  }

  #product .section__title {
    font-size: min((38vw / 7.5), 32px);
        padding: min((15vw / 7.5), 15px);
    width: 100%;
    background-color: #ea5541;
    text-align: center;
  }

  .product-side-image {
    top: -30%;
    left: 15%;
    transform: translateX(-50%);
    width: min(calc(150vw / 7.5), 130px);
  }
}

@media (min-width: 751px) {

  /* PCでの調整 */
  .section__title-wrapper {
    justify-content: center;
    /* PCでも中央寄せ */
  }

  #product .section__title {
    font-size: 42px;
    padding: 15px 30px;
           width: 100%;
    background-color: #ea5541;
  }

  .product-side-image {
    top: -50%;
    left: 0;
    transform: translateX(102%);
    width: 150px;
    /* PCでの画像の幅 */
  }
}

.product__list {
  display: grid;
  color: #000;
  padding: 2.5%;

  @media(861px <=width) {
    --gap: 20px;
    --col-num: 3;
    grid-template-columns: repeat(auto-fit, calc((100% - var(--gap) * (var(--col-num) - 1)) / var(--col-num)));
    justify-content: center;
    gap: var(--gap);

  }

  @media(981px <=width) {
    --col-num: 3;
    --gap: 10px;

  }
}

.product__list--inner {
  font-size: min((20vw / 7.5), 12px);
  line-height: 1.4;
  color: inherit;
  font-weight: normal;
  background: #fff;
  border: 1px solid #666666;
  display: grid;
  grid-template-columns: min((243.5vw / 7.5), 280px) 1fr;
  gap: min((10vw / 7.5), 10px) min((20vw / 7.5), 30px);
  position: relative;
}

.product__list--image-wrapper {
  width: 100%;
  padding-top: calc((628 / 944) * 100%);
  position: relative;
}

.product__list--image {
  object-fit: contain;
  object-position: center top;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  /*aspect-ratio: 944 / 628;
  height: min((162vw / 7.5), 186px);*/
}

.product__list--type {
  background: #000;
  color: #fff;
  text-align: center;
  padding: .2em .2em .25em;
  font-weight: bold;
  align-content: center;
  position: relative;
  margin: 0;
}

.product__list--label-wrapper:has(.product__list--label.is-economy) {
  display: none;
}

.product__list--label {
  font-size: min((20vw / 7.5), 11px);
  line-height: 1.2;
  color: #fff;
  padding: .5em .75em;
  font-weight: bold;
  background: var(--product-label-bg, #000);

  &.is-business {
    --product-label-bg: #001a4b;
  }
}

.product__list--title {
  font-weight: bold;
  margin: 0;
}

.product__list--minmax {
  color: #e70000;
  font-weight: bold;
}

.product__list--title,
.product__list--minmax {
  font-size: min((24vw / 7.5), 16px);
}

.product__list--detail,
.product__list--price {
  color: #333;
}

.product__list--detail,
.product__list--minmax~[class^="product__list--"] {
  margin-top: .25em;
}

@media(width < 861px) {
  .product__list--item:not(:first-child) {
    --yohaku: min((20vw / 7.5), 15px);
    margin-top: var(--yohaku);
  }

  .product__list--inner {
    padding: min((18vw / 7.5), 15px);
    grid-template-areas:
      "img label"
      "img txt";
    grid-template-rows: max-content 1fr;
    align-items: start;

    &:has(.product__list--label.is-economy) {
      grid-template-areas: "img txt";
    }
  }


  .product__list--image-wrapper {
    grid-area: img;
  }

  .product__list--label-wrapper {
    grid-area: label;
    display: flex;
    flex-wrap: wrap;
    gap: min((10vw / 7.5), 8px);
  }

  .product__list--text-wrapper {
    grid-area: txt;
  }

  .product__list--detail {
    margin-top: min((15vw / 7.5), 15px);
  }

  .product__list--price {
    margin-top: min((20vw / 7.5), 20px);
  }
}

@media(width >=861px) {

  .product__list--item,
  .product__list--data {
    display: contents;
  }

  .product__list--inner {
    grid-template-columns: 1fr;
    grid-template-rows: subgrid;
    grid-row: span 2;
    gap: 0;
    border: 1px solid #e7e7df;
  }

  .product__list--label-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
  }

  .product__list--image-wrapper {
    display: grid;
    grid-template-rows: auto 1fr;

    .product__list--image {
      width: 100%;
      height: auto;
    }
  }

  .product__list--type {
    padding: .5em;
  }

  .product__list--text-wrapper {
    padding: 8px 10px 10px;
    display: grid;
    align-content: space-between;
    gap: 0em;
  }
}

/*------------------------------------------------*/
/*★ ＝＝ hover ＝＝ ★*/
@media (hover : hover) and (pointer : fine) {
  .product__list--inner {
    >[class$="-wrapper"] {
      transition: var(--default-hover-transition-opacity);

      .product__list--inner:hover & {
        opacity: var(--default-hover-opacity);
      }
    }
  }
}

.commingsoon{
  text-align: center;
  background-color: #e60012;
      padding: 3% 0;
    color: #FFFFFF;
    font-weight: bold;
}