reason.scss
$tb: "(max-width: 1024px)";
$sp: "(max-width: 767px)";
$viewport: 750;
@function pxtovw($num, $width: $viewport) {
@return (1vw * $num / $width * 100);
}
@mixin contContainer {
max-width: 1020px;
width: 100%;
padding: 0 4rem;
margin: 0 auto;
@media #{$tb}{
padding: 0 6%;
}
@media #{$sp}{
padding: 0 pxtovw(40);
}
}
@mixin contHeader {
}
@mixin contTxt {
font-size: 1.8rem;
line-height: 3.8rem;
color: #111111;
letter-spacing: 0.04em;
font-weight: 500;
//font-feature-settings: "palt";
font-feature-settings: inherit;
em,strong {
color: #db1500;
}
@media #{$tb}{
font-size: 1.6rem;
line-height: 3rem;
}
@media #{$sp}{
font-size: pxtovw(26);
line-height: pxtovw(50);
}
}
@mixin fitImg {
display: block;
margin-left: auto;
margin-right: auto;
-o-object-fit: cover;
object-fit: cover;
width: auto;
@media #{$sp}{
width: 100%;
}
}
@mixin flex {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
}
@mixin flex-jcC {
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
}
@mixin flex-jcSB {
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
}
@mixin flex-aiC {
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
@mixin flex-diCL {
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
}
@mixin boxShadow {
-moz-box-shadow: 0 0 10px 1px rgba($color: #535353, $alpha: .2);
-webkit-box-shadow: 0 0 10px 1px rgba($color: #535353, $alpha: .2);
-ms-box-shadow: 0 0 10px 1px rgba($color: #535353, $alpha: .2);
box-shadow: 0 0 10px 1px rgba($color: #535353, $alpha: .2);
}
@mixin filter-boxShadow {
-webkit-filter: drop-shadow(1px 1px 10px rgba($color: #535353, $alpha: .2));
filter: drop-shadow(1px 1px 10px rgba($color: #535353, $alpha: .2));
}
/*
---------------------------------*/
.reason {
&-wrap {
max-width: 1920px;
margin: auto;
* {box-sizing: border-box;}
.d-block {
display: none;
@media #{$sp}{
display: block;
}
}
.d-md-block {
display: block;
@media #{$sp}{
display: none;
}
}
}
&-fv {
position: relative;
margin-bottom: -2px;
@media #{$sp}{
aspect-ratio: 750/600;
}
&__ttl {
img {
@include fitImg;
height: 500px;
@media #{$tb}{
height: 50vw;
}
@media #{$sp}{
height: auto;
}
}
}
}//-fv
&-worry {
margin-top: -1px;
padding-bottom: 5rem;
background: url(../images/reason/reason-worry_bg_pc.png) top center;
@media #{$tb}{
padding-bottom: 7vw;
}
@media #{$sp}{
padding-bottom: 11vw;
background: url(../images/reason/reason-worry_bg_sp.png) top center;
background-size: cover;
}
&__header {
@include flex();
@include flex-jcC();
padding: 2.8rem 0;
background-color: #004fa5;
position: relative;
&:after {
content: "";
position: absolute;
bottom: -19px;
left: 0;
right: 0;
margin: auto;
width: 48px;
height: 20px;
background-color: #004fa5;
-webkit-clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
}
@media #{$tb}{
padding: 3vw 0;
img {
width: 35.3vw;
}
}
@media (max-width:1024px) and (min-width:768px) {
display: block;
margin-left: auto;
margin-right: auto;
img{
display: block;
margin-left: auto;
margin-right: auto;
}
}
@media #{$sp}{
padding: 0 0 5vw 0;
margin-top: -4vw;
img {
width: pxtovw(552);
}
&:after {
bottom: -3vw;
width: pxtovw(86);
height: pxtovw(43);
}
}
}
&__container {
@include contContainer();
}
&__list {
@include flex();
@include flex-jcSB();
margin-top: 5.5rem;
@media #{$tb}{
margin-top: 4.5vw;
}
@media #{$sp}{
margin-top: 11vw;
}
}
&__item {
width: 460px;
@include flex();
margin-bottom: 3rem;
@media #{$tb}{
width: 48%;
}
@media #{$sp}{
@include flex-jcSB();
width: 100%;
margin-bottom: 8vw;
&:nth-of-type(2n) {
flex-direction: row-reverse;
.reason-worry__txtarea::before {
left: inherit;
right: -1.5vw;
}
}
&:last-child {
.reason-worry__txt {
padding-left: 3vw;
}
}
}
}
&__pic {
position: relative;
z-index: 1;
@media #{$tb}{
width: 13.7vw;
}
@media #{$sp}{
width: pxtovw(200);
}
}
&__txtarea {
@include flex();
@include flex-diCL();
@include flex-aiC();
@include flex-jcC();
width: 320px;
height: 140px;
//margin-left: -1rem;
margin-top: 4.7rem;
background-color: #fff;
border-radius: 2rem;
@include boxShadow();
position: relative;
z-index: 2;
&:before {
content: "";
position: absolute;
top: 27px;
left: -12px;
margin: auto;
width: 26px;
height: 26px;
transform: rotate(-45deg);
background-color: #fff;
@include boxShadow();
z-index: 1;
}
&:after {
content: "";
display: block;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #fff;
border-radius: 2rem;
z-index: 2;
}
@media #{$tb}{
width: 28.8vw;
height: 13.5vw;
margin-left: -0.5vw;
margin-top: 4vw;
&:before {
width: 2vw;
height: 2vw;
left: -1vw;
}
}
@media #{$sp}{
width: pxtovw(468);
height: pxtovw(204);
margin-left: 0;
margin-top: 0;
border-radius: 1rem;
&:before {
content: "";
top: 50%;
left: -1.5vw;
width: pxtovw(40);
height: pxtovw(40);
transform: translateY(-50%) rotate(-45deg);
}
}
}
&__txt {
width: -webkit-fit-content;
width: -moz-fit-content;
width: fit-content;
color: #434343;
@include contTxt();
font-feature-settings:inherit;
font-weight: bold;
letter-spacing: 0.1em;
position: relative;
z-index: 3;
em,strong {
color: #db1500;
}
@media #{$tb}{
font-size: 1.8vw;
line-height: 3.2vw;
}
@media #{$sp}{
font-size: pxtovw(26);
line-height: pxtovw(50);
}
}
}
&-intro {
margin-top: -3rem;
padding-bottom: 5rem;
background: url(../images/reason/reason-intro_bg_pc.png) center 3.5rem no-repeat;
@media #{$tb}{
margin-top: -3rem;
padding-bottom: 8vw;
background-position-y: 30vw;
background-size: cover;
}
@media (max-width:1024px) and (min-width:768px){
background-position: center 30vw;
}
@media #{$sp}{
margin-top: 0;
padding-bottom: 9vw;
background: url(../images/reason/reason-intro_bg_sp.png) center 45vw ;
background-size: 100%;
}
&__header {
@include contHeader();
margin-bottom: 2.5rem;
position: relative;
z-index: 2;
img {
@include fitImg();
height: 385px;
}
@media #{$tb}{
img {
height: 38vw;
}
}
@media #{$sp}{
margin-top: -8vw;
img {
height: auto;
}
}
}
&__container {
@include contContainer();
padding: 0;
position: relative;
z-index: 3;
@media #{$sp}{
padding: 0 1.6%;
}
}
&__ttl {
margin-bottom: 3rem;
img{
margin: 0 auto;
display: block;
}
@media #{$tb}{
img {
width: 60vw;
}
}
@media #{$sp}{
width: 96%;
margin: 0 auto 4vw;
display: block;
img {
width: 100%;
}
}
}
&__box {
padding: 2rem;
margin-bottom: 2rem;
background-color: #fff;
@media #{$tb}{
}
@media #{$sp}{
padding: 1.5vw;
margin-bottom: 2vw;
}
}
&__img {
&.scroll-animation {
opacity: 0;
&.is-animated {
-webkit-animation-name: bounceInRight;
animation-name: bounceInRight;
-webkit-animation-duration: 1s;
animation-duration: 1s;
-webkit-animation-duration: 1s;
animation-duration: 1s;
-webkit-animation-fill-mode: forwards;
animation-fill-mode: forwards;
opacity: 0;
}
&.leftin {
&.is-animated {
webkit-animation-name: bounceInLeft;
animation-name: bounceInLeft;
-webkit-animation-duration: 1s;
animation-duration: 1s;
-webkit-animation-duration: 1s;
animation-duration: 1s;
-webkit-animation-fill-mode: forwards;
animation-fill-mode: forwards;
opacity: 0;
}
}
}
}
}
@keyframes bounceInLeft {
from,
60%,
75%,
90%,
to {
-webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}
0% {
opacity: 0;
-webkit-transform: translate3d(-3000px, 0, 0) scaleX(3);
transform: translate3d(-3000px, 0, 0) scaleX(3);
}
60% {
opacity: 1;
-webkit-transform: translate3d(25px, 0, 0) scaleX(1);
transform: translate3d(25px, 0, 0) scaleX(1);
}
75% {
opacity: 1;
-webkit-transform: translate3d(-10px, 0, 0) scaleX(0.98);
transform: translate3d(-10px, 0, 0) scaleX(0.98);
}
90% {
opacity: 1;
-webkit-transform: translate3d(5px, 0, 0) scaleX(0.995);
transform: translate3d(5px, 0, 0) scaleX(0.995);
}
to {
opacity: 1;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
}
@keyframes bounceInRight {
from,
60%,
75%,
90%,
to {
-webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}
from {
opacity: 0;
-webkit-transform: translate3d(3000px, 0, 0) scaleX(3);
transform: translate3d(3000px, 0, 0) scaleX(3);
}
60% {
opacity: 1;
-webkit-transform: translate3d(-25px, 0, 0) scaleX(1);
transform: translate3d(-25px, 0, 0) scaleX(1);
}
75% {
opacity: 1;
-webkit-transform: translate3d(10px, 0, 0) scaleX(0.98);
transform: translate3d(10px, 0, 0) scaleX(0.98);
}
90% {
opacity: 1;
-webkit-transform: translate3d(-5px, 0, 0) scaleX(0.995);
transform: translate3d(-5px, 0, 0) scaleX(0.995);
}
to {
opacity: 1;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
}
&-choice {
@media #{$tb}{
}
@media #{$sp}{
}
&__header {
@include contHeader();
img {
@include fitImg();
height: 359px;
}
@media #{$tb}{
img {
height: 35vw;
}
}
@media #{$sp}{
margin-bottom: 8vw;
img {
height: auto;
}
}
}
&__list {
margin-top: -6rem;
}
&__item {
&:nth-of-type(2) {
.reason-choice__ttl img {
height: 451px;
}
}
&:nth-of-type(3) {
.reason-choice__ttl img {
height: 445px;
}
}
@media #{$tb}{
padding-bottom: 2vw;
&:nth-of-type(2) {
.reason-choice__ttl img {
height: 40vw;
}
}
&:nth-of-type(3) {
.reason-choice__ttl img {
height: 40vw;
}
}
}
@media #{$sp}{
padding-bottom: 6vw;
&:nth-of-type(2) {
.reason-choice__ttl {
margin-bottom: 5vw;
img {
height: auto;
}
}
}
&:nth-of-type(3) {
.reason-choice__ttl {
margin-bottom: 8vw;
img {
height: auto;
}
}
}
}
}
&__container {
@include contContainer();
max-width: 1024px;
}
&__ttl {
margin-bottom: 4rem;
img {
@include fitImg();
height: 449px;
}
@media #{$tb}{
margin-bottom: 5vw;
img {
height: 40vw;
}
}
@media #{$sp}{
margin-bottom: 3vw;
img {
height: auto;
}
}
}
&__txt {
@include contTxt();
margin-bottom: 4rem;
&.mb_long {
margin-bottom: 8rem;
}
&.mb_mid {
margin-bottom: 3rem;
}
&.mb_short {
margin-bottom: 2rem;
}
@media #{$tb}{
margin-bottom: 5vw;
&.mb_short,&.mb_mid,&.mb_long {
margin-bottom: 5vw;
}
}
@media #{$sp}{
margin-bottom: 6vw;
&.mb_short,&.mb_mid,&.mb_long {
margin-bottom: 6vw;
}
&.mb_short_sp {
margin-bottom: 1vw;
}
&.mb_long {
margin-bottom: 10vw;
}
}
}
&__img {
margin-bottom: 2.5rem;
&.float {
float: right;
margin-left: 3.4rem;
}
&.m-negative {
margin-right: -4.5rem;
margin-top: -2rem;
}
&.m-negative_mr {
margin-right: -5rem;
}
&.mb-long {
margin-bottom: 4rem;
margin-left: -2px;
margin-right: -2px;
}
&.mt-6 {
margin-top: 6rem;
}
@media #{$tb}{
margin-bottom: 5vw;
&.float {
margin-left: 2.5vw;
}
&.mb-long {
margin-bottom: 5vw;
margin-left: 0;
margin-right: 0;
}
&.m-negative {
margin-right: -6vw;
margin-top: -4vw;
margin-bottom: -1vw;
}
&.m-negative_mr {
margin-right: -3rem;
}
&.mt-6 {
margin-top: 6vw;
}
}
@media #{$sp}{
margin-bottom: 4vw;
&.float {
margin-left: 3vw;
}
&.m-negative {
margin-right: -2vw;
margin-top: -13vw;
margin-bottom: 1vw;
}
&.m-negative_mr {
margin-right: -4vw;
}
&.img-logo {
width: pxtovw(229);
margin-top: 6vw;
}
&.mb-long {
margin-bottom: 4vw;
}
&.mt-6 {
margin-top: 6vw;
}
}
}
&__box {
margin-bottom: 10rem;
&__inner {
margin-top: -14rem;
padding-top: 14.5rem;
padding-bottom: 6rem;
border: 2px solid #3bcacf;
border-radius: 2rem;
overflow: hidden;
background: url(../images/reason/reason-choice__box_bg_pc.png) top center no-repeat;
}
&__ttl {
}
&__txt {
@include contTxt();
padding: 0 4rem 3rem;
}
&__img {
@include flex();
@include flex-jcC();
}
&__link {
@include flex();
@include flex-jcC();
margin-top: -3rem;
a {
width: 100%;
max-width: 460px;
display: block;
font-size: 1.8rem;
line-height: 6rem;
letter-spacing: 0.12em;
color: #fff;
background-color: #004fa6;
font-weight: bold;
text-align: center;
border-radius: 3rem;
position: relative;
margin: auto;
&:after {
content: "";
position: absolute;
top: 50%;
transform: translateY(-50%);
right: 2rem;
width: 25px;
height: 22px;
background: url(../images/reason/reason-choice__box_icon_pc.png) center no-repeat;
background-size: contain;
}
}
}
@media #{$tb}{
margin-bottom: 6vw;
&__img {
padding: 0 6%;
}
}
@media #{$sp}{
margin-bottom: 0;
&__inner {
margin-top: -19.8vw;
padding-top: 24vw;
padding-bottom: 5vw;
border: 1px solid #3bcacf;
border-radius: 1rem;
overflow: hidden;
background: url(../images/reason/reason-choice__box_bg_sp.png) top center no-repeat;
background-size: contain;
}
&__ttl {
margin-left: -2.5vw;
width: 78vw;
}
&__img {
width: 100%;
margin-bottom: 6vw;
padding-left: pxtovw(30);
padding-right: pxtovw(30);
}
&__txt {
width: 100%;
font-size: pxtovw(24);
padding-left: pxtovw(30);
padding-right: pxtovw(30);
padding-bottom: 5vw;
font-feature-settings: inherit;
}
&__link {
margin-top: 0;
a {
margin: auto;
max-width: pxtovw(500);
font-size: pxtovw(24);
line-height: pxtovw(70);
letter-spacing: 0.12em;
border-radius: pxtovw(35);
&:after {
right: 5vw;
width: pxtovw(27);
height: pxtovw(27);
background: url(../images/reason/reason-choice__box_icon_sp.png) center no-repeat;
background-size: contain;
}
}
}
}
}
&__license{
figure{
margin: 0;
}
p{
margin-top: -5px;
border: 2px solid #4488dc;
border-top: none;
padding: 3%;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
}
}
}
&-banner {
margin-bottom: 6rem;
@media #{$tb}{
margin-bottom: 5vw;
}
@media #{$sp}{
margin-bottom: 6vw;
margin-top: 6vw;
}
&__link {
@include flex();
@include flex-jcC();
&.mb-3 {
margin-bottom: 3rem;
}
@media #{$tb}{
padding-left: 5%;
padding-right: 5%;
&.w-full {
padding-left: 6%;
padding-right: 6%;
}
&.mb-3 {
margin-bottom: 3vw;
}
}
@media #{$sp}{
padding-left: 0;
padding-right: 0;
max-width: pxtovw(688);
margin: auto;
&.w-full {
max-width: pxtovw(680);
padding-left: 0;
padding-right: 0;
}
}
}
&__txt {
@include contTxt();
}
}
&-voice {
padding-bottom: 7rem;
background: url(../images/reason/reason-voice_bg_pc.png) center 15rem no-repeat;
position: relative;
z-index: 2;
@media #{$tb}{
padding-bottom: 10vw;
background-position-y: 10vw;
background-size: cover;
background-position-y: bottom;
}
@media #{$sp}{
padding-bottom: 15vw;
background: url(../images/reason/reason-voice_bg_sp.png) center 27vw no-repeat;
background-size: 100%;
background-position-y: bottom;
}
&__header {
@include contHeader();
margin-bottom: 11rem;
img {
@include fitImg();
height: 226px;
}
@media #{$tb}{
margin-bottom: 12vw;
img {
height: 20vw;
}
}
@media #{$sp}{
margin-bottom: 18vw;
img {
height: auto;
}
}
}
&__container {
@include contContainer();
padding: 0 3rem;
}
&__list {
display: grid;
grid-template-columns: 1fr 1fr;
margin-left: -2rem;
margin-right: -2rem;
margin-top: -4.2rem;
margin-bottom: -4.2rem;
@media #{$sp}{
grid-template-columns: 1fr;
}
@media #{$tb}{
margin: -5vw -1.4vw;
}
@media #{$sp}{
margin: -8vw 0;
}
}
&__item {
margin: 4.2rem 2rem;
padding: 4rem 4rem 2.5rem;
background-color: #fff;
border-radius: 2rem;
position: relative;
@media #{$tb}{
margin: 5vw 1.4vw;
padding: 5vw 3vw 2.8vw;
&:nth-of-type(1) {
.reason-voice__name {
img {
width: 18vw;
}
}
}
&:nth-of-type(2) {
.reason-voice__name {
img {
width: 21.3vw;
}
}
}
&:nth-of-type(3) {
.reason-voice__name {
img {
width: 18vw;
}
}
}
&:nth-of-type(4) {
.reason-voice__name {
img {
width: 18.1vw;
}
}
}
}
@media #{$sp}{
padding: 5vw pxtovw(40) 4.8vw!important;
border-radius: 1rem;
margin: 8vw 0;
&:nth-of-type(1) {
.reason-voice__name {
img {
width: pxtovw(226);
}
}
}
&:nth-of-type(2) {
.reason-voice__name {
img {
width: pxtovw(268);
}
}
}
&:nth-of-type(3) {
.reason-voice__name {
img {
width: pxtovw(224);
}
}
}
&:nth-of-type(4) {
.reason-voice__name {
img {
width: pxtovw(227);
}
}
}
}
}
&__pic {
position: absolute;
top: -6rem;
left: 0;
@media #{$tb}{
width: 15.6vw;
}
@media #{$sp}{
width: pxtovw(175);
top: -11vw;
left: 2vw;
}
}
&__name {
margin-bottom: 3rem;
padding-left: 13rem;
@media #{$tb}{
margin-bottom: 3vw;
padding-left: 12vw;
}
@media #{$sp}{
margin-bottom: 4vw;
padding-left: 23vw;
}
}
&__txt {
@include contTxt();
@media #{$tb}{
font-size: 1.8vw;
line-height: 3.7vw;
}
@media #{$sp}{
font-size: pxtovw(26);
line-height: pxtovw(50);
}
}
}
&-message {
margin-top: -2.5rem;
margin-bottom: -2rem;
padding-top: 7rem;
padding-bottom: 14rem;
background: url(../images/reason/reason-message_bg_pc.webp) center bottom no-repeat;
position: relative;
z-index: 1;
@media #{$tb}{
padding-top: 11vw;
padding-bottom: 12vw;
background-size: cover;
}
@media #{$sp}{
padding-top: 16vw;
padding-bottom: 17vw;
margin-top: -4vw;
margin-bottom: 0;
background: url(../images/reason/reason-message_bg_sp.webp) center bottom no-repeat;
background-size: cover;
}
&__container {
@include contContainer();
}
&__header {
@include flex();
@include flex-jcC();
@media #{$sp}{
img {
width: pxtovw(648);
}
}
}
&__box {
@include flex();
@include flex-jcSB();
@include flex-aiC();
margin-top: -4.5rem;
padding: 6.5rem 4rem 3rem 2rem;
background-color: #fff;
border-radius: 2rem;
@media #{$tb}{
margin-top: -4vw;
padding: 6vw 5vw 5vw;
}
@media #{$sp}{
margin-top: -11vw;
padding: 14vw pxtovw(40) 6vw;
border-radius: 1rem;
}
}
&__img {
@media #{$tb}{
margin: 0 auto 3vw;
}
@media #{$sp}{
margin-bottom: 4vw;
}
}
&__txt {
width: calc(100% - 520px);
@include contTxt();
@media #{$tb}{
width: 100%;
}
@media #{$sp}{
width: 100%;
font-size: pxtovw(26);
}
}
}
}




