:root{--bg:#f4f6f8;--surface:#fff;--text:#1c2430;--text-muted:#5b6675;--border:#d6dce3;--accent:#2b6cb0;--accent-contrast:#fff;--visited:#4f9fe3;--visited-hover:#3f91d9;--unvisited:#dfe4ea;--unvisited-hover:#cdd5de;--map-stroke:#fff;--map-bg:#e9eef3;--selected-stroke:#16365f;--shadow:0 8px 24px #10182829;--radius:12px;--header-h:52px}@media (prefers-color-scheme:dark){:root{--bg:#12161c;--surface:#1b212a;--text:#e6eaf0;--text-muted:#9aa5b4;--border:#2d3642;--accent:#6fb1f0;--accent-contrast:#0b1118;--visited:#5fb0f0;--visited-hover:#78bff5;--unvisited:#313a46;--unvisited-hover:#3c4654;--map-stroke:#12161c;--map-bg:#161b22;--selected-stroke:#fff;--shadow:0 8px 24px #00000080}}*{box-sizing:border-box}[hidden]{display:none!important}html,body{background:var(--bg);height:100%;color:var(--text);-webkit-text-size-adjust:100%;margin:0;font-family:system-ui,-apple-system,Segoe UI,Hiragino Sans,Noto Sans JP,sans-serif}#app{height:100%}.page{flex-direction:column;height:100%;display:flex}.icon-button{width:36px;height:36px;color:var(--text);cursor:pointer;background:0 0;border:none;border-radius:50%;flex:none;justify-content:center;align-items:center;font-size:20px;text-decoration:none;display:inline-flex}.icon-button:hover{background:var(--bg)}.app-header__avatar{background:var(--accent);width:30px;height:30px;color:var(--accent-contrast);border-radius:50%;justify-content:center;align-items:center;font-size:14px;font-weight:700;display:inline-flex}.btn{border:1px solid var(--border);background:var(--surface);min-height:42px;color:var(--text);cursor:pointer;border-radius:10px;justify-content:center;align-items:center;gap:6px;padding:0 18px;font-size:15px;font-weight:600;text-decoration:none;display:inline-flex}.btn:hover:not(:disabled){background:var(--bg)}.btn:disabled{opacity:.55;cursor:default}.btn--primary{background:var(--accent);border-color:var(--accent);color:var(--accent-contrast)}.btn--primary:hover:not(:disabled){background:var(--accent);filter:brightness(1.08)}.btn--danger{color:#d64545;background:0 0;border-color:#d64545}.btn--danger:hover:not(:disabled){background:#d6454514}.btn--block{width:100%}.btn--link{min-height:32px;color:var(--accent);background:0 0;border:none;padding:0 6px;font-size:14px;font-weight:500}.btn--link:hover:not(:disabled){background:0 0;text-decoration:underline}.field{flex-direction:column;gap:6px;margin-bottom:14px;display:flex}.field__label{color:var(--text-muted);font-size:13px}.field__input{border:1px solid var(--border);background:var(--surface);width:100%;min-height:44px;color:var(--text);border-radius:10px;padding:0 12px;font-size:16px}.field__input:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:#0000}.field__input--code{letter-spacing:.4em;text-align:center;font-variant-numeric:tabular-nums;font-size:24px}.form-error{color:#d64545;margin:0 0 12px;font-size:14px}.form-success{color:var(--visited);margin:0 0 12px;font-size:14px}.mono{font-family:ui-monospace,Consolas,monospace;font-size:.95em}.page--auth{padding:24px 16px;padding-top:calc(24px + env(safe-area-inset-top));justify-content:center;align-items:center;overflow-y:auto}.auth-card{background:var(--surface);border:1px solid var(--border);width:100%;max-width:400px;box-shadow:var(--shadow);border-radius:16px;padding:28px 24px}.auth-card__title{text-align:center;margin:0 0 6px;font-size:24px}.auth-card__lead{text-align:center;color:var(--text-muted);margin:0 0 24px;font-size:14px}.auth-form__desc{margin:0 0 16px;font-size:14px;line-height:1.6}.auth-form__email{word-break:break-all}.auth-form__actions{flex-wrap:wrap;justify-content:space-between;gap:8px;margin-top:12px;display:flex}.auth-form__dev{background:var(--bg);color:var(--text-muted);border-radius:8px;margin:14px 0 0;padding:8px 10px;font-size:12px}.content{padding:16px;padding-bottom:calc(24px + env(safe-area-inset-bottom));flex-direction:column;flex:auto;gap:16px;width:100%;max-width:560px;margin:0 auto;display:flex;overflow-y:auto}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px}.card--danger{border-color:#d6454580}.card__title{margin:0 0 8px;font-size:16px}.card__meta{color:var(--text-muted);margin:0 0 14px;font-size:14px;line-height:1.6}.app-header{height:var(--header-h);padding:0 16px;padding-top:env(safe-area-inset-top);background:var(--surface);border-bottom:1px solid var(--border);flex:none;align-items:center;gap:12px;display:flex}.app-header__title{margin:0;font-size:17px;font-weight:700}.app-header__count{color:var(--text-muted);white-space:nowrap;margin-left:auto;font-size:14px}.app-header__count strong{color:var(--text);font-size:16px}.map-area{background:var(--map-bg);flex:auto;min-height:0;position:relative;overflow:hidden}.map-view{touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab;width:100%;height:100%;display:block;position:absolute;inset:0}.map-view.is-dragging{cursor:grabbing}.map-view .prefecture{fill:var(--unvisited);stroke:var(--map-stroke);stroke-width:1px;stroke-linejoin:round;vector-effect:non-scaling-stroke;cursor:pointer;transition:fill .12s}.map-view .prefecture.is-visited{fill:var(--visited)}@media (hover:hover){.map-view .prefecture:hover{fill:var(--unvisited-hover)}.map-view .prefecture.is-visited:hover{fill:var(--visited-hover)}}.map-view .prefecture.is-selected{stroke:var(--selected-stroke);stroke-width:2.5px}.map-view .labels{pointer-events:none;fill:var(--text);paint-order:stroke;stroke:var(--map-bg);stroke-width:3px;stroke-linejoin:round;opacity:0;font-weight:600;transition:opacity .15s}.map-view .labels.is-visible{opacity:1}.map-controls{right:12px;bottom:calc(12px + env(safe-area-inset-bottom));flex-direction:column;gap:6px;display:flex;position:absolute}.map-controls button{border:1px solid var(--border);background:var(--surface);width:40px;height:40px;color:var(--text);cursor:pointer;border-radius:10px;font-size:20px;line-height:1;box-shadow:0 2px 6px #0000001f}.map-controls button:disabled{opacity:.4;cursor:default}.map-controls button:not(:disabled):active{transform:translateY(1px)}.map-attribution{left:8px;bottom:calc(6px + env(safe-area-inset-bottom));color:var(--text-muted);opacity:.8;pointer-events:none;font-size:10px;position:absolute}.pref-dialog{background:0 0;border:none;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:0}.pref-dialog::backdrop{background:#00000059}.pref-dialog__panel{background:var(--surface);max-height:88dvh;color:var(--text);box-shadow:var(--shadow);border-radius:16px 16px 0 0;flex-direction:column;margin:0;display:flex;position:fixed;bottom:0;left:0;right:0}.pref-dialog__header{padding:14px 16px 0}.pref-dialog__body{padding:12px 16px calc(20px + env(safe-area-inset-bottom));flex-direction:column;gap:16px;display:flex;overflow-y:auto}@media (width>=640px){.pref-dialog__panel{border-radius:var(--radius);width:440px;max-height:85vh;inset:50% auto auto 50%;transform:translate(-50%,-50%)}.pref-dialog__header{padding:18px 20px 0}.pref-dialog__body{padding:14px 20px 20px}}.pref-dialog__view{flex-direction:column;gap:14px;display:flex}.pref-dialog__visited-text{margin:0;font-size:15px;font-weight:600}.trip-list{flex-direction:column;gap:10px;display:flex}.trip-list__title{color:var(--text-muted);margin:0;font-size:14px;font-weight:600}.trip-list__status,.trip-list__empty{color:var(--text-muted);margin:0;font-size:14px}.trip-list__items{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.trip-item{border:1px solid var(--border);background:var(--bg);width:100%;color:var(--text);text-align:left;font:inherit;border-radius:10px;grid-template-columns:auto 1fr auto;align-items:center;column-gap:12px;padding:10px 12px;display:grid}.trip-item--button{cursor:pointer}.trip-item--button:hover{border-color:var(--accent)}.trip-item__date{white-space:nowrap;font-variant-numeric:tabular-nums;font-size:14px;font-weight:600}.trip-item__memo{color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:14px;overflow:hidden}.trip-item__memo--full{white-space:pre-wrap;color:var(--text)}.trip-item__nomemo{opacity:.7}.trip-item__chevron{color:var(--text-muted);font-size:20px}.trip-form__title{margin:0;font-size:16px}.segmented{border:1px solid var(--border);background:var(--bg);border-radius:10px;display:flex;overflow:hidden}.segmented__item{text-align:center;cursor:pointer;flex:1 1 0;position:relative}.segmented__item input{opacity:0;width:0;height:0;position:absolute}.segmented__item span{color:var(--text-muted);border-right:1px solid var(--border);padding:9px 4px;font-size:14px;display:block}.segmented__item:last-child span{border-right:none}.segmented__item input:checked+span{background:var(--accent);color:var(--accent-contrast);font-weight:600}.segmented__item input:focus-visible+span{outline:2px solid var(--accent);outline-offset:-2px}.trip-form__date{gap:10px;display:flex}.field--inline{flex:1 1 0;margin-bottom:0}.field--inline[data-for=year]{flex:1.6 1 0}.field__textarea{resize:vertical;min-height:96px;padding:10px 12px;font-family:inherit;line-height:1.5}select.field__input{appearance:auto}.trip-form__actions{align-items:center;gap:8px;display:flex}.trip-form__spacer{flex:auto}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.app-header__title--map{display:none}@media (width>=640px){.app-header__title--map{display:block}}.view-select{flex:0 auto;min-width:0}.view-select__input{border:1px solid var(--border);background:var(--bg);max-width:44vw;min-height:34px;color:var(--text);text-overflow:ellipsis;border-radius:8px;padding:0 8px;font-size:14px;font-weight:600}.badge{background:var(--accent);color:var(--accent-contrast);white-space:nowrap;border-radius:999px;padding:3px 8px;font-size:12px;font-weight:600}.card__count{color:var(--text-muted);font-size:14px;font-weight:500}.list-title{color:var(--text-muted);margin:18px 0 8px;font-size:13px;font-weight:600}.plain-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.plain-list__item{border:1px solid var(--border);background:var(--bg);border-radius:10px;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 12px;display:flex}.plain-list__main{flex-direction:column;flex:140px;gap:2px;min-width:0;font-size:14px;display:flex}.plain-list__name{text-overflow:ellipsis;font-size:15px;font-weight:600;overflow:hidden}.plain-list__sub{color:var(--text-muted);font-size:12px}.btn--small{min-height:34px;padding:0 12px;font-size:13px}.invite-result{border:1px dashed var(--accent);border-radius:10px;margin-top:14px;padding:12px}.invite-result__label{color:var(--text-muted);margin:0 0 8px;font-size:13px}.invite-result__row{flex-wrap:wrap;gap:8px;display:flex}.invite-result__url{flex:200px;font-family:ui-monospace,Consolas,monospace;font-size:13px}.invite-result__copied{color:var(--visited);margin:8px 0 0;font-size:13px}.invite-actions{flex-wrap:wrap;gap:10px;margin-top:8px;display:flex}.map-notice{color:#fff;max-width:calc(100% - 32px);box-shadow:var(--shadow);background:#d64545;border-radius:10px;padding:8px 14px;font-size:13px;position:absolute;top:10px;left:50%;transform:translate(-50%)}.pref-dialog__header{justify-content:space-between;align-items:center;display:flex}.pref-dialog__title{margin:0;font-size:20px}.pref-dialog__close{width:36px;height:36px;color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:50%;font-size:22px}.pref-dialog__close:hover{background:var(--bg)}.pref-dialog__hint{color:var(--text-muted);margin:0;font-size:13px}.switch{cursor:pointer;align-items:center;gap:12px;font-size:16px;display:flex}.switch input{opacity:0;width:0;height:0;position:absolute}.switch__track{background:var(--border);border-radius:14px;flex:none;width:48px;height:28px;transition:background .15s;position:relative}.switch__track:after{content:"";background:#fff;border-radius:50%;width:22px;height:22px;transition:transform .15s;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #0000004d}.switch input:checked+.switch__track{background:var(--visited)}.switch input:checked+.switch__track:after{transform:translate(20px)}.switch input:focus-visible+.switch__track{outline:2px solid var(--accent);outline-offset:2px}
