質問編集履歴
1
実際のソースコードを追加しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -13,3 +13,637 @@
|
|
13
13
|
|
14
14
|
|
15
15
|
この認識が間違っているのか、調べてもよくわからなかったので質問させて頂きました。よろしくお願いいたします。
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
### 該当のソースコード
|
22
|
+
|
23
|
+
全て記載すると長くなってしまうので、一部を抜粋しています。
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
PC用スタイルシート
|
28
|
+
|
29
|
+
```ここに言語名を入力
|
30
|
+
|
31
|
+
*{
|
32
|
+
|
33
|
+
box-sizing: border-box;
|
34
|
+
|
35
|
+
line-height: 1.5;
|
36
|
+
|
37
|
+
list-style: none;
|
38
|
+
|
39
|
+
margin: 0;
|
40
|
+
|
41
|
+
padding: 0;
|
42
|
+
|
43
|
+
text-decoration: none;
|
44
|
+
|
45
|
+
}
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
html{
|
50
|
+
|
51
|
+
font-size: 62.5%;
|
52
|
+
|
53
|
+
scroll-behavior: smooth;
|
54
|
+
|
55
|
+
}
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
body{
|
60
|
+
|
61
|
+
background-color: #fafafa;
|
62
|
+
|
63
|
+
color: #050505;
|
64
|
+
|
65
|
+
font-family: sans-serif;
|
66
|
+
|
67
|
+
font-size: 1.8rem;
|
68
|
+
|
69
|
+
}
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
/*----------------------------------
|
74
|
+
|
75
|
+
共通のスタイル
|
76
|
+
|
77
|
+
----------------------------------*/
|
78
|
+
|
79
|
+
.sp{
|
80
|
+
|
81
|
+
display: none;
|
82
|
+
|
83
|
+
}
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
.pc{
|
88
|
+
|
89
|
+
display: block;
|
90
|
+
|
91
|
+
}
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
.flex{
|
96
|
+
|
97
|
+
display: -webkit-box;
|
98
|
+
|
99
|
+
display: -webkit-flex;
|
100
|
+
|
101
|
+
display: -ms-flexbox;
|
102
|
+
|
103
|
+
display: flex;
|
104
|
+
|
105
|
+
}
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
.align-items{
|
110
|
+
|
111
|
+
-webkit-box-align: center;
|
112
|
+
|
113
|
+
-ms-flex-align: center;
|
114
|
+
|
115
|
+
align-items: center;
|
116
|
+
|
117
|
+
}
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
.justify-content{
|
122
|
+
|
123
|
+
-webkit-box-pack: center;
|
124
|
+
|
125
|
+
-webkit-justify-content: center;
|
126
|
+
|
127
|
+
-ms-flex-pack: center;
|
128
|
+
|
129
|
+
justify-content: center;
|
130
|
+
|
131
|
+
}
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
/*----------------------------------
|
136
|
+
|
137
|
+
ヘッダー
|
138
|
+
|
139
|
+
----------------------------------*/
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
header{
|
144
|
+
|
145
|
+
background-color: rgba(250, 250, 250, 0.9);
|
146
|
+
|
147
|
+
color: #050505;
|
148
|
+
|
149
|
+
position: fixed;
|
150
|
+
|
151
|
+
top: 0;
|
152
|
+
|
153
|
+
left: 0;
|
154
|
+
|
155
|
+
width: 100%;
|
156
|
+
|
157
|
+
z-index: 1;
|
158
|
+
|
159
|
+
}
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
.btn_menu{
|
164
|
+
|
165
|
+
-webkit-box-pack: justify;
|
166
|
+
|
167
|
+
-ms-flex-pack: justify;
|
168
|
+
|
169
|
+
justify-content: space-between;
|
170
|
+
|
171
|
+
}
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
.btn_menu .box_logo{
|
176
|
+
|
177
|
+
margin-left: 2rem; /*20px*/
|
178
|
+
|
179
|
+
}
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
.logo_img{
|
184
|
+
|
185
|
+
vertical-align: bottom; /*画像下の余白を埋める*/
|
186
|
+
|
187
|
+
width: 100%;
|
188
|
+
|
189
|
+
height: auto;
|
190
|
+
|
191
|
+
}
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
.menu_space{
|
196
|
+
|
197
|
+
padding: 1.5rem 0; /*15px 0*/ /*0.8% 0*/
|
198
|
+
|
199
|
+
margin-right: 2rem; /*20px*/ /*1%*/
|
200
|
+
|
201
|
+
width: 20.8%; /*400px*/
|
202
|
+
|
203
|
+
min-width: 300px;
|
204
|
+
|
205
|
+
}
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
.menu_space ul{
|
210
|
+
|
211
|
+
width: 90%; /*360px*/
|
212
|
+
|
213
|
+
min-width: 260px;
|
214
|
+
|
215
|
+
}
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
.menu_space ul li{
|
220
|
+
|
221
|
+
width: 44.4%; /*160px*/ /*44.4%*/
|
222
|
+
|
223
|
+
min-width: 110px;
|
224
|
+
|
225
|
+
margin: 0 1rem; /*10px*/ /*0 2.3%*/
|
226
|
+
|
227
|
+
}
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
.btn_link{
|
232
|
+
|
233
|
+
display: inline-block;
|
234
|
+
|
235
|
+
background-color: #00bbff;
|
236
|
+
|
237
|
+
border-radius: 5px;
|
238
|
+
|
239
|
+
box-shadow: 2px 2px #000064;
|
240
|
+
|
241
|
+
color: #050505;
|
242
|
+
|
243
|
+
padding: 1.15rem 0; /*11.5px*/ /*7.2% 0*/
|
244
|
+
|
245
|
+
text-align: center;
|
246
|
+
|
247
|
+
width: 100%;
|
248
|
+
|
249
|
+
}
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
.btn_link:hover{
|
254
|
+
|
255
|
+
background-color: #4ccfff;
|
256
|
+
|
257
|
+
box-shadow: none;
|
258
|
+
|
259
|
+
color: #525252;
|
260
|
+
|
261
|
+
position: relative;
|
262
|
+
|
263
|
+
top: 4%; /*2px*/
|
264
|
+
|
265
|
+
left: 0.6%; /*2px*/
|
266
|
+
|
267
|
+
}
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
/*-------------------------------------
|
272
|
+
|
273
|
+
ハンバーガーメニュー
|
274
|
+
|
275
|
+
-------------------------------------*/
|
276
|
+
|
277
|
+
#nav-open {
|
278
|
+
|
279
|
+
display: inline-block;
|
280
|
+
|
281
|
+
width: 3rem; /*30px*/
|
282
|
+
|
283
|
+
padding-bottom: 2.8rem; /*28px*/
|
284
|
+
|
285
|
+
vertical-align: middle;
|
286
|
+
|
287
|
+
margin-left: 1rem; /*10px*/
|
288
|
+
|
289
|
+
z-index: 4;
|
290
|
+
|
291
|
+
cursor: pointer;
|
292
|
+
|
293
|
+
}
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
/*ハンバーガーアイコンをCSSで表現*/
|
298
|
+
|
299
|
+
#nav-open span, #nav-open span:before, #nav-open span:after {
|
300
|
+
|
301
|
+
position: absolute;
|
302
|
+
|
303
|
+
transition: all 0.4s;
|
304
|
+
|
305
|
+
padding-bottom: 0.4rem; /*線の太さ*/ /*4px*/
|
306
|
+
|
307
|
+
width: 3rem;/*長さ*/ /*30px*/
|
308
|
+
|
309
|
+
border-radius: 3px;
|
310
|
+
|
311
|
+
background: #050505;
|
312
|
+
|
313
|
+
display: block;
|
314
|
+
|
315
|
+
content: '';
|
316
|
+
|
317
|
+
cursor: pointer;
|
318
|
+
|
319
|
+
z-index: 5;/*最前面*/
|
320
|
+
|
321
|
+
}
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
#nav-open span:before {
|
326
|
+
|
327
|
+
top: 300%; /*12px*/
|
328
|
+
|
329
|
+
}
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
#nav-open span:after {
|
334
|
+
|
335
|
+
top: 600%; /*24px*/
|
336
|
+
|
337
|
+
}
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
/*クリック時に三本線を動かす*/
|
342
|
+
|
343
|
+
#nav-open.active span {
|
344
|
+
|
345
|
+
-webkit-transform: translateY(300%) rotate(-45deg); /*12px*/
|
346
|
+
|
347
|
+
transform: translateY(300%) rotate(-45deg);
|
348
|
+
|
349
|
+
}
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
#nav-open.active span:before {
|
354
|
+
|
355
|
+
-webkit-transform: translateY(-600%) rotate(45deg);/*打ち消す* /*-24px*/
|
356
|
+
|
357
|
+
transform: translateY(-600%) rotate(45deg);/*打ち消す*/
|
358
|
+
|
359
|
+
opacity: 0;
|
360
|
+
|
361
|
+
}
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
#nav-open.active span:after {
|
366
|
+
|
367
|
+
-webkit-transform: translateY(-600%) rotate(90deg); /*-24px*/
|
368
|
+
|
369
|
+
transform: translateY(-600%) rotate(90deg);
|
370
|
+
|
371
|
+
}
|
372
|
+
|
373
|
+
|
374
|
+
|
375
|
+
/*中身*/
|
376
|
+
|
377
|
+
#nav-content{
|
378
|
+
|
379
|
+
background-color: #00bbff;
|
380
|
+
|
381
|
+
color: #050505;
|
382
|
+
|
383
|
+
width: 32.6rem;/*最大幅*/ /*326px*/
|
384
|
+
|
385
|
+
overflow: auto;
|
386
|
+
|
387
|
+
padding: 0 2rem; /*20px*/
|
388
|
+
|
389
|
+
position: fixed;
|
390
|
+
|
391
|
+
top: 0;
|
392
|
+
|
393
|
+
right: -32.6rem; /*-32.6rem*/
|
394
|
+
|
395
|
+
-webkit-transition: .3s ease-in-out;/*滑らかに表示*/
|
396
|
+
|
397
|
+
transition: .3s ease-in-out;
|
398
|
+
|
399
|
+
}
|
400
|
+
|
401
|
+
|
402
|
+
|
403
|
+
#nav-content.open {
|
404
|
+
|
405
|
+
position: fixed;
|
406
|
+
|
407
|
+
right: 0;
|
408
|
+
|
409
|
+
top: 0;
|
410
|
+
|
411
|
+
z-index: 3;/*最前面に*/
|
412
|
+
|
413
|
+
}
|
414
|
+
|
415
|
+
|
416
|
+
|
417
|
+
.hamburger-top {
|
418
|
+
|
419
|
+
padding: 2rem 0; /*20px*/
|
420
|
+
|
421
|
+
}
|
422
|
+
|
423
|
+
|
424
|
+
|
425
|
+
#nav-content .menu_ttl{
|
426
|
+
|
427
|
+
border-bottom: 1px solid #050505;
|
428
|
+
|
429
|
+
font-size: 2.4rem;
|
430
|
+
|
431
|
+
margin-bottom: 2rem; /*20px*/
|
432
|
+
|
433
|
+
}
|
434
|
+
|
435
|
+
|
436
|
+
|
437
|
+
.link li{
|
438
|
+
|
439
|
+
text-indent: -1em;
|
440
|
+
|
441
|
+
position: relative;
|
442
|
+
|
443
|
+
left: 1em;
|
444
|
+
|
445
|
+
}
|
446
|
+
|
447
|
+
|
448
|
+
|
449
|
+
.link li:not(:last-of-type){
|
450
|
+
|
451
|
+
display: block;
|
452
|
+
|
453
|
+
margin: 2rem 0; /*20px 0*/
|
454
|
+
|
455
|
+
}
|
456
|
+
|
457
|
+
|
458
|
+
|
459
|
+
.link li:last-of-type{
|
460
|
+
|
461
|
+
margin-bottom: 4.15rem; /*41.5px*/
|
462
|
+
|
463
|
+
}
|
464
|
+
|
465
|
+
|
466
|
+
|
467
|
+
.link a{
|
468
|
+
|
469
|
+
background-color: #00bbff;
|
470
|
+
|
471
|
+
color: #050505;
|
472
|
+
|
473
|
+
}
|
474
|
+
|
475
|
+
|
476
|
+
|
477
|
+
.link li::before{
|
478
|
+
|
479
|
+
font-family: "Font Awesome 5 Free";
|
480
|
+
|
481
|
+
content: "\f0da";
|
482
|
+
|
483
|
+
font-weight: 900;
|
484
|
+
|
485
|
+
margin-right: 1rem; /*10px*/
|
486
|
+
|
487
|
+
}
|
488
|
+
|
489
|
+
|
490
|
+
|
491
|
+
#nav-content a:hover{
|
492
|
+
|
493
|
+
background-color: #00bbff;
|
494
|
+
|
495
|
+
color: #f0f0f0;
|
496
|
+
|
497
|
+
}
|
498
|
+
|
499
|
+
|
500
|
+
|
501
|
+
/*閉じる用の薄黒カバー*/
|
502
|
+
|
503
|
+
#nav-bg {
|
504
|
+
|
505
|
+
background-color: #9f9f9f;
|
506
|
+
|
507
|
+
color: #050505;
|
508
|
+
|
509
|
+
display: none;/*はじめは隠しておく*/
|
510
|
+
|
511
|
+
height: 100%;
|
512
|
+
|
513
|
+
left: 0;
|
514
|
+
|
515
|
+
opacity: 0;
|
516
|
+
|
517
|
+
position: fixed;
|
518
|
+
|
519
|
+
top: 0;/*全体に広がるように*/
|
520
|
+
|
521
|
+
-webkit-transition: .3s ease-in-out;
|
522
|
+
|
523
|
+
transition: .3s ease-in-out;
|
524
|
+
|
525
|
+
width: 100%;
|
526
|
+
|
527
|
+
z-index: 2;
|
528
|
+
|
529
|
+
}
|
530
|
+
|
531
|
+
|
532
|
+
|
533
|
+
#nav-bg.show{
|
534
|
+
|
535
|
+
display: block;
|
536
|
+
|
537
|
+
opacity: 0.5;
|
538
|
+
|
539
|
+
}
|
540
|
+
|
541
|
+
}
|
542
|
+
|
543
|
+
```
|
544
|
+
|
545
|
+
|
546
|
+
|
547
|
+
|
548
|
+
|
549
|
+
スマホ用スタイルシート
|
550
|
+
|
551
|
+
```
|
552
|
+
|
553
|
+
@media (max-width: 375px){
|
554
|
+
|
555
|
+
|
556
|
+
|
557
|
+
*{
|
558
|
+
|
559
|
+
line-height: 1.7;
|
560
|
+
|
561
|
+
}
|
562
|
+
|
563
|
+
|
564
|
+
|
565
|
+
html{
|
566
|
+
|
567
|
+
font-size: 55.6%;
|
568
|
+
|
569
|
+
}
|
570
|
+
|
571
|
+
|
572
|
+
|
573
|
+
/*----------------------------------
|
574
|
+
|
575
|
+
共通のスタイル
|
576
|
+
|
577
|
+
----------------------------------*/
|
578
|
+
|
579
|
+
|
580
|
+
|
581
|
+
.sp{
|
582
|
+
|
583
|
+
display: block;
|
584
|
+
|
585
|
+
}
|
586
|
+
|
587
|
+
|
588
|
+
|
589
|
+
.pc{
|
590
|
+
|
591
|
+
display: none;
|
592
|
+
|
593
|
+
}
|
594
|
+
|
595
|
+
|
596
|
+
|
597
|
+
.point_mainttl, .casualclass_ttl, .qa_ttl, .guide_ttl{
|
598
|
+
|
599
|
+
font-size: 2.444rem;
|
600
|
+
|
601
|
+
width:90%;
|
602
|
+
|
603
|
+
}
|
604
|
+
|
605
|
+
|
606
|
+
|
607
|
+
.point_ttl, .casualclass_ttl, .qa_ttl, .guide_ttl{
|
608
|
+
|
609
|
+
width: 90%;
|
610
|
+
|
611
|
+
margin:0 auto 40px auto;
|
612
|
+
|
613
|
+
}
|
614
|
+
|
615
|
+
/*----------------------------------
|
616
|
+
|
617
|
+
ヘッダー
|
618
|
+
|
619
|
+
----------------------------------*/
|
620
|
+
|
621
|
+
|
622
|
+
|
623
|
+
header{
|
624
|
+
|
625
|
+
position: fixed;
|
626
|
+
|
627
|
+
}
|
628
|
+
|
629
|
+
|
630
|
+
|
631
|
+
.btn_menu{
|
632
|
+
|
633
|
+
justify-content: flex-start;
|
634
|
+
|
635
|
+
}
|
636
|
+
|
637
|
+
|
638
|
+
|
639
|
+
.btn_menu .box_logo{
|
640
|
+
|
641
|
+
/* margin-left: 10px; */
|
642
|
+
|
643
|
+
|
644
|
+
|
645
|
+
}
|
646
|
+
|
647
|
+
}
|
648
|
+
|
649
|
+
```
|