@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; } } //ブレイクポイントを指定------ここまで //元々使用していたCSS------ここから html, body ,#wrapper {position: relative;} /* 下層ページのheaderimg */ #header-img { background: url("../img/header-img10.png");/* ここの画像だけ変える */ background-repeat: no-repeat; background-position: right center; background-size: cover; } /* ------------------ */ article h2 { background-color: #fff; display: inline-block; padding: 0.5em 2em; font-size: 25px; font-size: 2.5rem; font-weight: bold; color: #333; position: relative; } article h2::before { position: absolute; left: 0; top: 0; content: ''; border-bottom: 10px solid transparent; border-right: 10px solid transparent; border-left: 10px solid #FFF100; border-top: 10px solid #FFF100; box-sizing: border-box; } article h2::after { position: absolute; right: 0; bottom: 0; content: ''; border-top: 10px solid transparent; border-left: 10px solid transparent; border-right: 10px solid #FFF100; border-bottom: 10px solid #FFF100; box-sizing: border-box; } div.google-map{display:none} /* ------------------ */ #form-top { margin-top: 5rem; text-align: center; } .top1 p { margin: 5rem 0; font-size: 15px; font-weight: normal; color: #3c3736; } .top1 p span { font-family: YuGothic, "Yu Gothic medium", "Hiragino Sans", Meiryo, "sans-serif"; font-size: 16px; color: #fff; background-color: #006138; padding: 4px 8px; border-radius: 4px; margin-right: 5px; } .p-contact { font-size: 20px; font-size: 2rem; font-weight: bold; text-align: center; margin-top: 3rem; color: #3e3934; } .phone-box { background-color: rgba(0,145,66,0.1); border-radius: 1rem; color: #006138; text-align: center; padding-top: 1rem; margin-bottom: 3rem; } .phone p:nth-of-type(odd) { display: inline-block; vertical-align: middle; font-size: 38px; font-weight: bold; } .phone p:nth-of-type(even) { display: inline-block; vertical-align: middle; font-size: 18.5px; font-weight: bold; } .phone { border-bottom: solid 0.5px #3c3736; } .fax p { font-size: 30px; padding: 1rem; } .fax p span { font-size: 22.5px; } #form { margin-bottom: 5rem; } .bn-form { width: 83%; } /*----------thanks----------*/ .thanks-box h3{ color: #006138; font-size: 50px; } .thanks-box p{ padding: 5rem 0 10rem 0; } .contact-button{ font-weight: 500; padding : 20px 55px; vertical-align : middle; line-height : 1; border: 1px solid #ffffff; background : #006138; border-radius : 0.5rem; color : #fff; -webkit-appearance : none; } .contact-button:hover{ cursor : pointer; background : #fff; color: #006138; border: 1px solid #006138; } @media (max-width: 1199px) { } @media (max-width: 991px) { } @media (max-width: 767px) { .bn-form { width: 100%; } .thanks-box h3 { font-size: 40px; } } @media (max-width: 575px) { .top1 p { margin: 3rem; font-size: 14px; text-align: justify; } .top1 p span { font-size: 15px; } .p-contact { font-size: 15px; margin-top: 1rem; } .phone p:nth-of-type(odd) { font-size: 26px; } .phone p:nth-of-type(even) { font-size: 16px; } .fax p { font-size: 20px; padding: 1rem; } .fax p span { font-size: 18px; } .thanks-box h3 { font-size: 30px; } } //元々使用していたCSS------ここまで //フォーム変更追加CSS-----------------------------------------------------------------ここから //全体のカラー設定(一括)----ここから $main-color: #006138; $sub-color: #C79E82; //全体のカラー設定(一括)----ここまで //introduction------------------------------------------------------------------ここから #introduction { margin-top: 4rem; margin-bottom: 2rem; text-align: center; @include sm { margin-top: 2rem; } @include xs { margin-bottom: 0rem; } p{ span{ background-color: #8C2126; padding: 0 1rem 0.5rem; color: #fff; font-weight: bold; border-radius: 0.5rem; } @include xs { text-align: justify; } } dl { margin-top: 6rem; @include xs { margin-top: 3rem; } dt{ font-size: 20px; font-size: 2rem; letter-spacing: 2px; @include xs { font-size: 16px; font-size: 1.6rem; letter-spacing:0; } } dd{ background-color: #fff; margin-top: 1rem; padding: 2rem; display: flex; align-items: center; justify-content: center; @include xs { display: block; } a{ font-weight: 600; color: $main-color; span{ font-size: 38px; font-size: 3.8rem; svg{ margin-right: 1.5rem; } } } } } } //privacypolicy-mini------------------------------------------------------------ここから #privacypolicy-mini{ border: 1px solid #c3c3c3; padding: 4rem 3rem; margin-top: 2rem; background-color: #fff; h4 { font-size: 22px; font-size: 2rem; font-weight: 600; margin-bottom: 2rem; } p{ text-align: justify; } } //thanks-box--------------------------------------------------------------------ここから .thanks-box { padding-bottom: 10rem; h3 { font-size: 2.5rem; font-size: 25px; margin-bottom: 4rem; padding: 0; border: none; margin-top: 4rem; } p { margin-bottom: 5rem; } a { display: inline-block; font-weight: bold; padding: 1.4rem 6rem; vertical-align: middle; line-height: 1; border: 1px solid $main-color; background: $main-color; color: #fff; -webkit-appearance: none; transition: 0.3s; &:hover { color: $main-color; background-color: #fff; } } } /* ---------------------- for JavaScript ここから ---------------------- */ form { font-weight: 400; } //form#mail_form dl dt span.required{ // display : inline-block; // color : #fff; // line-height : 1; // margin-right: 1rem; // padding: 0.4rem 0.5rem; // background-color: $main-color; // font-size: 90%; // border-radius: 3px; // font-weight: normal; //} form#mail_form dl dt span.optional{ display: none; } form#mail_form dl dd span.error_blank, form#mail_form dl dd span.error_format, form#mail_form dl dd span.error_match{ display : block; color : #ff0000; margin-top : 3px; } span.loading{ width : 50px; height : 50px; border-radius : 50%; border-top : 5px solid rgba( 255, 255, 255, 0.2 ); border-right : 5px solid rgba( 255, 255, 255, 0.2 ); border-bottom : 5px solid rgba( 255, 255, 255, 0.2 ); border-left : 5px solid #ffffff; -webkit-transform : translateZ( 0 ); -ms-transform : translateZ( 0 ); transform : translateZ( 0 ); -webkit-animation : load-circle 1.0s linear infinite; animation : load-circle 1.0s linear infinite; position : absolute; top : 50%; left : 50%; margin-top : -25px; margin-left : -25px; } @-webkit-keyframes load-circle{ 0%{ -webkit-transform : rotate( 0deg ); transform : rotate( 0deg ); } 100%{ -webkit-transform : rotate( 360deg ); transform : rotate( 360deg ); } } @keyframes load-circle{ 0%{ -webkit-transform : rotate( 0deg ); transform : rotate( 0deg ); } 100%{ -webkit-transform : rotate( 360deg ); transform : rotate( 360deg ); } } /* ---------------------- for JavaScript ここから ---------------------- */ form#mail_form dt { margin-top: 2rem; padding-top: 2rem; font-weight: 600; color: #3e3c37; } form#mail_form dt:first-child{ border-top: none; } form#mail_form dd:nth-child(2), form#mail_form dd:nth-child(4), { margin-bottom: 0; margin-top: 0.5rem; } form#mail_form dd:last-child{ padding-bottom: 2rem; } form#mail_form input[type="text"], form#mail_form input[type="email"], form#mail_form input[type="tel"], form#mail_form textarea{ width : 100%; padding : 0.5rem 1rem; border : 1px solid #b2b2b2; border-radius : 3px; background : #efefef; -webkit-appearance : none; font-size : 18px; margin-top : 5px; } form#mail_form input[type="text"]:focus, form#mail_form input[type="email"]:focus, form#mail_form input[type="tel"]:focus, form#mail_form textarea:focus{ border : 1px solid #b2b2b2; background-color: #efefef; outline: none; } //form#mail_form input[type="radio"], //form#mail_form input[type="checkbox"]{ // margin-right : 5px; // margin-left: 2em; // accent-color: #006138; // @include xs { // margin-left: 0; // } //} form#mail_form input[type="radio"], form#mail_form input[type="checkbox"]{ margin-right : 5px; margin-left: 0; accent-color: #006138; } form#mail_form label { margin-right: 2em; } form#mail_form select{ font-size : 100%; margin-top : 5px; } form#mail_form textarea{ display : block; width : 100%; max-width : 100%; height : 200px; padding : 1rem; resize : vertical; border : 1px solid #b2b2b2; border-radius : 3px; background : #efefef; -webkit-appearance : none; font-size : 100%; font-family : inherit; } form#mail_form ul{ list-style-type : none; } form#mail_form ul li label:hover{ cursor : pointer; } form#mail_form input#postal{ width: 30%; } form#mail_form input#postal + a{ display : inline-block; padding : 5px 15px; margin-left: 0.5rem; background : #FDEFF5; border : 1px solid #C7000B; border-radius : 3px; color : #C7000B; font-family : inherit; text-decoration : none; transition: 0.3s; } form#mail_form input#postal + a:hover{ cursor : pointer; background : #C7000B; color: #fff; } form#mail_form ul.kind-list li{ display: inline-block; min-width: 40%; } form#mail_form p#form_submit{ width : 90%; margin : 0 auto; padding: 5rem 0 10rem 0; } form#mail_form input[type="button"]{ font-weight: 600; font-size: 20px; font-size: 2rem; letter-spacing: 0.06em; padding : 1.4rem 6rem; vertical-align : middle; line-height : 1; border: 2px solid $main-color; background : $main-color; color: #fff; -webkit-appearance : none; border-radius: 6px; transition: 0.3s; @include xs { letter-spacing: 0; padding : 1.4rem 3.5rem; } } form#mail_form input[type="button"]:hover{ cursor : pointer; border: 2px solid $main-color; background : #fff; color: $main-color; } form#mail_form dt.optional{ position: relative; } form#mail_form dt.optional::before{ content: "任意"; display: inline-block; color: $main-color; border: 1px solid $main-color; line-height: 1; margin-right: 1rem; padding: 0.5rem; background-color: #fff; font-size: 90%; border-radius: 3px; font-weight: normal; } form#mail_form dt.required::before{ content: "必須"; display : inline-block; color : #fff; border: 1px solid $main-color; line-height : 1; margin-right: 1rem; padding: 0.4rem 0.5rem; background-color: $main-color; font-size: 90%; border-radius: 3px; font-weight: normal; } input:-webkit-autofill { box-shadow: 0 0 0 1000px #efefef inset; } @media (max-width: 767px) { #mainarea section p:nth-child(1) { text-align: justify!important; } #mainarea section p:nth-child(1) br { display: none; } h3 br{ display: inline-block; } }