/* すべてのページに適用される設定 */
html {
    background-color: #FAFAF8;
    color: #4A4A4A;
    font-family: "Noto Sans JP", sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.8; 
}

/* すべてのページに適用 - ヘッダー */
header {
    position: fixed;
    top: 40px;
    left: 80px;
    padding: 0;
    z-index: 10;
    animation: fadeIn 1.5s ease;
}

nav ul {
    list-style: none;
    padding: 0;
    margin-top: 60px;
}

nav li {
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: #4A4A4A;
    transition: 0.3s;
}

a:hover {
    opacity: 0.5; 
    letter-spacing: 0.08em;
}

/* すべてのページに適用 - ヒーロー */

/* すべてのページに適用 - メイン */
main {
    padding: 80px;
}

.section {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    scroll-margin-top: 100px;
}
/* VALUE */
.value-text {
    font-size: 32px;
    font-weight: 300;
    line-height: 2.1;
    
}

.note {
    margin-top: 120px;
    margin-bottom: 120px;
    font-size: 28px;
    color: #DDDDDD;
    letter-spacing: 0.08em;
}

h2 {
    font-size: 38px;
    font-weight: 400;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 12px;
    color: #B8B8B8;
    letter-spacing: 0.08em;
    margin-top: -10px;
}
/* WORKS */
.works-list {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 80px;
}

.work-item img {
    width: 420px;
    transition: 0.4s;
}

.work-item img:hover {
    transform: translateY(-10px);
    opacity: 0.9;
}

.work-item p {
    margin-top: 10px;
    font-size: 14px;
    letter-spacing: 0.08em;
    color: #888888;
}

.more-link {
    width: 100%;
    text-align: right;
    margin-top: 40px;
}

.more-link a {
    color: #4A4A4A;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 0.08em;
    transition: 0.3s;
}

.more-link a:hover {
    opacity: 0.5;
    letter-spacing: 0.12em;
}

/* ABOUT */
#about {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-bg {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center 75%;
    opacity: 0.08;
    filter: blur(2px);
    z-index: 0; 

}

.about-inner {
    position: relative;
    z-index: 1;

    opacity: 0;
    transform: translateY(20px);

    animation: fadeInSoft 2s ease forwards;
    animation-delay: 0.3s;
}

.about-text {
    margin-top: 60px;
    font-size: 24px;
    font-weight: 300;
    line-height: 2.2;
}

.about-note {
    margin-top: 60px;
    font-size: 22px;
    color: #666666;
    font-weight: 300;
}

.skill-list {
    margin-top: 80px;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;

    font-size: 14px;
    letter-spacing: 0.08em;
    color: #888888;
}

@keyframes fadeInSoft {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* contact */
.sns-links {
    margin-top: 80px;

    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.sns-links a {
    font-size: 14px;
    color: #B8B8B8;
    letter-spacing: 0.08em;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* すべてのページに適用 - フッター */
footer {
    position: relative;
    padding: 80px 40px 40px;
}

#page-top {
    text-align: center;
    margin-top: 80px;
    opacity: 0.5;
    transition: 0.3s;
}

#page-top a {
    color: #B8B8B8;
}

#page-top i {
    font-size: 24px;
}

#page-top:hover {
    opacity: 1;
    transform: translateY(-5px);
}


/* コピーライト */
.copyright {
    text-align: right;

    font-size: 12px;
    color: #DDDDDD;

    letter-spacing: 0.08em;
}

/* 個別のスタイル */
/* index.html */
.hero {
    height: 100vh;
    display: flex;
    font-weight: 300;
    justify-content: center;
    align-items: center;

    font-size: 50px;
    letter-spacing: 0.2em;
    text-align: center;
    opacity: 0;
    animation: fadeIn 2s ease forwards;
    animation-delay: 0.5s;
}

/* heroアニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* works.html */
.works-page {
    padding-top: 10px;
}

.works-page h1 {
    font-size: 38px;
    font-weight: 400;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.category-title {
    margin-top: 30px;
    margin-bottom: 30px;

    font-size: 20px;
    font-weight: 300;
    letter-spacing: 0.2em;

    color: #4A4A4A;
}

.works-list {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-bottom: 140px;
}

.work-item {
    text-align: center;
}

.work-item img {
    width: 330px;
    transition: 0.4s;
}

.work-item img:hover {
    transform: translateY(-10px);
    opacity: 0.9;
}

.work-item p {
    margin-top: 18px;

    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.12em;

    color: #888888;
}

.work-item .canva-image {
    width: 230px;
}

.work-video {
    width: 230px;
    transition: 0.4s;
}

.work-video:hover {
    transform: translateY(-10px);
    opacity: 0.9;
}

/* モバイル対応 */
@media (max-width: 767px) {
    .hero {
        height: 70vh;
        font-size: 32px;
        letter-spacing: 0.12em;
        padding: 0 30px;
        line-height: 2;
    }
    
    header {
        position: static;
        padding: 40px 20px;
        text-align: center;
    }

    nav ul {
        margin-top: 40px;
    }

    main {
        padding: 40px 20px;
    }

    .value-text {
        font-size: 20px;
        line-height: 2.2;
        letter-spacing: 0.08em;

        padding: 0 20px;
    }

    .works-list {
        flex-direction: column;
        align-items: center;
        gap: 60px;
        margin-bottom: 100px;
    }

    .work-item img,
    .work-item .canva-image,
    .work-video {
        width: 90%;
        max-width: 320px;
    }

    .category-title {
        margin-top: 80px;
    }

    #about {
        width: 100%;
        overflow: hidden;
        min-height: auto;
        padding: 80px 0 120px;

    }

    .about-inner {
        width: 100%;
        box-sizing: border-box;
        padding: 50px 24px;
    }

    .about-text {
        font-size: 16px;
        line-height: 2;
        padding: 0;
    }

    .about-note {
        font-size: 16px;
        line-height: 2;
        padding: 0;
    }

    .about-bg {
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center;
        opacity: 0.08;
    }

    .skill-list {
        padding: 0 20px;
        gap: 12px;
        font-size: 12px;
    }

}