@charset "utf-8";

/* ==================================================
   GOODSページ専用スタイル
================================================== */

/* ロゴエリア */
.goods-logo-area {
  text-align: center;
  margin-top: 2rem;
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.goods-logo-area:hover {
  transform: translateY(-3px);
  /* マウスオーバーで少し上に浮く */
}

.goods-logo-area img {
  max-width: 400px;
  width: 90%;
  height: auto;
}

/* --- グッズ一覧グリッド --- */
.goods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* スマホ版: 2列 */
  gap: 2rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 640px) {
  .goods-grid {
    grid-template-columns: repeat(3, 1fr);
    /* PC版: 3列 */
    gap: 3rem 2rem;
  }
}

.goods-grid li.empty {
  display: none;
}

/* --- 個別アイテムカード --- */
.item_box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  height: 100%;
  /* 高さを均一化 */
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* バッジ */
.item_badge {
  background-color: #ffe4e1;
  color: var(--color-brand-red, #e60012);
  font-size: 0.75rem;
  font-weight: var(--font-weight-bold);
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  /* margin-bottom: 0.75rem; */
}

/* 画像枠（不要なボーダーや影を完全リセット） */
.item_thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.75rem;
  overflow: hidden;
  position: relative;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.item_thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* ホバーで画像のみ滑らかに拡大 */
.item_box:hover .item_thumb img {
  transform: scale(1.05);
}

/* 商品名（タイトル行数の違いによるガタつきを防止するため高さを固定） */
.item_name {
  font-size: 0.85rem;
  font-weight: var(--font-weight-bold);
  color: #333;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  min-height: 3.6em;
  /* 3行分の高さを確保 */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

@media (min-width: 640px) {
  .item_name {
    font-size: 0.95rem;
    min-height: 3.8em;
  }
}

/* 価格 */
.item_price {
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-brand-red, #e60012);
  margin-top: auto;
  /* 一番下に揃える */
}

/* --- 下部テキスト類 --- */
.goods-coming-soon {
  text-align: center;
  font-weight: var(--font-weight-bold);
  margin-top: 3rem;
  line-height: 1.6;
}

.goods-rules p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #333 !important;
}

.goods-note {
  font-size: 0.8rem;
  color: var(--color-brand-red, #e60012);
}

.goods-notes-list {
  list-style: none;
  padding: 0 1rem;
  color: #333 !important;
}

.goods-notes-list li {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.goods-btn-area {
  text-align: center;
  margin-top: 2rem;
}

/* ==================================================
   モーダル（ポップアップ）関連スタイル
================================================== */
#goods_modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#goods_modal.show {
  opacity: 1;
  visibility: visible;
}

.modal_bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

/* 白いモーダルカード */
.modal_inner {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  background-color: #fff;
  border-radius: var(--radius-card-sp, 2rem);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
  /* 閉じるボタンを外側に飛び出させる */
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

#goods_modal.show .modal_inner {
  transform: scale(1) translateY(0);
}

/* 内側のラップ（ここで縦スクロール＆角丸マスク） */
.modal_wrap {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 85vh;
  border-radius: var(--radius-card-sp, 2rem);
  width: 100%;
  padding: 4px;
  /* スクロールバーが角丸の内側に収まるよう微調整 */
}

@media (min-width: 768px) {
  .modal_wrap {
    flex-direction: row;
    overflow: hidden;
  }
}

/* --- スクロールバーのカスタマイズ（細く・透明感のあるデザイン） --- */
.modal_wrap::-webkit-scrollbar,
.modal_texts::-webkit-scrollbar {
  width: 6px;
  /* スクロールバーの太さを細く */
}

.modal_wrap::-webkit-scrollbar-track,
.modal_texts::-webkit-scrollbar-track {
  background: transparent;
  /* 背景は透明 */
}

.modal_wrap::-webkit-scrollbar-thumb,
.modal_texts::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.15);
  /* 薄いグレー */
  border-radius: 10px;
  /* バーの角を丸く */
}

.modal_wrap::-webkit-scrollbar-thumb:hover,
.modal_texts::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.3);
  /* ホバー時だけ少し濃く */
}

/* Firefox対応 */
.modal_wrap,
.modal_texts {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}


/* 画像エリア */
.modal_images {
  width: 100%;
  padding: 2rem 2rem 0;
}

@media (min-width: 768px) {
  .modal_images {
    width: 45%;
    padding: 2.5rem;
    flex-shrink: 0;
  }
}

.slider .slick-img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.thumbnail {
  margin-top: 1rem;
}

.thumbnail-img {
  padding: 0 4px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.thumbnail-img:hover,
.thumbnail .slick-current {
  opacity: 1;
}

.thumbnail-img img {
  border-radius: 4px;
  border: 1px solid #ddd;
}

/* テキストエリア */
/* テキストエリア */
.modal_texts {
  width: 100%;
  padding: 1.5rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .modal_texts {
    width: 55%;
    padding: 2.5rem;
    overflow-y: auto;
    max-height: 85vh;
  }
}

.modal_texts .item_name {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-brand, #e60012);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  min-height: auto;
  display: block;
  text-align: left;
}

.modal_texts .item_label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed #ddd;
}

.modal_texts .item_label .item_badge {
  margin-bottom: 0;
}

/* アイコンが無い場合でも常に右端に寄せる設定 */
.modal_texts .item_price {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-brand-red, #e60012);
  margin-left: auto; /* ★ これでバッジの有無に関わらず右揃えになります */
  text-align: right;
}

.modal_texts .item_detail {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #333;
}

/* グレーのスペック枠 */
.modal_texts .item_spec {
  font-size: 0.8rem;
  background-color: #f5f5f5;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #555;
}

/* グレー枠内の「全9種」等のスタイル設定 */
.modal_texts .item_spec .item_subspec {
  font-size: 0.85rem;
  font-weight: var(--font-weight-bold);
  color: #333;
  margin-bottom: 0.5rem;
}

/* ※から始まる注釈（主張を抑えた落ち着いたグレー表記へ変更） */
.modal_texts .item_ex {
  display: block;
  font-size: 0.7rem;
  color: #666666; /* パキッとした赤から落ち着いたダークグレーに変更 */
  font-weight: normal;
  line-height: 1.6;
  margin-top: 1rem;
}

.modal_texts .item_ex span {
  color: #666666 !important; /* データ内のspanタグ赤字指定も落ち着いた色へ上書き */
  font-weight: normal !important;
}

/* 右上飛び出る閉じるボタン */
.btn_modal_close {
  position: absolute !important;
  top: -16px !important;
  right: -16px !important;
  width: 40px !important;
  height: 40px !important;
  cursor: pointer !important;
  z-index: 100 !important;
  /* transition: transform 0.2s ease, background-color 0.2s ease !important; */
  background-color: var(--color-brand-red, #e60012) !important;
  border-radius: 50% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important; */
  border: 2px solid #ffffff !important;
}

.btn_modal_close:hover {
  transform: scale(1.1) !important;
  background-color: #c40010 !important;
}

.btn_modal_close img {
  display: none !important;
}

.btn_modal_close::before,
.btn_modal_close::after {
  content: "" !important;
  position: absolute !important;
  width: 18px !important;
  height: 2.5px !important;
  background-color: #ffffff !important;
  border-radius: 2px !important;
}

.btn_modal_close::before {
  transform: rotate(45deg) !important;
}

.btn_modal_close::after {
  transform: rotate(-45deg) !important;
}

@media (max-width: 767px) {
  .btn_modal_close {
    top: -12px !important;
    right: -12px !important;
    width: 34px !important;
    height: 34px !important;
  }

  .btn_modal_close::before,
  .btn_modal_close::after {
    width: 14px !important;
    height: 2px !important;
  }
}