@charset "UTF-8";
.category {
  margin: 47px 0 0;
}

.category-title {
  font-size: 2em;
  font-weight: 700;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .category {
    margin: 47px 0 0;
  }

  .category-title {
    font-size: 1.5em;
  }
}

.category-lists {
  margin: 35px 0 0;
  padding: 80px 0 82px;
  background: #f8f8f8;
}

.category-lists .category-lists-title {
  color: var(--main-color-gray);
  font-size: 2em;
  text-align: center;
}

.category-lists > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  width: 100%;
  max-width: 1160px;
  margin: 37px auto 0;
  padding: 0 20px;
}

.category-lists > ul > li:first-child {
  order: 1;
}

.category-lists > ul > li:nth-child(2) {
  order: 3;
}

.category-lists > ul > li:nth-child(3) {
  order: 2;
}

.category-lists > ul > li:nth-child(4) {
  order: 4;
}

.category-lists > ul > li:nth-child(5) {
  order: 5;
}

.category-lists > ul > li:nth-child(6) {
  order: 7;
}

.category-lists > ul > li:nth-child(7) {
  order: 6;
}

.category-lists > ul > li:nth-child(8) {
  order: 8;
}

.category-lists > ul li.category-list-title {
  width: calc(50% - 16px);
}

.category-lists > ul li.category-list-title a {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: 100%;
  padding: 24px;
  padding-right: calc(24px + 12px + 24px);
  box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 8px;
  border: 1px solid #eee;
  border-radius: 32px;
  background-color: #fff;
  text-align: left;
  text-decoration: none;
}

.category-lists > ul li.category-list-title.is-open a {
  outline: 3px solid var(--main-color-green);
}

/* hover */
.category-lists > ul li.category-list-title a:hover {
  outline: 3px solid var(--main-color-green);
}

.category-lists > ul li.category-list-title a::before {
  position: absolute;
  content: "";
  top: 50%;
  right: 25px;
  height: 3px;
  width: 15px;
  background: var(--main-color-green);
  transform: rotate(90deg);
  transition: all 0.3s ease-in-out;
}

.category-lists > ul li.category-list-title a::after {
  position: absolute;
  content: "";
  top: 50%;
  right: 25px;
  height: 3px;
  width: 15px;
  background: var(--main-color-green);
  transition: all 0.3s ease-in-out;
}

.category-lists > ul li.category-list-title.is-open a::before {
  transform: rotate(180deg);
}

.category-lists > ul li.category-list-title a figure {
  width: 64px;
  height: 64px;
  margin-right: 16px;
}

.category-lists > ul li.category-list-title a figure img {
  width: 100%;
}

.category-lists > ul li.category-list-title a p {
  flex: 1;
  font-size: 1.1875em;
  margin: 0;
  color: var(--main-color-black);
}

.category-lists > ul li.category-links {
  display: none;
  position: relative;
  width: 100%;
  padding: 40px 0;
  background: #fff;
  border: 3px solid var(--main-color-green);
  border-radius: 32px;
}

.category-lists > ul li.category-links:before {
  content: "";
  position: absolute;
  top: -16px;
  margin-left: -14px;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 16px solid #fff;
  z-index: 2;
}

.category-lists > ul li.category-links:after {
  content: "";
  position: absolute;
  top: -20px;
  margin-left: -17px;
  border-left: 17px solid transparent;
  border-right: 17px solid transparent;
  border-bottom: 20px solid var(--main-color-green);
  z-index: 1;
}

.category-lists > ul li:nth-child(2).category-links:before ,
.category-lists > ul li:nth-child(6).category-links:before ,
.category-lists > ul li:nth-child(2).category-links:after ,
.category-lists > ul li:nth-child(6).category-links:after {
  left: 25%;
}

.category-lists > ul li:nth-child(4).category-links:before ,
.category-lists > ul li:nth-child(8).category-links:before ,
.category-lists > ul li:nth-child(4).category-links:after ,
.category-lists > ul li:nth-child(8).category-links:after {
  left: 75%;
}

.category-lists > ul li.category-links > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 100%;
  width: 992px;
  margin: 35px auto 0;
  padding: 0;
}

.category-lists > ul li.category-links > ul li {
  width: calc(100% / 2 - 8px);
}

.category-lists > ul li.category-links > ul li a {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: 100%;
  min-height: 100px;
  padding: 31px calc(24px + 12px + 24px) 24px 24px;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: none;
  color: var(--main-color-black);
  background-color: #f2f2f2;
  text-align: left;
  text-decoration: none;
  transition: 0.2s;
}

.category-lists > ul li.category-links > ul li a:after {
  content: "";
  width: 12px;
  height: 12px;
  border-right: 4px solid var(--main-color-green);
  border-top: 4px solid var(--main-color-green);
  position: absolute;
  top: calc(50% - 6px);
  right: 24px;
  transform: rotate(45deg);
}

/* hover */
.category-lists > ul li.category-links > ul li a:hover {
  background-color: #f2fbfa;;
}

.category-lists > ul li.category-links > div {
  display: flex;
  justify-content: center;
  text-align: center;
  margin-top: 30px;
}

.category-lists > ul li.category-links > div button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
  /* buttonタグの初期化 */
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  outline: none;
  font-size: 1em;
  padding-left: 20px;
}

.category-lists > ul li.category-links > div button::before,
.category-lists > ul li.category-links > div button::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 1.2rem;
  top: -3px;
  bottom: 0;
  left: 2px;
  background-color: var(--main-color-black);
}

.category-lists > ul li.category-links > div button::before {
  transform: rotate(45deg);
}

.category-lists > ul li.category-links > div button::after {
  transform: rotate(-45deg);
}

@media screen and (max-width: 768px) {
  .category-lists {
    margin: 50px 0 0;
    padding: 40px 0 60px;
  }

  .category-lists .category-lists-title {
    font-size: 1.5em;
  }

  .category-lists > ul {
    flex-direction: column;
    margin: 25px auto 0;
    padding: 0 20px;
  }

  .category-lists > ul > li:nth-child(2) {
    order: 2;
  }

  .category-lists > ul > li:nth-child(3) {
    order: 3;
  }

  .category-lists > ul > li:nth-child(6) {
    order: 6;
  }

  .category-lists > ul > li:nth-child(7) {
    order: 7;
  }

  .category-lists > ul li.category-list-title {
    width: 100%;
  }

  .category-lists > ul li.category-list-title a {
    border-radius: 10px;
  }

  .category-lists > ul li.category-list-title a figure {
    margin-right: 16px;
  }

  .category-lists > ul li.category-list-title a p {
    font-size: 1em;
  }

  .category-lists > ul li.category-links {
    padding: 0;
    border-radius: 8px;
  }

  .category-lists > ul li.category-links > ul {
    margin: 0 auto;
    border-radius: 8px;
    gap: 0;
    overflow: hidden;
  }

  .category-lists > ul li.category-links > ul li {
    width: 100%;
  }

  .category-lists > ul li.category-links > ul li a {
    border-top: none;
    background: #fff;
    min-height: 84px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 0px;
  }

  .category-lists > ul li.category-links > div {
    margin: 30px 0;
  }
}

.breadcrumb {
  margin: 0;
}