/* 基本設定 */
body {
    margin: 0;
    padding: 0;
    font-family: "BIZ UDPGothic", sans-serif;
    background-color: #f0f0f0;
}

html, body {
    overflow-x: hidden;
}

/* サイト全体のコンテナ */
.site-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ヘッダー */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    width: 100%;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10%;
    box-sizing: border-box;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.header-left img,
.header-right img {
    height: 50px;
}

/* メインコンテンツエリア */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* --- フッター --- */
.page-footer {
    background-color: #ffff97;
    margin-top: auto;
}

.footer-inner {
    width: 96%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    text-align: center;
}

.footer-inner::before,
.footer-inner::after {
    content: '';
    display: block;
    height: 60px;
}

.footer-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 60px;
}

.button-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.button-row a {
    width: calc(50% - 8px);
}

.button-row img {
    max-width: 100%;
    height: auto;
}

.center-name {
    font-size: 25px;
    font-weight: bold;
    margin: 30px 0;
}

.address-block {
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
    font-weight: bold;
}

.address-block a {
    color: inherit;
    text-decoration: none;
}
.address-block a:hover {
    text-decoration: underline;
}


/* --- ハンバーガーメニューボタン --- */
.menu-button {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 50px;
    height: 50px;
    padding: 13px;
    background-color: #005bac;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.3s;
    flex-shrink: 0;
}

.menu-button:hover {
    background-color: #004a8c;
}

.menu-button span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
}

/* --- 全画面メニュー --- */
.fullscreen-menu {
    background-color: #ffffdb;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9);
}

.fullscreen-menu.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.menu-content-wrapper {
    position: relative;
}

.menu-nav {
    list-style: none;
    padding: 0;
    text-align: center;
}

.menu-nav li {
    margin-bottom: 30px;
}

.menu-nav a.animated-button {
    display: inline-block;
    margin-top: 10px;
}

.menu-close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    font-size: 40px;
    color: #333;
    cursor: pointer;
    z-index: 2;
}

/* イラスト画像を配置するスタイル */
.menu-boy-img {
    position: absolute;
    width: 100%;
    max-width: 320px;
    top: 70%;
    left: 15%;
    transform: translate(-100%, -50%);
    margin-left: -50px;
}

.menu-girl-img {
    position: absolute;
    width: 100%;
    max-width: 320px;
    top: 30%;
    right: 15%;
    transform: translate(100%, -50%);
    margin-right: -50px;
}

/* 共通のレスポンシブスタイル */
@media (max-width: 640px) {
    body {
        overflow-y: scroll;
    }
    
    .header-inner {
        padding: 15px 20px;
    }

    .header-right {
        gap: 8%;
    }
    
    .header-left img,
    .header-right img {
        height: 8vw;
        max-height: 50px;
    }

    .header-left img {
        height: 10vw;
        max-height: 65px;
    }

    .menu-nav li {
        margin-bottom: 12px;
    }
    
    .menu-nav img {
        max-width: 80vw;
        height: auto;
    }
    
    .menu-boy-img {
        position: fixed;
        width: 30%;
        max-width: 150px;
        top: auto;
        bottom: 30px;
        left: 40px;
        transform: translateX(0);
        z-index: 1;
    }

    .menu-girl-img {
        position: fixed;
        width: 30%;
        max-width: 150px;
        top: -10px;
        right: 100px;
        transform: translateX(0);
        z-index: 1;
    }
    
    /* 画面の高さが680px以下の時 */
    @media (max-height: 680px) {
        .menu-boy-img {
            width: 25%;
            max-width: 100px;
        }
    
        .menu-girl-img {
            width: 25%;
            max-width: 100px;
            top: -10px
        }
    }
    
    .page-footer .footer-buttons {
        flex-direction: column;
        margin-bottom: 40px;
        gap: 15px;
    }

    .page-footer .button-row {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .page-footer .button-row a {
        width: 100%;
    }

    .page-footer .button-row img {
        width: 100%;
        height: auto;
    }
    
    .page-footer .center-name {
        margin-top: 0;
        margin-bottom: 16px;
    }

    .page-footer .center-name-main {
        font-size: 22px;
        display: block;
    }

    .page-footer .center-name-sub {
        font-size: 18px;
    }
    
    .page-footer .address-block {
        font-size: 14px;
        line-height: 1.9;
    }
}
