:root {
  --color-text: #333;
  --color-bg: #FFFFFF;
  --color-main: #e45653;
  --color-living: #D38433;
  --color-dining: #7d8b6c;
  --color-casual: #d6a528;
  --color-kotatsu: #4a4e3f;
  --color-huton: #1F2F54;
  --color-sonota: #A9A9A9;
  --color-menu-hover-bg: #f0f0f0;
  --color-section-sub: #000;
  --color-futon-title-bg: #A9A9A9;
  --color-futon-button-bg: #446347;
  --color-futon-button-text: #fff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.kotatsutokusyu {
  background-color: var(--color-bg);
  font-family: sans-serif;
  margin: 0 0 50px 0;
  padding: 0;
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.6;
}

/* ヘッダー */
.TOP {
  text-align: center;
  margin: 20px auto;
  padding: 0 16px;
}
.TOP img {
  width: 900px;
  max-width: 90%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* メニュー */
.menu {
  max-width: 900px;
  margin: 0 auto;
}

.menu ul {
  display: flex;
  justify-content: center;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu li {
  flex: 0 0 110px;
  border-right: none;
}

.menu li a {
  display: block;
  text-decoration: none;
  color: var(--color-text);
  font-weight: bold;
  padding: 8px 8px;
  font-size: 18px;
  text-align: center;
  transition: background 0.3s, color 0.3s;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.menu li a:hover {
  background-color: var(--color-menu-hover-bg);
  border-radius: 0;
  color: #000;
}

/*ページ遷移での表示位置の調整 */
.anchor-offset {
  display: block;
  height: 80px;
  margin-top: -80px;
  visibility: hidden;
}

/* セクションタイトル */
.section-title {
  text-align: center;
  max-width: 900px;
  margin: 50px auto 15px;
}
.section-title .section-sub {
  display: block;
  font-size: 30px;
  letter-spacing: 0em;
  color: var(--color-section-sub);
  text-transform: uppercase;
  margin-bottom: 6px;
  text-align: center;
  line-height: 1;
}
.lead-text {
  text-align: center;
  font-size: 21px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 2;
  margin: 40px 0 50px;
}
.section-title .section-main {
  display: inline-block;
  position: relative;
  padding: 0 20px;
  font-size: 23px;
  letter-spacing: 0.1em;
}
.section-title .section-main::before,
.section-title .section-main::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 250px;
  height: 1.5px;
  background-color: var(--color-main);
  transform: translateY(-50%);
}
.section-title .section-main::before {
  left: calc(-150px - 110px);
}
.section-title .section-main::after {
  right: calc(-150px - 110px);
}

/* 各色テーマ */
.title-living .section-main::before,
.title-living .section-main::after {
  background-color: var(--color-living);
}

.title-casual .section-main::before,
.title-casual .section-main::after {
  background-color: var(--color-casual);
}

.title-kotatsu .section-main::before,
.title-kotatsu .section-main::after {
  background-color: var(--color-kotatsu);
}

.title-dining .section-main::before,
.title-dining .section-main::after {
  background-color: var(--color-dining);
}

.title-huton .section-main::before,
.title-huton .section-main::after {
  background-color: var(--color-huton);
}

.title-sonota .section-main::before,
.title-sonota .section-main::after {
  background-color: var(--color-sonota);
}

/* 商品ブロック全体 */
.new-item-block {
  width: 90%;
  max-width: 900px;
  margin: 50px auto 50px;
  background-color: #fff;
  padding: 20px 20px 0px 20px;
}

/* 区切り線スタイル */
.product-divider {
  border: none;
  height: 2px;
  background-color: #ccc;
  max-width: 300px;
  margin: 40px auto;
}

/* 上のコンテンツ */
.item-container {
  display: flex;
  justify-content: center;
  gap: 0px;
  align-items: center;
  flex-wrap: nowrap;
}

.item-image {
  position: relative;
}
.color-icons {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
}
.main-item-image {
  width: 100% !important;
  max-width: 397px !important;
  min-width: 280px !important;
  height: 350px !important;
  object-fit: cover !important;
  display: block;
}
.item-image img {
  max-width: 100%;
  height: auto;
}
.color-icons img {
  width: 41px;
  height: 41px;
  min-width: 41px;
  max-width: 41px;
  object-fit: contain;
}
/* ｱﾍﾞﾙ用 メイン画像２枚 */
/* ========== アベル専用 ========== */
.new-item-block.abel-split {
  --img-h: 350px;
  --img-min-w: 280px;
  --img-max-w: 397px;
  --gap: 8px;
  --cell-h: calc((var(--img-h) - var(--gap)) / 2);
}

/* 親コンテナ */
.new-item-block.abel-split .item-image {
  width: 100%;
  min-width: var(--img-min-w);
  max-width: var(--img-max-w);
  height: var(--img-h);
  display: grid;
  grid-template-rows: var(--cell-h) var(--cell-h);
  row-gap: var(--gap);
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

/* 元の1枚画像は非表示 */
.new-item-block.abel-split .item-image .main-item-image {
  display: none !important;
}

/* 上下2枚の設定 */
.new-item-block.abel-split .split-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  position: static !important;
  max-height: none !important;
}

/* トリミング位置の調整（任意で変更可） */
.new-item-block.abel-split .split-img.top {
  object-position: 50% 25% !important;
}
.new-item-block.abel-split .split-img.bottom {
  object-position: 50% 75% !important;
}

/* バッジを画像左上に重ねる場合 */
.new-item-block.abel-split .product-type-labels {
  position: static;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin: 0 0 8px 0;
}

.item-code .new-inline-icon {
  width: 70px;
  height: auto;
  display: inline-block;
}

.item-details {
  flex: 2;
  min-width: 300px;
  max-width: none;
  text-align: center;
  margin-top: 0px;
  margin-bottom: 10px;
  background-color: #f3efec;
  padding: 20px;
}

.item-code {
  font-size: 30px;
  font-weight: bold;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

ruby {
  ruby-align: center;
  ruby-position: over;
}

ruby rt {
  font-size: 15px;
  letter-spacing: 0em;
  line-height: 1;
}

.item-description {
  font-size: 16px;
  margin: 0 22px 16px;
  text-align: center;
  margin-top: 15px;
}

.product-type-label {
  display: inline-block;
  margin-top: 4px;
  margin-bottom: 12px;
  padding: 7px 16px;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  background-color: #f1f1f1;
  border-radius: 9999px;
}
/* アイコン行 */
.icon-row {
  display: flex;
  justify-content: center;
  gap: 2px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.icon-row img,
.icon-row_row img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

/* カラーバリエーション */
.color-variations-block {
  margin: 0 auto;
  max-width: 900px;
}

.color-variations-title {
  font-size: 16px;
  font-weight: bold;
  margin: 4px 0;
  text-align: left;
}

.color-variations {
  display: flex;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 15px auto 0px;
}

/* ===== 布団バリエーション画像の横幅指定（柔軟な幅指定） ===== */
.color-variations.variation-2 .color-item {
  flex: 0 0 calc((100% - 5px) / 2);
  max-width: calc((100% - 5px) / 2);
}
.color-variations.variation-3 .color-item {
  flex: 0 0 calc((100% - 12px) / 3);
  max-width: calc((100% - 12px) / 3);
}
.color-variations.variation-4 .color-item {
  flex: 0 0 calc((100% - 5px) / 2);
  max-width: calc((100% - 5px) / 2);
}
.color-variations.variation-6 .color-item {
  flex: 0 0 calc((100% - 10px) / 3);
  max-width: calc((100% - 10px) / 3);
}

/* モバイル対応：すべて1列表示 */
@media (max-width: 600px) {
  .color-variations .color-item {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}

.color-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  margin: 15px 0;
}

/* ===== 布団画像（クラス指定で限定） ===== */
.futon-image {
  width: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.color-variations.variation-2 .futon-image {
  height: 250px !important;
}
.color-variations.variation-3 .futon-image {
  height: 178px !important;
}
.color-variations.variation-4 .futon-image {
  height: 250px !important;
}
.color-variations.variation-6 .futon-image {
  height: 178px !important;
}

/* =========================
   ロゴ＋送り仮名（布団バリエーション内）
   ========================= */

/* 旧: .color-label は従来の下置きキャプション用（他所で使っている想定）
   → 既存のまま残してOK。今回の横並びは .color-label-wrap を使う */
.color-label {
  display: block;
  text-align: center;
  width: 100%;
  margin-top: 6px;
  font-size: 16px;
  color: var(--color-text);
}

.color-label-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
}

/* 横並びのラッパー。スコープを .color-variations .color-item に限定 */
.color-variations .color-item .color-label-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 10px;
}

/* 既存の .color-label-img（縦置き用）の指定をこの範囲だけ上書き */
.color-variations .color-item .color-label-wrap .color-label-img {
  display: inline-block;
  margin: 0 !important;
  max-height: 26px;
  width: auto;
  object-fit: contain;
}

/* 送り仮名のテキスト */
.color-variations .color-item .color-label-wrap .color-label-text {
  display: inline-block;
  white-space: nowrap;
  line-height: 1;
  font-size: 15px;
  color: #333;
  font-weight: 700;
  margin: 0 auto 0px;
}

/* モバイルでも横並びを維持（はみ出し回避のため若干縮める） */
@media (max-width: 480px) {
  .color-variations .color-item .color-label-wrap {
    gap: 6px;
  }
  .color-variations .color-item .color-label-wrap .color-label-img {
    max-height: 24px;
  }
  .color-variations .color-item .color-label-wrap .color-label-text {
    font-size: 14px;
  }
}
/* カラースティック（現状維持） */
.color-sticks {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 6px auto 0;
}

.color-sticks img {
  width: calc((100% - 5 * 6px) / 6);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

/* 推奨：ボックスサイズの誤差回避 */
* {
  box-sizing: border-box;
}

/* 商品の詳細ボタン */
.product-detail-button {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 4px 0 0px;
}

/* ブロック区切る横線 */
.section-divider {
  border: none;
  height: 1.2px;
  background-color: #A9A9A9;
  margin: 60px auto 60px;
  max-width: 360px;
}

.product-detail-button a {
  background-color: #446347;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  padding: 12px 24px;
  border-radius: 0px;
  display: inline-block;
  text-align: center;
  transition: background-color 0.3s ease;
}

.product-detail-button a:hover {
  background-color: #33503a;
}

/* 1セット布団のみ */
/* ========== 1セット布団 KOT-7312-105/7560 専用 ========== */

/* テーブル＋こたつ画像の横幅と位置揃え */
.new-item-block[data-code="1set-huton"] .color-variations .color-item {
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
  padding: 0;
}

/* こたつ画像全体の配置（左寄せ） */
.new-item-block[data-code="1set-huton"] .color-variations {
  display: flex;
  justify-content: flex-start;
  width: 350px;
  margin: 0;
  padding-left: 0;
}

/* テーブル画像（上） */
.new-item-block[data-code="1set-huton"] .main-item-image {
  margin-bottom: 4px !important;
  width: 350px !important;
  height: 200px !important;
  object-fit: cover;
  display: block;
}

/* こたつ画像（下） */
.new-item-block[data-code="1set-huton"] .color-variations .color-item > img {
  width: 350px !important;
  height: 200px !important;
  object-fit: cover;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ▼ living セクション専用の調整。既存CSSは触らない！ */
.new-item-block[data-code="1set-huton"] .color-label-img {
  height: 26px !important;
  width: auto !important;
  max-height: none !important;
  max-width: none !important;
  aspect-ratio: auto !important;
  display: block;
  object-fit: contain;
}

[data-code="1set-huton"] .color-variations .color-item .color-label-wrap {
  margin: 0 auto 0;
}

.new-item-block[data-code="1set-huton"] .color-sticks {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

.new-item-block[data-code="1set-huton"] .chips {
  display: flex;
  gap: 6px;
}

.new-item-block[data-code="1set-huton"] .chips img {
  width: 39px;
  height: 39px;
  object-fit: cover;
  border-radius: 4px;
}

/* 左カラム：画像 → ラベル → 画像 の縦並び＆中央寄せ */
.new-item-block[data-code="1set-huton"] .item-image{
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* BIQUEロゴ＋仮名を横一列・中央に、下だけ4px・左右auto（上0） */
.new-item-block[data-code="1set-huton"] .color-label-wrap{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px auto 6px;
  white-space: nowrap;
  line-height: 1;
}

.new-item-block[data-code="1set-huton"] .color-label-img{ height: 20px; }

/* 横並び崩れ対策：2カラムを折り返さない */
.new-item-block[data-code="1set-huton"] .item-container{
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: nowrap;
}

.new-item-block[data-code="1set-huton"] .item-details{
  flex: 1 1 auto;
  min-width: 0;
}

/* ダイニングセクション */
/* 共通：セクションの余白設定 */
.dining-kotatsu-section,
.dining-chair-section,
.dining-huton-section {
  text-align: center;
  padding: 40px 20px;
}

/* 共通：セクションタイトル・リード文など */
.section-header .tagline {
  font-size: 14px;
  color: #666;
  background: #f1f1e9;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: 26px;
  margin: 0 0 10px;
  font-weight: 600;
  letter-spacing: 1px;
}

.section-header .lead {
  font-size: 15px;
  color: #444;
  margin-bottom: 30px;
}

/* 共通：商品グリッド */
.product-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  background-color: #f9f9f9;
  padding: 30px 0px;
  max-width: 700px;
  margin: 0 auto;
  border-radius: 0px;
}

.product-grid-heater {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 30px 0px;
  max-width: 700px;
  margin: 0 auto;
  border-radius: 0px;
}

/* 商品アイテムサイズ */
.product-grid.three-cols .product-item {
  width: 200px;
}

/* 商品画像 */
.product-item img {
  width: 100%;
  border-radius: 0px;
  max-width: 200px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* 商品名 */
.product-name {
  font-weight: 600;
  margin: 0px 0 8px;
  font-size: 16px;
}

/* 詳細ボタン */
.product-button {
  background-color: #446347;
  color: #fff;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s;
}

.product-button:hover {
  background-color: #347367;
}

/* ===== 布団単品ページ：左メイン＋右サイド ===== */
.futon-simple {
  width: 90%;
  max-width: 900px;
  margin: 40px auto 20px;
  background-color: #fff;
  padding: 20px 20px 0 20px;
}

/* 白背景カード枠 */
/* 2カラムレイアウト */
.futon-two-col {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(16px, 3vw, 32px);
  align-items: center;
  margin-bottom: 80px
}

/* 左カラム：メイン画像＋サムネ */
.left-media {
  display: grid;
  place-items: start center;
}
.media-box {
  width: 100%;
  max-width: 400px;
  min-width: 280px;
}

/* 右カラム：タイトル・説明 */
.futon-side__title { text-align: center; }
.futon-title-ruby {
  display: inline-block;
  margin-bottom: 6px;
  line-height: 1;
  font-size: 14px;
}
.futon-title-logo {
  max-height: 36px;
  width: auto;
  height: auto;
}
.futon-side__desc {
  font-size: 16px;
  line-height: 1.8;
  margin: -25px 0 18px;
  text-align: center;
}

/* レスポンシブ：幅が狭いときは縦積み */
@media (max-width: 720px) {
  .futon-two-col { grid-template-columns: 1fr; }
  .left-media { place-items: center; }
  .color-grid { grid-template-columns: repeat(6, min(14vw, 62px)); }
  .futon-title-logo { max-width: 52vw; }
}

/* =========================
   その他ページ用：data-code="other-huton"
   ========================= */

/* コンテナ全体 */
.new-item-block[data-code="other-huton"] .item-container {
  display: flex;
  justify-content: center;
  gap: 24px;
  align-items: center;
  flex-wrap: nowrap;
  margin-bottom: 80px;
}

/* 左側の画像ブロック */
.new-item-block[data-code="other-huton"] .item-image {
  width: 350px;
  flex: 0 0 350px;
}

/* 上のテーブル画像 */
.new-item-block[data-code="other-huton"] .main-item-image {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover;
  display: block;
  margin-bottom: 6px;
}

/* 布団画像の配置 */
.new-item-block[data-code="other-huton"] .color-variations {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
  width: 350px;
  margin: 0px auto 0 !important;
}

/* 布団画像を枠いっぱいに */
.new-item-block[data-code="other-huton"] .color-variations .color-item > img {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover;
  display: block;
}

/* .color-item の余計なマージンを打ち消し */
.new-item-block[data-code="other-huton"] .color-variations .color-item {
  margin: 0 !important;
  padding: 0 !important;
  display: block;
}

.section-subtitle{
  width: 100%;
  text-align: center;
  font-size: 25px;
  letter-spacing: .06em;
  color: #000000;
  margin-bottom: 40px;
}

.sub-thumbs {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.thumb-block {
  flex: 1;
  text-align: center;
}

.thumb-block img {
  width: 160px;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  display: block;
  margin: 0 auto 10px;
}

/* サイズアイコン（その他ページアイコン） */
.size-icons {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 12px;
  justify-content: center;
}
.size-icons.rect li {
  width: 63px;
  height: 38px;
  border-radius: 0px;
  background: #ededed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  box-sizing: border-box;
}

.size-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.size-icon {
  display: inline-block;
  padding: 6px 10px;
  background-color: #f5f5f5;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  white-space: nowrap;
}

.thumb-block img {
  width: 160px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: 6px;
}

@media (max-width: 768px){
  .section-subtitle{ font-size: 13px; margin: -4px 0 14px; }
}

/* 天板カラバリアイコン（その他ページ専用） */
.tenban-colors {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.tenban-colors img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.futon-thumb:is(:hover, :focus-visible) { outline: 2px solid var(--color-kotatsu); outline-offset: 1px; }
.futon-thumb.is-active { outline: 2px solid var(--color-kotatsu); outline-offset: 1px; }

/* レスポンシブ */
@media (max-width: 800px) {
  .futon-simple__grid {
    grid-template-columns: 1fr;
  }
  .futon-main img { height: 360px; }
  .futon-thumbs { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .futon-main img { height: 300px; }
}

/* 2カラム維持の保険（必要なら） */
.new-item-block .item-container {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: nowrap;
}
/* A. バッジを画像左上に固定 */
.new-item-block .item-image{ position:relative; }
.new-item-block .item-image .product-type-label{
  position:absolute; top:10px; left:10px; z-index:5;
  margin:0; transform:none;
}

/* B. 丸いカラバリはタイトル下で横並び中央 */
.new-item-block .item-details .color-icons{
  position:static; display:flex; justify-content:center; align-items:center;
  gap:8px; margin:8px auto 14px;
}
.new-item-block .item-details .color-icons img{
  width:28px; height:28px; border-radius:50%; object-fit:cover; display:block;
}

/* 旧：画像上に丸アイコンを重ねる指定が残っていても無力化 */
.new-item-block .item-image > .color-icons{ display:none; }

/* レスポンシブ微調整（任意） */
@media (max-width:768px){
.new-item-block .item-image .product-type-label{ top:8px; left:8px; }
.new-item-block .item-details .color-icons img{ width:24px; height:24px; }
}

/* タイトル下の丸アイコンを必ず“正方形”にする */
.new-item-block .item-details .color-icons{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  margin:8px auto 14px;
}

.main-huton-image {
  width: 100% !important;
  max-width: 400px !important;
  min-width: 200px !important;
  height: 400px !important;
  object-fit: cover !important;
}

/* 右側サムネ配置（静的） */
/* ベース */
.color-grid.is-static {
  display: grid;
  gap: 7px;
  justify-content: center;
  justify-items: center;
  width: fit-content;
  margin-inline: auto;
  grid-template-columns: repeat(3, 85px);
}

ul.color-grid.is-static {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.right-desc > ul.color-grid.is-static{
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

/* 個数ごとの切り替え */
.color-grid.is-static:has(> :nth-child(1)):not(:has(> :nth-child(2))){
  grid-template-columns: 85px;
}
.color-grid.is-static:has(> :nth-child(2)):not(:has(> :nth-child(3))),
.color-grid.is-static:has(> :nth-child(4)):not(:has(> :nth-child(5))){
  grid-template-columns: repeat(2, 85px);
}
.color-grid.is-static:has(> :nth-child(3)):not(:has(> :nth-child(4))){
  grid-template-columns: repeat(3, 85px);
}
.color-grid.is-static:has(> :nth-child(5)):not(:has(> :nth-child(6))){
  grid-template-columns: repeat(3, 85px);
}
.color-grid.is-static:has(> :nth-child(5)):not(:has(> :nth-child(6))) > :nth-child(4){
  grid-column: 2;
}
.color-grid.is-static:has(> :nth-child(6)):not(:has(> :nth-child(7))){
  grid-template-columns: repeat(3, 85px);
}

/* サムネサイズ */
.color-grid.is-static li {
  list-style: none;
  width: 65px;
  height: 65px;
}
.color-grid.is-static img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

/* マウス操作は無効（切替スクリプト不要） */
.color-grid.is-static,
.color-grid.is-static * {
  pointer-events: none;
  cursor: default;
}

/* サイズアイコンを非表示 */
.size-icons { display: none !important; }

.new-item-block .item-details .color-icons img{
  width:28px;
  aspect-ratio:1 / 1;
  height:auto;
  border-radius:50%;
  object-fit:cover;
  display:block;
  max-width:none;
  flex:0 0 auto;
}

.product-type-labels {
  position: static;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin: 0 0 8px 0;
}

/* バッジの見た目（既存の .product-type-label と同意匠） */
.product-type-labels .label{
  display: inline-block;
  padding: 7px 16px;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  background-color: #eeeeee;
  border-radius: 0x;
  line-height: 1;
  white-space: nowrap;
  padding: 8px 9px;
}

/* 位置アレンジ用（必要なときだけクラスを足す） */
.product-type-labels.-center{
  left: 50%; transform: translateX(-50%);
}
.product-type-labels.-right{
  left: auto; right: 10px;
}

/* モバイル微調整 */
@media (max-width: 768px){
  .product-type-labels{ top: 8px; left: 8px; gap: 6px; }
  .product-type-labels .label{ font-size: 14px; padding: 6px 12px; }
}
/* レスポンシブ */
@media (max-width: 600px) {
  .product-grid.three-cols .product-item {
    width: 45%;
  }
  .color-icons img {
    width: 30px;
    height: 30px;
  }
}
@media (max-width: 400px) {
  .product-grid.three-cols .product-item {
    width: 100%;
  }
  .item-image,
  .item-details {
    width: 100% !important;
    text-align: center !important;
  }
  .color-variations {
    justify-content: center;
  }
  .color-item {
    min-width: 45%;
    max-width: 45%;
    flex: 0 0 45%;
  }
  .color-item > img {
    width: 100%;
    height: auto;
  }
}
@media (max-width: 900px) {
  .kotatsu-single .item-container {
    flex-direction: column !important;
    align-items: center !important;
  }
  .kotatsu-single .item-image img {
    width: 100% !important;
    height: auto !important;
  }
  .kotatsu-single .color-variations img {
    width: 100px !important;
    height: 100px !important;
    object-fit: cover;
  }
  .kotatsu-single .color-dots img {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    object-fit: cover;
  }
}

/* ★★★★★★★★★★ ここから追加・修正分 ★★★★★★★★★★ */

/* 布団単品ページ専用：左の画像と右のベタ塗りを完全に同期 (再修正) */
/* 親要素をFlexboxにして高さを揃える */
.futon-simple .futon-two-col {
    display: flex;
    align-items: stretch;
    gap: 0; /* ここを0に変更して隙間をなくします */
}

/* 右側の商品説明ブロックにベタ塗りを適用 */
.futon-simple .right-desc {
    background-color: #f3efec; /* ベタ塗りの色 */
    padding: 20px; /* ベタ塗り内の余白 */
    height: 100%; /* 親要素の高さに合わせる */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 左側の画像コンテナがFlexboxのアイテムとして正しく機能するように調整 */
.futon-simple .left-media {
    display: block; /* grid設定をリセット */
    height: auto;
}

/* 右側サムネ（カラバリ）の下のマージンを調整 */
.right-desc > ul.color-grid.is-static {
    margin-bottom: 0;
    padding-bottom: 0;
    margin-top: -4px;
}

/* その他ページ用のベタ塗りが競合しないように透明化 */
.new-item-block .item-details {
    background-color: transparent;
    padding: 0;
}

.color-grid.is-static img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px; /* 角丸設定 */
  border: 1px solid #000000; /* ★ここに外枠を追加 */
}

/* 親要素の2カラム設定 */
.futon-simple .futon-two-col {
    display: flex;
    align-items: stretch;
    gap: 0;
}

/* 左側の画像部分の幅を固定 */
.futon-simple .left-media {
    width: 400px; /* ★ここを固定値にする */
    flex-shrink: 0;
}

/* 右側のベタ塗り部分が残りの幅を占める */
.futon-simple .right-desc {
    flex-grow: 1; /* ★ここを残りの幅に合わせる */
    background-color: #f3efec;
    padding: 20px 20px 80px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ベタ塗り部分の下の余白を調整 */
.futon-side__desc {
    margin: 20px 0 30px; /* ★下マージンを30pxに調整 */
    text-align: center;
}

.right-desc.bike-desc {
    padding: 20px 20px 30px 20px; /* ここで下側の余白を88pxに設定 */
}

.right-desc.snow-desc {
    background-color: #f3efec;
    padding: 20px 20px 25px 20px !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.color-grid.is-static {
    margin-top: 4px; /* ここを調整してスペースを埋める */
}


/* ロゴ微調整 */
.right-desc:not(.bike-desc):not(.snow-desc) .futon-title-logo {
  position: relative !important;
  top: 20px !important;
}

/* ルビ微調整 */
.right-desc:not(.bike-desc):not(.snow-desc) .futon-title-ruby {
  position: relative !important;
  top: 20px !important;
}

/* 説明文微調整 */
.right-desc:not(.bike-desc):not(.snow-desc) .futon-side__desc {
  position: relative !important;
  top: 10px !important;
}

/* カラバリ画像微調整 */
.right-desc:not(.bike-desc):not(.snow-desc) .color-grid {
  position: relative !important;
  top: 20px !important;
}

/* 布団単品セクションのサブタイトルに枠線を追加 */
.futon-simple .section-subtitle {
    display: inline-block;
    border: 1px solid #000;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 20px;
    font-weight: normal;
    letter-spacing: normal;
    color: #000;
    margin-bottom: 24px;
    margin-top: 10px;
    width: auto; /* 幅を文字に合わせる */
}

/* 枠線を中央揃えにするための設定 */
.futon-simple {
    text-align: center;
}

/* ナビゲーションメニューのボタンデザイン */
.menu li a {
    display: block;
    text-decoration: none;
    color: var(--color-text);
    font-weight: bold;
    padding: 8px 8px;
    font-size: 18px;
    text-align: center;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
    border: 1px solid #ccc;
    box-sizing: border-box;
    /* 変更・追加部分 */
    background-color: #f3efec; /* 新しい背景色 */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* 影を少し強調 */
}

.menu li a:hover {
    /* 変更・追加部分 */
    background-color: var(--color-menu-hover-bg);
    border-radius: 0;
    color: #000;
    box-shadow: 0 3px 4px rgba(0,0,0,0.15); /* ホバー時の影も強調 */
}

/* newアイコン横並びに　 */

.futon-side__title-wrap {
  display: flex;
  align-items: center;  /* NEWアイコンとタイトルを縦位置揃え */
  gap: 0px;            /* アイコンと文字の間隔 */
}

.new-icon {
  width: 70px;           /* 画像サイズは調整してください */
  height: auto;          /* 縦横比を保持 */
  flex-shrink: 0;        /* 狭い画面でも縮まないよう固定 */
  margin-right: -5px;
  margin-top: 8px;
}

/* 個別（ベースの後に置く） */
.new-icon--diningpoka{ margin-right:-25px; }
.new-icon--mokumoku{   margin-right:0px;  }

.futon-simple .right-desc{
  display:flex;
  flex-direction:column;
  align-items:center;           /* ★ これで中央寄せ */
  /* justify-content: space-between; は縦の間延びを招くので必要なら外す */
}

.futon-two-col.is-maron-block {
    align-items: flex-start !important; 
}

