/* ======================================
ソファー用CSS
=========================================
*/

/****************************************
base CSS
****************************************/

/* layout */

:root {
  --pb20: 20px;
  --mb20: 20px;
  --mb30: 30px;
  --border1: 1px solid #eeeeee;
  --border2: 1px solid #cfcfcf;
  --border3: 1px solid #cccccc;
}

html,
body {
  font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "Hiragino Sans",
    "Noto Sans JP", "Yu Gothic Medium", "游ゴシック Medium", "Meiryo", "メイリオ",
    sans-serif;
  -webkit-text-size-adjust: 100%;
}

.js-sofa-accordion,
.sofa-image-modal,
.js-sofa-accordion h1,
.js-sofa-accordion h2,
.js-sofa-accordion h3,
.js-sofa-accordion h4,
.js-sofa-accordion h5,
.js-sofa-accordion h6,
.js-sofa-accordion p {
  font-family: inherit;
}

.contents__intro {
  margin-bottom: var(--mb20);
}

.contents__lv2 {
  margin-bottom: var(--mb30);
  display: grid;

}

.contents__lv2:has(.accordion__wrapper) {
  margin-bottom: 0px;
}

.contents__lv3 {
  display: grid;

}

.contents__lv3:has(+ .contents__lv3) {
  margin-bottom: 30px;
}

.contents__lv3:last-child {
  margin-bottom: 0;
}


.contents__lv3 .c-box_btn_02 {
  margin-bottom: 0;
}


.contents__lv4 {
  padding-bottom: var(--pb20);
  margin-bottom: var(--mb20);
  border-bottom: var(--border1);
  display: grid;

}

.contents__lv4:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.contents__lv5 {
  display: grid;
  margin-bottom: 20px;
}

.contents__lv5:has(+ .c-link-primary) {
  margin-bottom: 30px;
}

.contents__lv5:last-child {
  margin-bottom: 0;
}

.c-content-box {
  padding-bottom: 30px;
}

.c-content-box._border-bottom {
  border-bottom: var(--border1);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.c-layout-2column-160 {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
}

.c-layout-2column-vertical {}

.c-layout-2column-160 .__img {
  width: 160px;
  height: 160px;
  border: var(--border2);
  display: flex;
  justify-content: center;
  align-items: center;
}

.c-layout-2column-160 .__img {
  width: 160px;
  height: 160px;
  border: var(--border2);
  display: flex;
  justify-content: center;
  align-items: center;
}

.c-layout-2column-160 .__img img {
  width: 95%;
  height: auto;
  border: none;
}

@media (max-width: 768px) {
  .c-layout-2column-160 {
    display: block;
  }

  .c-layout-2column-160 .__img {
    display: flex;
    justify-content: center;
    margin: 4px auto 20px;
  }
}



/* link button */

.c-box_btn_02 {
  width: 100%;
  margin: 0 auto 20px;
  padding: 0;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  align-items: center;
  list-style-type: none;
  gap: 10px 10px;
}

.c-box_btn_02 li {
  width: calc((100% - 20px) / 3);
  position: relative;
}

.c-box_btn_02 li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: #000;
  font-weight: bold;
  border: var(--border3);
  font-size: 16px;
  line-height: 1.4;
}

.c-box_btn_02 li a span {
  width: calc(100% - 60px);
  padding: 0 10px;
}

.c-box_btn_02 li a img {
  width: auto;
  height: 60px;
  margin: 7px 25px 7px 0;
}

@media (max-width: 768px) {
  .c-box_btn_02 {
    display: block;
  }

  .c-box_btn_02 li {
    width: 100%;
    margin-bottom: 8px;
  }

  .c-box_btn_02 li:last-child {
    margin-bottom: 0;
  }
}

.c-layout-1column {
  margin-bottom: 20px;
  border-bottom: var(--border1);
  padding-bottom: 20px;
}

/* 見出し */

.fs-body-category .fs-c-heading--page,
.fs-body-search .fs-c-heading--page {
  margin-bottom: 32px;
}

.c-title__h2-primary {
  font-size: 22px;
  font-weight: bold;
  line-height: 1;
  color: #3c3c3c;
  margin: 0 0 var(--mb20);
  padding: 4px 0 2px 5px;
  border-left: 8px solid #dd2c00;
}

.c-title__h2-primary.__old {
  border-left: 8px solid #f1aa00;
}

.c-title__h3-primary {
  font-size: 18px;
  font-weight: bold;
  color: #dd2c00;
  margin: 0 0 var(--mb20);
}

.c-title__h3-primary.__old {
  color: #cd860d;
}


.c-title__h4-primary {
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 18px;
  line-height: 1;
}

.c-title__h5-primary {
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 14px;
  line-height: 1;
}

.c-title__h5-primary-square {
  position: relative;
  padding-left: 20px;
}

.c-title__h5-primary-square::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 12px;
  height: 12px;
  background-color: #dd2c00;
}

.c-title__h5-primary-square.__old::before {
  background-color: #cd860d;
}

.c-title__primary-red {
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
  color: #000;
  position: relative;
  padding-left: 20px;
}

.c-title__primary-red::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 12px;
  height: 12px;
  background-color: #dd2c00;
}

.c-title__primary-yellow {
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 14px;
  line-height: 1;
  color: #000;
  position: relative;
  padding-left: 20px;
}

.c-title__primary-yellow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 12px;
  height: 12px;
  background-color: #f1aa00;
}

/* テキスト */

.c-font-bold {
  font-weight: 700;
}

.c-text-nomargin {
  margin: 0;
}

/* リスト */

.list__evaluate {
  margin: 0;
}

@media only screen and (max-width: 768px) {
  .__text ul.list__evaluate {
    padding-inline-start: 21px;
  }
}

.list__evaluate li {
  list-style: none;
  position: relative;
  margin-bottom: 20px;
}

.list__evaluate li.list__evaluate--good:before {
  content: "";
  background-image: url("https://tools.itembox.design/item/common/img01/icon__double-circle-red.png");
  background-size: contain;
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 10px;
  position: absolute;
  top: 3px;
  left: -21px;
}

.list__evaluate li.list__evaluate--average:before {
  content: "";
  background-image: url("https://tools.itembox.design/item/common/img01/icon__triangle-red.png");
  background-size: contain;
  display: inline-block;
  width: 16px;
  height: 14px;
  margin-right: 10px;
  position: absolute;
  top: 3px;
  left: -21px;
}

/* 特殊余白パターン */

.c-title__h2-primary:has(+ .c-box_btn_02) {
  margin-bottom: 16px;
}



/* hover */

.box_btn_02 li:hover {
  opacity: 0.7;
}

.box_btn_02 li:hover ::before {
  opacity: 0.7;
}

/* アコーディオン用CSS */

.contents__lv2.accordion__wrapper {
  margin-bottom: 0;
}

.accordion__wrapper {}

.accordion__item {}

.accordion__item.contents__lv3 {
  margin-bottom: 0;
}

.accordion-item:has(> .accordion-title.active) {
  gap: 28px;
}

.accordion-content .contents__lv3,
.accordion-content .contents__lv4 {
  margin-bottom: 0;
}

.accordion-content .contents__lv4 {
  margin-top: 24px;
}


.accordion-title .c-title__h2-primary {
  padding: 4px 0 2px 5px;
  margin: 10px;
}

.accordion-title {
  border: 1px solid #cccccc;
}

.accordion-title {
  position: relative;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
}

.accordion-title:hover {
  opacity: 0.7;
}

.accordion-title:after {
  content: "";
  position: absolute;
  right: 20px;
  top: 44%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-left: 2px solid #3c3c3c;
  border-top: 2px solid #3c3c3c;
  transform: translateY(-50%) rotate(225deg);
  transition: transform 0.3s ease;
}

.accordion-title.active:after {
  transform: translateY(-50%) rotate(45deg);
  top: 56%;
}


.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.accordion-content.active {
  max-height: 5000px;
  /* 十分に大きな値 */
}

/* .accordion-content.active>div:last-child {
  padding-bottom: 24px;
} */

/* h2要素のアコーディオン対応 */

.accordion-title:has(.c-title__h2-primary) {
  margin-bottom: 30px;
}

.accordion-title:has(.c-title__h2-primary)+.accordion-content>.c-text-primary {
  margin-top: 0px;
}

/* h3要素のアコーディオン対応 */
.c-title__h3-primary.accordion-title {
  position: relative;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  border: 1px solid #cccccc;
  padding: 10px 20px;
  margin-bottom: 0;

}

.accordion-title:has(> .c-title__h3-primary) {
  margin-bottom: 30px;
}

.accordion-title .c-title__h3-primary {
  padding: 0;
  margin: 7px;
}


.accordion-content>.c-text-primary {
  margin-top: 20px;
}

/* コンテンツ */

.c-intro-text-primary {
  font-size: 16px;
  margin: 0 0 32px;
  line-height: 1.6;
}

.c-text-primary {
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
}

.c-title__h2-primary+.c-text-primary,
.c-title__h3-primary+.c-text-primary,
.c-title__h4-primary+.c-text-primary,
.c-title__h5-primary+* {
  margin-bottom: 20px;
}

.c-banner-area {
  margin-bottom: 26px;
}

.c-link-primary {
  line-height: 1;
}

.c-link-primary a {
  display: block;
}

.c-link-primary a:not(:first-child) {
  margin-top: 16px;
}

.c-layout-right {
  text-align: right;
}

.contents__lv5>*+.c-link-primary {
  margin-top: 20px;
}

/* リスト */

.list {
  padding-inline-start: 17px;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.list:last-child {
  margin-bottom: 0;
}


.list:has(+ .c-link-primary) {
  margin-bottom: 28px;
}


@media (max-width: 768px) {
  .list {
    padding-inline-start: 20px;
  }
}

/*徹底比較*/

.c-layout-comparison {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.c-layout-comparison a {
  display: block;
  position: relative;
  width: 100%;
  color: #dd2c00;
  font-size: 18px;
  font-weight: bold;
  border: 1px solid #ccc;
  padding: 6px 10px;
}

.c-layout-comparison a:visited {
  color: #dd2c00;
}

.c-layout-comparison a:hover {
  opacity: 0.7;
  text-decoration: none;
}

.c-layout-comparison.__old a {
  color: #cd860d;
}

.c-layout-comparison.__old a:visited {
  color: #cd860d;
}

.c-layout-comparison.__old a:hover {
  opacity: 0.7;
  text-decoration: none;
}

.c-layout-comparison a::before {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: url(https://tools.itembox.design/item/category/img/img_cateogry_compare_arrow.png) no-repeat center center / contain;
}

/* 特別対応用CSS */

.mb20 {
  margin-bottom: 20px !important;
}

.mb30 {
  margin-bottom: 30px !important;
}

.mt20 {
  margin-top: 20px !important;
}

.mt30 {
  margin-top: 30px !important;
}



/* アコーディオン用CSS */

.accordion__wrapper {}

.accordion__item {}

.accordion__item.contents__lv3 {
  margin-bottom: 0;
}

.accordion-item:has(> .accordion-title.active) {
  gap: 28px;
}

.accordion-content .contents__lv4 {
  margin-bottom: 0;
}

.accordion-content .contents__lv3 .contents__lv4:not(:last-child) {
  margin-bottom: 20px;
}

.accordion-title .c-title__h2-primary {
  padding: 4px 0 2px 5px;
  margin: 10px;
}

.accordion-title {
  border: 1px solid #cccccc;
}

.accordion-title {
  position: relative;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  padding-right: 120px;
}

.accordion-title:hover {
  opacity: 0.7;
}

.accordion-title::before {
  content: "詳細を見る";
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #3c3c3c;
  white-space: nowrap;
  background: none;
  width: auto;
  height: auto;
  border-radius: 0;
}

.accordion-title.active::before {
  content: "閉じる";
}

.accordion-title:hover::before {
  background: none;
}

.accordion-title:after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #f1f3f4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 L6 8 L9.5 4.5' fill='none' stroke='%233c3c3c' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px;
  border: none;
}

.accordion-title:hover:after {
  background-color: #ccc;
}

.accordion-title.active:after {
  transform: translateY(-50%) rotate(180deg);
  top: 50%;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.accordion-content.active {
  /* max-height: 5000px; */
  /* 十分に大きな値 */
}

.accordion-content.active>.accordion__item.contents__lv3:last-child {
  padding-bottom: 24px;
}

/* h2要素のアコーディオン対応 */

.accordion-title:has(.c-title__h2-primary) {
  margin-bottom: 28px;
}

.accordion-title:has(.c-title__h2-primary)+.accordion-content>.c-text-primary {
  margin-top: 0px;
}

/* h3要素のアコーディオン対応 */
.c-title__h3-primary.accordion-title {
  position: relative;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  border: 1px solid #cccccc;
  padding: 10px 20px;
  margin-bottom: 0;

}

.accordion-title:has(> .c-title__h3-primary) {
  margin-bottom: 0;
}

.accordion-title .c-title__h3-primary {
  padding: 0;
  margin: 7px;
}


.accordion-content>.c-text-primary {
  margin-top: 0px;
}

/* base CSS end*/
/* ======================================
ページ固有の上書き
=========================================
*/

.sofa-iframe {
  display: block;
  width: 100%;
  border: 0;
  margin-top: 32px;
  /* 高さ未反映時のクリップを防ぐ（JS が上書き） */
  min-height: 200px;
}

.accordion-title {
  border: 1px solid #cccccc;
}

.accordion-title:has(.c-title__h3-primary) {
  border: none;
  border-bottom: 1px solid #dddddd;
}

/* 開閉の高さは sofa.js が inline max-height で制御する */
.js-sofa-accordion .accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

/* active 無しでは必ず閉じる（inline の max-height:none の残留対策） */
.js-sofa-accordion .accordion-content:not(.active) {
  max-height: 0 !important;
}

.js-sofa-accordion .accordion-content.active {
  /* 値は JS が設定 */
}


.c-title__h2-primary {
  font-size: 22px;
  font-weight: bold;
  line-height: 1;
  color: #3c3c3c;
  margin: 0 0 var(--mb20);
  padding: 4px 0 2px 5px;
  border-left: 8px solid #dd2c00;
}

.accordion-title .c-title__h3-primary {
  font-size: 16px;
  color: #000;
}

.c-title__h3-primary-sub {
  margin-left: 15px;
  font-weight: 400;
  font-size: 14px;
}

.c-title__h3-primary .__icon {
  margin-left: 5px;
  font-weight: 400;
  font-size: 14px;
  color: #000;
  background-color: #e3c092;
  border-radius: 5px;
  padding: 2px 6px;
}

.sofa-image {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  width: 100%;
}

.sofa-image img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

/* 画像モーダル */
.sofa-image-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
}

.sofa-image-modal.is-open {
  display: flex;
}

.sofa-image-modal__close {
  position: absolute;
  right: -7px;
  bottom: -30px;
  z-index: 1;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 48px;
  line-height: 1;
  cursor: pointer;
}

.sofa-image-modal__close:hover {
  opacity: 0.8;
}

.sofa-image-modal__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  padding: 10px;
}

.sofa-image-modal__img {
  width: 300px;
  height: 300px;
  object-fit: contain;
  display: block;
}

body.is-sofa-image-modal-open {
  overflow: hidden;
}

/* SP表示：横3列 */
@media screen and (max-width: 768px) {
  .sofa-image {
    grid-template-columns: repeat(3, 1fr);
    width: 95%;
    margin: 0 auto;
  }

  .sofa-image-modal__inner {
    width: 70%;
  }

  .sofa-image-modal__img {
    width: 100%;
    height: 100%;
  }
}