@charset "UTF-8";

/*　▼commonに切り替わったら移動　*/
  
#container {
  background: var(--color-bg);
}

/* =====================
  results
===================== */

/*  results_nav
------------------------*/

#results .results_nav {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  position: fixed;
  left: 0;
  z-index: 50;
  background: var(--color-main);
}

#results .results_nav ul,
#results .results_nav ul li,
#results .results_nav_item {
  height: 100%;
}

#results .results_nav ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

#results .results_nav_item {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 3px;
  color: var(--color-black);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  white-space: nowrap;
  position: relative;
  cursor: pointer;
}

#results .results_nav_item span {
  display: block;
  width: 100%;
  text-align: center;
}

#results .results_nav_item img {
  flex-shrink: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

/*  search_history
------------------------*/

#results .search_history_box {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

/*  results_sort
------------------------*/

#results .results_nav_sort {
  position: relative;
}

#results .results_sort_dropdown {
  background: #fff;
  border: 1px solid #EAEAEA;
  border-radius: 3px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s;
  position: absolute;
  top: calc(100% + 8px);
  z-index: 3;
}

#results .results_sort_dropdown.is_show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

#results .results_sort_option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.5;
  letter-spacing: 0.02em;
  position: relative;
  cursor: pointer;
}

#results .results_sort_option:not(:last-child) {
  border-bottom: 1px solid #EAEAEA;
}

#results .results_sort_option.current {
  background: var(--color-sub);
  color: var(--color-main);
  font-weight: 700;
}

/*  results_bnr
------------------------*/

#results .results_bnr ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

#results .results_bnr a {
  display: block;
  width: 100%;
  height: 100%;
}

#results .results_bnr li {
  aspect-ratio: 680 / 200;
}

#results .results_bnr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*  results_ttl
------------------------*/

#results .results_ttl {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-content: initial;
}

#results .results_ttl_text {
  grid-column: 2;
}

/*  results_pager
------------------------*/

#results .results_pager ul {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--pager_current_size);
}

#results .results_pager li {
  display: flex;
  align-items: center;
  justify-content: center;
}

#results .results_pager li + li {
  margin-left: var(--pager_gap);
}

#results .results_pager .dots_item {
  margin-left: 15px;
}

#results .results_pager .dots_item + li {
  margin-left: 15px;
}

#results .results_pager a,
#results .results_pager span {
  width: var(--pager_text_width);
  height: var(--pager_text_height);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #909090;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

#results .results_pager .current {
  width: var(--pager_current_size);
  height: var(--pager_current_size);
  background: var(--color-main);
  border-radius: 50%;
  color: #fff;
}

/* =====================
  results_search_modal
===================== */

html.is_results_search_modal_open {
  overflow: hidden;
}

body.is_results_search_modal_open {
  width: 100%;
  overflow: hidden;
  position: fixed;
  left: 0;
}

.results_search_modal {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  position: fixed;
  inset: 0;
  z-index: 10000;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s 0.35s;
}

.results_search_modal.is_show {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.results_search_modal_overlay {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s;
  position: absolute;
  inset: 0;
}

.results_search_modal.is_show .results_search_modal_overlay {
  opacity: 1;
}

.results_search_modal_close {
  opacity: 0;
  transition: opacity 0.3s;
  position: absolute;
  z-index: 2;
  cursor: pointer;
}

.results_search_modal.is_show .results_search_modal_close {
  opacity: 1;
}

.results_search_modal_panel {
  width: 100%;
  height: calc(100vh - 55px);
  height: calc(100dvh - 55px);
  display: flex;
  flex-direction: column;
  background: var(--color-sub);
  border-radius: 30px 30px 0 0;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 1;
  transform: translate(-50%, 100%);
}

.results_search_modal.is_show .results_search_modal_panel {
  transform: translate(-50%, 0);
}

.results_search_modal_panel .search_form_wrap,
.results_search_modal_panel .search_form {
  min-height: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.results_search_modal_panel .search_form_body {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  background: var(--color-sub);
  position: static;
  padding-bottom: 0;
  -webkit-overflow-scrolling: touch;
}

.results_search_modal_panel .search_form_body::before {
  display: none;
}

.results_search_modal_panel .search_submit {
  width: calc(100% + (var(--results_search_modal_body_space) * 2));
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 calc(var(--results_search_modal_body_space) * -1);
  border-radius: 0;
  background: rgba(236, 245, 245, 0.95);
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  bottom: 0;
  z-index: 2;
}

.results_search_modal_panel .search_submit.is_static {
  background: transparent;
  box-shadow: none;
}

.results_search_modal_panel .search_submit_trigger {
  width: 100%;
  height: 1px;
  display: block;
}

/*-------------------------------------------*/
/*	PC
/*-------------------------------------------*/

@media screen and (min-width:900px) {

  /* =====================
    container
  ===================== */

  /*　▼commonに切り替わったら移動　*/  
  
  #wrapper {
    overflow: clip;
  }

  #container {
    padding: 60px 0 80px;
  }

  .inner {
    max-width: 90%;
  }
  
  /* =====================
    results
  ===================== */
  
  #results {
    padding: 20px 0 0;
  }

  /*  results_nav
  ------------------------*/
  
  #results .results_nav {
    top: 65px;
    height: 45px;
    padding: 7px 0;
  }

  #results .results_nav ul {
    gap: 7px;
    width: 500px;
    margin: 0 auto;
  }

  #results .results_nav_item {
    font-size: 12px;
  }

  #results .results_nav_item img {
    width: 20px;
    height: 20px;
    left: 10px;
  }

  /*  results_sort
  ------------------------*/
  
  #results .results_sort_dropdown {
    width: 160px;
    left: 50%;
    transform: translate(-50%, -8px);
  }

  #results .results_sort_dropdown.is_show {
    transform: translate(-50%, -2px);
  }

  #results .results_sort_option {
    height: 40px;
    font-size: 13px;
  }

  /*  results_bnr
  ------------------------*/
  
  #results .results_bnr {
    margin-bottom: 20px;
  }

  #results .results_bnr ul {
    gap: 10px;
  }

  #results .results_bnr li {
    width: calc((100% - 20px) / 3);
  }

  /*  results_pager
  ------------------------*/
  
  #results .results_pager {
    margin-top: 35px;
    --pager_gap: 32px;
    --pager_text_width: 16px;
    --pager_text_height: 24px;
    --pager_current_size: 45px;
  }

  #results .results_pager a,
  #results .results_pager span {
    font-size: 16px;
  }

  /* =====================
    results_search_modal
  ===================== */
  
  .results_search_modal_close {
    width: 35px;
    height: 35px;
    top: calc(10vh - 35px);
    top: calc(10dvh - 35px);
    right: max(5%, calc((100vw - 1060px) / 2 - 35px));
  }

  .results_search_modal_panel {
    width: 1060px;
    max-width: 90%;
    height: 80vh;
    height: 80dvh;
    border-radius: 34px 34px 0 0;
    opacity: 0;
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
  }

  .results_search_modal.is_show .results_search_modal_panel {
    opacity: 1;
    transform: translate(-50%, -50%);
  }

  .results_search_modal_panel .ttl_bar.search_form_ttl {
    border-radius: 34px 34px 0 0;
  }

  .results_search_modal_panel .search_form_body {
    --results_search_modal_body_space: 50px;
  }

  .results_search_modal_panel .search_submit {
    padding: 15px 20px;
  }

  .results_search_modal_panel .search_submit button {
    width: 260px;
    height: 55px;
  }

  .results_search_modal_panel .search_more {
    margin-bottom: 40px;
  }
  
  .search_clear {
    margin-bottom: 40px;
  }

}

/*-------------------------------------------*/
/*	SP
/*-------------------------------------------*/

@media screen and (max-width:899px) {

  /* =====================
    container
  ===================== */

  /*　▼commonに切り替わったら移動　*/  
  
  #container {
    padding-bottom: 20px;
  }

  /* =====================
    results
  ===================== */

  #results {
    padding-top: 55px;
  }

  /*  results_nav
  ------------------------*/
  
  #results .results_nav {
    top: 110px;
    height: 40px;
    padding: 7px;
    margin-bottom: 0;
  }

  #results .results_nav ul {
    gap: 7px;
  }

  #results .results_nav_item {
    min-height: 25px;
    gap: 4px;
    font-size: 10px;
  }

  #results .results_nav_item img {
    width: 16px;
    height: 16px;
    left: 6px;
  }

  /*  results_sort
  ------------------------*/
  
  #results .results_sort_dropdown {
    width: 100%;
    left: 0;
    transform: translateY(-8px);
  }

  #results .results_sort_dropdown.is_show {
    transform: translateY(-2px);
  }

  #results .results_sort_option {
    height: 36px;
    font-size: 11px;
  }

  /*  results_bnr
  ------------------------*/
  
  #results .results_bnr {
    max-width: 350px;
    margin: 0 auto 15px;
  }

  #results .results_bnr ul {
    gap: 8px;
  }

  #results .results_bnr li {
    width: 100%;
  }

  /*  results_pager
  ------------------------*/
  
  #results .results_pager {
    margin-top: 25px;
    --pager_gap: 20px;
    --pager_text_width: 14px;
    --pager_text_height: 21px;
    --pager_current_size: 40px;
  }

  #results .results_pager a,
  #results .results_pager span {
    font-size: 14px;
  }

  /* =====================
    results_search_modal
  ===================== */
  
  .results_search_modal_close {
    width: 25px;
    height: 25px;
    top: 15px;
    right: 15px;
  }

  .results_search_modal_panel .search_form_body {
    --results_search_modal_body_space: 20px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .results_search_modal_panel .search_submit {
    padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
  }

  .results_search_modal_panel .search_submit button {
    width: 200px;
    height: 50px;
  }

  .results_search_modal_panel .search_more {
    margin-bottom: 30px;
  }

  .search_clear {
    margin-bottom: 30px;
  }

}
