@charset "UTF-8";

* {
    box-sizing: border-box;
    line-height: 1.75;
}

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

.sp-only {
    display: none;
}

header {
    background-color: rgb(255, 255, 255);
    border-bottom: 1px solid rgb(255, 159, 159);
    display: flex;
    text-align: center;
    padding-bottom: 80px;
}

h1 {
    font-size: 40px;
    margin: 0;
    position: fixed;
    padding-left: 20px;
}

h1 a {
    text-decoration: none;
    color: #3a58ff;
}

h1 a:hover {
    color: #8799ff;
}

.nav-list {
    display: flex;
    gap: 30px;
    list-style-type: none;
    margin-left: auto;
    position: fixed;
    right: 0;
    padding-top: 10px;
    padding-right: 30px;
}

.nav-list a {
    text-decoration: none;
    color: rgb(255, 159, 159);
}

.nav-list a:hover {
    color: rgb(255, 195, 195);
}

body {
    background-color: rgb(254, 255, 218);
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 500;
    font-style: normal;
    color: rgb(91, 91, 91);
}

h2 {
    text-align: center;
    margin: 0;
    padding-top: 100px;
    width: 80%;
    margin: auto;
    line-height: 1.5;
}

.main-img {
    width: 70%;
    margin: auto;
    padding: 70px 0px;
}


h3 {
    margin: 0;
    border-bottom: 1px solid;
}

h3::before {
    content: "●";
    padding-right: 10px;
}

.nav-content {
    width: 80%;
    margin: auto;
    padding-left: 0;
    padding-bottom: 80px;
}

.nav-content-item {
    list-style-type: none;
    padding-bottom: 40px;
}

.nav-content-item p {
    padding-top: 10px;
    margin: 0;
}


.btn {
    background-color: #395af0;
    padding: 10px 0px;
    width: 30%;
    margin: auto;
    border-radius: 70px;
    margin-bottom: 100px;
}

.btn a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn p {
    margin: 0;
}

.btn a {
    text-decoration: none;
    color: #ffffff;
}

.btn:hover {
    background-color: #6cacff;
}

.arrow {
    position: relative;
    width: 20px;
}

.line01 {
    height: 1.5px;
    background-color: #ffffff;
}

.line02 {
    position: absolute;
    top: 0;
    right: 0;
    transform-origin: right bottom;
    width: 10px;
    height: 1.5px;
    background-color: #ffffff;
    transform: rotate(45deg);
}



footer {
    background-color: rgb(255, 167, 171);
    padding: 50px 0px 50px 0px;

}

.footer-nav {
    margin: 0;
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.footer-nav a {
    text-decoration: none;
    color: rgb(255, 255, 255);
}

.sns img {
    width: 40px;
}

.sns-flex {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 30px;
}

.sns a {
    text-decoration: none;
}

.small {
    color: #ffffff;
    text-align: center;
    padding-top: 50px;
}

.footer-nav a:hover {
    color: rgb(253, 255, 204);
}

/* メニューのスタイル */
.menu {
    position: fixed;
    top: 0;
    right: -100%;
    /* 初期状態では画面の外に隠れている */
    width: 300px;
    height: 100%;
    background-color: rgb(255, 159, 159);
    color: #333;
    transition: right 0.3s ease;
    /* スライドインのアニメーション */
    padding: 20px;
    box-sizing: border-box;
    z-index: 10;
}

/* メニューが開いているとき */
.menu.open {
    right: 0;
    background-image: url(../img/topwhite.png);
    background-repeat: no-repeat;
    background-size: 70%;
    background-position: center 90%;

}

/* ボタンのスタイル */
.hamburger {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 30px;
    cursor: pointer;
    z-index: 20;
    padding-top: 5px;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: rgb(255, 159, 159);
    margin: 5px 0;
    transition: 0.4s;
    border-radius: 10px;
}

/* バツ印に変化するスタイル */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: #ffffff;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background-color: #ffffff;
}

/* メニューリストのスタイル */
.menu ul {
    list-style-type: none;
    padding: 0;
    margin-top: 80px;
}

.menu li {
    padding: 20px 0;
    border-bottom: 2px dotted rgb(255, 255, 255);
}

.menu li a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    display: block;
}


@media screen and (max-width:768px) {

    .sp-only {
        display: block;
    }

    .nav-list {
        display: none;
    }

    .works-list {
        display: block;
    }

    .work-list-item {
        width: 80%;
        padding-bottom: 100px;
    }

    .about-flex {
        display: block;
    }

    .about-img {
        width: 70%;
        padding-bottom: 30px;
    }

    .nav-skill {
        display: block;
    }

    .nav-skill li {
        width: 100%;
    }

    .btn {
        width: 60%;
    }

    .footer-nav {
        width: 90%;
    }
}