body {
    font-family: "Lobster", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 100%;
    color: #020402;
}

li {
    list-style-type: none;
}

a {
    text-decoration: none;
}

img {
    width: 100%;
}

/* 共通 */
.wrapper {
    margin: 0 auto;
    padding: 150px 8%;
}

.sec-title1 {
    text-align: right;
    margin-bottom: 40px;
}

.sec-title2 {
    color: #F8F2FA;
    text-align: right;
    margin-bottom: 40px;
}
/* section {
    opacity: 0;
    transition: opacity 2s 0.3s;
} */

/* header */
header {
    padding: 80px 40px;
    background-color: rgba(255, 255, 255, 0.3);
    width: 300px;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: hidden;
    font-size: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.header-logo a {
    color: #3A77AD;
}
.nav__list {
    /* border: 1px solid blue; */
    margin-left: 60px;
}
.nav__list a {
    color: #020402;
    cursor: pointer;
    transition: 0.5s;
}
.nav__list a:hover {
    color: #e6e6e6;
}
.hamburger {
    opacity: 0;
    visibility: hidden;
}


/* top */
#top {
    background-image: url(../pfpicture/194011.jpg);
    background-size: cover;
    background-position-y: bottom;
    background-attachment: fixed;
    padding-left: calc(300px + 8%);
}

.site-title {
    margin-left: 80px;
    color: #F8F2FA;
    font-size: 3rem;
    font-weight: 200;
    margin-bottom: 80px;
}

.typeWriter {
    color: #F8F2FA;
    padding: 0 12%;
    letter-spacing: 8px;
    line-height: 2;
    font-size: 0.9rem;
}
.typeWriter > span {
    border-right: 2px solid;
    animation: caret 1s steps(1) infinite;
}
@keyframes caret {
    50% {
        border-color: transparent;
    }
}
.fi {
    opacity: 0;
    transition: opacity 3s 0.3s;
}
/* about */
#about {
    background-image: url(../pfpicture/194012.jpg);
    background-size: cover;
    background-position-y: bottom;
    background-attachment: fixed;
    padding-left: calc(300px + 8%);
}

.container {
    display: flex;
    /* border: 1px solid blue; */
    align-items: center;
}

.about-image {
    width: 40%;
}

.self-introduction {
    width: 50%;
    /* align-items: center; */
    padding: 0 3%;

}

.about-name {
    margin-bottom: 40px;
}

.en {
    margin-left: 20px;
}

.about-text {
    line-height: 2;
}

/* works */
#works {
    background-image: url(../pfpicture/194010.jpg);
    background-size: cover;
    background-position-y: bottom;
    background-attachment: fixed;
    padding-left: calc(300px + 8%);
}
.work1 {
    background-color: #fff;
    margin: 20px;
}
.btn img {
    width: 100%;
    padding: 20px;
}
.btn {
    display: inline-block;
    transition: 0.3s;
}
.btn:hover {
    opacity: 0.8;
}

/* モーダルウィンドウ */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal1 {
    width: 90%;
    height: 90%;
    padding: 15px 20px;
    background-color: #fff;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 2;
}

.modal1.active {
    opacity: 1;
    visibility: visible;
}

.modal__button-wrap {
    position: absolute;
    right: 20px;
    top: 20px;
    display: inline-flex;
}

.close {
    position: relative;
    width: 40px;
    height: 40px;
    background-color: #3A77AD;
    border-radius: 50%;
    padding: 0;
    border: transparent;
    cursor: pointer;
}

.close span {
    width: 25px;
    height: 2px;
    background-color: #F8F2FA;
    display: inline-block;
    position: absolute;
    left: calc(50% - 12px);
    top: 50%;
    border-radius: 20px;
}

.close span:nth-child(1) {
    transform: rotate(45deg) translate(-1px, -1px);
}

.close span:nth-child(2) {
    transform: rotate(-45deg) translate(1px, -1px);
}

.modal-contents {
    display: flex;
}

.modal-title {
    position: relative;
    padding: 0 65px;
    text-align: center;
}

.modal-title::before {
    position: absolute;
    top: calc(50% - 1px);
    left: 0;
    width: 100%;
    height: 2px;
    content: '';
    background-color: #3A77AD;
}

.modal-title span {
    position: relative;
    padding: 0 1em;
    background-color: #fff;
}

.modal-text {
    width: 33%;
    padding: 3%;
}

/* 画像ギャラリー */
.modal-image {
    width: 67%;
    padding: 3%;
}

.thumbnails img {
    height: auto;
    transition: opacity 0.5s;
}

.thumbnails img:hover {
    cursor: pointer;
    opacity: 0.7;
}

.thumbnails {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    padding-top: 10px;
    gap: 10px;
}

.mainImage {
    margin-top: 20px;
    margin-inline: auto;
    width: 70%;
    text-align: center;
}

/* skill */
#skill {
    background-image: url(../pfpicture/194007.jpg);
    background-size: cover;
    background-position-y: bottom;
    background-attachment: fixed;
    padding-left: calc(300px + 8%);
}

.skills {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, auto);
    gap: 20px;
}

.skill-item {
    background-color: #F8F2FA;
    display: flex;
    align-items: center;
    padding: 10px;
}

.skill-image {
    width: 20%;
    margin-left: 25px;
}

.skill-image img {
    width: 60px;
    height: 60px;
}

.skill-content {
    width: 80%;
}

.skill-name {
    margin-bottom: 5px;
}

/* ★評価 */
.star5_rating {
    position: relative;
    z-index: 0;
    display: inline-block;
    white-space: nowrap;
    color: #CCCCCC;
    font-size: 2rem;
}

.star5_rating:before,
.star5_rating:after {
    content: '★★★★★';
}

.star5_rating:after {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    color: #3A77AD;
}

.star5_rating[data-rate="5"]:after {
    width: 100%;
}

/* 星5 */
.star5_rating[data-rate="4.5"]:after {
    width: 90%;
}

/* 星4.5 */
.star5_rating[data-rate="4"]:after {
    width: 80%;
}

/* 星4 */
.star5_rating[data-rate="3.5"]:after {
    width: 70%;
}

/* 星3.5 */
.star5_rating[data-rate="3"]:after {
    width: 60%;
}

/* 星3 */
.star5_rating[data-rate="2.5"]:after {
    width: 50%;
}

/* 星2.5 */
.star5_rating[data-rate="2"]:after {
    width: 40%;
}

/* 星2 */
.star5_rating[data-rate="1.5"]:after {
    width: 30%;
}

/* 星1.5 */
.star5_rating[data-rate="1"]:after {
    width: 20%;
}

/* 星1 */
.star5_rating[data-rate="0.5"]:after {
    width: 10%;
}

/* 星0.5 */
.star5_rating[data-rate="0"]:after {
    width: 0%;
}

/* 星0 */

/* contact */
#contact {
    background-image: url(../pfpicture/194009.jpg);
    background-size: cover;
    background-position-y: bottom;
    background-attachment: fixed;
    padding-left: calc(300px + 8%);
    color: #F8F2FA;
    padding-bottom: 0;
}
.contact-mail {
    text-align: center;
}
.mail {
    font-size: 3rem;
    margin: 0 auto;
    color: #e6e6e6;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: #3A77AD;
    transition: all 0.5s;
}
.mail:hover {
    -webkit-text-stroke-color: #e6e6e6;
}

.contact-text,
form {
    width: 70%;
    margin: 0 auto;
}

/* input,
textarea {
    padding: 5px;
    border: 1px solid #020402;
    background-color: #F8F2FA;
    width: 100%;
}

.contact-text {
    margin-bottom: 20px;
}

.radio {
    width: 15px;
} */

footer {
    text-align: left;
    margin-top: 80px;
    padding-block: 10px;
}

/* レスポンシブ */
@media(max-width: 900px) {
    header {
        height: 80px;
        width: 100vw;
        padding: 0;
        background-color: rgba(255, 255, 255, 0);
    }
    .header-list {
        opacity: 0;
        visibility: hidden;
    }

    .header__container {
        opacity: 1;
        visibility: visible;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #0f5474;
        padding: 0 25px;
        /* margin-right: auto;
        margin-left: auto; */
    }

    /* ハンバーガーメニュー */
    .hamburger {
        opacity: 1;
        visibility: visible;
        width: 50px;
        height: 80px;
        position: relative;
        appearance: none;
        border: 0;
        padding: 0;
        margin: 0;
        cursor: pointer;
    }
    .hamburger span,
    .hamburger span::after,
    .hamburger span::before {
        position: absolute;
        display: block;
        content: "";
        width: 100%;
        height: 2px;
        background-color: #3A77AD;
        transition: all 0.5s;
    }
    .hamburger span::before {
        top: -10px;
    }
    .hamburger span::after {
        bottom: -10px;
    }
    .hamburger.open span {
        background-color: transparent;
    }
    .hamburger.open span::before {
        top: 0;
        transform: rotate(45deg);
    }

    .hamburger.open span::after {
        bottom: 0;
        transform: rotate(-45deg);
    }
/* メニュー */
    .nav {
        position: fixed;
        width: 80%;
        height: 100vh;
        top: 80px;
        right: -100%;
        background-color: #3A77AD;
        padding: 50px 0;
        transition: all 0.5s;
        border-top: 1px solid #fff;
    }
    .nav__list {
        margin-left: 0;
    }
    .nav__list a {
        display: block;
        font-size: 20px;
        color: #fff;
        text-decoration: none;
        padding: 20px 0 20px 50px;
        text-transform: uppercase;
    }
    .nav__list a:hover {
        color: #CCCCCC;
        background-color: #fff;
    }
    .nav.open {
        right: 0;
    }

    #top,
    #about,
    #works,
    #skill,
    #contact {
        padding-left: 8%;
    }

    /* モーダルウィンドウ */
    .modal-contents {
        flex-direction: column;
        margin-top: 30px;
    }
    .modal-text {
        width: 100%;
    }
    .modal-image {
        width: 100%;
    }
    .modal1 {
        overflow-x: auto;
    }

    /* skill */
    .skills {
        grid-auto-flow: row;
    }
}