@charset "UTF-8";
/* CSS Document */

/* =========================
   products.html 専用CSS
   目的：レイアウト整理・重複解消
   ※ 既存の見た目と挙動はなるべく維持
   ========================= */

/* ===== 名前空間 ===== */
.products-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 10px 40px;
}

.products-page .page-title {
  text-align: center;
  margin: 10px 0 20px;
}

/* =========================
   共通レイアウト
   ========================= */

/* 2カラム：左（タブ）＋右（商品） */
.products-page .products-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  column-gap: 16px;
  row-gap: 6px;
  align-items: start;
}

/* 左カラム */
.products-page .kana-tabs,
.products-page .fes-tabs,
.products-page .toy-tabs {
  grid-column: 1;
  grid-row: 1;
}

/* 右カラム */
.products-page .products-grid,
.products-page .toy-core-filters {
  grid-column: 2;
}

.products-page .toy-core-filters {
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0;
}

/* hidden最優先 */
.products-page .kana-tabs[hidden],
.products-page .fes-tabs[hidden],
.products-page .toy-tabs[hidden],
.products-page .toy-core-filters[hidden] {
  display: none !important;
}

/* =========================
   メインカテゴリタブ
   ========================= */
.products-page .products-type-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.products-page .type-tab {
  border: 1px solid #ccc;
  background: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.products-page .type-tab.is-active {
  background: #333;
  color: #fff;
  border-color: #333;
}

/* =========================
   商品グリッド
   ========================= */
.products-page .products-grid {
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
}

/* かな見出し */
.products-page .kana-heading {
  grid-column: 1 / -1;
  margin: 0 0 8px;
  padding: 0 0 4px;
  border-bottom: 1px solid #ccc;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}

.products-page .products-grid .kana-heading:first-child {
  position: relative;
  top: -30px;
  margin-top: 0;
  margin-bottom: -22px;
}

/* =========================
   左カラムタブ共通
   ========================= */
.products-page .kana-tabs,
.products-page .fes-tabs,
.products-page .toy-tabs {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.products-page .kana-tabs {
  gap: 6px;
  position: sticky;
  top: 10px;
  justify-content: flex-start;
}

.products-page .fes-tabs,
.products-page .toy-tabs {
  gap: 10px;
}

/* 五十音 */
.products-page .kana-tab {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ccc;
  background: #fff;
  padding: 8px 0;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
}

.products-page .kana-tab.is-active {
  background: #333;
  color: #fff;
  border-color: #333;
}

/* 縁日 */
.products-page .fes-tab {
  width: 130px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  background: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  font-size: 15px;
  white-space: nowrap;
}

.products-page .fes-tab.is-active {
  background: #333;
  color: #fff;
  border-color: #333;
}

/* 玩具 */
.products-page .toy-tab {
  width: 140px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  background: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  font-size: 15px;
  white-space: nowrap;
}

.products-page .toy-tab.is-active {
  background: #333;
  color: #fff;
  border-color: #333;
}

/* 玩具 core フィルタ */
.products-page .toy-price-tabs,
.products-page .toy-tag-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.products-page .toy-price-tab,
.products-page .toy-tag-tab {
  border: 1px solid #ccc;
  background: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.products-page .toy-price-tab.is-active,
.products-page .toy-tag-tab.is-active {
  background: #333;
  color: #fff;
  border-color: #333;
}

/* =========================
   補足・注記
   ========================= */
.products-page .lease-info {
  background: #f6f6f6;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
  text-align: center;
  line-height: 1.6;
}

.lease-notification {
  color: red;
  font-weight: 700;
  margin-right: .3em;
}

.products-note {
  grid-column: 2;
  font-size: 0.75rem;
  color: #777;
  margin-top: 30px;
  text-align: right;
}

/* =========================
   商品カード
   ========================= */
.products-page .products-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  box-sizing: border-box;
  transition: transform .15s ease, box-shadow .15s ease;
}

.products-card {
  display: flex;
  flex-direction: column;
}

.products-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

.products-page .products-card__image {
  width: 100%;
  height: 120px;
  background: #f6f6f6;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.products-page .products-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
  padding: 6px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}

.products-page .products-card__title {
  font-size: 16px;
  margin: 8px 0;
}

.products-page .products-card__btn {
  padding: 6px 10px;
  margin-top: auto;
  align-self: center;
}

/* =========================
   モーダル
   ========================= */
.products-page .products-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.products-modal h2 {
  text-align: center;
  margin-bottom: 12px;
  border-bottom: solid #7a8ca5;
}

.products-page .products-modal__content {
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-sizing: border-box;
}

.products-page .products-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  float: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 1100;
}

.products-page .products-modal__close:hover {
  background: #fff;
}

.products-page .products-modal__label {
  font-weight: 700;
  margin-right: .3em;
}

.products-page .products-modal__img {
  display: block;
  margin: 10px auto 0;
  max-width: 100%;
  max-height: 50vh;
  object-fit: contain;
}

.products-modal__thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.products-modal__thumb {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0;
  background: #fff;
  overflow: hidden;
  width: 60px;
  height: 60px;
}

.products-modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  pointer-events: auto;
}

.products-modal__thumb.is-active {
  outline: 2px solid #888;
}

.products-modal__desc {
  margin-top: 12px;
  line-height: 1.7;
}

.products-modal__note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 8px;
  line-height: 1.5;
}

/* =========================
   チップ
   ========================= */
.products-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.products-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 84px;
  padding: 8px 6px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.products-chip__img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  background: #fff;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
  padding: 4px;
}

.products-chip__text {
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  word-break: break-word;
}

.products-chip.is-active {
  outline: 2px solid #888;
}

/* =========================
   組み立て手順
   ========================= */
.products-assembly {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e5e5e5;
}

.products-assembly__heading {
  margin: 0 0 12px;
  text-align: center;
}

.products-assembly__viewer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.products-assembly__image {
  display: block;
  width: 100%;
  max-width: 420px;
  max-height: 46vh;
  margin: 0 auto;
  object-fit: contain;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 8px;
  box-sizing: border-box;
}

.products-assembly__body {
  text-align: center;
}

.products-assembly__count {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: #666;
}

.products-assembly__title {
  margin: 0 0 8px;
  font-size: 1rem;
}

.products-assembly__text {
  margin: 0;
  line-height: 1.7;
}

.products-assembly__controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.products-assembly__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.products-assembly__chip {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #ccc;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

.products-assembly__chip.is-active {
  background: #333;
  color: #fff;
  border-color: #333;
}

.products-assembly__nav {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  height: 44px;
  padding: 0 18px;
  border: none;
  outline: none;
  border-radius: 999px;
  background: #555;
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  cursor: pointer;
  align-self: center;
}

.products-assembly__nav:hover {
  background: #333;
}

.products-assembly__nav:disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

/* =========================
   くじ導線
   ========================= */
.products-kuji-cta {
  margin: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background: #fff7f7;
  border: 1px solid #ffd5d5;
  border-radius: 16px;
  transition: 0.2s;
}

.products-kuji-cta__text {
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: #666;
}

.products-kuji-cta__btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 999px;
  background: #e60023;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s;
}

.products-kuji-cta__btn:hover {
  background: #b8001c;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.text-red{
    color: red;
}
/* =========================
   PC専用
   ========================= */
@media (min-width: 769px) {
  .products-assembly__controls {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .products-assembly__nav {
    align-self: auto;
  }
}

@media (min-width: 921px) {
  .products-page .fes-tabs {
    gap: 6px;
    position: sticky;
    top: 10px;
    justify-content: flex-start;
  }

  .products-page .kana-tab {
    text-align: center;
  }
}

/* =========================
   タブレット以下
   ========================= */
@media (max-width: 920px) {
  .products-page .products-layout {
    display: block;
  }

  .products-page .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-page .kana-tabs,
  .products-page .fes-tabs,
  .products-page .toy-tabs {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    display: flex;
    flex-direction: row !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    gap: 8px;
    padding: 10px 12px;
    margin: 0 0 12px;
    border-bottom: 1px solid #ddd;
  }

  .products-page .kana-tab {
    width: auto;
    flex: 0 0 auto;
    min-width: 44px;
    padding: 10px 14px;
    border-radius: 10px;
    writing-mode: horizontal-tb;
  }

  .products-page .fes-tab,
  .products-page .toy-tab {
    flex: 0 0 auto;
    min-width: max-content;
    padding: 10px 14px;
    border-radius: 10px;
    writing-mode: horizontal-tb;
  }

  .products-page .toy-tab {
    width: 160px;
  }

  .products-page .toy-core-filters {
    display: flex;
    gap: 10px;
    margin: 0 0 12px;
  }

  .products-note {
    grid-column: auto;
    text-align: right;
    margin-top: 16px;
  }
}

/* =========================
   スマホ
   ========================= */
@media (max-width: 768px) {
  .products-page .products-grid {
    grid-template-columns: 1fr;
  }

  .products-page .kana-tabs,
  .products-page .fes-tabs,
  .products-page .toy-tabs {
    gap: 8px;
    padding: 8px 10px;
    margin: 0 0 10px;
  }

  .products-page .kana-tab {
    width: auto;
    flex: 0 0 auto;
    min-width: 36px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.9rem;
  }

  .products-page .fes-tab,
  .products-page .toy-tab {
    flex: 0 0 auto;
    min-width: max-content;
    width: auto;
    padding: 8px 12px;
  }

  .products-page .toy-core-filters {
    margin: 0 0 10px;
  }

  /* products.html のヘッダーナビだけ共通より上書き
  .products-body header {
    align-items: stretch;
  }

  .products-body header nav {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .products-body header nav ul {
    display: flex;
    flex-direction: row !important;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    width: max-content;
    min-width: 100%;
    margin-top: 1rem;
    padding: 0 10px 8px;
  }

  .products-body header nav li {
    width: auto !important;
    flex: 0 0 auto;
    padding: 0;
    border-bottom: none !important;
  }

  .products-body header nav li a {
    display: block;
    width: auto;
    padding: 8px 12px;
    white-space: nowrap;
    border: 1px solid #ccc;
    border-radius: 999px;
    background: #fff;
    transition: all 0.2s ease;
    text-decoration: none !important;
  }

  .products-body header nav li a:hover,
  .products-body header nav li a:focus {
    background: #e60023;
    color: #fff;
    border-color: #e60023;
    text-decoration: none !important;
  }

  .products-body header nav li a::after {
    display: none !important;
    content: none !important;
  }*/
}