@charset "UTF-8";
/* google fonts */
@import url('https://fonts.googleapis.com/css2?family=Hachi+Maru+Pop&display=swap');

/*----- 基本設定
------------------------------------------------------*/
body, h1, h2, h3, h4, h5, h6, ul, li, dt, dd, nav, p {
    padding: 0;
    margin: 0;
}
body {
    color: #333;
    font-size: 16px;
    font-family: "遊ゴシック", "メイリオ" , "ヒラギノ丸ゴ W4", sans-serif;
    line-height: 1.8em;
}

/* テキスト関連 */
a {
    color: #333;
    text-decoration: none;
}
a:visited {
    color: #888;
}

/* リスト関連 */
ul {
    list-style-type: none;
}
.item {
    list-style-type: disc;
}


/*----- header
------------------------------------------------------*/
header {
    background-color: #000;
    color: #fff;
}
#logo_space {
    padding: 1em;
}
#logo_space h1 {
    font-family: 'Hachi Maru Pop', sans-serif;
    font-style: italic;
    font-weight: bold;
}
#logo_space p {
    font-family: serif;
    font-weight: bold;
}

/*----- main
------------------------------------------------------*/

    main .sec_h2 {
        margin-bottom: 3em;
    }
    main h2 {
        padding: 5px;
    }
    .caption {
        display: inline-block;
        background-color: #ddd;
        padding: 2px 1em;
        border-radius: 1em;
        margin: 10px;
    }

    /* imgリスト */
    .img_list {
        display: flex;
        flex-wrap: wrap;
    }
    .img_list li {
        width: 50%;
        box-sizing: border-box;
        padding: 1px 2px;
    }
    .img_list li img {
        width: 100%;
    }

/*----- aside
------------------------------------------------------*/
    aside h3 {
        padding: 5px 10px;
    }
    .sub_menu li {
        border-bottom: solid 1px #888;
    }
    .sub_menu a {
        display: block;
        padding: 10px;
    }


/*----- footer
------------------------------------------------------*/
footer {
    background-color: #000;
    color: #fff;
}

/*----- スマホ版
------------------------------------------------------*/
@media only screen and (max-width: 799px) {

    /*----- ハンバーガー
    ------------------------------------------------------*/
    .btn_space {
        position: sticky;
        top: 0;
        padding: 10px;
        z-index: 99;
    }
    /* ボタン外側 */
    .openbtn {
        position: relative;
        background: #c753a4;
        cursor: pointer;
        width: 50px;
        height: 50px;
        border-radius: 5px;
    }
    /* ボタン内側 */
    .openbtn span {
        display: inline-block;
        transition: all .4s;
        position: absolute;
        left: 7px;
        height: 3px;
        border-radius: 2px;
        background: #fff;
        width: 70%;
    }
    .openbtn span:nth-of-type(1) {
        top: 14px;
    }
    .openbtn span:nth-of-type(2) {
        top: 24px;
    }
    .openbtn span:nth-of-type(3) {
        top: 34px;
    }

    /* activeクラスが付与されると線が回転してxに */
    .openbtn.active span:nth-of-type(1) {
        top: 18px;
        left: 10px;
        transform: translateY(6px) rotate(-45deg);
        width: 50%;
    }
    .openbtn.active span:nth-of-type(2) {
        opacity: 0;
    }
    .openbtn.active span:nth-of-type(3) {
        top: 30px;
        left: 10px;
        transform: translateY(-6px) rotate(45deg);
        width: 50%;
    }

    /*----- ナビゲーション
    ------------------------------------------------------*/
    .global_nav{
        position:fixed;
        z-index: 99;
        /*ナビのスタート位置と形状*/
        top:0;
        right: -120%;
        width: 40%;
        height: 100vh;
        background:#ddd;
        /*動き*/
        transition: all 0.6s;
        opacity: 0.9;
    }
    
    /*アクティブクラスがついたら位置を0に*/
    .global_nav.panelactive{
        right: 0;
    }
    
    /*ナビゲーション*/
    .global_nav ul {
        width: 100%;
        border-top: solid 1px #888;
        /*ナビゲーション天地中央揃え*/
        position: absolute;
        z-index: 99;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
    }
        
    .global_nav li {
        border-bottom: solid 1px #888;
    }
      
      .global_nav li a {
      color: #000;
      text-align: center;
      text-decoration: none;
      padding: 15px 0;
      display: block;
      text-transform: uppercase;
      letter-spacing: 0.2em;
    }
    
}



/*----- PC版
------------------------------------------------------*/
@media only screen and (min-width: 800px) {

    /*----- container
    ------------------------------------------------------*/
    #logo_space {
        max-width: 1200px;
        margin: 0 auto;
    }
    /*----- 2カラム調整
    ------------------------------------------------------*/
    #contents {
        display: flex;
        max-width: 1200px;
        margin: 0 auto;
    }
    main {
        flex: 1 1 auto;
        margin-right: 3px;
    }
    aside {
        flex: 0 0 200px;
        margin-left: 3px;
    }

    /*----- ナビゲーション
    ------------------------------------------------------*/
    .global_nav {
        position: sticky;
        top: 0;
        background-color: #fff;
        box-shadow: 0 3px 5px -2px #888;
        margin-bottom: 1em;
        opacity: 0.9;
        z-index: 10;
    }
    .global_nav ul {
        display: flex;
        justify-content: space-around;
        max-width: 1200px;
        margin: 0 auto;
        border-left: solid 1px #888;
    }
    .global_nav li {
        width: 100%;
        border-right: solid 1px #888;
    }
    .global_nav a {
        display: block;
        text-decoration: none;
        text-align: center;
        color: #000;
        padding: 10px 0;
    }

    /*----- main
    ------------------------------------------------------*/
    /* imgリスト */
    .img_list li {
        width: 20%;
        height: 150px;
        overflow: hidden;
    }

    /*----- footer
    ------------------------------------------------------*/
    #foot_cont {
        max-width: 1200px;
        margin: 0 auto;
    }
    footer p {
        text-align: center;
    }
}