@charset "UTF-8"; /* CSS Document */ //ブレイクポイントを指定------ここから $xl: 1399px; $lg: 1199px; $md: 991px; $sm: 767px; $xs: 575px; @mixin xl { @media screen and (max-width: ($xl)) { @content; } } @mixin lg { @media screen and (max-width: ($lg)) { @content; } } @mixin md { @media screen and (max-width: ($md)) { @content; } } @mixin sm { @media screen and (max-width: ($sm)) { @content; } } @mixin xs { @media screen and (max-width: ($xs)) { @content; } } //ブレイクポイントを指定------ここまで //カラー指定 $main-color: #289c4c; $sub-color: #fabe00; section { padding-bottom: 10rem; @include md { padding-bottom: 8rem; } @include sm { padding-bottom: 6rem; } } #advantage h3 { &::first-letter{ color: $sub-color; } } //ul-header------ここから #ul-header { .ul-img { img { @include md { object-position: 25% center; } } } } //service------ここから #service { .service-contents { position: relative; padding-top: 10rem; @include sm { padding-top: 0; margin-bottom: 3rem; } &::before { content: ""; position: absolute; top: 0; width: 60%; height: 100%; z-index: 1; @include md { width: 70%; } @include sm { position: relative; width: 100%; height: 300px; display: block; } @include xs { width: 100%; height: 220px; } } .container { position: relative; z-index: 2; .service-text { background: #fff; padding: 6rem 0 0 6rem; width: 50%; margin: 0 0 0 auto; position: relative; @include md { padding: 5rem 0 0 5rem; width: 60%; } @include sm { width: 100%; padding: 4rem 0 0; } @include xs { padding: 2rem 0 0; } h4 { font-family: "Barlow Condensed", sans-serif; font-size: 40px; font-size: 4rem; font-weight: 500; font-style: italic; color: $main-color; letter-spacing: 0.02em; margin-bottom: 1.5rem; @include xs { font-size: 30px; font-size: 3rem; } span { font-size: 18px; font-size: 1.8rem; font-weight: 600; font-style: normal; color: #333; margin-left: 2rem; @include xs { font-size: 16px; font-size: 1.6rem; } } } p { } } } &:nth-of-type(1) { margin-bottom: 6rem; &::before { left: 0; background: url(../img/business-main1.jpg) center / cover no-repeat; background-position: left center; @include xl { background-position: 20% center; } @include lg { background-position: 25% center; } @include md { background-position: 35% center; } } } &:nth-of-type(2) { margin-bottom: 0; &::before { right: 0; background: url(../img/business-main2.jpg) center / cover no-repeat; } .container { .service-text { padding: 6rem 6rem 0 0; margin: 0 auto 0 0; @include md { padding: 5rem 5rem 0 0; width: 60%; } @include sm { width: 100%; padding: 4rem 0 0; } @include xs { padding: 2rem 0 0; } h4 { color: $sub-color; } } } } } } //vehicle------ここから #vehicle { figure { margin-bottom: 3rem; @include xs { margin-bottom: 2rem; } div { height: 300px; margin-bottom: 0.5rem; overflow: hidden; @include md { height: 200px; } @include sm { height: 250px; } @include xs { height: 200px; } img { width: 100%; height: 100%; object-fit: cover; } } figcaption { font-family: YuGothic, "Yu Gothic medium", "Hiragino Sans", Meiryo, "sans-serif"; letter-spacing: 0.05em; } } .point { position: relative; background-color: #dff0e4; padding: 3rem; border-radius: 10px; text-align: center; @include xs { padding: 2rem; margin-top: 2rem; } dl { margin-top: -6rem; text-align: justify; @include xs { margin-top: -5rem; } dt { font-family: "Barlow Condensed", sans-serif; font-size: 33px; font-size: 3.3rem; font-weight: 500; color: $main-color; } dd { font-size: 15px; font-size: 1.5rem; line-height: 1.8; } } img { position: absolute; top: 10%; right: 5%; width: 400px; @include lg { width: 350px; } @include md { width: 230px; top: 23%; right: 2%; } @include sm { position: relative; top: 0; right: 0; margin-top: -1rem; } @include xs { margin-top: 1rem; } } } } //advantage #advantage { .row { margin-bottom: 6rem; @include xs { margin-bottom: 4rem; } &:last-child { margin-bottom: 3rem; @include xs { margin-bottom: 0; } } } .advantage-img { height: 340px; overflow: hidden; @include lg { height: 300px; } @include md { height: 220px; } @include sm { height: 270px; margin-bottom: 2rem; } @include xs { height: 220px; } img { width: 100%; height: 100%; object-fit: cover; } } .advantage-text { img { width: 260px; margin-bottom: 2rem; @include md { width: 170px; margin-bottom: 1rem; } @include xs { width: 130px; } } h4 { font-size: 25px; font-size: 2.5rem; font-weight: 600; letter-spacing: 0.05em; line-height: 1.5; margin-bottom: 1.5rem; @include md { font-size: 21px; font-size: 2.1rem; margin-bottom: 1rem; } @include xs { font-size: 19px; font-size: 1.9rem; } } p { font-size: 15px; font-size: 1.5rem; line-height: 2; @include md { line-height: 1.75; } } } } //safety #safety { padding-bottom: 0; .safety-bg { padding: 8rem 0; background-color: #f0f8f2; @include md { padding: 6rem 0; } @include xs { padding: 4rem 0; } } .container { position: relative; &>img { position: absolute; width: 200px; top: -10%; left: -6%; @include xl { left: -15px; } @include lg { width: 170px; top: -9%; left: -5px; } @include md { width: 150px; } @include sm { width: 120px; top: -3%; } @include xs { width: 100px; left: 1rem; } } } .row { margin: 0 -3rem; @include md { margin: 0 -1.5rem; } &>div { padding: 0 3rem; margin-bottom: 6rem; @include md { padding: 0 1.5rem; margin-bottom: 4rem; } } } .safety-img { height: 300px; overflow: hidden; margin-bottom: 1.5rem; @include md { height: 200px; margin-bottom: 1rem; } @include sm { height: 270px; } @include xs { height: 200px; } img { width: 100%; height: 100%; object-fit: cover; } } h5 { font-size: 25px; font-size: 2.5rem; margin-bottom: 1rem; @include md { font-size: 22px; font-size: 2.2rem; } @include xs { font-size: 20px; font-size: 2rem; } } ul { li { font-size: 15px; font-size: 1.5rem; text-indent: -1.5em; padding-left: 1.5em; line-height: 1.3; margin-bottom: 0.5rem; &::before { font-family: "Font Awesome 5 Free"; content: "\f14a"; font-weight: 900; color: $sub-color; margin-right: 0.5em; } } } }