@charset "utf-8";
/* 共通部分 */
* {
    margin: 0;
    padding: 0;
}
body {
    font-size: 62.5%;
    color: #432;
    line-height: 1;
    text-align: center;
}
img {
    width: 100%;
}
a {
    list-style-type: none;
}
header {
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    position: fixed;
    z-index: 10;
    top: 0;
    padding: 5px 4%;
    width: 100%;
    height: 60px;
    align-items: center;
}
h1 a {
    font-size: 2.4rem;
    line-height: normal;
}
/* チェックボックスを非表示にする */
.drawer_hidden {
    display: none;
}
.nav-list {
    display: flex;
}
.nav-list li {
    font-size: 1.8rem;
    padding-left: 45px;
}
.nav-list a:hover {
    color: #0bd;
}
p {
    font-size: 1.6rem;
}
/* 共通部分ここまで */
.wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 4%;
}
.main-view {
    width: 100%;
    height: auto;
    margin: 20% 0;
}
.main-view h2 {
    font-size: 3.6rem;
    line-height: 1;
}
.main-view p {
    font-size: 2rem;
    line-height: 1;
}
.main-view h2, .main-view p {
    font-weight: 700;
}
section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 70px 0 35px 0;
}
section {
    margin-bottom: 150px;
}
.works-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 45px;
}
.works-wrap figure {
    border: 1px solid #432;
    overflow: hidden;
}
.works-wrap a img {
    transition: filter .5s, transform .5s;
}
.works-wrap a:hover img {
    transform: scale(1.5);
}
.works-wrap p {
    margin-top: 5%;
}

/*--------------------------------
 Skill
---------------------------------*/
.skill-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: -50px;
}
.skill-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 48%;
    margin-bottom: 50px;
}
.skill-img {
    width: 60px;
    height: auto;
    margin-right: 20px;
}
.skill-body {
    text-align: start;
    flex: 1;
}
.skill-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.skill-text {
    font-size: 14px;
    line-height: 1.8;
}
/* GET */
#skill1 {
    animation:3s linear infinite rotation1;
}
@keyframes rotation1{
    0%{ transform:rotate(0);}
    100%{ transform:rotate(-360deg); }
  } /* 回転 */
#skill2 {
    animation:3s linear infinite rotation2;
}
@keyframes rotation2{
    0%{ transform:rotateY(0);}
    100%{ transform:rotateY(360deg); }
  } /* 回転 */
.about img {
    width: 250px;
    border-radius: 50%;
}
.about div {
    margin: 0 20%;
}
.about div p {
    text-align: left;
}
/*--------------------------------
 Contact
---------------------------------*/
.lead {
    line-height: 1.5;
}
.contact-list {
    margin-top: 20px;
}
.contact-list a {
    color: #0bd;
}
.contact-item:not(:last-child) {
    margin-right: 10px;
}
.contact-item {
    font-size: 1.6rem;
}

@media (max-width:700px) {
    header {
        height: 40px;
        position: sticky;
        z-index: 10;
        top: 0;
    }
    h1 a {
        font-size: 2rem;
    }
    /* ハンバーガーアイコンの設置スペース */
    .drawer_open {
        display: flex;
        width: 4%;
        justify-content: center;
        align-items: center;
        position: relative;
        z-index: 100;/* 重なり順を一番上にする */
        cursor: pointer;
    }
    /* ハンバーガーメニューのアイコン */
    .drawer_open span,
    .drawer_open span:before,
    .drawer_open span:after {
        content: '';
        display: block;
        height: 3px;
        width: 25px;
        border-radius: 3px;
        background: #333;
        transition: 0.5s;
        position: absolute;
    }
  
    /* 三本線の一番上の棒の位置調整 */
    .drawer_open span:before {
        bottom: 8px;
    }
  
    /* 三本線の一番下の棒の位置調整 */
    .drawer_open span:after {
        top: 8px;
    }
  
    /* アイコンがクリックされたら真ん中の線を透明にする */
    #drawer_input:checked ~ .drawer_open span {
        background: rgba(255, 255, 255, 0);
    }
    
    /* アイコンがクリックされたらアイコンが×印になように上下の線を回転 */
    #drawer_input:checked ~ .drawer_open span::before {
        bottom: 0;
        transform: rotate(45deg);
    }
    
    #drawer_input:checked ~ .drawer_open span::after {
        top: 0;
        transform: rotate(-45deg);
    }
        
    /* メニューのデザイン*/
    .nav-content {
        width: 100%;
        font-size: 1.3rem;
        position: fixed;
        left: 100%; /* メニューを画面の外に飛ばす */
        z-index: 99;
        background-color: #fff;
        transition: .5s;
        height: 100%;
        top: 0;
        /* 追加 */
        overscroll-behavior: contain;
        overflow-y: scroll;
        scrollbar-width: none;
        -ms-overflow-style: none;
        touch-action: none;
        /* スクロールバー非表示 */
        scrollbar-width: none; 
        -ms-overflow-style: none;
        /* スマホのタッチアクション無効 */
        touch-action: none;
    }
    .nav-content::-webkit-scrollbar {
        display: none;
        }
    /* メニュー黒ポチを消す */
    .nav-list {
        list-style: none;
        display: block;
        margin-top: 50%;
    }
    .nav-list li {
        padding-left: 0;
        line-height: 3.2rem;
    }
    /* アイコンがクリックされたらメニューを表示 */
    #drawer_input:checked ~ .nav-content {
        left: 0;/* メニューを画面に入れる */
    }
    .wrapper {
        padding: 0 10%;
    }
    .works-wrap, .skill-wrap {
        display: block;
    }
    .works-wrap div {
        margin-bottom: 10%;
    }
    .works-wrap div img {
        width: 80%;
    }
    .skill-item {
        width: unset;
    }
}