/* =========================
Theme System
白ベース＋テーマカラー統一版
========================= */

/* =========================
共通カラー
========================= */

/* =========================
   Basic
   白ベース・初期表示用
========================= */

.theme-basic{

    --bg:#ffffff;

    --card:#ffffff;

    --surface:#f8f8fa;

    --surface-strong:#f1f1f4;

    --border:#dedee4;

    --border-strong:#c9c9d1;

    --text:#222222;

    --text-sub:#667085;

    /* ピンクを使わない */

    --accent:#666666;

    --accent-light:#999999;

    --accent-soft:#f3f3f3;

    --danger:#d9365f;

    --header-gradient:
        linear-gradient(
            135deg,
            #f5f5f5,
            #ffffff
        );
}


/* =========================
Neon Pink
========================= */

.theme-neon-pink{
--bg:#ffffff;
--card:#fffdfd;
--surface:#fff5f8;
--surface-strong:#ffeaf1;
--border:#edcbd7;
--border-strong:#e4aebe;

--text:#222222;
--text-sub:#667085;

--accent:#ff2d55;
--accent-light:#ff6f9f;
--accent-soft:#fff0f4;

--danger:#d94a63;

--header-gradient:
    linear-gradient(135deg,#ff2d55,#ff6fa5);

}

/* =========================
Neon Blue
========================= */

.theme-neon-blue{
--bg:#ffffff;
--card:#fcfeff;
--surface:#f2f8ff;
--surface-strong:#e5f1ff;
--border:#cbddec;
--border-strong:#aec9e5;

--text:#222222;
--text-sub:#667085;

--accent:#0078ff;
--accent-light:#42bfff;
--accent-soft:#edf6ff;

--danger:#d94a63;

--header-gradient:
    linear-gradient(135deg,#0078ff,#00c8ff);

}

/* =========================
Neon Purple
========================= */

.theme-neon-purple{
--bg:#ffffff;
--card:#fefcff;
--surface:#faf5ff;
--surface-strong:#f1e5ff;
--border:#dfccec;
--border-strong:#c9a9df;

--text:#222222;
--text-sub:#667085;

--accent:#8b3dff;
--accent-light:#b477ff;
--accent-soft:#f5edff;

--danger:#d94a63;

--header-gradient:
    linear-gradient(135deg,#7b2fff,#d05dff);

}

/* =========================
Neon Green
========================= */

.theme-neon-green{
--bg:#ffffff;
--card:#fcfffd;
--surface:#f2fff7;
--surface-strong:#e3f8eb;
--border:#c9e5d4;
--border-strong:#a9d2b8;

--text:#222222;
--text-sub:#667085;

--accent:#00a95c;
--accent-light:#35d982;
--accent-soft:#ebfff4;

--danger:#d94a63;

--header-gradient:
    linear-gradient(135deg,#00b85c,#00ff7f);

}

/* =========================
Neon Orange
========================= */

.theme-neon-orange{
--bg:#ffffff;
--card:#fffefd;
--surface:#fff8f1;
--surface-strong:#ffeddb;
--border:#ecd7c1;
--border-strong:#dfbd98;

--text:#222222;
--text-sub:#667085;

--accent:#f07800;
--accent-light:#ff9d3d;
--accent-soft:#fff4e8;

--danger:#d94a63;

--header-gradient:
    linear-gradient(135deg,#ff5a00,#ffb000);

}

/* =========================
宇宙テーマ
========================= */

.theme-space{

--bg:#eef3fb;

--card:rgba(255,255,255,.92);
--surface:rgba(242,247,255,.94);
--surface-strong:rgba(225,235,250,.95);

--border:#cbd7e8;
--border-strong:#aebfd8;

--text:#222222;
--text-sub:#667085;

--accent:#3478d4;
--accent-light:#5d9bea;
--accent-soft:#edf5ff;

--danger:#d94a63;

--header-gradient:
    linear-gradient(135deg,#1e3a8a,#60a5fa);

background-image:url("space.svg");
background-size:cover;
background-position:center;
background-attachment:fixed;

}

/* =========================
全体
========================= */

body{
background:var(--bg);
color:var(--text);
}

/* =========================
カード共通
========================= */

.card,
.item,
.event-card,
.plan-card,
.schedule-item,
.event-home-item,
.memory-card,
.detail-card{

background:var(--card);
color:var(--text);

border:1px solid var(--border);

box-shadow:
    0 2px 8px rgba(0,0,0,.06);

}

/* =========================
カードを少し浮かせる
========================= */

.card,
.item,
.event-card,
.plan-card{

border-radius:12px;

}

/* =========================
入力欄
========================= */

input,
textarea,
select{

background:var(--card);
color:var(--text);

border:1px solid var(--border);

}

/* フォーカス時 */

input:focus,
textarea:focus,
select:focus{

outline:none;

border-color:var(--accent);

box-shadow:
    0 0 0 2px var(--accent-soft);

}


/* =========================
ボタン
========================= */

button{
    color:#fff;
}

/* 白・透明系のボタンは黒文字 */
.icon-btn,
.setting-item button,
.setting-content button,
.home-menu-list button,
.photo-viewer button{
    color:var(--text);
}

/* テーマカラー系ボタンは白文字 */
.primary-btn,
.add-btn,
.save-btn,
.confirm-btn,
.photo-sort-btn,
.favorite-more,
.edit-btn,
.map-btn,
.event-delete-btn,
.delete-btn,
.planner-edit-btn,
.planner-delete-btn,
#plannerBottomBar button{
    color:#fff !important;
}

/* テーマカラー系ボタン */

.primary-btn,
.add-btn,
.save-btn,
.confirm-btn,
.photo-sort-btn,
.favorite-more{

background:var(--accent);
color:#fff;

}

/* =========================
見出し
========================= */

.section-title,
.page-title{

color:var(--accent);

}

/* =========================
区切り線
========================= */

hr{

border:none;
border-top:1px solid var(--border);

}

/* =========================
カレンダー
========================= */

.calendar-grid,
.calendar-header,
.calendar-weekdays{

border-color:var(--border);

}

.calendar-cell,
.calendar-day{

background:var(--card);

border:1px solid var(--border);

}

.calendar-cell:hover,
.calendar-day:hover{

background:var(--surface);

}

/* 今日 */

.calendar-cell.today,
.calendar-day.today{

background:var(--accent-soft);

border:2px solid var(--accent);

}

/* 選択日 */

.calendar-cell.selected,
.calendar-day.selected{

background:var(--surface-strong);

border-color:var(--accent);

}

/* 曜日 */

.calendar-sunday{
color:#e53955;
}

.calendar-saturday{
color:#2878d8;
}

/* =========================
カレンダー予定
========================= */

.calendar-event-preview{

background:var(--accent-soft);

color:var(--text);

border-left:3px solid var(--accent);

}

/* =========================
1日手帳
========================= */

.planner-board{

border-left:2px solid var(--border);

}

.planner-line-major{

border-top:1px solid var(--border);

}

.planner-line-minor{

border-top:1px solid var(--border);

opacity:.45;

}

/* 現在時刻 */

.planner-now-line{

background:var(--accent);
color:var(--accent);

}

/* 予定付箋 */

.planner-event{

background:var(--accent-soft);

color:var(--text);

border-left:6px solid var(--accent);

box-shadow:
    2px 4px 10px rgba(0,0,0,.14);

}

/* =========================
1日手帳・写真
========================= */

.memory-photo-box{

background:transparent;

border:none;

box-shadow:none;

}


.memory-list{

border-bottom:1px solid var(--border);

}

/* =========================
推し一覧
========================= */

.oshi-item{

background:var(--card);

border:1px solid var(--border);

}

.oshi-name{

color:var(--text);

}

.oshi-link{

color:var(--accent);

}

/* =========================
検索候補
========================= */

.master-item{

background:var(--card);

color:var(--text);

border-bottom:1px solid var(--border);

}

.master-item:hover{

background:var(--surface);

}

/* =========================
設定項目
========================= */

.setting-item,
.setting-section{

background:var(--card);

border:1px solid var(--border);

}

/* =========================
宇宙テーマだけ透明感
========================= */

.theme-space .card,
.theme-space .item,
.theme-space .event-card,
.theme-space .plan-card,
.theme-space .schedule-item,
.theme-space .event-home-item,
.theme-space .memory-card,
.theme-space .detail-card{

background:rgba(255,255,255,.88);

backdrop-filter:blur(10px);

}

.theme-space button{

box-shadow:
    0 0 10px rgba(96,165,250,.20);

}

/* =========================
共通：テーマカラーのアクセント
========================= */

.accent-text{
color:var(--accent);
}

.accent-bg{
background:var(--accent);
color:#fff;
}

.accent-border{
border-color:var(--accent);
}


/* =========================
   🌌 ゆめかわ星空
   タブ固定
========================= */

body.theme-dreamy-star .tabbar{
    position:fixed;

    left:0;
    bottom:0;

    width:100%;
    height:65px;

    z-index:10000;
}

/* =========================
   Basic：ヘッダータイトル
   白背景なので黒文字
========================= */

body.theme-basic .header h1 {
    color:#222 !important;
}


/* =========================
   🌌 ゆめかわ星空
   設定メニューを淡い紫に
========================= */

body.theme-dreamy-star .home-menu-list button,
body.theme-dreamy-star .setting-item > button,
body.theme-dreamy-star .setting-content button {

    background:#faf7ff !important;
    color:#7654a8 !important;
    border:1px solid #d8c8ee !important;

    box-shadow:none !important;
}


body.theme-dreamy-star .home-menu-list button:hover,
body.theme-dreamy-star .setting-item > button:hover,
body.theme-dreamy-star .setting-content button:hover {

    background:#f1eaff !important;

}


/* =========================
   🌌 ゆめかわ星空
   ヘッダータイトル完全中央
========================= */

body.theme-dreamy-star .header h1{
    position:absolute !important;

    left:50% !important;
    right:auto !important;
    top:50% !important;

    transform:translate(-50%, -50%) !important;

    width:auto !important;

    margin:0 !important;
    padding:0 !important;

    text-align:center !important;

    z-index:2 !important;
}