@charset "UTF-8";

/* 全てのページに適用 */
body {
    background-color: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

#menu-switch,
.onoff-btn {
    display: none;
}

.global-nav {
    list-style-type: none;
    padding-left: 0;
    display: flex;
    justify-content: space-between;
    padding-left: 0;
    margin:0 0 3rem;
    color: #333333;
    font-family: 'Poppins', sans-serif;
}

.global-nav__item {
    padding: 3rem 0 0 5rem;
    font-size: 1.5rem;
}

.global-nav__item a {
    padding-bottom: 0.5rem;
    color:inherit;
    text-decoration: none;
}

.global-nav__item a:hover {
    border-bottom: solid 2px #333333;
}

.global-nav__item:first-child {
    margin-right: auto;
    padding-left: 0;
}

.main-header {
    width: 15rem;
    padding: 0.4rem;
    margin: 0 auto 3rem;
    border: solid 3px #333333;
    background: linear-gradient(transparent 90%, rgb(165, 165, 165) 10%);
    background-color: #ffffff;
    font-size: 2.8rem;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.main-content {
    padding: 2rem;
    margin-bottom: 2rem;
    width: 38rem;
}

.main-content:nth-child(2n+1) {
    margin-left: auto;
}

.main-content__header {
    position: relative;
    padding: 1rem 2rem;
    margin-bottom: 1.7rem;
    font-size: 2rem;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.main-content__header::before,
.main-content__header::after {
    position: absolute;
    content: '';
}

.main-content__header::before {
    right: 0;
    bottom: 0;
    width: 50px;
    height: 50px;
    border-right: 2px solid #000000;
    border-bottom: 2px solid #000000;
}

.main-content__header::after {
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    border-top: 2px solid #000000;
    border-left: 2px solid #000000;
}

.main-content__txt {
    margin: 0 1rem 1.4rem;
}

.main-content__profile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 1rem 0;
}

.main-content__name {
    margin-left: 2.5rem;
}

.main-content__name_ja {
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.main-content__name_en {
    font-size: 1.5rem;
}

.main-content__detail {
    width: 20rem;
    text-align: justify;
}

.main-content__img {
    margin-bottom: 2rem;
}

/* ----- index.html ----- */
.home-img {
    margin-bottom: 2rem;
}

/* ----- skill.html ----- */
.flex {
    display: flex;
}

.flex-between {
    justify-content: space-between;
}

.flex-center {
    justify-content: center;
}

.strength-list__term {
    background: linear-gradient(transparent 80%, rgb(165, 165, 165) 20%);
    padding-left: 1rem;
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.strength-list__desc {
    margin-bottom: 1.6rem;
}

/* ----- work.html ----- */
.main-content__works {
    padding: 2rem 2rem;
}

.grid-box {
    display: grid;
    justify-content: center;
    margin: 0 auto 3rem;
    width: 1000px;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 5rem;
    align-items: flex-end;
}

.annotations {
    text-align: center;
    font-size: 90%;
    font-weight: bold;
    margin-bottom: 3rem;
}

/* ポップアップ */
.content-box {
    display: block;
    margin: 0 auto;
}

.open {
	cursor:pointer;
}

.open img:hover {
    opacity: 0.6;
    transition: opacity 0.1s linear;
}

.caption {
    padding-top: 0.5rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: bold;
}

/* checkbox の非表示 */
#pop-up__portfolio,
#pop-up__lp,
#pop-up__curry,
#pop-up__leonardo,
#pop-up__lift,
#pop-up__headphone,
#pop-up__new_years_card,
#pop-up__soda,
#pop-up__sale,
#pop-up__halloween,
#pop-up__business_card {
	display: none;
}

/* ポップアップウィンドウの非表示 */
.popup-window {
	display: none;
}

/* ポップアップウィンドウのスタイル */
#pop-up__portfolio:checked + .popup-window,
#pop-up__lp:checked + .popup-window,
#pop-up__curry:checked + .popup-window,
#pop-up__leonardo:checked + .popup-window,
#pop-up__lift:checked + .popup-window,
#pop-up__headphone:checked + .popup-window,
#pop-up__new_years_card:checked + .popup-window,
#pop-up__soda:checked + .popup-window,
#pop-up__sale:checked + .popup-window,
#pop-up__halloween:checked + .popup-window,
#pop-up__business_card:checked + .popup-window {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    background-color: #e3e3e3;
}

/* ポップアップウィンドウ内のコンテンツのスタイル */
.popup-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    margin: 0 4rem 0;
    width: 1000px;
}

/* クローズボタンの指定 */
.close {
    position: absolute;
    top: 1rem;
    right: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 7px;
    font-size: 20px;
    font-weight: bold;
    color: #f5f5f5;
    background-color: #444444;
    cursor:pointer;
    opacity: 0.9;
}

.difinition-box {
    margin-bottom: 1rem;
}

.popup-box {
    align-items: center;
}

.popup-img {
    margin-bottom: 0;
    text-align: center;
}

.popup-img a:hover {
    opacity: 0.6;
    transition: opacity 0.1s linear;
}   

.popup-dl {
    padding: 2rem 0;
    margin-bottom: 0;
}

.popup-dt {
    background: linear-gradient(transparent 90%, rgb(165, 165, 165) 10%);
    padding-left: 1rem;
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.popup-dd {
    margin: 0 2rem;
    text-align: justify;
}

.popup-list {
    padding-left: 0;
    box-sizing: border-box;
}

/* フッター */
.footer-copy {
    margin-bottom: 0;
    background-color: #333333;
    color: #ffffff;
    text-align: center;
}

.footer-fixed {
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* 〜1264pxまで */
@media screen and (max-width: 1264px) {
    .container {
        margin: 0 4rem;
    }

    .grid-box {
        grid-template-columns: 1fr 1fr;
        align-items: normal;
    }
}

/* 〜1200pxまで */
@media screen and (max-width: 1200px) {
    .grid-box{
        width: auto;
        gap: 3rem;
    }
}

/* 〜767pxまで */
@media screen and (max-width: 767px) {
    /* ----- 全てのページに適用 ----- */
    .container {
        max-width: auto;
        margin: 0 auto;
    }

    .main-header {
        margin-top: 5rem;
    }

    .main-content__txt,
    .main-content__detail_txt,
    .strength-list__desc {
        text-align: justify;
    }

    /* ハンバーガーメニュー */
    .onoff-btn {
        width: 1.5rem;
        height: 2rem;

        display: flex;
        justify-content: center;
        align-items: center;

        position: fixed;
        top: 1rem;
        right: 2rem;

        z-index:99;
    }

    .global-nav-box {
        width: 100%;
        height: 100%;

        background-color: #d0d0d0;

        position: fixed;
        top: 0;
        left: 0;

        z-index: 1;

        padding-top: 4rem;
        left: 100%;
        text-align: center;
        transition: all 0.2s linear;
    }

    .global-nav {
        display: block;
    }

    .global-nav__item {
        padding: 0;
        margin-bottom: 3rem;
    }

    .global-nav__item a {
        padding: 1.5rem 0 0.5rem;
        color: #333333;
    }

    .global-nav__item a:hover {
        border-bottom: none;
    }

    #menu-switch:checked ~ .global-nav-box {
        left: 0;
    }

    .hamburger-border,
    .hamburger-border::before,
    .hamburger-border::after {
        display: block;
        height: 3px;
        width: 25px;
        background-color: #333333;
        content: "";
        position: absolute;
    }

    .hamburger-border::before {
        top: 8px;
    }

    .hamburger-border::after {
        top: 16px;
    }

    /* ----- index.html -----*/
    .home-img {
        padding-top: 15rem;
        margin: 0 auto;
        width: 80vw;
    }

    /* ----- about.html ----- */
    .main-content {
        width: 70%;
        margin: 0 auto;
        text-align: center;
    }

    .main-content:nth-child(2n+1) {
        margin-left: 0;
    }

    .main-content__profile {
        display: block;
    }

    .main-content__name {
        margin: 0;
    }

    .main-content__detail {
        width: auto;
        text-align: center;
        margin: 0 auto;
    }

    .main-content:nth-child(2n+1) {
        margin-left: auto;
    }

    /* ----- skill.html ----- */
    .strength-list__term {
        padding-left: 0;
    }

    .strength-list__desc {
        width: 80%;
        margin: 0 auto 1.2rem;
        text-align: 1.5rem;
    }

    /* ----- works.html ----- */
    .grid-box {
        display: block;
    }

    .content-box {
        text-align: center;
    }

    .caption {
        margin-bottom: 2rem;
    }

    .main-content__works {
        padding: 0;
    }

    .popup-window {
        overflow: auto;
    }

    .popup-box {
        display: block;
        width: 70vw;
        max-height: 80vh;
    }

    .popup-img {
        width: 40vw;
        margin: 0 auto;
    }
}
