@charset "UTF-8";
:root{
  --backColor:#e9e6df;
}
main:has(.gallery){
    margin-bottom: 0;
}
#contents.gallery{
    max-width: 1000px;
    margin: 103px auto 50px;
    background: inherit;
    padding: 0;
    padding-top: 100px;
    width: 95%;
}
#contents.category.gallery{
  padding-top: 0;
}
.gallery a{
    opacity: 1;
    transition: 0.3s;
}
.gallery a:hover{
    opacity: 0.8;
}

.single.gallery h1{
    font-size: min(6vw, 30px);
    line-height: 1;
    margin-bottom: 20px;
}
.single.gallery h2{
    font-size: min(5vw, 20px);
    line-height: 1;
    margin-bottom: 20px;
}
#contents.single.gallery  a{
    color: #cc3b0e;
}
.single.gallery .dl_loop{
    display: grid;
    grid-template-columns: min(5em) 1fr;
    gap: 10px;
}
.single.gallery .dl_wrap{
    font-size: min(3.9583333333vw, 16px);
    gap: 20px;
}
.single.gallery .workDetail__box{
    padding: 0;
}
.single.gallery .workDetail {
    display: flex;
    justify-content: space-between;
    margin: 50px 0 50px;
}
.single.gallery .workDetail_data{
    width: 30%;
    border-right: 1px solid;  
    padding-right: 10px;
}
.single.gallery .workDetail_data dt,
.single.gallery .dl_wrap dt{
    min-width: 3.2em;
}
.single.gallery .workDetail_box{
    width: calc(70% - 20px);
}
.single.gallery .workDetail_text{
    margin-bottom: 30px;
}
.single.gallery article figure,
.single.gallery article img{
    width: 100%;
}
.single.gallery .workDetail_mv img,
.single.gallery .workDetail__box img{
    margin: 0 auto;
    max-width: 1000px;
}
@media screen and (max-width:1379px){
  .single.gallery .workDetail_mv{
    margin: 0 calc(50% - 50vw);
  }
  .single.gallery .dl_wrap{
    flex-direction: column;
    gap: 0;
    margin-bottom: 10px;
  }
}

@media screen and (max-width:767px){
  #contents.gallery,
  .single.gallery .workDetail_mv img,
  .single.gallery .workDetail__box img{
    width: 100%;
  }
  #contents.gallery{
    padding: 0 7.5%;
  }
    .gallery article{
      margin: 0;
      padding: 0 7.5%;
    }
    .single.gallery .workDetail{
        flex-direction: column-reverse;
        margin: 30px 0 30px;
    }
    .single.gallery .workDetail_box{
        width: 100%;
    }
    .single.gallery .workDetail_data{
        width: 100%;
        border: none;
        margin-top: 30px;
    }
    .single.gallery .dl_wrap{
      font-size: 3.9583333333vw;
      display: flex;
      gap: 20px;
  }
    .single.gallery .dl_wrap{
      flex-direction: row;
      gap: 20px;
      margin-bottom: 10px;
    }
    .gallery .workDetail_data .dl_wrap{
      flex-direction: column;
    }
    .single.gallery article{
      padding: 0;
    }
}

@media screen and (max-width:576px){
    #contents.gallery{
      margin-top: 2vmax;
  }
}


/* --- page gallery ---*/
.gallery_custom01 {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-gap: 1em;
  margin-bottom: 5em;
}
.gallery_custom01_con a {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  padding: 15px;
  position: relative;
}
.gallery_custom01_con:has(.active) a{
    border-radius: 3px 3px 0 0;
    background: var(--mainHover);
}

.gallery_arrow {
  position: absolute;
  display: inline-block;
  margin-left: 15px;
  bottom: calc(50% - 5px);
  right: 1rem;
}

.gallery_arrow::before {
    display: block;
    content: "";
    width: 15px;
    height: 15px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(135deg);
    transition: 0.3s;
}

/* active になったら反転 */
.gallery_custom01_con:has(.child-category-list.active) .gallery_arrow::before {
    transform: rotate(-45deg);
}

.gallery_custom01_con img {
  width: 3.5em;
  margin-bottom: 0.5em;
}
.gallery_custom01_con span {
  font-size: 15px;
  font-size: 3.7109375vw;
  display: inline-block;
  line-height: 1.5;
}
@media screen and (min-width: 577px) {
  .gallery_custom01_con span {
    font-size: 15px;
    font-size: 2.34375vw;
  }
}
@media screen and (min-width: 769px) {
  .gallery_custom01{
    grid-template-rows: repeat(3, 1fr);
  }
  .gallery_custom01_con span {
    font-size: 15px;
  }
}
@media screen and (min-width: 577px) {
  .gallery_custom01_con a {
    flex-direction: initial;
  }
  .gallery_custom01_con img {
    margin-bottom: 0;
    margin-right: 0.5em;
  }
  .gallery_custom01_con span {
    text-align: left;
  }
  .gallery_custom01_con span br {
    display: none;
  }
}
@media screen and (min-width: 1080px) {
  .gallery_custom01 {
    grid-template-columns: repeat(2, 1fr);
    -ms-grid-columns: 1fr 20px 1fr 20px 1fr 20px 1fr 20px 1fr 20px 1fr;
    grid-template-rows: 1fr;
    -ms-grid-rows: 1fr;
    grid-gap: 20px;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 100px;
  }
  .gallery_custom01_con a {
    justify-content: center;
  }
  .gallery_custom01_con img {
    margin-bottom: 0.5em;
    margin-right: 0;
  }
  .gallery_custom01_con span {
    text-align: center;
  }
  .gallery_custom01_con span br {
    display: block;
  }
  .gallery_custom01_con:nth-child(1) {
    -ms-grid-column: 1;
    -ms-grid-row: 1;
  }
  .gallery_custom01_con:nth-child(2) {
    -ms-grid-column: 3;
    -ms-grid-row: 1;
  }
  .gallery_custom01_con:nth-child(3) {
    -ms-grid-column: 5;
    -ms-grid-row: 1;
  }
  .gallery_custom01_con:nth-child(4) {
    -ms-grid-column: 7;
    -ms-grid-row: 1;
  }
  .gallery_custom01_con:nth-child(5) {
    -ms-grid-column: 9;
    -ms-grid-row: 1;
  }
  .gallery_custom01_con:nth-child(6) {
    -ms-grid-column: 11;
    -ms-grid-row: 1;
  }
}


.gallery_custom02_con:not(:last-child) {
  margin-bottom: 3em;
}
.gallery_custom02_con figure {
  margin-bottom: 1em;
}
.gallery_custom02_con_text {
  text-align: center;
}
.gallery_custom02_con_text span {
  display: block;
}
.gallery_custom02_con_text .cat {
  color: #a5a5a5;
  font-size: 14px;
  font-size: 3.4635416667vw;
}
@media screen and (min-width: 577px) {
  .gallery_custom02_con_text .cat {
    font-size: 14px;
    font-size: 2.1875vw;
  }
}
@media screen and (min-width: 769px) {
  .gallery_custom02_con_text .cat {
    font-size: 14px;
  }
}
.gallery_custom02_con_text .name {
  font-size: 20px;
  font-size: 4.9479166667vw;
}
@media screen and (min-width: 577px) {
  .gallery_custom02_con_text .name {
    font-size: 20px;
    font-size: 3.125vw;
  }
}
@media screen and (min-width: 769px) {
  .gallery_custom02_con_text .name {
    font-size: 20px;
  }
}
.gallery_custom02_list {
  display: none;
}
.gallery_custom02 #pagination-area {
  width: 100%;
  margin-top: 7.5vmax;
}
@media screen and (min-width: 769px) {
  .gallery_custom02 {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
  }
  .gallery_custom02_con {
    width: calc(50% - 20px);
    margin-bottom: 40px;
  }
  .gallery_custom02_con a {
    position: relative;
  }
  .gallery_custom02_con .image_outer {
    position: relative;
    padding-bottom: 66%;
  }
  .gallery_custom02_con figure {
    margin: 0;
    position: absolute;
    width: 100%;
  }
  .gallery_custom02_con img {
    width: 100%;
  }
  .gallery_custom02_con_text {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.7);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  .gallery_custom02_con_text .cat {
    color: #fff;
  }
  .gallery_custom02_con_text .name {
    color: #fff;
  }
  .gallery_custom02_con:nth-child(odd) {
    margin-right: 20px;
  }
  .gallery_custom02_con:nth-child(even) {
    margin-left: 20px;
  }
  .gallery_custom02_con a:hover .gallery_custom02_con_text {
    opacity: 1;
  }
  .gallery_custom02 #pagination-area {
    margin-top: 80px;
  }
}


.category.gallery .gallery_shoptext{
    margin-top: 20px;
}
.category.gallery .gallery_shoptext span{
    display: block;
    text-align: center;
    line-height: 1.4;
}

.category.gallery #pagination-area span a{
    background: #fff;
    border: 1px solid #fff;
    color: inherit;
}
.category.gallery #pagination-area span.current-item{
    background: #fff;
    color: inherit;
}

.category.gallery .child-category-list{
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 100%;
    left: 0;
    width: 100%;
    background: var(--mainHover);
    border-radius: 0 0 3px 3px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    z-index: 9;
}
.category.gallery .child-category-list.active{
    padding: 15px;
    opacity: 1;
    pointer-events: all;
    position: relative
}
.category.gallery .child-category-list li{
    display: inline-block;
}
.category.gallery .child-category-list li a{
    display: inline-block;
    background: inherit;
    box-shadow: none;
    background: #fff;
    color: inherit;
    border-radius: 3px;
}
@media screen and (max-width:767px){
    .category.gallery .gallery_shoptext{
        margin-top: 0;
    }
    .category.gallery .child-category-list{
        height: 0;
        position: relative;
    }
    .category.gallery .child-category-list.active{
        height: auto;
    }
}