@charset "utf-8";

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

}

body {
    font-family: "Kosugi Maru", sans-serif;
    font-weight: 400;
    font-style: normal;
}


/* ここからトップページ */
#logo {
    padding-top: 15px;
    padding-left: 20px;
}

.top {
    padding-top: 50px;
}

.bg {
    background-color: #5CB6B5;
    padding-bottom: 100px;
    height: 100vh;
}

.flex {
    display: flex;
}

.flex,
p {
    text-align: center;
}

.relative {
    position: relative;
}

.sp {
    display: none;
}

.click_img {
    position: absolute;
    top: -50px;
    right: 0;
}

.image_right {
        position: absolute;
        top: 20px;
        right: -20px;
    }

img {
    max-width: 100%;
    vertical-align: bottom;
}

.folder_flex {
    display: flex;
    color: #703300;
}

.folder_name p {
    text-align: center;
}

.left {
    width: 60%;
}

.right {
    width: 35%;
    text-align: center;
}



.explanation {
    max-width: 550px;
    color: #fff;
    background-color: #703300;
    border-radius: 15px;
    padding: 2% 2%;
    margin-top: 50px;
}

.explanation p {
    text-align: left;
    font-size: 14pt;
}

.w1000 {
    max-width: 1000px;
    margin: 0 auto;
}

.my_name {
    text-align: center;
}

/* ここまでトップページ↑ */

/* ここから自己紹介ページ↓ */

.back_btn_blue {
    justify-content: right;
    padding-top: 60px;
}

.back_btn_blue p {
    text-align: center;
}

.back_btn_blue a {
    display: inline-block;
    /* クリック範囲と背景色を適切に設定するため */
    text-decoration: none;
    color: #703300;
    /* 通常時の文字色（茶色） */
    transition: 0.3s;
    /* 色の変化を滑らかにする */
    font-weight: bold;
}

/* ホバーした時：背景を茶色、文字を白に */
.back_btn_blue a:hover {
    background-color: #703300;
    color: #fff;
}

.back_btn_blue a {
    border: 4px solid #703300;
    border-radius: 100px;
    display: block;
    width: 140px;
    height: 60px;
    padding: 15px;
    box-sizing: border-box;
    background: #fff;
    color: #703300;
    text-decoration: none;

    font-size: 18pt;
}

.AboutMe {
    color: #fff;
}



.AboutMe_p_width {
    padding-top: 30px;
    padding-left: 50px;
}

.AboutMe,
.name_18pt {
    font-size: 18pt;
    text-align: left;
    padding-bottom: 5px;
}

.English_name {
    padding-bottom: 10px;
    font-size: 18pt;
    text-align: left;

}

.AboutMe,
p {
    font-size: 16pt;
    text-align: left;
    padding-bottom: 20px;
}

.AboutMe_flex {
    display: flex;
}

#AboutMe_me {
    width: 400px;
}

.AboutMe_img_width {
    width: 40%;
}

.AboutMe_p_width {
    width: 60%;
}

#back_cookie {
    background-image: url(../images/cookie.png);
    background-repeat: no-repeat;
    background-position: bottom right;
    padding-bottom: 5em;

}

/* 画像を重ねるための土台 */
.me_container {
    position: relative;
    display: inline-block;
    height: auto;
}

/* 2枚の画像共通の設定 */
.me_container img {
    width: 100%;
    height: auto;
    transition: 0.5s;
    /* 「ぱっぱ」と切り替わる速度 */
}

/* ウィンク画像を上に重ねて、最初は透明にする */
.me_wink {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

/* ★マウスが乗った時だけウィンクを出す！ */
.me_container:hover .me_wink {
    opacity: 1;
}

/* ★マウスが乗った時だけ通常顔を隠す！ */
.me_container:hover .me_normal {
    opacity: 0;
}

/* 1. イラストのコンテナにアニメーションの設定を追加 */
.me_container {
    position: relative;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* はずむ動きの秘密 */
}

/* 2. マウスを乗せた時：少し上に跳ねて、ちょっとだけ大きくする */
.me_container:hover {
    transform: translateY(-15px) scale(1.05);
    /* 15px上に弾んで、5%大きく */
}

/* 3. 前に送った「透明度の切り替え」はそのまま残してね！ */
.me_container:hover .me_normal {
    opacity: 0;
}

@media screen and (max-width:1000px) {
    .sp {
        display: block;
    }

}

@media screen and (max-width:650px) {
    
    .bg {
    height: auto;
}
    body{
        background: #5CB6B5;
    }
    #logo {
        padding: 10px 10px;
    }


    .click_img {
        position: absolute;
        top: -45px;
        right: -20px;
        width: 70px;
    }

    .image_right {
        position: absolute;
        top: 20px;
        right: -20px;
        width: 70px;
    }

    .folder_padding {
        padding: 0 10px;
    }

    .folder_name p {
        font-size: 14pt;
    }

    .myname p {
        font-size: 14pt;
    }

    .AboutMe_flex {
        flex-flow: column;
    }


    .AboutMe_p_width {
        width: 90%;
    }

    .explanation {
        margin: 0 10px;
    }

    .explanation p {
        font-size: 14px;
        padding: 5px;
        top: 100ox;
    }

    .AboutMe_img_width {
        width: 60%;
        margin: 0 auto;
    }

    .AboutMe_p_width {
        padding-top: 0px;
    }

    .AboutMe_p_width p {
        font-size: 14pt;
    }

    .back_btn_blue {
        justify-content: right;
        padding-right: 30px;
    }

    .back_btn_blue p {
        text-align: center;
        font-size: 19px;
    }

    .back_btn_blue a {
        border: 3px solid #703300;
        border-radius: 80px;
        display: block;
        width: 115px;
        height: 50px;
        padding: 11px;
        box-sizing: border-box;
        background: #fff;
        color: #703300;
        text-decoration: none;
    }
    
    #back_cookie {
        background-size: 80%;
}

.explanation{
    margin-top: 5.5em;
    width: 380px;
}

.folder_name p{
    font-size: 12pt;
}

}