#goods_container {
  position: relative;
  z-index: 1;
  padding: 5% 10%;
  background-color: #f4ac10;
  background-image: url(../../img/bg03.png);
  background-size: 100%;
  background-repeat: repeat-y;
  background-position: center center;
  container-type: inline-size;
}

#goods_container .title {
  margin-bottom: 5%;
}

#goods_container .title p {
  color: #fff;
  font-size: clamp(3rem, 10cqi, 8rem);
  font-family: "azo-sans-uber", sans-serif;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.05em;
  line-height: 1;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

#goods_container .title span {
  font-size: clamp(1.7rem, 4cqi, 3rem);
  letter-spacing: 0.05em;
  font-weight: 800;
  color: #333;
  line-height: 1;
}

#goods_container ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10vw;
}

#goods_container ul .goods_item {
  position: relative;
  width: calc(100% / 3 - 7px);
  display: block;
  background-color: #ef8600;
  text-align: left;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  padding: 3px;
}

#goods_container ul::after {
  content: "";
  display: block;
  width: calc(100% / 3 - 7px);
}

#goods_container ul .goods_item .item_wrap {
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

#goods_container ul .goods_item figure {
  position: relative;
}

#goods_container ul .goods_item .new {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-block;
  background-color: #e7a12b;
  padding: 3%;
  text-align: center;
  display: flex;
  align-items: center;
  line-height: 12px;
  font-size: min(1.2rem, 2.5vw);
  color: #fff;
}

#goods_container ul .goods_item .name {
  width: 100%;
  padding: 5px;
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1.5;
  color: #fff;
}

@media screen and (max-width: 750px) {
  #goods_container {
    padding: 10% 5%;
  }

  #goods_container .goods_content h3 {
    font-size: 2rem;
  }

  #goods_container .goods_content ul li {
    font-size: 1.4rem;
  }

  #goods_container ul {
    gap: 5px 0;
  }

  #goods_container ul .goods_item {
    width: calc(100% / 2 - 3px);
  }

  #goods_container ul .goods_item .name {
    font-size: 1.3rem;
    line-height: 1.4;
    padding: 3px;
  }
}

/* ---------------------------------- */
/* モーダル              */
/* ---------------------------------- */

/* モーダルが開いている時にbodyのスクロールを止める */
body.is-locked {
  overflow: hidden;
}

/* 既存のカードをクリック可能にする */
#goods_container ul .goods_item {
  cursor: pointer;
}

/* モーダル背景（オーバーレイ） */
.goods_modal_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.84);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
  /* padding: 20px; */
  overflow-y: scroll;
}

.goods_modal_overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* モーダル本体 */
.goods_modal_content {
  width: 100%;
  max-width: 700px;
  box-sizing: border-box;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

/* 閉じるボタン本体 */
.goods_modal_close {
  position: fixed;
  top: 30px;
  right: calc(1rem + var(--scrollbar-width, 30px));
  width: 60px;
  height: 60px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}
.goods_modal_close::before,
.goods_modal_close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px; /* バツ線の長さ（調整可能） */
  height: 3px; /* バツ線の太さ（調整可能） */
  background-color: #ccc; /* バツ線の色 */
  border-radius: 1px; /* 線の角を少し丸く */
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.goods_modal_close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.goods_modal_close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ホバー時の装飾（色変更や軽く回転） */
.goods_modal_close:hover::before,
.goods_modal_close:hover::after {
  background-color: #000;
}
.goods_modal_img {
  width: 100%;
  text-align: center;
  margin-bottom: 30px;
}

.goods_modal_img img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.goods_modal_info{
  text-align: left;
  color: #fff;
  padding-bottom: 30px;
}

.goods_modal_title {
  font-size: 2.3rem;
  font-weight: bold;
  text-align: left;
  margin: 0 0 10px 0;
  line-height: 1.4;
  padding-bottom: 8px;
}

.modalLimited {
  width: fit-content;
  padding: 5px;
  line-height: 1;
  background-color: #cccccc;
  color: #333;
  margin-bottom: 10px;
}

.modalPriceArea{
  display: flex;
}

.modalPrice, .modalBoxPrice {
  display: inline-block;
  font-size: 2.3rem;
  font-weight: bold;
  color: #ed6d1e; 
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 5px;
}

.modalBoxPrice {
  margin-left: 10px;
}

.modalPrice span, .modalBoxPrice span {
  font-size: 1.6rem;
}

.modalSize {
  font-size: 1.6rem;
}

.modalTag {
  display: inline-block;
  background-color: #ef8600;
  color: #fff;
  font-size: 1.4rem;
  font-weight: bold;
  padding: 1px 8px;
  border-radius: 5px;
  margin-bottom: 6px;
}

@media screen and (max-width:750px){

  /* モーダル本体 */
  .goods_modal_content {
    padding: 4%;
  }

  /* 閉じるボタン本体 */
  .goods_modal_close {
    top: 20px;
    right: calc(1rem + var(--scrollbar-width, 10px));
    width: 30px;
    height: 30px;
  }
  .goods_modal_close::before,
  .goods_modal_close::after {
    top: 50%;
    left: 50%;
    width: 45px; /* バツ線の長さ（調整可能） */
    height: 3px; /* バツ線の太さ（調整可能） */
  }
  
  .goods_modal_info{
    padding-bottom: 10px;
  }

  .goods_modal_title {
    font-size: 2rem;

  }

  .modalPrice, .modalBoxPrice {
    font-size: 1.7rem;
  }

  .modalPrice span,.modalBoxPrice span{
    font-size: 1.3rem;
  }

  .modalSize {
    font-size: 1.3rem;
  }

  .modalTag {
    font-size: 1.4rem;
  }


}/*max-width:750px*/

/* ---------------------------------- */
/* カルーセル             */
/* ---------------------------------- */
/* カルーセル外枠 */
.carousel_container {
  width: 100%;
  margin-bottom: 15px;
}

/* 画像表示エリア（矢印の位置基準） */
.carousel_view {
  position: relative;
  width: 100%;
  overflow: hidden;
  touch-action: pan-y;
}

/* スライド画像エリア */
.carousel_slides {
  display: flex;
  transition: transform 0.4s ease-in-out;
  width: 100%;
}

.carousel_slides img {
  width: 100%;
  flex-shrink: 0;
  object-fit: contain;
  background-color: #fff;
}

/* 左右矢印ボタン */
.carousel_prev,
.carousel_next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid #ddd;
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.2s;
}

.carousel_prev:hover,
.carousel_next:hover {
  background-color: #fff;
}

.carousel_prev { left: 8px; }
.carousel_next { right: 8px; }

.carousel_prev::before,
.carousel_next::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-top: 2px solid #ef8600;
  border-right: 2px solid #ef8600;
}

.carousel_prev::before {
  transform: rotate(-135deg);
  margin-left: 3px;
}

.carousel_next::before {
  transform: rotate(45deg);
  margin-right: 3px;
}

/* 下部サムネイルナビゲーション */
.carousel_thumbs {
  display: grid;
  grid-template-columns: repeat(10, 1fr); 
  gap: 3px;                             
  margin-top: 12px;
  width: 100%;
  box-sizing: border-box;
}

/* サムネイルボタンの基本スタイル */
.carousel_thumb {
  background: none;
  border: 2px solid #ddd;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 1 / 1;    
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.8;           
}

.carousel_thumb:hover {
  opacity: 1;
}

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

/* 選択中（アクティブ）のサムネイル */
.carousel_thumb.is-active {
  border-color: #ef8600; 
  opacity: 1;             
}

@media screen and (max-width:750px){

  /* 下部サムネイルナビゲーション */
  .carousel_thumbs {
    display: grid;
    grid-template-columns: repeat(8, 1fr); 
    gap: 3px;                             
    margin-top: 12px;
    width: 100%;
    box-sizing: border-box;
  }
    
}/*max-width:750px*/