* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #17202a;
    background: #f4f7fb;
}

/* ログインページ ヘッダー */
.loginHeader {
    background: #161f46;
    padding: 12px 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.loginHeaderInner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.loginHeaderInner img {
    width: 38px;
    height: auto;
    display: block;
}

.siteTitle {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-align: left;
}

.siteTitle .subTitle {
    font-size: .7rem;
    color: #1fdb87;
    font-weight: 500;
    letter-spacing: .02em;
}

.siteTitle .mainTitle {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .02em;
}

/* ページ枠 */
.page {
    width: min(420px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
}

.loginHelp {
    margin: 20px 0 0;
    text-align: center;
    font-size: .85rem;
    color: #555;
    line-height: 1.6;
}

.loginHelp i {
    margin-right: 6px;
    color: #161f46;
}

.loginHelp a {
    color: #1f6feb;
    text-decoration: underline;
    font-weight: 600;
}

.loginHelp a:hover {
    opacity: .8;
}

/* エラー/通知パネル内のメッセージ */
.errorMessage {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0;
    padding: 14px 16px;
    background: #fdecec;
    border-left: 5px solid #d44;
    border-radius: 0 8px 8px 0;
    color: #8a1f17;
    font-size: .9rem;
    line-height: 1.7;
    text-align: left;
}
.errorMessage i {
    color: #d44;
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* 案内リンク（縦並び） */
.helpLinks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0 0;
    text-align: center;
}
.helpLinks a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 4px;
    color: #1f6feb;
    text-decoration: underline;
    font-size: .9rem;
    font-weight: 600;
}
.helpLinks a:hover { opacity: .8; }
.helpLinks a i { font-size: .85rem; }

/* メンバーシップ加入案内ボックス（Discordエラー用） */
.memberCta {
    margin-top: 20px;
    padding: 16px 14px;
    background: #fff8e8;
    border: 1px solid #f0c870;
    border-radius: 8px;
    text-align: left;
}
.memberCta p {
    margin: 0 0 12px;
    font-size: .9rem;
    line-height: 1.7;
    color: #333;
}
.memberCta .checkList {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
}
.memberCta .checkList li {
    position: relative;
    padding: 4px 0 4px 20px;
    font-size: .8rem;
    color: #444;
    line-height: 1.6;
    word-break: break-all;
    line-break: strict;
}
.memberCta .checkList li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 5px;
    color: #1fdb87;
    font-size: .8rem;
}
.memberCta .ctaBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 0 16px;
    background: #FF0000;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: .9rem;
    transition: opacity .2s;
}
.memberCta .ctaBtn:hover { opacity: .88; }

/* 月別パスワード入力画面の案内文 */
.passwordHint {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
    text-align: center;
    font-size: .85rem;
    color: #666;
    line-height: 1.7;
}
.passwordHint a {
    display: inline-block;
    margin-top: 8px;
    color: #1f6feb;
    text-decoration: underline;
    font-weight: 600;
}

.panel {
    background: #ffffff;
    border: 1px solid #dce3ed;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(23, 32, 42, 0.08);
}

.loginPanel {
    padding: 36px 22px 32px;
    text-align: center;
}

h1 {
    margin: 0 0 14px;
    font-size: 24px;
    line-height: 1.3;
    color: #161f46;
    font-weight: 700;
}

p {
    line-height: 1.7;
}

.loginPanel p {
    color: #555;
    font-size: .9rem;
    margin: 0 0 24px;
}

.actions {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid #1f6feb;
    border-radius: 8px;
    color: #ffffff;
    background: #1f6feb;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .2s, transform .1s;
}

.button:hover {
    opacity: .88;
}

.button:active {
    transform: translateY(1px);
}

.button i {
    font-size: 1.15rem;
}

.button.google {
    background: #4285F4;
    border-color: #4285F4;
}

.button.discord {
    background: #5865F2;
    border-color: #5865F2;
}

.button.secondary {
    border-color: #566573;
    background: #566573;
}

.button.light {
    color: #17202a;
    border-color: #c7d0dc;
    background: #ffffff;
}

label {
    display: block;
    margin: 16px 0 6px;
    font-weight: 700;
}

input {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #b8c4d2;
    border-radius: 6px;
    font: inherit;
}

.message {
    margin: 14px 0;
    padding: 12px;
    border-radius: 6px;
    background: #eaf3ff;
}

.error {
    background: #fdecec;
    color: #8a1f17;
}

.profile {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 20px;
    align-items: center;
}

.avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    background: #dce3ed;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
}

th,
td {
    padding: 10px;
    border-bottom: 1px solid #dce3ed;
    text-align: left;
}

@media (max-width: 640px) {
    .page {
        padding: 32px 0;
    }

    .panel {
        padding: 20px;
    }

    .loginPanel {
        padding: 28px 20px 24px;
    }

    .profile {
        grid-template-columns: 1fr;
    }
}
