@charset "utf-8";

.top_guest_banner {
  width: 100%;
  margin: 0 auto 10px;
  background: var(--white);
}

.top_guest_banner_device,
.top_guest_banner img {
  display: block;
}

.top_guest_banner_device--pc {
  display: none;
}

.top_guest_banner img {
  width: 100%;
  height: auto;
}

#slider {
  width: 100%;
  /*max-width: 656px;*/
  max-width: 1280px;
  height: auto;
  padding: 0 10px;
  margin: 0 auto 10px;
}

.splide__slide img {
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.splide__slide a {
  display: block;
}

.splide__pagination {
  bottom: -30px;
}

.splide__pagination__page {
  background: var(--medium-gray);
  border: 0;
  border-radius: 50%;
  display: inline-block;
  height: 8px;
  margin: 10px;
  opacity: 1;
  padding: 0;
  position: relative;
  transition: transform .2s linear;
  width: 8px;
}

.splide__pagination__page:hover {
  cursor: pointer;
  opacity: 1;
}
.splide__pagination__page.is-active {
  background: var(--light-gray);
  border: 2px solid;
  border-color: var(--yellow);
  transform: scale(1.4);
  z-index: 1;
}

.splide__track {
  margin-bottom: 40px;
}

/*1枚だけの時用*/
.splide:not( .is-overflow ) .splide__list {
  justify-content: center;
}

.splide:not( .is-overflow ) .splide__slide:last-child {
  margin: 0;
}

.splide:not( .is-overflow ) .splide__track {
  margin-bottom: 0;
}



/*========================================
top_btn
========================================*/
#topBtn_wrap {
  width: 100%;
  max-width: 390px;
  margin: 10px auto;
  display: flex;
  justify-content: center;
}

a.btn4.ex::after {
  content: "";
  display: inline-block;
  background: url("../images/exm.svg") center no-repeat;
  background-size: contain;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-left: 8px;
}


/*========================================
category
========================================*/
.contents_outer {
width: 100%;
max-width: 1280px;
margin: 10px auto 0;
}

#search__category {
width: 100%;
margin: 0 auto 5px;
padding:0 10px;
}

.top-sort-pc {
  display: none;
}

.category__list {
width: 100%;
max-width: 1280px;
padding: 0 30px 0 10px;
margin-bottom: 10px;
display: flex;
flex-wrap:nowrap;
justify-content: flex-start;
white-space: nowrap;
column-gap: 10px;
overflow-x:auto;
white-space: nowrap;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
-ms-overflow-style: none;
}

.category__list::-webkit-scrollbar {  
  display: none; 
}

.category__list li {
height: 40px;
position: relative;
}

.category__list li a {
width: auto;
display: block;
line-height: 40px;
padding: 0 10px;
}

.category__list > li {
    width:auto;
}
.category__list > li:first-child {
    margin-left:auto;
}
.category__list > li:last-child {
    margin-right:auto;
}

.right_fade {
  -webkit-mask-image: linear-gradient(to right, white 85%, transparent 100%);
  mask-image: linear-gradient(to right, white 85%, transparent 100%);
}

.category__list li a.active {
  font-weight: 700;
  color: var(--green);
}

.category__list li a.active::after {
  content: '';
  width: calc(100% - 20px);
  height:2px;
  background-color: var(--green);
  position: absolute;
  bottom: 6px;
  left: 10px;
}

/*========================================
search
========================================*/
#search_area_sp {
  display: flex;
  flex-direction: row;
  justify-content: center;
  column-gap: 3px;
  padding: 0;
}

#search_sp{
  display: flex;
  justify-content: space-between; 	
  border: 1px solid;
  border-color: var(--medium-gray);
  width: 60%;
  max-width: 230px;
  height:45px;
  background:var(--white);
  margin:0;
  border-radius: 25px;
  }

#search_input_sp{ 
  width: 100%;
  min-width: 0;
  padding: 0 15px;
  border-radius: 25px;
  background:var(--white);
  border:none;
  outline:0;
  font-size: 16px;
}

#search_clear_sp {
  -webkit-appearance: none;
  appearance: none;
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
  width: 26px;
  border: none;
  background: transparent;
  color: var(--dark-gray);
  cursor: pointer;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  padding: 0;
}

#search_clear_sp.is-visible:not([hidden]) {
  display: flex;
}

#search_btn_sp{
  width: 45px;
  flex: 0 0 45px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  background: transparent;

}

#search_btn_sp .svg.search {
  display: block;
  fill: var(--dark-gray);
  transition: var(--transition);
}

#search_btn_sp:hover .svg.search {
  fill:var(--orange);
}

#search_input_sp::placeholder {
  font-size: 16px;
}


.nd {
  position: relative;
  }
  
.nd::before {
  position: absolute;
  top: 18px;
  right: 15px;
  content: '';
  width: 12px;
  height: 8px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background-color: var(--dark-gray);
  pointer-events: none;
}

.nd .nd_select {
  width: 39vw;
  max-width: 168px;
  height: 45px;
  background: var(--white);
  border: 1px solid;
  border-radius: 25px;
  border-color: var(--medium-gray);
  font-size: var(--font14-16);
  padding-left: 10px;
}


@media screen and (min-width: 768px) {
.top_guest_banner {
  max-width: 1280px;
}

.top_guest_banner_device--pc {
  display: block;
}

.top_guest_banner_device--sp {
  display: none;
}

#slider {
  margin: 0 auto;
  padding: 0;
}

#slider .splide__slide {
  opacity: .45;
  filter: saturate(.75);
  transition: opacity .25s ease, filter .25s ease;
}

#slider .splide__slide.is-active {
  opacity: 1;
  filter: none;
}

#slider:not( .is-overflow ) .splide__slide {
  opacity: 1;
  filter: none;
}

}


@media screen and (min-width: 1024px) {
.splide__track {
  margin-bottom: 50px;
}

.splide__pagination {
  bottom: -40px;
}

.splide__pagination__page {
  height: 12px;
  margin: 10px;
  width: 12px;
}

#search_area_sp {
  display: none;
}

#search__category {
  width: 100%;
  margin: 0 auto;
  padding:0 10px;
  position: sticky;
  top:120px;
  left:0;
  z-index: 20;
  background: var(--white);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0;
}

#category {
  margin: 30px auto 20px;
}


.category__list {
  width: auto;
  grid-column: 2;
  min-width: 0;
  padding: 0;
}

.category__list > li:first-child {
    margin-left:auto;
}
.category__list > li:last-child {
    margin-right:auto;
}

.top-sort-pc {
  display: block;
  grid-column: 3;
  justify-self: end;
}

.top-sort-pc.nd::before {
  top: 16px;
}

.top-sort-pc.nd .nd_select {
  width: 200px;
  max-width: 200px;
}


.right_fade {
  -webkit-mask-image: linear-gradient(to right, white 97%, transparent 100%);
  mask-image: linear-gradient(to right, white 97%, transparent 100%);
}

/* 会員のみ2段ヘッダー分（未ログインは .page-top--guest で上書き） */
main.page-top:not(.page-top--guest) {
  margin-top: 130px;
}

}


@media screen and (min-width: 1280px) {
#search__category {
  padding-right: calc((100vw - 1260px) / 2);
  padding-left: calc((100vw - 1260px) / 2);
  }
}

/* ── Django トップ統合 ── */
/* 未ログイン: ヘッダー1段（56px）＋下線直後〜バナーまでわずかなすき間（デザイン準拠） */
main.page-top.page-top--guest {
  margin-top: 56px;
}

@media screen and (min-width: 1024px) {
  main.page-top.page-top--guest {
    margin-top: 68px;
  }

  main.page-top.page-top--guest #search__category {
    top: 68px;
  }
}

.item_detail_link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.item[data-question-detail-url] {
  cursor: pointer;
}

.item[data-question-detail-url] .yosokuBtn {
  cursor: pointer;
}

.item.item--few-choices {
  justify-content: space-between;
}

.item_thumb .item_thumb--placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--medium-gray, #e0e0e0);
  border-radius: 4px;
}
.item_thumb img.item_thumb--empty {
  display: none;
}
.item_no_choices {
  padding: 12px;
  font-size: 14px;
  color: var(--dark-gray, #666);
  margin: 0;
}
.top-search-result-info {
  padding: 8px 16px;
  font-size: 13px;
  color: var(--dark-gray, #666);
  max-width: 1280px;
  margin: 0 auto;
}
.top-load-more-sentinel {
  height: 1px;
}
.top-load-more-status {
  min-height: 24px;
  padding: 16px 20px 40px;
  text-align: center;
  color: var(--dark-gray, #888);
  font-size: 13px;
}
.top-empty-message {
  text-align: center;
  padding: 48px 20px;
  color: var(--dark-gray, #888);
  font-size: 15px;
}
.splide__slide--placeholder {
  min-height: 120px;
  background: linear-gradient(135deg, #2c2c54, #1a1a2e);
  border-radius: 8px;
}
