-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
547 lines (454 loc) · 11.5 KB
/
style.css
File metadata and controls
547 lines (454 loc) · 11.5 KB
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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
/* ナビゲーションバー */
.navbar {
background-color: #2a2a2a !important;
box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
/* ナビゲーションリンクの可視性向上 */
.navbar-brand,
.nav-link {
color: #f0f0f0 !important;
font-weight: 500;
}
.nav-link:hover {
color: #ffffff !important;
background-color: rgba(255, 255, 255, 0.1) !important;
border-radius: 5px;
}
/* カードコンポーネント */
.card {
background-color: #2a2a2a !important;
border: 1px solid #3a3a3a;
border-radius: 10px;
transition: transform 0.3s ease, box-shadow 0.3s ease;
height: 100%; /* カードの高さを統一 */
}
.card:hover {
transform: translateY(-5px);
box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.card-body {
color: #e8e8e8;
display: flex;
flex-direction: column;
justify-content: space-between;
}
/* カードタイトルの強調 */
.card-title {
color: #ffffff !important;
font-weight: 600;
}
/* カードテキストの可読性向上 */
.card-text {
color: #d0d0d0 !important;
line-height: 1.7;
}
/* ボタン */
.btn {
margin: 0.25rem;
border-radius: 5px;
transition: all 0.3s ease;
font-weight: 500;
}
.btn:hover {
transform: scale(1.05);
}
/* プライマリボタンの可視性向上 */
.btn-primary {
background-color: #4a90e2 !important;
border-color: #4a90e2 !important;
color: #ffffff !important;
}
.btn-primary:hover {
background-color: #357abd !important;
border-color: #357abd !important;
}
/* セカンダリボタンの可視性向上 */
.btn-secondary {
background-color: #6c757d !important;
border-color: #6c757d !important;
color: #ffffff !important;
}
.btn-secondary:hover {
background-color: #545b62 !important;
border-color: #545b62 !important;
}
/* アウトラインボタンの改善 */
.btn-outline-light {
color: #e8e8e8 !important;
border-color: #e8e8e8 !important;
}
.btn-outline-light:hover {
background-color: #e8e8e8 !important;
color: #1a1a1a !important;
}
/* iframe */
iframe {
max-width: 100%;
height: auto;
border-radius: 10px;
}
/* コンテナ最大幅の調整 */
.container {
max-width: 1200px;
}
/* ヘッダー調整 */
.display-4 {
font-size: clamp(2rem, 5vw, 3.5rem);
margin-bottom: 1.5rem;
color: #ffffff !important;
font-weight: 700;
text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.lead {
font-size: clamp(1rem, 2.5vw, 1.25rem);
color: #d0d0d0 !important;
font-weight: 400;
}
/* お知らせセクションのグリッド改善 */
.news-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
}
/* Discord Widgetの調整 */
.discord-widget {
min-height: 400px;
}
/* スマートフォン向け (320px - 767px) */
@media (max-width: 767px) {
.container {
padding-left: 15px;
padding-right: 15px;
}
.display-4 {
font-size: 2rem;
}
.lead {
font-size: 1rem;
}
.navbar-nav {
text-align: center;
}
.discord-widget {
min-height: 300px;
}
/* ナビゲーションリンクを2列に */
.navbar-nav {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.5rem;
width: 100%;
}
}
/* タブレット向け (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
.container {
max-width: 100%;
padding-left: 30px;
padding-right: 30px;
}
.display-4 {
font-size: 3rem;
}
/* お知らせを2列に */
.news-grid {
grid-template-columns: repeat(2, 1fr);
}
/* ナビゲーションの調整 */
.navbar-nav .nav-item {
margin: 0 0.25rem;
}
.navbar-nav .nav-link {
font-size: 0.9rem;
padding: 0.375rem 0.5rem;
}
/* Discord Widget調整 */
.discord-widget {
min-height: 450px;
}
/* カードのpadding調整 */
.card-body {
padding: 1.25rem;
}
}
/* デスクトップ向け (1024px以上) */
@media (min-width: 1024px) {
.container {
max-width: 1200px;
}
.display-4 {
font-size: 3.5rem;
margin-bottom: 2rem;
}
.lead {
font-size: 1.5rem;
}
/* お知らせを3列に */
.news-grid {
grid-template-columns: repeat(3, 1fr);
gap: 2rem;
}
/* セクションマージンの調整 */
.mb-5 {
margin-bottom: 4rem !important;
}
/* ナビゲーションの間隔調整 */
.navbar-nav .nav-item {
margin: 0 0.5rem;
}
/* Discord Widget最大化 */
.discord-widget {
min-height: 500px;
}
/* カードホバー効果強化 */
.card:hover {
transform: translateY(-8px);
box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}
}
/* 大型デスクトップ向け (1440px以上) */
@media (min-width: 1440px) {
.container {
max-width: 1400px;
}
.display-4 {
font-size: 4rem;
}
/* さらに大きな画面では4列に */
.news-grid {
grid-template-columns: repeat(4, 1fr);
}
/* セクション間の余白を広げる */
.mb-5 {
margin-bottom: 5rem !important;
}
}
/* 超ワイド画面向け (1920px以上) */
@media (min-width: 1920px) {
.container {
max-width: 1600px;
}
/* コンテンツを中央により集約 */
.row {
justify-content: center;
}
}
/* テーマ切り替え機能 */
/* ダークテーマ(デフォルト) */
body {
font-family: 'Roboto', 'Arial', sans-serif;
font-size: 16px;
background-color: #1a1a1a !important;
color: #e8e8e8 !important;
line-height: 1.6;
}
/* ライトテーマ */
body[data-theme="light"] {
background-color: #FFFFFF !important;
color: #000000 !important;
}
body[data-theme="light"] .navbar {
background-color: #F8F9FA !important;
}
body[data-theme="light"] .navbar-brand,
body[data-theme="light"] .nav-link {
color: #000000 !important;
}
body[data-theme="light"] .card {
background-color: #F8F9FA !important;
border-color: #DEE2E6 !important;
}
body[data-theme="light"] .card-body {
color: #000000 !important;
}
body[data-theme="light"] footer {
background-color: #F8F9FA !important;
color: #000000 !important;
}
body[data-theme="light"] .navbar-toggler-icon {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
body[data-theme="light"] .navbar-collapse {
background-color: #F8F9FA !important;
border-color: #DEE2E6 !important;
}
body[data-theme="light"] .nav-link:hover {
background-color: #E9ECEF !important;
}
/* テーマ切り替えボタンのスタイル */
#themeToggle {
border-radius: 50%;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
background-color: transparent !important;
border: 2px solid #e8e8e8 !important;
color: #e8e8e8 !important;
}
#themeToggle:hover {
transform: scale(1.1);
background-color: rgba(232, 232, 232, 0.1) !important;
border-color: #ffffff !important;
color: #ffffff !important;
}
body[data-theme="light"] #themeToggle {
border-color: #000000 !important;
color: #000000 !important;
}
body[data-theme="light"] #themeToggle:hover {
background-color: #E9ECEF !important;
}
/* メニュー内でのテーマボタンの調整 */
.navbar-collapse .d-flex {
justify-content: center;
margin-top: 1rem;
padding-top: 1rem;
border-top: 1px solid #3a3a3a;
}
body[data-theme="light"] .navbar-collapse .d-flex {
border-top-color: #DEE2E6;
}
/* アニメーション改善 */
@media (prefers-reduced-motion: no-preference) {
.card {
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn {
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
}
/* 印刷時の調整 */
@media print {
.navbar,
.discord-widget,
iframe {
display: none !important;
}
.card {
border: 1px solid #000 !important;
box-shadow: none !important;
}
body {
background-color: white !important;
color: black !important;
}
}
/* 追加のダークモード可読性改善 */
/* フッターの改善 */
footer {
background-color: #2a2a2a !important;
color: #e8e8e8 !important;
border-top: 1px solid #3a3a3a;
}
/* リンクの可視性向上 */
a {
color: #66b3ff !important;
text-decoration: none;
}
a:hover {
color: #99ccff !important;
text-decoration: underline;
}
/* 小さなテキストの可読性向上 */
small, .small {
color: #c0c0c0 !important;
}
/* 強調テキストの改善 */
strong, b {
color: #ffffff !important;
}
/* コードブロックの改善 */
code {
background-color: #333333 !important;
color: #e8e8e8 !important;
padding: 2px 4px;
border-radius: 3px;
}
pre {
background-color: #2a2a2a !important;
color: #e8e8e8 !important;
border: 1px solid #3a3a3a;
border-radius: 5px;
}
/* テーブルの改善 */
.table-dark {
background-color: #2a2a2a !important;
color: #e8e8e8 !important;
}
.table-dark td, .table-dark th {
border-color: #3a3a3a !important;
}
/* フォームコントロールの改善 */
.form-control {
background-color: #2a2a2a !important;
border-color: #3a3a3a !important;
color: #e8e8e8 !important;
}
.form-control:focus {
background-color: #333333 !important;
border-color: #4a90e2 !important;
color: #ffffff !important;
box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25) !important;
}
/* ハンバーガーメニューのスタイリング */
.navbar-toggler {
border: none !important;
color: #f0f0f0 !important;
background-color: transparent !important;
}
.navbar-toggler:focus {
box-shadow: none !important;
}
.navbar-toggler-icon {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28240, 240, 240, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
/* ナビゲーションメニューを常に折りたたみ状態にする */
.navbar-collapse {
display: none !important;
}
.navbar-collapse.show {
display: block !important;
}
/* モバイルメニューのスタイリング */
@media (max-width: 767px) {
.navbar-nav {
text-align: center;
padding: 1rem 0;
}
.nav-item {
margin: 0.5rem 0;
}
}
/* PC等でのハンバーガーメニュースタイリング */
@media (min-width: 768px) {
.navbar-collapse {
position: absolute;
top: 100%;
left: 0;
right: 0;
background-color: #2a2a2a;
border: 1px solid #3a3a3a;
border-radius: 0 0 10px 10px;
box-shadow: 0 4px 8px rgba(0,0,0,0.3);
z-index: 1000;
}
.navbar-nav {
padding: 1rem;
}
.nav-item {
margin: 0.25rem 0;
}
.nav-link {
padding: 0.75rem 1rem !important;
border-radius: 5px;
transition: background-color 0.3s ease;
color: #e8e8e8 !important;
}
.nav-link:hover {
background-color: #3a3a3a;
color: #ffffff !important;
}
}