/****************************************
 カテゴリページのメインCSS
 初回作成日：2025/12/09
 作成者：轟
 このファイルは編集禁止です。
 追加対応が必要な場合は、個別にcssを作成し対応をお願いいたします。
****************************************/

/* layout */

:root {
  --pb20: 20px;
  --mb20: 20px;
  --mb30: 30px;
  --border1: 1px solid #eeeeee;
  --border2: 1px solid #cfcfcf;
  --border3: 1px solid #cccccc;
}

.contents__intro {
  margin-bottom: var(--mb20);
}

.contents__lv2 {
  margin-bottom: var(--mb30);
  display: grid;
  gap: 28px;
}

.contents__lv3 {
  display: grid;
  gap: 20px;
}

.contents__lv3:last-child {
  margin-bottom: 0;
}


.contents__lv3 .c-box_btn_02 {
  margin-bottom: 0;
}


.contents__lv4 {
  padding-bottom: var(--pb20);
  border-bottom: var(--border1);
  display: grid;
  gap: 16px;
}

.contents__lv4:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.contents__lv5 {
  margin-bottom: var(--mb20);
  display: grid;
  gap: 16px;
}

.contents__lv5:has(+ .c-link-primary) {
  margin-bottom: 28px;
}

.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: 10px;
}

.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;
  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;
}

.c-title__h3-primary.__old {
  color: #cd860d;
}


.c-title__h4-primary {
  font-size: 16px;
  font-weight: bold;
  margin: 0;
  line-height: 1;
}

.c-title__h5-primary {
  font-size: 14px;
  font-weight: bold;
  margin: 0;
  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__h5-primary-red {
  position: relative;
  padding-left: 20px;
}

.c-title__h5-primary-red::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 12px;
  height: 12px;
  background-color: #dd2c00;
}

/* テキスト */

.c-font-bold {
  font-weight: 700;
}

/* リスト */

.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;
}

.c-title__h3-primary:has(+ .c-text-primary) {
  margin-bottom: 20px;
}

/* hover */

.box_btn_02 li:hover {
  opacity: 0.7;
}

.box_btn_02 li:hover ::before {
  opacity: 0.7;
}

/* アコーディオン用CSS */

.accordion__wrapper {}

.accordion__item {}

.accordion__item.contents__lv3 {
  margin-bottom: 0;
}

.accordion-item:has(> .accordion-title.active) {
  gap: 28px;
}

.accordion-title:has(> .c-title__h2-primary) {
  margin-bottom: 28px;
}

.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;
}

/* 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: 0px;
}

.accordion-title .c-title__h3-primary {
  padding: 0;
  margin: 7px;
}

/* コンテンツ */

.c-text-primary {
  font-size: 14px;
  margin: 0;
  line-height: 2.2rem;
}

.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: 20px;
}

.c-layout-right {
  text-align: right;
}

/* リスト */

.list {
  padding-inline-start: 17px;
  margin: 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}


.list:has(+ .c-link-primary) {
  margin-bottom: 28px;
}


@media (max-width: 768px) {
  .list {
    padding-inline-start: 20px;
  }
}