質問編集履歴
1
HTML,CSSのコードを追加しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -60,46 +60,716 @@
|
|
60
60
|
|
61
61
|
|
62
62
|
|
63
|
-
##
|
63
|
+
##コードです。
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
|
64
|
-
|
69
|
+
```HTML
|
70
|
+
|
65
|
-
|
71
|
+
<!DOCTYPE html>
|
72
|
+
|
66
|
-
|
73
|
+
<html lang="ja">
|
74
|
+
|
67
|
-
|
75
|
+
<head>
|
76
|
+
|
68
|
-
|
77
|
+
<meta charset="UTF-8">
|
78
|
+
|
79
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
80
|
+
|
81
|
+
<meta name="format-detection" content="telephone=no">
|
82
|
+
|
83
|
+
<link rel="stylesheet" href="./css/init.css">
|
84
|
+
|
85
|
+
<link rel="stylesheet" href="./css/pc.css">
|
86
|
+
|
87
|
+
<link rel="stylesheet" href="./slick/slick-theme.css">
|
88
|
+
|
89
|
+
<link rel="stylesheet" href="./slick/slick.css">
|
90
|
+
|
91
|
+
<title>TEST</title>
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
</head>
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
<body>
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
<!-- header -->
|
114
|
+
|
115
|
+
<header class="header">
|
116
|
+
|
117
|
+
<div class="pickup">
|
118
|
+
|
119
|
+
<div class="wrap">
|
120
|
+
|
121
|
+
<p>テキストテキストテキストテキストテキストテキストテキストテキストテキスト</p>
|
122
|
+
|
123
|
+
</div><!-- /wrap -->
|
124
|
+
|
125
|
+
</div><!--/pickup-->
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
<!--nav-area-->
|
132
|
+
|
133
|
+
<div class="nav-area">
|
134
|
+
|
135
|
+
<div class="wrap">
|
136
|
+
|
137
|
+
<h1 class="logo"><a href="#"><img src="./img/header-logo.png" alt=""></a></h1>
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
<nav>
|
144
|
+
|
145
|
+
<ul>
|
146
|
+
|
147
|
+
<li><a href="#">MENU</a></li>
|
148
|
+
|
149
|
+
<li><a href="#">MENU</a></li>
|
150
|
+
|
151
|
+
<li><a href="#">MENU</a></li>
|
152
|
+
|
153
|
+
<li><a href="#">MENU</a></li>
|
154
|
+
|
155
|
+
<li><a href="#">MENU</a></li>
|
156
|
+
|
157
|
+
</ul>
|
158
|
+
|
159
|
+
</nav>
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
<div class="lang">
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
<a href="#" class="select">ja</a>
|
170
|
+
|
171
|
+
<a href="#" class="lang-btn">En</a>
|
172
|
+
|
173
|
+
<a href="#" class="lang-btn">Sp</a>
|
174
|
+
|
175
|
+
<a href="#" class="lang-btn">Cn</a>
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
</div>
|
180
|
+
|
181
|
+
<!--/lang-->
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
</div><!-- /wrap -->
|
188
|
+
|
189
|
+
</div><!--/nav-area-->
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
</header><!-- /header -->
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
<div id="top">
|
202
|
+
|
203
|
+
<div class="mv">
|
204
|
+
|
205
|
+
<h1>テキストテキストテキストテキストテキスト</h1>
|
206
|
+
|
207
|
+
<p><img src="./img/mv-logo.png" alt=""></p>
|
208
|
+
|
209
|
+
</div>
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
<div class="slide-wrap”>
|
218
|
+
|
219
|
+
<div class="slider">
|
220
|
+
|
221
|
+
<div class="slide"><img src="./img/hero-slide01.png" alt=""></div>
|
222
|
+
|
223
|
+
<div class="slide"><img src="./img/hero-slide02.png" alt=""></div>
|
224
|
+
|
225
|
+
<div class="slide"><img src="./img/hero-slide03.png" alt=""></div>
|
226
|
+
|
227
|
+
<div class="slide"><img src="./img/hero-slide04.png" alt=""></div>
|
228
|
+
|
229
|
+
<div class="slide"><img src="./img/hero-slide05.png" alt=""></div>
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
</div><!--/slider-->
|
234
|
+
|
235
|
+
</div><!—-/slide-wrap—>
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
</div><!--/top-->
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
|
248
|
+
|
249
|
+
<script src="./slick/slick.min.js"></script>
|
250
|
+
|
69
|
-
|
251
|
+
<script>
|
70
252
|
|
71
253
|
window.addEventListener('load', function () {
|
72
254
|
|
73
|
-
|
255
|
+
$('.slider').slick({
|
74
|
-
|
75
|
-
|
256
|
+
|
76
|
-
|
77
|
-
autoplay: true,
|
257
|
+
autoplay: true, //自動再生
|
78
|
-
|
258
|
+
|
79
|
-
|
259
|
+
swipeToSlide: true, //ドラックorスワイプで1スライド
|
80
|
-
|
81
|
-
|
260
|
+
|
82
|
-
|
83
|
-
arrows: false,
|
261
|
+
arrows: false, //左右の矢印ボタン非表示
|
84
|
-
|
262
|
+
|
85
|
-
|
263
|
+
slidesToShow: 4, //表示するスライド数
|
86
|
-
|
264
|
+
|
87
|
-
centerMode: true,
|
265
|
+
centerMode: true, //中心に表示
|
88
|
-
|
266
|
+
|
89
|
-
dots: false,
|
267
|
+
dots: false, //ドットインジケーターを非表示
|
90
|
-
|
268
|
+
|
91
|
-
|
269
|
+
centerPadding: '8%', //見切れるスライドの幅
|
92
|
-
|
270
|
+
|
93
|
-
autoplaySpeed: 0,
|
271
|
+
autoplaySpeed: 0, //自動再生のスライド切り替えスピード
|
94
|
-
|
272
|
+
|
95
|
-
cssEase: 'linear',
|
273
|
+
cssEase: 'linear', //アニメーションの種類
|
96
|
-
|
274
|
+
|
97
|
-
speed: 30000,
|
275
|
+
speed: 30000, //アニメーションの速度
|
98
276
|
|
99
277
|
});
|
100
278
|
|
101
279
|
|
102
280
|
|
281
|
+
|
282
|
+
|
103
283
|
});
|
104
284
|
|
285
|
+
</script>
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
<script src="./js/script.js"></script>
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
</body>
|
298
|
+
|
299
|
+
</html>
|
300
|
+
|
301
|
+
|
302
|
+
|
105
303
|
```
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
```Sass
|
310
|
+
|
311
|
+
// ベース色
|
312
|
+
|
313
|
+
$cr-m: #ec635d;
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
// 背景
|
324
|
+
|
325
|
+
$cr-bg: #fff;
|
326
|
+
|
327
|
+
$cr-bg-gray: #eee;
|
328
|
+
|
329
|
+
$cr-bg-gray-more: #d6d6d6;
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
|
334
|
+
|
335
|
+
// テキスト色
|
336
|
+
|
337
|
+
$cr-txt: #000;
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
/*----------------------------------
|
356
|
+
|
357
|
+
base
|
358
|
+
|
359
|
+
----------------------------------*/
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
body{
|
370
|
+
|
371
|
+
color:$cr-txt;
|
372
|
+
|
373
|
+
font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
|
374
|
+
|
375
|
+
line-height:1.5;
|
376
|
+
|
377
|
+
min-width: 1400px;
|
378
|
+
|
379
|
+
}
|
380
|
+
|
381
|
+
|
382
|
+
|
383
|
+
|
384
|
+
|
385
|
+
.wrap{
|
386
|
+
|
387
|
+
width: 1400px;
|
388
|
+
|
389
|
+
margin: 0 auto;
|
390
|
+
|
391
|
+
}
|
392
|
+
|
393
|
+
|
394
|
+
|
395
|
+
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
|
400
|
+
|
401
|
+
/*----------------------------------
|
402
|
+
|
403
|
+
header
|
404
|
+
|
405
|
+
----------------------------------*/
|
406
|
+
|
407
|
+
|
408
|
+
|
409
|
+
|
410
|
+
|
411
|
+
.test {
|
412
|
+
|
413
|
+
padding:100px 20px;
|
414
|
+
|
415
|
+
.text{
|
416
|
+
|
417
|
+
font-style: 30px;
|
418
|
+
|
419
|
+
color:#333;
|
420
|
+
|
421
|
+
|
422
|
+
|
423
|
+
|
424
|
+
|
425
|
+
}
|
426
|
+
|
427
|
+
}
|
428
|
+
|
429
|
+
|
430
|
+
|
431
|
+
|
432
|
+
|
433
|
+
|
434
|
+
|
435
|
+
|
436
|
+
|
437
|
+
.header{
|
438
|
+
|
439
|
+
position:fixed;
|
440
|
+
|
441
|
+
width: 100%;
|
442
|
+
|
443
|
+
z-index:10;
|
444
|
+
|
445
|
+
|
446
|
+
|
447
|
+
.pickup{
|
448
|
+
|
449
|
+
background-color: $cr-m;
|
450
|
+
|
451
|
+
p{
|
452
|
+
|
453
|
+
font-size:12px;
|
454
|
+
|
455
|
+
padding: 3px 0 4px 15px;
|
456
|
+
|
457
|
+
color:#fff;
|
458
|
+
|
459
|
+
}
|
460
|
+
|
461
|
+
}
|
462
|
+
|
463
|
+
|
464
|
+
|
465
|
+
|
466
|
+
|
467
|
+
|
468
|
+
|
469
|
+
|
470
|
+
|
471
|
+
.nav-area{
|
472
|
+
|
473
|
+
background-color: rgba(#000,.3);
|
474
|
+
|
475
|
+
height:auto;
|
476
|
+
|
477
|
+
padding:5px 0;
|
478
|
+
|
479
|
+
|
480
|
+
|
481
|
+
.wrap{
|
482
|
+
|
483
|
+
display: flex;
|
484
|
+
|
485
|
+
// justify-content: center;
|
486
|
+
|
487
|
+
|
488
|
+
|
489
|
+
|
490
|
+
|
491
|
+
.logo{
|
492
|
+
|
493
|
+
margin-left:15px;
|
494
|
+
|
495
|
+
a{
|
496
|
+
|
497
|
+
font-size:20px;
|
498
|
+
|
499
|
+
letter-spacing:0;
|
500
|
+
|
501
|
+
text-decoration: none;
|
502
|
+
|
503
|
+
|
504
|
+
|
505
|
+
}
|
506
|
+
|
507
|
+
}
|
508
|
+
|
509
|
+
|
510
|
+
|
511
|
+
nav{
|
512
|
+
|
513
|
+
display: flex;
|
514
|
+
|
515
|
+
align-items:center;
|
516
|
+
|
517
|
+
margin:0 40px 0 20px;
|
518
|
+
|
519
|
+
|
520
|
+
|
521
|
+
ul{
|
522
|
+
|
523
|
+
display: flex;
|
524
|
+
|
525
|
+
align-items:center;
|
526
|
+
|
527
|
+
|
528
|
+
|
529
|
+
li{
|
530
|
+
|
531
|
+
margin-right:25px;
|
532
|
+
|
533
|
+
|
534
|
+
|
535
|
+
&:last-child{
|
536
|
+
|
537
|
+
margin-right:0;
|
538
|
+
|
539
|
+
}
|
540
|
+
|
541
|
+
|
542
|
+
|
543
|
+
a{
|
544
|
+
|
545
|
+
text-decoration: none;
|
546
|
+
|
547
|
+
color:#fff;
|
548
|
+
|
549
|
+
font-size:16px;
|
550
|
+
|
551
|
+
|
552
|
+
|
553
|
+
&:hover{
|
554
|
+
|
555
|
+
padding-bottom:5px;
|
556
|
+
|
557
|
+
border-bottom:1px solid #fff;
|
558
|
+
|
559
|
+
}
|
560
|
+
|
561
|
+
}
|
562
|
+
|
563
|
+
}
|
564
|
+
|
565
|
+
}
|
566
|
+
|
567
|
+
}
|
568
|
+
|
569
|
+
|
570
|
+
|
571
|
+
.lang{
|
572
|
+
|
573
|
+
display: flex;
|
574
|
+
|
575
|
+
align-items:center;
|
576
|
+
|
577
|
+
|
578
|
+
|
579
|
+
.select{
|
580
|
+
|
581
|
+
display: inline-block;
|
582
|
+
|
583
|
+
width: 80px;
|
584
|
+
|
585
|
+
height: 40px;
|
586
|
+
|
587
|
+
margin-right:8px;
|
588
|
+
|
589
|
+
border:2px solid #fff;
|
590
|
+
|
591
|
+
border-radius:20px;
|
592
|
+
|
593
|
+
text-decoration: none;
|
594
|
+
|
595
|
+
color:#fff;
|
596
|
+
|
597
|
+
line-height:2.5;
|
598
|
+
|
599
|
+
text-align: center;
|
600
|
+
|
601
|
+
font-size:14px;
|
602
|
+
|
603
|
+
|
604
|
+
|
605
|
+
|
606
|
+
|
607
|
+
|
608
|
+
|
609
|
+
}
|
610
|
+
|
611
|
+
.lang-btn{
|
612
|
+
|
613
|
+
display: inline-block;
|
614
|
+
|
615
|
+
height: 40px;
|
616
|
+
|
617
|
+
width: 40px;
|
618
|
+
|
619
|
+
border:2px solid #fff;
|
620
|
+
|
621
|
+
border-radius:50%;
|
622
|
+
|
623
|
+
text-decoration: none;
|
624
|
+
|
625
|
+
color:#fff;
|
626
|
+
|
627
|
+
line-height:2.5;
|
628
|
+
|
629
|
+
text-align: center;
|
630
|
+
|
631
|
+
font-size:14px;
|
632
|
+
|
633
|
+
margin-right:8px;
|
634
|
+
|
635
|
+
|
636
|
+
|
637
|
+
&:last-child{
|
638
|
+
|
639
|
+
margin-right:0;
|
640
|
+
|
641
|
+
}
|
642
|
+
|
643
|
+
}
|
644
|
+
|
645
|
+
}
|
646
|
+
|
647
|
+
|
648
|
+
|
649
|
+
}
|
650
|
+
|
651
|
+
|
652
|
+
|
653
|
+
|
654
|
+
|
655
|
+
}
|
656
|
+
|
657
|
+
}
|
658
|
+
|
659
|
+
|
660
|
+
|
661
|
+
|
662
|
+
|
663
|
+
|
664
|
+
|
665
|
+
|
666
|
+
|
667
|
+
|
668
|
+
|
669
|
+
|
670
|
+
|
671
|
+
|
672
|
+
|
673
|
+
|
674
|
+
|
675
|
+
/*----------------------------------
|
676
|
+
|
677
|
+
main visual
|
678
|
+
|
679
|
+
----------------------------------*/
|
680
|
+
|
681
|
+
|
682
|
+
|
683
|
+
|
684
|
+
|
685
|
+
#top{
|
686
|
+
|
687
|
+
width: 100%;
|
688
|
+
|
689
|
+
.mv{
|
690
|
+
|
691
|
+
background: url(../img/mv.png) ;
|
692
|
+
|
693
|
+
background-repeat:no-repeat;
|
694
|
+
|
695
|
+
background-position: center;
|
696
|
+
|
697
|
+
background-size:cover;
|
698
|
+
|
699
|
+
text-align: center;
|
700
|
+
|
701
|
+
height:600px;
|
702
|
+
|
703
|
+
width: 100%;
|
704
|
+
|
705
|
+
padding:10% 0;
|
706
|
+
|
707
|
+
|
708
|
+
|
709
|
+
|
710
|
+
|
711
|
+
h1{
|
712
|
+
|
713
|
+
margin-bottom:20px;
|
714
|
+
|
715
|
+
font-size:16px;
|
716
|
+
|
717
|
+
color:#fff;
|
718
|
+
|
719
|
+
}
|
720
|
+
|
721
|
+
|
722
|
+
|
723
|
+
|
724
|
+
|
725
|
+
}
|
726
|
+
|
727
|
+
|
728
|
+
|
729
|
+
|
730
|
+
|
731
|
+
.slide-wrap{
|
732
|
+
|
733
|
+
height:300px;
|
734
|
+
|
735
|
+
width: 100%;
|
736
|
+
|
737
|
+
background-color: #fff;
|
738
|
+
|
739
|
+
|
740
|
+
|
741
|
+
|
742
|
+
|
743
|
+
.slider{
|
744
|
+
|
745
|
+
|
746
|
+
|
747
|
+
.slide{
|
748
|
+
|
749
|
+
position:relative;
|
750
|
+
|
751
|
+
top:-40px;
|
752
|
+
|
753
|
+
left:0;
|
754
|
+
|
755
|
+
z-index:999;
|
756
|
+
|
757
|
+
}
|
758
|
+
|
759
|
+
}
|
760
|
+
|
761
|
+
}
|
762
|
+
|
763
|
+
|
764
|
+
|
765
|
+
|
766
|
+
|
767
|
+
|
768
|
+
|
769
|
+
|
770
|
+
|
771
|
+
}
|
772
|
+
|
773
|
+
|
774
|
+
|
775
|
+
```
|