:root {
    /* カラーパレット定義 */
    --bg-dark: #0f172a;
    /* メイン背景 */
    --bg-card: #1e293b;
    /* カード背景 */
    --primary: #3b82f6;
    /* メインカラー (青) */
    --primary-glow: rgba(59, 130, 246, 0.5);
    --accent: #ff4757;
    /* アクセント (赤) */
    --danger: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.5);
    --text-main: #f8fafc;
    --text-sub: #94a3b8;
    --border: 1px solid rgba(255, 255, 255, 0.1);

    /* レイアウト変数 */
    --nav-width: 250px;
    --nav-height-mobile: 60px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
}

/* =========================================
   1. アプリ本体 (App Shell) のレイアウト
   ========================================= */

/* App Shell Layout */
.app-shell {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    /* PCではスクロールバーを隠す */
}

/* Navigation (Sidebar for PC) */
.main-nav {
    width: var(--nav-width);
    background: var(--bg-card);
    border-right: var(--border);
    display: flex;
    flex-direction: column;
    padding: 20px;
    flex-shrink: 0;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}

.nav-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.nav-item {
    background: transparent;
    border: none;
    color: var(--text-sub);
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.nav-item.active {
    background: var(--primary);
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.nav-footer .logout {
    color: var(--danger);
}

.nav-footer .logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Content Area */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    padding-bottom: 100px;
    /* Space for mobile nav */
}

/* Sections & Tabs */
.tab-content {
    display: none;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    margin-bottom: 30px;
}

.section-header h2 {
    margin: 0 0 10px 0;
}

.section-header p {
    color: var(--text-sub);
    margin: 0;
}

/* =========================================
   2. 共通コンポーネント (カード, フォーム, ボタン)
   ========================================= */

.card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    border: var(--border);
    margin-bottom: 24px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group {
    margin-bottom: 20px;
    flex: 1;
}

.half {
    flex: 1;
}

label {
    display: block;
    color: var(--text-sub);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

/* 入力フィールド共通 */
input[type="text"],
input[type="date"],
input[type="number"],
input[type="password"],
select,
textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: var(--border);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-main);
    font-size: 1rem;
    box-sizing: border-box;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}

textarea {
    height: 80px;
    resize: vertical;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: filter 0.2s;
}

.btn-primary:hover {
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* Small outline button for edit mode toggle */
.btn-sm-outline {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.btn-sm-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-sm-outline .material-icons-round {
    font-size: 18px;
}

/* Header row for period section */
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header-row h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Auto-fill Context Display (Record Tab) */
.context-preview {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.tag-auto {
    font-size: 0.85rem;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    color: var(--primary);
}

/* Slider */
.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

input[type="range"] {
    flex: 1;
    accent-color: var(--primary);
    cursor: pointer;
}

.score-val {
    font-weight: bold;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

.highlight-label {
    color: var(--accent);
    font-weight: bold;
}

/* Timeline List */
.timeline-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 4px solid var(--text-sub);
}

.timeline-date {
    min-width: 80px;
    font-weight: bold;
    text-align: center;
}

.timeline-date .year {
    font-size: 1.2rem;
    display: block;
}

.timeline-date .md {
    font-size: 0.9rem;
    color: var(--text-sub);
}

.timeline-body h4 {
    margin: 0 0 5px 0;
}

.timeline-meta {
    font-size: 0.8rem;
    color: var(--text-sub);
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
}

/* Period List in Profile */
.period-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: var(--border);
    font-size: 0.9rem;
}

/* Graph Wrapper */
.chart-wrapper {
    position: relative;
    height: 400px;
    width: 100%;
}


/* =========================================
   3. ログイン・登録画面 (Auth) のスタイル
   ========================================= */

.auth-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    /* App Shell外で使うためoverflow設定をリセット */
    overflow: auto;
}

/* 左側のビジュアルエリア */
.auth-visual {
    flex: 1.2;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

/* ビジュアル装飾 */
.auth-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.visual-content {
    position: relative;
    z-index: 10;
    max-width: 480px;
}

.app-logo-large {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    display: block;
    margin-bottom: 20px;
}

.visual-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.visual-content p {
    color: var(--text-sub);
    line-height: 1.6;
    font-size: 1.1rem;
}

/* 右側のフォームエリア */
.auth-form-wrapper {
    flex: 0.8;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    background: var(--bg-card);
    /* カード背景を追加 */
    border-radius: 16px;
    border: var(--border);
}

.auth-header {
    margin-bottom: 30px;
    text-align: center;
}

.auth-header h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-sub);
    font-size: 0.9rem;
}

/* フォーム入力グループ (Auth用) */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 500;
}

.badge {
    background: var(--accent);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon .material-icons-round {
    position: absolute;
    left: 12px;
    color: var(--text-sub);
    font-size: 20px;
    pointer-events: none;
}

.input-with-icon input {
    padding-left: 40px;
    /* アイコンの分空ける */
    height: 48px;
}

/* 認証ボタン */
.auth-btn {
    width: 100%;
    height: 50px;
    background: var(--primary);
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: filter 0.3s;
    margin-top: 10px;
}

.auth-btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 15px var(--primary-glow);
}

.auth-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-sub);
}

.sub-btn {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    margin-left: 5px;
}

.sub-btn:hover {
    text-decoration: underline;
}

/* =========================================
   4. モバイルレスポンシブ設定
   ========================================= */

@media (max-width: 768px) {

    /* App Shell */
    .app-shell {
        flex-direction: column;
        overflow: visible;
    }

    .main-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: var(--nav-height-mobile);
        flex-direction: row;
        padding: 0;
        z-index: 100;
        border-right: none;
        border-top: var(--border);
        justify-content: space-around;
    }

    .nav-brand,
    .nav-footer {
        display: none;
    }

    .nav-items {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
        padding: 5px;
        gap: 0;
    }

    .nav-item {
        flex-direction: column;
        gap: 4px;
        font-size: 0.7rem;
        padding: 5px;
        flex: 1;
        justify-content: center;
        border-radius: 0;
    }

    .nav-item .material-icons-round {
        font-size: 24px;
    }

    .content-area {
        padding: 15px;
        padding-bottom: 80px;
        /* Tab bar space */
    }

    .form-row {
        flex-direction: column;
        gap: 10px;
    }

    /* Auth Pages Mobile */
    .auth-container {
        flex-direction: column;
    }

    .auth-visual {
        display: none;
        /* スマホではビジュアルエリアを非表示 */
    }

    .auth-form-wrapper {
        flex: 1;
        padding: 20px;
        min-height: 100vh;
        /* スマホで全画面使う */
    }
}

/* Selectボックスのダークモード対応 */
/* Selectボックスのダークモード対応 (文字色修正) */
.card select {
    background-color: var(--bg-dark);
    /* 暗い背景 */
    color: var(--text-main);
    /* 白い文字 */
    border: var(--border);
    border-radius: 8px;
    padding: 12px;
    font-size: 1rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
}

.card select option {
    background-color: var(--bg-card);
    color: var(--text-main);
}

/* 期間編集エリアのスタイル */
.period-edit-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.period-edit-inputs {
    flex: 1;
    display: grid;
    grid-template-columns: 1.5fr 2fr 1.5fr;
    /* 学校名、期間、居住地 */
    gap: 10px;
}

@media (max-width: 768px) {
    .period-edit-inputs {
        grid-template-columns: 1fr;
        /* スマホは縦並び */
    }
}

.edit-group {
    display: flex;
    flex-direction: column;
}

.date-flex {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-delete-row {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete-row:hover {
    background: #ef4444;
    color: white;
}

/* =========================================
   プロフィール: 閲覧モード (カードスタイル)
   ========================================= */
.viewer-cat-header {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: bold;
    border-left: 4px solid var(--primary);
    padding-left: 10px;
}

/* =========================================
   プロフィール: 閲覧モード (時系列カード)
   ========================================= */
/* カテゴリーヘッダーは削除し、グリッドのみにする */
.viewer-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.period-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.2s, background 0.2s;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.period-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
    opacity: 0.5;
}

.period-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.p-label {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.p-org {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--text-main);
}

.p-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-sub);
}

.p-icon {
    font-size: 16px;
    color: var(--text-sub);
}

/* =========================================
   プロフィール: 編集モード (グリッドスタイル)
   ========================================= */
.period-category-group {
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cat-header-edit {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.period-edit-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.period-edit-inputs {
    flex: 1;
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr;
    gap: 15px;
}

@media (max-width: 900px) {
    .period-edit-inputs {
        grid-template-columns: 1fr;
    }
}

.edit-group {
    display: flex;
    flex-direction: column;
}

.edit-group label {
    font-size: 0.75rem;
    color: var(--text-sub);
    margin-bottom: 6px;
}

.date-flex {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-add-row {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    color: var(--text-sub);
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.9rem;
}

.btn-add-row:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-color: var(--text-main);
}

.btn-delete-row {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 23px;
    /* label高さ調整 */
}

.btn-delete-row:hover {
    background: #ef4444;
    color: white;
}

/* =========================================
   新しい年表デザイン (Vertical Line)
   ========================================= */
.timeline-container {
    padding: 10px 0;
}

/* 時代セクション */
.tl-period-section {
    margin-bottom: 30px;
    position: relative;
}

.tl-period-label {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* 個別のイベント行 */
.tl-event {
    display: flex;
    position: relative;
    padding-bottom: 25px;
    /* イベント間の余白 */
}

/* 左側：日付 */
.tl-date {
    width: 100px;
    text-align: right;
    padding-right: 20px;
    font-size: 0.9rem;
    color: var(--text-sub);
    font-weight: bold;
    flex-shrink: 0;
    padding-top: 2px;
}

/* 中央：線と点 */
.tl-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20px;
    position: relative;
}

.tl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--text-sub);
    z-index: 2;
}

/* モチベーションが高いときは赤、低いときは青 */
.tl-dot.positive {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.tl-dot.negative {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

.tl-line {
    position: absolute;
    top: 12px;
    bottom: -25px;
    /* 下の要素まで伸ばす */
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

/* 最後の要素の線は消す */
.tl-event:last-child .tl-line {
    display: none;
}

/* 右側：内容 */
.tl-content {
    flex: 1;
    padding-left: 20px;
    padding-bottom: 10px;
}

.tl-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    position: relative;
}

.tl-card h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: var(--text-main);
}

.tl-meta {
    font-size: 0.8rem;
    color: var(--text-sub);
    margin-bottom: 5px;
    display: flex;
    gap: 10px;
}

.tl-emotion {
    font-size: 0.9rem;
    color: #ccc;
    font-style: italic;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 5px;
    margin-top: 5px;
}

/* Selectボックス等 */
.card select {
    background-color: var(--bg-dark);
    color: var(--text-main);
    border: var(--border);
    border-radius: 8px;
    padding: 12px;
    font-size: 1rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
}

.card select option {
    background-color: var(--bg-card);
    color: white;
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.month-btn {
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-main);
    cursor: pointer;
    text-align: center;
}

.month-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.month-btn.selected {
    background: var(--primary);
    color: white;
    font-weight: bold;
    border-color: var(--primary);
}

@media (max-width: 480px) {
    .month-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Season selector styles */
.season-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.season-btn {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--text-main);
    cursor: pointer;
    text-align: center;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.season-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.season-btn.selected {
    background: var(--primary);
    color: white;
    font-weight: bold;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Date precision selector */
.precision-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.precision-btn {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: var(--text-sub);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.precision-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.precision-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    font-weight: 600;
}

/* Date input field enhancements */
.date-input-wrapper {
    position: relative;
    margin-top: 10px;
}

.date-input-wrapper input[type="date"] {
    width: 100%;
}

.hint-text {
    font-size: 0.8rem;
    color: var(--text-sub);
    margin-top: 5px;
    font-style: italic;
}

/* Goal cards */
.goal-card {
    transition: transform 0.2s, background 0.2s;
}

.goal-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08) !important;
}

/* style.css の末尾に追加 */
#goal-editor-card {
    background: rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

#goal-editor-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
}