/******************************/
/* 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(auto-fill, minmax(130px, 1fr));
  justify-content: center;
  gap: 32px 16px;
  width: 100%;

  @media screen and (min-width: 500px) {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 48px 24px;
  }

  @media screen and (min-width: 800px) {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

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

/******************************/
/* スライドショー（Swiper版） */
/******************************/

/* 1. 全体エリア（背景は画面幅100%） */
.kv_area { 
  width: 100%;
  padding: 50px 0 11px; 
  background: #ece8e6; 
  overflow: hidden; 
  opacity: 0; 
  animation: kvFadeIn 1.5s cubic-bezier(0.25, 1, 0.5, 1) 0.2s forwards; 
}

@keyframes kvFadeIn {
  0% { opacity: 0; transform: translateY(20px); }   
  100% { opacity: 1; transform: translateY(0); }    
}

/* 2. Swiperコンテナ */
.swiper { 
  width: 100%; 
  height: auto; 
  padding-bottom: 40px!important; 
}
@media screen and (max-width: 768px) {
  .swiper { 
  padding-bottom: 0px!important; 
  }
}

/* 3. 各スライドの設定（1000px固定、前後はうっすら小さく） */
.swiper-slide { 
  position: relative; 
  border-radius: 8px; 
  overflow: hidden; 
  box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
  width: 1000px !important; 
  aspect-ratio: 2 / 1; 
  opacity: 0.4; 
  transform: scale(0.9); 
  transition: opacity 0.5s ease, transform 1.0s ease; 
}

/* 4. 真ん中のアクティブなスライド */
.swiper-slide-active { 
  opacity: 1; 
  transform: scale(1); 
  z-index: 2; 
}

/* 5. リンク枠と画像の調整（テキストの配置基準） */
.slide-link { 
  display: block; 
  width: 100%; 
  height: 100%; 
  position: relative; 
}

.swiper-slide img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  transition: transform 0.6s ease; 
}

a.slide-link:hover img { 
  transform: scale(1.04); 
}

.swiper-slide picture { 
  display: block; 
  width: 100%; 
  height: 100%; 
}

/* 6. ナビゲーション矢印 */
.swiper-button-next, 
.swiper-button-prev { 
  color: #555!important; 
  background: rgba(255, 255, 255, 0.5); 
  width: 32px!important; 
  height: 32px!important; 
  border-radius: 50%; 
  transition: background 0.3s; 
  top: calc(50% - 20px) !important; 
}

.swiper-button-next:hover, 
.swiper-button-prev:hover { 
  background: rgba(255, 255, 255, 0.8); 
}

.swiper-button-next:after, 
.swiper-button-prev:after { 
  font-size: 14px!important; 
} 

/* 7. ページネーション（ドット） */
.swiper-pagination { 
  bottom: 10px !important; 
} 

.swiper-pagination-bullet { 
  width: 8px;   
  height: 8px;  
  background: #b9aca4; 
  opacity: 1; 
  margin: 0 12px !important; 
}

.swiper-pagination-bullet-active { 
  background: #42210b; 
}

/* 8. スライド上のテキスト装飾・配置 */
.slide-text { 
  position: absolute; 
  z-index: 10;
  color: #fff; 
  opacity: 0; 
  transition: opacity 0.5s ease 0.3s; 
  width: 100%; 
  white-space: nowrap; 
  font-family: "游明朝", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Shippori Mincho", serif;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7); 
}

.swiper-slide-active .slide-text { 
  opacity: 1; 
}

.slide-text.text-main {
  color: #333; 
  text-shadow: 1px 1px 2px #fff, -1px 1px 2px #fff, 1px -1px 2px #fff, -1px -1px 2px #fff, 0 0 15px rgba(255, 255, 255, 1), 0 0 25px rgba(255, 255, 255, 0.8);
}

.slide-text .slide-catchphrase { 
  font-size: 32px; 
  margin-bottom: 15px; 
  letter-spacing: 3px; 
  font-weight: normal; 
}

.slide-text p:not(.slide-catchphrase) { 
  font-size: 16px; 
  letter-spacing: 1px; 
}

.slide-text.size-lg .slide-catchphrase { font-size: 40px; margin-bottom: 18px; line-height: 1.25; }
.slide-text.size-lg p:not(.slide-catchphrase) { font-size: 20px; }

.slide-text.size-xl .slide-catchphrase { font-size: 52px; margin-bottom: 20px; line-height: 1.25; }
.slide-text.size-xl p:not(.slide-catchphrase) { font-size: 30px; }

.slide-text.size-s .slide-catchphrase { font-size: 24px; margin-bottom: 10px; }
.slide-text.size-s p:not(.slide-catchphrase) { font-size: 14px; }


@media screen and (min-width: 769px) {
  .slide-text.pos-top-left { top: 15%; left: 5%; text-align: left; } 
  .slide-text.pos-top-right { top: 15%; right: 5%; left: auto; text-align: right; }
  .slide-text.pos-center { top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
  .slide-text.pos-bottom-left { bottom: 15%; top: auto; left: 5%; text-align: left; }
  .slide-text.pos-bottom-right { bottom: 15%; top: auto; right: 5%; left: auto; text-align: right; }
}

/* 9. レスポンシブ調整（PC幅: 矢印の位置） */
@media screen and (min-width: 1001px) {
  /* 画像幅1000pxの半分＝500pxを基準に矢印を配置 */
  .swiper-button-prev { left: calc(50% - 500px + 15px)!important; }
  .swiper-button-next { right: calc(50% - 500px + 15px)!important; }
}

/* 10. レスポンシブ調整（タブレット幅: スライド幅を調整） */
@media screen and (max-width: 1000px) {
  .swiper-slide {
    width: calc(100% - 40px) !important;
  }
  .swiper-button-prev { left: 35px!important; }
  .swiper-button-next { right: 35px!important; }
}

/* 11. レスポンシブ調整（スマホ幅: 背景やテキストの調整） */
@media screen and (max-width: 768px) {
  .kv_area { padding: 0; }
  .swiper { padding-bottom: 0; }
  .swiper-slide { width: 100% !important; border-radius: 0; aspect-ratio: 1 / 1; }
  .swiper-button-next, .swiper-button-prev { display: none !important; }
  .swiper-pagination { bottom: 20px !important; }
  
  /* スマホ時のテキスト配置 */
  .slide-text { 
    left: 50% !important; right: auto !important; transform: translateX(-50%) !important; 
    text-align: center !important; width: 100% !important; margin: 0 !important; white-space: normal; 
  }
  .slide-text.sp-bg { background-color: rgba(255, 255, 255, 0.7); padding: 10px 0 0; }
  .slide-text.sp-bg-2 { background-color: rgba(234, 85, 20, 0.85); padding: 10px 0 0; }
  
  .slide-text.sp-pos-top-high { top: 5% !important; bottom: auto !important; }
  .slide-text.sp-pos-top { top: 15% !important; bottom: auto !important; }
  .slide-text.sp-pos-center { top: 50% !important; bottom: auto !important; transform: translate(-50%, -50%) !important; }
  .slide-text.sp-pos-bottom { bottom: 15% !important; top: auto !important; }
  .slide-text.sp-pos-bottom-low { bottom: 5% !important; top: auto !important; }
  .slide-text:not(.sp-pos-top-high):not(.sp-pos-top):not(.sp-pos-center):not(.sp-pos-bottom):not(.sp-pos-bottom-low) { 
    top: 50% !important; bottom: auto !important; transform: translate(-50%, -50%) !important; 
  }

  .slide-text .slide-catchphrase { font-size: 24px; margin-bottom: 10px; }
  .slide-text p:not(.slide-catchphrase) { font-size: 14px; margin-bottom: 0; }
  .slide-text.size-lg .slide-catchphrase { font-size: 30px; margin-bottom: 10px; }
  .slide-text.size-lg p:not(.slide-catchphrase) { font-size: 16px; margin-bottom: 0; }
  .slide-text.size-xl .slide-catchphrase { font-size: 30px; margin-bottom: 10px; }
  .slide-text.size-xl p:not(.slide-catchphrase) { font-size: 16px; margin-bottom: 0; }
  .slide-text.size-s .slide-catchphrase { font-size: 20px; margin-bottom: 10px; }
  .slide-text.size-s p:not(.slide-catchphrase) { font-size: 16px; margin-bottom: 0; }
}


/******************************/
/* ご案内エリア：共通設定 */
/******************************/
.p-top-announcement {
  margin-top: 40px;
  padding-top: 40px;
  padding-bottom: 40px;
  
  @media screen and (min-width: 768px) {
    margin-top: 60px;
  }
}

/* 1. エリア全体の幅 */
.p-top-announcement__inner {
  max-width: 480px; /* 文章　幅 */
  margin: 0 auto;
  padding: 48px 0; /* 上下の線から文章までの余白、左右の余白 */
  border-top: 1px solid #CCCCCC;
  border-bottom: 1px solid #CCCCCC;
  font-size: 14px;
  line-height: 2;
  text-align: left; 
}

/* 2. タイトル（H2）の見た目調整（左揃えにする場合、中央にアイコンや装飾がないのでスッキリします） */
.c-section-title--in-box {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 22px;
  text-align: left; /* タイトルも左揃えにする */
}
.c-section-title--in-box::after { 
  display: none; 
}

/* 3. 段落の余白 */
.p-top-announcement__inner p {
  margin-top: 0;
  margin-bottom: 20px;
}
.p-top-announcement__inner p:last-child {
  margin-bottom: 0;
}

/* 4. 装飾テキスト（ゴールドマーカー・注記） */
.p-top-announcement__inner .is-bold {
  font-weight: bold;
  color: #333333;
  background: linear-gradient(transparent 70%, rgba(205, 164, 52, 0.3) 70%);
}
.p-top-announcement__inner .is-note {
  font-size: 12px;
  color: #777777;
}

/* スマホ用調整（スマホでは画面幅に合わせてスッキリ収まるようにする） */
@media screen and (max-width: 767px) {
  .p-top-announcement__inner {
    max-width: 100%;
    padding: 32px 16px;
    /* スマホでは上下の線を消して、すっきりしたカード（ブロック）風にする */
    border-top: none;
    border-bottom: none;
    background-color: #FFFFFF; /* スマホのみ薄っすら白背景を敷くのもアリです */
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  }
  .c-section-title--in-box {
    font-size: 19px;
    text-align: center; /* スマホではタイトルは中央揃えにするとバランスが良いです */
  }
}


/******************************/
/* インフォメーション機能 */
/******************************/
.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;
  text-align: center;

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

.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 .c-scroll-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 16px 0;
  margin: 0;
  list-style: none;
  cursor: grab;
}

.p-top-new-item .c-scroll-list.is-active {
  cursor: grabbing;
}

.p-top-new-item .c-scroll-list img,
.p-top-new-item .c-scroll-list a {
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: auto;
}

/* スクロールバーのデザイン */
.p-top-new-item .c-scroll-list::-webkit-scrollbar { height: 8px; }
.p-top-new-item .c-scroll-list::-webkit-scrollbar-track { background: #F4F4F4; border-radius: 4px; }
.p-top-new-item .c-scroll-list::-webkit-scrollbar-thumb { background: #8F8F8F; border-radius: 4px; }

/* ▼ スマホ用（デフォルト：2.5個表示） */
.p-top-new-item .c-scroll-item {
  width: 36vw;
  flex-shrink: 0;
}

/* ▼ 768px以上：4.3個表示 */
@media screen and (min-width: 768px) {
  .p-top-new-item .c-scroll-list { gap: 24px; }
  .p-top-new-item .c-scroll-item {
    width: calc((100% - (24px * 3.5)) / 4.5);
  }
}

/* ▼ 1075px以上：5.3個表示 */
@media screen and (min-width: 1075px) {
  .p-top-new-item .c-scroll-item {
    width: calc((100% - (24px * 4.5)) / 5.5);
  }
}

/******************************/
/* おすすめ商品 */
/******************************/
.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;
}