@charset "UTF-8";

/* 共通部分 */
.mobile-disp {
    display: none;
}

.mobile-hidden {
    display: initial;
}

html {
    font-size: 100%;
}

body {
    /*    font-family: "Lato", "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;*/
    font-family: "Hiragino Kaku Gothic ProN", sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: #432;
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: #432;
}

ul {
    list-style: none;
    padding: 0;
}

.under-link {
    text-decoration: none;
    border-bottom: 1px solid #432;
}

/* ヘッダー */
.logo img {
    height: 60px;
    width: auto;
}

.main-nav {
    display: flex;
    list-style: none;
}

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

.main-nav a {
    color: #432;
    line-height: 60px;
}

.main-nav a:hover {
    color: #0bd;
}

.header {
    display: flex;
    justify-content: space-between;
    height: 60px;
    margin-top: 5px;
    margin-bottom: 10px;
    padding-left: 10px;
    padding-right: 50px;
}

/* フッター */
.page-footer {
    background-color: #827c79;
    color: #fbe3d6;
    text-align: center;
    padding: 20px 0;
}

.page-footer p {
    font-size: 0.9rem;
}

/* New!!アイコン */
.new-icon {
    display: inline-block;
    color: #fff;
    background-color: #432;
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 5px;
}

/* ボタン */
.more-button-light {
    border: 1px solid #432;
    cursor: pointer;
    padding: 15px 20px;
}

.more-button-light:hover {
    background-color: #f5f5f5;
}


/* 1. モーダルウィンドウのCSS */
.modal-overlay {
    display: none;
    /* 初期状態では非表示 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.modal-content p {
    margin: 0 0 10px;
}

.modal-content a,
.modal-content button {
    margin: 5px;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.modal-content a {
    background-color: #007bff;
    color: white;
}

.modal-content button {
    background-color: #28a745;
    color: white;
}

/* レスポンシブ */
@media screen and (max-width: 1150px) {

    body {
        width: 100%;
    }

    .fixed-body {
        position: fixed;
    }

    .mobile-hidden {
        display: none;
    }

    .mobile-disp {
        display: block;
    }

    .mobile-header {
        width: 100%;
        padding: 10px 0;
        margin: 0 auto;
        position: relative;
    }

    .logo {
        padding-right: 20%;
        display: inline-block;
    }

    .logo a img {
        display: block;
        width: 100%;
    }

    nav {
        display: block;
        position: fixed;
        background-color: #FFFFFF;
        top: 87px;
        right: -50%;
        width: 50%;
        bottom: 0;
        transition: all 0.5s;
        z-index: 3;
        opacity: 0;
    }

    .open nav {
        right: 0;
        opacity: 1;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    nav .inner {
        padding: 25px;
    }

    nav .inner ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    nav .inner ul li {
        margin: 0;
        border-bottom: 1px solid #333;
    }

    nav .inner ul li a {
        display: block;
        text-decoration: none;
        color: #333;
        font-size: 14px;
        padding: 10px 5px;
        transition-duration: 0.2s;
    }

    nav .inner ul:nth-child(2) {
        margin-top: 30px;
    }

    .toggle-button {
        display: block;
        position: absolute;
        top: 30px;
        right: 30px;
        width: 30px;
        height: 30px;
        z-index: 4;
    }

    .toggle-button span {
        position: absolute;
        display: block;
        left: 0;
        width: 30px;
        height: 2px;
        background-color: #333;
        transition: all 0.5s;
        border-radius: 4px;
    }

    .toggle-button span:nth-child(1) {
        top: 4px;
    }

    .toggle-button span:nth-child(2) {
        top: 14px;
    }

    .toggle-button span:nth-child(3) {
        bottom: 4px;
    }

    .open .toggle-button span:nth-child(1) {
        transform: translateY(10px) rotate(-45deg);
    }

    .open .toggle-button span:nth-child(2) {
        opacity: 0;
    }

    .open .toggle-button span:nth-child(3) {
        transform: translateY(-10px) rotate(45deg);
    }

    #mask {
        display: none;
        transition: all 0.5s;
    }

    .open #mask {
        display: block;
        background-color: #000;
        width: 100%;
        height: 100%;
        top: 87px;
        left: 0;
        position: fixed;
        opacity: 0.38;
    }

    .header-mobile {
        display: initial;
    }

    /* フッター */
    .page-footer {
        padding: 10px;
    }

    .page-footer p {
        font-size: 0.8rem;
    }

    /* New!!アイコン */
    .new-icon {
        font-size: 0.5rem;
        padding: 3px 10px;
        border-radius: 5px;
    }
}