@charset "utf-8"; // ーーーーーサービス画面ーーーーーーー body#service { .pc-only { display: block; } .sp-only { display: none; } .text { line-height: 2; } .sec_top { background: url(../images/service/service-top@2x.png) no-repeat center center / cover; } .sec_under-catchcopy { padding-bottom: 80px; padding-top: 56px; h2 { font-size: 40px; letter-spacing: 0.05em; line-height: 1.5; margin-bottom: 40px; } p { font-size: 16px; line-height: 2; } } .sec_under-service { background: transparent linear-gradient(111deg, #388ded 0%, #0a5fbc 100%) 0% 0% no-repeat padding-box; color: #fff; padding: 48px 16px 64px 64px; max-width: 100%; .container { .wrap { display: flex; .h3-deco { color: #fff; &:before { background-color: #fff; /* 横線の色 */ } } .right-content { max-width: 68%; margin-right: 0; margin-left: auto; width: 576px; ul { display: flex; flex-wrap: wrap; gap: 16px; /* アイテム間のスペース */ li { letter-spacing: 0.05em; width: calc(50% - 8px); height: 72px; a { align-items: center; background-color: #fff; border-radius: 10px; scroll-behavior: smooth; color: #000000; display: flex; height: 100%; padding-left: 60px; padding-right: 16px; position: relative; &::before{ background: url(../images/blue_arrow2.svg); content: ''; display: block; height: 24px; left: 24px; position: absolute; top: 50%; transform: translateY(-50%); transition: all 0.2s; width: 24px; } &:hover{ background: #eff5ff; &::before{ top: calc(50% + 2px); } } } } } } } } } .sec_under-service-content { background-color: #f1f1f1; padding-top: 80px; ol { li { background-color: #fff; padding: 40px 80px 48px 80px; border-radius: 10px; max-width: 960px; margin: 0 auto; box-sizing: border-box; &:nth-child(2n) { margin: 40px auto; } .set { display: flex; align-items: flex-start; // テキストを上揃え color: #0c5fbc; // テキストカラー margin: 0; // 外側の余白をなくす .num { font-family: "Barlow", Medium; font-size: 20px; line-height: 2; } h4 { margin-left: 12px; font-size: 32px; font-weight: bold; } } .title { font-size: 24px; font-weight: bold; letter-spacing: 0.05em; line-height: 1.5; margin: 24px 0; } .border { background: url(../images/service/gray-border.svg) no-repeat; background-position: bottom; padding-bottom: 40px; margin-bottom: 40px; } .topimg { padding-top: 14px; padding-bottom: 8px; } .prob-sol { padding: 32px 0; } } } } .sec_under-consultation { padding-top: 120px; padding-bottom: 80px; .container { max-width: 960px; h2 { font-size: 40px; font-weight: bold; letter-spacing: 0,05em; margin-bottom: 32px; line-height: 1.6; } ul { margin-top: 48px; li { background-color: #eff5ff; border-radius: 10px; padding: 32px 40px; display: flex; .set { margin-left: 32px; .title { font-size: 24px; letter-spacing: 1.2px; font-weight: bold; } .text { font-size: auto; margin-top: 8px; } } &:nth-child(2n) { margin: 24px auto; } &:last-child { margin-bottom: 0px; } } } } } } // スマホ版 @media (max-width: 768px) { body#service { .pc-only { display: none; } .sp-only { display: block; } .sec_under-catchcopy { padding: 32px 20px 80px; h2 { font-size: 32px; margin-bottom: 32px; } } .sec_under-service { padding: 40px 20px 56px; .container { .wrap { display: block; .left-content { h3 { margin-bottom: 24px; } } .right-content { max-width: 100%; width: 100%; ul { flex-direction: column; width: 100%; li { width: 100%; a { &:hover{ background: #FFF; &::before{ top: 50%; } } } } } } } } } .sec_under-service-content { padding-top: 40px; padding-bottom: 40px; ol { li { padding: 16px 16px 24px 16px; .set { background-position: center top 40px !important; height: auto; // 高さを自動にする background-size: contain !important; // モバイルで画像の表示を調整 h4 { font-size: 24px; } .num { font-size: 16px; } } .title { font-size: 20px; margin: 16px 0 16px; br{ display: none; } } .topimg { padding: 12px 0 0 0; } .border { padding-bottom: 24px; margin-bottom: 24px; } .text{ font-size: 14px; } .prob-sol { padding-bottom: 24px; } &:nth-child(2n) { margin: 24px auto; } } } } .sec_under-consultation { padding-top: 80px; padding-bottom: 48px; .container { width: 100%; .wrap { h3 { margin-bottom: 24px; font-weight: normal; } h2 { font-size: 28px; margin-bottom: 24px; } .text{ font-size: 14px; br{ display: none; } } } ul { margin-top: 28px; li { flex-direction: column; padding: 24px 20px; img { width: 64px; margin: 0 auto; } .set { margin-left: 0px; .title { text-align: center; margin: 16px 0 8px; } } &:nth-child(2n) { margin: 16px auto; } &:last-child { margin-bottom: 0px; } } } } } } }