﻿/* style.css（ルートディレクトリに保存） - フルスクリーン/スクロール/ズーム禁止、ダークモード標準 */
:root {
    --bg-color: #000;
    --text-color: #fff;
    --accent-color: #007aff;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #000;
        --text-color: #fff;
        --accent-color: #007aff;
    }
}
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    height: 100vh;
    width: 100vw;
    overflow: hidden; /* スクロール禁止 */
    touch-action: manipulation; /* ピンチ/ダブルタップズーム禁止 */
    -webkit-touch-callout: none; /* iOSテキスト選択禁止 */
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    display: flex;
    flex-direction: column;
}
.app-header {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 10px;
}
.app-header h1 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}
label, select {
    color: var(--text-color);
    font-size: 14px;
}
select {
    background-color: #333;
    color: var(--text-color);
    border: 1px solid var(--text-color);
    padding: 5px;
    border-radius: 5px;
}
video {
    width: 100vw;
    height: 100vh;
    object-fit: cover; /* 画面にフィット、クロップで固定サイズプレビュー */
    display: block;
}
canvas {
    display: none; /* 保存に影響なし、プレビュー専用 */
}
.app-footer {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    gap: 20px;
}
#capturedImage {
    display: none;
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
}
button {
    padding: 15px 30px;
    font-size: 18px;
    background-color: var(--accent-color);
    color: var(--text-color);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    min-width: 100px;
}
button:hover {
    background-color: #0056cc;
}
button:disabled {
    background-color: #666;
    cursor: not-allowed;
}
#status {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 10px;
    z-index: 5;
    display: none; /* 初期非表示、JSで制御 */
}
#saveHint {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: #ccc;
    text-align: center;
    display: none;
    z-index: 10;
}
.focus-indicator {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--text-color);
    border-radius: 50%;
    pointer-events: none;
    display: none;
    z-index: 15;
    animation: pulse 1s ease-out;
}
@keyframes pulse {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}
