/*******************************************
 サイトトップ
********************************************/
.h2-tit-category.for-category-list {
  background-image: none;
  font-size: 18px;
  height: 120px;
  padding-top: 40px;
}

.grand-menu {
  max-width: 1220px;
  min-width: 1020px;
  margin: auto;
}

.menu-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.menu-block {
  width: calc(33.333% - 22px);
}

/* 大カテゴリ */
.menu-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
  border-bottom: 1px solid #333;
  font-size: 16px;
  padding-bottom: 10px;
}

.menu-block.menu-active .menu-title {
  padding-bottom: 10px;
  border-bottom: 1px solid #333;
  margin-bottom: 10px;
}

.menu-title img {
  width: 28px;
  height: 28px;
  object-fit: cover;
}

.plus {
  margin-left: auto;
  width: 18px;
  height: 18px;
  display: none;
  background: url("/top/common/img/plus.svg") no-repeat center / contain;
  padding-right: 18px;
}

/* 開いた状態 */
.menu-block.menu-active .plus {
  background-image: url("/top/common/img/minus.svg");
}

/* 小カテゴリ */
.sub-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 40px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.sub-list li {
  width: calc(50% - 20px);
  height: 35px;
  display: flex;
  align-items: center;
  letter-spacing: normal;
}

.sub-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #333;
  font-size: 12px;
  line-height: 1.5;
}

.sub-list img {
  width: 30px;
  height: auto;
  object-fit: cover;
}

.sub-list li:first-child {
  width: calc(100%);
  text-align: center;
  margin-bottom: 0;
  padding: 10px 0 6px;
}

.sub-list li:first-child a {
  width: 200px;
  border-radius: 100px;
  padding: 7px 0 4px;
  text-decoration: none;
  display: inline-block;
  font-size: 12px;
  border: 1px solid #e0e0e0;
  transition: 0.2s;
  margin: 0 auto;
}

.sub-list li:first-child a:hover {
  background-color: #efefef;
  border: 1px solid #fff;
}

@media (max-width: 768px) {
  html {
    overflow-y: scroll;
  }

  @supports (scrollbar-gutter: stable) {
    html {
      overflow-y: auto;
      scrollbar-gutter: stable;
    }
  }

  .nav-slider {
    margin-top: 50px;
  }

    .h2-tit-category.for-category-list {
    height: auto;
    padding-bottom: 40px;
  }

  .grand-menu {
    min-width: 0;
  }

  .menu-wrap {
    display: block;
  }

  .menu-block {
    width: 100%;
    border-bottom: 1px solid #333;
    padding: 15px 0;
  }

  .menu-title {
    margin: 0;
    border: none;
    padding: 0;
  }

  .plus {
    display: block;
  }

  .sub-list,
  .show-all {
    overflow: hidden;
    height: 0;
    transition: height 0.3s ease;
  }
}

/* sub-list 高さ */
.sub_1 {
  max-height: 220px;
}
.sub_2 {
}
.sub_3 {
  max-height: 300px;
}
.sub_4 {
}
.sub_5 {
}
/* .menu-blockの縦位置 */
.menu_up {
}
.menu_up.up_1 {
  margin-top: -100px;
}

@media (max-width: 768px) {
  .sub_1,
  .sub_2,
  .sub_3,
  .sub_4,
  .sub_5,
  .sub_6 {
    max-height: none;
  }
  .menu_up.up_1 {
    margin-top: 0;
  }
}

/*******************************************
 SUBARUトップ、STIトップ
********************************************/
.cat-title-block {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0px 20px 10px;
}
.cat-title-block h2 {
  font-weight: normal;
}
.cat-title-block p {
  margin-bottom: 0;
  margin-left: 10px;
  font-size: 14px;
}

.cat-title-block img {
  width: 80px;
  height: auto;
  padding-right: 10px;
}

.cat-select-contents {
  box-sizing: border-box;
  background: #efefef;
  margin-bottom: 20px;
}

.cat-select-area {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
}

.filter-area {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 15px 20px;
  align-items: center;
  padding: 10px 0;
}

.filter-label {
  font-size: 14px;
  margin-bottom: 6px;
  display: block;
}

.filter-label.pl {
  padding-left: 20px;
}

/* 本体 */
.custom-select {
  position: relative;
  width: 390px;
}

.custom-select.for-order,
.custom-select.for-search {
  width: 200px;
}

.custom-select .count,
.custom-select .selected-count {
  color: #666;
  font-size: 12px;
  flex: 1;
}

/* 表示部分 */
.select-display {
  background: #ffffff;
  border: 1px solid #000000;
  border-radius: 6px;
  padding: 8px 12px 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  justify-content: flex-start;
}

.select-display .selected-text,
.select-options .option-text {
  padding-right: 15px;
  font-size: 14px;
}

.custom-select.for-order .selected-text,
.custom-select.for-search .selected-text
{
  flex: 1;
}

.thumb {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* リスト */
.select-options {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  list-style: none;
  padding: 5px 0;
  margin: 0;
  display: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 2000;
}

.select-options li {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 5px;
}

.select-options li:hover {
  background: #f5f5f5;
}

.custom-select.open .select-options {
  max-height: calc(100vh - 150px);
  overflow-y: scroll;
  display: block;
}

@media (max-width: 768px) {
  .cat-title-block h2 {
    width: 55%;
  }

  .cat-select-contents {
    background: #fff;
    transition: height 0.3s ease;
    height: 111.7px;
  }

  .cat-select-contents.is-fixed {
    background: #efefef;
    transition: height 0.3s ease;
    height: 60px;
  }
  .cat-title-block {
    padding-bottom: 0px;
    box-sizing: border-box;
  }
  .cat-select-area {
    padding: 0 20px;
  }
  .filter-label {
    display: none;
  }

  .custom-select {
    width: 100%;
  }

.custom-select.for-order,
.custom-select.for-serach {
    width: 200px;
  }
}

.select-options li.selected {
  font-weight: bold;
}

.arrow {
  width: 20px;
  height: auto;
}

.custom-select.open .arrow {
  content: url("/top/common/img/arrow_up.svg");
}

.tab-box {
  display: none;
}

.sticky {
  position: sticky;
  top: 0;
  z-index: 1001;
}

.cat-select-contents .filter-label.for-order,
.cat-select-contents .filter-label.for-search,
.cat-select-contents .custom-select.for-order,
.cat-select-contents .custom-select.for-search {
  opacity: 1;
  transition: opacity 0.1s ease;
}

.cat-select-contents.is-fixed .filter-label.for-order,
.cat-select-contents.is-fixed .filter-label.for-search,
.cat-select-contents.is-fixed .custom-select.for-order,
.cat-select-contents.is-fixed .custom-select.for-search {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.com-bread-li ul {
  margin-bottom: 0px;
}

@media (max-width: 768px) {
  .sticky {
    position: sticky;
    top: 50px;
    z-index: 1001;
  }

  .sp-header.sp-only {
    top: 0;
  }
  .sp-only.ext-link-sp {
    display: none;
  }
  body {
    margin-top: 0;
  }
}
