File size: 7,336 Bytes
b5dfc9d
 
2f9feb3
e7497f6
b5dfc9d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
813441b
b5dfc9d
813441b
9eee62a
b5dfc9d
 
 
9eee62a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
813441b
9eee62a
b5dfc9d
 
 
9eee62a
b5dfc9d
 
 
 
 
 
 
 
 
9eee62a
b5dfc9d
 
 
 
 
 
9eee62a
b5dfc9d
 
 
 
 
 
9eee62a
74e45c5
 
 
b5dfc9d
 
 
 
 
 
 
 
813441b
b5dfc9d
813441b
b5dfc9d
813441b
b5dfc9d
 
813441b
b5dfc9d
 
 
813441b
b5dfc9d
 
 
 
 
 
 
813441b
b5dfc9d
 
 
 
 
813441b
b5dfc9d
 
 
 
adb9c7e
 
 
 
ba9180f
 
adb9c7e
 
 
ba9180f
adb9c7e
 
 
 
 
 
 
 
9eee62a
adb9c7e
 
 
 
 
 
 
 
 
 
 
 
813441b
adb9c7e
 
 
 
 
 
813441b
9eee62a
b5dfc9d
 
 
 
 
 
 
 
 
 
 
 
 
 
d4f3633
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b5dfc9d
e2cccc7
 
 
 
 
 
b5dfc9d
 
5fd06ea
ccce6bc
da2ee00
e7497f6
 
b5dfc9d
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
head { z-index: 100; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #f4f4f9; color: #333; margin: 0; padding: 0; padding-top: 80px; transition: 0.3s; }

/* ヘッダー */
.header { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 60px; 
    background-color: #121212; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.3); 
    z-index: 1000; 
    display: flex; 
    align-items: center; 
    padding: 0 20px; 
    box-sizing: border-box; 
}

.header h1 { font-size: 1.5em; margin: 0; color: #ffffff; margin-right: auto; }

/* コントロールバー */
#controls {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
}
#controls form {
	display: flex;
	justify-content: center;
	gap: 10px;
}
#controls input[type="text"] {
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 5px;
	width: 300px;
}
#controls button {
	padding: 8px 14px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-weight: bold;
	color: #fff;
    white-space: nowrap;
}
#startBtn { background: #03dac6; color: #121212; }
#stopBtn { background: #cf6679; color: #121212; }
#theaterToggle { background: #bb86fc; color: #121212; }

/* ハンバーガー */
.hamburger { position: fixed; top: 10px; right: 10px; width: 48px; height: 48px; z-index: 5000; border: none; background: transparent; cursor: pointer; }
.hamburger__line { z-index: 5001; display: block; position: absolute; right: 11px; width: 26px; height: 2px; background-color: #e0e0e0; transition: 0.4s; }
.hamburger__line:nth-of-type(1) { top: 14px; }
.hamburger__line:nth-of-type(2) { top: 23px; }
.hamburger__line:nth-of-type(3) { top: 32px; }
.hamburger.active .hamburger__line:nth-of-type(1) { transform: translateY(9px) rotate(-45deg); }
.hamburger.active .hamburger__line:nth-of-type(2) { opacity: 0; }
.hamburger.active .hamburger__line:nth-of-type(3) { transform: translateY(-9px) rotate(45deg); }

/* メニュー */
.nav { 
    position: fixed; top: 0; right: -340px; width: 320px; 
    height: 100vh; background-color: #fff; box-shadow: -2px 0 5px rgba(0,0,0,0.5); 
    transition: 0.4s; z-index: 999; 
    padding-top: 60px; overflow-y: auto; 
}
.nav.active { transform: translateX(-340px); }
.nav__list { margin: 0; padding: 20px 0 60px 0; list-style: none; }
.nav__item { padding: 15px 20px; border-bottom: 1px solid #eee; }
.nav__item label { display: block; margin-bottom: 8px; font-weight: bold; color: #000; }
.nav__item select, .nav__item input[type="text"], .nav__item input[type="number"], .nav__item input[type="range"] { 
    width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; 
}
.hidden {
    display: none;
}
/* 話者設定UI */
.speaker-setting-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.speaker-name-input { flex-grow: 1; padding: 6px; border: 1px solid #ccc; border-radius: 4px; min-width: 0; }
.color-preview-box { width: 40px; height: 30px; flex-shrink: 0; border: 1px solid #999; border-radius: 4px; background-color: #fff; cursor: pointer; position: relative; overflow: hidden; }
.color-picker-hidden { opacity: 0; width: 100%; height: 100%; cursor: pointer; position: absolute; top: 0; left: 0; padding: 0; border: none; }
.reset-btn { width: 100%; padding: 8px; background-color: #efefef; border: 1px solid #ccc; border-radius: 4px; cursor: pointer; font-size: 0.9em; margin-top: 5px; }
.reset-btn:hover { background-color: #ddd; }

/* コンテンツエリア */
#container {
    width: 95vw;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    padding: 20px;
    height: calc(100vh - 80px);
    box-sizing: border-box;
}
#video-container { 
    flex: 3;
    position: relative; 
    background: #000; 
    border-radius: 8px; 
    overflow: hidden; 
    height: 100%;
}
#history-container { 
    flex: 1;
    background: #fff; 
    padding: 15px; 
    border-radius: 8px; 
    overflow-y: auto; 
    border: 1px solid #ddd;
    margin-top: 0;
    height: 100%;
    box-sizing: border-box;
}

/* シアターモードスタイル (全体制御) */
body.theater-active {
    overflow: hidden;
    padding: 0 !important;
}

/* シアター中はヘッダーと履歴を非表示 */
body.theater-active .header { display: none !important; }
body.theater-active #history-container { display: none !important; }

/* シアター中はコンテナの余白解除 */
body.theater-active #container {
    padding: 0 !important;
    margin: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
}

/* 動画エリア全画面化 */
body.theater-active #video-container.theater-mode {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: #000;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 0;
}
body.theater-active #video-container.theater-mode iframe { width: 100%; height: 100%; object-fit: contain; }

/* 閉じるボタン */
.close-theater-btn { display: none; position: absolute; top: 20px; right: 20px; background-color: rgba(0, 0, 0, 0.5); color: #fff; border: 1px solid rgba(255,255,255,0.5); padding: 10px 20px; border-radius: 30px; cursor: pointer; font-weight: bold; z-index: 2500; font-size: 1rem; }
.close-theater-btn:hover { background-color: rgba(255, 255, 255, 0.2); }
.theater-mode .close-theater-btn { display: block; }

/* 字幕コンテナ */
#subtitle-container { 
    position: absolute; 
    bottom: 5%; 
    left: 0; 
    width: 100%; 
    text-align: center; 
    pointer-events: none; 
    z-index: 1500; 
    display: flex; 
    flex-direction: column; 
    align-items: center;    
    justify-content: flex-end; 
    gap: 5px; 
}
/* プレビュー四角 */
.color-preview {
    width: 30px;
    height: 30px;
    border: 2px solid #666;   /* ← 背景と同化しない */
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    background: #ffffff;
}

/* color input を完全に覆う */
.color-preview input[type="color"] {
    position: absolute;
    inset: 0;
    opacity: 0;      /* 見えない */
    cursor: pointer;
}

#textFgPreview {
    position: relative;
    width: 30px;
    height: 30px;
}

.subtitle-line { display: inline-block; margin: 2px; padding: 2px 6px; border-radius: 4px; text-shadow: 1px 1px 3px #000; transition: 0.3s; }
#video-frame { width: 100%; height: 100%; border: none; }

#history-list { list-style: none; padding: 0; margin: 0; }
#history-list li { padding: 8px; border-bottom: 1px solid #eee; color: #333; }

/* ダークモード */
body.dark-mode { background-color: #121212; color: #e0e0e0; }
body.dark-mode .nav { background-color: #2c2c2c; }
body.dark-mode .nav__item { border-bottom: 1px solid #444; }
body.dark-mode .nav__item label { color: #ccc; }
body.dark-mode input[type="text"], body.dark-mode select, body.dark-mode input[type="number"] { background-color: #333; color: #fff; border: 1px solid #555; }
body.dark-mode .reset-btn { background-color: #444; color: #fff; border-color: #555; }
body.dark-mode .reset-btn:hover { background-color: #555; }
body.dark-mode #history-container { background-color: #1e1e1e; border-color: #333; }
body.dark-mode #history-list li { border-bottom: 1px solid #333; color: #e0e0e0; }