/******************************/
/* TOP共通 */
/******************************/
.p-top-section {
  box-sizing: content-box;
  margin: 64px 0;

  @media screen and (min-width: 768px) {
    margin-top: 96px;
    margin-bottom: 96px;
  }
}

.p-top-section__container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1280px;
  margin-inline: auto;
  padding: 0 max(16px, 2%);
}

.p-top-section__header {
  display: flex;
  justify-content: center;
  align-items: center;
}

.p-top-section__body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 32px;
}

.p-top-product-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
  gap: 32px 16px;
  width: 100%;

  @media screen and (min-width: 768px) {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 24px;
  }

  @media screen and (min-width: 1024px) {
    grid-template-columns: repeat(4, 1fr);
  }
}

.p-top-product-list__item {
  flex: 0 0 auto;
  display: flex;
}

/******************************/
/* スライドショー */
/******************************/
.p-main-slider {
  max-width: 1280px;
  margin-inline: auto;
  padding: 0 max(16px, 2%);

  img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    aspect-ratio: 16 / 9;
  }

  .bx-wrapper {
    border: none;
    box-shadow: none;
    margin-bottom: 0;

    .bx-viewport {
      border: 0;
      box-shadow: none;
      left: 0;
    }

    .bx-pager {
      box-sizing: border-box;
      padding-top: 0;
      padding-right: 25px;
      bottom: 45px;
      text-align: right;
      display: none;

      @media screen and (min-width: 768px) {
        display: block;
      }

      &.bx-default-pager a {
        margin-left: 5px;
        margin-right: 5px;
        background: #E9EDE8;

        &.active {
          position: relative;
          background: #505748;
        }

        &:hover {
          background: #CBDBD3;
        }
      }
    }
  }
}

/******************************/
/* インフォメーション機能 */
/******************************/
.p-top-news {
  margin: 16px 0;

  .splide {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    overflow: hidden;

    @media screen and (min-width: 600px) {
      flex-direction: row;
      align-items: center;
      gap: 4px;
    }
  }

  .splide__track {
    display: flex;
    flex: 1;
    width: 100%;
  }

  .splide__list {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
  }

  .splide__arrows {
    align-self: flex-end;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;

    @media screen and (min-width: 600px) {
      align-self: center;
    }

    .splide__arrow {
      position: static;
      transform: translateY(0);
      background: transparent;
      width: 24px;
      height: 24px;
      transition: 0.3s ease;

      svg {
        width: 14px;
        height: 14px;
        fill: #728270;
      }
    }
  }

  .splide__arrow:hover:not(:disabled) {
    opacity: 1;
    background: #CBDBD3;
  }
}

.p-top-news__container {
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 max(16px, 2%);

}

.p-top-news__header {
  display: none;

  @media screen and (min-width: 600px) {
    display: block;
  }
}

.p-top-news__body {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.p-top-news-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: normal;
  line-height: 1.2;
  width: 100%;
  min-width: 0;

  @media screen and (min-width: 768px) {
    flex-direction: row;
    gap: 16px;
    font-size: 14px;
  }

  a {
    text-decoration: underline;

    &:hover {
      opacity: 0.7;
    }
  }
}

.p-top-news-list__date {
  flex: 0 0 auto;
}

.p-top-news-list__title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/******************************/
/* ピックアップ */
/******************************/
.p-top-pickup {
  margin: 32px 0;

  .splide {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 100%;

    &:not( .is-overflow ) {
      .splide__list {
        justify-content: center;
      }

      .splide__slide:last-child {
        margin: 0 !important;
      }
    }

    .splide__slide {
      display: flex;
    }

    .splide__pagination {
      bottom: auto;
      left: auto;
      position: relative;
      transform: none;
      width: auto;
      padding: 0;

      .splide__pagination__page {
        background: transparent;
        border: 1px solid #728270;

        &.is-active {
          background: #728270;
        }
      }
    }
  }
}

.p-top-pickup__container {
  max-width: 1280px;
  margin-inline: auto;
  padding: 0 max(16px, 2%);
}

.p-top-pickup__item {
  display: flex;
  align-items: center;
  justify-content: center;

  a {
    transition: 0.3s ease;

    &:hover {
      opacity: 0.7;
    }
  }

  img {
    width: 100%;
    height: auto;
  }
}

/******************************/
/* コンセプト */
/******************************/
.p-concept {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 64px 0;

  @media screen and (min-width: 1024px) {
    flex-direction: row-reverse;
    align-items: center;
    gap: 0;
    margin-top: 80px;
    margin-bottom: 120px;
  }
}

.p-concept__img {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 280px;
  background-image: url(https://img.shop-pro.jp/tmpl_img/91/no-image-concept.png);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;

  @media screen and (min-width: 1024px) {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    width: 50%;
    min-height: 600px;
  }
}

.p-concept__text {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 max(16px, 2%);
  line-height: 2;

  @media screen and (min-width: 1024px) {
    padding: 80px 32px;
    width: 50%;
    max-width: 650px;
    max-height: 600px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
  }
}

.p-concept__title {
  margin: 0;
  font-size: 18px;
  font-weight: normal;

  @media screen and (min-width: 1024px) {
    font-size: 26px;
  }
}

/* 縦組みをやめたいときのバリエーション */
.p-concept--writing-mode-horizontal {
  .p-concept__text {
    writing-mode: horizontal-tb;
  }
}

/******************************/
/* 新着商品 */
/******************************/
.p-top-new-item {
  .splide {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 100%;

    .splide__slide {
      display: flex;
    }

    .splide__pagination {
      bottom: auto;
      left: auto;
      position: relative;
      transform: none;
      width: auto;
      padding: 0;

      .splide__pagination__page {
        background: transparent;
        border: 1px solid #728270;

        &.is-active {
          background: #728270;
        }
      }
    }
  }
}

/******************************/
/* おすすめ商品 */
/******************************/
.p-top-highly-recommended {
  align-self: center;
  max-width: 100%;

  @media screen and (min-width: 500px) {
    max-width: 950px;
  }
}

/******************************/
/* 売れ筋商品 */
/******************************/
.p-top-seller-item {
  .splide {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 100%;

    .splide__slide {
      display: flex;
    }

    .splide__pagination {
      bottom: auto;
      left: auto;
      position: relative;
      transform: none;
      width: auto;
      padding: 0;

      .splide__pagination__page {
        background: transparent;
        border: 1px solid #728270;

        &.is-active {
          background: #728270;
        }
      }
    }
  }
}

/******************************/
/* フリースペース */
/******************************/
.p-top-free {
  max-width: 1280px;
  margin: 96px auto;
  padding: 0 max(16px, 2%);
}

/******************************/
/* 店舗情報 */
/******************************/
.p-shop {
  margin: 64px 0;

  @media screen and (min-width: 1024px) {
    margin-top: 80px;
    margin-bottom: 80px;
  }
}

.p-shop__container {
  display: flex;
  flex-direction: column-reverse;

  @media screen and (min-width: 1024px) {
    flex-direction: row-reverse;
    align-items: center;
  }
}

.p-shop__text {
  background-color: #E9EDE8;
  width: 100%;
  padding: 48px 0;

  @media screen and (min-width: 1024px) {
    padding: 80px  0;
  }

  .p-shop__image + & {
    @media screen and (min-width: 1024px) {
      border-top-right-radius: 12px;
      border-bottom-right-radius: 12px;
      margin-right: -20%;
      padding: 80px 20% 80px 0;
    }

    @media screen and (min-width: 1800px) {
      display: flex;
      justify-content: flex-end;
      padding-right: 25%;
    }
  }
}

.p-shop__text-container {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.p-shop__image {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 280px;

  @media screen and (min-width: 1024px) {
    flex: 0 0 50%;
    height: auto;
  }

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    @media screen and (min-width: 1024px) {
      max-width: 820px;
      border-top-left-radius: 12px;
      border-bottom-left-radius: 12px;
    }

    @media screen and (min-width: 1640px) {
      border-top-right-radius: 12px;
      border-bottom-right-radius: 12px;
    }
  }
}

.p-shop__header {
  max-width: 600px;
  margin-inline: auto;
}

.p-shop__body,
.p-shop__footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  max-width: 600px;
  margin-inline: auto;
  padding: 0 max(16px, 2%);
}

.p-shop__title {
  margin: 0;
  text-align: center;
  font-size: 18px;
  font-weight: normal;
  line-height: 1.2;
}
