:root{color-scheme:dark;font-family:"Noto Sans JP",system-ui,-apple-system,"Hiragino Kaku Gothic ProN",sans-serif}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;background:radial-gradient(circle at 80% 20%,#6d2046 0%,#281638 42%,#130f1f 85%);color:#fff8e9}
button,input{font:inherit}
a{color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible,label:focus-within{outline:3px solid #f3cf8d;outline-offset:4px}
[hidden]{display:none!important}
.photo-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,460px);align-items:start;gap:clamp(28px,5vw,80px);width:min(1200px,calc(100% - 48px));margin:0 auto;padding:clamp(28px,5vw,68px) 0 70px}
.photo-copy{padding-top:8px}
.back-link{display:inline-block;padding:8px 0;border-bottom:1px solid #d7ae7c;color:#f1d5b0;font-size:13px;font-weight:800}
.back-link:hover{color:#fff}
.photo-kicker{margin:70px 0 15px;color:#f0bd7a;font:800 14px Arial,sans-serif;letter-spacing:.2em}
h1{margin:0;font-size:clamp(36px,5vw,66px);line-height:1.32;letter-spacing:.02em}
.photo-lead{max-width:34em;margin:24px 0 31px;color:#e8d7dc;font-size:clamp(14px,1.4vw,18px);font-weight:650;line-height:1.9}
.access-label{margin:0 0 6px;color:#e6b078;font-size:12px;font-weight:900;letter-spacing:.06em}
.access-time{display:block;margin-bottom:25px;font:800 clamp(21px,3vw,31px) Arial,sans-serif;letter-spacing:.06em}
.camera-actions,.camera-live-actions{display:flex;flex-wrap:wrap;gap:10px;width:min(430px,100%)}
.camera-live-actions{margin-top:12px}
.camera-actions button,.camera-live-actions button,.photo-picker{min-height:54px;padding:12px 16px;border:1px solid #f6ce8d;color:#fff;font-weight:900;cursor:pointer}
.camera-start,.camera-capture{display:flex;align-items:center;justify-content:space-between;gap:20px;flex:1 1 100%;background:linear-gradient(110deg,#ca3265,#9d1d3a);font-size:17px}
.camera-start span{font-size:23px;line-height:1}
.camera-switch,.camera-retake{background:#322342;font-size:13px;flex:1 1 100%}
.camera-capture{background:linear-gradient(110deg,#e85645,#b22a52)}
.camera-actions button:disabled,.photo-actions button:disabled{cursor:not-allowed;opacity:.4}
.camera-actions button:not(:disabled):hover,.photo-actions button:not(:disabled):hover{filter:brightness(1.12)}
.camera-hint,.save-hint{max-width:40em;color:#d6c1c6;font-size:12px;line-height:1.85}
.camera-hint{margin:14px 0 20px}
.photo-picker{display:flex;align-items:center;justify-content:space-between;gap:18px;width:min(430px,100%);background:rgba(49,31,64,.86);font-size:14px}
.photo-picker:hover{background:#4a2b64}
.photo-picker span{font-size:25px;line-height:1}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.photo-status{min-height:1.8em;margin-top:19px;color:#f6d6a5;font-size:13px;font-weight:800;line-height:1.7}
.photo-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:17px}
.photo-actions button{min-height:51px;padding:11px 20px;border:1px solid #e6b474;background:#efd197;color:#231323;font-weight:900;cursor:pointer}
.photo-actions button:last-child{background:transparent;color:#f8d9ae}
.save-hint{margin-top:17px}
.photo-preview{width:100%}
.preview-heading{display:flex;justify-content:space-between;gap:15px;margin-bottom:12px;color:#f0cfaa;font-size:12px;font-weight:800;letter-spacing:.05em}
.preview-stage{position:relative;aspect-ratio:9/16;border:1px solid #d9a66c;box-shadow:0 24px 60px rgba(0,0,0,.42);background:linear-gradient(150deg,#1f1431,#702246);overflow:hidden}
.camera-placeholder{position:absolute;inset:0;display:grid;place-content:center;gap:16px;text-align:center;color:#f6deb3;font-weight:800;line-height:1.7}
.camera-placeholder span{font-size:74px;line-height:1}
.camera-placeholder p{margin:0}
.preview-stage video,.preview-stage .live-frame,.preview-stage .image-preview{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.preview-stage video.is-mirrored{transform:scaleX(-1)}
.preview-stage .live-frame{z-index:2;object-fit:fill;pointer-events:none}
.preview-stage .live-stamp{position:absolute;z-index:3;left:6.1%;top:21.55%;padding:4px 7px;border:1px solid #edca8e;background:rgba(17,11,31,.82);color:#fff3d3;font:800 clamp(11px,2vw,17px) Arial,sans-serif;letter-spacing:.02em;pointer-events:none}
.preview-stage .image-preview{z-index:4;object-fit:contain}
@media(max-width:800px){.photo-layout{grid-template-columns:1fr;gap:34px;width:min(550px,calc(100% - 32px));padding:22px 0 55px}.photo-kicker{margin-top:39px}.photo-preview{max-width:430px;margin:auto}.photo-lead{margin:19px 0 25px}.photo-actions button{flex:1}}
