/*CSS Document*/

*{
    margin: 0;
    padding: 0;
}

html{
    -webkit-scroll-behavior: smooth;
    -moz-scroll-behavior: smooth;
    -ms-scroll-behavior: smooth;
    scroll-behavior: smooth;
}

a{
    text-decoration: none;
    color:#333;
}

/*ul,ol,li,dl,dt,dd{
    list-style-type: none;
}*/

table,th,td{
    border-collapse: collapse;
    border: 1px solid #000;
}

/*基本設定*/

body {
    font-size: 1.1em;
    color: #333;
    text-decoration: none;
    line-height: 1.5em;
    overflow-y: scroll;
    font-family: 'Noto Serif JP', 'Libre Baskerville', serif;

        display: flex;
        flex-direction: column;
        height: 100vh;
        min-height: 100vh;
    }

#page_top{
    width: 50px;
    height: 50px;
    position: fixed;
    right: 50px;
    bottom: -50px;
    background: #ccc;
    opacity: 0.6;
    border-radius: 50%;
}
#page_top a{
    position: relative;
    display: block;
    width: 50px;
    height: 50px;
    text-decoration: none;
    transition: 0.7s;
}
#page_top a::before{
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    content: '\f102';
    font-size: 25px;
    color: #fff;
    position: absolute;
    width: 25px;
    height: 25px;
    top: -5px;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    text-align: center;
}

#page_top a:hover{
    opacity: 0.3;
    transition: 0.7s;
    transform: rotateZ(360deg);
}

.mat1{
    margin-top: 1em;
}

/*汎用*/
.mab1{
    margin-bottom: 1em;
}

a.unl{
    text-decoration: underline;
}

.psmall{
    font-size: 80%;
}

.p-unb{
    text-decoration: underline;
    text-decoration-color: #30f;
    /*border-bottom: 2px solid #30f;*/
}
/*汎用*/

img{
    max-width: 100%;
}

.effect-fade {
    opacity : 0;
    transform : translate(0, 100px);
    transition : all 1s;
}

.effect-fade.effect-scroll {
    opacity : 1;
    transform : translate(0, 0);
}

@media screen and (min-width:768px){
    
    h2{
        text-align: center;
        padding: 2em 0 1em;
    }

    h3{
        text-align: center;
        margin: 0 0 1em;
        /*margin-top: 10vh;*/
    }
    
    header{
        height: 100vh;
        width: 100%;
        margin: 0 auto;
/*        background-image: url(../image/_MG_6060.jpg);
        background-size: contain;
        background-repeat: no-repeat;*/
        display: flex;
        justify-content: space-between;
    }
    
    header .bgbox{
        width: 50%;
        height:100vh;
        background-position:left center;
        background-size:auto;
        background-repeat: no-repeat;
        /*display: flex;*/
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    /*.bg{
        color: white;
        font-size: 100px;
        font-weight: bold;
        text-align: center;
    }*/
    
    header .box{
        width: 50%;
        height: 100vh;
    }
    
/*    header nav{
        position: fixed;
        top:0;
        right: 0;
        width: 100%;
        background-color: rgba(255,255,255,0.7);
        padding: 0;
        line-height: 3em;
        z-index: 2;
        text-shadow: 3px 3px 3px #fff;
        transition: .3s;
    }*/

    
    .clone-nav {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 2;
        width: 100%;
        transition: .3s;
        transform: translateY(-100%);
        background-color: rgba(255,255,255,0.7);
    }
    .is-show {
        transform: translateY(0);
}
    
    nav ul{
        /*margin-right: 1em;*/
        display: flex;
        justify-content: space-between;
        /*margin-top: 1em;*/
        line-height: 3em;
        list-style-type: none;
    }
    
    nav ul li{
        text-align: center;
        width: 25%;
        text-shadow: 2px 2px 2px #fff;
        font-weight: bold;
    }
    
    nav ul li a{
        position: relative;
        display: inline-block;
        width: 80%;
    }
    
    nav ul li a::after{
        position: absolute;
        bottom: -4px;
        left: 0;
        content: "";
        width: 100%;
        height: 2px;
        background: #333;
        transform: scale(0,1);
        transform-origin: left top;
        transition: transform .3s;
    }
    
    nav ul li a:hover{
        color:#fcf;
        transition: 1s;
    }
    
    nav ul li a:hover::after{
        transform: scale(1);
        transition-duration: 1.5s;
    }
    
    header .box h1{
        margin-top: 40vh;
        text-align: center;
    }
    
    main{
        /*height: 100vh;*/
        width: 100%;
        margin: 0 auto;
    }
    
    main span{
        width: 100%;
        /*height: 4em;
        display: block;
        background-color: #ccc;*/
    }
    
    main nav ul li{
        text-align: center;
        width: 8em;
    }
    
    main nav ul li a{
        padding: 1em;
        color: #333;
        transition: 1s;
    }
    
    main nav ul li a:hover{
        opacity: 0.3;
    }
    
    .fullscreenmenu{
        display: none;
    }
    
    main #about{
        padding-top: 1em;
        height: 100vh;
        text-align: center;
    }
    
    main #profile{
        padding-top: 1em;
        height: 100vh;
        text-align: center;
    }
    
    main #profile p{
        margin-top: 1em;
    }
    
    /*main section p:first-child{
        margin-top: 0;
    }*/
    
    main #work{
        /*height: 100vh;*/
    }
    
    main #work .box2{
        width: 90%;
        margin: 0 auto;
        /*display: flex;
        justify-content: space-between;*/
    }
    
    main #work .box2 .box3{
        width: 100%;
        /*background-color: #eee;*/
        /*height:70vh;*/
        text-align: center;
        margin-bottom: 2em;
        padding-bottom: 0.5em;
        border-bottom: 1px solid #eee;
    }
    
    main #work .box3 .box4{
        width: 100%;
        margin: 2em auto 0;
        text-align: center;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    /*main #work .box2 .box3 h3{
        transform: rotate(270deg);
        float: left;
    }*/
    
    main #work .box2 .box3 .box4 figure .imgwrap{
        overflow: hidden;
        width: 587px;
        max-width: 100%;
        /*height: 289px;
        max-height: 100%;*/
        margin: 0 auto 0.5em;
        border: 1px solid #333;
        box-sizing: border-box;
    }
    
    main #work .box2 .box3 .box4 figure .imgwrap img{
        /*width: 100%;
        max-width: 100%;
        border: 1px solid #333;
        margin: 0 auto 0.5em;
        transition: 1s;*/
        display: block;
        transition-duration: 0.5s;
    }
    
    main #work .box2 .box3 .box4 figure .imgwrap img:hover{
        opacity: 0.7;
        /*width: 80%;
        transition: 1s;*/
        transform: scale(1.3);
        transition-duration: 0.5s;
    }
    
    main #work .box2 .box3 .box4 figure{
        margin-bottom: 1em;
        width: 49%;
    }
    
    main #work .box2 .box3 .box4 ul{
        width: 45%;
        text-align: left;
        list-style: disc !important;
    }
    
    main #work .box2 .box3 .box4 ul li{
        list-style: disc !important;
    }
    
    main #photo{
        height: 100vh;
        width: 90%;
        margin: 0 auto;
    }
    
    main #photo p{
        text-align: center;
    }
    
    main #photo .box2{
        width: 100%;
        /*display: flex;
        flex-wrap: wrap;*/
        /*justify-content: space-around;*/
    }
    
    main #photo .box2 .box3{
        max-width: 100%;
        margin: 0 auto 2em;
    }
    
    main #photo .box2 .box3 br{
        display: none;
    }
    
    main #photo .box2 .box3 .sps{
        width: 100%;
        height: 200px;
        margin: 0 auto;
        display: flex;
        flex-basis: auto;
        align-items: center;
    }
    
    main #photo .box2 .box3 .sps img{
        width: 134px;
        height: auto;
        transition: 1s;
        vertical-align: center;
    }
    
    main #photo .box2 .box3 .sps img:hover{
        opacity: 0.6;
        transition: 1s;
        width: 150px;
        overflow: hidden;
    }
    
    main #photo .box2 .box3 .hiddenbox{
        width: 141px;
        height: 200px;
        overflow: hidden;
        margin: 0 auto;
        border: 1px solid #333;
    }
    
    main #photo .box2 .box3 .hiddenbox img{
        width: 141px;
        height: 200;
        transition: 1s;
        vertical-align: middle;
    }
    
    main #photo .box2 .box3 .hiddenbox img:hover{
        opacity: 0.3;
        transition: 1s;
    }
    
    /*main #photo .box2::after{
        display: block;
        content: "";
        width: 1000px;
        min-width: 134px;
        height: 200px;
        background-color: #c3f;
        border: 1px dashed #faa;
        box-sizing: border-box;
    }*/
    
    main #contact{
        height: 100vh;
        width: 90%;
        margin: 0 auto;
    }
    
    main #contact form{
        margin-top: 10vh;
    }

}

@media screen and (max-width:767px){
    
    body{
        /*background-image: url(../image/_MG_6060.jpg);
        -moz-background-color:rgba(255,255,255,0.8);
        background-color:rgba(255,255,255,0.8);
        -moz-background-blend-mode:lighten;
        background-blend-mode:lighten;
        background-attachment: fixed;
        background-repeat: no-repeat;
        background-size:cover;
        color:#333;*/
    }
    
    /*#bg{
        width: 100vw;
        height: 100vh;
        background-image: url(../image/_MG_6060.jpg);
        background-color: rgba(188,255,255,0.7);
        background-position: center;
        background-attachment: fixed;
        background-size: cover;
        opacity: 0.7;
        z-index: -1;
    }*/
    
    h2{
        text-align: center;
        padding: 1em 0;
    }

    h3{
        text-align: center;
        margin: 0 0 1em;
        /*margin-top: 10vh;*/
    }
    
    /*img{
        width: 100%;
        height: auto;
    }*/
    
    header{
        height: 100vh;
        width: 96%;
        margin: 0 auto;
    }
    
    header .bgbox{
        display: none;
    }
    
    header .box{
        width: 100%;
    }
    
    header h1{
        text-align: center;
        margin-top: 50vh;
    }
    
    main{
        width: 96%;
        margin: 0 auto;
    }
    main #contact form{
        margin-top: 5vh;
    }
    
    .box #pcmenu{
        display: none;
    }
    
    .clone-nav{
        display: none;
    }
    
    /*ハンバーガーメニュー*/
    .menu,
    .menu span {
        display: inline-block;
        -webkit-transition:all .4s;
        transition: all .4s;
        box-sizing: border-box;
    }

    .menu{
        position: fixed;
        top: 20px;
        right: 25px;
        width: 35px;
        height: 22px;
        background-color:rgba(255,255,255,0);
        z-index: 10;
    }

    .menu span{
        position: absolute;
        left: 0;
        width: 100%;
        /*height: 2px;*/
        /*border-color: #333;*/
        background-color: #333;
        z-index: 100;
    }

    .menu span:nth-of-type(1){
        top: 0px;
        height:2px;
    }

    .menu span:nth-of-type(2){
        top: 10px;
        height: 2px;
    }

    .menu span:nth-of-type(3){
        bottom: 0px;
        height: 2px;
    }
    
    .menu p{
        margin-top: 18px;
        font-size: 13px;
        transition: 1s;
    }

    .menu.active span:nth-of-type(1){
        -webkit-transform: translateY(10px) rotate(45deg);
        transform: translateY(10px) rotate(45deg);
    }

    .menu.active span:nth-of-type(2){
        opacity: 0;
    }

    .menu.active span:nth-of-type(3){
        -webkit-transform: translateY(-10px) rotate(-45deg);
        transform: translateY(-10px) rotate(-45deg);
    }
    
    .menu.active p{
        opacity: 0;
        transition: .4s;
    }

    #nav{
        position: fixed;
        top: 0;
        right: 0;
        z-index: 10;
        width: 100%;
        height: 100vh;
        opacity: 0;
        /*background-color: #fff;*/
        transition: all 0.3s ease-in-out;
        visibility:hidden;

    }

    #nav.active{
        right: 0;
        opacity: 0.9;
        -moz-transform: translateX(0);
        -webkit-transform: translateX(0);
        transform: translateX(0);
        visibility: visible;
        background-color:rgba(255,255,255,0.9);
        text-align: center;
        color: #333;
        height: 100%;
    }

    #nav ul{
        margin:0;
        padding:0;
    }

    #nav ul li{
        list-style-type: none;
    }

    /*#nav ul li:last-child{
        margin-bottom: 50px;
    }*/

    #nav ul li a{
        display: block;
        padding: 2.5% 0;
        transition: all 0.2s ease-in-out;
        text-align: center;
        text-decoration: none;
        color: #333;
        border-bottom: 1px solid #ccc;
        width: 200px;
        margin: 0 auto;
    }
    #nav ul li a:hover{
        color: #f65d5d;
    }

    /*ハンバーガーメニュー*/
    
    main #work .box2 .box3 .box4 figure img{
        border: 1px solid #333;
        box-sizing: border-box;
    }
    
    main #work .box2 .box3 .box4 figure{
        text-align: center;
        margin-bottom: 0.5em;
    }
    
    main #work .box2 .box3 .box4 ul{
        padding-left: 1.5em;
        list-style-type: circle !important;
        /*margin-bottom: 0.3em;*/
    }
    
    #about{
        padding-top: 1em;
        height: 100vh;
        /*text-align: center;*/
    }
    
    #about p{
        margin-bottom: 1em;
    }
    
    #about p.sp_non{
        display: none;
    }
    
    #about p:last-child{
        margin-bottom: 0;
    }
    
    #profile{
        text-align: center;
        margin-bottom: 5em;
        padding-bottom: 5em;
        height:100vh;
    }
    
    #contact{
        height: 100vh;
        /*padding-bottom: 30vh;*/
        text-align: center;
    }
    
    #profile p{
        margin-bottom: 1em;
    }
    
    .box3{
        margin-bottom: 1em;
    }
    
    /*.box4{
        margin-bottom: 2em;
    }*/
    
    main #work .box2 .box3{
        width: 100%;
        /*background-color: #eee;*/
        /*height:70vh;*/
        /*text-align: center;*/
        /*margin-bottom: 2em;*/
        padding-bottom: 0.5em;
        border-bottom: 1px solid #eee;
    }
    
    main #photo{
        /*height: 100vh;*/
    }
    
    main #photo p{
        text-align: center;
    }
    
    main #photo .box2 .box3{
        width: 100%;
        margin: 0 auto;
        margin-bottom: 1.5em;
    }
    
    main #photo .box2 .box3 .sps,.hiddenbox{
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        flex-basis: auto;
        align-items: center;
    }
    
    main #photo .box2 .box3 .sps a{
        width: 20%;
        /*height: auto;*/
        vertical-align: middle;
    }
    
    main #photo .box2 .box3 .hiddenbox a{
        display: inline-block;
        width: 20%;
        max-width: auto;
        height: 100px;
        max-height: auto;
        box-sizing: border-box;
        overflow: hidden;
        object-fit:cover;
        object-position: center center;
    }
    
    main #photo .box2 .box3 .hiddenbox img{
        display: inline-block;
        height: 100%;
        width: 100%;
        object-fit:cover;
        object-position: center center;
    }
    
    main #photo .box2 .box3 img.bdr{
        border: 1px solid #333;
        box-sizing: border-box;
    }
    
    main #contact{
        padding-bottom: 1em;
    }
}

/*--------------------------------------------------------------------------------------*/
main #success,#error{
    display: none;
}

main #contact .frm{
    display: block;
    width: 100%;
    margin: 0 auto 1em;
    text-align: center;
}

/*main .contact dl{
text-align: center;
}*/

main #contact input[type="text"],input[type="email"],textarea{
    border:none;
    appearance: none;
    border-bottom: 1px solid #ccc;
    padding: 0.5em;
    margin-bottom: 0.5em;
}

main #contact input[type="text"]:hover,input[type="email"]:hover,textarea:hover{
    appearance: none;
    border-bottom: 1px solid #fc3;
    padding: 0.5em;
    margin-bottom: 0.5em;
    transition: 0.7s;
}

main #contact input[type="text"]:focus,input[type="email"]:focus,textarea:focus{
    appearance: none;
    border-bottom: 2px solid #6f9;
    transition: 1s;
}

main #contact input[type="text"]::placeholder,input[type="email"]::placeholder,textarea::placeholder{
    font-size: 1.1em;
    font-family: 'Noto Serif JP', 'Libre Baskerville', serif;
    text-align: center;
}

main #contact input[type="reset"],input[type="submit"]{
    padding: 0.7em;
    background: linear-gradient(0deg,#fff,#ccc,#fff);
    border: none;
    border-radius: 20%;
    font-family: 'Noto Serif JP', 'Libre Baskerville', serif;
    transition: 0.3s;
}

main #contact input[type="reset"]:active,input[type="submit"]:active{
    background: linear-gradient(0deg,#ccc,#fff,#ccc);
    /*padding: 1.1em;*/
    border-radius: 20%;
    transition: 0.3s;
}

main #contact input[type="reset"]{
    margin-right: 2em;
}

main #success p{
    text-align: center;
}

footer{
    width: 100%;
    margin-top: auto;
    text-align: center;
    font-size: 0.9em;
}