@charset "UTF-8";

/*PCサイズレスポンシブ*/
@media(min-width:1000px) {

    body {
        min-width: 1000px;
        background-color: #f7f6f5;
    }

    nav {
        display: none;
    }

    .container {
        width: 100%;
        background-color: #f7f6f5;
        font-family: serif;
    }

    /* PCcss */

    a {
        text-decoration: none;
        color: #000;
    }

    h1 {
        font-size: 24px;
        margin: 0;
    }

    .header {
        background-color: #f7f6f5;
        width: 100%;
        display: flex;
        height: 100px;
        justify-content: space-between;
        align-items: center;

        position: fixed;
        /* ヘッダーを固定する */

        z-index: 100;
        /* ヘッダーを他の要素の上に表示 */
        top: 0;
    }

    .header1 {
        width: 20%;
        margin: 30px 0px 0px 50px;
    }

    .header1 h2 {
        font-size: 15px;
        margin: 0 0 0 25px;
    }

    .header2 {
        width: 40%;
        background-color: #ffffff;
        margin: 20px 0px 0px 0px;
    }

    .header2 ul {
        display: flex;
        align-items: center;
        list-style: none;
        margin-left: 30px;
    }

    .header2 img {
        width: 20%;
        margin-top: 5px;
    }

    .header2 li {
        margin-left: 25px;
    }

    .title p {
        margin: 150px 0px 0px 80px;
        font-size: 12px;

        /* 下からフェードイン参照 https://ui-hack.com/programming/html_css/css_textanimation/  */

        opacity: 0;
        /* 初めは透明に設定 */
        transform: translateY(100%);
        /* 下からスライドするために位置を下に設定 */
        animation: fadeInFromBottom 2.5s forwards;
        /* フェードインアニメーションの設定 */
    }

    @keyframes fadeInFromBottom {
        to {
            opacity: 1;
            /* アニメーション終了時に完全に表示 */
            transform: translateY(0);
            /* アニメーション終了時の位置 */
        }
    }

    .title h3 {
        text-align: center;
        margin: 80px 0 90px 0;

        /* 下からフェードイン参照 https://ui-hack.com/programming/html_css/css_textanimation/  */

        opacity: 0;
        /* 初めは透明に設定 */
        transform: translateY(100%);
        /* 下からスライドするために位置を下に設定 */
        animation: fadeInFromBottom 2.5s forwards;
        /* フェードインアニメーションの設定 */
    }

    @keyframes fadeInFromBottom {
        to {
            opacity: 1;
            /* アニメーション終了時に完全に表示 */
            transform: translateY(0);
            /* アニメーション終了時の位置 */
        }
    }

    .text {
        display: none;
    }

    /*画像横並び・折り返し*/
    .flexbox {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        text-align: center;
        font-size: 15px;
    }

    .flex-item {
        width: 33.3%;
    }

    /*4個目以降の上部に余白 https://applism.net/news/flexbox-how-to-flap/*/
    .flex-item:nth-of-type(n+4) {
        margin-top: 80px;
    }

    .flex-item img {
        width: 85%;
    }

    .flex-item p {
        margin-top: 15px;
    }

    /* hover ズームイン */
    .flex-item img:hover {
        transform: scale(1.04);
        transition: 0.3s;
    }

    /*.main {
        width: 100%;
        text-align: center;
        flex-wrap: wrap;
    }

    .main-item {
        flex-wrap: wrap;
    }

    .main-item img {
        width: 85%;
    }

    /* hover ズームイン 
    .main-item img:hover {
        transform: scale(1.04);
        transition: 0.3s;
    }

    .main-item ul {
        display: flex;
        list-style: none;
    }*/

    .contact {
        text-align: center;
        padding: 150px 0 80px 0;
    }

    .contact a {
        font-size: 15px;
        padding: 5px 15px;
        border: solid 1px #5d5957;
    }

    .contact a:hover {
        color: #fff;
        background: #5d5957;
    }

    /***追従するトップへ戻るボタン https://www.fuji-blo.com/entry/page-top***/

    #page-top {
        position: fixed;
        right: 5px;
        bottom: 20px;
        height: 50px;
        text-decoration: none;
        font-weight: bold;
        transform: rotate(90deg);
        font-size: 100%;
        line-height: 1.5rem;
        color: #5d5957;
        padding: 0 0 0 35px;
        border-top: solid 1px;
    }

    #page-top::before {
        content: "";
        display: block;
        position: absolute;
        top: -1px;
        left: 0px;
        width: 15px;
        border-top: solid 1px;
        transform: rotate(35deg);
        transform-origin: left top;
    }

    /***トップへ戻るボタンここまで***/
}

/*ipadサイズレスポンシブ*/
@media(min-width:600px) and (max-width:999px) {
    body {
        min-width: 600px;
        max-width: 999px;
        background-color: #f7f6f5;
    }

    .container {
        width: 100%;
        background-color: #f7f6f5;
        font-family: serif;
    }

    /* ipadcss */

    a {
        text-decoration: none;
        color: #000;
    }

    h1 {
        font-size: 20px;
        margin: 0;
    }

    .header {
        background-color: #f7f6f5;
        width: 100%;
        display: flex;
        height: 100px;
        justify-content: space-between;
        align-items: center;

        position: fixed;
        /* ヘッダーを固定する */

        z-index: 100;
        /* ヘッダーを他の要素の上に表示 */
        top: 0;
    }

    .header1 {
        width: 30%;
        margin: 30px 0px 0px 40px;
    }

    .header1 h2 {
        font-size: 12px;
        margin: 0 0 0 25px;
    }

    .header2 {
        display: none;
    }

    /*========= ナビゲーションのためのCSS ===============*/

    #g-nav {
        /*position:fixed;にし、z-indexの数値を小さくして最背面へ*/
        position: fixed;
        z-index: -1;
        opacity: 0;
        /*はじめは透過0*/
        /*ナビの位置と形状*/
        top: 0;
        width: 100%;
        height: 100vh;
        /*ナビの高さ*/
        background: #999;
        /*動き*/
        transition: all 0.3s;
    }

    /*アクティブクラスがついたら透過なしにして最前面へ*/
    #g-nav.panelactive {
        opacity: 1;
        z-index: 999;
    }

    /*ナビゲーションの縦スクロール*/
    #g-nav.panelactive #g-nav-list {
        /*ナビの数が増えた場合縦スクロール*/
        position: fixed;
        z-index: 999;
        width: 100%;
        height: 100vh;
        /*表示する高さ*/
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    #g-nav-list img {
        width: 15%;
    }

    /*ナビゲーション*/
    #g-nav ul {
        display: none;
        /*ナビゲーション天地中央揃え*/
        position: absolute;
        z-index: 999;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    #g-nav.panelactive ul {
        display: block;
    }

    /*リストのレイアウト設定*/

    #g-nav li {
        list-style: none;
        text-align: center;
    }

    #g-nav li a {
        color: #333;
        text-decoration: none;
        padding: 10px;
        display: block;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        font-weight: bold;
    }

    /*========= ボタンのためのCSS ===============*/
    .openbtn {
        position: fixed;
        z-index: 9999;
        /*ボタンを最前面に*/
        top: 35px;
        right: 10px;
        cursor: pointer;
        width: 50px;
        height: 50px;
    }

    /*×に変化*/
    .openbtn span {
        display: inline-block;
        transition: all .4s;
        position: absolute;
        left: 14px;
        height: 3px;
        border-radius: 2px;
        background-color: #666;
        width: 45%;
    }

    .openbtn span:nth-of-type(1) {
        top: 15px;
    }

    .openbtn span:nth-of-type(2) {
        top: 23px;
    }

    .openbtn span:nth-of-type(3) {
        top: 31px;
    }

    .openbtn.active span:nth-of-type(1) {
        top: 18px;
        left: 18px;
        transform: translateY(6px) rotate(-45deg);
        width: 30%;
    }

    .openbtn.active span:nth-of-type(2) {
        opacity: 0;
    }

    .openbtn.active span:nth-of-type(3) {
        top: 30px;
        left: 18px;
        transform: translateY(-6px) rotate(45deg);
        width: 30%;
    }

    .title p {
        margin: 130px 0px 0px 70px;
        font-size: 12px;

        /* 下からフェードイン参照 https://ui-hack.com/programming/html_css/css_textanimation/  */

        opacity: 0;
        /* 初めは透明に設定 */
        transform: translateY(100%);
        /* 下からスライドするために位置を下に設定 */
        animation: fadeInFromBottom 2.5s forwards;
        /* フェードインアニメーションの設定 */
    }

    @keyframes fadeInFromBottom {
        to {
            opacity: 1;
            /* アニメーション終了時に完全に表示 */
            transform: translateY(0);
            /* アニメーション終了時の位置 */
        }
    }

    .title h3 {
        text-align: center;
        margin: 60px 0 70px 0;

        /* 下からフェードイン参照 https://ui-hack.com/programming/html_css/css_textanimation/  */

        opacity: 0;
        /* 初めは透明に設定 */
        transform: translateY(100%);
        /* 下からスライドするために位置を下に設定 */
        animation: fadeInFromBottom 2.5s forwards;
        /* フェードインアニメーションの設定 */
    }

    @keyframes fadeInFromBottom {
        to {
            opacity: 1;
            /* アニメーション終了時に完全に表示 */
            transform: translateY(0);
            /* アニメーション終了時の位置 */
        }
    }

    .text {
        display: none;
    }

    /*画像横並び・折り返し*/
    .flexbox {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        text-align: center;
        font-size: 14px;
    }

    .flex-item {
        width: 33.3%;
    }

    /*4個目以降の上部に余白 https://applism.net/news/flexbox-how-to-flap/*/
    .flex-item:nth-of-type(n+4) {
        margin-top: 70px;
    }

    .flex-item img {
        width: 85%;
    }

    .flex-item p {
        margin-top: 12px;
    }

    /* hover ズームイン */
    .flex-item img:hover {
        transform: scale(1.04);
        transition: 0.3s;
    }

    .contact {
        text-align: center;
        padding: 150px 0 80px 0;
    }

    .contact a {
        font-size: 14px;
        padding: 5px 15px;
        border: solid 1px #5d5957;
    }

    .contact a:hover {
        color: #fff;
        background: #5d5957;
    }

    /***追従するトップへ戻るボタン https://www.fuji-blo.com/entry/page-top***/

    #page-top {
        position: fixed;
        right: 5px;
        bottom: 20px;
        height: 50px;
        text-decoration: none;
        font-weight: bold;
        transform: rotate(90deg);
        font-size: 100%;
        line-height: 1.5rem;
        color: #5d5957;
        padding: 0 0 0 35px;
        border-top: solid 1px;
    }

    #page-top::before {
        content: "";
        display: block;
        position: absolute;
        top: -1px;
        left: 0px;
        width: 15px;
        border-top: solid 1px;
        transform: rotate(35deg);
        transform-origin: left top;
    }

    /***トップへ戻るボタンここまで***/
}

/*SPサイズレスポンシブ*/
@media (max-width:599px) {
    body {
        max-width: 599px;
        background-color: #f7f6f5;
    }

    .container {
        width: 100%;
        background-color: #f7f6f5;
        font-family: serif;
    }

    /* SPcss */

    a {
        text-decoration: none;
        color: #000;
    }

    h1 {
        font-size: 15px;
        margin: 0;
    }

    .header {
        background-color: #f7f6f5;
        width: 100%;
        display: flex;
        height: 100px;
        justify-content: space-between;
        align-items: center;

        position: fixed;
        /* ヘッダーを固定する */

        z-index: 100;
        /* ヘッダーを他の要素の上に表示 */
        top: 0;
    }

    .header1 {
        width: 50%;
        margin: 0px 0px 0px 20px;
    }

    .header1 h2 {
        font-size: 9px;
        margin: 0 0 0 19px;
    }

    .header2 {
        display: none;
    }

    /*========= ナビゲーションのためのCSS ===============*/

    #g-nav {
        /*position:fixed;にし、z-indexの数値を小さくして最背面へ*/
        position: fixed;
        z-index: -1;
        opacity: 0;
        /*はじめは透過0*/
        /*ナビの位置と形状*/
        top: 0;
        width: 100%;
        height: 100vh;
        /*ナビの高さ*/
        background: #999;
        /*動き*/
        transition: all 0.3s;
    }

    /*アクティブクラスがついたら透過なしにして最前面へ*/
    #g-nav.panelactive {
        opacity: 1;
        z-index: 999;
    }

    /*ナビゲーションの縦スクロール*/
    #g-nav.panelactive #g-nav-list {
        /*ナビの数が増えた場合縦スクロール*/
        position: fixed;
        z-index: 999;
        width: 100%;
        height: 100vh;
        /*表示する高さ*/
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 15px;
    }

    #g-nav-list img {
        width: 15%;
    }

    /*ナビゲーション*/
    #g-nav ul {
        display: none;
        /*ナビゲーション天地中央揃え*/
        position: absolute;
        z-index: 999;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    #g-nav.panelactive ul {
        display: block;
    }

    /*リストのレイアウト設定*/

    #g-nav li {
        list-style: none;
        text-align: center;
    }

    #g-nav li a {
        color: #333;
        text-decoration: none;
        padding: 10px;
        display: block;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        font-weight: bold;
    }

    /*========= ボタンのためのCSS ===============*/
    .openbtn {
        position: fixed;
        z-index: 9999;
        /*ボタンを最前面に*/
        top: 25px;
        right: 10px;
        cursor: pointer;
        width: 50px;
        height: 50px;
    }

    /*×に変化*/
    .openbtn span {
        display: inline-block;
        transition: all .4s;
        position: absolute;
        left: 14px;
        height: 3px;
        border-radius: 2px;
        background-color: #666;
        width: 45%;
    }

    .openbtn span:nth-of-type(1) {
        top: 15px;
    }

    .openbtn span:nth-of-type(2) {
        top: 23px;
    }

    .openbtn span:nth-of-type(3) {
        top: 31px;
    }

    .openbtn.active span:nth-of-type(1) {
        top: 18px;
        left: 18px;
        transform: translateY(6px) rotate(-45deg);
        width: 30%;
    }

    .openbtn.active span:nth-of-type(2) {
        opacity: 0;
    }

    .openbtn.active span:nth-of-type(3) {
        top: 30px;
        left: 18px;
        transform: translateY(-6px) rotate(45deg);
        width: 30%;
    }

    .title p {
        margin: 110px 0px 0px 40px;
        font-size: 8px;

        /* 下からフェードイン参照 https://ui-hack.com/programming/html_css/css_textanimation/  */

        opacity: 0;
        /* 初めは透明に設定 */
        transform: translateY(100%);
        /* 下からスライドするために位置を下に設定 */
        animation: fadeInFromBottom 2.5s forwards;
        /* フェードインアニメーションの設定 */
    }

    @keyframes fadeInFromBottom {
        to {
            opacity: 1;
            /* アニメーション終了時に完全に表示 */
            transform: translateY(0);
            /* アニメーション終了時の位置 */
        }
    }

    .title h3 {
        text-align: center;
        margin: 60px 0 70px 0;
        font-size: 15px;

        /* 下からフェードイン参照 https://ui-hack.com/programming/html_css/css_textanimation/  */

        opacity: 0;
        /* 初めは透明に設定 */
        transform: translateY(100%);
        /* 下からスライドするために位置を下に設定 */
        animation: fadeInFromBottom 2.5s forwards;
        /* フェードインアニメーションの設定 */
    }

    @keyframes fadeInFromBottom {
        to {
            opacity: 1;
            /* アニメーション終了時に完全に表示 */
            transform: translateY(0);
            /* アニメーション終了時の位置 */
        }
    }

    .text {
        font-size: 8px;
        text-align: center;
        margin-bottom: 30px;
    }

    /*画像横並び・折り返し*/
    .flexbox {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        text-align: center;
        font-size: 10px;
    }

    .flex-item {
        width: 50%;
    }

    /*3個目以降の上部に余白 https://applism.net/news/flexbox-how-to-flap/*/
    .flex-item:nth-of-type(n+3) {
        margin-top: 40px;
    }

    .flex-item img {
        width: 85%;
    }

    .flex-item p {
        margin-top: 10px;
    }

    /* hover ズームイン */
    .flex-item img:hover {
        transform: scale(1.04);
        transition: 0.3s;
    }

    .contact {
        text-align: center;
        padding: 150px 0 40px 0;
    }

    .contact a {
        font-size: 10px;
        padding: 5px 15px;
        border: solid 1px #5d5957;
    }

    .contact a:hover {
        color: #fff;
        background: #5d5957;
    }

    /***追従するトップへ戻るボタン https://www.fuji-blo.com/entry/page-top***/

    #page-top {
        position: fixed;
        right: 5px;
        bottom: 20px;
        height: 50px;
        text-decoration: none;
        font-weight: bold;
        transform: rotate(90deg);
        font-size: 100%;
        line-height: 1.5rem;
        color: #5d5957;
        padding: 0 0 0 35px;
        border-top: solid 1px;
        font-size: 10px;
    }

    #page-top::before {
        content: "";
        display: block;
        position: absolute;
        top: -1px;
        left: 0px;
        width: 15px;
        border-top: solid 1px;
        transform: rotate(35deg);
        transform-origin: left top;
    }

    /***トップへ戻るボタンここまで***/
}