/* デフォ値オーバーライド */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
    text-align: center;
}

html {
    position: relative;
    min-width: 100vw;
    min-height: 100vh;
    background-color: black;
    color: white;
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', sans-serif;
}

body {
    position: relative;
    padding: 20px 10px;
    min-height: 100%;
    min-width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 初期状態で非表示にする要素 */
.error_display_item {
    display: none;
}

/* エラー表示 */
.error_display {
    position: relative;
    margin: 15px auto;
    max-width: min(600px, 80vw);
}

.error_display_item {
    margin: 8px 0;
    padding: 12px 15px;
    border: 2px solid #8a4a4a;
    border-radius: 8px;
    background-color: #2a0a0a;
}

.error_display_item_text {
    font-size: clamp(14px, 4vw, 18px);
    color: #ff6666;
    text-align: center;
    line-height: 1.3;
}

/* Page Title */
.page_title {
    position: relative;
    margin: 0 auto 20px auto;
    padding: 15px 30px;
    border: 4px solid white;
    border-radius: 15px;
    max-width: min(600px, 70vw);
}

.page_title_text {
    font-size: clamp(24px, 7vw, 42px);
    font-weight: bold;
    color: white;
    line-height: 1.3;
}

/* ユーザID入力エリア */
.user_id_input_container {
    margin: 30px auto;
    max-width: min(600px, 80vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* ユーザ情報表示エリア */
.user_info_container {
    margin: 20px auto;
    max-width: min(800px, 80vw);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    color: #fff;
    backdrop-filter: blur(5px);
}

.user_info_title {
    font-size: clamp(20px, 5vw, 28px);
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffe066;
}

.user_info_item {
    margin: 15px 0;
    font-size: clamp(16px, 4vw, 20px);
    text-align: left;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

/* フォーム要素 */
.user_edit_form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.user_edit_input {
    font-size: clamp(16px, 4vw, 20px);
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #888;
    width: min(300px, 60vw);
    background: rgba(255, 255, 255, 0.9);
    color: #222;
    text-align: center;
}

.user_edit_button {
    font-size: clamp(16px, 4vw, 20px);
    padding: 12px 20px;
    border-radius: 6px;
    background: #ffe066;
    color: #222;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    min-width: 120px;
}

.user_edit_button:hover {
    background: #ffcc33;
}

.user_edit_button:active {
    background: #e6b800;
}

/* ラウンドリスト */
.round_list {
    margin-top: 20px;
}

.round_list_title {
    font-size: clamp(18px, 4vw, 24px);
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffe066;
}

.round_list_item {
    font-size: clamp(14px, 3vw, 18px);
    margin: 10px 0;
    padding: 12px;
    cursor: pointer;
    color: #ccccff;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: background-color 0.3s;
    text-align: left;
}

.round_list_item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    body {
        padding: 15px 8px;
    }

    .page_title {
        padding: 12px 20px;
        border-width: 2px;
    }

    .user_info_container {
        padding: 15px;
    }

    .user_edit_input,
    .user_edit_button {
        width: 100%;
        max-width: 280px;
    }
}

@media (min-width: 1200px) {
    body {
        padding: 30px 20px;
    }

    .user_info_container {
        max-width: 900px;
    }

    .user_edit_form {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
}