.scrollOn header {
    border-bottom: solid 1px #ddd;
}

#works-list {
    margin-top: 70px;
}
#works-list a:hover{
    transition: all 0.2s;
        width: 100%;
        background-color: #bbbbbb87;
}

#works-list h2 {
    display: block;
    text-align: center;
    font-size: 1.8rem;
    letter-spacing: 4px;
    margin: 0px auto 50px;
    padding-top: 100px;
}
input {
    display: none;
}

label {
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    color: #111;
    margin: 10px;
    display: inline-block;
}
input[type=checkbox]:checked+span {
    background: #5a5a5a;
    color: #fff;
}

label span {
    border: 1px solid #898989;
    padding: .5em;
    display: block;
}

/* .flex-contents {
    animation-name: fadein;
    animation-duration: 2s;
    transition: all 0.2s;
} */


#works {
    transition: all 0.2s;
    text-align: center;
}


/* @keyframes fadein {
    from {
        opacity: 0;
        transform: translateY(0px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
} */
.bcn{
    max-width: 1070px;
    margin: 30px auto 0;
    color: #808080;
}
.bcn a{
    color: #808080;
}
.bcn .home{
    color: #808080;
}
.bcn br{
    display: none;
}
.search {
    text-align: center;
}
span.post.post-post.current-item {
    display: inline-flex;
}
.search .checkbox {
    width: auto;
    margin: 0 auto;
    display: inline-block;
}

.search .checkbox .condition-title {
    padding: 10px 10px;
    background-color: #F7F7F7;
    color: #333333;
    margin-top: 20px;
}

.search .checkbox .condition {
    padding: 17px;
    max-width: 1040px;
    justify-content: flex-start;
    display: flex;
    flex-wrap: wrap;
}

.search .checkbox .condition label {
    margin-right: 10px;
    min-width: 180px;
}

.search .submit-button {
    width: 200px;
    background-color: #F7F7F7;
    border: none;
    color: #353535;
    display: block;
    margin: 10px auto 50px;
    outline: none;
}

#search-result .content-wrap{
    margin: 50px auto;
    padding: 50px 0 0;
}
.category-bg{
    width: 100%;
    background: url(../img/category-bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}
#category{
    justify-content: space-between!important;
    padding: 100px!important;
}
#category label{
    min-width: 300px;
    background-color: #ffffff85;
}
#category label span{
    border: unset;
}

#works-list .wrap{
    padding: 17px;
    max-width: 800px;
    justify-content: flex-start;
    display: flex;
    flex-wrap: wrap;
    margin: auto;
}
#works-list .wrap ul {
    max-width: 800px;
    margin: 50px auto 0;
    position: relative;
}
#works-list .wrap ul:before {
    content: "";
    position: absolute;
    background: url(../img/keyword.svg);
    width: 100px;
    height: 50px;
    left: -135px;
    top: 10px;
    background-repeat: no-repeat;
}
#works-list .wrap li{
    margin-right: 10px;
    min-width: 150px;
    width: calc(88.5%/4);
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    color: #111;
    margin: 10px;
    display: inline-block;
}
#works-list .wrap a{
    border: 1px solid #898989;
    padding: 0.5em;
    display: block;
    box-sizing: border-box;
}
#works-list .wrap p{
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 15px;
}
#works-list .wrap p>a {
    width: 10%;
    margin-left: auto;
    border-radius: 15px;
}
#category article{
    min-width: 300px;
    background-color: #ffffff85;
    margin: 0 10px;
}
#category article a{
        border: unset!important;
        text-align: center;
        padding: 1em!important;
        font-size: 1rem;
        letter-spacing: 5px;
        font-weight: 600;
}


.pnavi{
    display: inline-block;
    max-width: 1040px;
    margin: -50px auto 50px;
}
.pnavi .page-nav{
    display: flex;
}
.pnavi .current span{
        background-color: #d7d0c6;
        color: #fff;
        font-size: 1rem;
        font-family: system-ui;
        padding: 5px 10px;
        margin: 0px 5px;
}
.pnavi .page-nav a{
        background-color: #f0f0eb;
        color: #595757;
        font-size: 1rem;
        font-family: system-ui;
        padding: 5px 10px;
        margin: 0 5px;
}

/*ーーーーーーーーーーーーーーーーディテール部分ーーーーーーーーーーーーーーーー*/

#work-detail {
    margin-top: 70px;
}
#work-detail .wrap{
    max-width: 1040px;
    margin: auto;
}
#work-detail h2{
    display: block;
    text-align: center;
    font-size: 1.6rem;
    letter-spacing: 2px;
    margin: 0px auto 30px;
    padding-top: 100px;
    padding-bottom: 30px;
    line-height: 35px;
    border-bottom: solid 1px #d7d0c6;
}
.detail-concept-wrap,
.detail-outline-wrap,
.detail-tag-wrap{
    padding: 17px;
    max-width: 1040px;
    justify-content: flex-start;
    margin: auto;
    position: relative;
    margin-top: 50px;
    border-top: solid 1px;
    padding-top: 100px;
}
.detail-concept-wrap:after {
    content: "";
    position: absolute;
    background: url(../img/concept.svg);
    width: 100px;
    height: 50px;
    left: 30px;
    top: 50px;
    background-repeat: no-repeat;
}
.detail-concept-wrap .wrap{
    width: 70%;
}
.detail-concept-wrap h3 {
    display: inline-block;
    padding-bottom: 20px;
    font-size: 1rem;
}
.detail-concept-wrap p {
    line-height: 25px;
    letter-spacing: 2px;
}

.detail-outline-wrap dl{
    display: flex;
    flex-wrap: wrap;
    /* border: solid 1px; */
}
.detail-outline-wrap dt {
    width: 15%;
    background-color: #f0f0eb;
    text-align: center;
    padding: 20px 10px;
    font-weight: bold;
    box-sizing: border-box;
    margin-bottom: 10px;
}
.detail-outline-wrap dd {
    width: 35%;
    padding: 20px;
    box-sizing: border-box;
}
.detail-outline-wrap dt:nth-child(-n+3) {
    /* border-bottom: solid 1px; */
}
.detail-outline-wrap dd:nth-child(-n+4) {
    /* border-bottom: solid 1px; */
}
.detail-outline-wrap .wrap{
    width: 80%;
}

.detail-outline-wrap:after {
    content: "";
    position: absolute;
    background: url(../img/outline.svg);
    width: 100px;
    height: 50px;
    left: 30px;
    top: 50px;
    background-repeat: no-repeat;
}
.detail-tag-wrap:after {
    content: "";
    position: absolute;
    background: url(../img/keyword.svg);
    width: 120px;
    height: 50px;
    left: 30px;
    top: 50px;
    background-repeat: no-repeat;
}
.detail-tag-wrap .wrap{
    display: flex;
    flex-wrap: wrap;
    width: 80%;
}
.detail-tag-wrap a{
    margin-right: 10px;
        min-width: 150px;
        width: calc(82%/4);
        text-align: center;
        cursor: pointer;
        /* font-size: 14px; */
        color: #111;
        margin: 10px;
        display: inline-block;
    border: 1px solid #898989;
        padding: 0.5em;
        display: block;
}

#photo {
    overflow: hidden;
    padding-top: 50px;
    /* border-top: solid 1px #d7d0c6; */
    padding-bottom: s0px;
    margin-bottom: 50px;
}

#photo figcaption{
    text-align: center;
    margin: 10px auto;
}

#photo .photo-wrap {
    max-width: 800px;
    width: 100%;
    margin: 0 auto 30px;
}

#photo .choice-btn {
    width: 80%;
    margin: 0 auto;
}

#photo img.upper {
    height: 500px;
    object-fit: fill;
}

#photo img.under {
    height: 100px;
    object-fit: cover;
}

/*画像の横幅を100%にしてレスポンシブ化*/
#photo img {
    width: 100%;
    height: auto;
    vertical-align: bottom;
    /*画像の下にできる余白を削除*/
}
#photo .slick-initialized .slick-slide{
    padding: 0 10px;
}

/*メイン画像下に余白をつける*/
#photo .gallery {
    margin: 0 0 30px 0;
}

#photo .gallery li {
    list-style: none;
}

/*矢印の設定*/

/*戻る、次へ矢印の位置*/
#photo .slick-prev,
#photo .slick-next {
    position: absolute;
    /*絶対配置にする*/
    z-index: 3;
    top: 35%;
    height: 30px;
    width: 30px;
    cursor: pointer;
}

#photo .slick-next:before {
    content: '' !important;
    width: 10px;
    height: 10px;
    border-top: solid 2px #fff;
    border-right: solid 2px #fff;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    position: absolute;
    background-repeat: no-repeat;
    z-index: 2;
    top: 32%;
    left: 6px;
}
#photo .slick-next::after {
    content: '';
    width: 30px;
    height: 30px;
    background: #d7d0c6;
    border-radius: 0;
    position: absolute;
}
#photo .slick-prev:before {
    content: '' !important;
    width: 10px;
    height: 10px;
    border-top: solid 2px #fff;
    border-right: solid 2px #fff;
    -webkit-transform: rotate(-135deg);
    transform: rotate(-135deg);
    position: absolute;
    background-repeat: no-repeat;
    z-index: 2;
    top: 32%;
    right: 6px;
}
#photo .slick-prev::after {
    content: '';
    width: 30px;
    height: 30px;
    background: #d7d0c6;
    border-radius: 0;
    position: absolute;
}

#photo .slick-prev {
    /*戻る矢印の位置と形状*/
    left: -11%;
}

#photo .slick-next {
    /*次へ矢印の位置と形状*/
    right: -11%;
}

/*選択するサムネイル画像の設定*/

#photo .choice-btn li {
    cursor: pointer;
    outline: none;
    list-style: none;
    padding: 0 10px;
}

#photo .choice-btn li img {
    opacity: 0.7;
    /*選択されていないものは透過40%*/
}

#photo .choice-btn li.slick-current img {
    opacity: 1;
    /*選択されているものは透過しない*/
}

#photo .choice-btn figcaption {
    display: none;
}

.link-flex {
    max-width: 1040px;
    margin: 80px auto 80px;
    display: flex;
    justify-content: space-between;
}

.link-flex .prev,
.link-flex .next {
    /* background-color: #d7d0c6; */
    font-weight: bold;
    font-size: 13px;
    font-family: sans-serif;
    border: solid 1px #898989;
    border-radius: 30px;
    position: relative;
}
.link-flex .prev{
    left: 20px;
}
.link-flex .prev{
    right: 20px;
}
.link-flex .prev:before {
    content: "";
    position: absolute;
    width: 30px;
    border-bottom: solid 1px #898989;
    right: -20px;
    top: 50%;
    height: .1px;
    transition: all 0.2s ease-in-out;
}

.link-flex .prev:after {
    content: "";
    width: 8px;
    height: 1px;
    background-color: #898989;
    position: absolute;
    right: -28px;
    top: 50%;
    margin-top: 3px;
    transform: rotate(35deg) translateX(-100%);
    z-index: 22;
    transition: all 0.2s ease-in-out;
}

.link-flex .prev:hover:before {
    margin-right: -5px;
}
.link-flex .prev:hover:after {
    margin-right: -5px;
}

.link-flex .next:before {
    content: "";
    position: absolute;
    width: 30px;
    border-bottom: solid 1px #898989;
    left: -20px;
    top: 50%;
    height: .1px;
    transition: all 0.2s ease-in-out;
}

.link-flex .next:after {
    content: "";
    width: 8px;
    height: 1px;
    background-color: #898989;
    position: absolute;
    left: -27px;
    top: 50%;
    margin-top: 3px;
    transform: rotate(135deg) translateX(-100%);
    z-index: 22;
    transition: all 0.2s ease-in-out;
}

.link-flex .next:hover:before {
    margin-left: -5px;
}

.link-flex .next:hover:after {
    margin-left: -5px;
}

.link-flex .prev a,
.link-flex .next a {
    color: #231815;
    font-weight: 100;
    padding: 5px 20px;
    display: block;
}

.link-flex .list_btn {
    box-sizing: border-box;
}
.link-flex .list_btn a{
    border:solid 1px #898989;
    border-radius: 30px;
    padding: 5px 20px;
    display: block;
    font-size: 13px;
}

.link-flex .empty {
    width: 85px;
}
.top-button{
  position: relative;
  text-align: center;
  margin: 100px auto 50px;
  height: 50px;
}
.top-button a{
  display: block;
  height: 50px;
}
.top-button .arrow{
  line-height: 50px;
      font-family: revert;
        letter-spacing: 3px;
        font-weight: bold;
        font-size: .9rem;
}
.top-button .arrow:before{
  position: absolute;
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid #000;
  border-right: 2px solid #000;
  transform: rotate(-45deg);
  margin-top: 5px;
  left: 0;
  right: 0;
  top: 5px;
  margin: auto;
}
@media screen and (max-width: 1024px) {
    #photo img.upper {
        height: 450px;
    }
}

@media screen and (max-width: 768px) {
    #photo .slick-next {
        right: -17%;
    }
}

@media screen and (max-width: 767px) {
    #works-list h2 {
        padding-top: 70px;
        font-size: 1.4rem;
    }
    #category {
        padding: 30px !important;
    }
    .bcn {
        width: 85%;
    }
    #category article {
        margin: 10px;
    }
    #category article a {
        font-size: .8rem!important;
    }
    #works-list .wrap{
        padding: 50px 30px 0;
    }
    #works-list .wrap ul {
        justify-content: space-between;
        margin: 50px auto 0px;
        flex-wrap: wrap;
        display: flex;
    }
    #works-list .wrap ul:before {
        left: 0;
        top: -40px;
    }
    #works-list .wrap li {
        width: calc(85%/3);
        min-width: 100px;
        margin: 5px 2px;
        font-size: 12px;
    }
    #works-list .wrap a {
        font-size: .6rem;
    }
    #works-list .wrap p>a{
        width: 25%;
    }
    #works .flex-contents {
        width: 100%!important;
        margin-right: 0!important;
    }
    #works .flex-contents img {
        height: auto!important;
    }

    /*----ディテール----*/
    #work-detail h2{
        padding-top: 70px;
        font-size: 1.1rem;
        line-height: 30px;
        padding-left: unset;
        width: 80%;
    }
    #photo .photo-wrap {
        width: 80%;
    }

    #photo .gallery {
        margin: 0 0 10px 0;
            right: 0;
                left: 0;
                position: relative;
    }

    #photo .slick-prev,
    #photo .slick-next {
        /* width: 40px; */
    }

    #photo .slick-next:before {
        background-size: 10vw;
    }

    #photo .slick-prev:before {
        background-size: 10vw;
    }

    #photo .slick-prev {
        /*戻る矢印の位置と形状*/
        left: -20%;
    }

    #photo .slick-next {
        /*次へ矢印の位置と形状*/
        right: -20%;
    }

    #photo .choice-btn li {
        padding: 0 2px;
    }

    #photo img.upper {
        height: 300px;
        object-fit: contain;
    }
    .detail-concept-wrap h3 {
        line-height: 30px;
    }
    .detail-concept-wrap p {
        line-height: 20px;
        letter-spacing: 1px;
    }
    .detail-outline-wrap .wrap{
        width: 90%;
    }
    .detail-outline-wrap dt{
        width: 25%;
        padding: 10px;
                line-height: 18px;
    }
    .detail-outline-wrap dd{
        width: 75%;
        padding: 10px;
                align-content: space-around;
        margin-bottom: 10px;

    }
    .detail-outline-wrap dt:nth-child(-n+6){
        /* border-bottom: solid 1px; */
    }
    .detail-outline-wrap dd:nth-child(-n+7) {
        /* border-bottom: solid 1px; */
    }
    .detail-tag-wrap a{
        width: calc(85%/3);
        min-width: 100px;
        margin: 5px;
        font-size: 12px;
        box-sizing: border-box;
    }
    .link-flex{
        width: 80%;
    }


}
