#result_area {
  position: absolute;
  top: 0;
  left: 0;
  max-width: calc(100% - 44px);
  max-width: calc(100% - 60px);
  min-width: 400px;
  width: auto;
  height: 100%;
  transition: transform .2s;
  background-color: #F0F0EB;
  padding: 40px 30px 50px;
  transform: translateX(-100%);
  z-index: 1;
}

#result_area.is-open {
  transform: translateX(0);
}

#toggle_btn {
  position: absolute;
  left: 100%;
  top: 60px;
  width: 50px;
  height: 50px;
  border-radius: 0 4px 4px 0;
  background-color: #F0F0EB;
  border-left: 1px solid #d2d6d8;
  display: none;
}

#result_area.has-data #toggle_btn {
  display: block;
}

.toggle-bar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 2px;
  background-color: #C8373C;
  transition: all .2s;
}

.toggle-bar:nth-child(1) {
  top: 16px;
}

.toggle-bar:nth-child(2) {
  top: 50%;
  transform: translate(-50%);
}

.toggle-bar:nth-child(3) {
  top: 34px;
}

#result_area.is-open .toggle-bar {
  width: 36px;
}

#result_area.is-open .toggle-bar:nth-child(1) {
  transform: translateX(-50%) rotate(45deg);
  top: auto;
}

#result_area.is-open .toggle-bar:nth-child(2) {
  display: none;
}

#result_area.is-open .toggle-bar:nth-child(3) {
  transform: translateX(-50%) rotate(-45deg);
  top: auto;
}

#search_param {
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 1.6rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 22px;
}

#result_data {
  height: calc(100% - 44px);
}

.result-items {
  max-height: calc(100% - 86px);
  overflow-y: auto;
  margin-bottom: 17px;
}

.result-items > li {
  display: flex;
  gap: 15px;
  border-bottom: 1px solid #B8BDBF;
  padding: 5px 0;
  align-items: baseline;
}

.page-links {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
  flex: 1;
}

.page-link {
  background-color: #fff;
  color: #C8373C;
  font-size: 1.2rem;
  padding: 0 4px;
  border-radius: 4px;
  white-space: nowrap;
}

.result-nav {
  font-size: 1.2rem;
}

.nav-title {
  text-align: center;
  margin-bottom: 8px;
}

.nav-title .total {
  margin-right: 1em;
}

.nav-title .from,
.nav-title .symbol {
  margin-right: .25em;
}

.page-list {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 20px;
}

.page-list > li {
  text-align: center;
  width: 20px;
  height: 100%;
}

.page-list > li + li {
  margin-left: 5px;
}

.page-list .pager-shift,
.page-list .pager-num {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-list .pager-shift.pager-none {
  display: none;
}

.page-list .pager-shift > span {
  width: 8px;
  height: 8px;
  border-bottom: 2px solid #C8373C;
}

.page-list .pager-shift[data-shift="prev"] > span {
  border-left: 2px solid #C8373C;
  transform: rotate(45deg);
}

.page-list .pager-shift[data-shift="next"] > span {
  border-right: 2px solid #C8373C;
  transform: rotate(-45deg);
}

.page-list .pager-current {
  color: #C8373C;
  position: relative;
}

.page-list .pager-num {
  padding-bottom: 2px;
}

.page-list .pager-current::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 2px;
  background-color: #C8373C;
}

.loader,
.loader:before,
.loader:after {
  background: #ccc;
  -webkit-animation: load1 1s infinite ease-in-out;
  animation: load1 1s infinite ease-in-out;
  width: 1em;
  height: 4em;
}

.loader {
  color: #ccc;
  text-indent: -9999em;
  margin: 88px auto;
  position: absolute;
  top: 100px;
  left: 50%;
  font-size: 1.1rem;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}

.loader:before,
.loader:after {
  position: absolute;
  top: 0;
  content: '';
}

.loader:before {
  left: -1.5em;
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}

.loader:after {
  left: 1.5em;
}

@-webkit-keyframes load1 {
  0%,
  80%,
  100% {
    box-shadow: 0 0;
    height: 4em;
  }
  40% {
    box-shadow: 0 -2em;
    height: 5em;
  }
}

@keyframes load1 {
  0%,
  80%,
  100% {
    box-shadow: 0 0;
    height: 4em;
  }
  40% {
    box-shadow: 0 -2em;
    height: 5em;
  }
}



@media screen and (max-width: 768px) {
  #result_area {
    padding: 14px 0 14px 22px;
    min-width: auto;
    max-width: none;
    width: calc(100% - 50px);
    height: 100vh;
    height: calc(calc(var(--vh, 1vh) * 100) - 60px);
    top: 60px;
  }

  .result-items {
    padding-right: 22px;
    max-height: calc(100% - 110px);
  }

  .result-items > li {
    flex-direction: column;
    gap: 8px;
    padding-bottom: 10px;
  }

  .result-nav {
    position: sticky;
    bottom: 0;
    width: 100%;
    background-color: #F0F0EB;
    padding: 20px 22px 20px 0;
  }
  

  #toggle_btn {
    top: auto;
    bottom: 30px;
    width: 40px;
    height: 40px;
  }

  .toggle-bar {
    width: 24px;
  }

  .toggle-bar:nth-child(1) {
    top: 12px;
  }

  .toggle-bar:nth-child(2) {
    top: 50%;
    transform: translate(-50%);
  }

  .toggle-bar:nth-child(3) {
    top: 28px;
  }

  #result_area.is-open .toggle-bar {
    width: 30px;
  }

  #result_area.is-open .toggle-bar:nth-child(1) {
    transform: translateX(-50%) rotate(45deg);
    top: auto;
  }

  #result_area.is-open .toggle-bar:nth-child(2) {
    display: none;
  }

  #result_area.is-open .toggle-bar:nth-child(3) {
    transform: translateX(-50%) rotate(-45deg);
    top: auto;
  }

  #search_param {
    padding-right: 22px;
  }
}