@charset "UTF-8";

html{
    font-size: 100%;
}

body{
    color: #707070;
    font-family: sans-serif;
}

img{
    max-width: 100%;
    vertical-align: bottom;
}

li{
    text-align: left;
    font-size: 14px;
    list-style: none;
}

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

a:hover{
    opacity: 0.7;
}

.wrapper{
    max-width: 1000px;
    padding: 0 20px;
    margin: 0 auto;
}

/*ヘッダー*/
#header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 35px;
    padding-bottom: 35px;
}

#header .logo{
    max-width: 190px;
    line-height: 0;
}

#header .navi{
    display: flex;
    align-items: center;
    padding-left: 0;
}

#header .navi li{
    font-size: 14px;
    margin-left: 40px;
}

/*メイン*/
.mainvisual{
    margin-bottom: 80px;
}

.mainvisual img{
    width: 100%;
}

/*プロフィール*/
#profile{
    scroll-margin-top: 76px;
    padding-bottom: 40px;
    text-align: center;
    border-bottom: solid 1px #CCC;
    box-sizing: border-box;
}

#profile h2{
    margin-bottom: 40px;
}

#profile .text{
    font-size: 14px;
}

/*実績*/
#achievement{
    scroll-margin-top: 76px;
    margin-top: 40px;
    padding-bottom: 40px;
    border-bottom: solid 1px #CCC;
}

#achievement h2{
    text-align: center;
    margin-bottom: 40px;
}

.flex{
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 20px;
}

.content{
    width: 50%;
    border-radius: 10px;
    opacity: 0;
    padding: 2% 5%;
    box-sizing: border-box;
    border: solid 1px #CCC;
    margin: 0 auto;
}

.slide_left{
    animation: slide_left 0.5s ease-out 0s 1 forwards;
}

.slide_right{
    animation: slide_right 0.5s ease-out 1 forwards;
}

.slide_left{
    animation: slide_left 0.5s ease-out 0s 1 forwards;
}

/*スライドインアニメーション　左から*/
@keyframes slide_left{
    0%{
        transform: translateX(-50%);
    }

    100%{
        transform: translateX(0);
        opacity: 1;
    }
}

/*スライドインアニメーション　右から*/
@keyframes slide_right{
    0%{
        transform: translateX(50%);
    }

    100%{
        transform: translateX(0);
        opacity: 1;
    }
}

.content_box{
    display: inline-block;
}

.content_box ul {
    padding-left: 0;
}

.content_box .title{
    font-weight: bold;
}

.content_box .skill{
    font-size: 12px;
}

/*ポートフォリオ*/
#portfolio{
    scroll-margin-top: 76px;
    margin-top: 40px;
    padding-bottom: 40px;
    text-align: center;
    border-bottom: solid 1px #CCC;
}

#portfolio h2{
    margin-bottom: 40px;
}

#portfolio .portfolio_list{
    display: flex;
    flex-wrap: wrap;
}
 
#portfolio .portfolio_list li{
    width: 28%;
    margin: 0 6% 2% 0;
    cursor: pointer;
    list-style: none;
}

#portfolio .portfolio_list li:nth-child(3n){
    margin-right: 0;
}

#portfolio .portfolio_text_sub{
    font-size: 12px;
}


/*お問い合わせ*/
#contact{
    scroll-margin-top: 76px;
    margin-top: 40px;
    padding-bottom: 40px;
    border-bottom: solid 1px #CCC;
    box-sizing: border-box;
}

input[type="text"],
input[type="email"],
textarea {
    font-family: Arial, sans-serif;
    color: #000;
}

#contact h2{
    margin-bottom: 40px;
    text-align: center;
}

#contact dt{
    font-weight: 500;
    margin-bottom: 10px;
}

#contact dt .require{
    color: #e52d27;
    margin-left: 5px;
}

#contact form{
    max-width: 500px;
    padding: 0 20px;
    margin: 0 auto;
}

#contact dd{
    margin-bottom: 20px;
    margin-left: 0;
}

#contact dd input[type="text"],
#contact dd input[type="email"]{
    width: 100%;
    padding: 15px 10px;
    box-sizing: border-box;
}

#contact dd textarea{
    width: 100%;
    height: 200px;
    padding: 15px 10px;
    box-sizing: border-box;
}

#contact .btn{
    text-align: center;
}

#contact .btn input{
    background-color: #707070;
    color: #fff;
    font-size: 14px;
    padding: 15px 50px;
    border: none;
    cursor: pointer;
    border-radius: 10px;
}

#contact .btn input:hover{
    opacity: 0.7;
}

/*フッター*/
#footer{
    font-size: 12px;
    text-align: center;
    padding: 20px 0;
}

.name_vali, .email_vali, .text_vali{
    color: #e52d27;
}

/*-------------------------------------------------------
お問い合わせ内容確認画面
--------------------------------------------------------*/
#confirm{
    margin-top: 40px;
    padding-bottom: 40px;
    border-bottom: solid 1px #CCC;
    box-sizing: border-box;
}

#confirm h2{
    margin-bottom: 40px;
    text-align: center;
}

#confirm table{
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    border: solid 1px #CCC;
    margin-bottom: 40px;
}

#confirm table tr td {
    vertical-align: top;
}


#confirm p{
    margin-bottom: 20px;
    text-align: center;
}

#confirm .select_btn{
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

#confirm .btn input{
    background-color: #707070;
    color: #fff;
    font-size: 14px;
    padding: 15px 50px;
    border: none;
    cursor: pointer;
    border-radius: 10px;
}

#confirm .btn input:hover{
    opacity: 0.7;
}

#confirm .btn input:nth-child(1){
    background-color: #707070;
}

#confirm .btn input:nth-child(2){
    background-color: #707070;
}


/*-------------------------------------------------------
お問い合わせ送信完了通知画面
--------------------------------------------------------*/
#thanks{
    margin-top: 40px;
    padding-bottom: 40px;
    border-bottom: solid 1px #CCC;
    box-sizing: border-box;
    text-align: center;
}

#thanks h2{
    margin-bottom: 40px;
}

#confirm p{
    border: #CCC;
}

/*-------------------------------------------------------
スマートフォン
--------------------------------------------------------*/
@media screen and (max-width: 767px) {
    /*ヘッダー*/
    #header{
        align-items: center;
        height: 60px;
        padding: 8px 28px;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 10;
        background-color: #fff;
        margin: 0 auto;
        width: 100%;
    }
    
    #header .logo{
        max-width: 120px;
    }

    #header .hamburger{
        width: 50px;
        height: 50px;
        position: fixed;
        top: 15px;
        right: 28px;
        z-index: 30;
        cursor: pointer;
    }

    #header .hamburger span{
        width: 30px;
        height: 3px;
        background-color: #707070;
        display: inline-block;
        position: absolute;
        left: 10px;
        transition: all 0.4s;
    }

    #header .hamburger span:nth-of-type(1){
        top: 16px;
    }

    #header .hamburger span:nth-of-type(2){
        top: 25px;
    }

    #header .hamburger span:nth-of-type(3){
        top: 34px;
    }

    #header .hamburger.active span:nth-of-type(1){
        top: 24px;
        transform: rotate(-45deg);
    }

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

    #header .hamburger.active span:nth-of-type(3){
        top: 24px;
        transform: rotate(45deg);
    }

    #header nav {
        width: 70%;
        height: 100vh;
        background-color: #fff;
        position: fixed;
        top: 0;
        right: -70%;
        transition: all 0.6s;
    }

    #header nav .navi{
        width: 100%;
        height: 100vh;
        flex-direction: column;
        padding: 60px 0;
        overflow: auto;
    }

    #header nav .navi li{
        padding: 10px 0;
        margin-left: 0;
    }

    #header nav.active{
        right: 0;
    }

    /*メイン*/
    main.wrapper {
        padding-top: 68px !important;
    }

    #mainvisual{
        margin-bottom: 25px;
    }

    /*プロフィール*/
    #profile{
        margin-top: 25px;
        margin-bottom: 25px;
    }

    #profile h2{
        margin-bottom: 25px;
    }

    #profile .text{
        text-align: left;
    }

    /*実績*/
    #achievement{
        margin-top: 25px;
        margin-bottom: 25px;
    }

    #achievement h2{
        margin-bottom: 25px;
    }

    .flex{
        flex-direction: column;
        gap: 20px;
    }

    .content{
        padding: 5% 5%;
        width: 70%;
        box-sizing: border-box;
    }
    
    /*スライドインアニメーション　左から*/
    @keyframes slide_left{
        0%{
            transform: translateX(-50%);
        }
    
        100%{
            transform: translateX(21%);
            opacity: 1;
        }
    }
    
    /*スライドインアニメーション　右から*/
    @keyframes slide_right{
        0%{
            transform: translateX(50%);
        }
    
        100%{
            transform: translateX(-21%);
            opacity: 1;
        }
    }

    .content_box{
        display: block;
        width: 100%;
    }

    /*ポートフォリオ*/
    #portfolio{
        margin-top: 25px;
        margin-bottom: 25px;
    }

    #portfolio h2{
        margin-bottom: 25px;
    }

    #portfolio .portfolio_list{
        display: flex;
        flex-direction: column;
        gap: 20px;
        flex-wrap: none;
        padding-left: 0;
    }
     
    #portfolio .portfolio_list li{
        width: 100%;
        margin: 0 0 20px;
        cursor: pointer;
    }

    .portfolio_text{
        text-align: center;
        font-size: 16px;
    }
} 

@media screen and (max-width: 500px){
    .content{
        margin: 0 auto;
        width: 100%;
    }

    .content_box p{
        font-size: 14px;
    }

    .content_box li{
        font-size: 12px;
    }

    /*スライドインアニメーション　左から*/
    @keyframes slide_left{
        0%{
            transform: translateX(-50%);
        }
    
        100%{
            transform: translateX(0);
            opacity: 1;
        }
    }
    
    /*スライドインアニメーション　右から*/
    @keyframes slide_right{
        0%{
            transform: translateX(50%);
        }
    
        100%{
            transform: translateX(0);
            opacity: 1;
        }
    }

}

