/* ===================================
            全体
=================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #fffdfb;


    background-image:
       linear-gradient(rgba(168,216,234,.28) 1px, transparent 1px),
       linear-gradient(90deg, rgba(168,216,234,.28) 1px, transparent 1px);

    background-size: 120px 120px;

    color: #444;

    font-family: "Yu Gothic", sans-serif;
    line-height: 1.8;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}


/* ===================================
            TOP
=================================== */

.hero {
    height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    position: relative;
    overflow: hidden;

    background: transparent;
}

.hero h1 {
    font-family:"Times New Roman", "Yu Mincho", serif;

    font-size:92px;
    font-weight:400;
    letter-spacing:12px;

    color:#c7e5ff;

    text-shadow:
        3px 3px 0 #ffffff,
        0 8px 22px rgba(150,190,215,.22);
        
    margin-bottom:25px;
}

.hero h2 {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 20px;
}

.message {
    font-size: 18px;
    color: #777;
}

.hero-nav {
    margin-top: 55px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;

    flex-wrap: wrap;
}

.hero-nav a {
    position: relative;

    font-size: 18px;
    letter-spacing: 3px;
    color: #555;

    padding: 10px 0;

    transition: .3s;
}

.hero-nav a::after {
    content: "✦";

    position: absolute;

    left: 50%;
    bottom: -5px;

    transform: translateX(-50%) scale(0);

    color: #9fc7e4;

    font-size: 14px;

    line-height: 1;

    transition: .3s;
}

.hero-nav a:hover {
    color: #9ecfe8;
    transform: translateY(-4px);
}

.hero-nav a:hover::after ,
.hero-nav a.active::after{
    transform: translateX(-50%) scale(1);
}


/* ===================================
            ABOUT
=================================== */

.about {
    max-width: 1400px;
    margin: 0 auto;
    padding: 150px 80px;
}

.about h2 {
    text-align: center;
    font-size: 60px;
    font-weight: 300;
    margin-bottom: 90px;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-image {
    flex: 1;
}

.photo {
    width: 420px;
    height: 560px;

    object-fit: cover;

    border-radius: 10px;
}

.about-text {
    flex: 2;
}

.about-text h3 {
    font-size: 46px;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.school {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 35px;
}

.profile-text {
    font-size: 19px;
    color: #666;
    line-height: 2;
}


/* ===================================
            SKILLS
=================================== */

.skills {
    margin-top: 350px;

    max-width: 1300px;

    margin-left: auto;
    margin-right: auto;
}

.skills h3 {
    text-align: center;
    font-size: 58px;
    font-weight: 300;
    margin-bottom: 110px;
}

.skills-grid {
    display: grid;

    grid-template-columns: repeat(4, max-content);

    justify-content: center;

    column-gap: 110px;
    row-gap: 80px;
}

.skill-item {
    display: flex;
    flex-direction: column;

    align-items: flex-start;
}

.skill-header {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 16px;
}

.skill-header img {
    width: 52px;
    height: 52px;

    object-fit: contain;
}

.skill-header p {
    font-size: 24px;
    font-weight: 700;
    color: #555;
}

.stars {
    display: flex;

    gap: 3px;
}

.stars i {
    font-size: 36px;
    color: #F4D35E;
}


/* ===================================
            WORKS
=================================== */

.works {
    padding: 220px 0;
    overflow: hidden;
}

.works h2 {
    text-align: center;
    font-size: 60px;
    font-weight: 300;
    margin-bottom: 120px;
}

.works-row {
    margin-bottom: 150px;
}

.works-row h3 {
   font-family:"Cormorant Garamond", serif;

    font-size:35px;

    font-weight:600;

    letter-spacing:8px;

    color:#666;

    text-transform:uppercase;

    text-align:center;

    margin:70px 0 45px;
}

.works-scroll {
    overflow-x: auto;
    overflow-y: hidden;

    padding: 30px 0 50px;

    cursor: grab;

    scrollbar-width: none;
}

.works-scroll::-webkit-scrollbar {
    display: none;
}

.works-scroll.dragging {
    cursor: grabbing;
}

.works-track {
    display: flex;

    gap: 45px;

    width: max-content;
}

.work-link {
    position: relative;

    flex: 0 0 auto;

    height: 320px;
    width: auto;

    border-radius: 35px;
    background: #eef8fb;

    color: #444;
    font-size: 26px;
    letter-spacing: 1px;

    transition: .3s;
}

.work-link img {
    display: block;

    height: 100%;
    width: auto;

    object-fit: cover;

    border-radius: 35px;
}

.work-link span {
    position: absolute;

    top: 35px;
    left: -35px;

    padding: 8px 24px;

    border-radius: 999px;

    background: #fff;

    box-shadow: 0 8px 20px rgba(0, 0, 0, .15);

    white-space: nowrap;
}

.work-link:hover {
    transform: translateY(-8px);
    background: #dff2f8;
}


/* ===================================
            CAREER
=================================== */

.career {
    max-width: 1200px;
    margin: 0 auto;
    padding: 180px 80px 220px;
}

.career h2 {
    text-align: center;
    font-size: 60px;
    font-weight: 300;
    margin-bottom: 120px;
}

.career-list {
    position: relative;
}

.career-list::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 150px;

    width: 2px;
    height: calc(100% - 24px);

    background: #cfcfcf;
}

.career-item {
    display: grid;
    grid-template-columns: 110px 80px 1fr;
    align-items: start;

    margin-bottom: 70px;
}

.career-date {
    font-size: 20px;
    font-weight: 700;
    color: #555;
}

.career-dot {
    width: 22px;
    height: 22px;

    border-radius: 50%;

    background: #a8d8ea;

    margin: 6px auto 0;

    position: relative;
    z-index: 2;
}

.career-content h3 {
    font-size: 24px;
    font-weight: 500;
    color: #444;
}


/* ========================================
   CONTACT
======================================== */

.contact{
    width:100% !important;
    max-width:none !important;

    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    align-items:center;

    text-align:center;
}

.contact h2{
    font-family:"Cormorant Garamond","Times New Roman",serif;
    font-size:72px;
    font-weight:400;
    letter-spacing:8px;
    color:#b8daf8;

    margin-bottom:90px;
}

.contact-message{
    font-size:18px;
    color:#666;
    line-height:2;
    margin-bottom:55px;
}

.contact-links{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:70px;
    flex-wrap:wrap;
}

.contact-links a{
    font-size:16px;
    color:#555;
    text-decoration:none;
    display:flex;
    align-items:center;
    gap:10px;
}

.contact-links a:hover{
    color:#7fb7dd;
}

#contact {
    width: 100vw !important;
    max-width: none !important;

    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center !important;

    min-height: 110vh;

    text-align: center !important;
    padding: 140px 0;
}

#contact h2,
#contact .contact-message,
#contact .contact-links {
    width: 100%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

#contact .contact-links {
    display: flex;
    justify-content: center !important;
    align-items: center;
    gap: 70px;
}




/* ===================================
        レスポンシブ
=================================== */

@media (max-width: 900px) {

    .hero h1 {
        font-size: 48px;
    }

    .hero-nav {
        gap: 18px;
    }

    .hero-nav a {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .about {
        padding: 100px 30px;
    }

    .about-content {
        flex-direction: column;
    }

    .photo {
        width: 100%;
        max-width: 350px;
        height: auto;
    }

    .about-text {
        flex: 1;
    }

    .skills-grid {
        grid-template-columns: repeat(2, max-content);
        justify-content: center;
        gap: 60px;
    }

    .works {
        padding: 120px 0;
    }

    .works h2 {
        font-size: 48px;
    }

    .works-row h3 {
        font-size: 64px;
        padding: 0 30px;
    }

    .works-scroll {
        padding: 20px 0 40px;
    }

    .works-track {
        gap: 30px;
    }

    .work-link {
        width: 300px;
        height: 200px;
    }

    .work-link span {
        left: 15px;
        top: 20px;
        font-size: 16px;
    }

    .career {
        padding: 120px 30px 160px;
    }

    .career h2 {
        font-size: 48px;
    }

    .career-list::before {
        left: 20px;
    }

    .career-item {
        grid-template-columns: 50px 1fr;
        gap: 20px;
    }

    .career-date {
        grid-column: 2;
        font-size: 16px;
    }

    .career-dot {
        grid-column: 1;
        grid-row: 1 / span 2;
        margin: 4px auto 0;
    }

    .career-content {
        grid-column: 2;
    }

    .career-content h3 {
        font-size: 18px;
    }

    .contact {
        padding: 110px 30px 90px;
    }

    .contact h2 {
        font-size: 48px;
    }

    .contact-message {
        font-size: 16px;
    }

    .contact-links {
        flex-direction: column;
        gap: 25px;
    }

    .contact-links a {
        font-size: 16px;
    }
}

/* ===============================
   SECTION 基本レイアウト
=============================== */

main section:not(.contact) {
    width: min(1200px, 90%);
    margin: 0 auto;
    padding: 140px 0;
}

/* 見出し共通 */
main section > h2{
    font-family: "Times New Roman","Yu Mincho","serif";

    font-size: 72px;
    font-weight: 400;

    letter-spacing: 8px;

    color: #a9cdea;

    text-align: center;

    margin-bottom: 80px;

    text-shadow:
        2px 2px 0 #fff,
        0 6px 18px rgba(120,185,220,.18);
}

.skills h3,
.works h2,
.career h2,
.contact h2 {
    text-align: center;
    font-size: 60px;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 90px;
    color: #444;
}

/* WORKSだけ横スクロールなので幅制限しない */
.works {
    width: 100%;
    max-width: none;
}

/* CONTACTも背景色を横いっぱいにする */
.contact {
    width: 100%;
    max-width: none;
}

/* セクション見出しを統一 */
main section > h2,
.works h2,
#works h2,
#about h2,
#skills h2,
#career h2,
#contact h2 {
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    font-size: 72px;
    font-weight: 400;
    letter-spacing: 8px;
    color: #b8daf8;
    text-align: center;
    margin-bottom: 90px;

    text-shadow:
        2px 2px 0 #fff,
        0 6px 18px rgba(120,185,220,.18);
}

/* ========================================
   BACKGROUND STARS
======================================== */

.background-stars{

    position:fixed;

    inset:0;

    overflow:hidden;

    pointer-events:none;

    z-index:-1;
}

.background-star{

    position:absolute;

    color:#b8daf8;

    opacity:.5;

    filter: blue(.2px);

    animation:fall linear infinite;
}

@keyframes fall{

    from{

        transform:
        translateY(-10vh)
        translateX(0)
        rotate(0deg);
    }

    to{

        transform:
        translateY(110vh)
        translateX(25px)
        rotate(360deg);
    }

}