﻿.resultLayout_contents {
  display: contents;
}

.upperPart {
  margin-bottom: 30px;
  grid-column: 1 / 3;
  grid-row: 1 / 2;
}

.middlePart {
  overflow: hidden;
}

.middlePart[data-view='grid'] .middlePart_inner.list {
  display: none;
}

.middlePart[data-view='grid'] .middlePart_inner.grid {
  display: flex;
}

.middlePart[data-view='list'] .middlePart_inner.list {
  display: block;
}

.middlePart[data-view='list'] .middlePart_inner.grid {
  display: none;
}

.middlePart[data-view='list'] .middlePart_inner.grid.force-visible {
  display: flex;
  transform: translateX(-100vw);
}

.lowerPart {
  margin-top: 30px;
  grid-column: 1 / 3;
  grid-row: 3 / 4;
}

.controlPanel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid #505050;
  margin-bottom: 15px;
}

.btn {
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: none;
  cursor: pointer;
}

.itemBtn,
.timeMachineBtn {
  margin: 2px 0;
  text-align: left;
}

.itemBtn i,
.timeMachineBtn i {
  margin-right: 4px;
  color: #fff;
}

.itemBtn {
  margin-right: 15px;
  color: #dfc474;
  font-size: 1.3rem;
  font-weight: 700;
}

.itemBtn i {
  font-size: 1.9rem;
}

.timeMachineBtn {
  font-size: 1.3rem;
}

.timeMachineBtn i {
  font-size: 2.1rem;
}

.gridViewBtn,
.listViewBtn {
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
}

.gridViewBtn i,
.listViewBtn i {
  font-size: 2rem;
}

.gridViewBtn[aria-pressed='true'],
.listViewBtn[aria-pressed='true'] {
  background: #414141;
}

.closeBtn i {
  margin-left: 5px;
  font-size: 1.2rem;
}

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

.condition_head p {
  font-size: 1.9rem;
  font-weight: 700;
}

.condition_form + .condition_form {
  margin-top: 30px;
}

.condition_submit {
  margin-top: 20px;
}

.condition_submit .g-btn {
  width: 100%;
  min-width: 0;
}

.condition_submit .g-btn .g-btn_inner {
  min-height: 40px;
}

.condition_displayCount {
  display: table;
  margin-top: 15px;
}

.condition_reset {
  margin-top: 10px;
}

.result {
  display: flex;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid #505050;
}

.result:nth-child(n + 2) {
  padding-top: 20px;
}

.result_photo {
  margin: 0 15px 0 10px;
}

.result_photo a {
  position: relative;
  display: block;
  width: 125px;
  height: 125px;
  background: #343434;
}

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

.result_photo a::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  transition: opacity 0.2s;
}

.result-checked .result_photo a img {
  opacity: 1 !important;
}

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

.result_data {
  font-size: 1.3rem;
}

.result_h {
  color: #dfc474;
  font-size: 1.4rem;
}

.result_h a {
  color: #dfc474;
}

.result_ruby {
  font-size: 1.1rem;
}

.result_texts {
  margin-top: 1em;
}

[data-view='grid'] .result {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  padding: 20px 20px 20px 0;
  border: 0;
  border-right: 1px solid #505050;
  margin: 0 20px 0 0;
  width: calc(100% - 20px);
}

[data-view='grid'] .result::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: calc(100% - 20px);
  height: 1px;
  background: #505050;
  content: '';
}

[data-view='grid'] .result .g-checkable {
  order: 3;
  margin-left: 10px;
}

[data-view='grid'] .result_photo {
  width: 100%;
  order: 1;
  margin: 0 0 10px;
}

[data-view='grid'] .result_photo a {
  width: 100%;
  height: auto;
}

[data-view='grid'] .result_photo img {
  width: 100%;
  height: auto;
  object-fit: fill;
}

[data-view='grid'] .result_h {
  width: calc(100% - 36px);
  order: 2;
  font-size: 1.2rem;
  font-weight: normal;
}

[data-view='grid'] .result_h a {
  color: #fff;
}

[data-view='grid'] .result_data {
  display: contents;
}

[data-view='grid'] .result_ruby, [data-view='grid'] .result_texts {
  display: none;
}

@media (max-width: 768px) {
  .resultLayout {
    position: relative;
  }
  .searchPart {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
  }
  .searchPart::before {
    position: absolute;
    top: -16px;
    left: 35px;
    width: 0;
    height: 0;
    border-width: 0 16px 16px;
    border-style: solid;
    border-color: transparent transparent rgba(255, 255, 255, 0.85);
    content: '';
  }
  .middlePart[data-view='grid'] .middlePart_inner {
    margin-right: -41px;
    column-count: 2;
    column-gap: 0;
  }
  .middlePart[data-view='grid'] .middlePart_inner.grid .column {
    width: 50%;
  }
  .controlSet {
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid #505050;
    margin-top: 10px;
  }
  .gridViewBtn,
  .listViewBtn {
    position: absolute;
    top: -69px;
    width: 36px;
    height: 36px;
  }
  .gridViewBtn {
    right: 36px;
  }
  .listViewBtn {
    right: 0;
  }
  .condition {
    padding: 10px 10px 25px;
    background: rgba(220, 220, 220, 0.95);
    color: #000;
  }
  .condition_h {
    margin-bottom: 15px;
    font-size: 1.9rem;
    font-weight: 700;
  }
  .condition_displayCount .g-dropdown_label {
    border-color: #fff !important;
    background-color: #fff !important;
    color: #000;
  }
  .condition_displayCount .g-dropdown_i {
    color: #000;
  }
  .condition_foot {
    display: flex;
    justify-content: space-between;
  }
}

@media (min-width: 769px) {
  .resultLayout {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
  }
  .searchPart {
    display: flex;
    overflow: hidden;
    width: 315px;
    justify-content: flex-end;
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    transition: width 0.5s;
    will-change: width;
  }
  .searchPart[aria-hidden='true'] {
    overflow: hidden;
    width: 0;
    height: auto;
  }
  .middlePart {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }
  .middlePart[data-view='grid'] .middlePart_inner {
    margin-right: -61px;
    column-count: 3;
    column-gap: 0;
  }
  .middlePart[data-view='grid'] .middlePart_inner.grid .column {
    width: 33.33333%;
  }
  html:not([data-states~='condition-open']) .middlePart[data-view='grid'] .middlePart_inner {
    column-count: 4;
  }
  html:not([data-states~='condition-open']) .middlePart[data-view='grid'] .middlePart_inner.grid .column {
    width: 25%;
  }
  .controlSet {
    padding-left: 25px;
    margin-left: auto;
  }
  .itemBtn,
  .timeMachineBtn {
    margin: 5px 0;
  }
  .itemBtn i,
  .timeMachineBtn i {
    margin-right: 10px;
  }
  .itemBtn {
    margin-right: 0;
    font-size: 1.6rem;
  }
  .itemBtn i {
    font-size: 2.5rem;
  }
  .timeMachineBtn {
    margin-left: 25px;
    font-size: 1.4rem;
  }
  .timeMachineBtn i {
    font-size: 2.8rem;
  }
  .gridViewBtn i,
  .listViewBtn i {
    font-size: 2.4rem;
  }
  .gridViewBtn {
    margin-left: 25px;
  }
  .condition {
    width: 284px;
    flex-shrink: 0;
    padding-right: 31px;
    border-right: 1px solid #3a3a3a;
    margin-right: 30px;
  }
  .condition_head {
    margin-bottom: 15px;
  }
  .condition_head p {
    color: #c1ac6d;
    font-size: 2rem;
  }
  .condition_h {
    padding-left: 10px;
    border-left: 3px solid #e8cf82;
    margin-bottom: 15px;
    font-size: 1.6rem;
    font-weight: 700;
  }
  .condition_submit {
    margin-top: 25px;
  }
  .result {
    padding-bottom: 30px;
  }
  .result:nth-child(n + 2) {
    padding-top: 30px;
  }
  .result_photo {
    margin: 0 25px 0 15px;
  }
  .result_photo a {
    width: 250px;
    height: 250px;
  }
  .result_data, .result_ruby {
    font-size: 1.6rem;
  }
  .result_h {
    font-size: 1.8rem;
  }
  [data-view='grid'] .result {
    padding: 30px 30px 30px 0;
    margin: 0 30px 0 0;
    width: calc(100% - 30px);
  }
  [data-view='grid'] .result::after {
    width: calc(100% - 30px);
  }
  [data-view='grid'] .result_photo {
    margin: 0 0 12px;
  }
  [data-view='grid'] .result_h {
    margin-top: 0.2em;
    font-size: 1.4rem;
  }
}

@media (min-width: 769px) and (max-width: 900px) {
  .middlePart[data-view='grid'] .middlePart_inner {
    column-count: 2;
  }
  html:not([data-states~='condition-open']) .middlePart[data-view='grid'] .middlePart_inner {
    column-count: 3;
  }
  .result_photo a {
    width: 175px;
    height: 175px;
  }
}
