html {
    font-size: 14px;
}
@media screen and (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

a {
    color: #333;
    text-decoration: none;
}

.cmn-title {
    text-align: center;
    font-weight: bold;
}

.sub-title {
    display: block;
    color: #38B6FF;
}

.main-title {
    display: block;
    font-size: 1.5rem;
}

/* header */
.header{
    max-width: 1024px;
    margin: 0 auto;
    padding: 20px 16px;
}

.header-list {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.header-item {
    font-size: 1.2rem;
}

.header-item a:hover{
    text-decoration: underline;
    color: #38B6FF;
}

@media screen and (min-width: 768px) {
    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 80px;
        padding: 0;
    }

    .header-list {
        margin-top: 0;
    }

    .header-item {
        margin-left: 2.5rem;
    }
}

/* firstview */
.firstview {
    background-image: url(../image/portfolio.jpg);
    max-width: 1024px;
    margin: 0 auto;
    background-size: cover;
    background-position: center;
    height: 700px;
}

.firstview-message {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    height: 100%;
    letter-spacing: 0.3rem;
}

.firstview-message .blue {
    color: #38B6FF;
}

@media screen and (min-width: 768px) {
    .firstview-message {
        font-size: 4.5rem;
        letter-spacing: 0.5rem;
    }
}

/* about */
.about {
    max-width: 800px;
    margin: 120px auto 0;
    padding: 0 16px;
}

.about-wrapper {
    margin-top: 60px;
}

.about-image {
    text-align: center;
}

.about-image img{
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
}

.about-text {
    margin-top: 40px;
}

.about-subtitle {
    /* font-size: 1.5rem; */
    font-weight: bold;
    color: #38B6FF;
    margin-bottom: 0.5rem;
}

.about-career {
    margin-top: 30px;
}

@media screen and (min-width: 768px) {
    .about-wrapper {
        display: flex;
    }

    .about-text {
        margin-top: 0;
        margin-left: 80px;
    }
}

/* skills */
.skills {
    max-width: 1024px;
    margin: 120px auto 0;
    padding: 0 16px;
}

.skill-list {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px 20px;
}

.skill-image {
    height: 180px;
    text-align: center;
}

.skill-name {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}

.skill-desc {
    margin-top: 1rem;
}

@media screen and (min-width: 768px) {
    .skill-list {
        max-width: 500px;
        margin: 60px auto 0;
    }

    .skill-item {
        width: 230px;
    }
}

@media screen and (min-width: 1024px) {
    .skill-list {
        max-width: 100%;
    }
}

/* works */
.works {
    max-width: 900px;
    margin: 120px auto 0;
}

.work-list {
    margin-top: 60px;
}

.work-item {
    margin-top: 45px;
}

.work-item.reverse {
    flex-direction: row-reverse;
}

.work-image {
    width: 350px;
    height: 250px;
    margin: 0 auto;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-text {
    margin-top: 2rem;
    padding: 0 15px 0 30px;
}

.work-text a{
    text-decoration: underline;
}

.work-text a:hover{
    color: #38B6FF;
}

.work-desc {
    margin-top: 1rem;
}

@media screen and (min-width: 768px) {
    .work-item {
        display: flex;
        gap: 0 50px;
    }

    .work-image {
        width: 50%;
    }

    .work-text {
        width: 50%;
        padding: 0;
    }

}

/* contact */
.contact {
    margin: 120px 0;
    text-align: center;
}

.contact-text {
    margin-top: 60px;
}

.contact-mail a:hover{
    color: #38B6FF;
}

.contact-mail a{
    font-size: 1.5rem;
    font-weight: bold;
    color: #38B6FF;
}

.contact-mail a:hover{
    opacity: 0.5;
    text-decoration: underline;
}

.icon-area{
    margin-top: 30px;
}

.icon-area .fa-brands{
    font-size: 2rem;
    margin: 0 1rem;
}

/* footer */
.footer {
    background-color: #ddd;
    padding: 30px 16px 10px;
}

.footer-list {
    display: flex;
    justify-content: space-between;
    max-width: 400px;
    margin: 0 auto;
}

.footer-item {
    font-size: 1.2rem;
}

.footer-item a:hover{
    text-decoration: underline;
    color: #38B6FF;
}

.copyright {
    margin-top: 2rem;
    text-align: center;
}