@charset "utf-8";

/* =========================================================
   勉強ルーム専用スタイル (style_study_room.css)
   ベースカラー：やさしい赤色へ統一、不要定義を徹底削除
========================================================= */

/* --- 1. 変数定義・リセット・基本レイアウト --- */
:root {
    --primary-color: #e56363;   /* やさしい赤色 */
    --primary-hover: #cb5353;   /* ホバー時の濃い赤 */
    --accent-color: #9c3a3a;    /* テキスト用の深い赤 */
    --bg-light: #fff5f5;        /* 薄い赤の背景 */
    --border-light: #fbc2c2;     /* 薄い赤のボーダー */
    --error-color: #bf0000;
    --bg-color: #fcf8f8;
    --border-color: #dcd0d0;
}

html, body, div, span, h1, h2, h3, p, a, ul, li, form, label, footer, header, section {
    margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; box-sizing: border-box;
}
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "メイリオ", sans-serif;
    background-color: var(--bg-color);
    color: #333;
    line-height: 1.5;
}
a { margin: 0; padding: 0; text-decoration: none; outline: 0; background: transparent; color: #b93c3c; }
a:hover, a:active { outline: none; color: var(--primary-hover); text-decoration: underline; }

#wrapper { width: 100%; max-width: 1000px; margin: 0 auto; padding: 22px 10px 50px; }
#header { background: #fff; padding: 10px 0; }
#header .inner { width: 95%; max-width: 1000px; margin: 0 auto; }
#header h1 img { width: 200px; height: auto; }
#footer { padding: 20px 0; text-align: center; font-size: 12px; }

/* --- 2. 共通タイトル --- */
h2.user_ttl {
    display: block;
    width: 100%;
    margin: 0;
    padding: 10px 15px;
    font-weight: bold;
    color: #fff;
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
}
h2.user_ttl, h2.user_ttl span, .user_ttl, .user_ttl span { 
    font-size: 1rem !important; 
}

/* --- 3. 基本コンテナ・リスト枠 --- */
.list-wrapper { max-width: 1000px; margin: 0 auto; }
.user-menu-container {
    display: flex; flex-wrap: wrap; gap: 20px; background: #fff; 
    border: 1px solid var(--border-color); padding: 30px 20px; 
    border-radius: 0 0 10px 10px; box-sizing: border-box; width: 100%; 
}

/* --- 4. 勉強ルーム用：学習進捗・アラートエリア --- */
.remind-box { width: 100%; box-sizing: border-box; }

.remind-cleared {
    background: #fdf2f2; border: 2px solid #f87171; color: #991b1b; 
    padding: 15px; border-radius: 8px; margin-bottom: 25px; text-align: center; 
    font-weight: bold; box-shadow: 0 4px 6px rgba(229, 99, 99, 0.1);
}
.remind-cleared .remind-title { font-size: 1.2rem; margin-bottom: 5px; }
.remind-cleared .remind-streak-count { font-size: 1.2rem; color: var(--primary-color); }

.remind-unreached {
    background: #fff5f5; border: 2px solid var(--primary-color); color: var(--accent-color); 
    padding: 15px; border-radius: 8px; margin-bottom: 25px; text-align: center; 
    box-shadow: 0 4px 6px rgba(229, 99, 99, 0.15); animation: pulse 2s infinite;
}
.remind-unreached .remind-title { font-size: 1.2rem; font-weight: bold; margin-bottom: 5px; }
.remind-unreached .remind-desc { font-size: 0.95rem; }
.remind-unreached .remind-counter { margin-top: 10px; font-weight: bold; font-size: 1.1rem; }
.remind-unreached .remind-counter span { color: var(--primary-color); font-size: 1.3rem; }
.remind-unreached .btn-go-quiz {
    display: inline-block; margin-top: 15px; background: var(--primary-color); 
    color: #fff; padding: 8px 20px; border-radius: 20px; text-decoration: none; font-weight: bold;
}
.remind-unreached .btn-go-quiz:hover { background: var(--primary-hover); }

@keyframes pulse { 
    0% { box-shadow: 0 0 0 0 rgba(229, 99, 99, 0.4); } 
    70% { box-shadow: 0 0 0 10px rgba(229, 99, 99, 0); } 
    100% { box-shadow: 0 0 0 0 rgba(229, 99, 99, 0); } 
}

.remind-progress-normal {
    background: #fffdfd; border: 2px dashed var(--border-light); color: #554444; 
    padding: 12px; border-radius: 8px; margin-bottom: 25px; text-align: center;
}
.remind-progress-normal .label { font-weight: bold; }
.remind-progress-normal .count { color: var(--primary-color); font-size: 1.2rem; font-weight: bold; margin-left: 10px; }

.remind-suggest-setup {
    background: #fff5f5; border: 2px dashed var(--border-light); color: var(--accent-color); 
    padding: 12px; border-radius: 8px; margin-bottom: 25px; text-align: center; font-size: 0.9rem; font-weight: bold;
}

/* --- 5. メニューカード表示 --- */
.user-menu-card { 
    flex: 1 1 calc(50% - 20px); min-width: 300px; border: 2px solid var(--border-light); 
    padding: 20px; display: flex; align-items: flex-start; transition: transform 0.2s, box-shadow 0.2s; 
    text-decoration: none !important; color: inherit; background: var(--bg-light); 
    box-shadow: 0 2px 5px rgba(0,0,0,0.02); border-radius: 8px; box-sizing: border-box; 
}
.user-menu-card:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(229, 99, 99, 0.15); border-color: var(--primary-color); text-decoration: none !important; }
.user-menu-icon { font-size: 2.5rem; margin-right: 15px; flex-shrink: 0; }
.user-menu-text-content { flex-grow: 1; }
.user-menu-title { font-weight: bold; font-size: 1.1rem; margin-bottom: 8px; display: block; color: var(--accent-color); text-decoration: none !important; }
.user-menu-desc { font-size: 0.9rem; color: var(--accent-color); line-height: 1.6; margin-bottom: 12px; text-decoration: none !important; }
.user-menu-detail-link { font-size: 0.85rem; color: var(--primary-hover); text-decoration: none !important; font-weight: bold; }

/* --- 6. 下部下がり・戻るボタンエリア --- */
.bottom-action-container { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; margin-top: 40px; padding-top: 25px; border-top: 1px dashed #cbd5e1; width: 100%; box-sizing: border-box;}
.btn-back-menu { background: #94a3b8; color: #fff; padding: 12px 30px; border-radius: 6px; text-decoration: none !important; font-weight: bold; transition: 0.2s; display: inline-block; box-sizing: border-box; text-align: center;}
.btn-back-menu:hover { filter: brightness(0.9); transform: translateY(-2px); text-decoration: none !important; }

/* --- 7. 上部ナビゲーションヘッダーボタン --- */
.user_header_top {
    display: flex; justify-content: flex-end; align-items: center; width: 100%; margin-top: -3px !important; margin-bottom: 10px !important;
}
.nav_group {
    display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px;
}
.user-nav-btn {
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    height: 32px !important; width: 130px !important; padding: 0 5px !important; font-size: 12px !important;
    font-weight: bold !important; text-decoration: none !important; border-radius: 6px !important;
    color: #333 !important; border: 1px solid #bbb !important; transition: all 0.2s ease; box-sizing: border-box !important; white-space: nowrap !important;
}
.user-nav-btn:hover { filter: brightness(0.95); text-decoration: none !important; transform: translateY(-1px); }

.user-nav-btn.btn-status-info { background-color: #fffaf5 !important; border-color: #ffdabc !important; }
.user-nav-btn.btn-mgr { background-color: #eef5ff !important; border-color: #ccdfff !important; }
.user-nav-btn.btn-logout { background-color: #f9f9f9 !important; border-color: #e0e0e0 !important; }

/* --- 8. レスポンシブ対応 (スマホ最適化) --- */
@media (max-width: 767px) {
    #header h1 img { width: 150px; }
    #wrapper { padding: 10px; }
    .user-menu-container { padding: 25px 15px; }
    .user-menu-card { flex: 1 1 100%; min-width: 0; } 
    .user-menu-icon { font-size: 1.65rem !important; margin-right: 8px !important; }
    .bottom-action-container { flex-direction: column; align-items: stretch; }
    .btn-back-menu { width: 100%; text-align: center; box-sizing: border-box; }
    
    .user_header_top .nav_group { width: 100%; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
    .user_header_top .nav_group .user-nav-btn { width: calc(33.33% - 6px) !important; font-size: 11px !important; }
}