@charset "UTF-8";
:root{font-family:Inter,"Helvetica Neue",Arial,"Noto Sans JP",Meiryo,sans-serif;color:#172024;background:#f7f8f9;font-synthesis:none;--accent:#f34e34;--ink:#172024;--muted:#657177;--line:#e2e6e8;--radius:18px}
*{box-sizing:border-box}body{margin:0;font-size:16px;line-height:1.6}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible{outline:3px solid #ee765e;outline-offset:4px}input:focus{outline:2px solid var(--accent);outline-offset:1px}a{color:inherit}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.35}button{border:0}input,select{width:100%;background:white;border:1px solid #cdd4d8;border-radius:10px;padding:12px 14px;min-height:48px;color:var(--ink)}label{display:grid;gap:7px;font-size:14px;font-weight:600}input[type=range]{padding:0;accent-color:var(--accent)}input[type=file]{font-size:14px}form{display:grid;gap:18px}small,.muted{color:var(--muted)}[hidden]{display:none!important}svg{width:22px;height:22px;display:block;flex-shrink:0}.eyebrow{font-size:12px;letter-spacing:.15em;font-weight:700;color:var(--muted)}.brand{font-size:29px;letter-spacing:-1.9px;font-weight:850;line-height:1}.brand b{color:var(--accent)}.brand-row{display:flex;align-items:center;gap:18px}.edition{font-size:12px;letter-spacing:.15em;border-left:1px solid #cad1d5;padding-left:18px;color:var(--muted)}.topbar{height:88px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 5vw;background:#fff}.topbar .icon-button{border:1px solid var(--line)}.icon-button{height:44px;min-width:44px;border-radius:50%;background:transparent;display:inline-flex;align-items:center;justify-content:center;font-size:26px;color:inherit}.button{min-height:48px;border-radius:12px;padding:12px 20px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:650;text-decoration:none;background:var(--ink);color:white;white-space:normal;line-height:1.45}.button.accent{background:var(--accent)}.button.secondary{background:#eef1f3;color:var(--ink)}.button.light{background:white;color:var(--ink)}.button.danger{background:#c9392d;color:white}.button.full{width:100%}.text-button{background:none;color:var(--muted);padding:10px 0;min-height:44px;text-align:left}.text-button.danger{color:#b5392b}.button-row{display:flex;gap:10px}.button-row>*{flex:1}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.section-heading h2{font-size:21px;letter-spacing:-.02em}.pill{border:1px solid var(--line);border-radius:50px;display:inline-flex;gap:7px;align-items:center;padding:6px 12px;font-size:12px;font-weight:650;letter-spacing:.03em;white-space:nowrap}.error{color:#b33226;font-size:14px;line-height:1.6}.field-note{font-size:13px;color:var(--muted)}.loading{display:grid;place-content:center;min-height:80dvh;gap:16px;font-size:38px;font-weight:800;letter-spacing:-.05em;text-align:center}.loading span{font-size:14px;letter-spacing:0;font-weight:400}
.login{max-width:1100px;margin:0 auto;min-height:calc(100dvh - 88px);display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:100px;padding:60px 32px}.login-title{font-size:clamp(38px,5vw,66px);letter-spacing:-.055em;line-height:1.4;margin:22px 0 24px;font-weight:750}.login-title span{color:var(--accent)}.login-intro>p{color:var(--muted);line-height:2}.beat-art{margin-top:48px;display:flex;gap:6px;align-items:flex-end;height:70px}.beat-art i{width:12px;height:36px;background:#cdd5da;border-radius:3px}.beat-art i:nth-child(4n+1){height:68px;background:var(--accent)}.beat-art i:nth-child(4n+2){height:48px}.beat-art i:nth-child(4n+3){height:24px}.login-card{background:white;border:1px solid var(--line);border-radius:24px;padding:36px}.login-card h2{font-size:24px;margin-bottom:6px}.login-card>p{font-size:14px;color:var(--muted);margin-bottom:28px}.login-footnote{font-size:12px;color:var(--muted);text-align:center;margin-top:24px}
.library{max-width:1120px;margin:auto;padding:56px 32px 70px}.library-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:38px;gap:20px}.library h1{font-size:38px;letter-spacing:-.05em;margin-top:8px}.journey-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.journey-card{position:relative;border:1px solid var(--line);border-radius:var(--radius);background:white;overflow:hidden}.journey-cover{height:240px;background:#e8edf0;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}.journey-cover img{width:100%;height:100%;object-fit:cover}.journey-cover .empty-number{font-size:104px;font-weight:750;letter-spacing:-.09em;color:#a5b1b8}.journey-cover .cover-label{position:absolute;bottom:16px;left:18px;background:white;padding:5px 10px;border-radius:6px;font-size:12px;letter-spacing:.08em}.journey-info{padding:22px;display:grid;gap:8px}.journey-info h2{font-size:21px;word-break:break-word}.journey-info p{font-size:13px;color:var(--muted)}.journey-info .button{margin-top:12px}.empty-library{border:1px dashed #bac5cc;border-radius:24px;padding:64px 24px;text-align:center;display:grid;justify-items:center;gap:20px}.empty-library .empty-icon{width:72px;height:72px;border-radius:22px;background:#eaf0f3;display:grid;place-content:center;color:#627982}.empty-icon svg{width:34px;height:34px}.empty-library h2{font-size:23px}.empty-library p{color:var(--muted);max-width:400px}.new-trip-form{width:100%;max-width:380px;text-align:left}.new-trip-form .button{margin-top:2px}
.editor{max-width:1160px;margin:auto;padding:30px 32px 60px}.back{display:inline-flex;gap:8px;align-items:center;margin-bottom:14px;font-size:14px}.back svg{width:16px;height:16px}.editor-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:30px}.title-button{display:flex;gap:10px;align-items:center;background:none;text-align:left;padding:0;max-width:80%}.title-button h1{font-size:31px;letter-spacing:-.04em;word-break:break-word}.title-button svg{width:17px;height:17px;color:var(--muted)}.editor-layout{display:grid;grid-template-columns:340px minmax(0,1fr);gap:64px;align-items:start}.preview-column{position:sticky;top:24px}.preview-frame{aspect-ratio:9/16;background:#1b272d;border-radius:22px;overflow:hidden;position:relative;color:white;isolation:isolate}.preview-frame video{width:100%;height:100%;object-fit:cover;display:block}.preview-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:18px;padding:24px;background:linear-gradient(155deg,#253b45,#131e23)}.preview-empty>svg{width:42px;height:42px;opacity:.55;stroke-width:1}.preview-empty p{font-size:15px;color:#d1dade}.preview-empty small{font-size:12px;color:#9cacb5}.frame-top{position:absolute;top:22px;left:22px;right:22px;display:flex;justify-content:space-between;align-items:center;z-index:1;font-size:12px;letter-spacing:.14em;text-shadow:0 1px 5px #0009;pointer-events:none}.frame-top .frame-badge{border:1px solid #ffffff50;border-radius:4px;padding:3px 6px;font-size:10px}.preview-caption{position:absolute;left:6.1%;right:6%;bottom:13%;pointer-events:none;text-shadow:0 1px 7px #000;z-index:1;line-height:1.6}.preview-caption time{font-size:19px;font-weight:700;letter-spacing:.04em;display:block}.preview-caption p{font-size:14px;overflow-wrap:anywhere}.preview-label{display:flex;justify-content:space-between;margin:14px 2px 22px;color:var(--muted);font-size:12px}.capture-main{width:100%;min-height:56px}.capture-help{text-align:center;font-size:12px;color:var(--muted);margin-top:10px}.story-top{padding-bottom:26px;border-bottom:1px solid var(--line)}.story-top h2{font-size:22px}.story-count{display:flex;align-items:baseline;gap:4px;font-variant-numeric:tabular-nums}.story-count strong{font-size:31px;font-weight:650;letter-spacing:-.04em}.story-count span{font-size:14px;color:var(--muted)}.beat-strip{display:grid;grid-template-columns:repeat(16,1fr);gap:5px;margin:18px 0 12px}.beat-strip i{height:5px;background:#dce2e6;border-radius:2px}.beat-strip i.filled{background:var(--accent)}.story-hint{font-size:14px;color:var(--muted)}.shots-section{margin-top:26px}.shots-section .section-heading{margin-bottom:16px}.shots-section h3{font-size:15px;font-weight:650}.shot-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.shot{position:relative;text-align:left;min-width:0;padding:0;background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden;color:var(--ink)}.shot.selected{outline:2px solid var(--accent);outline-offset:2px}.shot-image{aspect-ratio:4/5;background:#dae1e5;position:relative}.shot-image img{width:100%;height:100%;object-fit:cover;display:block}.shot-index,.shot-length{position:absolute;top:7px;left:7px;color:white;background:#0006;border-radius:4px;padding:1px 5px;font-size:11px;font-weight:650}.shot-length{left:auto;right:7px;top:auto;bottom:7px}.shot-copy{padding:8px}.shot-copy time{font-size:13px;font-weight:600}.shot-copy p{font-size:12px;color:var(--muted);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;min-height:19px}.shot-add{aspect-ratio:4/6.7;background:transparent;border:1px dashed #b9c5cc;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;font-size:12px;color:var(--muted)}.shot-add span{font-size:28px;color:#81949e}.shot-placeholder{aspect-ratio:4/6.7;border:1px solid var(--line);border-radius:12px;display:grid;place-content:center;color:#b8c3ca;font-size:13px}.music-card{width:100%;text-align:left;padding:20px;margin-top:28px;background:white;border:1px solid var(--line);border-radius:14px;display:flex;align-items:center;gap:14px;color:var(--ink)}.music-icon{background:#fff0eb;color:var(--accent);width:44px;height:44px;border-radius:12px;display:grid;place-content:center;flex-shrink:0}.music-info{flex:1;min-width:0}.music-info strong{display:block;font-size:15px;overflow-wrap:anywhere}.music-info small{font-size:12px}.music-card>span:last-child{font-size:20px;color:var(--muted)}.export-box{margin-top:24px;padding-top:24px;border-top:1px solid var(--line)}.export-box p{font-size:13px;color:var(--muted);margin-top:12px}.export-status{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;font-size:14px}.export-box progress{width:100%;height:6px;accent-color:var(--accent);margin-bottom:16px}.editor-bottom{display:flex;justify-content:space-between;margin-top:22px}.editor-bottom .text-button{font-size:13px}.export-stale{background:#fff0e8;border-radius:8px;padding:12px;font-size:13px;margin-bottom:12px;color:#864321}
dialog{border:0;padding:0;color:var(--ink);max-height:90dvh;overscroll-behavior:contain}dialog::backdrop{background:#0b1822a8;backdrop-filter:blur(4px)}.sheet{border-radius:22px;width:min(520px,calc(100% - 28px));padding:28px;box-shadow:0 24px 90px #0c172440}.sheet h2{font-size:23px}.sheet .dialog-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;gap:14px}.sheet .dialog-header .icon-button{flex-shrink:0;background:#f0f3f4}.sheet .mini-video{aspect-ratio:9/12;max-height:240px;width:100%;object-fit:contain;background:#14232b;border-radius:12px;margin-bottom:22px}.sheet .edit-meta{display:grid;grid-template-columns:1fr 2fr;gap:12px}.sheet .section-divider{border:0;border-top:1px solid var(--line);margin:28px 0}.sheet h3{font-size:17px;margin-bottom:18px}.sheet .move-buttons{display:flex;justify-content:space-between;gap:14px;margin-top:10px}.sheet .move-buttons .button{font-size:14px;flex:1}.sheet.compact p{margin:18px 0 26px;color:var(--muted)}.user-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px}.user-row small{display:block}.user-row .button{padding:7px 12px;font-size:12px;min-height:40px}.track-row{display:flex;gap:12px;align-items:center;padding:18px 0;border-bottom:1px solid var(--line)}.track-row .track-select{background:none;padding:0;flex:1;text-align:left;color:var(--ink)}.track-select strong,.track-select small{display:block}.track-select strong{font-size:16px}.track-select small{font-size:12px;margin-top:3px}.track-row.selected .track-select strong{color:var(--accent)}.track-row .icon-button{background:#edf1f3}.camera-dialog{background:#10171c;width:min(430px,100%);height:min(820px,100dvh);max-height:100dvh;border-radius:22px;color:white;overflow:hidden}.camera-stage{height:100%;width:100%;position:relative;background:#14232b}.camera-stage>video{height:100%;width:100%;object-fit:cover;display:block}.camera-top{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;padding:18px 20px;background:linear-gradient(#0008,transparent);font-size:14px}.glass{background:#ffffff22;color:white;backdrop-filter:blur(8px)}.camera-guide{position:absolute;inset:100px 30px 220px;pointer-events:none;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}.camera-guide i{border:0 solid #fff5}.camera-guide i:nth-child(1){border-top-width:1px;border-left-width:1px}.camera-guide i:nth-child(2){border-top-width:1px;border-right-width:1px}.camera-guide i:nth-child(3){border-bottom-width:1px;border-left-width:1px}.camera-guide i:nth-child(4){border-bottom-width:1px;border-right-width:1px}.camera-bottom{position:absolute;bottom:0;left:0;right:0;padding:30px 24px max(32px,env(safe-area-inset-bottom));background:linear-gradient(transparent,#000b 40%);text-align:center}.camera-bottom p{font-size:14px;margin:16px 0}.camera-bottom progress{width:100%;height:4px;accent-color:var(--accent);margin-bottom:20px}.capture-controls{display:flex;justify-content:space-around;align-items:center}.record-button{width:78px;height:78px;padding:5px;background:transparent;border:3px solid white;border-radius:50%;display:grid;place-items:center}.record-button span{display:block;width:100%;height:100%;border-radius:50%;background:var(--accent);transition:all .15s}.record-button.recording span{width:28px;height:28px;border-radius:7px}.capture-duration{font-size:23px;width:44px;line-height:1.4}.capture-duration span{font-size:8px;letter-spacing:.12em;display:block}.camera-stage.review .camera-guide{display:none}.camera-stage.review .camera-bottom{padding-bottom:28px}#toast{position:fixed;bottom:max(25px,env(safe-area-inset-bottom));left:50%;transform:translate(-50%,20px);z-index:1000;border-radius:12px;background:#17252c;color:white;padding:14px 20px;box-shadow:0 4px 24px #0003;opacity:0;pointer-events:none;max-width:min(520px,calc(100% - 32px));width:max-content;font-size:14px;transition:opacity .2s,transform .2s}#toast.visible{opacity:1;transform:translate(-50%,0)}
@media(min-width:1300px){.editor-layout{grid-template-columns:370px minmax(0,1fr);gap:80px}.editor{max-width:1200px}.preview-column{max-width:370px}}
@media(max-width:800px){.topbar{height:72px;padding:0 24px}.login{gap:40px;padding:40px 24px}.login-card{padding:26px}.journey-grid{grid-template-columns:repeat(2,1fr)}.editor-layout{gap:28px;grid-template-columns:290px minmax(0,1fr)}.shot-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.editor{padding:24px}.login-title{font-size:38px}}
@media(max-width:620px){.topbar{height:68px;padding:0 20px}.brand{font-size:27px}.edition{font-size:10px;padding-left:13px}.brand-row{gap:13px}.login{display:block;padding:34px 22px 40px;min-height:0}.login-intro{padding:0 6px;margin-bottom:30px}.login-title{font-size:39px;line-height:1.4;margin:14px 0}.login-intro>p{font-size:14px}.beat-art{display:none}.login-card{padding:26px 22px;border-radius:18px}.library{padding:30px 20px 50px}.library h1{font-size:30px}.library-header{align-items:flex-end;margin-bottom:26px;gap:10px}.library-header .button{font-size:13px;padding:11px 13px;min-height:44px}.journey-grid{grid-template-columns:1fr}.journey-cover{height:230px}.empty-library{padding:38px 20px}.empty-library h2{font-size:21px}.empty-library p{font-size:14px}.editor{padding:18px 20px 35px}.editor-header{margin-bottom:24px}.title-button h1{font-size:25px}.editor-header .pill{font-size:11px;padding:5px 9px}.editor-layout{display:flex;flex-direction:column;gap:30px}.preview-column{position:static;width:100%;max-width:none;display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.preview-frame{grid-column:1/-1;width:100%;max-width:300px;justify-self:center;aspect-ratio:9/13.8;border-radius:18px}.preview-frame video{object-fit:cover}.preview-label{grid-column:1/-1;max-width:300px;width:100%;justify-self:center;margin:12px 0 20px}.capture-main{grid-column:1/-1;min-height:54px}.capture-help{grid-column:1/-1}.story-column{width:100%}.story-top{padding-bottom:20px}.story-top .section-heading{margin-bottom:10px}.story-top h2{font-size:20px}.shot-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.shot-copy{padding:6px}.shot-copy p{font-size:10px}.shot-copy time{font-size:12px}.shot-index,.shot-length{font-size:10px;left:4px;top:4px;padding:0 4px}.shot-length{left:auto;top:auto;right:4px;bottom:4px}.shot-add{gap:5px;font-size:10px}.shot-placeholder{font-size:12px}.music-card{padding:16px;margin-top:24px}.sheet{padding:22px;max-height:90dvh}.camera-dialog{border-radius:0;max-width:100%;width:100%;height:100dvh;margin:0}.camera-top{padding-top:max(18px,env(safe-area-inset-top))}.sheet .edit-meta{grid-template-columns:1fr}.button-row .button{font-size:14px;padding:12px}.preview-caption{bottom:15%}.preview-caption time{font-size:18px}.preview-caption p{font-size:13px}.frame-top{top:18px;left:18px;right:18px}.back{margin-bottom:12px}}
@media(max-width:360px){.shot-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.edition{display:none}.login-title{font-size:34px}.preview-frame{max-width:260px}.editor-header .pill{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Match the exported 9:16 crop instead of zooming to fill a taller phone screen. */
.camera-viewfinder{position:absolute;top:50%;left:50%;width:min(100%,56.25dvh);aspect-ratio:9/16;transform:translate(-50%,-50%);overflow:hidden}
.camera-viewfinder>video{width:100%;height:100%;object-fit:cover;display:block}
.camera-viewfinder .camera-guide{inset:16px}
.brand{text-decoration:none;font-size:24px;letter-spacing:.01em}.export-downloads{margin-top:12px}.music-note{margin-top:18px}
@media(max-width:620px){.preview-frame{max-width:270px;aspect-ratio:9/16}.shot-copy p,.shot-add{font-size:12px}.shot-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.preview-caption{bottom:13%}}
