/* [TASK-3860] EVERSYS(エバシス) モバイルオーダー スタイル
 * スクショ準拠のライト基調（docs/facts/20260718-eversys-visual-design.md）。
 * ダーク/濃紺は ウェルカム(トップ) と オンボーディング枠のみ。他は白基調。
 * 色は目視近似・写真素材は未支給のため画像枠はプレースホルダ（Figma実値/素材で要差し替え）。
 * 独立スキン。style22.css 等に依存しない。
 */
:root {
    --ev-navy: #16294d;
    --ev-navy2: #1f3a63;
    --ev-blue: #2f6bff;
    --ev-line-green: #06c755;
    --ev-bg: #ffffff;
    --ev-soft: #f5f6f8;
    --ev-text: #1a1c22;
    --ev-muted: #8a8f98;
    --ev-line: #e8e9ee;
    --ev-dark: #10131a;
    --ev-radius: 10px;
}

* { box-sizing: border-box; }

body.eversys {
    margin: 0; padding: 0;
    background: var(--ev-soft);
    color: var(--ev-text);
    font-family: 'Noto Sans JP', sans-serif;
    -webkit-font-smoothing: antialiased;
}
.ev-screen {
    max-width: 480px; min-height: 100vh; min-height: 100dvh; margin: 0 auto;
    background: var(--ev-bg); display: flex; flex-direction: column;
}
.ev-logo {
    font-family: 'Montserrat', sans-serif; font-weight: 800;
    letter-spacing: 0.16em; font-size: 18px; color: var(--ev-navy);
}

/* ---- 共通ヘッダ ---- */
.ev-topbar {
    display: flex; align-items: center; justify-content: center; position: relative;
    height: 52px; border-bottom: 1px solid var(--ev-line); background: var(--ev-bg); flex: 0 0 auto;
}
.ev-topbar__back { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--ev-text); text-decoration: none; line-height: 1; }
.ev-topbar__spacer { position: absolute; right: 14px; width: 22px; height: 22px; }

/* ---- ボタン ---- */
.ev-btn { display: block; width: 100%; padding: 15px 16px; border: none; border-radius: var(--ev-radius); font-size: 16px; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; font-family: inherit; }
.ev-btn--primary { background: var(--ev-navy); color: #fff; }
.ev-btn--ghost { background: transparent; color: var(--ev-text); border: 1px solid var(--ev-line); }
.ev-btn--line { background: var(--ev-line-green); color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; }
.ev-btn--line__icon { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 12px; background: #fff; color: var(--ev-line-green); border-radius: 4px; padding: 2px 5px; letter-spacing: 0.04em; }
.ev-btn + .ev-btn { margin-top: 12px; }

/* ---- ウェルカム（トップ・ダーク） ---- */
.ev-welcome { flex: 1; display: flex; flex-direction: column; padding: 32px 24px; color: #fff; background: linear-gradient(180deg, rgba(16,19,26,0.55), rgba(16,19,26,0.92)), radial-gradient(120% 70% at 50% 0%, #2a3350, var(--ev-dark)); }
.ev-welcome .ev-logo { color: #fff; }
.ev-brand { padding: 6px 0 0; }
.ev-brand--center { text-align: center; padding: 6px 0 22px; }
.ev-welcome__body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.ev-welcome__catch { font-family: 'Montserrat', sans-serif; font-weight: 800; letter-spacing: 0.22em; font-size: 30px; line-height: 1.35; margin: 0; }
.ev-welcome__title { font-size: 15px; line-height: 1.7; font-weight: 500; color: #cdd2db; margin: 0; }
.ev-welcome__actions { padding-top: 20px; }
.ev-welcome__actions .ev-btn--ghost { color: #fff; border-color: rgba(255,255,255,0.4); }

/* ---- オンボーディング（濃紺スライド） ---- */
.ev-onboarding { flex: 1; display: flex; flex-direction: column; padding: 20px; background: var(--ev-navy2); color: #fff; }
.ev-ob__viewport { flex: 1; display: flex; align-items: center; gap: 4px; overflow: hidden; }
.ev-ob__arrow { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; border: none; background: rgba(255,255,255,0.12); color: #fff; font-size: 20px; cursor: pointer; }
.ev-ob__track { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; }
.ev-ob__slide { display: none; text-align: center; padding: 4px; }
.ev-ob__slide.is-active { display: block; }
.ev-ob__stepno { display: block; font-family: 'Montserrat', sans-serif; font-weight: 800; letter-spacing: 0.2em; font-size: 15px; color: #fff; margin-bottom: 10px; }
.ev-ob__title { font-size: 20px; font-weight: 700; margin: 0 0 18px; line-height: 1.5; }
.ev-ob__visual { width: 100%; aspect-ratio: 3 / 4; max-height: 42vh; margin: 0 auto; border-radius: 16px; background: #fff; opacity: 0.96; }
.ev-ob__dots { display: flex; justify-content: center; gap: 8px; padding: 16px 0; }
.ev-ob__dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.35); cursor: pointer; transition: width .2s; }
.ev-ob__dot.is-active { background: #fff; width: 20px; border-radius: 4px; }
.ev-ob__actions { padding-top: 4px; }

/* ---- 抽出中/抽出完了（白カード） ---- */
.ev-result { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 32px 24px; gap: 8px; background: var(--ev-bg); }
.ev-result__visual { width: 100%; max-width: 300px; aspect-ratio: 1 / 1; max-height: 46vh; border-radius: 16px; margin-bottom: 22px; border: 1px solid var(--ev-line); background: var(--ev-soft); position: relative; }
.ev-result__visual::after { content: '写真'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #c2c6cf; font-size: 12px; }
.ev-result__title { font-size: 22px; font-weight: 700; margin: 0; }
.ev-result__sub { color: var(--ev-muted); font-size: 14px; margin: 0; }
.ev-result__actions { width: 100%; margin-top: 28px; }
.ev-result__home { display: block; margin-top: 14px; color: var(--ev-muted); font-size: 13px; text-decoration: none; }

/* ---- フォーム（登録/ログイン・白） ---- */
.ev-form { flex: 1; display: flex; flex-direction: column; padding: 24px 28px 32px; background: var(--ev-bg); }
.ev-form__title { font-family: 'Montserrat', sans-serif; font-weight: 700; letter-spacing: 0.12em; font-size: 22px; text-align: center; color: var(--ev-text); margin: 0 0 6px; }
.ev-form__subtitle { text-align: center; color: var(--ev-muted); font-size: 13px; margin: 0 0 30px; }
.ev-form__body { display: flex; flex-direction: column; gap: 14px; }
.ev-form__label { font-size: 13px; color: var(--ev-muted); text-align: center; }
.ev-form__phone { width: 100%; border: none; border-bottom: 2px solid var(--ev-line); background: transparent; color: var(--ev-blue); font-size: 26px; font-weight: 700; letter-spacing: 0.06em; text-align: center; padding: 10px 4px; }
.ev-form__phone::placeholder { color: #aeb4c7; }
.ev-form__input { width: 100%; padding: 13px 15px; border-radius: var(--ev-radius); border: 1px solid var(--ev-line); background: #fff; color: var(--ev-text); font-size: 15px; }
.ev-form__input::placeholder { color: #b3b8c2; }
.ev-form__body .ev-btn { margin-top: 8px; }
.ev-form__terms { margin-top: 22px; color: var(--ev-muted); font-size: 11px; line-height: 1.7; text-align: center; }
.ev-line-block { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--ev-line); }
.ev-line-block__label { text-align: center; font-size: 13px; color: var(--ev-muted); margin: 0 0 12px; }

/* 認証コード（6桁） */
.ev-authcode { display: flex; justify-content: center; gap: 8px; margin: 8px 0 4px; }
.ev-authcode input { width: 40px; height: 50px; border: none; border-bottom: 2px solid var(--ev-line); background: transparent; text-align: center; font-size: 22px; font-weight: 700; color: var(--ev-blue); }
.ev-form__resend { text-align: center; color: var(--ev-muted); font-size: 12px; margin-top: 16px; }

/* ---- メニュー（白） ---- */
.ev-menu { flex: 1; display: flex; flex-direction: column; background: var(--ev-bg); }
.ev-menu__tabs { display: flex; gap: 18px; padding: 12px 16px 0; border-bottom: 1px solid var(--ev-line); overflow-x: auto; }
.ev-menu__tab { padding: 8px 2px 12px; font-size: 14px; color: var(--ev-muted); white-space: nowrap; border-bottom: 2px solid transparent; }
.ev-menu__tab.is-active { color: var(--ev-text); font-weight: 700; border-bottom-color: var(--ev-navy); }
.ev-menu__list { list-style: none; margin: 0; padding: 4px 0 0; flex: 1; overflow-y: auto; }
.ev-menu__item { border-bottom: 1px solid var(--ev-line); }
.ev-menu__link { display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-decoration: none; color: var(--ev-text); }
.ev-menu__thumb { flex: 0 0 auto; width: 60px; height: 60px; border-radius: 10px; background: var(--ev-soft); }
.ev-menu__info { display: flex; flex-direction: column; gap: 4px; }
.ev-menu__name { font-size: 15px; font-weight: 600; }
.ev-menu__price { font-size: 14px; color: var(--ev-text); }
.ev-menu__footer { flex: 0 0 auto; border-top: 1px solid var(--ev-line); padding: 12px 16px 16px; background: var(--ev-bg); }
.ev-menu__cartbar { display: flex; align-items: center; justify-content: space-between; background: var(--ev-navy); color: #fff; border-radius: var(--ev-radius); padding: 14px 18px; text-decoration: none; font-weight: 700; }
.ev-menu__cartbar-qty { background: rgba(255,255,255,0.2); border-radius: 20px; padding: 1px 8px; font-size: 12px; margin-right: 6px; }
.ev-menu__qrnote { margin: 10px 2px 0; font-size: 12px; color: var(--ev-muted); text-align: center; }

/* ---- 商品詳細（白） ---- */
.ev-detail { flex: 1; display: flex; flex-direction: column; background: var(--ev-bg); }
.ev-detail__visual { width: 100%; aspect-ratio: 16 / 10; background: var(--ev-soft); position: relative; }
.ev-detail__visual::after { content: '写真'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #c2c6cf; font-size: 12px; }
.ev-detail__body { flex: 1; padding: 20px; }
.ev-detail__name { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.ev-detail__price { font-size: 16px; font-weight: 700; margin: 0 0 14px; }
.ev-detail__desc { font-size: 13px; line-height: 1.8; color: #55596a; margin: 0 0 26px; }
.ev-detail__optlabel { font-size: 14px; font-weight: 700; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--ev-line); }
.ev-detail__optrow { display: flex; align-items: center; justify-content: space-between; font-size: 14px; padding: 6px 0; }
.ev-detail__footer { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 16px 18px; border-top: 1px solid var(--ev-line); }
.ev-detail__qty { display: flex; align-items: center; gap: 14px; }
.ev-detail__qtynum { min-width: 18px; text-align: center; font-weight: 700; }
.ev-detail__addbtn { flex: 1; }
.ev-qtybtn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--ev-line); background: #fff; font-size: 18px; line-height: 1; cursor: pointer; }

/* トグル */
.ev-switch { position: relative; display: inline-block; width: 44px; height: 26px; }
.ev-switch input { display: none; }
.ev-switch__slider { position: absolute; inset: 0; background: #cfd3db; border-radius: 26px; transition: .2s; }
.ev-switch__slider::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.ev-switch input:checked + .ev-switch__slider { background: var(--ev-navy); }
.ev-switch input:checked + .ev-switch__slider::before { transform: translateX(18px); }

/* ---- カート（白） ---- */
.ev-cart { flex: 1; display: flex; flex-direction: column; background: var(--ev-bg); }
.ev-cart__heading { font-family: 'Montserrat', sans-serif; letter-spacing: 0.14em; font-size: 18px; text-align: center; margin: 14px 0 6px; }
.ev-cart__section { padding: 14px 16px; }
.ev-cart__label { font-size: 13px; color: var(--ev-muted); margin: 0 0 10px; }
.ev-cart__item { display: flex; justify-content: space-between; gap: 12px; padding: 12px; background: var(--ev-soft); border-radius: var(--ev-radius); }
.ev-cart__item-name { font-size: 15px; font-weight: 600; margin: 0 0 2px; }
.ev-cart__item-opt { font-size: 12px; color: var(--ev-muted); margin: 0 0 8px; }
.ev-cart__qty { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.ev-cart__delete { color: var(--ev-muted); font-size: 12px; margin-left: 6px; }
.ev-cart__item-price { font-weight: 700; white-space: nowrap; }
.ev-cart__totals { margin-top: 12px; font-size: 14px; }
.ev-cart__totals > div { display: flex; justify-content: space-between; padding: 6px 2px; }
.ev-cart__grand { font-weight: 700; font-size: 15px; border-top: 1px solid var(--ev-line); margin-top: 4px; padding-top: 10px !important; }
.ev-cart__pay { list-style: none; margin: 0; padding: 0; }
.ev-cart__pay-row { display: flex; align-items: center; gap: 10px; padding: 14px 4px; border-bottom: 1px solid var(--ev-line); font-size: 14px; }
.ev-radio { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c7ccd6; }
.ev-radio.is-on { border-color: var(--ev-navy); background: radial-gradient(circle, var(--ev-navy) 0 45%, #fff 55%); }
.ev-cart__brands { color: var(--ev-muted); font-size: 11px; margin-left: auto; }
.ev-cart__terms { padding: 10px 16px 0; color: var(--ev-muted); font-size: 11px; line-height: 1.7; }
.ev-cart__footer { padding: 14px 16px 18px; }
