
html,body{
    width: 100%;
    margin: 0;
    padding: 0;
    background: #ffffff;
}

img{
    width: 100%;
    height: auto;
    vertical-align: bottom;
}

ul{
    margin: 0;
    padding: 0;
    list-style-type: none;
}
li{
    margin: 0;
    padding: 0;
}

.photo_wrap {
    width: 100%;
    padding: 6px;
    box-sizing: border-box;
    background: #000000;
}

.photo_list{
    display: grid;
    grid-template-columns: calc(25% - 6px);
    gap: 6px;
    box-sizing: border-box;
}

.photo_list li{
    position: relative;
    display: block;
    text-align: center;
    color: #fff;
    overflow: hidden;
    transition: .2s;
}
@media screen and (min-width: 769px) {
.photo_list li:hover{
    cursor: pointer;
    box-shadow: 0 0 26px 0 rgb(0 0 0);
}
}

#contents_area .photo_list li a:hover{
    opacity: 1;
}

@media screen and (min-width: 769px) {
    .photo_list li.top_left{
        transform-origin: top left;
    }
    .photo_list li.top_center{
        transform-origin: top center;
    }
    .photo_list li.top_right{
        transform-origin: top right;
    }
    .photo_list li.left_center{
        transform-origin: left center;
    }
    .photo_list li.right_center{
        transform-origin: right center;
    }
    .photo_list li.bottom_left{
        transform-origin: bottom left;
    }
    .photo_list li.bottom_center{
        transform-origin: bottom center;
    }
    .photo_list li.bottom_right{
        transform-origin: bottom right;
    }
    .photo_list li:hover{
        transform: scale(1.1);
        z-index: 3;
    }
    .photo_list li:hover:first-child,
    .photo_list li.big:hover{
        transform: scale(1.05);
    }

    .photo_list li:hover:nth-child(4){
        transform: scale(1);
        box-shadow: none;
    }

    .photo_list li:nth-child(1){
        grid-row: 1 / 3; /*縦*/
        grid-column: 1 / 3; /*横*/
    }

    .photo_list li:nth-child(2){
        grid-row: 1 / 2;
        grid-column: 3 / 4;
    }

    .photo_list li:nth-child(3){
        grid-row: 1 / 3;
        grid-column: 4 / 5;
    }

    .photo_list li:nth-child(4){
        grid-row: 2 / 4;
        grid-column: 3 / 4;
        background-color: #ad1e24;
        color: #ffffff;
        z-index: 0;
    }

    .photo_list li:hover:nth-child(4){
        cursor: default;
    }

    .photo_list li:nth-child(5){
        grid-row: 3 / 4;
        grid-column: 4 / 5;
    }
    .photo_list li:nth-child(6){
        grid-row: 3 / 4;
        grid-column: 1 / 2;
    }
    .photo_list li:nth-child(7){
        grid-row: 3 / 5;
        grid-column: 2 / 3;
    }
    .photo_list li:nth-child(8){
        grid-row: 4 / 6; /*縦*/
        grid-column: 1 / 2; /*横*/
    }
    .photo_list li:nth-child(9){
        grid-row: 5 / 7; /*縦*/
        grid-column: 2 / 3; /*横*/
    }
    .photo_list li:nth-child(10){
        grid-row: 6 / 7; /*縦*/
        grid-column: 1 / 2; /*横*/
    }
    .photo_list li:nth-child(11){
        grid-row: 4 / 6; /*縦*/
        grid-column: 3 / 5; /*横*/
    }
    .photo_list li:nth-child(12){
        grid-row: 6 / 7; /*縦*/
        grid-column: 3 / 4; /*横*/
    }
    .photo_list li:nth-child(13){
        grid-row: 6 / 7; /*縦*/
        grid-column: 4 / 5; /*横*/
    }
    .photo_list li:nth-child(14){
        grid-row: 7 / 8; /*縦*/
        grid-column: 3 / 4; /*横*/
    }
    .photo_list li:nth-child(15){
        grid-row: 7 / 9; /*縦*/
        grid-column: 4 / 5; /*横*/
    }
    .photo_list li:nth-child(16){
        grid-row: 8 / 10; /*縦*/
        grid-column: 3 / 4; /*横*/
    }
    .photo_list li:nth-child(17){
        grid-row: 9 / 11; /*縦*/
        grid-column: 4 / 5; /*横*/
    }
    .photo_list li:nth-child(18){
        grid-row: 10 / 11; /*縦*/
        grid-column: 3 / 4; /*横*/
    }
    .photo_list li:nth-child(19){
        grid-row: 7 / 9; /*縦*/
        grid-column: 1 / 3; /*横*/
    }
    .photo_list li:nth-child(20){
        grid-row: 9 / 10; /*縦*/
        grid-column: 1 / 2; /*横*/
    }
    .photo_list li:nth-child(21){
        grid-row: 9 / 11; /*縦*/
        grid-column: 2 / 3; /*横*/
    }
    .photo_list li:nth-child(22){
        grid-row: 10 / 11; /*縦*/
        grid-column: 1 / 2; /*横*/
    }
}


@media screen and (max-width: 768px) {
    .photo_list{
        grid-template-columns: calc(50% - 3px);
    }

    .photo_list li:nth-child(1){
        grid-row: 1 / 2; /*縦*/
        grid-column: 1 / 3; /*横*/
    }

    .photo_list li:nth-child(2){
        grid-row: 2 / 3; /*縦*/
        grid-column: 1 / 2; /*横*/
    }

    .photo_list li:nth-child(3){
        grid-row: 3 / 5; /*縦*/
        grid-column: 1 / 2; /*横*/
    }

    .photo_list li:nth-child(4){
        grid-row: 2 / 4; /*縦*/
        grid-column: 2 / 3; /*横*/
    }
    .photo_list li:nth-child(5){
        grid-row: 4 / 5; /*縦*/
        grid-column: 2 / 3; /*横*/
    }
    .photo_list li:nth-child(6){
        grid-row: 5 / 6; /*縦*/
        grid-column: 1 / 2; /*横*/
    }
    .photo_list li:nth-child(7){
        grid-row: 5 / 7; /*縦*/
        grid-column: 2 / 3; /*横*/
    }
    .photo_list li:nth-child(8){
        grid-row: 6 / 8; /*縦*/
        grid-column: 1 / 2; /*横*/
    }
    .photo_list li:nth-child(9){
        grid-row: 7 / 9; /*縦*/
        grid-column: 2 / 3; /*横*/
    }
    .photo_list li:nth-child(10){
        grid-row: 8 / 9; /*縦*/
        grid-column: 1 / 2; /*横*/
    }
    .photo_list li:nth-child(11){
        grid-row: 9 / 10; /*縦*/
        grid-column: 1 / 3; /*横*/
    }
    .photo_list li:nth-child(12){
        grid-row: 10 / 11; /*縦*/
        grid-column: 1 / 2; /*横*/
    }
    .photo_list li:nth-child(13){
        grid-row: 10 / 11; /*縦*/
        grid-column: 2 / 3; /*横*/
    }
    .photo_list li:nth-child(14){
        grid-row: 11 / 12; /*縦*/
        grid-column: 1 / 2; /*横*/
    }
    .photo_list li:nth-child(15){
        grid-row: 11 / 13; /*縦*/
        grid-column: 2 / 3; /*横*/
    }
    .photo_list li:nth-child(16){
        grid-row: 12 / 14; /*縦*/
        grid-column: 1 / 2; /*横*/
    }
    .photo_list li:nth-child(17){
        grid-row: 13 / 15; /*縦*/
        grid-column: 2 / 3; /*横*/
    }
    .photo_list li:nth-child(18){
        grid-row: 14 / 15; /*縦*/
        grid-column: 1 / 2; /*横*/
    }
    .photo_list li:nth-child(19){
        grid-row: 15 / 16; /*縦*/
        grid-column: 1 / 3; /*横*/
    }
    .photo_list li:nth-child(20){
        grid-row: 16 / 17; /*縦*/
        grid-column: 1 / 2; /*横*/
    }
    .photo_list li:nth-child(21){
        grid-row: 16 / 18; /*縦*/
        grid-column: 2 / 3; /*横*/
    }
    .photo_list li:nth-child(22){
        grid-row: 17 / 18; /*縦*/
        grid-column: 1 / 2; /*横*/
    }
}

@media screen and (min-width: 769px) {

    .open_icon{
        width: 35px;
        position: absolute;
        top: 50%;
        left: 50%;
        opacity: 0;
        transform: translate(-50% , -50%);
        transition: .2s;
        filter: drop-shadow(0px 0px 5px rgb(0,0,0,0.6));
    }

    .photo_list li:hover .open_icon{
        opacity: 1;
    }

}

@media screen and (max-width: 768px) {

    .open_icon{
        display: none;
    }
    
}

/*/////////////////////////////////
//ボーダーアニメーション
/////////////////////////////////*/
@media screen and (min-width: 769px) {
  /* ボーダー */
  .border {
    position: absolute;
    display: block;
    width: 2px;
    height: 2px;
    background-color: #ac1e23;
    overflow: hidden;
    transition: .2s;
  }  
  /* 上ボーダー */
  .border.top {
    width: 100%;
    top: 0;
    left: 0;
    transform: translate3d(-100%, 0, 0);
  }
  /* 右ボーダー */
  .border.right {
    height: 100%;
    top: 0;
    right: 0;
    transform: translate3d(0, -100%, 0);
  }
  /* 下ボーダー */
  .border.bottom {
    width: 100%;
    right: 0;
    bottom: 0;
    transform: translate3d(100%, 0, 0);
  }
  /* 左ボーダー */
  .border.left {
    height: 100%;
    bottom: 0;
    left: 0;
    transform: translate3d(0, 100%, 0);
  }
  
  /* マウスオーバー */
  .photo_list li:hover .border {
    transform: translate3d(0, 0, 0);
    transition: .375s;
  }
}
@media screen and (max-width: 768px) {

    .border {
        display: none;
    }
    
}
/*/////////////////////////////////
//ボーダーアニメーション
/////////////////////////////////*/

/*/////////////////////////////////
//モーダル
/////////////////////////////////*/

#modal_wrap{
    overflow: hidden;
}

.works_modal_wrapper .works_modal_window{
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    right: 100vw;
    transition: .4s;
    transition-delay: 0s;
    z-index: -1;
}

.works_modal_wrapper.is_open .works_modal_mask{
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
}

.works_modal_wrapper.is_open .works_modal_window{
    right: 0;
    background: #000000;
    z-index: 99999;
    transition-delay: 0.3s;
}

@media screen and (min-width: 769px) {
    .works_modal_wrapper.is_open .works_modal_window:hover{
        cursor: pointer;
    }
}

@media screen and (max-width: 768px) {
    .works_modal_wrapper.is_open .works_modal_window{
        transition-delay: 0s;
    }
}

.works_modal_content{
    width: calc(100% - 180px);
    height: calc(100vh - 160px);
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50% , -50%);
}

.works_modal_content img{
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}

@media screen and (min-width: 769px) {
    .works_modal_content img:hover{
        cursor: default;
    }
}
@media screen and (max-width: 768px) {
    .works_modal_content{
        width: 100%;
        height: auto;
        padding: 0;
    }
}

.works_modal_close{
    position: absolute;
    top: 28px;
    right: 28px;
    width: 40px;
}

@media screen and (max-width: 768px) {
    .works_modal_close{
        top: 25%;
        right: 10px;
    }
}

.works_modal_close:hover{
    cursor: pointer;
}

/*/////////////////////////////////
//モーダル
/////////////////////////////////*/

.story_caution{
    padding: 20px;
    background-color: #000000;
}

.story_caution ul{
    max-width: 840px;
    margin: 0 auto;
}

.story_caution ul li{
    text-align: right;
    color: #fff;
}


@media screen and (min-width: 769px) {
#story_btm_link{
    padding: 60px 0;
    background-color: #000000;
}

#story_btm_link ul{
    width: 840px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

#story_btm_link ul li{
    width: 380px;
    padding: 0 20px;
}

#story_btm_link ul li img{
    width: 100%;
    height: auto;
}
}

@media screen and (max-width: 768px) {
#story_btm_link{
    padding: 2em 0 6em;
    background-color: #000000;
}

#story_btm_link ul{
    width: calc(100% - 1em);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

#story_btm_link ul li{
    width: 48%;
}

#story_btm_link ul li img{
    width: 100%;
    height: auto;
}
}
