質問編集履歴
5
内容の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,7 +24,7 @@
|
|
24
24
|
|
25
25
|
|
26
26
|
|
27
|
-
### 該当のソースコード
|
27
|
+
### 該当のソースコード
|
28
28
|
|
29
29
|
```HTML
|
30
30
|
|
4
内容の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
|
22
22
|
|
23
|
-
![![イメージ説明](82b1acb7581f03b46b0b6d108a07be13.png)
|
23
|
+
![![イメージ説明](82b1acb7581f03b46b0b6d108a07be13.png)
|
24
24
|
|
25
25
|
|
26
26
|
|
3
内容の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
|
22
22
|
|
23
|
-
![![イメージ説明](82b1acb7581f03b46b0b6d108a07be13.png)]
|
23
|
+
![![イメージ説明](82b1acb7581f03b46b0b6d108a07be13.png)]
|
24
24
|
|
25
25
|
|
26
26
|
|
2
内容の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,6 +20,10 @@
|
|
20
20
|
|
21
21
|
|
22
22
|
|
23
|
+
![![イメージ説明](82b1acb7581f03b46b0b6d108a07be13.png)](451d7ea39cd29875bd86d7e12107fe08.png)
|
24
|
+
|
25
|
+
|
26
|
+
|
23
27
|
### 該当のソースコード
|
24
28
|
|
25
29
|
```HTML
|
@@ -516,7 +520,7 @@
|
|
516
520
|
|
517
521
|
|
518
522
|
|
519
|
-
JavaScriptについては勉強不足なので、以下のサイトを参考にしてクラス名などを変更して記述してみたのですが
|
523
|
+
JavaScriptについては勉強不足なので、以下のサイトを参考にしてクラス名などを変更して記述してみたのですがそもそもの実装方法が自分のものと異なるため混乱してしまいました。
|
520
524
|
|
521
525
|
[リンク内容](https://flocafe.net/webdesign/humburgermenu/#toc12)
|
522
526
|
|
@@ -524,6 +528,28 @@
|
|
524
528
|
|
525
529
|
|
526
530
|
|
531
|
+
以下のように記述しましたが、そもそもクラスの付与を行って実装しているものではないので、見当違いのコードを記述をしていました。
|
532
|
+
|
533
|
+
この部分は参考にならないため無視していただいて構いません。
|
534
|
+
|
535
|
+
```JavaScript
|
536
|
+
|
537
|
+
var nav = $('.header-nav');
|
538
|
+
|
539
|
+
$('.close-content').click(function() {
|
540
|
+
|
541
|
+
if (nav.hasClass('open')) {
|
542
|
+
|
543
|
+
$('.header-nav').removeClass('open');
|
544
|
+
|
545
|
+
}
|
546
|
+
|
547
|
+
});
|
548
|
+
|
549
|
+
```
|
550
|
+
|
551
|
+
|
552
|
+
|
527
553
|
|
528
554
|
|
529
555
|
### 補足情報(FW/ツールのバージョンなど)
|
1
不要な部分の削除
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,510 +20,498 @@
|
|
20
20
|
|
21
21
|
|
22
22
|
|
23
|
-
###
|
23
|
+
### 該当のソースコード
|
24
|
+
|
24
|
-
|
25
|
+
```HTML
|
26
|
+
|
25
|
-
|
27
|
+
<head>
|
28
|
+
|
29
|
+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
|
30
|
+
|
31
|
+
<script type="text/javaScript" src="js/script.js"></script>
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
<title>FUKU茶屋</title>
|
36
|
+
|
37
|
+
</head>
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
<body class="full-page">
|
42
|
+
|
43
|
+
<!------------------
|
44
|
+
|
45
|
+
ヘッダー
|
46
|
+
|
47
|
+
------------------->
|
48
|
+
|
49
|
+
<header class="site-header">
|
50
|
+
|
51
|
+
<a href="#">
|
52
|
+
|
53
|
+
<img src="img/logo1-white.png" alt="店ロゴ1">
|
54
|
+
|
55
|
+
</a>
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
<!-- ハンバーガーメニューボタン -->
|
60
|
+
|
61
|
+
<div class="hamburger-menu">
|
62
|
+
|
63
|
+
<input id="menu-btn-check" type="checkbox">
|
64
|
+
|
65
|
+
<label class="menu-btn" for="menu-btn-check">
|
66
|
+
|
67
|
+
<span></span>
|
68
|
+
|
69
|
+
</label>
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
<!-- ナビゲーションリスト -->
|
74
|
+
|
75
|
+
<nav class="header-nav">
|
76
|
+
|
77
|
+
<ul class="nav-list">
|
78
|
+
|
79
|
+
<li class="nav-item">
|
80
|
+
|
81
|
+
<a class="nav-item__link" href="#about-cafe"><span>FUKU茶屋について</span></a>
|
82
|
+
|
83
|
+
</li>
|
84
|
+
|
85
|
+
<li class="nav-item">
|
86
|
+
|
87
|
+
<a class="nav-item__link" href="#cafe-address"><span>店舗情報</span></a>
|
88
|
+
|
89
|
+
</li>
|
90
|
+
|
91
|
+
<li class="nav-item">
|
92
|
+
|
93
|
+
<a class="nav-item__link" href="#price"><span>料金</span></a>
|
94
|
+
|
95
|
+
</li>
|
96
|
+
|
97
|
+
<li class="nav-item">
|
98
|
+
|
99
|
+
<a class="nav-item__link" href="#"><span>フクロウの紹介</span></a>
|
100
|
+
|
101
|
+
</li>
|
102
|
+
|
103
|
+
<li class="nav-item">
|
104
|
+
|
105
|
+
<a class="nav-item__link" href="#"><span>お問い合わせ</span></a>
|
106
|
+
|
107
|
+
</li>
|
108
|
+
|
109
|
+
</ul>
|
110
|
+
|
111
|
+
</nav>
|
112
|
+
|
113
|
+
</div>
|
114
|
+
|
115
|
+
</header>
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
<!-- ハンバーガーメニュー領域外をクリックして閉じる-->
|
120
|
+
|
121
|
+
<div class="close-content"></div>
|
26
122
|
|
27
123
|
```
|
28
124
|
|
125
|
+
|
126
|
+
|
127
|
+
```CSS
|
128
|
+
|
129
|
+
@charset "utf-8";
|
130
|
+
|
131
|
+
* {
|
132
|
+
|
133
|
+
margin: 0;
|
134
|
+
|
135
|
+
padding: 0;
|
136
|
+
|
137
|
+
box-sizing: border-box;
|
138
|
+
|
139
|
+
font-family: 'Rounded M+ 1p regular', 'Rounded M+ 1p', 'Rounded M+ 1p medium', 'Rounded M+ 1p bold';
|
140
|
+
|
141
|
+
}
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
html {
|
146
|
+
|
147
|
+
scroll-behavior: smooth;
|
148
|
+
|
149
|
+
}
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
a {
|
154
|
+
|
155
|
+
text-decoration: none;
|
156
|
+
|
157
|
+
}
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
body {
|
162
|
+
|
163
|
+
background-color: #FFF5E2;
|
164
|
+
|
165
|
+
}
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
h1 {
|
170
|
+
|
171
|
+
font-family: m-plus-rounded-1p, sans-serif;
|
172
|
+
|
173
|
+
font-weight: 500;
|
174
|
+
|
175
|
+
font-style: normal;
|
176
|
+
|
177
|
+
border-bottom: 1px solid #4D362B;
|
178
|
+
|
179
|
+
font-size: 1.5em;
|
180
|
+
|
181
|
+
margin-bottom: 10px;
|
182
|
+
|
183
|
+
}
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
li {
|
188
|
+
|
189
|
+
list-style: none;
|
190
|
+
|
191
|
+
}
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
a,
|
196
|
+
|
197
|
+
p {
|
198
|
+
|
199
|
+
font-family: m-plus-rounded-1p, sans-serif;
|
200
|
+
|
201
|
+
font-weight: 400;
|
202
|
+
|
203
|
+
font-style: normal;
|
204
|
+
|
205
|
+
font-size: 1em;
|
206
|
+
|
207
|
+
}
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
.site-main {
|
212
|
+
|
213
|
+
margin: 0, 20px;
|
214
|
+
|
215
|
+
}
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
/*————————————————
|
222
|
+
|
223
|
+
ヘッダー
|
224
|
+
|
225
|
+
————————————————*/
|
226
|
+
|
227
|
+
.site-header {
|
228
|
+
|
229
|
+
width: 100%;
|
230
|
+
|
231
|
+
height: 60px;
|
232
|
+
|
233
|
+
background-color: #654A3C;
|
234
|
+
|
235
|
+
display: flex;
|
236
|
+
|
237
|
+
align-items: center;
|
238
|
+
|
239
|
+
position: fixed;
|
240
|
+
|
241
|
+
top: 0;
|
242
|
+
|
243
|
+
left: 0;
|
244
|
+
|
245
|
+
z-index: 10;
|
246
|
+
|
247
|
+
}
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
.site-header a {
|
252
|
+
|
253
|
+
display: flex;
|
254
|
+
|
255
|
+
align-items: center;
|
256
|
+
|
257
|
+
width: 190px;
|
258
|
+
|
259
|
+
height: 60px;
|
260
|
+
|
261
|
+
margin-left: 10px;
|
262
|
+
|
263
|
+
z-index: 30;
|
264
|
+
|
265
|
+
}
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
.site-header img {
|
270
|
+
|
271
|
+
width: 100%;
|
272
|
+
|
273
|
+
}
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
/*————————————————
|
280
|
+
|
29
|
-
|
281
|
+
ハンバーガーメニューの装飾
|
282
|
+
|
283
|
+
————————————————*/
|
284
|
+
|
285
|
+
#menu-btn-check {
|
286
|
+
|
287
|
+
display: none;
|
288
|
+
|
289
|
+
}
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
.menu-btn {
|
294
|
+
|
295
|
+
position: fixed;
|
296
|
+
|
297
|
+
top: 7px;
|
298
|
+
|
299
|
+
right: 10px;
|
300
|
+
|
301
|
+
display: flex;
|
302
|
+
|
303
|
+
height: 46px;
|
304
|
+
|
305
|
+
width: 46px;
|
306
|
+
|
307
|
+
justify-content: center;
|
308
|
+
|
309
|
+
align-items: center;
|
310
|
+
|
311
|
+
z-index: 30;
|
312
|
+
|
313
|
+
border: 2px solid white;
|
314
|
+
|
315
|
+
border-radius: 8px;
|
316
|
+
|
317
|
+
}
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
.menu-btn span,
|
322
|
+
|
323
|
+
.menu-btn span:before,
|
324
|
+
|
325
|
+
.menu-btn span:after {
|
326
|
+
|
327
|
+
content: '';
|
328
|
+
|
329
|
+
display: block;
|
330
|
+
|
331
|
+
height: 2px;
|
332
|
+
|
333
|
+
width: 25px;
|
334
|
+
|
335
|
+
border-radius: 2px;
|
336
|
+
|
337
|
+
background-color: #ffffff;
|
338
|
+
|
339
|
+
position: absolute;
|
340
|
+
|
341
|
+
}
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
.menu-btn span:before {
|
346
|
+
|
347
|
+
bottom: 8px;
|
348
|
+
|
349
|
+
}
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
.menu-btn span:after {
|
354
|
+
|
355
|
+
top: 8px;
|
356
|
+
|
357
|
+
}
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
#menu-btn-check:checked~.menu-btn span {
|
362
|
+
|
363
|
+
background-color: rgba(255, 255, 255, 0);
|
364
|
+
|
365
|
+
}
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
#menu-btn-check:checked~.menu-btn span::before {
|
370
|
+
|
371
|
+
bottom: 0;
|
372
|
+
|
373
|
+
transform: rotate(45deg);
|
374
|
+
|
375
|
+
}
|
376
|
+
|
377
|
+
|
378
|
+
|
379
|
+
#menu-btn-check:checked~.menu-btn span::after {
|
380
|
+
|
381
|
+
top: 0;
|
382
|
+
|
383
|
+
transform: rotate(-45deg);
|
384
|
+
|
385
|
+
}
|
386
|
+
|
387
|
+
|
388
|
+
|
389
|
+
#menu-btn-check:checked~.header-nav {
|
390
|
+
|
391
|
+
left: 0;
|
392
|
+
|
393
|
+
}
|
394
|
+
|
395
|
+
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
/*————————————————
|
400
|
+
|
401
|
+
ナビゲーション(SP)
|
402
|
+
|
403
|
+
————————————————*/
|
404
|
+
|
405
|
+
.header-nav {
|
406
|
+
|
407
|
+
width: 100%;
|
408
|
+
|
409
|
+
height: auto;
|
410
|
+
|
411
|
+
position: fixed;
|
412
|
+
|
413
|
+
top: 0;
|
414
|
+
|
415
|
+
left: 100%;
|
416
|
+
|
417
|
+
z-index: 20;
|
418
|
+
|
419
|
+
background-color: #654A3C;
|
420
|
+
|
421
|
+
text-align: center;
|
422
|
+
|
423
|
+
transition: all 0.3s;
|
424
|
+
|
425
|
+
}
|
426
|
+
|
427
|
+
|
428
|
+
|
429
|
+
.header-nav ul li a {
|
430
|
+
|
431
|
+
display: block;
|
432
|
+
|
433
|
+
width: 100%;
|
434
|
+
|
435
|
+
font-size: 15px;
|
436
|
+
|
437
|
+
box-sizing: border-box;
|
438
|
+
|
439
|
+
color: #ffffff;
|
440
|
+
|
441
|
+
text-decoration: none;
|
442
|
+
|
443
|
+
padding: 15px;
|
444
|
+
|
445
|
+
position: relative;
|
446
|
+
|
447
|
+
}
|
448
|
+
|
449
|
+
|
450
|
+
|
451
|
+
.header-nav ul li a::before {
|
452
|
+
|
453
|
+
content: "";
|
454
|
+
|
455
|
+
width: 7px;
|
456
|
+
|
457
|
+
height: 7px;
|
458
|
+
|
459
|
+
border-top: solid 2px #ffffff;
|
460
|
+
|
461
|
+
border-right: solid 2px #ffffff;
|
462
|
+
|
463
|
+
transform: rotate(45deg);
|
464
|
+
|
465
|
+
position: absolute;
|
466
|
+
|
467
|
+
right: 11px;
|
468
|
+
|
469
|
+
top: 16px;
|
470
|
+
|
471
|
+
}
|
472
|
+
|
473
|
+
|
474
|
+
|
475
|
+
/*ナビゲーション 領域外の装飾*/
|
476
|
+
|
477
|
+
|
478
|
+
|
479
|
+
.close-content {
|
480
|
+
|
481
|
+
width: 100%;
|
482
|
+
|
483
|
+
}
|
484
|
+
|
485
|
+
|
486
|
+
|
487
|
+
|
30
488
|
|
31
489
|
```
|
32
490
|
|
33
491
|
|
34
492
|
|
35
|
-
### 該当のソースコード
|
36
|
-
|
37
|
-
```HTML
|
38
|
-
|
39
|
-
|
493
|
+
```JavaScript
|
40
|
-
|
41
|
-
|
494
|
+
|
42
|
-
|
43
|
-
<script type="text/javaScript" src="js/script.js"></script>
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
<title>FUKU茶屋</title>
|
48
|
-
|
49
|
-
</head>
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
<body class="full-page">
|
54
|
-
|
55
|
-
<!------------------
|
56
|
-
|
57
|
-
ヘッダー
|
58
|
-
|
59
|
-
------------------->
|
60
|
-
|
61
|
-
<header class="site-header">
|
62
|
-
|
63
|
-
<a href="#">
|
64
|
-
|
65
|
-
<img src="img/logo1-white.png" alt="店ロゴ1">
|
66
|
-
|
67
|
-
</a>
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
495
|
+
// ハンバーガーメニューを閉じる
|
496
|
+
|
72
|
-
|
497
|
+
$(function() {
|
498
|
+
|
73
|
-
|
499
|
+
$('.nav-list a').on('click', function(event) {
|
74
|
-
|
500
|
+
|
75
|
-
|
501
|
+
$('#menu-btn-check').prop('checked', false);
|
76
|
-
|
77
|
-
|
502
|
+
|
78
|
-
|
79
|
-
<span></span>
|
80
|
-
|
81
|
-
</label>
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
<!-- ナビゲーションリスト -->
|
86
|
-
|
87
|
-
<nav class="header-nav">
|
88
|
-
|
89
|
-
<ul class="nav-list">
|
90
|
-
|
91
|
-
<li class="nav-item">
|
92
|
-
|
93
|
-
<a class="nav-item__link" href="#about-cafe"><span>FUKU茶屋について</span></a>
|
94
|
-
|
95
|
-
|
503
|
+
});
|
96
|
-
|
97
|
-
|
504
|
+
|
98
|
-
|
99
|
-
<a class="nav-item__link" href="#cafe-address"><span>店舗情報</span></a>
|
100
|
-
|
101
|
-
|
505
|
+
});
|
102
|
-
|
103
|
-
|
506
|
+
|
104
|
-
|
105
|
-
|
507
|
+
|
106
|
-
|
107
|
-
|
508
|
+
|
108
|
-
|
109
|
-
<li class="nav-item">
|
110
|
-
|
111
|
-
<a class="nav-item__link" href="#"><span>フクロウの紹介</span></a>
|
112
|
-
|
113
|
-
</li>
|
114
|
-
|
115
|
-
<li class="nav-item">
|
116
|
-
|
117
|
-
<a class="nav-item__link" href="#"><span>お問い合わせ</span></a>
|
118
|
-
|
119
|
-
</li>
|
120
|
-
|
121
|
-
</ul>
|
122
|
-
|
123
|
-
</nav>
|
124
|
-
|
125
|
-
</div>
|
126
|
-
|
127
|
-
</header>
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
509
|
+
// ハンバーガーメニュー領域外をクリックで閉じる
|
132
|
-
|
133
|
-
|
510
|
+
|
511
|
+
|
134
512
|
|
135
513
|
```
|
136
514
|
|
137
|
-
|
138
|
-
|
139
|
-
```CSS
|
140
|
-
|
141
|
-
@charset "utf-8";
|
142
|
-
|
143
|
-
* {
|
144
|
-
|
145
|
-
margin: 0;
|
146
|
-
|
147
|
-
padding: 0;
|
148
|
-
|
149
|
-
box-sizing: border-box;
|
150
|
-
|
151
|
-
font-family: 'Rounded M+ 1p regular', 'Rounded M+ 1p', 'Rounded M+ 1p medium', 'Rounded M+ 1p bold';
|
152
|
-
|
153
|
-
}
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
html {
|
158
|
-
|
159
|
-
scroll-behavior: smooth;
|
160
|
-
|
161
|
-
}
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
a {
|
166
|
-
|
167
|
-
text-decoration: none;
|
168
|
-
|
169
|
-
}
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
body {
|
174
|
-
|
175
|
-
background-color: #FFF5E2;
|
176
|
-
|
177
|
-
}
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
h1 {
|
182
|
-
|
183
|
-
font-family: m-plus-rounded-1p, sans-serif;
|
184
|
-
|
185
|
-
font-weight: 500;
|
186
|
-
|
187
|
-
font-style: normal;
|
188
|
-
|
189
|
-
border-bottom: 1px solid #4D362B;
|
190
|
-
|
191
|
-
font-size: 1.5em;
|
192
|
-
|
193
|
-
margin-bottom: 10px;
|
194
|
-
|
195
|
-
}
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
li {
|
200
|
-
|
201
|
-
list-style: none;
|
202
|
-
|
203
|
-
}
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
a,
|
208
|
-
|
209
|
-
p {
|
210
|
-
|
211
|
-
font-family: m-plus-rounded-1p, sans-serif;
|
212
|
-
|
213
|
-
font-weight: 400;
|
214
|
-
|
215
|
-
font-style: normal;
|
216
|
-
|
217
|
-
font-size: 1em;
|
218
|
-
|
219
|
-
}
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
.site-main {
|
224
|
-
|
225
|
-
margin: 0, 20px;
|
226
|
-
|
227
|
-
}
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
/*————————————————
|
234
|
-
|
235
|
-
ヘッダー
|
236
|
-
|
237
|
-
————————————————*/
|
238
|
-
|
239
|
-
.site-header {
|
240
|
-
|
241
|
-
width: 100%;
|
242
|
-
|
243
|
-
height: 60px;
|
244
|
-
|
245
|
-
background-color: #654A3C;
|
246
|
-
|
247
|
-
display: flex;
|
248
|
-
|
249
|
-
align-items: center;
|
250
|
-
|
251
|
-
position: fixed;
|
252
|
-
|
253
|
-
top: 0;
|
254
|
-
|
255
|
-
left: 0;
|
256
|
-
|
257
|
-
z-index: 10;
|
258
|
-
|
259
|
-
}
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
.site-header a {
|
264
|
-
|
265
|
-
display: flex;
|
266
|
-
|
267
|
-
align-items: center;
|
268
|
-
|
269
|
-
width: 190px;
|
270
|
-
|
271
|
-
height: 60px;
|
272
|
-
|
273
|
-
margin-left: 10px;
|
274
|
-
|
275
|
-
z-index: 30;
|
276
|
-
|
277
|
-
}
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
.site-header img {
|
282
|
-
|
283
|
-
width: 100%;
|
284
|
-
|
285
|
-
}
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
/*————————————————
|
292
|
-
|
293
|
-
ハンバーガーメニューの装飾
|
294
|
-
|
295
|
-
————————————————*/
|
296
|
-
|
297
|
-
#menu-btn-check {
|
298
|
-
|
299
|
-
display: none;
|
300
|
-
|
301
|
-
}
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
.menu-btn {
|
306
|
-
|
307
|
-
position: fixed;
|
308
|
-
|
309
|
-
top: 7px;
|
310
|
-
|
311
|
-
right: 10px;
|
312
|
-
|
313
|
-
display: flex;
|
314
|
-
|
315
|
-
height: 46px;
|
316
|
-
|
317
|
-
width: 46px;
|
318
|
-
|
319
|
-
justify-content: center;
|
320
|
-
|
321
|
-
align-items: center;
|
322
|
-
|
323
|
-
z-index: 30;
|
324
|
-
|
325
|
-
border: 2px solid white;
|
326
|
-
|
327
|
-
border-radius: 8px;
|
328
|
-
|
329
|
-
}
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
.menu-btn span,
|
334
|
-
|
335
|
-
.menu-btn span:before,
|
336
|
-
|
337
|
-
.menu-btn span:after {
|
338
|
-
|
339
|
-
content: '';
|
340
|
-
|
341
|
-
display: block;
|
342
|
-
|
343
|
-
height: 2px;
|
344
|
-
|
345
|
-
width: 25px;
|
346
|
-
|
347
|
-
border-radius: 2px;
|
348
|
-
|
349
|
-
background-color: #ffffff;
|
350
|
-
|
351
|
-
position: absolute;
|
352
|
-
|
353
|
-
}
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
.menu-btn span:before {
|
358
|
-
|
359
|
-
bottom: 8px;
|
360
|
-
|
361
|
-
}
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
.menu-btn span:after {
|
366
|
-
|
367
|
-
top: 8px;
|
368
|
-
|
369
|
-
}
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
#menu-btn-check:checked~.menu-btn span {
|
374
|
-
|
375
|
-
background-color: rgba(255, 255, 255, 0);
|
376
|
-
|
377
|
-
}
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
#menu-btn-check:checked~.menu-btn span::before {
|
382
|
-
|
383
|
-
bottom: 0;
|
384
|
-
|
385
|
-
transform: rotate(45deg);
|
386
|
-
|
387
|
-
}
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
#menu-btn-check:checked~.menu-btn span::after {
|
392
|
-
|
393
|
-
top: 0;
|
394
|
-
|
395
|
-
transform: rotate(-45deg);
|
396
|
-
|
397
|
-
}
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
#menu-btn-check:checked~.header-nav {
|
402
|
-
|
403
|
-
left: 0;
|
404
|
-
|
405
|
-
}
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
/*————————————————
|
412
|
-
|
413
|
-
ナビゲーション(SP)
|
414
|
-
|
415
|
-
————————————————*/
|
416
|
-
|
417
|
-
.header-nav {
|
418
|
-
|
419
|
-
width: 100%;
|
420
|
-
|
421
|
-
height: auto;
|
422
|
-
|
423
|
-
position: fixed;
|
424
|
-
|
425
|
-
top: 0;
|
426
|
-
|
427
|
-
left: 100%;
|
428
|
-
|
429
|
-
z-index: 20;
|
430
|
-
|
431
|
-
background-color: #654A3C;
|
432
|
-
|
433
|
-
text-align: center;
|
434
|
-
|
435
|
-
transition: all 0.3s;
|
436
|
-
|
437
|
-
}
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
.header-nav ul li a {
|
442
|
-
|
443
|
-
display: block;
|
444
|
-
|
445
|
-
width: 100%;
|
446
|
-
|
447
|
-
font-size: 15px;
|
448
|
-
|
449
|
-
box-sizing: border-box;
|
450
|
-
|
451
|
-
color: #ffffff;
|
452
|
-
|
453
|
-
text-decoration: none;
|
454
|
-
|
455
|
-
padding: 15px;
|
456
|
-
|
457
|
-
position: relative;
|
458
|
-
|
459
|
-
}
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
.header-nav ul li a::before {
|
464
|
-
|
465
|
-
content: "";
|
466
|
-
|
467
|
-
width: 7px;
|
468
|
-
|
469
|
-
height: 7px;
|
470
|
-
|
471
|
-
border-top: solid 2px #ffffff;
|
472
|
-
|
473
|
-
border-right: solid 2px #ffffff;
|
474
|
-
|
475
|
-
transform: rotate(45deg);
|
476
|
-
|
477
|
-
position: absolute;
|
478
|
-
|
479
|
-
right: 11px;
|
480
|
-
|
481
|
-
top: 16px;
|
482
|
-
|
483
|
-
}
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
/*ナビゲーション 領域外の装飾*/
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
.close-content {
|
492
|
-
|
493
|
-
width: 100%;
|
494
|
-
|
495
|
-
}
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
```
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
```JavaScript
|
506
|
-
|
507
|
-
// ハンバーガーメニューを閉じる
|
508
|
-
|
509
|
-
$(function() {
|
510
|
-
|
511
|
-
$('.nav-list a').on('click', function(event) {
|
512
|
-
|
513
|
-
$('#menu-btn-check').prop('checked', false);
|
514
|
-
|
515
|
-
});
|
516
|
-
|
517
|
-
});
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
// ハンバーガーメニュー領域外をクリックで閉じる
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
```
|
526
|
-
|
527
515
|
### 試したこと
|
528
516
|
|
529
517
|
|