質問編集履歴
1
誤字です
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
bodyの幅が
|
1
|
+
bodyの幅が狭すぎます(模写コーディング)
|
test
CHANGED
@@ -12,6 +12,8 @@
|
|
12
12
|
|
13
13
|
|
14
14
|
|
15
|
+
|
16
|
+
|
15
17
|
```ここに言語を入力
|
16
18
|
|
17
19
|
<!DOCTYPE html>
|
@@ -20,26 +22,6 @@
|
|
20
22
|
|
21
23
|
<head>
|
22
24
|
|
23
|
-
<meta charset="UTF-8">
|
24
|
-
|
25
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
26
|
-
|
27
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
28
|
-
|
29
|
-
<meta name="description" content="">
|
30
|
-
|
31
|
-
<title>Document</title>
|
32
|
-
|
33
|
-
<link rel="stylesheet" href="sanitize.css">
|
34
|
-
|
35
|
-
<link rel="stylesheet" type="text/css" href="style.css">
|
36
|
-
|
37
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
|
38
|
-
|
39
|
-
<script src="https://kit.fontawesome.com/faf3ade458.js" crossorigin="anonymous"></script>
|
40
|
-
|
41
|
-
<script type="text/javascript" src="write.js"></script>
|
42
|
-
|
43
25
|
|
44
26
|
|
45
27
|
</head>
|
@@ -121,3 +103,525 @@
|
|
121
103
|
</header>
|
122
104
|
|
123
105
|
</div>
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
<!-- top -->
|
110
|
+
|
111
|
+
<div class="container">
|
112
|
+
|
113
|
+
<div class="top">
|
114
|
+
|
115
|
+
<div class="top-img">
|
116
|
+
|
117
|
+
<img src="img/cropped-nicole-honeywill-730102-unsplash.jpg" alt="">
|
118
|
+
|
119
|
+
</div>
|
120
|
+
|
121
|
+
</div>
|
122
|
+
|
123
|
+
</div>
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
</body>
|
134
|
+
|
135
|
+
</html>
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
* {
|
140
|
+
|
141
|
+
box-sizing: border-box;
|
142
|
+
|
143
|
+
}
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
h1, h2, h3, h4, h5, p, ul, li{
|
148
|
+
|
149
|
+
padding: 0;
|
150
|
+
|
151
|
+
margin: 0;
|
152
|
+
|
153
|
+
}
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
li{
|
158
|
+
|
159
|
+
list-style: none;
|
160
|
+
|
161
|
+
}
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
a{
|
166
|
+
|
167
|
+
text-decoration: none;
|
168
|
+
|
169
|
+
}
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
body{
|
178
|
+
|
179
|
+
font-family: Georgia, '游明朝', 'YuMincho', 'Hiragino Mincho ProN', 'Meiryo', serif;
|
180
|
+
|
181
|
+
line-height: 1.8;
|
182
|
+
|
183
|
+
margin: 60px 40px;
|
184
|
+
|
185
|
+
padding: 0 60px;
|
186
|
+
|
187
|
+
}
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
.black{
|
192
|
+
|
193
|
+
color: #111;
|
194
|
+
|
195
|
+
}
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
.container{
|
200
|
+
|
201
|
+
width: 1035px;
|
202
|
+
|
203
|
+
margin: 0 auto;
|
204
|
+
|
205
|
+
}
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
.header-flex{
|
210
|
+
|
211
|
+
display: flex;
|
212
|
+
|
213
|
+
justify-content: space-between;
|
214
|
+
|
215
|
+
align-items: flex-end;
|
216
|
+
|
217
|
+
margin-bottom: 3.5rem;
|
218
|
+
|
219
|
+
}
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
.header-left p{
|
224
|
+
|
225
|
+
font-size: .9rem;
|
226
|
+
|
227
|
+
}
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
.header-nav ul{
|
232
|
+
|
233
|
+
display: flex;
|
234
|
+
|
235
|
+
}
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
.header-nav ul li{
|
240
|
+
|
241
|
+
padding-right: 1.5rem;
|
242
|
+
|
243
|
+
}
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
.header-nav ul li a{
|
248
|
+
|
249
|
+
font-size: .9rem;
|
250
|
+
|
251
|
+
}
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
.header-nav ul li a:hover{
|
256
|
+
|
257
|
+
color: #c49029;
|
258
|
+
|
259
|
+
}
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
.menu {
|
266
|
+
|
267
|
+
position: relative;
|
268
|
+
|
269
|
+
width: 100%;
|
270
|
+
|
271
|
+
height: 50px;
|
272
|
+
|
273
|
+
max-width: 1000px;
|
274
|
+
|
275
|
+
margin: 0 auto;
|
276
|
+
|
277
|
+
}
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
.menu > li {
|
282
|
+
|
283
|
+
float: left;
|
284
|
+
|
285
|
+
width: 25%; /* グローバルナビ4つの場合 */
|
286
|
+
|
287
|
+
height: 50px;
|
288
|
+
|
289
|
+
line-height: 50px;
|
290
|
+
|
291
|
+
background: rgb(29, 33, 19);
|
292
|
+
|
293
|
+
}
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
.menu > li a {
|
298
|
+
|
299
|
+
display: block;
|
300
|
+
|
301
|
+
color: #fff;
|
302
|
+
|
303
|
+
}
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
.menu > li a:hover {
|
308
|
+
|
309
|
+
color: #999;
|
310
|
+
|
311
|
+
}
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
ul.menu__second-level {
|
316
|
+
|
317
|
+
visibility: hidden;
|
318
|
+
|
319
|
+
opacity: 0;
|
320
|
+
|
321
|
+
z-index: 1;
|
322
|
+
|
323
|
+
}
|
324
|
+
|
325
|
+
|
326
|
+
|
327
|
+
ul.menu__third-level {
|
328
|
+
|
329
|
+
visibility: hidden;
|
330
|
+
|
331
|
+
opacity: 0;
|
332
|
+
|
333
|
+
}
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
ul.menu__fourth-level {
|
338
|
+
|
339
|
+
visibility: hidden;
|
340
|
+
|
341
|
+
opacity: 0;
|
342
|
+
|
343
|
+
}
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
.menu > li:hover {
|
348
|
+
|
349
|
+
background: #072A24;
|
350
|
+
|
351
|
+
-webkit-transition: all .5s;
|
352
|
+
|
353
|
+
transition: all .5s;
|
354
|
+
|
355
|
+
}
|
356
|
+
|
357
|
+
|
358
|
+
|
359
|
+
.menu__second-level li {
|
360
|
+
|
361
|
+
border-top: 1px solid #111;
|
362
|
+
|
363
|
+
}
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
.menu__third-level li {
|
368
|
+
|
369
|
+
border-top: 1px solid #111;
|
370
|
+
|
371
|
+
}
|
372
|
+
|
373
|
+
|
374
|
+
|
375
|
+
.menu__second-level li a:hover {
|
376
|
+
|
377
|
+
background: #111;
|
378
|
+
|
379
|
+
}
|
380
|
+
|
381
|
+
|
382
|
+
|
383
|
+
.menu__third-level li a:hover {
|
384
|
+
|
385
|
+
background: #2a1f1f;
|
386
|
+
|
387
|
+
}
|
388
|
+
|
389
|
+
|
390
|
+
|
391
|
+
.menu__fourth-level li a:hover {
|
392
|
+
|
393
|
+
background: #1d0f0f;
|
394
|
+
|
395
|
+
}
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
/* 下矢印 */
|
400
|
+
|
401
|
+
.init-bottom:after {
|
402
|
+
|
403
|
+
content: '';
|
404
|
+
|
405
|
+
display: inline-block;
|
406
|
+
|
407
|
+
width: 6px;
|
408
|
+
|
409
|
+
height: 6px;
|
410
|
+
|
411
|
+
margin: 0 0 0 15px;
|
412
|
+
|
413
|
+
border-right: 1px solid #fff;
|
414
|
+
|
415
|
+
border-bottom: 1px solid #fff;
|
416
|
+
|
417
|
+
-webkit-transform: rotate(45deg);
|
418
|
+
|
419
|
+
-ms-transform: rotate(45deg);
|
420
|
+
|
421
|
+
transform: rotate(45deg);
|
422
|
+
|
423
|
+
}
|
424
|
+
|
425
|
+
|
426
|
+
|
427
|
+
/* floatクリア */
|
428
|
+
|
429
|
+
.menu:before,
|
430
|
+
|
431
|
+
.menu:after {
|
432
|
+
|
433
|
+
content: " ";
|
434
|
+
|
435
|
+
display: table;
|
436
|
+
|
437
|
+
}
|
438
|
+
|
439
|
+
|
440
|
+
|
441
|
+
.menu:after {
|
442
|
+
|
443
|
+
clear: both;
|
444
|
+
|
445
|
+
}
|
446
|
+
|
447
|
+
|
448
|
+
|
449
|
+
.menu {
|
450
|
+
|
451
|
+
*zoom: 1;
|
452
|
+
|
453
|
+
}
|
454
|
+
|
455
|
+
|
456
|
+
|
457
|
+
.menu > li.menu__single {
|
458
|
+
|
459
|
+
position: relative;
|
460
|
+
|
461
|
+
}
|
462
|
+
|
463
|
+
|
464
|
+
|
465
|
+
li.menu__single ul.menu__second-level {
|
466
|
+
|
467
|
+
position: absolute;
|
468
|
+
|
469
|
+
top: 40px;
|
470
|
+
|
471
|
+
width: 100%;
|
472
|
+
|
473
|
+
background: #072A24;
|
474
|
+
|
475
|
+
-webkit-transition: all .2s ease;
|
476
|
+
|
477
|
+
transition: all .2s ease;
|
478
|
+
|
479
|
+
}
|
480
|
+
|
481
|
+
|
482
|
+
|
483
|
+
li.menu__single:hover ul.menu__second-level {
|
484
|
+
|
485
|
+
top: 50px;
|
486
|
+
|
487
|
+
visibility: visible;
|
488
|
+
|
489
|
+
opacity: 1;
|
490
|
+
|
491
|
+
}
|
492
|
+
|
493
|
+
|
494
|
+
|
495
|
+
|
496
|
+
|
497
|
+
/* 検索ボタンcss */
|
498
|
+
|
499
|
+
.icon-search-container {
|
500
|
+
|
501
|
+
display: inline-block;
|
502
|
+
|
503
|
+
height: 20px;
|
504
|
+
|
505
|
+
width: 20px;
|
506
|
+
|
507
|
+
position: relative;
|
508
|
+
|
509
|
+
transition: width 0.2s ease-out;
|
510
|
+
|
511
|
+
backface-visibility: hidden;
|
512
|
+
|
513
|
+
line-height: 15px;
|
514
|
+
|
515
|
+
}
|
516
|
+
|
517
|
+
.icon-search-container.active {
|
518
|
+
|
519
|
+
width: 285px;
|
520
|
+
|
521
|
+
border: 1px solid #000;
|
522
|
+
|
523
|
+
}
|
524
|
+
|
525
|
+
|
526
|
+
|
527
|
+
.icon-search-container.active .fa-times-circle {
|
528
|
+
|
529
|
+
opacity: 1;
|
530
|
+
|
531
|
+
}
|
532
|
+
|
533
|
+
.icon-search-container.active .search-input {
|
534
|
+
|
535
|
+
width: 200px;
|
536
|
+
|
537
|
+
}
|
538
|
+
|
539
|
+
.icon-search-container .fa-search {
|
540
|
+
|
541
|
+
color: #2980b9;
|
542
|
+
|
543
|
+
font-size: 30px;
|
544
|
+
|
545
|
+
position: absolute;
|
546
|
+
|
547
|
+
top: 7px;
|
548
|
+
|
549
|
+
left: 8px;
|
550
|
+
|
551
|
+
cursor: pointer;
|
552
|
+
|
553
|
+
}
|
554
|
+
|
555
|
+
.icon-search-container .fa-times-circle {
|
556
|
+
|
557
|
+
opacity: 0;
|
558
|
+
|
559
|
+
color: #d9d9d9;
|
560
|
+
|
561
|
+
font-size: 20px;
|
562
|
+
|
563
|
+
position: absolute;
|
564
|
+
|
565
|
+
top: 12px;
|
566
|
+
|
567
|
+
right: 8px;
|
568
|
+
|
569
|
+
transition: opacity 0.2s ease-out;
|
570
|
+
|
571
|
+
cursor: pointer;
|
572
|
+
|
573
|
+
}
|
574
|
+
|
575
|
+
.icon-search-container .search-input {
|
576
|
+
|
577
|
+
position: absolute;
|
578
|
+
|
579
|
+
cursor: default;
|
580
|
+
|
581
|
+
left: 45px;
|
582
|
+
|
583
|
+
top: 6px;
|
584
|
+
|
585
|
+
width: 0;
|
586
|
+
|
587
|
+
padding: 5px;
|
588
|
+
|
589
|
+
border: none;
|
590
|
+
|
591
|
+
outline: none;
|
592
|
+
|
593
|
+
font-size: 18px;
|
594
|
+
|
595
|
+
line-height: 20px;
|
596
|
+
|
597
|
+
background-color: rgba(255, 255, 255, 0);
|
598
|
+
|
599
|
+
transition: width 0.2s ease-out;
|
600
|
+
|
601
|
+
}
|
602
|
+
|
603
|
+
|
604
|
+
|
605
|
+
.top{
|
606
|
+
|
607
|
+
margin-bottom: 4rem;
|
608
|
+
|
609
|
+
}
|
610
|
+
|
611
|
+
|
612
|
+
|
613
|
+
.top-img{
|
614
|
+
|
615
|
+
width: 1035px;
|
616
|
+
|
617
|
+
}
|
618
|
+
|
619
|
+
|
620
|
+
|
621
|
+
|
622
|
+
|
623
|
+
|
624
|
+
|
625
|
+
|
626
|
+
|
627
|
+
```
|