.category-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 15px;
  margin-top: 116px;
}

.category-tab {
  border: 2px solid #ccc;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  border-radius: 34px;
  padding: 15px 15px;
  width: calc((100% - (15px * 3)) / 4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  position: relative;
}

.category-tab::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  top: 50%;
  right: 18.9%;
  transform: translateY(-70%) rotate(135deg);
}

.category-tab:hover {
  transform: translateY(-4px);
}

.category-tab[style*="border-color"] {
  background: var(--border-color);
}

.category-tab img {
  height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

@media screen and (max-width: 1167px) and (min-width: 768px) {
  .category-tab::before {
    right: calc(50px - ((1168px - 100vw) / 10));
  }

  .page-content > .container {
    max-width: calc(100vw - 64px);
  }
}

@media (max-width: 767px) {
  .page-content > .container {
    max-width: 86.6vw;
  }

  .category-tabs {
    gap: 2.6vw;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    margin-top: 13vw;
  }

  .category-tab {
    width: 41.2vw;
    min-width: 41.2vw;
    max-width: 41.2vw;
    border-width: 0.5vw;
    border-radius: 6.1vw;
    padding: 1.7vw 4.2vw;
    gap: 1.3vw;
    font-size: 4.8vw;
  }

  .category-tab img {
    height: 4.8vw;
    width: 6.5vw;
    margin-left: -4vw;
  }

  .category-tab::before {
    right: 4vw;
    width: 2.5vw;
    height: 2.5vw;
    border-width: 0.6vw;
  }
}

/*------------------------------------------------------------ FAQ ----------------------------------------------------------------*/

.category-section {
  padding: 50px 0;
  background-color: #eff6ff;
}

.category-section:nth-of-type(2) {
  padding-top: 110px;
  margin-top: 100px;
}

.category-section:last-of-type {
  padding-bottom: 110px;
}

.category-info .category-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 35px;
  gap: 15px;
}

.category-info .category-header .category-image {
  width: 75px;
  height: 75px;
  min-width: 75px;
  min-height: 75px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-info .category-header .category-image img {
  height: 46px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.category-info .category-header .category-name {
  font-size: 39px;
  font-weight: 800;
  color: #000;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: 0.1em;
}

@media (max-width: 1167px) and (min-width: 768px) {
  .category-section > .container {
    max-width: calc(100vw - 64px);
  }
}

@media (max-width: 767px) {
  .category-section > .container {
    max-width: 94vw;
  }
  .category-section:nth-of-type(2) {
    padding-top: 13.5vw;
    margin-top: 12vw;
  }
  .category-info .category-header {
    gap: 2vw;
    min-height: 12vw;
    margin-bottom: 6.5vw;
  }

  .category-info .category-header .category-image {
    width: 12vw;
    height: 12vw;
    min-width: 12vw;
    min-height: 12vw;
  }

  .category-info .category-header .category-image img {
    height: 7.2vw;
  }

  .category-info .category-header .category-name {
    font-size: 7.7vw;
    border-right: none !important;
    padding-right: 0 !important;
  }

}

.faq-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background-color: #d7e8ff;
  border-radius: 15px;
  padding: 27px 30px 27px;
}

.faq-item {
  width: 100%;
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 30px;
  background: #fff;
  overflow: hidden;
  border-radius: 15px;
  padding: 15px 35px;
  cursor: pointer;
}

.faq-question .question-title {
  flex: 1;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #004097;
  letter-spacing: 0;
  padding-right: 1em;
  line-height: 1.5;
}

.faq-toggle {
  position: relative;
  width: 20px;
  height: 20px;
}

.faq-toggle::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 3px solid #004097;
  border-top: none;
  border-left: none;
  top: 50%;
  right: 8px;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle::before {
  transform: translateY(-30%) rotate(225deg);
}

.faq-answer {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 20px 30px 0px 35px;
  max-height: none;
  opacity: 1;
}

.faq-answer-wrapper {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.faq-item.active .faq-answer-wrapper {
  max-height: none;
  opacity: 1;
}

.faq-icon {
  min-width: 50px;
  width: 50px;
  object-fit: contain;
}

.faq-answer .answer-content {
  flex: 1;
  color: #000;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0;
}

@media (max-width: 767px) {
  .faq-list {
    gap: 3.3vw;
    border-radius: 2.6vw;
    padding: 4vw 3.7vw 4vw;
  }

  .faq-question {
    gap: 4vw;
    border-radius: 2.6vw;
    padding: 2.5vw 3vw;
  }

  .faq-question .question-title {
    font-size: 4.2vw;
    padding-right: 0;
  }

  .faq-toggle {
    width: 3.3vw;
    height: 3.3vw;
  }

  .faq-toggle::before {
    width: 3vw;
    height: 3vw;
    border: 0.8vw solid #004097;
    border-top: none;
    border-left: none;
    right: 0.5vw;
  }

  .faq-answer {
    padding: 3.3vw 3.5vw 0 3vw;
    align-items: flex-start;
  }

  .faq-item.active .faq-answer-wrapper {
    max-height: none;
    opacity: 1;
  }

  .faq-icon {
    min-width: 9.3vw;
    width: 9.3vw;
  }

  .faq-answer .answer-content {
    font-size: 4.2vw;
  }
}

/*------------------------------------------------------------ 商品FAQ ----------------------------------------------------------------*/

.product-faq-header {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  cursor: pointer;
}

.product-faq-header:not(:first-of-type) {
  margin-top: 17px;
}

.product-faq-title {
  font-size: 24px;
  font-weight: 700;
  color: #000;
}

.product-faq-toggle {
  position: relative;
  width: 20px;
  height: 20px;
}

.product-faq-toggle::before,
.product-faq-toggle::after {
  content: "";
  position: absolute;
  background-color: #004097;
  top: 50%;
  right: 5px;
  border-radius: 3px;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.product-faq-toggle::before {
  width: 18px;
  height: 3px;
}

.product-faq-toggle::after {
  width: 3px;
  height: 18px;
  right: 12px;
  transform: translateY(-50%);
}

.product-faq-header.active .product-faq-toggle::after {
  transform: translateY(-50%) rotate(90deg);
}

.product-faq-content {
  max-height: none;
  opacity: 1;
  padding-bottom: 30px;
  padding-top: 22px;
  transition: all 0.6s ease;
}

.product-faq-wrapper {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.6s ease;
}

.product-faq-header.active + .product-faq-wrapper {
  max-height: none;
  opacity: 1;
}

@media (max-width: 767px) {
  .product-faq-header {
    border-radius: 2.6vw;
    padding: 4.5vw 3.7vw;
  }

  .product-faq-header:not(:first-of-type) {
    margin-top: 2.6vw;
  }

  .product-faq-title {
    font-size: 4.8vw;
  }

  .product-faq-toggle {
    width: 3.3vw;
    height: 3.3vw;
  }

  .product-faq-toggle::before,
  .product-faq-toggle::after {
    right: 1.3vw;
  }

  .product-faq-toggle::before {
    width: 3.5vw;
    height: 0.8vw;
  }

  .product-faq-toggle::after {
    width: 0.8vw;
    height: 3.5vw;
    right: 2.6vw;
  }

  .product-faq-content {
    padding-bottom: 4vw;
    padding-top: 3.3vw;
  }

  .product-faq-header.active + .product-faq-wrapper {
    max-height: none;
    opacity: 1;
  }
}
