@charset "UTF-8";

#kv {
  position: relative;
}

.search-form {
  width: 80vw;
  max-width: 550px;
  height: 45px;
  background: #ffffff;
  border-radius: 50px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-form .search-field {
  width: calc(100% - 80px);
  height: 45px;
  text-align: center;
  color: var(--orange-color);
  font-size: 1.7rem;
}

.search-form .search-submit {
  width: 24px;
  margin: 0 auto;
}

.products-list-item {
  margin-top: 80px;
  scroll-margin-top: 80px;
}

.products-list-item-title-en {
  color: var(--orange-color);
  font-size: 1.7rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.products-list-item-title {
  color: var(--orange-color);
  font-size: 3.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 34px;
}

.products-child-category-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-column-gap: 10px;
  grid-row-gap: 10px;
}

.products-child-category-list-item a {
  color: var(--orange-color);
  font-size: clamp(1.6rem, 4.3vw, 2rem);
  padding: 15px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--orange-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--anime-transition);
}

.products-child-category-list-item a:hover {
  background: var(--orange-color);
  color: #ffffff;
}

.products-child-category-list-item a.selected,
.products-child-category-list-item a.active {
  background: var(--orange-color);
  color: #ffffff;
}

.products-list-item-products {
  margin-top: 30px;
  position: relative;
}

.products-list-item-products-title {
  color: var(--orange-color);
  font-size: 1.7rem;
  text-align: center;
  padding: 15px;
  border: 1px solid var(--orange-color);
  margin-bottom: 20px;
}

.products-loading,
.products-empty,
.products-error {
  text-align: center;
  padding: 40px;
  font-size: 1.7rem;
  color: var(--orange-color);
}

.products-card {
  position: relative;
  z-index: 1;
  line-height: 1.2;
}

.products-card-thumbnail {
  width: 100%;
}

.products-card-button {
  color: #ffffff;
  font-size: 1.5rem;
  display: block;
  padding: 10px;
  background: var(--orange-color);
  text-align: center;
}

.star-wrapper {
  margin-left: 10px;
}

.grade-text {
  font-size: 1rem;
  color: #fff;
  width: max-content;
  margin: 0 auto;
}

.products-card-title {
  font-size: 1.6rem;
  color: #fff;
}

.products-card-price {
  font-size: 1.6rem;
  color: #fff;
}

.products-card-desc {
  font-size: 1.4rem;
  color: #fff;
  margin-top: 10px;
  overflow-y: scroll;
  height: 50%;
}
.products-card-desc::-webkit-scrollbar {
  display: none;
}

.category-description {
  margin-top: 40px;
  font-size: 1rem;
  line-height: 1.4;
}

.sidebar {
  margin: 40px 0;
  position: relative;
  z-index: 1;
}

.products-tag-list {
  position: sticky;
  top: 40px;
}

.products-tag-list-item:not(:last-child) {
  margin-bottom: 10px;
}

.products-tag-list-item a {
  color: var(--orange-color);
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  width: 100%;
  padding: 10px;
  border-radius: 40px;
  background: rgba(244, 111, 34, 0.3);
  text-align: center;
  display: block;
}

.products-card-mask {
  width: 100%;
  background: rgba(244, 111, 34, 0.9);
  padding: 20px;
}

/* 検索結果ページ用スタイル */
.search-results-info {
  margin-bottom: 40px;
  padding: 0 0 10px;
  border-bottom: 2px solid #e0e0e0;
}

.search-results-title {
  font-size: 2.4rem;
  font-weight: bold;
  color: #333;
}

.search-results-count {
  margin-left: 10px;
  font-size: 1.8rem;
  color: var(--orange-color);
}

.search-empty,
.products-empty {
  text-align: center;
  padding: 60px 20px;
  background: #f9f9f9;
  border-radius: 10px;
  margin: 40px 0;
}

.search-empty p,
.products-empty p {
  font-size: 1.6rem;
  line-height: 1.8;
  color: #666;
  margin: 10px 0;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.search-result-item {
  padding: 30px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: box-shadow 0.3s ease;
}

.search-result-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-result-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.search-result-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.search-result-title a:hover {
  color: var(--orange-color);
}

.search-result-excerpt {
  font-size: 1.4rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 15px;
}

.search-result-link {
  display: inline-block;
  padding: 10px 20px;
  background: var(--orange-color);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 1.4rem;
  transition: background 0.3s ease;
}

.search-result-link:hover {
  background: #d35400;
}

.pagination {
  margin-top: 40px;
  text-align: center;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 8px 15px;
  margin: 0 5px;
  background: #fff;
  border: 1px solid #e0e0e0;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.pagination .page-numbers:hover {
  background: var(--orange-color);
  color: #fff;
  border-color: var(--orange-color);
}

.pagination .page-numbers.current {
  background: var(--orange-color);
  color: #fff;
  border-color: var(--orange-color);
}

@media screen and (max-width: 768px) {
  .kv-btn {
    color: #ffffff;
    font-size: 4vw;
    padding: 10px;
    border-radius: 50px;
    background: var(--orange-color);
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: var(--page-width);
    text-align: center;
    z-index: 99999999;
  }

  .kv-btn::before,
  .kv-btn::after {
    content: "";
    position: absolute;
    top: 35%;
    right: 30px;
    width: 1.5px;
    height: clamp(14px, 3.57vw, 18px);
    background-color: #fff;
    transform-origin: 50% 1px;
  }

  .kv-btn::before {
    transform: rotate(46.65deg);
  }

  .kv-btn::after {
    transform: rotate(-46.65deg);
  }

  .kv-btn.active {
    background: #ffffff;
    color: var(--orange-color);
    position: fixed;
    z-index: 9999999999;
  }

  .kv-btn.active::before,
  .kv-btn.active::after {
    top: 25%;
    background-color: var(--orange-color);
    transform-origin: 50% calc(100% - 1px);
  }

  #category-list {
    width: 100vw;
    height: calc(100vh - 60px);
    top: 60px;
    left: 0;
    background: var(--orange-color);
    position: fixed;
    z-index: 999999999;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }

  #category-list.active {
    transform: translateY(0);
  }

  .search #products-list {
    padding: 40px 0;
  }

  .products-category-list {
    padding: 20px;
    transition: transform 0.3s ease;
  }

  .products-category-list-item {
    margin-bottom: 2vh;
  }

  .products-category-list-item a {
    color: #fff;
    font-size: 4.6667vw;
    text-align: center;
    border: 1px solid #fff;
    width: 83vw;
    padding: 8px;
    margin: 0 auto;
    display: block;
    position: relative;
  }

  .products-category-list-item a::before,
  .products-category-list-item a::after {
    content: "";
    position: absolute;
    top: calc(50% - 1px);
    right: 10px;
    width: 2.0533vw;
    height: 1.5px;
    background-color: #ffffff;
    transform-origin: calc(100% - 1px) 50%;
  }

  .products-category-list-item a::before {
    transform: rotate(52.15deg);
  }

  .products-category-list-item a::after {
    transform: rotate(-52.15deg);
  }

  /* 子ターム一覧パネル */
  .products-child-terms-panel {
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: var(--orange-color);
    z-index: 10000;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 20px;
  }

  .products-child-terms-panel-active {
    right: 0;
  }

  .products-child-terms-title {
    color: #ffffff;
    font-size: 4.6667vw;
    margin-bottom: 30px;
    text-align: center;
    border: 1px solid #ffffff;
    padding: 8px;
    position: relative;
  }

  .products-child-terms-title::before,
  .products-child-terms-title::after {
    content: "";
    position: absolute;
    top: calc(50% - 1px);
    left: 10px;
    width: 2.0533vw;
    height: 1.5px;
    background-color: #ffffff;
    transform-origin: 1px 50%;
  }

  .products-child-terms-title::before {
    transform: rotate(52.15deg);
  }

  .products-child-terms-title::after {
    transform: rotate(-52.15deg);
  }

  .products-child-terms-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .products-child-terms-list-item {
    margin-bottom: 2vh;
  }

  .products-child-terms-list-item a {
    color: #fff;
    font-size: 4vw;
    text-align: center;
    border-bottom: 1px solid #fff;
    width: 100%;
    padding: 8px;
    display: block;
    position: relative;
  }

  /* 子タームパネルがアクティブな時、親カテゴリーリストを左にスライド */
  #category-list.has-child-terms-panel .products-category-list {
    transform: translateX(-100%);
  }

  .products-card {
    background: var(--orange-color);
  }

  .star-wrapper {
    width: 25% !important;
  }

  .search-results-title {
    font-size: 2rem;
  }

  .search-results-count {
    font-size: 1.6rem;
    white-space: nowrap;
  }

  .search-result-item {
    padding: 20px;
  }

  .search-result-title {
    font-size: 1.8rem;
  }

  .products-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .products-grid-swiper {
    display: block;
    grid-template-columns: none;
    position: relative;
    padding-bottom: 50px;
  }

  .products-grid-swiper .swiper-wrapper {
    display: flex;
  }

  .products-grid-swiper .swiper-slide {
    width: auto;
    flex-shrink: 0;
  }

  .products-grid-swiper .products-card {
    width: 280px;
  }

  /* paginationスタイル */
  .products-grid-pagination {
    position: absolute;
    bottom: 10px;
    left: auto !important;
    width: auto;
    text-align: center;
  }

  .products-grid-pagination .swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
    width: 10px;
    height: 10px;
    margin: 0 5px;
  }

  .products-grid-pagination .swiper-pagination-bullet-active {
    background: var(--orange-color);
  }

  /* navigationスタイル */
  .products-grid-prev,
  .products-grid-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    margin-top: 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .products-grid-prev {
    left: 10px;
  }

  .products-grid-next {
    right: 10px;
  }

  .products-grid-prev::after,
  .products-grid-next::after {
    font-size: 16px;
    color: var(--orange-color);
    font-weight: bold;
  }

  .products-grid-prev::after {
    content: "‹";
  }

  .products-grid-next::after {
    content: "›";
  }

  .search .products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-column-gap: 20px;
    grid-row-gap: 20px;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .search .products-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .search .products-card > a {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
    min-width: 0;
  }

  .search .products-card-thumbnail {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    flex-shrink: 0;
    width: 100%;
  }

  .search .products-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .search .products-card-mask {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 12px;
    min-width: 0;
    box-sizing: border-box;
  }

  .search .products-card-title,
  .search .products-card-desc {
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .search .products-card-desc {
    height: auto;
    flex: 1;
    margin-top: 8px;
    overflow: hidden;
    display: -webkit-box;
  }

  .search .products-card-star {
    width: 60% !important;
    max-width: 100px;
    display: block;
    margin: 0 auto 10px;
  }
}

@media screen and (min-width: 769px) {
  #category-list {
    margin-top: 15px;
  }

  .search-results-info {
    padding: 20px 0;
  }

  .products-category-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
  }

  .products-card {
    aspect-ratio: 800 / 864;
  }

  .products-category-list-item a {
    color: var(--orange-color);
    background: #f8f3f1;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: var(--anime-transition);
  }

  .products-category-list-item a:hover {
    background: var(--orange-color);
    color: #ffffff;
  }

  .archive-products #products-list {
    padding-bottom: 80px;
  }

  .search #products-list {
    padding-bottom: 80px;
  }

  #products-list {
    margin-top: 80px;
  }

  .products-list-warpper {
    display: flex;
    flex-direction: row-reverse;
    gap: 25px;
    align-items: flex-start;
  }

  .products-list-content {
    width: 75%;
  }

  .sidebar {
    min-width: 25%;
    margin: 0;
  }

  .products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
  }

  .tag-page .products-grid {
    margin-top: 0;
  }

  .products-list-item:first-child {
    margin-top: 0;
  }

  .products-tag-list-item a {
    font-size: 1.4rem;
    width: 100%;
    padding: 10px;
    border-radius: 18px;
  }

  .products-child-category-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .products-child-category-list-item a {
    font-size: 1.7rem;
  }

  .products-card-mask {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(244, 111, 34, 0.9);
    z-index: 9;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    /* text-align: center; */
    padding: 15px;
    transition: var(--anime-transition);
  }

  .products-card:hover .products-card-mask {
    display: block;
  }

  .products-card-title {
    margin-bottom: 10px;
  }

  .products-card-price {
    margin-bottom: 8px;
  }

  .products-card-star {
    width: 55% !important;
    margin: 0 auto 10px;
    display: block;
  }

  .category-description {
    font-size: 1.2rem;
  }
}

@media screen and (min-width: 440px) and (max-width: 768px) {
  .search .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
