﻿/* ヘッダースタイル */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    height: 60px;
    background-color: #f5f5f5;
    z-index: 1000;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 10px;
    height: 100%;
    display: grid;
    grid-template-columns: min-content auto min-content;
    align-items: center;
    gap: 8px;
}

.site-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

    .site-title a {
        text-decoration: none;
        color: #333;
    }

.site-title-sub {
    font-size: 12px;
    font-weight: 400;
    color: #333;
    margin: 0;
    padding: 0;
    text-align: center;
    white-space: nowrap;
}

/* メニューボタン */
.menu-button {
    width: 34px;
    height: 34px;
    padding: 0;
    margin: 0;
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: -1px;
    transition: all 0.2s ease;
}

    .menu-button:hover {
        background-color: #f5f5f5;
        border-color: #ccc;
    }

    .menu-button:active {
        background-color: #eee;
        transform: translateY(1px);
    }

    .menu-button i {
        font-size: 22px;
        color: #666;
        height: 22px; /* フォントサイズと同じ高さに設定 */
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        top: -1px;
        margin: 0;
        padding: 0;
    }


/* メニューパネル */
.menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1003;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .menu-panel.active {
        opacity: 1;
        display: block;
    }


.menu-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    padding: 15px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.menu-panel.active .menu-container {
    transform: translateX(0);
}

.menu-header {
    text-align: right;
    padding: 10px;
    cursor: pointer;
    color: #666;
}

.menu-items {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

    .menu-items li {
        padding: 12px 15px;
        font-size: 14px;
        color: #333;
        cursor: pointer;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

        .menu-items li:hover {
            background: #f5f5f5;
        }

    /* リンクのスタイル */
    .menu-items a, .menu-items span {
        text-decoration: none;
        color: #333;
        display: flex;
        align-items: center;
        justify-content: space-between; /* 文字を左端、アイコンを右端に配置 */
        width: 100%;
    }

    /* アイコンのスタイル */
    .menu-items li a i, .menu-items li span i {
        margin-left: auto; /* アイコンを右端に配置 */
    }

    /* 区切り線 */
    .menu-items .separator {
        border-top: 1px solid #ccc;
        margin: 8px 0;
        list-style: none;
    }

/* フッタースタイル */
.site-footer {
    background: #f8f8f8;
    color: #666;
    margin: 0 auto;
    padding: 10px 20px;
    font-size: 12px;
    text-align: center;
    border-top: 1px solid #ddd;
}

    .site-footer .footer-links {
        margin-bottom: 8px;
    }

        .site-footer .footer-links a {
            color: #666;
            text-decoration: none;
            margin: 0 10px;
            font-size: 12px;
            display: inline-block;
        }

            .site-footer .footer-links a:hover {
                color: #333;
                text-decoration: underline;
            }

    .site-footer .footer-copyright {
        font-size: 10px;
        color: #999;
    }
