@charset 'utf-8';

/* 共通 */
* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
}

body {
    font-family: 'Roboto', 'Noto Sans JP', sans-serif;
    color: #2e2e2e;
    font-size: 1.6rem;
    letter-spacing: 0.05em;
    line-height: 1.8;
}

.section-wrap{
    margin: 0 20px;
}

.section-title {
    margin: 100px 0 60px;
    font-weight: 700;
    font-size: 2.5rem;
    text-align: center;
}


/* 製作中の打ち消し線 */
.line-through
{text-decoration: line-through 2px solid red}

/* header */
.site-title a:hover{
    opacity: .6;
}
.pc-only a:hover{
    opacity: .6;
}
.mobile-only a:hover{
    opacity: 0.6;
}
header.site-header {
    width: 100%;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    transition: .5s;
    z-index: 100;
}
header.site-header.hide{
    transform: translateY(-100%);
}

.header-wrap {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 0 20px;
}

.site-title {
    font-weight: 700;
    font-size: 2rem;
}


.hamburger-btn {
    position: relative;
    /* ↑btnboxを基準位置に */
    width: 50px;
    height: 50px;
    /* display: flex;
    justify-content: center;
    align-items: center; */
}

.hamburger-btn span,
.hamburger-btn span::before,
.hamburger-btn span::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 30px;
    height: 3px;
    background-color: #2e2e2e;
    border-radius: 3px;
}

.hamburger-btn span::before {
    top: -10px;
    transform:translate(-50%,0);
}

.hamburger-btn span::after {
    top: 10px;
    transform:translate(-50%,0);
}
/* mobile-nav →open */

.mobile-only {
    background-color: #fff;
    position: fixed;
    top: 0;
    width: 100%;
    height: 100vh;
    left: -100%;
    z-index: 200;
}
.mobile-only.open{
    left: 0;
}
.btn-close{
    position: fixed;
    top: 5px;
   right: 15px;
    width: 50px;
    height: 50px;
    background-color: #fff;
    z-index: 300;
    display:none;
    justify-content: center;
    align-items: center;
}
.mobile-only.open .btn-close{
    display: flex;
}
.btn-close-bar,
.btn-close-bar::before{
    display: block;
    background-color: #2e2e2e;
    width: 30px;
    height: 3px;
    border-radius: 3px;
    transform: rotate(45deg);
}
.btn-close-bar::before{
    content: '';
    transform: rotate(90deg);
}
.mobile-only nav{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
.mobile-only nav a{
    font-size: 2.5rem;
    font-weight: 700;
}
.mobile-only nav li{
    padding: 10px;
}
.pc-only {
    display: none;
}
@media screen and (min-width:768px) {
    header.site-header{
        height: 80px;
    }
    .header-wrap{
        max-width: 1200px;
    }
    .site-title{
        font-size: 2.5rem;
    }
    .hamburger-btn{
        display: none;
    }
    .pc-only{
        display: block;
    }
    .pc-only ul{
        display: flex;
    }
    .pc-only ul a{
        font-weight: 700;
        font-size: 2rem;
        margin-left: 20px;
    }
}

/* MV */
#mv{
    position: relative;
}
#mv img{
    width: 100%;

}
.mv_pc{
    display: none;
}
.main_copy{
    text-align: center;
    font-family: Noto Serif;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color:#008BBB;
    text-shadow: 0px 0px 8px rgba(255, 255, 255, 1);
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%,-50%);
}
@media screen and (min-width:768px) {
    .mv_pc{
        display: block;
    }
    .mv_sp{
        display: none;
    }
    .main_copy{
        font-size: 4rem;
        top: 50%;
        left: 25%;
        transform: translate(-50%,-50%);
    }
}

/* About */
.name{
    text-align: center;
    font-size: 2.5rem;
}
.about_photo{
    width: 300px;
    height: 300px;
    margin: 0 auto;
}
.about_photo img{
    border-radius: 50%;
}
.about_title{
    display: flex;
    line-height: 3rem;
    font-size: 2rem;
    font-weight: 700;
    margin: 60px 0 20px;
}
.about_title::before {
    content: '';
    display: block;
    width: 5px;
    height: 3rem;
    background-color: #2e2e2e;
    margin-right: 5px;
}
.about_skill{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px 0;
}
.skill_item{
    width: 50%;
    display: flex;
    align-items: center;
}
.skill_icon{
    width: 45px;
    height: 45px;
    margin-right:10px;
}
.skill_star{
    font-size: 1.5rem;
    letter-spacing:0.1em ;
}
/* 最終行に擬似要素でspace-betweenでも右を埋める */
.about_skill::after{
    content: '';
    display: block;
    width: 50%;
}
@media screen and (min-width:768px) {
    .skill_item{
        width: 33.3%;
    }
    .skill_icon{
        width: 70px;
        height: 70px;
        margin-right: 20px;
    }
    .skill_star{
        font-size: 2.5rem;
    }
    .about_skill::after{
        width: 33.3%;
    }
}

/* Works */
#works{
    margin-bottom: 100px;
}
#works ul{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content:space-between;
}
#works ul li{
    width: 47%;
    margin-bottom: 30px;
}
.works-item-img{
    box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.6);
}
.works-item-img:hover{
    opacity:0.6;
}
.works-item-category{
    text-align: center;
    font-size: 1.4rem;
    font-weight: 400;
    padding-top: 15px;
}
/* pc3列の最終行の下余白をキャンセル */
/* mobile最終行手前の左側のliにした余白が付くので維持 */
/* 3列リストの一番左下にある要素 */
#works ul li:nth-child(3n+1):nth-last-child(-n+3),
/* 3列リストの一番左下にある要素以降にあるliすべて */
#works ul li:nth-child(3n+1):nth-last-child(-n+3) ~ li {
margin-bottom: 0;
}

@media screen and (min-width:768px) {
    #works ul li{
        width: 32%;
    }
    /* 最終行ひだり寄せ。１マス分32%を擬似要素で。 */
    #works ul::after{
        content: "";
    display: block;
    width: 32%;  /* .works-itemに指定したwidthと同じ幅を指定する */
    height: 0;
    }
}




/* Contact */
/* footer */
.footer{
    font-size: 1.2rem;
    font-weight: 100;
    text-align: center;
    line-height: 60px;
    color: #fff;
    width: 100%;
    height: 60px;
    background-color: #2e2e2e;
}