@charset "UTF-8";

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 30px;
}

/* -------------------
       ヘッダー------------------ */
.header {

    margin: 0 auto;
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);

}

.header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__inner p {
    font-size: 1rem;
    color: #555;
}

.header__nav a {
    padding: 16px;
    text-decoration: none;
    color: #555;
}

.header__nav a:hover {
    color: #000;
}



/* ---ロゴ--- */

.header__logo {
    margin: 0;
}

.header__logo a {
    text-decoration: none;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
}


/* ---ナビ--- */
.header__list {
    display: flex;
    gap: 32px;
    list-style: none;
}



/* -------------------
       hero------------------ */
.hero {
    padding: 20px 0 40px;
    text-align: center;
}

.hero h1 {
    font-size: 2rem;
    margin: 20px 0;
}

.hero img {
    max-width: 1200px;
    width: 100%;
    max-height: 580px;

    object-fit: cover;
    object-position: center bottom;
}

.hero p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 24px;
}

/* -------------------
       about------------------ */

.about__title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

.about__inner {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about__image {
    flex-shrink: 0;
}

.about__image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
}

.about__text {
    padding: 40px;
    font-size: 1.2rem;
    line-height: 1.7;


}

/* -------------------
       skills------------------ */


.skills__title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

.skills__icons {
    gap: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    text-align: center;
}

.skills__icon {
    padding: 48px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.skills__icon p {
    font-size: 1.2rem;
    margin-top: 20px;
}

/* -------------------
       works------------------ */
.js-fade {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.js-fade.is-show {
    opacity: 1;
    transform: translateY(0);
}



.works__title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

.works__list {
    gap: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    text-align: center;
}


.work-card {
    padding: 48px;
    border-radius: 12px;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);

    position: relative;
}

.work-card__image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: top;
}

.work-card__title {
    margin-top: 20px;
}

.work-card__tech {
    margin: 10px 0;
    font-size: 0.9rem;
    color: #666;
}

.work-card__list {
    list-style: none;

}

.work-card__list li {
    margin-bottom: 6px;
}

.work-card__list li::before {
    content: "– ";
    color: #999;
}

.work-card__list li {
    margin-bottom: 6px;
}

.work-card__link {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 20px;
    border: 1px solid #333;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.9rem;
}

.work-card__link:hover {
    background: #333;
    color: #fff;
}

.work-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.work-card__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 12px;
    font-size: 0.75rem;
    background: #333;
    color: #fff;
    border-radius: 999px;
    opacity: 0.9;
}

/* -------------------
       contact ------------------ */
.contact {
    padding: 80px 30px;
    text-align: center;
    max-width: 660px;
    margin: 0 auto;
}

.contact__title {
    margin-bottom: 30px;
    font-size: 2rem;

}

.contact__item {
    text-align: left;
    margin-bottom: 24px;
}

.contact__item label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.contact__item input,
.contact__item textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #000;
    border-radius: 4px;
}

.contact__btn {
    color: #333;
    padding: 12px 60px;
    border: 1px solid #333;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 20px;
    transition: opacity 0.3s;
}

.contact__btn:hover {
    opacity: 0.8;
    background: #333;
    color: #fff;
}

.contact-note {
    margin-top: 20px;
}

/* -------------------
       footer ------------------ */
.footer {
    height: 80px;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
    color: #666;
}

.footer__name {
    background: #f7f7f7;
    padding: 20px 0;
    font-weight: 600;
}

/* -------------------
       SP ------------------ */

@media screen and (max-width: 768px) {
    .container {
        padding: 30px 20px;
    }

    .header__inner {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    .header__list {
        gap: 15px;
        font-size: 14px;
    }

    .hero h1 {
        margin-bottom: 20px;
    }

    .about__inner {
        flex-direction: column;
        text-align: center;
    }

    .about__image img {
        width: 180px;
        height: 180px;
        border-radius: 50%;
        object-fit: cover;
    }

    .about__text {
        padding: 0 10px;
        text-align: left;
        margin-top: 20px;
        line-height: 1.8;
        letter-spacing: 0.05em;
    }

    .skills__icons,
    .works__list {
        grid-template-columns: 1fr;
    }

    .work-card {
        padding: 24px;
    }

    .contact {
        padding: 40px 20px;
    }

}