/* ========================================
   goods-detail.css
   一般モード / 店舗モード 共通 商品詳細スタイル
   ======================================== */

/* コンテナ幅に合わせて pane-main を 100% に */
.pane-main {
  width: 100%;
  box-sizing: border-box;
}

/* ========================================
   block-variation (店舗在庫アコーディオン)
   ======================================== */

.block-variation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* アコーディオン全体 */
.block-variation--accordion {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1136px;
}

/* アコーディオンボタン */
.block-variation--accordion-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 56px;
  padding: 18px 16px 18px 32px;
  background: #fff;
  border: 1px solid #2d548a;
  cursor: pointer;
  box-sizing: border-box;
  border-radius: 0;
}

/* 最初のボタン: 上角丸 */
.block-variation--accordion > .block-variation--accordion-btn:first-child {
  border-radius: 8px 8px 0 0;
}

/* 最後のボタン(閉じているとき): 下角丸 */
.block-variation--accordion > .block-variation--accordion-btn:last-of-type {
  border-radius: 0 0 8px 8px;
}

/* 最後のボタンが開いているとき: 角丸なし */
.block-variation--accordion > .block-variation--accordion-btn.is-open:last-of-type {
  border-radius: 0;
}

/* 最後のコンテンツが開いているとき: 下角丸 */
.block-variation--accordion > .block-variation--accordion-content.is-open:last-child {
  border-radius: 0 0 8px 8px;
}

/* 2番目以降のボタン: 上辺を常に消して二重線を防ぐ */
.block-variation--accordion-btn + .block-variation--accordion-content + .block-variation--accordion-btn {
  border-top: none;
}

.block-variation--accordion-btn-text {
  flex: 1;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  color: #2d548a;
  text-align: center;
}

.block-variation--accordion-btn-arrow {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  width: 16px;
  height: auto;
}

.block-variation--accordion-btn.is-open .block-variation--accordion-btn-arrow {
  transform: rotate(180deg);
}

/* アコーディオン展開コンテンツ */
.block-variation--accordion-content {
  display: none;
}

.block-variation--accordion-content.is-open {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 24px 32px;
  border: 1px solid #2d548a;
  border-top: none;
  box-sizing: border-box;
}

/* 注記テキスト */
.block-variation--store-note {
  width: 100%;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #1c2430;
}
.block-variation--store-empty a {
  text-decoration: underline;
  color: #203d64;
}
.block-variation--store-empty a:hover {
  text-decoration: none;
}
.block-variation--store-note p {
  margin: 0;
  line-height: 20px;
}

/* 店舗リスト */
.block-variation--store-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 店舗アイテム */
.block-variation--store-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding-bottom: 12px;
  border-bottom: 1px solid #dde1e6;
}
.block-variation--store-item:last-child,
.block-variation--store-item.is-last {
  padding-bottom: 0;
  border-bottom: none;
}

/* 店舗情報 */
.block-variation--store-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.block-variation--store-name {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  color: #1C2430;
  text-decoration: none;
}

.block-variation--store-address {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #1c2430;
}

/* タグ群 */
.block-variation--store-tags {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.block-variation--store-tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  border: 1px solid #203d64;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  color: #203d64;
  white-space: nowrap;
  box-sizing: border-box;
}

.block-variation--store-tag.is-no-stock,
.block-variation--store-tag.is-no-order {
  background: #dde1e6;
  border-color: #c1c7cd;
  color: #697077;
}

.block-variation--store-tag.is-in-stock,
.block-variation--store-tag.is-orderable {
  background: transparent;
  border-color: #203d64;
  color: #203d64;
}

.block-variation--store-tag.is-distance {
  border-color: #203d64;
  color: #203d64;
}

.block-variation--store-tag-icon {
  display: block;
  flex-shrink: 0;
  width: 12px;
}

/* 在庫確認ボタン */
.block-variation--stock-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  background: #2d548a;
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  white-space: nowrap;
  cursor: pointer;
  margin-top: auto;
}

/* もっと見るボタン */
.block-variation--store-more-btn {
  display: block;
  margin: 16px auto 0;
  padding: 10px 28px;
  background: #2d548a;
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  cursor: pointer;
}
.block-variation--store-more-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Honya Club セクション */
.block-variation--honyaclub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.block-variation--honyaclub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 326px;
  min-width: 326px;
  max-width: 326px;
  height: 56px;
  padding: 18px 32px;
  background: #fff;
  border: 1px solid #2d548a;
  border-radius: 9999px;
  cursor: pointer;
  box-sizing: border-box;
}

.block-variation--honyaclub-btn-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  color: #2d548a;
  white-space: nowrap;
}

.block-variation--honyaclub-logo {
  display: block;
  flex-shrink: 0;
  width: 105px;
  height: auto;
}

.block-variation--honyaclub-note {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 28px;
  color: #1c2430;
  text-align: center;
}
.block-stock-modal.is-show {
  display: flex;
  flex-direction: column;
  width: 550px;
  justify-content: flex-start;
}
.block-stock-modal-bg {
  display: none;
}
.block-stock-modal.is-show + .block-stock-modal-bg {
  background: rgba(0, 0, 0, 0.56);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 3000;
  display: block;
  cursor: pointer;
}
.block-stock-modal--no-stock {
  display: none;
}
.block-stock-modal--stock.is-show,
.block-stock-modal--no-stock.is-show {
  display: block;
}
.block-stock-modal--stock {
  display: none;
}
.block-stock-modal--stock.is-show {
  display: block;
}
.block-stock-modal--order button {
  display: none;
}
.block-stock-modal--order button.is-show {
  display: block;
}
.block-stock-modal--no-stock button,
.block-stock-modal--stock button,
.block-stock-modal--order button {
  margin: 16px auto 0;
  width: 326px;
  height: 56px;
  line-height: 56px;
  background: #D97706;
  border-radius: 9999px;
  font-size: 16px;
  color: #FFF;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  outline: none;
  box-sizing: border-box;
  display: none;
}
#nearby_store {
  min-width: 100%;
  width: 100%;
}
.block-stock-modal {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  bottom: 0;
  margin: auto;
  background: #FFF;
  border-radius: 16px;
  padding: 32px;
  height: max-content;
  display: none;
  z-index: 3001;
  max-width: 550px;
}
.block-stock-modal--title {
  color: #203D64;
  margin: 0 auto;
  width: max-content;
  max-height: max-content;
  padding: 0 0 40px;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  line-height: 1;
}
.block-stock-modal--title span img {
  vertical-align: middle;
  margin-right: 5px;
  width: 18px;
  height: auto;
}
.block-stock-modal--shoptitle {
  font-size: 12px;
  color: #1C2430;
  font-weight: 400;
}
.block-stock-modal--shopname {
  font-size: 16px;
  color: #1C2430;
  font-weight: 700; 
}
.block-stock-modal--shopadress {
  margin-top: 16px;
  font-size: 14px;
  color: #000;
  font-weight: 400;
}
.block-stock-modal--shophours {
  display: none;
}
.block-stock-modal--foot {
  display: flex;
  margin-top: 2px;
  gap: 2px;
  flex-direction: column;
  font-size: 14px;
  color: #1C2430;
}
.block-stock-modal--msg {
  color: #1C2430;
  font-size: 13px;
  font-weight: 400;
  margin: 16px 0 0 0;
  line-height: 1.6;
}
.block-stock-modal--close {
  margin: 16px auto 0;
  width: 326px;
  height: 56px;
  line-height: 56px;  
  background: #DCE2EA;
  border-radius: 9999px;
  font-size: 16px;
  color: #2D548A;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}
.block-stock-modal--close:hover {
  opacity: 0.8;
}
.block-stock-modal--main {
  margin-top: 16px;
}
.block-goods-favorite-btn {
  border: none;
  margin: 0 0 0 auto;
  padding: 0;
  height: max-content;
  width: max-content;
  gap: 0;
}
.block-goods-favorite-btn::before {
  position: relative;
  top: 1px;
  margin-right: 0;
  background-image: url("../../../img/usr/normal-mode/goods-favorite.png");
}
.block-goods-favorite-registed--btn::before {
  margin: 0;
  background-image: url("../../../img/usr/normal-mode/goods-favorite-registed.png");
}
.block-goods-favorite-registed--btn {
  background-color: unset;
}
.page-goods .pane-contents {
  background: #F7F6F2;
  margin: 0;
}

/* 在庫の場所 */
.goods-detail-location--body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-x: auto;
}

.goods-location-list {
  display: flex;
  gap: 24px;
  font-size: 18px;
  line-height: 32px;
  white-space: nowrap;
  flex-shrink: 0;
}
.other-stock-item-status {
  min-width: max-content;
}
.block-stock-modal--msg-nostock {
  display: none;
}
.block-stock-modal--msg {
  display: none;
}
.block-stock-modal--msg.is-show,
.block-stock-modal--msg.block-stock-modal--msg-nostock.is-show {
  display: block;
}
.block-stock-modal button.is-show {
  display: block;
}
.block-stock-modal {
  padding: clamp(16px, 5.33vh, 32px) 32px;
}
.block-stock-modal--title {
  padding-bottom: clamp(8px, 6.67vh, 40px);
}
.block-stock-modal--main {
  margin-top: clamp(4px, 2.67vh, 16px);
}
.block-stock-modal--shopadress,
.block-stock-modal--msg {
  margin-top: clamp(4px, 2.67vh, 16px);
}
.block-stock-modal--no-stock button,
.block-stock-modal--stock button,
.block-stock-modal--order button,
.block-stock-modal--close {
  margin-top: clamp(8px, 2.67vh, 16px);
  height: clamp(40px, 9.33vh, 56px);
  line-height: clamp(40px, 9.33vh, 56px);
}