﻿body {
  background-color: #000;
}

.g-wrapper,
.g-contents,
.g-main {
  height: 100%;
}

.gallery {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.gallery_inner {
  padding: 0 10px;
  column-count: 4;
  column-gap: 10px;
}

.gallery::-webkit-scrollbar {
  width: 9px;
}

.gallery::-webkit-scrollbar-track {
  background-color: #666;
}

.gallery::-webkit-scrollbar-thumb {
  background-color: #f0cd0a;
}

.gallery li {
  display: inline-block;
  margin: 0 0 5px;
}

.gallery li img {
  display: block;
  width: 100%;
}

.gallery_shadow {
  position: fixed;
  top: 0;
  left: 0;
  width: calc(100% - 9px);
  height: 175px;
  background: linear-gradient(0deg, rgba(31, 31, 31, 0) 0%, rgba(31, 31, 31, 0.9) 100%);
  content: '';
  pointer-events: none;
}

.gallery_btn {
  display: block;
  padding: 0;
  border: 0;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

html[data-states~='no-touch'] .gallery_btn:hover {
  opacity: 0.7;
}

.gallery_close {
  right: 9px;
}

.panelArea {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.panelBtn {
  display: flex;
  width: 60px;
  height: 60px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  margin: 0 0 20px 15px;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 100px;
  color: #b00000;
  cursor: pointer;
  font-size: 3rem;
  pointer-events: all;
}

.panelBtn i {
  transform: rotate(180deg);
  transition: transform 0.2s;
}

.panelBtn[aria-expanded='true'] i {
  transform: rotate(0);
}

.panelSet {
  pointer-events: all;
}

.controlPanel {
  padding: 20px 0 10px;
  background-color: rgba(30, 30, 30, 0.9);
}

.rangePanel {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
}

.rangePanel dt {
  margin-right: 15px;
  white-space: nowrap;
}

.rangePanel dt:nth-of-type(n + 2),
.rangePanel dd:nth-of-type(n + 2) {
  margin-top: 10px;
}

.range {
  display: flex;
  align-items: center;
}

.range span {
  width: 42px;
  flex-shrink: 0;
  white-space: nowrap;
}

.range span:first-child {
  text-align: right;
}

.range_input {
  position: relative;
  height: 17px;
  flex: 1;
  margin: 0 5px;
}

.range_input::before,
.range_input::after {
  position: absolute;
  top: 6px;
  display: block;
  height: 5px;
  border-radius: 5px;
  content: '';
}

.range_input::before {
  width: 25px;
  left: 0;
}

.range_input::after {
  width: calc(100% - 30px);
  right: 0;
}

.range_input input {
  position: relative;
  width: 100%;
  height: 17px;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: none;
  cursor: pointer;
  outline: none;
  z-index: 1;
}

.range_input input:focus {
  outline: none;
}

.range_input input::-webkit-slider-thumb {
  width: 25px;
  height: 17px;
  -webkit-appearance: none;
          appearance: none;
  border-radius: 17px;
}

.range_input input::-moz-range-thumb {
  width: 25px;
  height: 17px;
  border: 0;
  border-radius: 17px;
}

.range_input input::-moz-focus-outer {
  border: 0;
}

.label {
  font-size: 1.2rem;
}

.age {
  color: #55bddf;
}

.age .range_input::before,
.age .range_input::after {
  background: #3d636f;
}

.age .range_input input::-webkit-slider-thumb {
  background: #55bddf;
}

.age .range_input input::-moz-range-thumb {
  background: #55bddf;
}

.area {
  color: #bbe138;
}

.area .range_input::before,
.area .range_input::after {
  background: #6a754e;
}

.area .range_input input::-webkit-slider-thumb {
  background: #bbe138;
}

.area .range_input input::-moz-range-thumb {
  background: #bbe138;
}

.configPanel {
  display: flex;
  max-width: 341px;
  align-items: flex-start;
  justify-content: space-between;
  margin: 20px auto 0;
}

.configBtn {
  display: flex;
  padding: 0 5px 5px;
  border: 0;
  border-bottom: 2px solid transparent;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: none;
  cursor: pointer;
  font-size: 1.3rem;
  text-align: left;
}

.configBtn i {
  margin-right: 5px;
  font-size: 1.9rem;
}

.configBtn .g-i-arrow-d {
  margin: 0 0 0 5px;
  font-size: 1.3rem;
  transform: translateY(4px);
  transition: transform 0.2s;
}

.configBtn[aria-expanded='true'] {
  border-bottom: 2px solid #f0cd0a;
}

.configBtn[aria-expanded='true'] .g-i-arrow-d {
  color: #f0cd0a;
  transform: translateY(4px) rotate(180deg);
}

.map {
  width: 160px;
  height: 160px;
  border: 1px solid #666;
  background: url("../image/map.png") no-repeat center/cover;
}

.map_h {
  padding: 10px;
  color: rgba(255, 255, 255, 0.6);
}

.map_h span {
  display: block;
  font-size: 1rem;
}

.subPanel {
  position: relative;
  background-color: rgba(0, 0, 0, 0.9);
}

.subPanel_inner {
  padding-top: 20px;
  padding-bottom: 20px;
}

.subPanel_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.subPanel_h {
  display: flex;
  align-items: center;
  font-size: 2rem;
}

.subPanel_h i {
  margin-right: 10px;
  font-size: 2.5rem;
}

.subPanel .configBtn {
  padding: 0;
  border: 0;
  margin: 0;
  font-size: 1.2rem;
}

.pillBtn {
  padding: 2px 15px;
  border: 0;
  margin: 2px;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: #e6e6e6;
  border-radius: 100px;
  color: #000;
  cursor: pointer;
  font-size: 1.2rem;
}

.pillBtn[aria-pressed='true'] {
  background-color: #dbbb0a;
}

.pillList + .pillList {
  margin-top: 10px;
}

.pillList dt {
  padding-top: 2px;
  margin-right: 7px;
  float: left;
  white-space: nowrap;
}

.pillList dd {
  overflow: hidden;
}

.galleryModal {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  width: 100%;
  min-height: 100%;
  padding: 60px 17px 100px;
  background-color: rgba(0, 0, 0, 0.7);
  transition: opacity 0.2s;
}

.galleryModal_close {
  right: 9px;
}

.galleryModal_picture {
  width: 100%;
  height: 400px;
  margin: auto;
}

.galleryModal_picture img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.galleryModal_info {
  margin-top: 15px;
  text-align: center;
}

.galleryModal_title {
  font-size: 1.8rem;
}

.galleryModal_ruby {
  font-size: 1.3rem;
}

.closeBtn {
  position: fixed;
  z-index: 10;
  top: 0;
  display: flex;
  width: 70px;
  height: 55px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 0;
  cursor: pointer;
  visibility: hidden;
}

.closeBtn::before, .closeBtn::after {
  display: block;
  width: 40px;
  height: 1px;
  margin: 0;
  background-color: #000;
  content: '';
  transition: transform 0.2s;
}

.closeBtn::before {
  transform: rotate(30deg);
}

.closeBtn::after {
  transform: translateY(-1px) rotate(-30deg);
}

.closeBtn-back::before,
.closeBtn-back::after {
  content: none;
}

.closeBtn-back {
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" x="0px" y="0px" width="46.7503px" height="40.6807px" viewBox="0 0 46.7503 40.6807"><path fill="%23333333" d="M10.051,25.0766l10.0502-10.0457l-6.9163-0.0007c1.7104-6.5227,6.5476-10.0116,13.0254-10.0116 c5.9131,0,12.5078,4.391,14.9471,9.639l0.0513-0.0178C38.1286,4.0892,26.7-2.327,17.7295,0.7895 C12.2898,2.6791,6.6137,8.1711,5.7126,15.0296l-5.7125-0.0005L10.051,25.0766z"/><path fill="%23333333" d="M46.7503,25.6515L36.6994,15.6042L26.6492,25.6498l6.9161,0.0006 c-1.7104,6.5228-6.5476,10.0116-13.0253,10.0116c-5.9131,0-12.5078-4.3909-14.9473-9.6392l-0.0511,0.0179 c3.08,10.5507,14.5087,16.9669,23.4791,13.8503c5.4397-1.8895,11.1157-7.3815,12.0168-14.2401L46.7503,25.6515z"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 40%;
}

@media (min-width: 769px) {
  body {
    background-color: #1e1e1e;
  }
  .gallery_inner {
    column-count: 7;
    column-gap: 13px;
  }
  .gallery::-webkit-scrollbar {
    width: 12px;
  }
  .gallery_shadow {
    width: calc(100% - 12px);
  }
  .gallery_close {
    right: 12px;
  }
  .panelBtn {
    width: 100px;
    height: 100px;
    margin: 0 0 30px 30px;
    font-size: 5.2rem;
  }
  .controlPanel {
    padding: 30px 0;
  }
  .controlPanel .g-container {
    display: flex;
    max-width: 1400px;
    align-items: center;
  }
  .controlPanel .controlPanel_l {
    flex: 1;
    margin-right: 20px;
  }
  .rangePanel dt {
    margin-right: 25px;
    font-size: 2rem;
  }
  .rangePanel dd {
    display: flex;
    align-items: center;
  }
  .range {
    flex: 1;
  }
  .range_input {
    margin: 0 15px;
  }
  .range_input::before {
    width: 30px;
  }
  .range_input::after {
    width: calc(100% - 35px);
  }
  .range_input input::-webkit-slider-thumb {
    width: 30px;
  }
  .range span {
    width: 50px;
  }
  .label {
    width: 155px;
    padding: 2px 5px;
    margin-left: 10px;
    border-radius: 100px;
    color: #fff;
    font-size: 1.4rem;
    text-align: center;
  }
  .age .label {
    background: #3887b0;
  }
  .area .label {
    background: #84aa2d;
  }
  .configPanel {
    max-width: none;
    justify-content: flex-end;
    margin-top: 30px;
  }
  .configBtn {
    margin-left: 20px;
    font-size: 1.4rem;
  }
  .configBtn i {
    margin-right: 7px;
    font-size: 2.4rem;
  }
  .subPanel_inner {
    display: flex;
    max-width: 1400px;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .subPanel_head {
    display: block;
    flex-shrink: 0;
    padding-right: 50px;
    border-right: 1px solid #505050;
    margin-right: 30px;
    margin-bottom: 0;
  }
  .subPanel_body {
    flex: 1;
  }
  .subPanel .configBtn {
    margin-top: 10px;
    font-size: 1.4rem;
  }
  .pillBtn {
    font-size: 1.4rem;
  }
  .pillList {
    display: inline-block;
    margin: 15px 20px;
  }
  .pillList + .pillList {
    margin-top: 0;
  }
  .pillList dt {
    padding-top: 4px;
    margin-right: 10px;
  }
  .galleryModal {
    padding: 60px 40px 190px;
  }
  .galleryModal_picture {
    height: 800px;
  }
  .galleryModal_info {
    margin-top: 30px;
  }
  .galleryModal_title {
    font-size: 2.4rem;
  }
  .galleryModal_ruby {
    font-size: 1.6rem;
  }
  .galleryModal_close {
    right: 12px;
  }
  .galleryModal .g-btnGroup {
    max-width: 340px;
    margin-right: auto;
    margin-left: auto;
  }
  .closeBtn {
    height: 45px;
  }
}

.loadingLayer {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #1e1e1e;
}
.loadingLayer_el,
.loadingLayer_img,
.loadingLayer_text {
  width: 168px;
  height: 168px;
}
.loadingLayer_el {
  position: relative;
}
.loadingLayer_text {
  line-height: 1;
  height: 20px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  text-align: center;
}
.loadingLayer_text span {
  display: inline-block;
  margin: 0 -0.05em;
  animation: loadingText 2.5s infinite;
  font-size: 2rem;
}
.loadingLayer_text span:nth-child(2) {
  animation-delay: .15s;
}
.loadingLayer_text span:nth-child(3) {
  animation-delay: .3s;
}
.loadingLayer_text span:nth-child(4) {
  animation-delay: .45s;
}
.loadingLayer_text span:nth-child(5) {
  animation-delay: .6s;
}
.loadingLayer_text span:nth-child(6) {
  animation-delay: .75s;
}
.loadingLayer_text span:nth-child(7) {
  animation-delay: .9s;
}
.loadingLayer_text span:nth-child(8) {
  animation-delay: 1.05s;
}
@keyframes loadingText {
  0% {
    transform: translateY(0);
  }
  10% {
    transform: translateY(-15px);
  }
  20% {
    transform: translateY(0);
  }
}
html.loading .loadingLayer {
  display: flex;
}
