/* ページ全体 */
html {
    background-image: url("./background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100%;
}

body {
    background: transparent;
    color: #333333;
    font-family: sans-serif;
    margin: 0;
    min-height: 100vh;
}

/* 横方向だけはみ出し防止 */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* 右上メニュー */
.menu-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    padding: 10px 16px;
    border: 1px solid #007bff;
    border-radius: 8px;
    background: white;
    color: #007bff;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.menu-button:hover {
    background: #f0f7ff;
}

/* 右側から出てくるメニュー */
.side-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 260px;
    height: 100vh;
    z-index: 1000;
    padding: 80px 20px 20px;
    background: white;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    box-sizing: border-box;
}

.side-menu.open {
    right: 0;
}

.side-menu h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
    color: #007bff;
}

.side-menu a {
    display: block;
    padding: 14px 10px;
    color: #007bff;
    text-decoration: none;
    border-bottom: 1px solid #ddd;
}

.side-menu a:hover {
    background: #f0f7ff;
}

/* プロフィール */
.profile {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    margin: 20px 30px;
    background-color: rgba(255, 245, 225, 0.88);
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.profile img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-text {
    margin-left: 20px;
}

.profile-text h1 {
    color: #0066cc;
    font-size: 32px;
    margin: 0 0 8px 0;
}

.profile-text p {
    font-size: 18px;
    margin: 0;
}

/* コンテンツ */
.content {
    background-color: white;
    margin: 20px 30px;
    padding: 25px;
    border-radius: 10px;
}

.content h2 {
    color: #0066cc;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 8px;
}

.content p {
    font-size: 17px;
    line-height: 1.8;
}

.content li {
    margin-bottom: 10px;
    font-size: 17px;
}

.content a {
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
}

.content a:hover {
    color: #ff66aa;
    text-decoration: underline;
}

/* アカウント状態（debug.html専用・折りたたみ式） */
#account-status {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2000;
    box-sizing: border-box;
    cursor: pointer;
    user-select: none;
}

#account-status.account-status-collapsed {
    width: 52px;
    height: 52px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #007bff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#account-status-toggle {
    color: #007bff;
    font-size: 25px;
    line-height: 1;
}

#account-status.account-status-expanded {
    width: 240px;
    max-width: calc(100vw - 40px);
    padding: 15px;
    background: white;
    border: 1px solid #007bff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#account-status.account-status-expanded #account-status-toggle {
    display: none;
}

#account-status-panel {
    display: none;
}

#account-status.account-status-expanded #account-status-panel {
    display: block;
}

#account-status h3 {
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #007bff;
    color: #007bff;
}

#account-status-content {
    line-height: 1.7;
    word-break: break-word;
}

#account-status-content a {
    color: #0066cc;
    font-weight: bold;
    text-decoration: none;
}

#account-status-content a:hover {
    color: #ff66aa;
    text-decoration: underline;
}

/* スマホ用レイアウト */
@media screen and (max-width: 600px) {
    html {
        background-image: url("./background2.jpg");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }

    .profile {
        padding: 20px;
    }

    .profile img {
        width: 65px;
        height: 65px;
    }

    .profile-text {
        margin-left: 15px;
    }

    .profile-text h1 {
        font-size: 24px;
        margin-bottom: 4px;
    }

    .profile-text p {
        font-size: 13px;
    }

    .content {
        margin: 15px;
        padding: 20px;
        border-radius: 10px;
    }

    .content h2 {
        font-size: 20px;
        padding-bottom: 6px;
        margin-top: 0;
    }

    .content p {
        font-size: 14px;
        line-height: 1.8;
    }

    .content li {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .content a {
        font-size: 14px;
    }

    .top-buttons {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1000;
        display: flex;
        gap: 8px;
        align-items: center;
    }
    #account-status { right: 12px; bottom: 12px; }

    #account-status.account-status-expanded { max-width: calc(100vw - 24px); }
}
