@charset "UTF-8";
* {
    /* outline: 1px solid red; */
    font-size: 18px;
}
img {
    width: 100%;
}
input, textarea, select, button {
    border: 1px solid black;
    border-radius: 5px;
}
/* ------header */
.menu {
    width: 100vw;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    opacity: 0.95;
    z-index: 1;
}
.menu-box {
    display: flex;
    width: 80vw;
    margin: auto;
    justify-content: space-evenly;
}
.menu-box li {
    width: 20vw;
    padding: 1rem;
    text-align: center;
    font-weight: bold;
    position: relative;
}
.menu-box li:nth-child(n+2) {
    border-left: 1px solid;
}
.menu-box li a {
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateY(-50%);
    line-height: 2rem;
}
.menu-box li a:hover {
    color: crimson;
}
/* -------main */
.topImage {
    height: 100vh;
    position: relative;
}
.topImage-title {
    position: absolute;
    top: 8%;
    left: 3%;
    display: flex;
    align-items: center;
}
.topImage-icon {
    position: relative;
    overflow: hidden;
    width: 5vw;
    height: 5vw;
    border-radius: 50%;
}
.topImage-icon img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%,-50%);
    width: 8vw;
    object-fit: cover;
}
.title {
    font-size: 30px;
    padding-left: 1em;
}
.name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    font-size: 40px;
    margin: auto;
}
/* about */
.about {
    background-color: rgb(40, 131, 184,0.68);    
}
.about-wrapper {
    max-width: 1000px;
    margin: auto;
}
.profile {
    display: flex;
    padding-top: 5vw;
    justify-content: space-evenly;
    align-items: center;
}
.profile-image {
    /* margin: auto; */
    margin-top: 3vw;
    margin-bottom: 3vw;
    position: relative;
    overflow: hidden;
    width: 20vw;
    height: 20vw;
    border-radius: 50%;
}
.profile-image img {
    position: absolute;
    width: 40vw;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
.style-title li,.style-content li {
    line-height: 3em;
}
.style-title li {
    font-weight: bold;
}
.skill-title {
    padding: 5vh;
    font-size: 50px;
    text-align: center;
}
.skill-type {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
}
.skill-type-title {
    width: 100%;
    font-size: 32px;
}
.skill-item {
    width: 30vw;
    margin-top: 10vh;
    margin-bottom: 10vh;
    position: relative;
}
.skill-item p {
    margin-top: 1rem;
    text-align: start;
}
.skill-icon {
    width: 10vw;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}
.skill-item-name {
    margin-top: 12vw;
    font-size: 20px;
}
/* works */
.works {
    background-color: rgb(190, 255, 255);
}
.works-wrapper {
    max-width: 1000px;
    margin: auto;
}
.portfolio {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    text-align: center;
}
.portfolio-title {
    width: 100%;
    text-align: center;
    font-size: 50px;
    padding-top: 0.5em;
    /* animation: title 2s ease; */
}
/* @keyframes title {
    0% {transform: translateX(-50%);}
    100% {transform: translate(0);}
} */
.portfolio-item {
    width: 30%;
}
.portfolio-item-img {
    margin: auto;
    margin-top: 3vw;
    margin-bottom: 3vw;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 25vw;
    border-radius: 30px;
}
.portfolio-item-img img {
    width: 33vw;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    transition: all 0.3s;
}
.portfolio-item-img img:hover {
    width: 35vw;
}
/* contact */
.form {
    width: 60vw;
    margin: auto;
    transform: translateX(15vw);
}
.contact-name label,.contact-address label,.contact-content label {
    display: flex;
    align-items: center;
}
.contact-name label::after,.contact-address label::after,.contact-content label::after {
    content: '必須';
    font-size: 10px;
    color: white;
    background-color: red;
    margin-left: 1em;
    height: 2em;
    padding-left: 0.5em;
    padding-right: 0.5em;
}
.contact-content {
    margin-bottom: 1rem;
}
.submit input {
    font-size: 15px;
    padding-left: 0.5em;
    padding-right: 0.5em;
    margin-bottom: 1rem;
}
/* ------footer */
.footer {
    text-align: center;
    text-shadow: 0px 0px 5px black;
    color: rgb(255, 255, 255);
    letter-spacing: 0.1em;
    width: 80%;
    margin: auto;
    margin-top: 5vw;
    border-top: 1px solid black;
    padding: 5vw;
}
/* ------------モバイル対応------------ */
@media screen and (max-width: 750px) {
    * {
        font-size: 12px;
    }
}