/* screens smaller than 1800---------------------------------------------------------- */
@media only screen and (max-width:1799px) {
  .mv_in {
    max-width: 96%;
  }


  /*------------------------------------------------------------------------------*/
}

/*------------------------------------------------------------------------------*/



/* screens smaller than 1560---------------------------------------------------------- */
@media only screen and (min-width:1200px) and (max-width:1559px) {

  #header_in,
  #footer_in {
    width: 98%;
    font-size: 15px;
  }

  #h_tel,
  #f_tel {
    margin-right: 10px;
  }

  #h_tel .sub,
  #f_tel .sub {
    font-size: 30px;
  }

  #h_tel .txt,
  #f_tel .txt {
    font-size: 13px;
  }

  #h_contact a,
  #f_contact a {
    font-size: 15px;
    width: 200px;
  }


  /*------------------------------------------------------------------------------*/
}

/*------------------------------------------------------------------------------*/


/* screens smaller than 1200---------------------------------------------------------- */
@media only screen and (max-width:1199px) {

  /*layout*/
  /*------------------------------------------------------------------------------*/
  .inner01 {
    width: 95%;
  }

  .inner02 {
    width: 95%;
  }

  .tel {
    pointer-events: auto;
  }

  /*header*/
  /*------------------------------------------------------------------------------*/
  #header_in,
  #footer_in {
    width: 98%;
    padding-right: 1%;
  }

  #header_in>a,
  #footer_in>a {
    display: none;
  }

  #h_tel,
  #f_tel {
    margin-right: 2.5vw;
  }

  /*bg*/
  /*------------------------------------------------------------------------------*/
  .bg01,
  .bg02 {
    padding: 50px 0 40px;
  }

  .bg01_in::before,
  .bg02_in::before,
  .bg03_in::before {
    width: 75vw;
    bottom: -70px;
  }

  .bg04_in::before,
  .bg05_in::before {
    width: 75vw;
    bottom: -70px;
  }

  .bg05_in::before {
    width: 83vw;
    bottom: -4.16vw;
  }

  .bg01_in::after,
  .bg02_in::after,
  .bg03_in::after {
    bottom: -70px;
  }

  .bg04_in::after,
  .bg05_in::after {
    bottom: -70px;
  }

  .bg05_in::after {
    bottom: -4.16vw;
  }

  /*chosen*/
  /*------------------------------------------------------------------------------*/
  .chosen_img {
    width: 100%;
    padding: clamp(60px, 9vw, 108px) 2.5% clamp(100px, 13.58vw, 163px);
  }

  .chosen_img::before {
    width: 53.5vw;
    height: 71.416vw;
    left: -33vw;
    bottom: auto;
    top: -20vw;
  }

  .chosen_img::after {
    width: 26.333vw;
    height: 75vw;
    top: auto;
    bottom: -33vw;
    right: -10vw;
  }

  .chosen_in .title {
    font-size: clamp(1.25rem, 0.614rem + 3.182vw, 3rem);
    margin-bottom: 40px;
  }

  .chosen_in .text {
    font-size: clamp(16px, 1.83vw, 22px);
  }

  /*product*/
  /*------------------------------------------------------------------------------*/
  #product.bg01 {
    padding: 45px 0 30px;
  }

  #product .subtitle {
    padding-left: 5%;
    width: 90%;
  }

  /*cta*/
  /*------------------------------------------------------------------------------*/
  .cta_wrap {
    width: 95%;
  }

  .cta_wrap::before {
    width: 85vw;
  }

  .cta_in {
    width: 95%;
    top: 5%;
    padding: 6.7% 5% 4.3%;
  }

  .cta_in .title {
    font-size: clamp(2.25rem, 0.341rem + 9.545vw, 7.5rem);
    margin-left: 3vw;
  }

  .cta_in .text {
    font-size: clamp(1.25rem, 0.932rem + 1.591vw, 2.125rem);
  }

  .cta_box {
    padding: 1.8vw 2.8vw;
  }

  .cta_box .headline {
    font-size: clamp(1.125rem, 0.989rem + 0.682vw, 1.5rem);
    line-height: 1.4;
  }

  .tel_box a {
    font-size: clamp(1.25rem, 1.000rem + 1.25vw, 1.938rem);
  }

  .mail_box a {
    padding: 3px 2em;
  }



  /*worries*/
  /*------------------------------------------------------------------------------*/
  #worries.bg02 {
    padding: 30px 0 20px;
  }

  /*reason*/
  /*------------------------------------------------------------------------------*/
  #reason .box {
    padding: 0 10px;
  }

  #reason .img_box {
    width: 39vw;
  }

  #reason .rb02:before,
  #reason .rb04:before {
    left: auto;
    right: 40%;
  }

  #reason .rb01 .subtitle,
  #reason .rb03 .subtitle,
  #reason .rb05 .subtitle {
    padding: 0;
  }

  /*message*/
  /*------------------------------------------------------------------------------*/
  #message .inner01 {
    padding: 0 20px;
  }

  #message .img_box {
    margin-left: -60px;
  }

  /*case*/
  /*------------------------------------------------------------------------------*/
  .case_in {
    width: 95%;
  }

  /*FAQ*/
  /*------------------------------------------------------------------------------*/
  #faq {
    margin-bottom: 100px;
  }

  #faq .title_02 {
    font-size: clamp(1.375rem, 1.057rem + 1.591vw, 2.25rem);
  }

  /*company*/
  /*------------------------------------------------------------------------------*/
  #company {
    margin-bottom: clamp(3.125rem, 1.534rem + 7.955vw, 7.5rem);
    ;
  }

  #profile {
    margin-bottom: clamp(3.75rem, 1.705rem + 10.227vw, 9.375rem);
    ;
  }

  .company_in {
    width: 95%;
  }

  /*map*/
  /*------------------------------------------------------------------------------*/
  #map .title {
    font-size: clamp(2.25rem, 0.341rem + 9.545vw, 7.5rem);
    margin-left: 3.33vw;
  }

  .gmap {
    padding-bottom: 56.25%;
    margin-top: -2.5vw;
  }


  /*------------------------------------------------------------------------------*/
}

/*------------------------------------------------------------------------------*/



/* screens smaller than 768---------------------------------------------------------- */
@media only screen and (max-width:768px) {

  /*layout*/
  /*------------------------------------------------------------------------------*/
  /*header*/
  /*------------------------------------------------------------------------------*/
  #h_tel,
  #f_tel {
    margin-right: 0;
  }

  #h_tel .sub,
  #h_tel .txt,
  #h_contact .txt,
  #f_tel .sub,
  #f_tel .txt,
  #f_contact .txt {
    display: none;
  }

  #h_contact a,
  #h_tel a,
  #f_contact a,
  #f_tel a {
    width: 22vw;
    line-height: 80px;
    display: block;
    text-align: center;
  }

  #h_tel .tel_icon,
  #f_tel .tel_icon {
    display: block;
    background: var(--primary-color);
  }

  #h_contact .mail_icon,
  #f_contact .mail_icon {
    display: block;
  }

  /*chosen*/
  /*------------------------------------------------------------------------------*/
  .chosen_img::before {
    left: -28vw;
  }

  .chosen_img::after {
    bottom: -20vw;
  }

  .chosen_in .text {
    text-wrap: balance;
  }

  .chosen_in .text br {
    display: none;
  }

  /*product*/
  /*------------------------------------------------------------------------------*/
  #product .in {
    width: 49%;
  }

  #product .subtitle {
    padding-left: 5%;
    width: 90%;
    margin: -19px 0 0 -2%;
  }

  /*cta*/
  /*------------------------------------------------------------------------------*/
  .cta_box_in {
    flex-wrap: wrap;
  }

  .tel_box {
    width: 100%;
  }

  .mail_box {
    width: 100%;
    padding: 8px 0;
  }

  .mail_box a {
    padding: 3px 0.5em;
    display: block;
    max-width: 95%;
    margin: 0 auto;
  }


  /*worries*/
  /*------------------------------------------------------------------------------*/
  #worries {
    margin-top: 100px;
  }

  #worries .inner01 {
    padding: 20px 10px 0;
  }

  /*reason*/
  /*------------------------------------------------------------------------------*/
  #reason .box:before {
    bottom: 20px;
  }

  #reason .rb01:before,
  #reason .rb02:before,
  #reason .rb03:before,
  #reason .rb04:before,
  #reason .rb05:before {
    left: auto;
    right: 0;
  }

  #reason .img_box {
    width: 100%;
    max-width: 480px;
    margin: 0 auto 20px;
  }

  #reason .img_box .in:before {
    height: 100%;
  }

  #reason .rb01 .img_box .in:after,
  #reason .rb03 .img_box .in:after,
  #reason .rb05 .img_box .in:after {
    top: auto;
  }

  #reason .subtitle {
    writing-mode: horizontal-tb;
    margin-bottom: 10px;
    width: 100%;
  }

  #reason .txt_box {
    width: 100%;
  }

  #reason .rb01 .subtitle,
  #reason .rb03 .subtitle,
  #reason .rb05 .subtitle {
    padding: 0;
  }

  #reason .rb02 .img_box,
  #reason .rb04 .img_box {
    order: 1;
  }

  #reason .rb02 .subtitle,
  #reason .rb04 .subtitle {
    order: 2;
  }

  #reason .rb02 .txt_box,
  #reason .rb04 .txt_box {
    order: 3;
  }

  #reason .txt_box .font01 {
    margin-bottom: 10px;
    text-align: left;
  }

  /*message*/
  /*------------------------------------------------------------------------------*/
  #message .inner01 {
    padding: 0;
  }

  #message .in {
    padding: 20px;
  }

  #message .img_box {
    margin: -40px 0 20px;
    float: none;
    padding: 0;
    text-align: center;
  }

  /*case*/
  /*------------------------------------------------------------------------------*/
  #case {
    padding: 50px 0 0;
  }

  .case_item_bg {
    margin-bottom: 40px;
  }

  .case_item_bg::before {
    content: none;
  }

  .case_item {
    flex-wrap: wrap;
    padding: 10px;
    border: 1px solid var(--primary-color);
  }

  .case_item::before {
    content: none;
  }

  .case_item::after {
    content: none;
  }

  .case_img {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
  }

  .case_text {
    width: 100%;
  }

  .case_text .title {
    font-size: clamp(1.25rem, 1.071rem + 0.893vw, 1.5rem);
    flex-direction: column;
  }

  .case_text .title .sub {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .case_text .subtext {
    justify-content: center;
  }

  .case_text .subtext::before {
    content: none;
  }


  /*flow*/
  /*------------------------------------------------------------------------------*/
  #flow {
    padding: 50px 0;
  }

  .flow_list {
    gap: 30px 2%;
  }

  .flow_item {
    width: 49%;
  }

  .flow_item .flow_img img {
    margin-left: 0;
  }

  .flow_item .title {
    font-size: clamp(1.25rem, 1.071rem + 0.893vw, 1.5rem);
  }

  .flow_item .title .sub {
    font-size: clamp(0.875rem, 0.607rem + 1.339vw, 1.25rem);
  }

  /*FAQ*/
  /*------------------------------------------------------------------------------*/
  #faq {
    margin-bottom: 50px;
  }

  #faq .title_02 .sub02 {
    margin-left: 0;
    width: 100%;
  }

  #faq .faq_box {
    padding: clamp(0.625rem, 0.268rem + 1.786vw, 1.125rem);
    ;
  }

  #faq .question p {
    font-size: clamp(1.25rem, 1.071rem + 0.893vw, 1.5rem);
  }

  #faq .question .sub {
    font-size: clamp(1.625rem, 1.357rem + 1.339vw, 2rem);
  }

  #faq .answer p {
    width: 100%;
    padding: 0.5em;
  }

  #faq .answer .sub {
    font-size: clamp(1.625rem, 1.357rem + 1.339vw, 2rem);
  }


  /*contact*/
  /*------------------------------------------------------------------------------*/
  #contact {
    margin-bottom: 50px;
  }

  #contact .tel_box {
    width: 100%;
  }

  #contact .subtext {
    margin-bottom: 30px;
    text-align: left;
  }

  #mailform {
    gap: 10px;
  }

  #mailform .w50 {
    width: 100%;
  }

  #mailform .main {
    font-size: 18px;
  }

  #mailform textarea {
    height: 100px !important;
  }

  #mailform .list_box {
    gap: 1em;
  }

  #mailform input[type="submit"] {
    width: 100%;
    height: 50px;
  }



  /*company*/
  /*------------------------------------------------------------------------------*/
  .company_in .title {
    font-size: clamp(1.5rem, 1.054rem + 2.232vw, 2.125rem);
    flex-direction: column;
    gap: unset;
  }

  .company_in .title .sub {
    font-size: clamp(2.125rem, 1.589rem + 2.679vw, 2.875rem);
  }

  #company .list_box {
    border: none;
    padding: 0;
  }

  #company .list_box p {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-left: 0;
    margin-bottom: 0 !important;
  }

  #company .list_box p .item {
    width: 100%;
    padding: 5px 0.5em;
  }

  #company .list_box p.no-item .item {
    display: none;
  }

  #company .list_box p .detail {
    border: none;
    padding: 1em 0.5em;
    min-height: auto;
    min-height: initial;
  }

  #company .list_box p.no-item .detail {
    padding: 0 0.5em 1em;
  }


  /*pagetop*/
  /*------------------------------------------------------------------------------*/
  #pagetop a {
    padding: 15px 0;
  }
  
  
 #fnavi,
 #fnavi li{
 list-style: none;
 margin: 0;
 padding: 0; 
}
 #fnavi{
 border-top: #fff solid 1px;
display: flex;
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 99;
}
 #fnavi li a{
 display: block;
 text-align: center;
 color: #fff;
 font-size: 1.1em;
 font-weight: bold;
 width: 50vw;
 padding: 2vw;
 line-height: 1em;
 background: var(--primary-color);
}
 #fnavi li:nth-of-type(2) a{
 background: var(--primary-dark);
 }
#fnavi li a img{
max-width: 48px;
width: 6vw;
}


  /*------------------------------------------------------------------------------*/
}

/*------------------------------------------------------------------------------*/



/* screens smaller than 540---------------------------------------------------------- */
@media only screen and (max-width:540px) {

  /*chosen*/
  /*------------------------------------------------------------------------------*/
  .chosen_in .title {
    text-wrap: balance;
  }

  /*product*/
  /*------------------------------------------------------------------------------*/
  #product .in {
    width: 100%;
  }

  #product .product_title .sub {
    margin: 10px 0 20px;
  }

  /*worries*/
  /*------------------------------------------------------------------------------*/
  #worries .box {
    width: 100%;
    margin-bottom: 20px;
  }

  /*flow*/
  /*------------------------------------------------------------------------------*/
  .flow_item {
    width: 100%;
    text-align: center;
  }


  /*------------------------------------------------------------------------------*/
}

/*------------------------------------------------------------------------------*/
