* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}

.title {

    text-align: center;

    font-size: 56px;

    font-weight: 800;

    color: #2d3c6b;

    margin-top: 10px;

    margin-bottom: 20px;

    letter-spacing: 1px;

}

/* =====================
   MamoruN Hover Effect
===================== */

.hoverCard {

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;

}

.hoverCard:hover {

    transform: translateY(-6px);

    border-color: #4f7cff;

    box-shadow:
        0 12px 28px rgba(79,
            124,
            255,
            0.18);

}

/* =====================
   共通
===================== */

body {

    font-family:
        "Yu Gothic",
        "Hiragino Sans",
        sans-serif;

    background:
        linear-gradient(to bottom,
            #f7fbff,
            #eef5ff);

}

.container {

    width: 100%;

    max-width: 1400px;

    margin: 0 auto;

    min-height: 100vh;

}

.logo {

    width: 220px;

}

.footer {

    text-align: center;

    color: #97a1bc;

    font-size: 16px;

    margin-top: 40px;

    padding-bottom: 20px;

}

/* =====================
   ナビゲーション
===================== */

.navBar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 20px auto 40px;
}

.navButton.settingButton {
    grid-column: 2 / 4;
}

.navButton {

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-width: 120px;
    height: 60px;

    padding: 12px 14px;

    border-radius: 18px;

    text-decoration: none;

    background: #f5f7fc;
    color: #4f7cff;

    font-weight: 700;
    font-size: 18px;

    transition:
        transform .25s ease,
        background .25s ease,
        color .25s ease,
        box-shadow .25s ease;

}

.navButton:hover:not(.active) {

    background: linear-gradient(180deg,
            #f8fbff,
            #eef4ff);

    color: #4f7cff;

    transform: translateY(-2px);

    box-shadow:
        0 6px 14px rgba(79, 124, 255, .10);

}

.navButton.active {

    background: linear-gradient(180deg,
            #7697ff,
            #5d88ff);

    color: #fff;

    box-shadow:
        0 8px 18px rgba(79, 124, 255, .16);

}

.navButton.active:hover {

    background: linear-gradient(180deg,
            #82a1ff,
            #6992ff);

    transform: translateY(-2px);

    box-shadow:
        0 12px 24px rgba(79, 124, 255, .22);

}

.navButton.active i {

    color: #fff;

}

/* =====================
   上部エリア
===================== */

.topArea {

    position: relative;

}

.headerUser {

    position: absolute;

    top: 28px;

    right: 170px;

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 2px;

}


.headerUser i {

    color: #4f7cff;

    font-size: 14px;

}

/* =====================
   ログアウト
===================== */

.logoutButton {

    position: absolute;

    top: 15px;

    right: 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #ef4444;

    color: white;

    border: none;

    border-radius: 16px;

    padding: 14px 20px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.2s;

}

.logoutButton:hover {

    background: #dc2626;

    transform: translateY(-2px);

}

/* =====================
   ユーザー表示
===================== */



.userInfo i {

    color: #4f7cff;

}

html,
body {
    min-height: 100vh;
    overflow-y: scroll;
}

/* =====================
   Hamburger Menu
===================== */

.hamburgerButton {

    display: none;

    position: fixed;

    top: 15px;

    left: 15px;

    width: 50px;

    height: 50px;

    border: none;

    border-radius: 12px;

    background: white;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

    z-index: 2000;

    font-size: 22px;

    cursor: pointer;

    transition:
        background .25s ease,
        transform .25s ease,
        box-shadow .25s ease;

}

.hamburgerButton:hover {

    background: linear-gradient(180deg,
            #ffffff,
            #f6f9ff);

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(79, 124, 255, .10);

}

.sideMenu {

    position: fixed;

    top: 0;

    left: -280px;

    width: 220px;

    height: 100%;

    padding-top: 80px;

    background: white;

    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);

    z-index: 1999;

    transition: 0.3s;

    padding: 80px 20px 20px 20px;

}

.sideMenu.show {

    left: 0;

}

.menuOverlay {

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.3);

    display: none;

    z-index: 1998;

}

.menuOverlay.show {

    display: block;

}

.sideMenu h2 {

    color: #2d3c6b;

    margin-bottom: 0px;

}

.sideMenu a {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 15px;

    margin-bottom: 10px;

    border-radius: 14px;

    text-decoration: none;

    color: #1F2F6A;

    font-weight: 600;

    transition:
        transform .25s ease,
        background .25s ease,
        color .25s ease,
        box-shadow .25s ease;

}

.sideMenu a i {

    width: 20px;

    text-align: center;

    color: #4f7cff;

}

.sideMenu a {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 15px;

    margin-bottom: 10px;

    border-radius: 14px;

    text-decoration: none;

    color: #1F2F6A;

    font-weight: 600;

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;

}

.sideMenu a:hover:not(.menuActive) {

    background: linear-gradient(180deg,
            #f8fbff,
            #eef4ff);

    color: #4f7cff;

    transform: translateY(-2px);

    box-shadow:
        0 6px 14px rgba(79, 124, 255, .10);

}

.sideMenu a:hover:not(.menuActive) i {

    color: #4f7cff;

}

.menuActive {

    background: linear-gradient(180deg,
            #7697ff,
            #5d88ff);

    color: #fff !important;

    box-shadow:
        0 8px 18px rgba(79, 124, 255, .16);

}

.menuActive:hover {

    background: linear-gradient(180deg,
            #82a1ff,
            #6992ff);

    transform: translateY(-2px);

    box-shadow:
        0 12px 24px rgba(79, 124, 255, .22);

}

.menuActive i {

    color: #fff !important;

}

.menuLogo {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 30px;

    font-size: 22px;

    font-weight: 700;

    color: #2d3c6b;

}

.menuLogo img {

    width: 36px;

    height: 36px;

    object-fit: contain;

}

.notConnectedBadge {

    background: #eef4ff;

    color: #64748b;

    border: 1px solid #cbd5e1;

    padding: 10px 18px;

    border-radius: 999px;

    font-size: 15px;

    font-weight: 700;

}

.userCard.notConnected {

    border-left: 6px solid #94a3b8;

    background: #f8fbff;

}

#loginUserInfo {

    font-size: 18px;

    font-weight: 700;

    color: #6b7280;

    white-space: nowrap;

}

/* =====================
   モーダル
===================== */

.modal {

    display: none;

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, .45);

    justify-content: center;
    align-items: center;

    z-index: 9999;

}

.modal.show {

    display: flex;

}

.modalContent {

    width: 420px;

    max-width: 90%;

    background: #fff;

    border-radius: 18px;

    padding: 30px;

    box-shadow: 0 20px 40px rgba(0, 0, 0, .2);

    animation: modalOpen .2s ease;

}

@keyframes modalOpen {

    from {

        opacity: 0;

        transform: scale(.9);

    }

    to {

        opacity: 1;

        transform: scale(1);

    }

}

.modalContent h2 {

    margin: 0;

    color: #23408e;

    text-align: center;

}

.modalContent p {

    margin: 25px 0;

    line-height: 1.8;

    white-space: pre-line;

    text-align: center;

}

.modalButtons {

    display: flex;

    justify-content: center;

    gap: 15px;

}

.grayButton {

    background: #d9d9d9;

    color: #333;

    border: none;

    border-radius: 10px;

    padding: 12px 28px;

    cursor: pointer;

    font-size: 16px;

    font-weight: bold;

}

.blueButton {

    background: #23408e;

    color: #fff;

    border: none;

    border-radius: 10px;

    padding: 12px 28px;

    cursor: pointer;

    font-size: 16px;

    font-weight: bold;

}

.grayButton:hover {

    background: #bfbfbf;

}

.blueButton:hover {

    background: #1b3270;

}


@media (max-width: 1024px) {

    .hamburgerButton {

        display: block;

    }

    .navBar {

        display: none;

    }

    .sideMenu h2 {

        margin-top: 20px;

        margin-bottom: 30px;

    }

}

/* =====================
   レスポンシブ対応
===================== */

@media (max-width:1024px) and (min-width:769px) {

    .headerUser {

        top: 18px;

        left: 120px;

        right: auto;

    }

    #loginUserInfo {

        font-size: 13px;

        font-weight: 600;

    }

    .logoutButton {

        top: 14px;

        right: 16px;

        padding: 10px 16px;

        font-size: 13px;

    }

    .logo {

        width: 150px;

    }

}


@media (max-width:768px) {

    .headerUser {

        top: 52px;

        left: 18px;

        right: auto;

    }

    #loginUserInfo {

        font-size: 11px;

        font-weight: 600;

    }

    .logoutButton {

        top: 8px;

        right: 8px;

        padding: 8px 12px;

        font-size: 12px;

    }

    .logo {

        width: 120px;

        margin-top: 40px;

    }

}


@media (max-width:480px) {

    #loginUserInfo {

        font-size: 11px;

    }

    .headerUser {

        left: 16px;

        top: 50px;

    }

}


@media (hover:hover) {

    .navButton:hover {
        transform: translateY(-2px);
    }

}