/* 全体共通の基本設定 */
: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;
}
.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: 18px;
  color: #444;
  margin-bottom: 5px;
}

/* 共通：商品グリッド */
.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の余白を追加 */
}


/* ダイニングセクション */

/* 共通：セクションの余白設定 */
.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: 15px;
}

/* 共通：商品グリッド */
.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: 12px 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; }
}

/* 見出し「布団レスダイニングこたつ」「ダイニング用こたつチェア」のスタイル修正 */
.dining-kotatsu-section .section-header h2,
.dining-chair-section .section-header h2 {
    display: inline-block;
    border: 1px solid #000; /* 黒い枠線を追加 */
    background-color: #fff; /* 白い背景を追加 */
    padding: 8px 16px; /* 枠線とテキストの余白 */
    border-radius: 5px; /* 角丸を追加 */
    font-size: 23px; /* 文字サイズを20pxに設定 */
    font-weight: normal; /* 太字を解除 */
}

/* ダイニングセクションのリード文のスタイル調整 */
.dining-kotatsu-section .section-header .lead,
.dining-chair-section .section-header .lead {
  font-size: 20px;
  font-weight: normal;
}

/* ダイニングセクションの背景色と幅の調整（修正版） */
.dining-kotatsu-section,
.dining-chair-section {
    background-color: transparent; /* セクション全体の背景を透明に戻す */
    padding-top: 0;
    padding-bottom: 0;
}

.dining-kotatsu-section .product-grid,
.dining-chair-section .product-grid {
    background-color: #f3efec; /* グリッド部分にも同じ背景色を適用 */
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 30px; /* 下部のパディングを調整 */
}

/* 商品グリッド上部の余白を調整 */
.product-grid {
  padding-top: 0px; /* 上部の余白を15pxに調整 */
  margin-top: -30px; /* 必要に応じて、さらに上方向に移動させる */
}

/* ダイニングセクションの背景色と余白を再調整 */
.dining-kotatsu-section,
.dining-chair-section {
    background-color: transparent; /* セクション全体の背景を透明に戻す */
    max-width: 800px;
    margin: 40px auto;
    padding: 0; /* 全体のパディングをリセット */
}

.dining-kotatsu-section .product-grid,
.dining-chair-section .product-grid {
    background-color: #f3efec; /* 商品グリッド部分にのみベタ塗りを適用 */
    padding: 30px 0; /* 商品グリッドの上下の余白を調整 */
    margin-top: 30px; /* 見出しとの間の余白を調整 */
}

/* 品番の文字サイズを大きくする */
.product-name {
  font-size: 18px; /* 16pxから18pxに大きく */
}

/* 「商品はこちら」のボタンの文字サイズとパディングを調整 */
.product-button {
  font-size: 16px; /* 14pxから16pxに大きく */
  padding: 8px 16px; /* ボタンのサイズも少し大きく */
}

/* ダイニングセクション上部の余白を確実に調整する */
.dining-kotatsu-section {
  margin-top: 100px !important; 
}

/* ダイニング用こたつチェアの上のスペースを調整 */
.dining-chair-section .product-grid {
    margin-top: 30px !important; 

}

/* ナビゲーションメニューのボタンデザイン */
.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); /* ホバー時の影も強調 */
}

/* 山城ブロックの.item-detailsに適用 */
.yamashiro-block .item-details {
    padding: 30px !important; 
}

/* Sheltaブロックの.item-detailsに適用 */
.shelta-block .item-details {
    padding: 30px !important;
}
