/* 全体共通の基本設定 */
: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: 0; /* 隙間をなくす */
  align-items: stretch; /* これで左右のブロックの高さが揃う */
  flex-wrap: nowrap;
  border: none; /* ← 枠線を削除 */
}

/* メイン画像コンテナ */
.item-image {
  flex: 1 1 50%; /* 左右均等に50%ずつ割り当てる */
  position: relative;
  overflow: hidden; /* 画像がはみ出さないように */
  /* ここに高さを直接指定しないことで、item-detailsの高さに追従させる */
}

.color-icons {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
}

/* メイン画像自体のスタイルを修正 */
.main-item-image {
  width: 100%;
  height: 100%; /* ← 親要素(item-image)の高さに合わせる */
  object-fit: cover; /* 画像の比率を保ちながら、要素を埋める */
  display: block;
  max-width: none; /* 既存のmax-widthを無効化 */
  min-width: 0; /* 既存のmin-widthを無効化 */
}

.item-image img {
  max-width: 100%; /* このルールは.main-item-imageには適用されないように注意 */
  height: 340px;
}
.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;
  position: relative;
}
.new-item-block.abel-split .item-image .main-item-image {
  display: none !important;
}
.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-details {
  flex: 1 1 50%; /* 左右均等に50%ずつ割り当てる */
  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;
}
.item-code .new-inline-icon {
  width: 70px;
  height: auto;
  display: inline-block;
}
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;
}
.color-variations.variation-3 .futon-image {
  height: 178px;
}
.color-variations.variation-4 .futon-image {
  height: 250px;
}
.color-variations.variation-6 .futon-image {
  height: 178px;
}

/* ロゴ＋送り仮名（布団バリエーション内） */
.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-label-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 10px;
}
.color-variations .color-item .color-label-wrap .color-label-img {
  display: inline-block;
  margin: 0;
  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;
}

/* 商品の詳細ボタン */
.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セット布団のみ */
.new-item-block[data-code="1set-huton"] .item-container {
  flex-direction: column;
}
.new-item-block[data-code="1set-huton"] .item-image {
  flex: none;
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
}
.new-item-block[data-code="1set-huton"] .main-item-image {
  width: 100%;
  height: 200px;
}
.new-item-block[data-code="1set-huton"] .item-details {
  width: 100%;
  max-width: 350px;
  margin: 20px auto 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: #33503a;
}

/* その他ページ用 */
.new-item-block[data-code="other-huton"] .item-container {
  display: flex;
  justify-content: center;
  gap: 24px;
  align-items: center;
  flex-wrap: nowrap;
}
.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%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 6px;
}
.new-item-block[data-code="other-huton"] .color-variations {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
  width: 350px;
  margin: 0 auto 0;
}
.new-item-block[data-code="other-huton"] .color-variations .color-item > img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.new-item-block[data-code="other-huton"] .color-variations .color-item {
  margin: 0;
  padding: 0;
  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;
  }
}
.new-item-block .item-container {
  /* ここは上記のグローバル設定で調整済みなので、個別のflex設定をしない */
}
.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;
}
.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;
    gap: 6px;
  }
  .new-item-block .item-details .color-icons img {
    width: 24px;
    height: 24px;
  }

  /*
    768px以下でも横並びを維持する
    もしここで縦並びにしたい場合は、このブロックのコメントアウトを外すか、
    flex-direction: column !important; を記述してください。
  */
  .item-container {
    flex-direction: row !important; /* 強制的に横並び */
    align-items: stretch !important; /* 高さ揃えも維持 */
    gap: 0 !important; /* 隙間なしも維持 */
  }

  .item-image,
  .item-details {
    /* ここでは特に幅の変更は行わない (flex: 1 1 50%が適用されるため) */
    text-align: center;
  }
  .item-details {
    margin-top: 0;
  }
  .color-variations {
    justify-content: center;
  }
  .color-item {
    min-width: 45%;
    max-width: 45%;
    flex: 0 0 45%;
  }
  .color-item > img {
    width: 100%;
    height: auto;
  }
}

.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%;
  max-width: 400px;
  min-width: 200px;
  height: 400px;
  object-fit: cover;
}

/* 右側サムネ配置（静的） */
.color-grid.is-static {
  display: grid;
  gap: 14px;
  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: 85px;
  height: 85px;
}
.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;
}
.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-labels .label {
  display: inline-block;
  padding: 7px 16px;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  background-color: #eeeeee;
  border-radius: 0px;
  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%;
  }
}
/*
  768px以下のメディアクエリは上記の個別調整で上書きしました。
  ここでは重複を避けるため削除します。
*/

/* PC・デスクトップでのピクセル単位の調整 */
.item-image {
    width: 400px; /* 画像の幅を固定 */
    height: 350px;
    flex: none; /* flexの比率指定を無効化 */
}

.item-details {
    width: 450px; /* ベタ塗り部分の幅を固定 */
    flex: none; /* flexの比率指定を無効化 */
}

/* カラバリ画像、スティック画像に白い枠線を追加 */
/* .item-details内のcolor-icons */
.new-item-block .item-details .color-icons img {
    border: 1px solid #000000; /* 白い枠線を追加 */
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.1); /* 軽い影を付けて浮き上がらせる */
}

/* ラベルのスタイルを調整 */
.product-type-labels .label {
    background-color: transparent; /* 背景を透明に */
    border: 1px solid #000; /* 黒い枠線 */
    color: #000; /* 文字色を黒に */
    border-radius: 0; /* 角を直角に */
    padding: 6px 10px; /* パディングを調整 */
    font-weight: normal; /* 文字を細くする */
}

/* ラベルの配置を調整 */
.new-item-block .product-type-labels {
    position: relative; /* 親要素基準の相対配置 */
    z-index: 10; /* 画像より手前に表示 */
    margin-top: -30px; /* 上方向への移動量 */
    margin-left: -18px; /* 左方向への移動量（画像と揃えるため） */
    justify-content: flex-start; /* 左寄せ */
}

.new-item-block + .new-item-block {
    margin-top: 130px; /* 上に60pxの余白を追加 */
}

/* --- KOT-7312-set専用のスタイル --- */
.new-item-block[data-code="KOT-7312-set"] {
    padding: 20px;
}

.new-item-block[data-code="KOT-7312-set"] .item-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
}

.new-item-block[data-code="KOT-7312-set"] .item-image-group {
    flex: none;
    width: 450px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0px; /* 画像とロゴの間の隙間を調整 */
}


/* ロゴと画像の間をさらに詰める */
.new-item-block[data-code="KOT-7312-set"] .item-image-bottom {
    gap: 0; /* スペースをなくす */
}

.new-item-block[data-code="KOT-7312-set"] .bique-set {	
    display: flex; /* Flexboxを適用 */
    justify-content: center; /* 水平方向の中央揃え */
    align-items: center; /* 垂直方向の中央揃え */
    gap: 0px; /* 要素間の隙間 */
    margin-top: -50px; /* 上の要素との隙間を詰める */
    margin-bottom: -20px; /* 下の要素との隙間を詰める */
    padding: 0;
}

/* 左上のテーブル画像のサイズを調整 */
.new-item-block[data-code="KOT-7312-set"] .item-image-top .main-item-image {
    height: 200px; /* 例: 高さを300pxに固定 */
    object-fit: cover;
}

/* 左下のこたつ布団画像のサイズを調整 */
.new-item-block[data-code="KOT-7312-set"] .item-image-bottom .main-item-image {
    height: 200px; /* 例: 高さを300pxに固定 */
    object-fit: cover;
}

/* color-sticksのスタイル調整 */
.new-item-block[data-code="KOT-7312-set"] .color-sticks {
    display: flex; /* 横並びにする */
    justify-content: center; /* 中央揃え */
    align-items: center;
    gap: 0px; /* アイコン間の隙間を調整 */
    margin-top: -45px; /* 上の画像との間に少し余白 */
}

/* color-sticks内の画像サイズを調整 */
.new-item-block[data-code="KOT-7312-set"] .color-sticks img {
    width: 45px;
    height: 45px;
    border-radius: 5px; /* ここを5pxに変更 */
    object-fit: cover;
    border: 1px solid #ccc; /* 枠線を加えて分かりやすくする */
}

.new-item-block[data-code="KOT-7312-set"] .color-sticks {
  /* gap: 0; は維持 */
  justify-content: center;
}

.new-item-block[data-code="KOT-7312-set"] .color-sticks img {
  border: none; /* 隙間の原因になる可能性があるため、一度枠線を削除 */
  margin-left: -20px; /* 微調整用、必要に応じて値を変更 */
}

/* ロゴとフリガナの隙間をさらに詰める */
.new-item-block[data-code="KOT-7312-set"] .bique-label {
  display: flex;
  margin-left: -25px; /* マイナスの値を指定して左に寄せる */
}

/* KOT-7312専用の画像横幅調整 */
.new-item-block[data-code="KOT-7312-set"] .item-image-group {
    width: 400px; /* 例: 画像グループ全体の幅を350pxに設定 */
}

/* 「単品」と「布団セット」の枠を画像に近づける */
.new-item-block[data-code="KOT-7312-set"] .product-type-labels {
    margin-top: 0;
    margin-bottom: -70px; /* マイナスの値で下の要素に近づける */
}

/* 「布団セット」を左に寄せてスペースを埋める */
.new-item-block[data-code="KOT-7312-set"] .product-type-labels .label:last-child {
    margin-left: -20px; /* マイナスの値を指定して左に寄せる */
}

/* 「単品」と「布団セット」の縦並びと左揃え */
.new-item-block[data-code="KOT-7312-set"] .product-type-labels {
    display: flex;
    align-items: flex-start; /* 左揃えにする */
    margin-left: -35px;
}

/* ベタ塗り部分の幅と余白を調整 */
.new-item-block[data-code="KOT-7312-set"] .item-details {
    flex: 1;
    min-width: 450px; /* 最小幅を維持 */
    height: 500px;
    background-color: #f3efec; /* ベタ塗りの背景色 */
    padding: 10px; /* 内側の余白を減らす */
}

/* 左の要素とベタ塗りの間のスペースを埋める */
.new-item-block[data-code="KOT-7312-set"] .item-container {
    gap: 0;
}

/* 左の要素とベタ塗りの間のスペースを埋める */
.new-item-block[data-code="KOT-7312-set"] .item-details {
    margin-left: -4px; /* マイナスの値で左に寄せる */
}

/* ベタ塗り部分のコンテンツ配置をアルラMと合わせる */
.new-item-block[data-code="KOT-7312-set"] .item-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* 商品コードと説明文 */
.new-item-block[data-code="KOT-7312-set"] .item-code {
    order: 1; /* 配置順序を1に設定 */
    margin: 10px 0 0;
    line-height: 1.2;
}

.new-item-block[data-code="KOT-7312-set"] .item-description {
    order: 2; /* 配置順序を2に設定 */
    margin: 10px 22px 10px;
    font-size: 16px;
    line-height: 1.6;
}

/* アイコン列とカラバリ画像 */
.new-item-block[data-code="KOT-7312-set"] .icon-row {
    order: 3; /* 配置順序を3に設定 */
    justify-content: center;
    gap: 8px;
    margin: 10px 0;
}

.new-item-block[data-code="KOT-7312-set"] .color-icons {
    order: 4; /* 配置順序を4に設定 */
    justify-content: center;
    gap: 0px;
}

/* KOT-7312の商品コードを1列で表示 */
.new-item-block[data-code="KOT-7312-set"] .item-code {
    white-space: nowrap;
}

/* カラバリ画像を品番のすぐ下に配置 */
.new-item-block[data-code="KOT-7312-set"] .item-code {
    order: 1;
}

.new-item-block[data-code="KOT-7312-set"] .color-icons {
    order: 2; /* 順序を2に設定して、品番の次に配置 */
}

.new-item-block[data-code="KOT-7312-set"] .item-description {
    order: 3;
}

.new-item-block[data-code="KOT-7312-set"] .icon-row {
    order: 4;
}

/* 品番の下にスペースを追加 */
.new-item-block[data-code="KOT-7312-set"] .item-code {
    margin-bottom: 10px; /* ここで調整します */
}

.new-item-block[data-code="KOT-7312-set"] .item-description {
    margin-top: 10px; /* ここで調整します */
}

/* カラバリ画像の間にマイナスmarginを追加 */
.new-item-block[data-code="KOT-7312-set"] .color-icons img {
    margin-left: -15px; /* 左に寄せることで前の画像と重なり、隙間がなくなる */
}

/* 最初の画像だけは左に寄せないように調整 */
.new-item-block[data-code="KOT-7312-set"] .color-icons img:first-child {
    margin-left: 0;
}

.new-item-block[data-code="KOT-7312-set"] .icon-row {
    flex-wrap: nowrap;
}

/* アイコンをさらに詰める（必要に応じて）*/
.new-item-block[data-code="KOT-7312-set"] .icon-row img {
    margin-left: -32px;
}

/* 最初のアイコンはマージンを適用しない */
.new-item-block[data-code="KOT-7312-set"] .icon-row img:first-child {
    margin-left: 0;
}

.new-item-block.abel-split {
  position: relative;
}

.new-item-block.abel-split .product-type-labels {
  position: absolute;
  top: -17px;
  left: 5px;
  z-index: 10;
  margin: 0;
}

.new-item-block.abel-split .item-details::after {
  content: "";
  display: block;
  height: 48px; /* ここで下側の高さを調整します */
  background-color: #f3efec; /* ベタ塗りの色と同じ色を指定 */
  margin: -10px -20px -20px -20px; /* 親要素のパディングを相殺 */
}

/* KOT-7312-set専用: ベタ塗り部分を下に移動させる */
.new-item-block[data-code="KOT-7312-set"] .item-details {
    transform: translateY(50px);
}

/* KOT-7312-set専用: ベタ塗り部分のサイズと位置を調整 */
.new-item-block[data-code="KOT-7312-set"] .item-details {
    height: 464px; /* 全体の高さを調整します。ここをいじってください。 */
}

/* KOT-7312-set専用: コンテンツの位置を数値で調整 */
.new-item-block[data-code="KOT-7312-set"] .item-details {
    padding-top: 50px; /* ここを調整してコンテンツ全体を下に移動 */
}

.new-item-block[data-code="KOT-7312-set"] .item-code {
    margin-top: -100px; /* ここを調整してコンテンツを上に移動 */
}

/* KOT-7312-set専用の品番右寄せ設定 */
.new-item-block[data-code="KOT-7312-set"] .item-code {
    justify-content: flex-end; /* 子要素を右端に寄せる */
    padding-left: 50px;       /* さらに右端から20px内側にずらす */
}

/* ナビゲーションメニューのボタンデザイン */
.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); /* ホバー時の影も強調 */
}

