@charset "utf-8";

/* リセットCSS */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-align: center;
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ローディング画面 */
.loader-bg {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    font-size: 10px;
    margin: 50px auto;
    text-indent: -9999em;
    width: 11em;
    height: 11em;
    border-radius: 50%;
    background: #f5b2b2;
    background: -moz-linear-gradient(left, #f5b2b2 10%, rgba(255, 255, 255, 0) 42%);
    background: -webkit-linear-gradient(left, #f5b2b2 10%, rgba(255, 255, 255, 0) 42%);
    background: -o-linear-gradient(left, #f5b2b2 10%, rgba(255, 255, 255, 0) 42%);
    background: -ms-linear-gradient(left, #f5b2b2 10%, rgba(255, 255, 255, 0) 42%);
    background: linear-gradient(to right, #f5b2b2 10%, rgba(255, 255, 255, 0) 42%);
    position: relative;
    -webkit-animation: load3 1.4s infinite linear;
    animation: load3 1.4s infinite linear;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
}

.loader:before {
    width: 50%;
    height: 50%;
    background: #f5b2b2;
    border-radius: 100% 0 0 0;
    position: absolute;
    top: 0;
    left: 0;
    content: '';
}

.loader:after {
    width: 75%;
    height: 75%;
    background: #ffffff;
    border-radius: 50%;
    content: '';
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

@-webkit-keyframes load3 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes load3 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}


/* 共通設定 */

.wrap {
    max-width: 1200px;
    margin: 0 auto;
}

a {
    color: #2944cc;
}

a:hover:not(nav ul li a) {
    color: #f5b2b2;
    transition: .5s;
}

a:visited:not(nav ul li a) {
    color: #330099;
}


/* 背景画像 */

#name,
footer,
#nav {
    background-image: url(/img/bg.jpg);
    background-size: cover;
    text-shadow: 1px 1px 3px rgba(143, 143, 143, 0.8);
}



/* トップ部分 */

#name {
    height: 100vh;
    position: relative;
    font-family: "Lexend Exa", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    animation-name: fadeInAnime;
    animation-duration: 2s;
    animation-fill-mode: forwards;
    opacity: 0;
    background-image: url(/img/bg.jpg);
}

@keyframes fadeInAnime {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

header {
    position: relative;
}

.top {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
}

.top h1 {
    font-size: 42px;
}

/* ナビ部分 */

nav ul {
    text-align: right;
    padding-top: 16px;
    padding-bottom: 16px;
    margin-right: 36px;
}

nav ul li {
    display: inline-block;
}

nav ul li a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #fff;
    font-family: "Lexend Exa", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    position: relative;
}

nav ul li a::after {
    position: absolute;
    content: '';
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: all .5s ease 0s;
}

nav ul li a:hover {
    cursor: pointer;
}

nav ul li a:hover::after {
    width: 100%;
}

#nav h1 a {
    padding: 30px 200px;
    text-decoration: none;
    color: #fff;
    font-family: "Lexend Exa", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

#nav .wrap nav {
    display: flex;
    justify-content: flex-end;
    margin-right: 20%;
}

/* メイン部分 */
main {
    padding: 60px 128px;
}

#index h2 {
    padding-bottom: 16px;
    font-family: "Lexend Exa", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

#index h2:not(#about h2:first-child, #skill h2:first-child) {
    padding-bottom: 0;
}

#skill h2:first-child {
    padding-top: 48px;
}

.hamburger_menu {
    display: none;
}

/* トップページに遷移 */

.pagetop {
    height: 50px;
    width: 50px;
    position: fixed;
    right: 30px;
    bottom: 30px;
    background-image: url(/img/bg.jpg);
    border: none;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2;
    cursor: pointer;
}

.pagetop_arrow {
    display: block;
    height: 10px;
    width: 10px;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
    transform: translateY(20%) rotate(-45deg);
}

.pagetop_arrow:hover {
    opacity: 0.5;

}

/* About */

#about,
#works,
#practice {
    margin-bottom: 64px;
}

#about div .main_image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    margin-left: 10%;
    background-image: url(/img/img_profile.jpg);
    background-size: 150%;
    background-position: center;
    background-repeat: no-repeat;
}

.main_text {
    width: 55%;
    padding: 30px;
    font-family: "IBM Plex Sans JP", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 13px;
    text-align: left;
}

.main_text p {
    text-align: left;
    padding-bottom: 18px;
}

.main_text_inline {
    text-align: left;
    display: inline-block;
}

.about_flex {
    display: flex;
    justify-content: space-around;
}

/* Works */

#works div a {
    display: block;
    overflow: hidden;
    font-family: "IBM Plex Sans JP", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-decoration: none;
    transition: .5s;
}

.works_image img {
    object-fit: cover;
    height: 200px;
}

.works_image {
    width: 300px;
    margin: 0 auto;
    padding: 15px 0;
}

.works_flex {
    display: flex;
    flex-wrap: wrap;
    padding: 0 15px 15px;
}

.works_flex a {
    width: 40%;
    margin: 10px auto;
    background-color: #fff;
    border-radius: 5px;
}

.works_flex a p {
    padding-bottom: 12px;
    font-size: 12px;
}

#works div a:hover {
    transform: translateY(-3px);
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.3);
}


/* Practice */

.practice_flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.practice_flex div {
    width: 30%;
    margin-bottom: 24px;
    border: 1px solid #c8c8c8;
    transition: .5s;
}


.practice_flex div:hover {
    opacity: 0.7;
    transition: .5s;
}

#works p {
    font-family: "IBM Plex Sans JP", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 13px;
    padding-top: 8px;

}

#practice p {
    font-family: "IBM Plex Sans JP", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 13px;
    padding-top: 8px;
    padding-bottom: 12px;
}


/* skill */

.skill_flex {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

#skill dl {
    width: 45%;
    margin-right: 30px;
    position: relative;
}

#skill dt {
    text-align: left;
    margin-bottom: 16px;
    font-family: "Lexend Exa", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

#skill dd {
    text-align: left;
    font-family: "IBM Plex Sans JP", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 12px;
}

.skill_logo_1 {
    width: 150px;
    height: 150px;
    float: left;
    background-image: url(/img/ico_html.png);
    background-repeat: no-repeat;
    background-position: 60% 5%;
    background-size: 60%;
}

.skill_logo_2 {
    width: 150px;
    height: 150px;
    float: left;
    background-image: url(/img/ico_javascript.png);
    background-repeat: no-repeat;
    background-position: 60% 16%;
    background-size: 53%;
}

.skill_logo_3 {
    width: 150px;
    height: 150px;
    float: left;
    background-image: url(/img/ico_wordpress.png);
    background-repeat: no-repeat;
    background-position: 58% 20%;
    background-size: 51%;
}

.skill_logo_4 {
    width: 150px;
    height: 150px;
    float: left;
    background-image: url(/img/ico_photoshop.png);
    background-repeat: no-repeat;
    background-position: 60% 5%;
    background-size: 63%;
}

.skill_logo_5 {
    width: 150px;
    height: 150px;
    float: left;
    background-image: url(/img/ico_illustrator.png);
    background-repeat: no-repeat;
    background-position: 60% 5%;
    background-size: 63%;
}

.skill_logo_6 {
    width: 150px;
    height: 150px;
    float: left;
    background-image: url(/img/ico_design.png);
    background-repeat: no-repeat;
    background-position: 60% 5%;
    background-size: 58%;
}

/* フッター */
footer {
    height: 50px;
    line-height: 50px;
    color: #fff;
    font-family: "Lexend Exa", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

small {
    font-weight: 200;
    font-size: 12px;
}

/* たこ焼きたこ丸詳細ページ */

.works .wrap {
    padding: 0 128px;
}

.works h2 {
    font-family: "IBM Plex Sans JP", sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 18px;
}

.works_site_image {
    animation-name: fadeUpAnime;
    animation-duration: 2s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes fadeUpAnime {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.works_site_image_sub {
    margin-top: 10px;
}

.works ul:not(.nav_side,
    .nav_side_flex) {
    padding: 0 12%;
}

.works li {
    text-align: left;
    font-family: "IBM Plex Sans JP", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 12px;
}

.works li .main_text_inline {
    text-align: left;
}

.works p {
    padding-left: 12%;
    margin: 24px 0;
    text-align: left;
    font-family: "IBM Plex Sans JP", sans-serif;
    font-weight: 400;
    font-size: 12px;
}

.works_text {
    display: block;
    padding-top: 8px;
    text-align: left;
    font-weight: 500;
    font-size: 14px;
}

/* 作品ページ下部他ページ遷移 */
.nav_side {
    text-align: right;
}

.nav_side li,
.nav_side_flex li {
    display: inline-block;
    font-size: 10px;
}

.nav_side_flex {
    display: flex;
    justify-content: space-between;
}