@charset "UTF-8";

/* loading animation */
#loading {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: var(--primary-white);
    align-items: center;
    z-index: 9999;
    opacity: 1; 
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}
    
.letter {
    font-family: Arial, sans-serif;
    font-size: 6rem;
    font-weight: bold;
    color: var(--primary-black);
    opacity: 0;
    transform: translateY(-50px);
    margin: 0 10px;
}
    
.letter:nth-child(1) {
    animation: fadeInDown 0.6s ease forwards 0.2s;
    margin-right: 30px;
}
    
.letter:nth-child(2) {
    animation: fadeInDown 0.6s ease forwards 0.4s;
    margin-right: 30px;
}
    
.letter:nth-child(3) {
    animation: fadeInDown 0.6s ease forwards 0.6s;
    margin-right: 30px;
}
    
.letter:nth-child(4) {
    animation: fadeInDown 0.6s ease forwards 0.8s;
    margin-right: 30px;
}
    
.letter:nth-child(5) {
    animation: fadeInDown 0.6s ease forwards 1s;
}
    
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    display: none;
}

/* fadeIn animation */
.fadeIn {
    transform: translate(0, -50px);
    opacity: 0;
    transition: 0.8s;
}

.fadeIn.animated {
    transform: translate(0, 0);
    opacity: 1;
}



/*==========================
Article
==========================*/
.article__header {
    display: block;
    justify-content: space-between;
    padding: 30px 20px 20px;
}

.titleSp {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    overflow: hidden;
}

.title__logo {
    width: 48.28%;
}

.circleTxt {
    width: 44.28%;
    animation: 20s linear infinite rotation1;
    padding-right: 20px;
}

/* circleTxt animation */
@keyframes rotation1 {
    0%{ transform:rotate(0);}
    100%{ transform:rotate(360deg); }
}

.scroll_parts {
    display: block;
    margin: 30px auto 0;
}

.scroll_name {
    font-family: "Jost", sans-serif;
    font-size: clamp(13px, 3.33vw, 20px);
    font-optical-sizing: auto;
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: normal;
    text-align: center;
}


/* 共通のスタイル */
.arrow-container {
    display: flex;
    flex-direction: column; /* 縦並び */
    align-items: center; /* 中央寄せ */
    font-size: 40px; /* 矢印の大きさ */
    margin-top: 6px;
}

/* 点滅アニメーション */
@keyframes blink1 {
    0%, 100% { opacity: 1; } /* 最初と最後は表示 */
    50% { opacity: 0; } /* 半分の時間で消える */
}

@keyframes blink2 {
    0%, 100% { opacity: 0; } /* 最初と最後は消えてる */
    50% { opacity: 1; } /* 半分の時間で表示 */
}

/* 奇数番目の矢印（最初の矢印が点滅する） */
.arrow:first-child {
    animation: blink1 1.5s infinite;
    width: 6.54%;
}

/* 偶数番目の矢印（次の矢印が点滅する） */
.arrow:last-child {
    animation: blink2 1.5s infinite;
    width: 6.54%;
    margin-top: 13px;
}

.article_lp {
    display: none;
}



/* article pc */
@media screen and (min-width:769px) {
    .article__header {
        padding: 0;
        width: 100%;
        height: 100vh;
        padding: 100px 80px 100px;
        display: flex; /* Flexbox を使用 */
        flex-direction: column; /* 子要素を縦に配置 */
        justify-content: space-between; /* 子要素間にスペースを均等に配置 */
    }

    .titleSp {
        display: none;
    }

    .article_lp {
        display: flex;
        justify-content: space-between;
    }
    
    .article_title {
        font-family: "Jost", sans-serif;
        font-size: clamp(116px, 13vw, 310px);
        font-optical-sizing: auto;
        font-weight: 500;
        letter-spacing: 0.03em;
        color: var(--primary-white);
        text-shadow: 5px 5px 0 var(--primary-accentGreen);
    }

    .portfolioLp {
        width: max(300px, 50vw);
    }

    .circleTxt {
        width: 19.51%;
        padding-right: 0;
    }

    .arrow:first-child {
        width: 2.7%;
    }
    
    /* 偶数番目の矢印（次の矢印が点滅する） */
    .arrow:last-child {
        animation: blink2 1.5s infinite;
        width: 2.7%;
        margin-top: 13px;
    }

    .scroll_parts {
        margin-top: auto; /* 上の要素を押し上げる */
        margin: 0; /* Reset margin */
    }

}




/*==========================
Profile
==========================*/
.section--profile {
    padding: 100px 20px 50px;
    background-color: var(--primary-lightGray);
}

.profile__block {
    text-align: center;
}

.profile__picture {
    box-shadow: 30px -30px 0 0 var(--primary-accentGreen);
    object-fit: cover;
    height: 100%;
}

.captionSp {
    font-family: "Jost", sans-serif;
    font-size: 3.7rem;
    font-optical-sizing: auto;
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: normal;
    text-align: center;
    margin-top: 10px;
}

.captionSp__txt {
    font-family: "Jost", sans-serif;
    font-size: 1.6rem;
    font-optical-sizing: auto;
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: normal;
    text-align: center;
    margin-top: -10px;
}

.profileBox {
    margin-top: 10px;
}

.profileBox__inner {
    border: 1px solid var(--primary-black);
    box-sizing: border-box;
    padding: 19px;
    background-color: var(--primary-white);
    margin-top: 10px;
}

.topicBox {
    display: block;
    padding-left: 5px;
    border-bottom: 3px solid var(--primary-accentGreen);
}

.topic {
    font-family: "Jost", sans-serif;
    font-size: 3rem;
    font-optical-sizing: auto;
    font-weight: 500;
    letter-spacing: 0.03em;
    line-height: normal;
}

.profileName__group {
    display: flex;
    align-items: center;
    margin-top: 7px;
}

.name__circle {
    font-family: "Jost", sans-serif;
    font-size: 1.5rem;
    font-optical-sizing: auto;
    font-weight: 400;
    line-height: normal;
    padding: 13px 6.5px;
    background-color: var(--primary-accentGreen);
    border-radius: 50px;
    margin-right: 5px;
}

.profile_name {
    font-family: "Jost", sans-serif;
    font-size: 2rem;
    font-optical-sizing: auto;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 0.05em;
}

.profile_txt {
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.05em;
    margin-top: 7px;
}

.section--works {
    padding: 50px 20px;
}


/* =========== Profile pc  =============*/
@media screen and (min-width:769px){
    .captionSp__group {
        display: none;
    }
    
    .profileBox__flex {
        display: flex;
        margin: 0 auto;
        justify-content: center;
        z-index: 1;
        position: relative;
    }
    
    .profile__block {
        padding-top: 0;
        object-fit: cover;
        margin-right: 90px;
    }
    
    .profileBox {
        padding: 0;
        margin-top: 0;
        width: 34.84%;
    } 
    
    .profileBox__inner {
        padding: 29px;
        width: 446px;
        margin-top: 0;
    }
    
    .walkCenter {
        text-align: center;
    }
    
    .topicBox {
        display: block;
        padding-left: 0px;
        border-bottom: 5px solid var(--primary-accentGreen);
    }
    
    .topic {
        font-size: 5rem;
    }
    
    .profileName__group {
        margin-top: 20px;
        flex-wrap: wrap;
    }
    
    .name__circle {
        line-height: 1.5;
        padding: 13.5px 7.5px;
        margin-right: 10px;
    }
    
    .profile_name {
        font-size: 2.7rem;
        font-weight: 500;
        line-height: 1.5;
    }
    
    .profile_txt {
        font-size: 1.6rem;
        margin-top: 10px;
    }
    
    .mainCaption {
        color: #E6F392;
        font-family: "Jost", sans-serif;
        font-size: 16rem;
        font-optical-sizing: auto;
        font-weight: 400;
        line-height: 85px;
        letter-spacing: 0.05em;
        margin-top: 15px;
        text-align: center;
    }

    .caption--sub {
        font-size: 6.8rem;
    }

    .section--profile {
        position: relative;
        padding: 150px 0 337px;
    }

    .bgMaintxt {
        text-align: center;
        z-index: -1;
        position: absolute;
        transform: translate(-50%, -50%);
        bottom: -20%;
        left: 50%;
        content: '';
        background-image: url(../image/bgcaption.svg);
        width: 86.04%;
    }
}





/*==========================
Works
==========================*/
.section--works {
    background-color: var(--primary-darkGray);
}

.topic--works {
    color: var(--primary-white);
    border-bottom: 3px solid var(--primary-accentGreen);
}

.worksContent {
    margin-top: 50px;
}

.worksContent:first-of-type {
    margin-top: 47px;
}

.worksTopic {
    color: var(--primary-white);
    font-family: "Jost", sans-serif;
    font-size: clamp(25px, 2.43vw, 35px);
    font-optical-sizing: auto;
    font-weight: 300;
    line-height: normal;
    letter-spacing: 0.05em;
    margin-top: 15px;
}

.works__picture {
    width: 100%;
}

/* works pc */
@media screen and (min-width:769px) {
    .section--works {
        padding: 100px 80px 150px;
        position: relative;
        z-index: 1;
    }

    .topic--works {
        border-bottom: 5px solid var(--primary-accentGreen);
    }

    .worksGroup {
        display: flex;
        justify-content: center;
        margin-top: 100px;
    }

    .worksContent {
        margin-top: 0;
    }
    
    .worksContent:first-of-type {
        margin-top: 0;
    }

    .worksGroup {
        gap: 0 40px;
    }
    
    .hiddenBox {
        overflow: hidden;
        position: relative;
    }

    .hiddenBox::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        transition: background-color 0.3s;
        pointer-events: none; /* 画像のクリックを妨げないように */
    }

    .works__picture:hover {
        transform: scale(1.1, 1.1);
        transition: 0.3s all;
    }

    .worksContent {
        /* margin-top: 50px; */
        position: relative; /* 追加 */
    }
      
    .hiddenBox {
        overflow: hidden;
        position: relative; /* 追加 */
    }

    .hiddenBox:hover::after {
        background-color: rgba(255, 255, 255, 0.6);/* ホバー時に色を表示 */
    }

    .works__picture {
        width: 100%;
        transform: translateZ(0); /* GPU加速を追加 */
        backface-visibility: hidden; /* 追加 */
        will-change: transform; /* ブラウザに変化を事前に通知 */
        transition: transform 0.3s ease-out;
    }
      
    .works__picture:hover {
        transform: scale(1.1) translateZ(0); /* 少し控えめなスケールに変更 */
    }
}



