/*
====================================================
ファイル	style.css	【WEBアプリ共通スタイル】
作成者		chikara
作成日		2026/08/07
====================================================
*/

:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif; font-synthesis: none; --app-blue: #0b72e7; --app-blue-dark: #075fbf; --app-text: #18243a; --app-muted: #7c899d; --app-line: #dde5ef; --app-bg: #f3f7fc; }
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--app-bg); }
body { min-width: 320px; min-height: 100%; margin: 0; color: var(--app-text); background: var(--app-bg); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.app-page { min-height: 100dvh; padding: calc(68px + env(safe-area-inset-top)) 0 calc(88px + env(safe-area-inset-bottom)); background: var(--app-bg); }
.app-shell { width: min(100%, 720px); padding: 20px 16px; margin: 0 auto; }
.app-header { position: fixed; z-index: 100; top: 0; right: 0; left: 0; padding-top: env(safe-area-inset-top); border-bottom: 1px solid rgba(212, 223, 235, 0.92); background: rgba(255, 255, 255, 0.94); box-shadow: 0 6px 20px rgba(43, 75, 117, 0.06); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.app-header-inner { display: flex; align-items: center; justify-content: space-between; width: min(100%, 720px); height: 68px; padding: 0 16px; margin: 0 auto; gap: 14px; }
.app-header-brand { display: flex; align-items: center; min-width: 0; gap: 10px; }
.app-header-logo { display: block; width: 112px; height: 38px; overflow: hidden; flex: 0 0 auto; }
.app-header-logo img { width: 100%; height: 100%; transform: scale(1.3); object-fit: cover; object-position: center 50%; }
.app-header-name { padding-left: 10px; border-left: 1px solid var(--app-line); color: #526178; font-size: 12px; font-weight: 800; white-space: nowrap; }
.app-header-account { display: grid; min-width: 0; justify-items: end; }
.app-header-account strong { max-width: 150px; overflow: hidden; color: #26364d; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.app-header-account small { margin-top: 2px; color: var(--app-muted); font-size: 9px; }
.app-footer { position: fixed; z-index: 100; right: 0; bottom: 0; left: 0; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--app-blue-dark); background: var(--app-blue); box-shadow: 0 -10px 30px rgba(43, 75, 117, 0.14); }
.app-page.is-keyboard-open .app-footer { display: none !important; }
.app-bottom-nav { display: grid; grid-template-columns: repeat(4, 1fr); width: min(100%, 560px); height: 76px; padding: 6px 8px; margin: 0 auto; }
.app-nav-button { display: grid; grid-template-rows: 32px auto; align-content: center; justify-items: center; min-width: 0; padding: 3px 4px; gap: 5px; border: 0; border-radius: 0; color: #ffffff; background: var(--app-blue); font-size: 10px; font-weight: 800; line-height: 1.2; cursor: pointer; }
.app-nav-button + .app-nav-button { border-left: 1px solid rgba(255, 255, 255, 0.32); }
.app-nav-button:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.72); outline-offset: -3px; }
.app-nav-button:active .app-nav-icon { transform: scale(0.94); }
.app-nav-button:active { background: var(--app-blue-dark); }
.app-nav-button.is-active { background: var(--app-blue-dark); }
.app-nav-button.is-active .app-nav-icon { background: rgba(255, 255, 255, 0.28); }
.app-nav-icon { position: relative; display: block; width: 32px; height: 32px; border-radius: 10px; color: #ffffff; background: rgba(255, 255, 255, 0.16); transition: transform 120ms ease, background-color 120ms ease; }
.app-nav-icon.is-home { display: grid; place-items: center; }
.app-nav-home-svg { display: block; width: 22px; height: 22px; }
.app-nav-icon.is-register::before { position: absolute; top: 7px; left: 7px; width: 14px; height: 14px; border: 2px solid currentColor; border-radius: 5px; content: ""; }
.app-nav-icon.is-register::after { position: absolute; top: 50%; left: 50%; font-size: 17px; font-weight: 500; line-height: 1; content: "+"; transform: translate(-50%, -54%); }
.app-nav-icon.is-search::before { position: absolute; top: 7px; left: 7px; width: 12px; height: 12px; border: 2px solid currentColor; border-radius: 50%; content: ""; }
.app-nav-icon.is-search::after { position: absolute; right: 7px; bottom: 8px; width: 8px; height: 2px; border-radius: 2px; background: currentColor; content: ""; transform: rotate(45deg); transform-origin: right center; }
.app-nav-icon.is-setting::before { position: absolute; top: 9px; left: 6px; width: 20px; height: 14px; background: linear-gradient(currentColor, currentColor) 0 0 / 20px 2px no-repeat, linear-gradient(currentColor, currentColor) 0 6px / 20px 2px no-repeat, linear-gradient(currentColor, currentColor) 0 12px / 20px 2px no-repeat; content: ""; }
.app-nav-icon.is-setting::after { position: absolute; top: 7px; left: 10px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 8px 6px 0 currentColor, -2px 12px 0 currentColor; content: ""; }
@media (hover: hover) { .app-nav-button:hover { background: var(--app-blue-dark); } .app-nav-button:hover .app-nav-icon { background: rgba(255, 255, 255, 0.24); } }
@media (max-width: 480px) { .app-shell { padding: 16px 13px; } .app-header-inner { padding: 0 13px; } .app-header-logo { width: 102px; } .app-header-name { font-size: 11px; } .app-header-account strong { max-width: 92px; font-size: 11px; } }

.company-store-context { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 20px; background: #f3f6fb; color: #25364d; font-size: 14px; }
.company-store-context select { max-width: 100%; padding: 7px; border: 1px solid #ccd5e1; border-radius: 6px; }
.company-store-context button { padding: 7px 14px; border: 0; border-radius: 6px; background: #0b72e7; color: white; }
