/*------------------------------------
  サイドバー
------------------------------------*/
/* floatは古いので.list-areaをdisplay: flex;にして、
.sidebarのfloat: left;を削除としたほうがよさそうらしい。 
overflow: hidden;もfloat解除用なので削除*/
.list-area {
  margin: 20px auto 60px auto;
  /* overflow: hidden; */
  /* 以下追加 */
  display: flex; 
  align-items: flex-start;
  gap: 40px;
}
.sidebar {
  /* float: left; */
  width: 200px;
  background: #fafafa;
  /* margin-right: 40px; */
  padding: 20px 0;
  border: 1px solid #e8e8e8;
  /* 以下追加　デフォが1で、0にするとwidthを保持してくれる */
  flex-shrink: 0;
  /* 以下も追加　marginじゃなくてgapで余白調整 */
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.sidebar-inner {
  padding: 0 20px;
  /* margin-bottom: 30px; */
}
/* .sidebar-inner:last-child {
  margin-bottom: 0;
} */
.sidebar-title {
  font-weight: bold;
  font-size: 20px;
}
.sidebar-body {
  margin-top: 10px;
}
.sidebar-list li a {
  border-bottom: 1px solid #e6e6e6;
  display: block;
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.sidebar-list li:nth-child(n + 4) {
  display: none;
}
.price-select-wrap {
  position: relative;
  border: 1px solid #bbbbbb;
  border-radius: 2px;
  padding: 10px;
  background: #ffffff;
}
.price-select-wrap::after {
  content: "";
  position: absolute;
  top: 19px;
  right: 10px;
  width: 0;
  height: 0;
  padding: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #666666;
  pointer-events: none;
}
.price-select {
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/*------------------------------------
  サイドバー
------------------------------------*/
.result-text {
  display: inline-block;
  font-size: 26px;
  margin-bottom: 30px;
}

/*------------------------------------
  ローダー
------------------------------------*/
.loader{
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.95);
  z-index: 10;
}
.loader-inner{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 50px;
  height: 100px;
}
.line{
  width: 8px;
  position: absolute;
  border-radius: 5px;
  bottom: 0;
  left: 50%;
  background: linear-gradient(to top, #f599fa, #45f3d1);
}
.line1{
  left: 0;
  animation: loader 0.3s ease alternate infinite;
}
.line2{
  left: 20px;
  animation: loader 0.3s 0.2s ease alternate infinite;
}
.line3{
  left: 40px;
  animation: loader 0.3s 0.4s ease alternate infinite;
}
@keyframes loader {
  0% {
    height: 0;
  }
  100% {
    height: 75%;
  }
}

/*=========================================================
  レスポンシブ
=========================================================*/
@media screen and (max-width: 768px) {
  .contents{
    margin-top: 20px;
  }
  .list-area {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    gap: 20px;
  }
  .sidebar-title {
    font-size: 16px;
    position: relative;
  }
  .sidebar-title::after {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    content: "＋";
    font-size: 24px;
  }
  .sidebar-title.is-active::after {
    content: "－";
  }
  .sidebar-body {
    display: none;
  }
  .inner.list-area {
    margin: 0 10px;
  }
}