質問編集履歴

1

cssの追加 markdownの利用

2021/10/09 02:58

投稿

maruco2525
maruco2525

スコア3

test CHANGED
File without changes
test CHANGED
@@ -2,7 +2,9 @@
2
2
 
3
3
  色々試しましたが原因が分からないので教えていただけないでしょうか?
4
4
 
5
- html
5
+ ```html
6
+
7
+
6
8
 
7
9
  <div id="wrapper">
8
10
 
@@ -66,7 +68,7 @@
66
68
 
67
69
  <p class="main_message">Design for Smile.</p>
68
70
 
69
- <p class="sub_message">快適なオフィスを<span>デザインする</span></p>
71
+ <p class="sub_message"><span></span></p>
70
72
 
71
73
  </div>
72
74
 
@@ -88,9 +90,7 @@
88
90
 
89
91
  <P class="concept_message">
90
92
 
91
- "働きたくなる空間"をデザインすることで<br>
93
+
92
-
93
- 人々を幸せにする。
94
94
 
95
95
  </P>
96
96
 
@@ -98,15 +98,11 @@
98
98
 
99
99
  <p class="concept_explanation">
100
100
 
101
- 私たちは、オフィスに特化した空間デザイン専門としております。その理由は、「働きたくなる空間で仕事ができれば
101
+
102
-
103
- 多くの人を幸せにできるのではないか」と考えるためです。そんな想いの株式会社Cresta Designだからこそできる
104
-
105
- 空間デザインを提供させていただきます。
106
102
 
107
103
  </p>
108
104
 
109
- <img class="concept_img" src="img/concept-image@2x.jpg" alt="空間デザインイメージ写真">
105
+ <img class="concept_img" src="img/concept-image@2x.jpg" alt="">
110
106
 
111
107
  </div>
112
108
 
@@ -128,7 +124,7 @@
128
124
 
129
125
  <dt><img src="img/card-img01@2x.jpg" alt="新規サイトイメージ写真"></dt>
130
126
 
131
- <dd>新規サイトを公開しました。今回のサイトは白と黒を基調にしたミニマルなデザインになっています。</dd>
127
+ <dd></dd>
132
128
 
133
129
  </dl>
134
130
 
@@ -136,7 +132,7 @@
136
132
 
137
133
  <dt><img src="img/card-img02@2x.jpg" alt="新規サイトイメージ写真"></dt>
138
134
 
139
- <dd>新規サイトを公開しました。今回のサイトは白と黒を基調にしたミニマルなデザインになっています。</dd>
135
+ <dd></dd>
140
136
 
141
137
  </dl>
142
138
 
@@ -144,7 +140,7 @@
144
140
 
145
141
  <dt><img src="img/card-img03@2x.jpg" alt="新規サイトイメージ写真"></dt>
146
142
 
147
- <dd>新規サイトを公開しました。今回のサイトは白と黒を基調にしたミニマルなデザインになっています。</dd>
143
+ <dd></dd>
148
144
 
149
145
  </dl>
150
146
 
@@ -186,7 +182,7 @@
186
182
 
187
183
  </div>
188
184
 
189
- <p>お気軽にご相談ください。</p>
185
+ <p></p>
190
186
 
191
187
  <button><a href="#">Contact</a></button>
192
188
 
@@ -196,14 +192,724 @@
196
192
 
197
193
  </section>
198
194
 
199
-
200
-
201
-
202
-
203
195
  <footer>
204
196
 
205
- <p>&copy;cresta.design all rights reserved</p>
197
+
206
198
 
207
199
  </footer>
208
200
 
209
201
  </div>
202
+
203
+ ```
204
+
205
+ ```css
206
+
207
+
208
+
209
+ #wrapper {
210
+
211
+ width: 100%;
212
+
213
+ }
214
+
215
+
216
+
217
+ /*ヘッダー*/
218
+
219
+ header {
220
+
221
+ width: 100%;
222
+
223
+ height: 750px;
224
+
225
+ position: relative;
226
+
227
+ }
228
+
229
+
230
+
231
+ header nav {
232
+
233
+ float: right;
234
+
235
+ }
236
+
237
+
238
+
239
+ header nav li {
240
+
241
+ display: inline-block;
242
+
243
+ padding: 5px 10px;
244
+
245
+ }
246
+
247
+
248
+
249
+ header nav li a {
250
+
251
+ font-size: 81%;
252
+
253
+ display: block;
254
+
255
+ border-bottom: 1px solid #333;
256
+
257
+ }
258
+
259
+
260
+
261
+
262
+
263
+ header .main_name {
264
+
265
+ font-size: 225%;
266
+
267
+ position: absolute;
268
+
269
+ top: 50%;
270
+
271
+ transform: translate(-50%);
272
+
273
+ z-index: 20;
274
+
275
+ left: 50%;
276
+
277
+ }
278
+
279
+
280
+
281
+ header .sub_name {
282
+
283
+ font-size: 10vw;
284
+
285
+ position: absolute;
286
+
287
+ top: 50%;
288
+
289
+ transform: translateY(-50%);
290
+
291
+ z-index: 10;
292
+
293
+ left: 50%;
294
+
295
+ }
296
+
297
+
298
+
299
+ /*article共通*/
300
+
301
+ article {
302
+
303
+ padding: 50px 30px;
304
+
305
+ width: 100%;
306
+
307
+ box-sizing: border-box;
308
+
309
+ }
310
+
311
+
312
+
313
+ article h2 {
314
+
315
+ font-size: 187%;
316
+
317
+ margin-bottom: 20px;
318
+
319
+ font-weight: bold;
320
+
321
+ }
322
+
323
+
324
+
325
+ article h2 span {
326
+
327
+ font-size: 80%;
328
+
329
+ display: block;
330
+
331
+ }
332
+
333
+
334
+
335
+ /*プロフィール*/
336
+
337
+ #profile {
338
+
339
+ margin-bottom: 50px;
340
+
341
+ }
342
+
343
+
344
+
345
+ #profile .profile_inner {
346
+
347
+ display: flex;
348
+
349
+ align-items: center;
350
+
351
+ }
352
+
353
+
354
+
355
+ #profile .profile_inner .profile_image {
356
+
357
+ width: 50vw;
358
+
359
+ }
360
+
361
+
362
+
363
+ #profile .profile_inner span {
364
+
365
+ display: block;
366
+
367
+ padding-left: 20px;
368
+
369
+ margin-bottom: 10px;
370
+
371
+ }
372
+
373
+
374
+
375
+ #profile .profile_inner .profile_sentence {
376
+
377
+ width: 50vw;
378
+
379
+ }
380
+
381
+
382
+
383
+ #profile .profile_inner .profile_sentence p {
384
+
385
+ padding-left: 20px;
386
+
387
+ text-align: justify;
388
+
389
+ line-height: 1.8em;
390
+
391
+ }
392
+
393
+
394
+
395
+ /*制作物*/
396
+
397
+ #works {
398
+
399
+ width: 100%;
400
+
401
+ margin-bottom: 50px;
402
+
403
+ /*キャンプ場hp*/
404
+
405
+ /*cresta design hp*/
406
+
407
+ }
408
+
409
+
410
+
411
+ #works h3 {
412
+
413
+ font-size: 112%;
414
+
415
+ margin-bottom: 20px;
416
+
417
+ }
418
+
419
+
420
+
421
+
422
+
423
+
424
+
425
+
426
+
427
+ #works dl dd {
428
+
429
+ padding: 10px 1em;
430
+
431
+ text-indent: 1em;
432
+
433
+ }
434
+
435
+
436
+
437
+ #works button {
438
+
439
+ background-color: #7fd1b9;
440
+
441
+ border: none;
442
+
443
+ border-radius: 10px;
444
+
445
+ float: right;
446
+
447
+ padding: 0;
448
+
449
+ }
450
+
451
+
452
+
453
+ #works button a {
454
+
455
+ padding: 5px 20px;
456
+
457
+ display: block;
458
+
459
+ }
460
+
461
+
462
+
463
+
464
+
465
+
466
+
467
+ #works .camp_hp, #works .cresta_hp {
468
+
469
+ display: flex;
470
+
471
+ margin-bottom: 50px;
472
+
473
+ }
474
+
475
+
476
+
477
+ #works .camp_hp ul li:nth-of-type(1) img, #works .cresta_hp ul li:nth-of-type(1) img {
478
+
479
+ width: 25vw;
480
+
481
+ }
482
+
483
+
484
+
485
+ #works .camp_hp ul li:nth-of-type(2), #works .cresta_hp ul li:nth-of-type(2) {
486
+
487
+ margin: 10% 0 0 10vw;
488
+
489
+ }
490
+
491
+
492
+
493
+ #works .camp_hp ul li:nth-of-type(2) img, #works .cresta_hp ul li:nth-of-type(2) img {
494
+
495
+ width: 5vw;
496
+
497
+ }
498
+
499
+
500
+
501
+ #works .camp_hp .camp_explanation, #works .camp_hp .cresta_explanation, #works .cresta_hp .camp_explanation, #works .cresta_hp .cresta_explanation {
502
+
503
+ width: 70vw;
504
+
505
+ padding: 5px 0 0 50px;
506
+
507
+ }
508
+
509
+
510
+
511
+ #works .cresta_explanation dd span {
512
+
513
+ display: block;
514
+
515
+ font-size: 75%;
516
+
517
+ }
518
+
519
+
520
+
521
+
522
+
523
+
524
+
525
+ #works .cresta_explanation dd span:nth-of-type(1) {
526
+
527
+ margin-top: 2em;
528
+
529
+ }
530
+
531
+
532
+
533
+ /*できること*/
534
+
535
+ #skills {
536
+
537
+ margin: 0 auto 40px;
538
+
539
+ }
540
+
541
+
542
+
543
+ #skills .skills_inner {
544
+
545
+ display: flex;
546
+
547
+ flex-wrap: wrap;
548
+
549
+ }
550
+
551
+
552
+
553
+ #skills .skills_inner dl {
554
+
555
+ width: 400px;
556
+
557
+ margin-bottom: 40px;
558
+
559
+ }
560
+
561
+
562
+
563
+ #skills .skills_inner dl dt {
564
+
565
+ font-weight: bold;
566
+
567
+ margin-top: 5px;
568
+
569
+ margin-bottom: 20px;
570
+
571
+ }
572
+
573
+
574
+
575
+ #skills .skills_inner dl .fab {
576
+
577
+ font-size: 300%;
578
+
579
+ }
580
+
581
+
582
+
583
+ #skills .skills_inner dl .ps_icon, #skills .skills_inner dl .ai_icon {
584
+
585
+ width: 40px;
586
+
587
+ height: 40px;
588
+
589
+ text-align: right;
590
+
591
+ line-height: 56px;
592
+
593
+ margin-bottom: 13px;
594
+
595
+ }
596
+
597
+ responsive css
598
+
599
+
600
+
601
+ @media screen and (min-width: 599px) {
602
+
603
+ #hamburger_menu {
604
+
605
+ display: none;
606
+
607
+ }
608
+
609
+ }
610
+
611
+ @media screen and (max-width: 599px) {
612
+
613
+ /*ヘッダー*/
614
+
615
+ .header_inner {
616
+
617
+ /*ハンバーガーメニュー*/
618
+
619
+ }
620
+
621
+ .header_inner #header_fixed {
622
+
623
+ width: 100%;
624
+
625
+ }
626
+
627
+ .header_inner h1 {
628
+
629
+ padding-left: 2%;
630
+
631
+ }
632
+
633
+ .header_inner #nav_menu {
634
+
635
+ padding-right: 0;
636
+
637
+ display: none;
638
+
639
+ }
640
+
641
+ .header_inner .top_message {
642
+
643
+ width: 100%;
644
+
645
+ padding-left: 0;
646
+
647
+ padding-top: 154px;
648
+
649
+ }
650
+
651
+ .header_inner .top_message .main_message {
652
+
653
+ font-size: 37px;
654
+
655
+ width: 100%;
656
+
657
+ text-align: center;
658
+
659
+ margin-bottom: 20px;
660
+
661
+ }
662
+
663
+ .header_inner .top_message .sub_message {
664
+
665
+ font-size: 30px;
666
+
667
+ line-height: 1.8em;
668
+
669
+ }
670
+
671
+ .header_inner .top_message span {
672
+
673
+ display: block;
674
+
675
+ font-weight: bold;
676
+
677
+ }
678
+
679
+ .header_inner #hamburger_menu {
680
+
681
+ position: absolute;
682
+
683
+ top: 0;
684
+
685
+ right: -110%;
686
+
687
+ width: 100%;
688
+
689
+ height: 100vh;
690
+
691
+ background-color: #282F35;
692
+
693
+ transition: .7s;
694
+
695
+ }
696
+
697
+ .header_inner #hamburger_menu ul {
698
+
699
+ margin: 50vh auto 0;
700
+
701
+ transform: translateY(-50%);
702
+
703
+ text-align: center;
704
+
705
+ }
706
+
707
+ .header_inner #hamburger_menu ul li a {
708
+
709
+ color: #fff;
710
+
711
+ display: block;
712
+
713
+ padding: 10px;
714
+
715
+ translate: .5s;
716
+
717
+ }
718
+
719
+
720
+
721
+ .header_inner #hamburger {
722
+
723
+ display: block;
724
+
725
+ position: absolute;
726
+
727
+ width: 30px;
728
+
729
+ height: 22px;
730
+
731
+ top: 30px;
732
+
733
+ right: 30px;
734
+
735
+ transition: 1s;
736
+
737
+ }
738
+
739
+ .header_inner #hamburger .inner_line {
740
+
741
+ display: block;
742
+
743
+ position: absolute;
744
+
745
+ width: 30px;
746
+
747
+ height: 3px;
748
+
749
+ background-color: #fff;
750
+
751
+ transition: 1s;
752
+
753
+ transform-origin: 28px;
754
+
755
+ }
756
+
757
+ .header_inner #hamburger #line_top {
758
+
759
+ top: 0;
760
+
761
+ }
762
+
763
+ .header_inner #hamburger #line_middle {
764
+
765
+ top: 10px;
766
+
767
+ }
768
+
769
+ .header_inner #hamburger #line_bottom {
770
+
771
+ bottom: 0;
772
+
773
+ }
774
+
775
+ .header_inner .top_move {
776
+
777
+ transform: rotate(-45deg);
778
+
779
+ top: 50%;
780
+
781
+ }
782
+
783
+ .header_inner .middle_move {
784
+
785
+ opacity: 0;
786
+
787
+ }
788
+
789
+ .header_inner .bottom_move {
790
+
791
+ transform: rotate(45deg);
792
+
793
+ bottom: 0;
794
+
795
+ }
796
+
797
+ .header_inner .in {
798
+
799
+ transform: translateX(-110%);
800
+
801
+ }
802
+
803
+ article .left_title {
804
+
805
+ padding-left: 0;
806
+
807
+ }
808
+
809
+ article h2 {
810
+
811
+ font-size: 30px;
812
+
813
+ }
814
+
815
+ article h2::after {
816
+
817
+ width: 90px;
818
+
819
+ }
820
+
821
+
822
+
823
+ /*コンセプト*/
824
+
825
+ #concept {
826
+
827
+ padding: 0 10px;
828
+
829
+ }
830
+
831
+ #concept .concept_contents {
832
+
833
+ flex-direction: column;
834
+
835
+ width: 100%;
836
+
837
+ margin: 0 auto 55px;
838
+
839
+ justify-content: center;
840
+
841
+ }
842
+
843
+ #concept .concept_contents .concept_explanation {
844
+
845
+
846
+
847
+ width: 100%;
848
+
849
+ }
850
+
851
+ #concept .concept_message {
852
+
853
+ width: 100%;
854
+
855
+ margin: 0 auto 34px;
856
+
857
+ }
858
+
859
+ #concept img {
860
+
861
+ width: 100vw;
862
+
863
+ height: auto;
864
+
865
+ }
866
+
867
+ /*ワークス*/
868
+
869
+ #works .works_inner {
870
+
871
+ flex-direction: column;
872
+
873
+ }
874
+
875
+ #works dl {
876
+
877
+ margin: 0;
878
+
879
+ }
880
+
881
+
882
+
883
+ /*サービス*/
884
+
885
+ #service h2 {
886
+
887
+ padding-left: 6%;
888
+
889
+ text-align: left;
890
+
891
+ }
892
+
893
+ #service ul {
894
+
895
+ flex-direction: column;
896
+
897
+ align-items: center;
898
+
899
+ }
900
+
901
+ #service ul li {
902
+
903
+ width: 100%;
904
+
905
+ }
906
+
907
+
908
+
909
+
910
+
911
+
912
+
913
+ }
914
+
915
+ ``````