/* 基本設定 */
html {
    font-size: 62.5%;
    line-height: 1.6;
    letter-spacing: 0.1em;
    scroll-behavior: smooth;
}

body {
    font-size: 1.6rem;
    margin: 0;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

ul {
    list-style: none;
}

p {
    margin-bottom: 1.5em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 1.5em;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.6;
}


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

.bg-full {
    background-color: #fddede;
}

.logo {
    margin: 0;
}

.header-inner {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 20px 30px;
}

.flex-wrap-col2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;

    .col-left {
        width: 100%;
        text-align: center;
    }

    .col-right {
        width: 100%;
        text-align: center;
    }

}

.flex-wrap-col3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;

    .item {
        width: 100%;
        text-align: center;
    }

}

.flex-wrap-col4 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;

    .item {
        width: calc(50% - 30px);
        text-align: center;
    }

}

.section {
    padding: 4rem 0;
}

/* ナビゲーションメニュー */
/*　ハンバーガーメニューボタン　*/
.nav-button {
    display: block;
    position: fixed;
    z-index: 3;
    right: 20px;
    top: 20px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    text-align: center;
}

.nav-button span {
    display: block;
    position: absolute;
    width: 30px;
    height: 2px;
    left: 6px;
    /* ナビゲーションメニューの線の色 */
    background: #000;
    -webkit-transition: 0.3s ease-in-out;
    -moz-transition: 0.3s ease-in-out;
    transition: 0.3s ease-in-out;
}

.nav-button span:nth-child(1) {
    top: 10px;
}

.nav-button span:nth-child(2) {
    top: 20px;
}

.nav-button span:nth-child(3) {
    top: 30px;
}

/* スマホメニューを開いてる時のボタン */
.nav-button.active span:nth-child(1) {
    top: 16px;
    left: 6px;
    background: #000;
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.nav-button.active span:nth-child(2),
.nav-button.active span:nth-child(3) {
    top: 16px;
    background: #000;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    transform: rotate(45deg);
}

/* メニュー背景　*/
nav.gnav {
    position: fixed;
    z-index: 2;
    top: 0;
    right: 0;
    color: #000;
    background: rgba(255, 255, 255);
    border: 1px solid #ddd;
    text-align: center;
    width: 100%;
    max-width: 500px;
    height: 100svh;
    padding: 70px 0;
    transform: translateX(100%);
    transition: all 0.6s;
}

nav.gnav ul {
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

nav.gnav ul li {
    list-style-type: none;
    padding: 0;
    width: 100%;
    transition: .4s all;
}

nav.gnav ul li:last-child {
    padding-bottom: 0;
}

nav.gnav ul li:hover {
    background: #ddd;
}

nav.gnav ul li a {
    display: block;
    color: #000;
    padding: 1em 0;
    text-decoration: none;
}

/* クリックでjQueryで追加・削除 */
nav.gnav.active {
    opacity: 100;
    display: block;
    transform: translateX(0%);
}

/* フッター */
footer {
    padding: 2rem 0;
    text-align: center;
}

/* レスポンシブ設定 900px以上のデバイス */

@media screen and (min-width: 900px) {

    /* 900px以上の設定開始 */
    main {
        margin-top: 92px;
    }

    .flex-wrap-col2 {
        justify-content: space-between;
        gap: 30px;

        .col-left {
            width: 50%;
        }

        .col-right {
            width: calc(50% - 30px);
        }

        img {
            width: 100%;
        }
    }

    .flex-wrap-col3 {
        justify-content: space-between;
        gap: 30px;

        .item {
            width: calc(33.3% - 30px);
        }

        img {
            width: 100%;
        }
    }

    .flex-wrap-col4 {
        justify-content: space-between;
        gap: 30px;

        .item {
            width: calc(25% - 30px);
        }

        img {
            width: 100%;
        }
    }

    .header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 10;
    }

    .header-inner {
        display: flex;
        justify-content: space-between;
        padding: 20px 30px;
    }

    .nav-button {
        display: none;
    }

    nav.gnav {
        position: static;
        width: auto;
        padding: 0;
        background: none;
        transform: translateX(0);
    }

    nav.gnav ul {
        display: flex;
    }

    nav.gnav ul li {
        margin-left: 20px;
    }

    nav.gnav ul li a {
        padding: 0;
        color: #000;
    }

    nav.gnav ul li:hover {
        background: none;
    }

    nav.gnav {
        height: auto;
        border: none;
    }

    .footer-inner {
        padding: 10px 30px;
        justify-content: space-between;
    }

    /* 900px以上の設定終了 */

}