:root {
    --primary-color: #06c755;
    /* メインカラー */
    --secondary-color: #ffffff;
    /* サブカラー */
    --back-color: #f0f2f5;
    /* バックカラー */
    --danger-color: #ef4444;
    /* 危険カラー・バッジ */

    --header-height: 56px;
    /* ヘッダー縦幅 */
    --footer-height: 24px;
    /* フッター縦幅 */
}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow: hidden;
}

body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #f7f8fa;
    color: #111827;
}

/* メインエリア（スマホ幅固定） */
.screen {
    flex: 1;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: var(--footer-height);
    display: flex;
    flex-direction: column;
    background: var(--back-color);
    z-index: 10;
}

/* Scroll area */
.scroll-area {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.scroll-area::-webkit-scrollbar {
    display: none;
}

/* Content padding */
.content {
    padding: 16px;
}

.content-sm {
    padding: 12px;
}

/* ===== 共通UI ===== */

/* カード */
.card {
    background: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 12px;
    overflow: hidden;
}

/* ボタン（ベース） */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    font-family: 'Noto Sans JP', sans-serif;
    width: 100%;
}

.btn {
    transition: all 0.15s ease;
}

.btn:active {
    transform: scale(0.96);
    opacity: 0.8;
}

/* ===== ボタン ===== */
.btn-primary {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.btn-ghost {
    background: #f0f2f5;
    color: #374151;
}

.btn-ghost:hover {
    background: #e4e7eb;
}


.btn-outline {
    background: transparent;
    color: #06C755;
    border: 2px solid #06C755;
}

.btn-outline:hover {
    background: #e8f9ef;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: rgba(30, 30, 30, 0.92);
    color: white;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    padding: 10px 18px;
    border-radius: 20px;
    box-sizing: border-box;
    width: max-content;
    max-width: calc(100vw - 32px);
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    transition: transform 0.3s ease;
    z-index: 200;
    backdrop-filter: blur(8px);
    overflow: hidden;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}
