/* 共通スタイル */
:root {
  --main-color: #1B2A38; --header-dark: #101B26; --bg-main: #F1F1F1; --bg-form: #DDE3E9;
  --border-color: #B8C2CC; --stripe-color: #F2F5F8; --chart-main-color: #1B2A38;
  --chart-bg-color: #FFFFFF; --chart-text-color: #1A1A1A;
}
* { box-sizing: border-box; }
body { font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif; margin: 0; color: #1A1A1A; -webkit-text-size-adjust: 100%; }
button { font-family: inherit; }
.txt-red { color: #C62828 !important; }

/* ダイアログ */
.dlg-back { position: fixed; inset: 0; background: rgba(0,0,0,0.45); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 10px; }
.dlg { background: #fff; border-radius: 12px; width: 100%; max-width: 420px; max-height: 92vh; overflow: auto; padding: 18px 14px 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.dlg-wide { max-width: 640px; }
.dlg-title { font-size: 19px; font-weight: bold; text-align: center; margin-bottom: 12px; }
.dlg-text { text-align: center; font-size: 15px; line-height: 1.6; white-space: pre-wrap; }
.dlg-btns { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.dlg-btns button { flex: 1; max-width: 200px; padding: 13px 10px; border: none; border-radius: 8px; font-size: 16px; font-weight: bold; cursor: pointer; }
.dlg-ok { background: var(--main-color); color: #fff; }
.dlg-danger { background: #C62828; }
.dlg-cancel { background: #e3e3e3; color: #333; }

/* トースト */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: 0.25s; background: #2e7d32; color: #fff; padding: 12px 20px; border-radius: 24px; font-weight: bold; font-size: 15px; z-index: 1100; max-width: 92vw; text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,0.25); }
.toast-ng { background: #C62828; }
.toast-show { transform: translate(-50%, 0); opacity: 1; }
