@charset "UTF-8";

/* body */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #333;
    font-family: "Noto Serif JP", serif;
    font-weight: 400;
    font-style: normal;
}

a {
    text-decoration: none;
}

a:hover {
    opacity: 0.8;
}

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

/* header */

.header {
    width: 100%;
    height: 60px;
    background-color: #333;
    position: fixed;
    z-index: 100;
}

#global_nav {
    position: fixed;
    top: 60px;
    width: 100%;
    height: 100%;
    background-color: #333;
    opacity: 0.9;
    display: block;
    right: -100%;
    transition: right .5s;
}

#global_nav ul {
    list-style-type: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#global_nav ul li {
    padding-bottom: 50px;
}

#global_nav ul li a {
    color: #fff6bd;
    font-size: 1.8rem;
    text-decoration-line: none;
    text-align: center;
}

/* ===== ハンバーガーボタン ===== */
#drawer_toggle {
    width: 60px;
    height: 60px;
    z-index: 200;
    position: absolute;
    top: 0;
    right: 0;
}

#drawer_toggle span {
    width: 30px;
    height: 3px;
    background-color: rgb(58, 58, 255);
    border-radius: 2px;
    vertical-align: top;
    position: absolute;
    top: 19px;
    left: 17px;
}

#drawer_toggle span:nth-child(2) {
    margin-top: 10px;
}

#drawer_toggle span:last-child {
    margin-top: 20px;
}

#drawer_toggle.open span {
    top: 29px;
    left: 14px;
    width: 35px;
    margin: 0;
}

#drawer_toggle.open span:first-child {
    transform: rotate(45deg);
}

#drawer_toggle.open span:nth-child(2) {
    display: none;
}

#drawer_toggle.open span:last-child {
    transform: rotate(-45deg);
}

#global_nav.sp_open {
    right: 0;
}

@media (min-width:768px) {

    .header {
        height: 100px;
    }

    h1 {
        top: 30px;
        left: 130px;
    }

    #drawer_toggle {
        display: none;
    }

    #global_nav {
        top: 30px;
        right: 120px;
        width: auto;
        height: auto;
        font-size: 1.4rem;
        opacity: 1;
        transition: 0s;
    }

    #global_nav ul {
        position: relative;
        top: 0;
        left: 0;
        transform: unset;
    }

    #global_nav ul li {
        display: inline-block;
        height: 35px;
        border-radius: 2px;
        line-height: 35px;
    }

    #global_nav ul li a {
        padding-left: 50px;
        display: block;
        color: #fff6bd;
        font-size: unset;
    }
}

.visual_sp {
    width: 100%;
    margin-top: 60px;
}

.visual_img {
    display: none;
}

.content_box {
    width: auto;
    height: 100vh;
}

.content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.heading {
    color: #fff6bd;
    font-size: 10vw;
}

@media (min-width: 767px) {

    .main_visual img {
        display: block;
        max-width: 100%;
        padding-top: 60px;
    }

    .main_visual {
        width: 100%;
    }

    .visual_sp {
        display: none;
        margin-top: 30px;
    }

}

/* about */

#about {
    margin: 0 15%;
}


.title {
    font-size: 1.2em;
    padding: 5px;
    text-align: center;
    background-color: #fff6bd;
    border-radius: 6px;
    color: #333;
    width: 120px;
    margin: 50px auto 30px auto;
}

.about_me {
    width: 100%;
    margin-bottom: 30px;
}

.profile {
    color: #f0f0f0;
    font-size: 0.8rem;
    line-height: 1.8em;
    letter-spacing: 0.15em;
    margin-bottom: 1.5em;
}

.deco {
    padding: 0.3em 0.5em;
    border-left: 8px double #fff6bd;
}

.space {
    padding: 1em 1em;
}

.profile_imp {
    padding-top: 50px;

}

@media (min-width: 767px) {

    h2.title {
        margin-left: 0;
    }

    #about {
        margin: 0 16%;
    }

    .profile {
        overflow-wrap: break-word;
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin: 3em 20%;
        padding: 1em 1em;
        font-size: 15px;
    }

    .deco {
        height: 1.6em;
        padding: 0 0.5em;
        border-left: 8px double #fff6bd;
    }

    .space {
        padding: 0;
    }

    .profile_imp {
        font-size: 0.95rem;
    }
}


/* skill */

.flex_box {
    padding: 0;
    display: grid;
    flex-wrap: wrap;
    grid-template-columns: 1fr 1fr 1fr;
    list-style-type: none;
    letter-spacing: 0.1em;
    margin: 0 8%;
}

.flex_item {
    margin: 0 8% 5% 8%;
    flex-grow: 1;
    text-align: center;
    color: #fff6bd;
    padding: 5%;
}

.logoname {
    padding: 2%;
    font-size: 3vw;
}

.star {
    font-size: 3vw;
}

.flex_item img {
    max-width: 150px;
    width: 100%;
}

div.morebtn {
    padding: 10px 0;
    margin-top: 20px;
    margin: 30px auto;
    text-align: center;
    font-weight: bold;
    color: #fff;
    background-color: rgb(58, 58, 255);
    width: 100px;
    border-radius: 6px;
}


@media (min-width: 767px) {
    #skill {
        margin: 0 16%;
    }

    ul.flex_box {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
        margin: 0;
    }

    .logoname {
        font-size: 1.2vw;
    }

    .star {
        font-size: 1.4vw;
    }
}

/* work */

#work img {
    max-width: 100%;
    background-color: #2b2b2b;
}

#work .hover:hover {
    opacity: 0.6;
    transition: 0.3s;
}

@media (min-width: 767px) {

    .work_box h2.title {
        margin: 50px 16% 30px 16%;
    }

    #work {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

/* footer */

.footerbox {

    height: 350px;
    text-align: center;
}

.snstitle {
    padding: 4px 0;
    font-weight: bold;
    color: #333;
    background-color: #fff6bd;
    width: 120px;
    border-radius: 6px;
    font-size: 1.2em;
    margin: 50px auto 0 auto;
}

.footerbox img {
    width: 12%;
    margin-top: 40px;
}



@media (min-width: 767px) {

    .footerbox img {
        width: 6%;
        margin-top: 40px;
    }

    #footer_end small {
        font-size: 14px;
        letter-spacing: 0.1em;
        color: #c5c5c5;

    }
}