* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Jost", "游ゴシック", "Yu Gothic", "YuGothic", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif;
    margin: 0;
}

/* ヘッダー */
header {
    height: 97px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 45px;
    border-bottom: 1px solid #e0e0e0;
}

p {
    text-align: justify;
}

.logo {
    width: 297px;
    position: relative;
    z-index: 10001;
}

.logo img {
    width: 100%;
    height: auto;
}

.logo .logo-white {
    display: none;
}

body.menu-open .logo .logo-default {
    display: none;
}

body.menu-open .logo .logo-white {
    display: block;
}

.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 10001;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    transition: all 0.3s ease;
    position: relative;
}

/* ハンバーガーメニューのX字アニメーション */
body.menu-open .hamburger-menu span {
    background-color: #fff;
}

body.menu-open .hamburger-menu span:first-child {
    transform: rotate(45deg);
    position: absolute;
    top: 50%;
    left: 0;
    margin-top: -1px;
}

body.menu-open .hamburger-menu span:last-child {
    transform: rotate(-45deg);
    position: absolute;
    top: 50%;
    left: 0;
    margin-top: -1px;
}

/* メニューオーバーレイ */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #505050;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.menu-open .menu-overlay {
    opacity: 1;
    visibility: visible;
}

/* メニューナビゲーション */
.menu-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    max-width: 1200px;
    padding: 0 40px;
}

.menu-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    display: flex;
    align-items: center;
    height: 25px;
}

.menu-item img {
    height: 25px;
    width: auto;
    object-fit: contain;
}

body.menu-open .menu-item {
    opacity: 1;
    transform: translateY(0);
}

/* アニメーションの遅延 */
body.menu-open .menu-item:nth-child(1) { transition-delay: 0.1s; }
body.menu-open .menu-item:nth-child(2) { transition-delay: 0.15s; }
body.menu-open .menu-item:nth-child(3) { transition-delay: 0.2s; }
body.menu-open .menu-item:nth-child(4) { transition-delay: 0.25s; }
body.menu-open .menu-item:nth-child(5) { transition-delay: 0.3s; }
body.menu-open .menu-item:nth-child(6) { transition-delay: 0.35s; }
body.menu-open .menu-item:nth-child(7) { transition-delay: 0.4s; }

/* SNSアイコン */
.menu-sns {
    display: flex;
    gap: 30px;
    margin-top: 150px;
}

.sns-icon {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.sns-icon img {
    width: 30px;
    height: 30px;
}

.sns-icon:nth-child(3) {
    display: none;
}

body.menu-open .sns-icon {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

body.menu-open .sns-icon:nth-child(2) {
    transition-delay: 0.55s;
}

body.menu-open .sns-icon:nth-child(3) {
    transition-delay: 0.6s;
}

/* bodyのスクロール無効化 */
body.menu-open {
    overflow: hidden;
}

/* フッターセクション */
.footer-section {
    background-color: #787878;
    color: #fff;
    padding: 80px 93px 30px;
    position: relative;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 100%;
    position: relative;
}

.footer-left {
    flex: 1;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 60px;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    font-family: "Jost", sans-serif;
    font-weight: 300;
    transition: opacity 0.3s ease;
}

.footer-nav a:hover {
    opacity: 0.7;
}

.footer-sns {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
}

.footer-sns-icon {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.footer-sns-icon img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

.footer-sns-icon:hover {
    opacity: 0.7;
}

.footer-sns .footer-sns-icon:nth-child(3) {
    display: none;
}

.footer-city-logo {
    margin-bottom: 40px;
}

.footer-city-logo img {
    width: 280px;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    flex: 1;
    position: relative;
}

.footer-main-logo {
    margin-top: 60px;
}

.footer-main-logo img {
    width: 350px;
    height: auto;
    filter: brightness(0) invert(1);
}

.scroll-to-top {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    margin-bottom: 40px;
    padding: 0;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
}

.scroll-to-top img {
    width: 95px;
    height: auto;
}

.footer-copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.footer-copyright p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-family: "Jost", sans-serif;
    margin: 0;
}

.footer-bottom-logo img {
    width: 280px;
    height: auto;
    filter: brightness(0) invert(1);
}

/* レスポンシブスタイル */
@media (max-width: 768px) {

    /* ヘッダー */
    header {
        height: 70px;
        padding: 0 20px;
    }

    .logo {
        width: 200px;
    }

    .hamburger-menu {
        width: 24px;
        height: 20px;
        gap: 6px;
    }

    /* メニュー */
    .menu-nav {
        flex-direction: column;
        gap: 30px;
        padding: 0 20px;
    }

    .menu-item {
        height: 20px;
    }

    .menu-item img {
        height: 20px;
    }

    .menu-sns {
        margin-top: 80px;
        gap: 25px;
    }

    .sns-icon img {
        width: 25px;
        height: 25px;
    }

    .sns-icon:nth-child(3) {
        display: inline-block;
    }

    /* フッター */
    .footer-section {
        padding: 60px 30px 20px;
    }

    .footer-container {
        flex-direction: row;
        align-items: stretch;
    }

    .footer-left {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .footer-nav {
        gap: 15px;
        margin-bottom: 40px;
    }

    .footer-nav a {
        font-size: 20px;
    }

    .footer-sns {
        gap: 25px;
        margin-bottom: 0;
    }

    .footer-sns-icon img {
        width: 25px;
        height: 25px;
    }

    .footer-sns .footer-sns-icon:nth-child(3) {
        display: inline-block;
    }

    .footer-right {
        align-items: flex-end;
        margin-top: 0;
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .footer-main-logo {
        margin-top: 0;
        align-self: flex-end;
        display: flex;
        align-items: flex-end;
    }

    .footer-main-logo img {
        width: 120px;
    }

    .scroll-to-top {
        margin-bottom: 0;
        align-self: flex-end;
    }

    .scroll-to-top img {
        width: 70px;
    }

    .footer-copyright {
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
        text-align: center;
    }

    .footer-copyright p {
        font-size: 12px;
    }

    .footer-bottom-logo img {
        width: 200px;
    }
}

@media (max-width: 480px) {
    /* ヘッダー */
    header {
        height: 60px;
        padding: 0 15px;
    }

    .logo {
        width: 150px;
    }

    /* メニュー */
    .menu-nav {
        gap: 25px;
    }

    .menu-item {
        height: 18px;
    }

    .menu-item img {
        height: 18px;
    }

    .menu-sns {
        margin-top: 60px;
    }

    /* フッター */
    .footer-section {
        padding: 40px 20px 15px;
    }

    .footer-nav a {
        font-size: 18px;
    }

    .footer-main-logo img {
        width: 150px;
    }

    .footer-bottom-logo {
        margin-top: 20px;
    }

    .footer-bottom-logo img {
        width: 160px;
    }
}