/* --- 共通設定 --- */
:root{
    /* カラー定義 */
    --color-main: #75E6DA; /* 水色 */
    --color-sub1: #007744; /* 緑 */
    --color-sub2: #F9F1F0; /* ベージュ */
    --color-sub3: #000000; /* 黒 */
    --color-sub4: #F49728; /* オレンジ */
    --color-sub5: #FFFFFF; /* 白 */
    
    --color-sub3-rgb: 0,0,0;
    --color-sub4-rgb: 244,151,40;
    --color-sub5-rgb: 255,255,255;
    
    /* サイズ定義 */
    --size-header: 100px;
    --size-footer: 250px;
    --size-body-top: 80px;
}

/* --- 全体 --- */
html{
    font-size: 18px;
}

body{
    background-color: var(--color-main);
    width: 100%;
    margin: 0;
    margin-top: var(--size-body-top);
    padding: 0;
    color: var(--color-sub1);
    font-family: "Poppins", "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

h1{
    font-size: 42px;
}

h2{
    font-size: 82px;
}

h3{
    font-size: 32px;
}

.center_arrow{
    background-color: var(--color-sub1);
    width: 1px;
    height: 60%;
    margin: 0;
    padding: 0;
    position: fixed;
    top: 0;
    left: 50%;
    opacity: 0.3;
    z-index: -1;
}

.center_arrow:before{
    content: '';
    width: 4px;
    height: 4px;
    position: absolute;
    bottom: 0;
    left: -2px;
    border-bottom: solid 1px var(--color-sub1);
    border-right: solid 1px var(--color-sub1);
    transform: rotate(45deg);
}

.center_arrow:after{
    content: 'Scroll';
    display: inline-block;
    font-size: 10px;
    position: absolute;
    bottom: 10px;
    transform: rotate(90deg);
}

/* --- ヘッダー --- */
header{
    width: 100%;
    height: var(--size-header);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    position: fixed;
    top: 0;
    z-index: 100;
}

.header_title{
    margin: 0;
    padding: 0 50px;
    color: var(--color-sub3);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: var(--size-header);
}

.header_title_smt{
    display: none;
}

.menu_link,
.menu_link:visited,
.menu_link:hover,
.menu_link:active{
    color: inherit;
    text-decoration: none;
}

.outer-menu{
    position: fixed;
    top: 0;
    right: 0;
    z-index: 101;
    
    .checkbox-toggle{
        position: absolute;
        top: 0;
        right: 0;
        z-index: 102;
        cursor: pointer;
        width: var(--size-body-top);
        height: var(--size-body-top);
        opacity: 0;
        margin: 0;
        
        &:checked{
            & + .hamburger{
                > div{
                    transform: rotate(135deg);
                    
                    &:before,
                    &:after{
                        top: 0;
                        transform: rotate(90deg);
                    }
                    
                    &:after{
                        opacity: 0;
                    }
                }
            }
            
            & ~.menu{
                pointer-events: auto;
                visibility: visible;
                
                > div{
                    transform: scale(1);
                    transition-duration: .75s;
                    
                    > div{
                        opacity: 1;
                        transition: opacity .4s ease .4s;
                    }
                }
            }
        }
        
        &:checked:hover + .hamburger > div{
            transform: rotate(225deg);
        }
    }
    
    .hamburger{
        position: absolute;
        top: 0;
        right: 0;
        z-index: 101;
        width: 60px;
        height: 70px;
        padding: 5px 10px;
        background: white;
        border-radius: 0 .12em .12em 0;
        cursor: pointer;
        transition: box-shadow .4s ease;
        backface-visibility: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        
        > div{
            position: relative;
            flex: none;
            width: 100%;
            height: 2px;
            background: var(--color-sub3);
            transition: all .4s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            
            &:before,
            &:after{
                content: '';
                position: absolute;
                z-index: 101;
                top: -10px;
                right: 0;
                width: 100%;
                height: 2px;
                background: var(--color-sub3);
                transition: all .4s ease;
            }
            
            &:after{
                top: 10px;
            }
        }
    }
    
    .menu{
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        visibility: hidden;
        overflow: hidden;
        backface-visibility: hidden;
        outline: 1px solid transparent;
        display: flex;
        align-items: center;
        justify-content: center;
        
        > div{
            width: 300vw;
            height: 300vw;
            color: white;
            background: var(--color-sub1);
            border-radius: 50%;
            transition: all .4s ease;
            flex: none;
            transform: scale(0);
            backface-visibility: hidden;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            
            > div{
                text-align: center;
                max-width: 90vw;
                max-height: 100vh;
                opacity: 0;
                transition: opacity .4s ease;
                overflow-y: auto;
                flex: none;
                display: flex;
                align-items: center;
                justify-content: center;
                
                > ul{
                    list-style: none;
                    padding: 0 1em;
                    margin: 0;
                    display: block;
                    max-height: 100vh;
                    
                    > li{
                        padding: 0;
                        margin: 1em;
                        font-size: 1.5rem;
                        display: block;
                        
                        > a{
                            position: relative;
                            display: inline;
                            cursor: pointer;
                            transition: color .4s ease;
                            
                            &:hover{
                                color: white;
                                
                                &:after{
                                    width: 100%;
                                }
                            }
                            
                            &:after{
                                content: '';
                                position: absolute;
                                z-index: 101;
                                bottom: -.15em;
                                left: 0;
                                width: 0;
                                height: 2px;
                                background: white;
                                transition: width .4s ease;
                            }
                        }
                    }
                }
            }
        }
    }
}


/* --- フッター --- */
footer{
    background-color: var(--color-sub1);
    width: calc(100% - 100px);
    height: var(--size-footer);
    padding: 50px;
    display: flex;
    flex-direction: column;
    color: var(--color-sub2);
}

.sns_icon{
    display: flex;
    align-items: center;
}

.icon{
    display: inline-block;
    margin: 0 10px;
    font-size: 24px;
}

#cloud_works, #cloud_works a{
    color: var(--color-sub2);
}

#Mail:after{
    content: 'Mail　|';
    margin-left: 15px;
}

#Instagram:after{
    content: 'Instagram　|';
    margin-left: 15px;
}

#X:after{
    content: 'X';
    margin-left: 15px;
}


/* --- コンテンツ --- */
main{
    width: 100%;
    margin: 0;
    padding: 0;
}

.back_area{
    width: 100%;
    height: 100%;
    z-index: 1;
}

.touka{
    width: 100%;
    height: 100%;
    background-color: rgba(var(--color-sub5-rgb), 0.2); /* 白・透明度0.2 */
    position: relative;
    z-index: 1;
}

.button{
    background-color: var(--color-sub5);
    margin: 50px auto;
    padding: 10px 50px;
    display: inline-block;
    border: solid 1px var(--color-sub1);
    color: var(--color-sub1);
    text-decoration: none;
}

.button:hover{
    transform: translateY(-2px);
    box-shadow: 0 2px 2px rgba(var(--color-sub3-rgb), 0.2); /* 黒・透明度0.8 */
}

.button:active{
    transform: translateY(2px);
    box-shadow: none;
}

.title_right{
    margin-bottom: 0;
    text-shadow: -5px 0 5px var(--color-sub5);
    text-align: right;
}

.title_left{
    margin-bottom: 0;
    text-shadow: 5px 0 5px var(--color-sub5);
    text-align: left;
}

.title_center{
    margin-bottom: 0;
    text-shadow: 0 5px 5px var(--color-sub5);
    text-align: center;
}

.marker{
    background: linear-gradient(transparent 70%, rgba(var(--color-sub4-rgb),0.7) 70%);
}

/* --- FV --- */
#FV{
    width: 100%;
}

#FV_back_slider{
    width: 95vw;
    height: 95vh;
    margin: 0 auto;
    padding: 0;
    background-position: center center;
    background-size: cover;
    z-index: 1;
}

#top_title{
    display: inline-block;
    position: absolute;
    top: 80px;
    left: 100px;
    color: var(--color-sub5);
    font-weight: 500;
    text-shadow: 0 2px 4px var(--color-sub3);
    z-index: 1;
}

#top_title:after{
    content: '― 心弛びな場所を作る ―';
    display: block;
    font-size: 18px;
    font-weight: 400;
}

#top_text{
    display: inline-block;
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: var(--color-sub5);
    z-index: 1;
}

/* --- About --- */
#About{
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    position: relative;
}

#profile_text{
    width: 50%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

#profile_text p{
    padding: 0 80px;
}

#profile_img{
    width: 35%;
    aspect-ratio: 1;
    margin: 80px 7.5%;
    padding: 0;
}

#Instagram_base{
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#Instagram_arrow{
    background-color: var(--color-sub5);
    width: 200px;
    height: 4px;
    margin: auto;
    position: relative;
    box-shadow: 0 5px 5px rgba(var(--color-sub3-rgb), 0.5); /* 黒・透明度0.5 */
    animation: blink 1.5s ease-in-out infinite alternate;
}

#Instagram_arrow:before{
    content: 'MORE HERE';
    width: 100%;
    margin-bottom: 10px;
    display: block;
    position: absolute;
    bottom: 100%;
    color: var(--color-sub5);
    font-size: 24px;
    text-align: center;
    text-shadow: 0 5px 5px rgba(var(--color-sub3-rgb), 0.5); /* 黒・透明度0.5 */
}

#Instagram_arrow:after{
    content: '';
    width: 10px;
    height: 10px;
    position: absolute;
    bottom: -5px;
    right: 0;
    border-top: solid 4px var(--color-sub5);
    border-right: solid 4px var(--color-sub5);
    transform: rotate(45deg);
    box-shadow: 5px 0 5px rgba(var(--color-sub3-rgb), 0.5); /* 黒・透明度0.5 */
    clip-path: polygon(100% 0%, 100% 100%, 0% 0%);
}

#Instagram_icon{
    width: 40%;
    aspect-ratio: 1;
    margin: 50px 7.5% 50px 2.5%;
    padding: 0;
    display: inline-block;
    position: relative;
    border-radius: 50%;
}

#Instagram_icon:before{
    content: '';
    width: calc(100% + 15px);
    aspect-ratio: 1;
    position: absolute;
    top: -17.5px;
    left: -17.5px;
    border: solid 10px var(--color-sub5);
    border-radius: 50%;
}

#Instagram_icon:hover{
    transform: translateY(-5px);
    
    &:before{
        box-shadow: 0 5px 5px rgba(var(--color-sub3-rgb), 0.2); /* 黒・透明度0.8 */
    }
}

#Instagram_icon:active{
    transform: translateY(5px);
    
    &:before{
        box-shadow: none;
    }
}

#Instagram_icon img{
    width: 100%;
    aspect-ratio: 1;
    margin: 0;
    border-radius: 50%;
}

#Instagram_text{
    width: 50%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 24px;
}

#message{
    background-color: var(--color-sub4);
    width: 95vw;
    margin: 0 auto;
    padding: 10px 0;
    position: absolute;
    bottom: -80px;
    left: 2.5vw;
    color: var(--color-sub5);
    text-align: center;
    font-size: 24px;
    font-weight: 500;
    border-radius: 10px;
}

#message_smt{
    display: none;
}

#About .back_area{
    position: absolute;
    top: 0;
    z-index: -1;
}

.mountain{
    width: 100%;
    height: 100%;
    padding: 0;
    display: flex;
    align-items: flex-end;
    position: absolute;
    overflow: hidden;
}

.mountain li{
    width: 300px;
    height: 92%;
    border-top-right-radius: 50%;
    border-top-left-radius: 50%;
    display: block;
    position: absolute;
    list-style: none;
    background-color: rgba(var(--color-sub5-rgb), 0.5); /* 白・透明度0.5 */
    animation: mountain 80s linear infinite;
}

.mountain li:nth-child(2){
    width: 400px;
    height: 70%;
    left: 250px;
}

.mountain li:nth-child(3){
    width: 200px;
    height: 80%;
    left: 600px;
}

.mountain li:nth-child(4){
    width: 200px;
    height: 60%;
    left: 850px;
}

.mountain li:nth-child(5){
    width: 300px;
    height: 45%;
    left: 950px;
}

.mountain li:nth-child(6){
    width: 200px;
    height: 80%;
    left: 1200px;
}

.mountain li:nth-child(7){
    width: 300px;
    height: 92%;
    left: 1450px;
}

.mountain li:nth-child(8){
    width: 400px;
    height: 70%;
    left: 1700px;
}

.mountain li:nth-child(9){
    width: 200px;
    height: 80%;
    left: 2050px;
}

.mountain li:nth-child(10){
    width: 200px;
    height: 60%;
    left: 2300px;
}

.mountain li:nth-child(11){
    width: 300px;
    height: 45%;
    left: 2400px;
}

.mountain li:nth-child(12){
    width: 200px;
    height: 80%;
    left: 2650px;
}


/* --- Works --- */
#Works{
    width: 100%;
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

.display_right{
    width: 95%;
    margin: 0 2.5%;
    display: flex;
    flex-direction: row;
}

.display_left{
    width: 95%;
    margin: 0 2.5%;
    display: flex;
    flex-direction: row-reverse;
}

.display_wide{
    width: 90%;
    margin: 0 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.display_right div,
.display_right img,
.display_left div,
.display_left img{
    width: 40%;
    margin: auto 5%;
}

.display_right div h3,
.display_right div p,
.display_left div h3,
.display_left div p,
.display_wide h3,
.display_wide p,
.display_wide #site_list{
    width: 100%;
    margin-bottom: 0;
}

.display_right div,
.display_left div{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.display_wide #site_list{
    text-align: center;
}

#site_list .tile{
    width: 30%;
    margin: 50px 1.5% 0 1.5%;
    display: inline-block;
    position: relative;
}

.tile img{
    width: 100%;
}

.tile:hover{
    & > img{
        box-shadow: 0 5px 5px rgba(var(--color-sub3-rgb), 0.2); /* 黒・透明度0.8 */
        transform: translateY(-5px);
    }
}

.tile:active{
    & > img{
        transform: translateY(5px);
        box-shadow: none;
    }
}

#site1:before{
    content: '#001';
    font-size: 16px;
    position: absolute;
    bottom: 100%;
    left: 0;
    color: var(--color-sub5);
    text-shadow: 0 2px 2px rgba(var(--color-sub3-rgb), 0.2); /* 黒・透明度0.8 */
}

#site2:before{
    content: '#002';
    font-size: 16px;
    position: absolute;
    bottom: 100%;
    left: 0;
    color: var(--color-sub5);
    text-shadow: 0 2px 2px rgba(var(--color-sub3-rgb), 0.2); /* 黒・透明度0.8 */
}

#site3:before{
    content: '#003';
    font-size: 16px;
    position: absolute;
    bottom: 100%;
    left: 0;
    color: var(--color-sub5);
    text-shadow: 0 2px 2px rgba(var(--color-sub3-rgb), 0.2); /* 黒・透明度0.8 */
}

.wave{
    position: relative;
    overflow-y: hidden;
}

#waveCanvas{
    position: absolute;
    top: 0;
    left: -100px;
    width: 120%;
    height: 500px;
    z-index: -1;
    transform: rotate(16deg);
}

#waveCanvas2{
    position: absolute;
    top: 520px;
    left: -100px;
    width: 120%;
    height: 500px;
    z-index: -1;
    transform: rotate(196deg);
}

#waveCanvas3{
    position: absolute;
    top: 600px;
    left: -100px;
    width: 120%;
    height: 500px;
    z-index: -1;
    transform: rotate(-15deg);
}

#waveCanvas4{
    position: absolute;
    top: 700px;    /* #work_4 div .buttonを消したら500に修正 */
    left: 0;
    width: 100%;
    height: 500px;
    z-index: -1;
}

#waveCanvas5{
    position: absolute;
    top: 1200px;
    left: 0;
    width: 100%;
    height: 500px;
    z-index: -1;
    transform: rotate(180deg);
}

/* 作成したら削除 */
#work_2 div .button{
    display: none;
}

#work_4 div .button{
    display: none;
}
/* ------------- */

/* --- Sake --- */
#Sake{
    width: 100%;
    margin-bottom: 80px;
    overflow-x: hidden;
}
.display_wide #sake_list{
    width: 100%;
    text-align: center;
}

#sake_list .tile{
    width: 30%;
    margin: 50px 1.5% 0 1.5%;
    display: inline-block;
    position: relative;
}

.tile img{
    width: 100%;
}

#sake1:before{
    content: '#001';
    font-size: 16px;
    position: absolute;
    bottom: 100%;
    left: 0;
    color: var(--color-sub5);
    text-shadow: 0 2px 2px rgba(var(--color-sub3-rgb), 0.2); /* 黒・透明度0.8 */
}

#sake2:before{
    content: '#002';
    font-size: 16px;
    position: absolute;
    bottom: 100%;
    left: 0;
    color: var(--color-sub5);
    text-shadow: 0 2px 2px rgba(var(--color-sub3-rgb), 0.2); /* 黒・透明度0.8 */
}

#sake3:before{
    content: '#003';
    font-size: 16px;
    position: absolute;
    bottom: 100%;
    left: 0;
    color: var(--color-sub5);
    text-shadow: 0 2px 2px rgba(var(--color-sub3-rgb), 0.2); /* 黒・透明度0.8 */
}

#sake4:before{
    content: '#004';
    font-size: 16px;
    position: absolute;
    bottom: 100%;
    left: 0;
    color: var(--color-sub5);
    text-shadow: 0 2px 2px rgba(var(--color-sub3-rgb), 0.2); /* 黒・透明度0.8 */
}

#sake5:before{
    content: '#005';
    font-size: 16px;
    position: absolute;
    bottom: 100%;
    left: 0;
    color: var(--color-sub5);
    text-shadow: 0 2px 2px rgba(var(--color-sub3-rgb), 0.2); /* 黒・透明度0.8 */
}

#sake6:before{
    content: '#006';
    font-size: 16px;
    position: absolute;
    bottom: 100%;
    left: 0;
    color: var(--color-sub5);
    text-shadow: 0 2px 2px rgba(var(--color-sub3-rgb), 0.2); /* 黒・透明度0.8 */
}

#sake7:before{
    content: '#007';
    font-size: 16px;
    position: absolute;
    bottom: 100%;
    left: 0;
    color: var(--color-sub5);
    text-shadow: 0 2px 2px rgba(var(--color-sub3-rgb), 0.2); /* 黒・透明度0.8 */
}

#sake8:before{
    content: '#008';
    font-size: 16px;
    position: absolute;
    bottom: 100%;
    left: 0;
    color: var(--color-sub5);
    text-shadow: 0 2px 2px rgba(var(--color-sub3-rgb), 0.2); /* 黒・透明度0.8 */
}

#sake9:before{
    content: '#009';
    font-size: 16px;
    position: absolute;
    bottom: 100%;
    left: 0;
    color: var(--color-sub5);
    text-shadow: 0 2px 2px rgba(var(--color-sub3-rgb), 0.2); /* 黒・透明度0.8 */
}

/* --- About_detail --- */
#About_detail{
    width: 100%;
    margin-bottom: 200px;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

#About_detail .back_area{
    position: absolute;
    top: 0;
    z-index: -1;
}

#About_detail h2{
    width: 100%;
    margin: 0;
}

#About_detail #profile_img{
    width: 70%;
    margin: 0 25% 0 5%;
    z-index: 1;
}

#profile{
    background-color: var(--color-sub1);
    width: 40%;
    position: absolute;
    top: 30%;
    right: 5%;
    z-index: 2;
    color: var(--color-sub5);
}

#name{
    font-size: 24px;
    font-weight: 700;
}

#name:after{
    content: '― Matsuda Kenta';
    display: inline;
    margin-left: 10px;
    font-size: 16px;
    font-weight: 400;
}

#profile p{
    margin: 50px 70px;
}

.point{
    width: 50%;
    margin: 30px 50% 0 10%;
    z-index: 1;
}

#about_back{
    width: 50%;
    position: absolute;
    top: 60%;
    right: 0;
}

/* --- アニメーション --- */
/* About背景：山が右から左に流れる */
@keyframes mountain{
    0%{
        transform: translateX(0);
    }
    100%{
        transform: translateX(-1450px);
    }
}

/* Instaramアイコン誘導：点滅して左右に動く */
@keyframes blink{
    0%{
        opacity: 0;
        transform: ranslateX(0);
    }
    50%{
        transform: translateX(20px);
    }
    100%{
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- タブレット用 -------- */
@media screen and (max-width: 1280px){
    /* --- 全体 --- */
    html{
        font-size: 16px;
    }

    .center_arrow{
        background-color: var(--color-sub1);
        width: 1px;
        height: 40%;
        margin: 0;
        padding: 0;
        position: fixed;
        top: 0;
        left: 50%;
        opacity: 0.3;
        z-index: -1;
    }
    .center_arrow:after{
        content: 'Swipe';
    }

    /* ヘッダー */
    .outer-menu{
        .menu{
            > div{
                > div{
                    > ul{
                        > li{
                            font-size: 2.0rem;
                        }
                    }
                }
            }
        }
    }

    /* --- コンテンツ --- */
    .button{
        transform: translateY(-2px);
        box-shadow: 0 2px 2px rgba(var(--color-sub3-rgb), 0.2); /* 黒・透明度0.8 */
    }

    /* --- About --- */
    #profile_text p{
        padding: 0 20px;
    }

    #profile_img{
        width: 40%;
        margin: auto 5%;
    }

    #Instagram_text{
        font-size: 18px;
    }

    #Instagram_arrow{
        width: 150px;
    }

    #Instagram_icon:before{
        box-shadow: 0 5px 5px rgba(var(--color-sub3-rgb), 0.2); /* 黒・透明度0.8 */
    }

    #message{
        background-color: var(--color-sub4);
        width: 95vw;
        margin: 0 auto;
        padding: 10px 0;
        position: absolute;
        bottom: -80px;
        left: 2.5vw;
        color: var(--color-sub5);
        text-align: center;
        font-size: 18px;
        font-weight: 500;
        border-radius: 10px;
    }

    /* --- Works --- */
    #site_list .tile{
        width: 30%;
        margin: 50px 1% 0 1%;
    }

    .tile img{
        box-shadow: 0 5px 5px rgba(var(--color-sub3-rgb), 0.2); /* 黒・透明度0.8 */
        transform: translateY(-5px);
    }

    #waveCanvas{
        width: 130%;
    }
    
    #waveCanvas2{
        width: 130%;
    }
    
    #waveCanvas3{
        width: 130%;
    }
    
    #waveCanvas4{
        position: absolute;
        top: 700px;    /* #work_4 div .buttonを消したら500に修正 */
        left: 0;
        width: 100%;
        height: 500px;
        z-index: -1;
    }
    
    #waveCanvas5{
        position: absolute;
        top: 1200px;
        left: 0;
        width: 100%;
        height: 500px;
        z-index: -1;
        transform: rotate(180deg);
    }

    /* --- Sake --- */
    #sake_list .tile{
        margin: 50px 1% 0 1%;
    }

    /* --- About_detail --- */
    #profile{
        width: 45%;
        right: 2.5%;
        font-size: 14px;
    }

    #name{
        font-size: 20px;
    }

    #name:after{
        display: block;
        font-size: 12px;
    }

    #profile p{
        margin: 20px 30px;
    }

    .point{
        width: 45%;
        margin: 30px 55% 0 10%;
    }

    /* --- アニメーション --- */
    /* Instaramアイコン誘導：点滅して左右に動く */
    @keyframes blink{
        0%{
            opacity: 0;
            transform: ranslateX(0);
        }
        50%{
            transform: translateX(10px);
        }
        100%{
            opacity: 1;
            transform: translateX(0);
        }
    }
}


/* --- スマホ用 -------- */
@media screen and (max-width: 768px){
    /* --- 全体 --- */
    html{
        font-size: 16px;
    }
    
    body{
        background-color: var(--color-main);
        width: 100%;
        margin: 0;
        margin-top: var(--size-body-top);
        padding: 0;
        color: var(--color-sub1);
        font-family: "Poppins", "Noto Sans JP", sans-serif;
        font-optical-sizing: auto;
        font-weight: 400;
        font-style: normal;
    }
    
    h1{
        font-size: 34px;
    }
    
    h2{
        font-size: 62px;
    }
    
    h3{
        font-size: 22px;
    }
    
    .center_arrow{
        background-color: var(--color-sub1);
        width: 1px;
        height: 40%;
        margin: 0;
        padding: 0;
        position: fixed;
        top: 0;
        left: 50%;
        opacity: 0.3;
        z-index: -1;
    }
    
    .center_arrow:before{
        content: '';
        width: 4px;
        height: 4px;
        position: absolute;
        bottom: 0;
        left: -2px;
        border-bottom: solid 1px var(--color-sub1);
        border-right: solid 1px var(--color-sub1);
        transform: rotate(45deg);
    }
    
    .center_arrow:after{
        content: 'Swipe';
        display: inline-block;
        font-size: 10px;
        position: absolute;
        bottom: 10px;
        transform: rotate(90deg);
    }
    
    /* --- ヘッダー --- */
    .header_title{
        display: none;
    }

    .header_title_smt{
        display: initial;
        margin: 0;
        padding: 10px 10px;
        color: var(--color-sub3);
        font-size: 20px;
        font-weight: 800;
        line-height: 30px;
        letter-spacing: 0.1em;
    }
    
    .menu_link,
    .menu_link:visited,
    .menu_link:hover,
    .menu_link:active{
        color: inherit;
        text-decoration: none;
    }
    
    .outer-menu{
        position: fixed;
        top: 0;
        right: 0;
        z-index: 101;
        
        .checkbox-toggle{
            position: absolute;
            top: 0;
            right: 0;
            z-index: 102;
            cursor: pointer;
            width: var(--size-body-top);
            height: var(--size-body-top);
            opacity: 0;
            margin: 0;
            
            &:checked{
                & + .hamburger{
                    > div{
                        transform: rotate(135deg);
                        
                        &:before,
                        &:after{
                            top: 0;
                            transform: rotate(90deg);
                        }
                        
                        &:after{
                            opacity: 0;
                        }
                    }
                }
                
                & ~.menu{
                    pointer-events: auto;
                    visibility: visible;
                    
                    > div{
                        transform: scale(1);
                        transition-duration: .75s;
                        
                        > div{
                            opacity: 1;
                            transition: opacity .4s ease .4s;
                        }
                    }
                }
            }
            
            &:checked:hover + .hamburger > div{
                transform: rotate(225deg);
            }
        }
        
        .hamburger{
            position: absolute;
            top: 0;
            right: 0;
            z-index: 101;
            width: 60px;
            height: 70px;
            padding: 5px 10px;
            background: white;
            border-radius: 0 .12em .12em 0;
            cursor: pointer;
            transition: box-shadow .4s ease;
            backface-visibility: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            
            > div{
                position: relative;
                flex: none;
                width: 100%;
                height: 2px;
                background: var(--color-sub3);
                transition: all .4s ease;
                display: flex;
                align-items: center;
                justify-content: center;
                
                &:before,
                &:after{
                    content: '';
                    position: absolute;
                    z-index: 101;
                    top: -10px;
                    right: 0;
                    width: 100%;
                    height: 2px;
                    background: var(--color-sub3);
                    transition: all .4s ease;
                }
                
                &:after{
                    top: 10px;
                }
            }
        }
        
        .menu{
            position: fixed;
            top: 0;
            right: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            visibility: hidden;
            overflow: hidden;
            backface-visibility: hidden;
            outline: 1px solid transparent;
            display: flex;
            align-items: center;
            justify-content: center;
            
            > div{
                width: 300vw;
                height: 300vw;
                color: white;
                background: var(--color-sub1);
                border-radius: 50%;
                transition: all .4s ease;
                flex: none;
                transform: scale(0);
                backface-visibility: hidden;
                overflow: hidden;
                display: flex;
                align-items: center;
                justify-content: center;
                
                > div{
                    text-align: center;
                    max-width: 90vw;
                    max-height: 100vh;
                    opacity: 0;
                    transition: opacity .4s ease;
                    overflow-y: auto;
                    flex: none;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    
                    > ul{
                        list-style: none;
                        padding: 0 1em;
                        margin: 0;
                        display: block;
                        max-height: 100vh;
                        
                        > li{
                            padding: 0;
                            margin: 1em;
                            font-size: 1.5rem;
                            display: block;
                            
                            > a{
                                position: relative;
                                display: inline;
                                cursor: pointer;
                                transition: color .4s ease;
                                
                                &:hover{
                                    color: white;
                                    
                                    &:after{
                                        width: 100%;
                                    }
                                }
                                
                                &:after{
                                    content: '';
                                    position: absolute;
                                    z-index: 101;
                                    bottom: -.15em;
                                    left: 0;
                                    width: 0;
                                    height: 2px;
                                    background: white;
                                    transition: width .4s ease;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
    
    
    /* --- フッター --- */
    footer{
        width: calc(100% - 20px);
        height: var(--size-footer);
        padding: 30px 10px;
    }
    
    .icon{
        margin: 0 5px;
        font-size: initial;
    }
    
    #cloud_works, #cloud_works a{
        font-size: 12px;
    }
    
    #Mail:after{
        content: 'Mail |';
        margin-left: 10px;
        font-size: 12px;
    }
    
    #Instagram:after{
        content: 'Instagram |';
        margin-left: 10px;
        font-size: 12px;
    }
    
    #X:after{
        content: 'X';
        margin-left: 10px;
        font-size: 12px;
    }
    
    
    /* --- コンテンツ --- */            
    .button{
        margin: 20px auto;
        box-shadow: 0 2px 2px rgba(var(--color-sub3-rgb), 0.2); /* 黒・透明度0.8 */
    }
        
    .button:active{
        transform: translateY(2px);
        box-shadow: none;
    }
        
    /* --- FV --- */    
    #top_title{
        top: 20px;
        left: 30px;
    }
    
    #top_title:after{
        font-size: 16px;
    }
    
    #top_text{
        bottom: 20px;
        right: 20px;
    }
    
    /* --- About --- */
    #About{
        flex-direction: column;
    }
    
    #profile_text{
        width: 100%;
    }
    
    #profile_text p{
        padding: 0 20px;
    }
    
    #profile_img{
        width: 80%;
        margin: 40px 10%;
    }
    
    #Instagram_base{
        width: 100%;
        flex-direction: column;
    }
    
    #Instagram_arrow{
        width: 4px;
        height: 50px;
        box-shadow: 5px 0 5px rgba(var(--color-sub3-rgb), 0.5); /* 黒・透明度0.5 */
    }
    
    #Instagram_arrow:before{
        margin-bottom: 0;
        margin-left: 10px;
        display: inline-block;
        bottom: initial;
        left: 100%;
        font-size: 20px;
    }
    
    #Instagram_arrow:after{
        bottom: 0;
        left: -5px;
        border-top: none;
        border-bottom: solid 4px var(--color-sub5);
        border-right: solid 4px var(--color-sub5);
        clip-path: polygon(100% 100%, 0% 100%, 100% 0%);
    }
    
    #Instagram_icon{
        width: 60%;
        margin: 50px 10%;
    }
    
    #Instagram_icon:before{
        box-shadow: 0 5px 5px rgba(var(--color-sub3-rgb), 0.2); /* 黒・透明度0.8 */
    }
        
    #Instagram_text{
        width: 100%;
        font-size: 18px;
    }
    
    #message{
        display: none;
    }

    #message_smt{
        display: initial;
        background-color: var(--color-sub4);
        width: 95vw;
        margin: 0 auto;
        padding: 10px 0;
        position: absolute;
        bottom: -180px;
        left: 2.5vw;
        color: var(--color-sub5);
        text-align: center;
        font-size: 16px;
        font-weight: 500;
        border-radius: 10px;
    }
        
    /* --- Works --- */
    #Works{
        margin-top: 180px;
    }

    .display_right{
        flex-direction: column;
    }
    
    .display_left{
        flex-direction: column;
    }
    
    .display_wide{
        width: 95%;
        margin: 0 2.5%;
    }
    
    .display_right div,
    .display_right img,
    .display_left div,
    .display_left img{
        width: 95%;
        margin: auto 2.5%;
    }
    
    .display_wide #site_list{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    #site_list .tile{
        width: 80%;
        margin: 50px 10% 0 10%;
    }
        
    #site1:before{
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    #site2:before{
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    #site3:before{
        font-size: 12px;
        margin-bottom: 5px;
    }
        
    #waveCanvas{
        width: 150%;
    }
    
    #waveCanvas2{
        width: 150%;
    }
    
    /* --- Sake --- */
    .display_wide #sake_list{
        display: flex;
        flex-wrap: wrap;
    }
    
    #sake_list .tile{
        width: 45%;
        margin: 50px 2.5% 0 2.5%;
    }
    
    #sake1:before{
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    #sake2:before{
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    #sake3:before{
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    #sake4:before{
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    #sake5:before{
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    #sake6:before{
        font-size: 12px;
        margin-bottom: 5px;
    }

    /* --- About_detail --- */
    #About_detail{
        width: 100%;
        margin-bottom: 200px;
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        position: relative;
    }

    #About_detail .back_area{
        position: absolute;
        top: 0;
        z-index: -1;
    }

    #About_detail h2{
        width: 100%;
        margin: 0;
    }

    #About_detail #profile_img{
        width: 70%;
        margin: 0 15% 0 15%;
        z-index: 1;
    }

    #profile{
        width: 100%;
        position: relative;
        top: initial;
        right: initial;
        margin: 50px 0;
    }

    #name{
        font-size: 20px;
    }

    #name:after{
        display: block;
        margin-left: 0;
        font-size: 12px;
    }

    #profile p{
        margin: 30px 50px;
    }

    .point{
        width: 80%;
        margin: 30px 10% 0 10%;
        z-index: 1;
        font-size: 14px;
    }

    #about_back{
        width: 90%;
        position: relative;
        top: initial;
        right: initial;
        margin: 0 5%;
    }
        
    /* Instaramアイコン誘導：点滅して左右に動く */
    @keyframes blink{
        0%{
            opacity: 0;
            transform: ranslateY(0);
        }
        50%{
            transform: translateY(10px);
        }
        100%{
            opacity: 1;
            transform: translateY(0);
        }
    }
}
