@charset "UTF-8";
/*
PC          960px〜
Tablet      520〜960px
SmartPhone  320〜520px
*/

.hamburger {
    display: none;
}

@media screen and (max-width:520px) {

    /*
    *   全体    */
    body {
        min-width: auto;
    }

    .contents {
        width: 90%;
        padding: 11% 5% 10%;
        padding-top: 48px !important;
        position: relative;
        left: 0;
    }

    .header-wrapper,
    .menu {
        width: 100%;
        top: 0;
        left: 0;
    }

    .headerNav {
        position: fixed;
        width: 100%;
        height: 60px;
        padding-top: 0;
        padding-left: 5%;
        padding-right: 5%;
        align-items: center;
        z-index: 999;
    }

    .headerLogo {
        width: 163.6px;
        height: 30px;
    }


    .main-wrapper {
        padding-left: 5%;
        padding-right: 5%;
    }


    .bfbr::before {
        content: "\A";
        white-space: pre-wrap;
    }

    /*
    *写真集ページ    */
    .gallery {
        columns: 2;
        column-gap: 5%;
    }
    .gallery li {
        margin-bottom: 10%;
    }


    /* ハンバーガーメニュー */
    .gnav {
        position: fixed;
        right: 0;
        top: 0;
        width: 100%;
        height: 100vh;
        transform: translateX(100%);
        background-color: #fff;
        transition: ease .4s;
    }

    .gnav ul {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 0;
        grid-template-columns: unset;
        row-gap: 1.5em;
    }

    .header__hamburger {
        width: 30px;
        height: 100%;
    }

    .hamburger {
        position: fixed;
        top: 5px;
        right: 10px;
        display: block;
        width: 40px;
        height: 38px;
        padding: 0 9px;
        background-color: #fff;
        
        border: none;
        z-index: 9999;
    }

    /* ハンバーガーメニューの線 */
    .hamburger span {
        width: 100%;
height: 2px;
background-color: #111;
        position: relative;
        transition: ease .4s;
        display: block;
    }

    .hamburger span:nth-child(1) {
        top: 0;
    }

    .hamburger span:nth-child(2) {
        margin: 7px 0;
    }

    .hamburger span:nth-child(3) {
        top: 0;
    }

    /* ハンバーガーテスト
    .hamburger {
        display: block;
        position: absolute;
        width: 40px;
        height: 25px;
        top: 65px;
        z-index: 9999;
    }
    .hamburger span {
        position: absolute;
        width: 100%;
        height: 1px;
        background-color: black;
    }
    .hamburger span:first-of-type {
        top: 0;
    }
    .hamburger span:nth-of-type(2) {
        top: 50%;
    }
    .hamburger span:last-of-type {
        top: 100%;
    }*/
    /* ハンバーガーメニュークリック後のスタイル */
    .gnav.active {
        transform: translateX(0);
    }

    .hamburger.active span:nth-child(1) {
        top: 9px;
        transform: rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        top: -9px;
        transform: rotate(-45deg);
    }
}