@charset "UTF-8";
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    font-family: 'Kosugi Maru', 'Rounded Mplus 1c', 'Noto Sans JP', 'Meiryo', 'Segoe UI', sans-serif;
    color: #2d3a2e;
    position: relative;
    padding-bottom: 3.5em;
}
main {
    padding-bottom: 100px;
}
.main-content {
    flex: 1;
    margin-top: 56px !important;
    margin-bottom: 90px !important;
}
.header-menu, .header-menu-flex {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1002;
}
.header-menu {
    background: #39a8b2 !important;
    color: #fff !important;
    padding: 0.9em 0;
    text-align: center;
    font-size: 1em;
    border-bottom: 2px solid #b2d8c5;
    box-shadow: 0 2px 8px #e0f2e9;
}
.header-menu a {
    color: #2d3a2e;
    margin: 0 0.7em;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: color 0.2s;
}
.header-menu a:hover {
    color: #3b7a57;
    text-decoration: underline;
}
.login-box, .logout-box {
    width: 95vw;
    max-width: 360px;
    margin: 40px auto;
    background: #f8f9fa;
    border-radius: 18px;
    box-shadow: 0 2px 16px #e0f2e9;
    border: 1.5px solid #39a8b2;
}
.login-box h1, .logout-box h1 {
    margin-top: 0px;
    font-size: 1.1em;
    color: #FFFFFF;
    display: block;
}
.login-box label {
    display: block;
    margin-top: 1em;
    font-size: 0.98em;
    color: #4A4A4A;
    font-weight: bold;
}
.login-box input[type="text"], .login-box input[type="password"] {
    width: 100%;
    padding: 0.6em;
    margin-top: 0.3em;
    font-size: 1em;
    border: 1.5px solid #b2d8c5;
    border-radius: 8px;
    background: #fff;
    transition: border 0.2s;
    box-sizing: border-box;
}
.login-box input[type="text"]:focus, .login-box input[type="password"]:focus {
    border: 1.5px solid #3b7a57;
    outline: none;
}
.login-box button {
    margin-top: 1.2em;
    width: 100%;
    padding: 0.8em;
    background: #4A4A4A;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px #e0f2e9;
    transition: background 0.2s, color 0.2s;
}
.login-box button:hover {
    background: #222;
    color: #fff;
}
.error {
    color: #b22222;
    margin-top: 1em;
    font-size: 0.98em;
    background: #fff2f2;
    border-radius: 6px;
    padding: 0.5em 1em;
    border: 1px solid #f5bcbc;
}
.logout-box {
    text-align: center;
}
.logout-box h1 {
    margin-top: 24px;
    font-size: 1.1em;
    color: #205c3b;
    display: block;
}
.logout-box a {
    display: inline-block;
    margin-top: 0em;
    margin-bottom: 2em;
    color: #fff;
    text-decoration: none;
    font-size: 1em;
    background: #39a8b2;
    border-radius: 8px;
    padding: 0.7em 1.5em;
    border: none;
    font-weight: bold;
    box-shadow: 0 2px 8px #e0f2e9;
    transition: background 0.2s, color 0.2s;
}
.logout-box a:hover {
    background: #205c3b;
    color: #fff;
}
.cms-footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background: #222;
    color: #FFFFFF;
    font-size: 0.5em;
    font-weight: normal;
    border-top: none;
    box-shadow: none;
    text-align: center;
    padding: 0.2em 0 0.1em 0;
    z-index: 998;
}
.login-title {
    text-align: center;
    border-bottom: 2px solid #39a8b2;
    border-radius: 16px 16px 0px 0px;
    background: #39a8b2;
    padding: 0.7em 0.5em;
    margin-bottom: 0;
    font-size: 1.1em;
    color: #205c3b;
    width: 100%;
    box-sizing: border-box;
}
.login-box form {
    padding: 0;
    margin: 0;
}
.login-form-area {
    padding: 1.2em 0.7em;
    background: #FFFFFF;
    border-radius: 14px;
    box-shadow: 0 2px 8px #e0f2e9;
}
.login-form-title {
    font-size: 1em;
    color: #4A4A4A;
    margin-bottom: 1.2em;
    text-align: center;
    font-weight: bold;
}
.header-menu-flex {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #39a8b2;
    color: #fff;
    box-shadow: 0 2px 8px #e0f2e9;
}
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-row-top {
    padding: 0.3em 0.7em;
    border-bottom: 1px solid #e0f2e9;
    background: #39a8b2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.header-row-bottom {
    padding: 0.2em 0.7em 0.2em 0.7em;
    background: #fff;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.3em;
    overflow-x: auto;
    flex-wrap: nowrap;
}
.header-left {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1em;
    color: #fff;
    padding-left: 0;
    flex: 1;
}
.header-right {
    display: flex;
    align-items: center;
    padding-right: 0;
}
.header-center {
    display: none !important;
}
.header-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.3em;
    padding: 0em 0.5em;
}
.login-user-name {
    font-size: 0.7em;
    color: #fff;
    background: #4A4A4A;
    border: none;
    padding: 0.13em 0.7em;
    border-radius: 6px;
    margin-left: 0.5em;
}
.system-title {
    letter-spacing: 0.02em;
}
.system-version {
    font-size: 0.9em;
    color: #e0f2e9;
    margin-left: 0.3em;
}
.header-right {
    flex: 0 0 auto;
    margin-left: auto;
    padding-left: 1em;
}
.header-right a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.98em;
    transition: color 0.2s;
}
.header-right a:hover {
    color: #ffd1d1;
    text-decoration: underline;
}
.header-menu-flex {
    position: relative;
}
.mobile-hamburger {
    display: block;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    padding: 0.3em;
    cursor: pointer;
    z-index: 1003;
}
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
}
.mobile-menu.open {
    right: 0;
}
.mobile-menu .close-btn {
    position: absolute;
    top: 0.5em;
    right: 1em;
    background: none;
    border: none;
    color: #333;
    font-size: 1.5em;
    cursor: pointer;
    z-index: 1002;
}
.mobile-menu .menu-link {
    display: block;
    padding: 0.8em;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #e0f2e9;
    font-size: 0.9em;
}
.mobile-menu .menu-link:hover {
    background: #e0f2e9;
    color: #39a8b2;
}
.mobile-menu .submenu {
    display: none;
    background: #f8f9fa;
    padding-left: 1em;
}
.mobile-menu .navi-item.has-submenu.open > .submenu {
    display: block;
}
.mobile-menu .submenu .submenu {
    background: #f0f0f0;
    padding-left: 1em;
}
.mobile-menu .navi-item.has-submenu > a {
    position: relative;
    padding-right: 3em;
}
.mobile-menu .navi-item.has-submenu > a::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 1em;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
}
.mobile-menu .navi-item.has-submenu.open > a::after {
    transform: translateY(-50%) rotate(180deg);
}
.mobile-menu .menu-link.menu-reserve-new {
    background: #d32f2f;
    color: #fff;
    border-radius: 4px;
    margin: 1em 0;
}
.mobile-menu .menu-link.menu-reserve-new:hover {
    background: #b71c1c;
    color: #fff;
}
.mobile-menu .menu-link.active {
    background: #e0f2e9;
    color: #39a8b2;
    font-weight: bold;
}
.common-box {
    background: #f8f9fa;
    max-width: 98vw;
    margin: 24px 15px 24px 15px;
    padding: 10px;
} 
.common-box h1 {
    color: #39a8b2;
    font-size: 1.3em;
    margin-bottom: 1em;
} 
.footer-menu-mobile {
    position: fixed;
    left: 0;
    bottom: 0.9em;
    width: 100%;
    background: #4a4a4a;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 999;
}
.footer-menu-mobile .footer-menu-item {
    flex: 1 1 0;
    text-align: center;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1em;
    padding: 0.5em 0 0.5em 0;
    transition: background 0.2s, color 0.2s;
}
.footer-menu-mobile .footer-menu-item:hover {
    background: #e0f2e9;
    color: #205c3b;
}
.footer-menu-mobile .icon {
    display: block;
    font-size: 1.3em;
    margin-bottom: 0.05em;
}
.footer-menu-mobile .label {
    font-size: 0.7em;
    display: block;
}
.footer-menu-mobile .icon svg {
    stroke: #fff;
}
.notice-tag {
    display: inline-block;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    margin-right: 0.7em;
    vertical-align: middle;
    background: #e0e0e0;
    position: relative;
}
.notice-tag::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
}
.notice-tag.notice-important { background: #d32f2f; }
.notice-tag.notice-maintenance { background: #ff9800; }
.notice-tag.notice-info { background: #1976d2; }
.notice-tag.notice-foo { background: #8e24aa; }
.notice-tag.read, .notice-tag.unread {
    border-radius: 0;
    font-size: 0.78em;
    padding: 2px 6px;
}
.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.notice-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 0.7em 0.2em;
    background: #fff;
    display: flex;
    flex-direction: column;
}
.notice-title {
    font-size: 1.05em;
    font-weight: bold;
    display: flex;
    align-items: center;
}
.notice-status {
    display: inline-block;
    padding: 2px 6px;
    font-size: 0.78em;
    font-weight: bold;
    border-radius: 0;
    background: #eee;
    color: #888;
    vertical-align: middle;
}
.notice-status.unread {
    background: #1976d2;
    color: #fff;
}
.notice-status.read {
    background: #eee;
    color: #888;
}

/* オーバーレイ */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
}

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

/* モバイル対応 */
@media screen and (max-width: 767px) {
    .header-right {
        gap: 10px;
    }

    .user-name {
        display: none;
    }

    .notification-area {
        margin-right: 5px;
    }

    .btn-logout {
        padding: 6px 10px;
        font-size: 0.8em;
    }

    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.2em;
        color: #333;
        cursor: pointer;
        padding: 5px;
    }

    .header-row-bottom {
        display: none;
    }
}

.mobile-menu-header {
    padding: 1em;
    border-bottom: 1px solid #e0f2e9;
    display: flex;
    justify-content: flex-end;
}

.mobile-menu-header .close-btn {
    background: none;
    border: none;
    color: #4A4A4A;
    font-size: 1.2em;
    padding: 0.3em;
    cursor: pointer;
}

.mobile-menu-content {
    padding: 1em;
}

.mobile-menu-content a {
    display: block;
    padding: 0.8em 1em;
    color: #2d3a2e;
    text-decoration: none;
    border-bottom: 1px solid #e0f2e9;
    transition: background-color 0.2s;
}

.mobile-menu-content a:hover {
    background-color: #f8f9fa;
}

.mobile-menu-content a.active {
    background-color: #e0f2e9;
    color: #39a8b2;
    font-weight: bold;
}

.container {
    padding: 30px;
}

.page-title {
    font-size: 2em;
}

