body {
    margin: 0;
    padding: 0;
    font-family: 'Jost', sans-serif;
    overflow: hidden;
    position: relative;
}

p,h1,h2,h3,h4,h5,h6 {
    margin: 0;
}

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

/* スクロールバーのカスタマイズ */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ff5252, #26a69a);
}

/* Firefox用のスクロールバー */
* {
    scrollbar-width: auto;
    scrollbar-color: #fff #000;
}

.main {
    width: 100vw;
    height: 100vh;
    position: relative;
}

.main_bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

.main_bg_img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

.main_left {
    position: absolute;
    top: 0;
    left: 0;
    width: 12.5vw;
}

.main_right {
    position: absolute;
    top: 0;
    right: 0;
    width: 12.5vw;
}

.fv-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.fv-title, .end-title {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(30px);
    font-size: 6.25vw;
    color: #fff;
    font-weight: bold;
    text-align: center;
    line-height: 1.5;
    width: 100%;
    letter-spacing: 0.05em;
    text-shadow: .5vw .5vw .5vw rgba(0, 0, 0, 1);
    opacity: 0;
    transition: all 0.8s ease-out;
}

.fv-text {
    position: fixed;
    top: 85%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(30px);
    font-size: 1.5vw;
    color: #fff;
    font-weight: bold;
    background-color: #000;
    border-radius: 0.52vw;
    border: .3vw solid #fff;
    padding: 1.2vw 2vw;
    height: 8vw;
    width: 55%;
    line-height: 1.8;
    opacity: 0;
    transition: all 0.8s ease-out;
    z-index: 10000;
}

.fv-guide {
    position: fixed;
    top: 72%;
    left: 71%;
    font-size: 1.2vw;
    color: #fff;
    text-shadow: .3vw .3vw .3vw rgba(0, 0, 0, 1);
    opacity: 0;
    transform: translate(-50%, -50%) translateY(30px);
    transition: all 0.8s ease-out;
}

.fv-link {
    position: fixed;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5vw;
    color: #fff;
    border-bottom: .3vw solid #fff;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: bold;
    text-shadow: .3vw .3vw .3vw rgba(0, 0, 0, 1);
}

.end-link {
    position: fixed;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5vw;
    color: #fff;
    border-bottom: .3vw solid #fff;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: bold;
    text-shadow: .3vw .3vw .3vw rgba(0, 0, 0, 1);
    opacity: 0;
    transition: all 0.8s ease-out;
}

.fv-link:hover, .end-link:hover {
    opacity: 0.8;
}

/* スクロールアニメーション - フェードイン */
.scroll-animation.animate-in {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}

/* スクロールアニメーション - フェードアウト */
.scroll-animation.animate-out {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-30px);
}

.memory {
    position: fixed;
    top: 16%;
    left: 26.5%;
    color: #fff;
    font-size: 1.41vw;
    text-shadow: .2vw .2vw .2vw rgba(0, 0, 0, 1);
    font-weight: bold;
    opacity: 0;
    transform: translate(-50%, -50%) translateY(30px);
    transition: all 0.8s ease-out;
    z-index: 9999;
}

.memory h2 {
    margin-bottom: .6vw;
    font-size: 1.21vw;
    margin-left: 5vw;
}

.memory-content {
    background-color: #000;
    border-radius: 0.52vw;
    border: .3vw solid #fff;
    padding: 1vw;
    width: 80%;
    height: 21%;
}

.memory-content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .0vw;
}

.memory-content-text {
    position: absolute;
    top: 18%;
    left: 48%;
    color: #fff;
    opacity: 0;
    font-family: 'Noto Sans JP', sans-serif;
    width: 100vw;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 1.5vw;
    text-shadow: .2vw .2vw .2vw rgba(0, 0, 0, 1);
    transition: all 0.8s ease-out;
    transform: translate(-50%, -50%) translateY(30px);
}

.memory-content-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.memory-content-grid-item-text {
    margin: .5vw 0;
    font-size: 1.01vw;
}

.memory-content-grid-item-img {
    width: 2.6vw;
    height: 2.6vw;
    object-fit: cover;
}

.about, .skill, .work, .why, .thought, .vision {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: none;
}

.big-title-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0;
    transition: all 0.8s ease-out;
}

.big-title-sphere-img {
    position: fixed;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(30px);
    width: 5vw;
    height: 5vw;
    object-fit: cover;
    opacity: 0;
    transition: all 0.8s ease-out;
}

.big-title-sphere-text{
    position: fixed;
    top: 72%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(30px);
    font-size: 1.4625vw;
    color: #fff;
    font-weight: bold;
    opacity: 0;
    text-align: center;
    transition: all 0.8s ease-out;
}

.big-title-sphere-text.animate-in, .big-title-sphere-img.animate-in {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}

.big-title-sphere-text.animate-out, .big-title-sphere-img.animate-out {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-30px);
}

.about-big-title, .skill-big-title, .work-big-title, .why-big-title, .thought-big-title, .vision-big-title, .last-big-title {
    position: fixed;
    top: 35%;
    left: 50%;
    font-size: 3.5vw;
    color: #fff;
    text-align: center;
    text-shadow: .5vw .5vw .5vw rgba(0, 0, 0, 1);
    width: 100%;
    opacity: 0;
    transform: translate(-50%, -50%) translateY(30px);
    transition: all 0.8s ease-out;
}

.about-text-first {
    z-index: 9998;
    display: none;
}

.about-text-second {
    z-index: 9997;
    display: none;
}

.about-text-third {
    z-index: 9996;
    display: none;
}

.sec-title {
    position: absolute;
    top: 10%;
    right: -3%;
    transform: translate(-50%, -50%);
    font-size: 1.3625vw;
    color: #fff;
    background-color: #000;
    border-radius: 0.52vw;
    border: .3vw solid #fff;
    padding: 1.2vw 2vw;
    font-weight: bold;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.5;
    letter-spacing: 0.05em;
    text-shadow: .5vw .5vw .5vw rgba(0, 0, 0, 1);
    box-sizing: border-box;
    opacity: 0;
    transform: translate(-50%, -50%) translateY(30px);
    transition: all 0.8s ease-out;
}

.sec-text {
    position: fixed;
    bottom: -3%;
    left: 50.3%;
    transform: translate(-50%, -50%);
    font-size: 1.5625vw;
    color: #fff;
    font-weight: bold;
    background-color: #000;
    border-radius: 0.52vw;
    border: .3vw solid #fff;
    padding: 1vw 2vw;
    font-weight: bold;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    letter-spacing: 0.05em;
    text-shadow: .5vw .5vw .5vw rgba(0, 0, 0, 1);
    box-sizing: border-box;
    width: 65%;
    height: 21%;
    opacity: 0;
    transform: translate(-50%, -50%) translateY(30px);
    transition: all 0.8s ease-out;
}

.skill {
    display: none;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 1vw;
}

.skill-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.skill-grid-first .skill-grid-item:first-child img,
.skill-grid-first .skill-grid-item:nth-child(2) img{
    width: 4vw;  
    object-fit: cover;
}

.skill-grid-first .skill-grid-item:nth-child(3) img{
    width: 5vw;  
    object-fit: cover;
    margin-bottom: .3vw;
}

.skill-grid-first .skill-grid-item:nth-child(4) img{
    width: 7vw;  
    object-fit: cover;
    margin-bottom: 1.4vw;
}

.skill-grid-second .skill-grid-item:first-child img,
.skill-grid-second .skill-grid-item:nth-child(4) img,
.skill-grid-second .skill-grid-item:nth-child(5) img,
.skill-grid-second .skill-grid-item:nth-child(7) img,
.skill-grid-second .skill-grid-item:nth-child(8) img
{
    width: 4vw;  
    object-fit: cover;
}

.skill-grid-second .skill-grid-item:nth-child(6) img{
    width: 5vw;  
    object-fit: cover;
}

.skill-grid-second .skill-grid-item:nth-child(2) img{
    width: 6vw;  
    object-fit: cover;
    margin-bottom: .7vw;
    margin-top: .7vw;
}

.skill-grid-second .skill-grid-item:nth-child(3) img,
.skill-grid-second .skill-grid-item:nth-child(9) img{
    width: 7vw;  
    object-fit: cover;
    margin-top: .9vw;
    margin-bottom: .9vw;
}

.skill-grid-third .skill-grid-item:first-child img,
.skill-grid-third .skill-grid-item:nth-child(5) img{
    width: 4vw;  
    object-fit: cover;
    margin-bottom: .4vw;
}

.skill-grid-third .skill-grid-item:nth-child(2) img{
    width: 6vw;  
    object-fit: cover;
    margin-bottom: .2vw;
}

.skill-grid-third .skill-grid-item:nth-child(3) img
{
    width: 12vw;  
    object-fit: cover;
    margin-bottom: .9vw;
    margin-top: .9vw;
}

.skill-grid-third .skill-grid-item:nth-child(4) img
{
    width: 14vw;  
    object-fit: cover;
}



.skill-text-first, .skill-text-second, .skill-text-third{
    position: fixed;
    top: 84%;
    left: 49.7%;
    transform: translate(-50%, -50%);
    font-size: 1.5625vw;
    color: #fff;
    font-weight: bold;
    background-color: #000;
    border-radius: 0.52vw;
    border: .3vw solid #fff;
    width: 60%;
    height: 8vw;
    padding-top: 4vw;
    padding-left: 1vw;
    padding-right: 1vw;
    opacity: 0;
    transform: translate(-50%, -50%) translateY(30px);
    transition: all 0.8s ease-out;
    display: none;
}

.skill-text-first-text, .skill-text-second-text, .skill-text-third-text {
    position: fixed;
    top: 0;
    left: 0;
    font-size: 1.5625vw;
    color: #fff;
    font-weight: bold;
    padding: 1vw 2vw;
    font-weight: bold;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    letter-spacing: 0.05em;
    box-sizing: border-box;
}

.skill-text-fourth {
    display: none;
}

.work, .why, .thought, .vision, .last, .end     {
    display: none;
}

.work-text-first, .work-text-second, .work-text-third ,.work-text-fourth, .why-text-first, .why-text-second, .why-text-third, .why-text-fourth{
    display: none;
}

.thought-text-first, .thought-text-second, .thought-text-third {
    display: none;
}

.vision-text-first, .vision-text-second, .vision-text-third {
    display: none;
}

.last-text-first, .last-text-second, .last-text-third {
    display: none;
}

/* Aboutセクション用のアニメーション */
.fv-guide.animate-in, .sec-title.animate-in, .sec-text.animate-in, .memory.animate-in, .memory-content-text.animate-in, .skill.animate-in, .skill-text-first.animate-in, .skill-text-second.animate-in, .skill-text-third.animate-in, .work-text-first.animate-in, .work-text-second.animate-in, .work-text-third.animate-in, .work-text-fourth.animate-in, .fv-title.animate-in, .about-big-title.animate-in, .skill-big-title.animate-in, .work-big-title.animate-in, .big-title-container.animate-in, .why-big-title.animate-in, .thought-big-title.animate-in, .thought-text-first.animate-in, .thought-text-second.animate-in, .thought-text-third.animate-in, .vision-big-title.animate-in, .vision-text-first.animate-in, .vision-text-second.animate-in, .vision-text-third.animate-in, .last-big-title.animate-in, .sphere-rainbow-container.animate-in, .sphere-rainbow-text.animate-in, .last-text-first.animate-in, .last-text-second.animate-in, .last-text-third.animate-in, .end-title.animate-in, .end-link.animate-in {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}

.fv-guide.animate-out, .sec-title.animate-out, .sec-text.animate-out, .memory.animate-out, .memory-content-text.animate-out, .skill.animate-out, .skill-text-first.animate-out, .skill-text-second.animate-out, .skill-text-third.animate-out, .work-text-first.animate-out, .work-text-second.animate-out, .work-text-third.animate-out, .work-text-fourth.animate-out, .about-big-title.animate-out, .skill-big-title.animate-out, .work-big-title.animate-out, .big-title-container.animate-out, .why-big-title.animate-out, .thought-big-title.animate-out, .thought-text-first.animate-out, .thought-text-second.animate-out, .thought-text-third.animate-out, .vision-big-title.animate-out, .vision-text-first.animate-out, .vision-text-second.animate-out, .vision-text-third.animate-out, .last-big-title.animate-out, .sphere-rainbow-container.animate-out, .sphere-rainbow-text.animate-out, .last-text-first.animate-out, .last-text-second.animate-out, .last-text-third.animate-out, .end-title.animate-out, .end-link.animate-out {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-30px);
}

/* All Correct セクションのスタイル */
.all-correct {
    position: fixed;
    top: 57%;
    left: 53%;
    transform: translate(-50%, -50%);
    display: none;
    justify-content: center;
    align-items: center;
    gap: 2vw;
    opacity: 0;
    transition: all 0.8s ease-out;
    z-index: 10000;
    width: 100%;
    height: 100%;
}

.all-correct-text {
    position: fixed;
    top: 25%;
    left: 48%;
    transform: translate(-50%, -50%);
    font-size: 2.0625vw;
    color: #fff;
    font-weight: bold;
}

.all-correct-sphere {
    width: 8vw;
    height: 8vw;
    object-fit: cover;
    opacity: 0;
    transform: translate(-50%, -50%) translateY(30px);
    transition: all 0.8s ease-out;
}

/* All Correct アニメーション */
.all-correct.animate-in {
    opacity: 1;
}

.all-correct-sphere-about.animate-in, .all-correct-sphere-skill.animate-in, .all-correct-sphere-work.animate-in, .all-correct-sphere-why.animate-in, .all-correct-sphere-thought.animate-in, .all-correct-sphere-vision.animate-in {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}

/* 画面外への移動アニメーション */
.all-correct.move-to-top {
    transform: translate(-50%, -50%) translateY(-100vh);
    transition: all 0.5s ease-in;
}

.all-correct-sphere.move-to-top {
    transform: scale(0.8) translateY(-100vh);
    transition: all 0.5s ease-in;
}

.sphere-rainbow-container {
    width: 100%;
    height: 100vh;
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
}

.sphere-rainbow-text {
    position: fixed;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(30px);
    font-size: 1.4625vw;
    color: #fff;
    font-weight: bold;
    text-align: center;
    opacity: 0;
    transition: all 0.8s ease-out;
}

.sphere-rainbow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 5vw;
    height: 5vw;
    object-fit: cover;
    opacity: 0;
    transform: translate(-50%, -50%) translateY(30px);
    transition: all 0.8s ease-out;
}

.sphere-rainbow.animate-in, .sphere-rainbow-text.animate-in {
    opacity: 1;
}

.sphere-rainbow.animate-out, .sphere-rainbow-text.animate-out {
    opacity: 0;
}


/* about.html */
.about-content {
    width: 100%;
    height: 100%;
    position: relative;
}

.about-message {
    position: fixed;
    top: 44%;
    left: 50%;
    width: 70%;
    transform: translate(-50%, -50%);
}

.message_board {
    width: 100%;
    transition: all 0.8s ease-out;
}

.message_name {
    position: absolute;
    top: 3%;
    left: 7.5%;
    font-size: 1.4625vw;
    color: #fff;
    font-weight: bold;
    transition: all 0.8s ease-out;
    display: none;
}

.message_text {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 95%;
    height: 60%;
    display: none;
    opacity: 0;
    font-size: 1.4625vw;
    color: #fff;
    font-weight: bold;
    line-height: 1.8;
    transform: translate(-50%, -50%) translateY(30px);
    transition: all 0.8s ease-out;
}

.message_text.animate-in {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}

.message_text.animate-out {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-30px);
}

.message_name.animate-in , .message_board.animate-in {
    opacity: 1;
    
}

.message_name.animate-out , .message_board.animate-out {
    opacity: 0;
   
}