@charset "utf-8";

/*body設定 */
body {
    background-image: url(../images/BG.png);
    font-family: sans-serif;
    font-size: 16px;
    line-height: 170%;
    color: #333;
}

/* img設定 */
img {
    max-width: 100%;
    height: auto;
}


/*body設定 */

/* font設定 */
main h1,
.Mohave {
    font-family: 'Mohave', sans-serif;
    font-size: 32px;
    margin: 30px 0 10px 0.25em;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    text-align: center;
}

.UDGothic {
    font-family: 'BIZ UDGothic';
    font-size: 20px;
    margin-bottom: 30px;
    text-align: center;
}

/* font設定 */

/* header設定 */
header {
    margin-bottom: 100px;
    font-family: 'BIZ UDGothic';
}

header img {
    max-width: 130px;
    height: auto;
    margin: 10px;
}

header div {
    background-color: #F2D994;
}

/* ボタン▶ */
.Sankaku {
    padding-left: 1rem;
}


/* footer共通デザイン */
footer {
    background-color: #BDD8A3;
    position: relative;
    text-align: center;
}

footer::before {
    content: "";
    position: absolute;
    top: -104px;
    background-image: url(../images/footer.png);
    display: block;
    position: absolute;
    top: -104px;
    width: 100%;
    height: 104px;
    background-repeat: repeat-x;
    background-position: top;

}

.footerWrap {
    padding: 1rem;
}



footer .footerimg img {
    max-width: 250px;
    height: auto;
}

footer .footerTop,
.footerimg {
    margin-bottom: 25px;
}

footer div p {
    margin-bottom: 10px;
}

footer .adress {
    margin-bottom: 25px;
}

footer .address2 {
    margin-bottom: 60px;
}

/* ボタンimg----------------------- */

#topBtn {
    right: -10px;
    bottom: -35px;
    z-index: 100;
    /* position: relative; */
    position: fixed;
    max-width: 110px;
    filter: drop-shadow(3px 2px 2px rgba(33, 33, 33, 0.3));
}

#topBtn .topBtn1,
#topBtn .topBtn2 {
    color: #40210F;
}

#topBtn .topBtn1 {
    position: absolute;
    right: 80px;
    bottom: -100px;
    font-weight: bold;
}

#topBtn .topBtn2 {
    position: absolute;
    width: 100px;
    rotate: -15.2deg;
    right: 7px;
    bottom: 126px;
    font-weight: bold;
    font-size: 15px;
}

/* htmlに挿入 main内の一番下---------*/

/* お問い合わせ　アイコン 
    <div id="topBtn">
        <p class="topBtn1"><a href="#topPage">Top▲</a></p>
        <p class="topBtn2"><a href="form.html">相談はこちら</a></p>
        <p><img src="images/try/top_button_230.png"></p>
    </div> */

/* ボタンimg----------------------- */


@media (width >=768px) {
    header img {
        max-width: 100%;
        height: auto;
        margin: 0;
    }

    header div {
        background-color: #F2D994;
        display: flex;
        padding: 1rem 1rem 1rem 3rem;
        justify-content: space-between;
        align-items: flex-end;
    }

    .footerWrap {
        font-size: 20px;
        max-width: 1000px;
        margin: 0 auto;
        padding: 1rem 1rem 35px 1rem;
    }

    footer .footerTop {
        font-size: 32px;
    }

    footer .footerimg img {
        max-width: 100%;
        height: auto;
    }

    .footerWrap>div {
        display: grid;
        grid-template-columns: 1fr 0.6fr 0.6fr;
    }

    footer .footerimg {
        margin-bottom: 0;
        margin-top: 20px;
        grid-column: 1/2;
        grid-row: 1/4;
        /* align-self: center; */
    }

    footer .address {
        grid-column: 2/4;
        grid-row: 1/2;
        margin-left: -50px;
        margin-top: 20px;
    }

    footer .address2 {
        grid-column: 2/4;
        grid-row: 2/3;
        margin-left: -50px;
        margin-top: 20px;

    }

    .small {
        grid-column: 2/3;
        grid-row: 3/4;
        text-align: left;
        margin-left: -20px;
        margin-top: 50px;
    }

    /* お問い合わせボタン */
    #topBtn {
        max-width: 100%;
        bottom: 0;
        right: 0;
    }

    #topBtn .topBtn1 {
        bottom: 15px;
        right: 20px;
        font-size: 17px;
    }

    #topBtn .topBtn2 {
        bottom: 180px;
        right: 29px;
        font-size: 20px;
        width: 120px;
    }

}


@media(width >=1400px) {
    .footerWrap {
        max-width: 1200px;
        margin: 0 auto;
    }

    footer .footerTop {
        text-align: left;
        font-size: 32px;
    }

    .footerWrap>div {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }

    footer .footerimg {
        margin-bottom: 0;
        grid-column: 1/2;
        grid-row: 1/3;
        /* align-self: flex-end; */
    }

    footer .address {
        grid-column: 2/3;
        grid-row: 1/2;
        margin-left: 0;
        align-self: flex-end;
    }

    footer .address2 {
        grid-column: 3/4;
        grid-row: 1/2;
        margin-left: 0;
        align-self: flex-end;
        margin-bottom: 0;


    }

    .small {
        grid-column: 2/3;
        grid-row: 2/3;
        text-align: center;
    }
}

@media (1400px > width > 370px) {
    footer .footerimg {
        /* margin-bottom: 0; */
        grid-column: 1/2;
        grid-row: 1/3;
        align-self: center;
    }

    footer .address {
        margin-top: 60px;
    }

    footer .address2 {
        /* margin-top: 20px; */
        margin-bottom: 30px;


    }
}

/* footer共通デザイン */



/* ハンバーガーメニュー */

@media (width <=1080px) {
    .menu-wrapper {
        position: relative;
    }

    .menu-icon {
        width: 40px;
        height: 30px;
        position: fixed;
        /* ← fixedにして常に左上固定 */
        top: 20px;
        right: 20px;
        cursor: pointer;
        z-index: 3;
        display: inline-block;
    }

    .menu-icon span {
        display: block;
        height: 4px;
        margin: 6px 0;
        background: #333;
        border-radius: 2px;
        transition: 0.4s;
    }

    /* ハンバーガーがXに変形 */
    #menu-toggle:checked+.menu-icon span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    #menu-toggle:checked+.menu-icon span:nth-child(2) {
        opacity: 0;
    }

    #menu-toggle:checked+.menu-icon span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }

    .logoTop {
        display: block;
    }

    /* オーバーレイ背景 */
    .overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: 0.4s;
        z-index: 1;
    }

    #menu-toggle:checked~.overlay {
        opacity: 1;
        pointer-events: auto;
    }

    /* メニュー本体（左から出す） */
    .menu {
        position: fixed;
        top: 0;
        left: -250px;
        /* ← 初期位置を左へ */
        width: 250px;
        height: 100%;
        background: #fff;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
        transition: left 0.4s ease;
        z-index: 2;
    }

    #menu-toggle:checked~.menu {
        left: 0;
        /* ← 開いたときは左0へ */
    }

    .menu ul {
        list-style: none;
        padding: 60px 20px;
    }

    .menu li {
        margin: 20px 0;
    }

    .menu a {
        text-decoration: none;
        color: #333;
        font-size: 1.2rem;
        transition: color 0.3s;
    }

    .menu a:hover {
        color: #007bff;
    }

}

@media (width > 1080px) {

    input,
    label,
    .overlay {
        display: none;
    }

    header .menu ul {
        /* display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 30px; */
        display: flex;
        gap: 30px;
    }

    header .menu ul li:hover {
        color: #107b00;
        /* scale: 1.2; */
        font-weight: bold;
    }

}


/* ハンバーガーメニュー */