@charset "utf-8";

.yusei-magic-regular {
    font-family: "Yusei Magic", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.wf-nicomoji {
    font-family: "Nico Moji";
}

body {
    /* 色定義 */
    --color_base_black: black;
    --color_base_black_op80: rgba(0, 0, 0, 0.6);
    --color_base_black_op50: rgba(0, 0, 0, 0.5);
    --color_base_black_op10: rgba(0, 0, 0, 0.1);
    --color_base_black_op0: rgba(0, 0, 0, 0.0);
    --color_base_green: #467860;

    --color_main_white: aliceblue;
    --color_accent_gold: #C0A45B;
    --color_accent_dark_blue: #253135;
    --color_accent_blue: #4978A6;
    --color_accent_green: cadetblue;
    --color_accent_white: whitesmoke;

    --color_text_white: #fff;

    color: --color_main_white;
    font-family: Noto Sans JP, "Nico Moji";
    font-size: 17px;
    font-kerning: auto;

    width: 100%;
    margin: 0 auto;
}

h1 {
    font-size: 40px;
}

h2 {
    font-size: 32px;
}

main {
    --width_main: 80dvw;
    width: var(--width_main);

    margin-top: calc(50px + 1.75rem);
    margin-left: auto;
    margin-right: auto;

}

section {
    margin: 3rem auto;
}

/* header */
header {
    position: fixed;
    width: 100%;
    height: 50px;
    top: 0;
    background-color: var(--color_base_green);

    z-index: 10;
}

.wrapper_global_nav {

    .menu_icon {
        position: absolute;
        width: 40px;
        height: 50px;
        top: 5px;
        right: 10px;
        cursor: pointer;

        z-index: 40;
        display: block;
    }

    .menu_icon span {
        display: block;
        height: 6px;
        margin: 6px 0;
        background: var(--color_main_white);
        border-radius: 2px;
        transition: 0.4s;
    }

    /* ハンバーガーがXに変形 */
    #menu-toggle:checked+.menu_icon span:nth-child(1) {
        transform: translateY(12px) rotate(45deg);
    }

    #menu-toggle:checked+.menu_icon span:nth-child(2) {
        opacity: 0;
    }

    #menu-toggle:checked+.menu_icon span:nth-child(3) {
        transform: translateY(-12px) rotate(-45deg);
    }


    #menu-toggle:checked~.overlay {
        opacity: 1;
        pointer-events: auto;
    }

    /* メニュー本体（右から出す） */
    #global_nav {
        position: absolute;
        display: none;
        top: 50px;
        right: 0;
        width: 100%;
        height: min(100dvh, calc(1rem * 5 + 6rem + 2rem * 5 * 2));
        background: var(--color_base_black_op50);
        backdrop-filter: blur(0.8rem);

        color: var(--color_text_white);

        z-index: 20;

        cursor: pointer;
        user-select: none;


        ul {
            list-style: none;
            padding: 6rem 3rem;
        }

        a {
            padding: 0.9em;
            margin: 0.1rem 0;
            text-decoration: none;
            display: block;
            font-size: 1rem;
        }

        .global_nav_dd {
            padding-left: 2rem;
        }

        li :hover {
            background-color: var(--color_base_green);
            text-decoration-line: under;
            transition: ease-out 400ms;
        }
    }

    /* #menu-toggle:checked~#gnav_row {
        top: 35px;
        right: 0;
    } */
}


/* footer */
footer {
    display: grid;
    grid-template-rows: auto;
    align-content: center;

    background-color: var(--color_base_green);

    color: var(--color_text_white);
    text-align: center;
}


.hero {
    color: var(--color_accent_white);

    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
    padding: 50px 10px 10% 10px;

    background-color: var(--color_accent_dark_blue);

    line-height: 1.5;
}

.hero h1 {
    font-family: "Nico Moji";
    font-size: 4rem;
    padding-left: 3px;
    border-left: 10px solid var(--color_accent_white);

}

.hero #subtitle {
    padding-left: 3px;
    border-left: 10px solid var(--color_accent_white);
}

.hero img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
    margin-bottom: 40px;

    border-radius: 50%;
    filter: drop-shadow(0 0 10px var(--color_accent_green));
}

.peep-container {
    overflow: hidden;
    cursor: none;
    /* カーソルを隠すとより覗き見感が出ます */

    width: 300px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
    margin-bottom: 40px;

    border-radius: 50%;
    filter: drop-shadow(0 0 10px var(--color_accent_green));
}

.base-img {
    position: relative;
    width: 300px;
    height: 300px;

    background-repeat: no-repeat;
    background-image: url(images/profile_icon.gif);
}

.reveal-img {
    position: absolute;
    width: 300px;
    height: 300px;
    background-size: contain;
    background-repeat: no-repeat;
    /* 最初は円の半径を0にして隠しておく */
    clip-path: circle(0px at 0 0);
    pointer-events: none;
    /* マウスイベントを透過させる */

    background-image: url(images/profile.jpg);
}


/* 自己紹介 */
#profile {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}


/* 長所と短所 */
#description {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;

    .list {
        padding: 20px;
        margin-left: auto;
        margin-right: auto;

        /* background-color: antiquewhite; */
    }
}

#advantages {
    width: 50%;
    border-right: 1px dotted black;

    .list li::before {
        content: "👍";
    }
}

#disadvantages {
    width: 50%;

    .list li::before {
        content: "👿";
    }
}

/* 経歴 */
table {
    width: auto;
    margin-left: auto;
    margin-right: auto;
    padding: 5px;

    border-collapse: collapse;
    border: 2px solid black;

}

table thead {
    th {
        text-align: center;
        color: var(--color_text_white);
        font-weight: 600;
        padding: 5px;
    }

    td {
        text-align: center;
        color: var(--color_text_white);
        font-weight: 600;
        padding: 5px;
    }

    background-color: teal;
}

table tbody {
    th {
        text-align: right;
        padding: 5px;
    }

    td:nth-child(2) {
        text-align: center;
        padding: 5px;

        border-right: 1px solid black;
    }

    td {
        text-align: left;
        vertical-align: middle;
        padding: 5px;
    }

    td:last-child {
        padding: 5px;

        border-left: 1px dashed black;
    }
}

/* リンク集 */
/* SNS */
.section_SNS_links {

    /* background-color: var(--color_base_black_op10); */
    a:hover {
        background-color: black;
        border: 2px solid var(--color_accent_blue);
        border-radius: 100px;
        font-weight: 500;

        cursor: pointer;
    }
}

.link_SNS {
    display: grid;
    width: 12em;
    height: calc(3em + 4px);
    margin: 10px auto;
    align-items: center;

    background-color: var(--color_accent_dark_blue);
    border: 2px solid var(--color_accent_gold_dark_blue);
    border-radius: 100px;
    color: var(--color_text_white);

    transition: background-color 380ms ease;

}

.name_SNS {
    font-family: "Nico moji";
    text-align: center;
}