/* ===== header 共通 ===== */
.site-header {
  background: #fff;
  max-width: 980px;
  margin: 0 auto;
  position: relative;
}

.header-catch {
  font-size: 14px;
  padding: 8px 12px;
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
}

.header-left img {
  max-width: 284px;
}

.header-right{}
.header-right img{
  max-width: 334px;
}

/* ===== レスポンシブ切替 ===== */
@media (max-width: 767px) {
  .header-main {
    padding: 12px 6px;
  }
  .site-header {
    border-bottom: 1px solid #e5e5e5;
  }
  .header-catch {
    text-align: center;
    font-size: 11px;
    border-bottom: 1px solid #707070;
  }
  .header-left{
    width: 42%;
  }
  .header-left img{
    width: 100%;
    max-width: 100%;
  }
  .header-right{
    width: 52%;
  }
  .header-right img{
    width: 100%;
    max-width: 100%;
  }
}
@media (min-width: 768px) {}

/* ===== Web来場予約（PC） ===== */
.reservation {
  margin-bottom: 6px;
  position: absolute;
  right: 0;
}


/* ===== レスポンシブ切替 ===== */
@media (max-width: 767px) {
  .pc {
    display: none;
  }
  .header-tel a {
    font-size: 18px;
  }
  .reservation{
    bottom: 212px;
  }
  .reservation img {
    max-width: 43px;
  }
}

@media (min-width: 768px) {
  .sp {
    display: none;
  }
  .reservation {
    top: 0;
  }
  .reservation img {
    max-height: 48px;
  }
}


/* ========================================
 common
 ======================================== */
 html{
   scroll-behavior: smooth;
 }
 body{
   margin: 0;
   font-family: "Noto Sans JP", sans-serif;
   max-width: 100%;
 }
 img{
   width: 100%;
 }
/* ===== レスポンシブ切替 ===== */
@media (max-width: 767px) {}
@media (min-width: 768px) {}
/* ========================================
メインビジュアル
======================================== */
/* ===== レスポンシブ切替 ===== */
@media (max-width: 767px) {}
@media (min-width: 768px) {}
/* ========================================
about-e-mirai
======================================== */
#about-e-mirai{}
#about-e-mirai h2{}
#about-e-mirai h2 img{
  max-width: 751px;
  margin: 0 auto;
  padding: 80px 0 80px;
}
#about-e-mirai .img01{
  max-width: 982px;
  margin: 0 auto;
}
#about-e-mirai .about-wrap{
  border: 3px solid #1E9C66;
  max-width: 980px;
  border-radius: 20px;
  margin: 40px auto 0;
  padding: 50px 20px 50px;
  position: relative;
}
#about-e-mirai .about-wrap::after{
  content: "";
  background-image: url(https://www.asahihome.com/e-mirai/assets/img/e-mirai__img03.png);
  display: block;
  position: absolute;
  width: 142px;
  height: 142px;
  top: -53px;
  right: 40px;
  background-position: center;
  background-size: contain;
}
#about-e-mirai .about-wrap .flex-wrap .text-wrap{
  max-width: 492px;
}
#about-e-mirai .about-wrap::after{}
#about-e-mirai .about-wrap img{
  max-width: 303px;
}
#about-e-mirai .about-wrap h3{
  color: #1E9C66;
  font-size: 50px;
  margin: 0;
}
#about-e-mirai .about-wrap h3 span{
  font-size: 33px;
}
#about-e-mirai .about-wrap p{}
#about-e-mirai .about-wrap p span{
  color: #1E9C66;
}

/* ===== レスポンシブ切替 ===== */
@media (max-width: 767px) {
  #about-e-mirai .about-wrap{
    padding: 30px 20px 20px;
    margin: 16px auto 0;
  }
  #about-e-mirai .about-wrap::after{
    width: 88px;
    height: 88px;
    top: -23px;
    right: 4px;
  }
  #about-e-mirai .about-wrap .flex-wrap{
  }
  #about-e-mirai{
    padding: 0 20px;
  }
  #about-e-mirai .about-wrap img{
    max-width: 179px;
    margin: 0 auto;
  }
  #about-e-mirai .about-wrap h3{
    font-size: 25px;
    margin: 10px 0 0;
  }
  #about-e-mirai .about-wrap h3 span{
    font-size: 18px;
  }
  #about-e-mirai h2 img{
    padding: 10px 0 20px;
    width: 98%;
  }
}
@media (min-width: 768px) {
  #about-e-mirai .about-wrap .flex-wrap{
    max-width: 852px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}
/* ========================================
what_is_gx_house
======================================== */
#what_is_gx_house{
  background-color: #1E9C66;
  background-position: top left, top right;
  background-repeat: no-repeat;
  padding: 20px 20px 100px;
  margin: 60px auto 40px;
}
#what_is_gx_house h2{
  color: #fff;
  font-size: 70px;
  text-align: center;
  position: relative;
}
#what_is_gx_house h2 span{
  font-size: 24px;
  display: block;
  font-weight: 600;
}
#what_is_gx_house h2::after{
  position: absolute;
  content: "";
  display: block;
  max-width: 425px;
  width: 100%;
  height: 1px;
  background-color: #fff;
  left: 0;
  right: 0;
  margin: auto;
  bottom: -20px;
}

#what_is_gx_house .flex-wrap img{
  max-width: 376px;
}
#what_is_gx_house .flex-wrap .text-wrap{
  max-width: 546px;
  color: #fff;
}
#what_is_gx_house .flex-wrap .text-wrap .large{
  font-size: 32px;
  font-family: "Noto Serif JP", serif;
  margin: 0 0 20px;
  line-height: 2;
}
#what_is_gx_house .flex-wrap .text-wrap p{
  font-size: 17px;
  line-height: 1.8;
}
#what_is_gx_house .txt{
  max-width: 980px;
  margin: 30px auto 0;
  color: #fff;
  line-height: 1.8;
  font-size: 17px;
}

/* ===== レスポンシブ切替 ===== */
@media (max-width: 767px) {
  #what_is_gx_house{
    background-image: url(https://www.asahihome.com/e-mirai/assets/img/e-mirai__bg-left-sp.png),url(https://www.asahihome.com/e-mirai/assets/img/e-mirai__bg-right-sp.png);
    background-size: 50px;
    padding: 20px 40px 100px;
  }
  #what_is_gx_house .flex-wrap .text-wrap .large{
    font-size: 22px;
    line-height: 1.8;
    margin: 20px 0 0;
  }
  #what_is_gx_house h2{
    font-size: 28px;
  }
  #what_is_gx_house h2 span{
    font-size: 15px;
  }
  #what_is_gx_house h2::after{
    max-width: 212px;
  }
  #what_is_gx_house .flex-wrap{
    margin: 50px 0 0;
  }
  #what_is_gx_house .flex-wrap .text-wrap p{
    font-size: 16px;
  }
  #what_is_gx_house .txt{
    font-size: 16px;
  }
}
@media (min-width: 768px) {
  #what_is_gx_house{
    background-image: url(https://www.asahihome.com/e-mirai/assets/img/e-mirai__bg-left-pc.png),url(https://www.asahihome.com/e-mirai/assets/img/e-mirai__bg-right-pc.png);
    background-size: 210px;
  }
  #what_is_gx_house .flex-wrap{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 980px;
    margin: 70px auto 0;
  }
}
/* ========================================
product-features
======================================== */
#product-features{}
#product-features .contents01{
  padding: 0 0 40px;
}
#product-features .contents01 h2{
  color: #1E9C66;
  font-size: 94px;
  margin: 0;
  text-align: center;
  position: relative;
}
#product-features .contents01 h2 span{
  font-size: 24px;
  display: block;
  font-weight: 600;
}

#product-features .contents01 p{
  text-align: center;
  line-height: 2;
  margin: 20px 0 30px;
}
#product-features .contents01 img{
  max-width: 980px;
  margin: 0 auto;
  display: block;
}

#product-features .contents02{}
#product-features .contents02 .large-txt{
  background: #C99722;
  text-align: center;
  padding: 20px 20px 20px;
}
#product-features .contents02 .large-txt p{
  font-size: 32px;
  color: #fff;
  max-width: 980px;
  margin: 0 auto;
  line-height: 2;
}
#product-features .contents02 .point-wrap{
  max-width: 980px;
  margin: 40px auto;
}
#product-features .contents02 .point-wrap h3{
  font-size: 36px;
  font-family: "Noto Serif JP", serif;
  color: #1E9C66;
  padding: 50px 0 50px 170px;
  position: relative;
  margin: 0 0 10px;
}
#product-features .contents02 .point-wrap h3 img{
  max-width: 144px;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  margin: auto;
}
#product-features .contents02 .point-wrap h3 span{
  border-bottom: 1px solid #1E9C66;
  display: block;
}
#product-features .contents02 .point-wrap p{
  font-size: 17px;
  line-height: 1.8;
  margin: 0 0 20px;
}



/* ===== レスポンシブ切替 ===== */
@media (max-width: 767px) {
  #product-features .contents02 .point-wrap{
    padding: 0 20px;
  }
  #product-features .contents02 .point-wrap h3 img{
    max-width: 72px;
  }
  #product-features .contents02 .point-wrap h3{
    padding: 10px 0 10px 90px;
    font-size: 21px;
  }
  #product-features .contents02 .point-wrap h3 span{
    padding: 0 0 9px;
  }
  #product-features .contents02 .point-wrap .flex-wrap{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  #product-features .contents02 #point01 .flex-wrap img{
    max-width: 48%;
    margin-bottom: 4%;
  }
  #product-features .contents02 #point02 .flex-wrap{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 0 auto;
  }
  #product-features .contents02 #point02 .flex-wrap img{
    width: 45%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
  }

  #product-features .contents02 #point02 .flex-wrap img:nth-child(1) {
    margin: 0 20px -10px;
  }

  #product-features .contents02 #point02 .flex-wrap img:nth-child(2),
  #product-features .contents02 #point02 .flex-wrap img:nth-child(3) {
    margin: 0;
  }
  #product-features .contents02 #point03 .flex-wrap img{
    max-width: 476px;
  }
  #product-features .contents01{
    padding: 0 20px 40px;
  }
  #product-features .contents01 h2{
    font-size: 47px;
  }
  #product-features .contents01 h2 span{
    font-size: 15px;
  }
  #product-features .contents02 .large-txt p{
    font-size: 20px;
    line-height: 1.8;
  }
}
@media (min-width: 768px) {
  #product-features .contents02 .point-wrap .flex-wrap{
    display: flex;
    justify-content: space-between;
  }
  #product-features .contents02 #point01 .flex-wrap img{
    max-width: 224px;
  }
  #product-features .contents02 #point02 .flex-wrap img{
    max-width: 306px;
  }
  #product-features .contents02 #point03 .flex-wrap img{
    max-width: 476px;
  }
}
/* ========================================
qa
======================================== */
#qa{
  background-color: #1E9C66;
  padding: 70px 20px 50px;
  margin: 60px auto 40px;
}
#qa h2{
  color: #fff;
  font-size: 70px;
  margin: 0;
  text-align: center;
  position: relative;
}
#qa h2 span{
  font-size: 24px;
  display: block;
  font-weight: 600;
}
#qa h2 span::after{
  position: absolute;
  content: "";
  display: block;
  max-width: 425px;
  width: 100%;
  height: 1px;
  background-color: #fff;
  left: 0;
  right: 0;
  margin: auto;
  bottom: -20px;
}
#qa dl{
  max-width: 980px;
  margin: 50px auto 0;
}
#qa dt{
  background-image: url(https://www.asahihome.com/e-mirai/assets/img/e-mirai__q.png);
  font-size: 22px;
  background-color: #fff;
  padding: 20px 20px 20px 80px;
  background-size: 45px;
  background-repeat: no-repeat;
  background-position: 2% 46%;
  border-radius: 6px;
}
#qa dd{
  background-image: url(https://www.asahihome.com/e-mirai/assets/img/e-mirai__a.png);
  padding: 40px 20px 40px 80px;
  font-size: 20px;
  color: #fff;
  margin: 0;
  background-size: 49px;
  background-repeat: no-repeat;
  background-position: 2% 46%;
}

/* ===== レスポンシブ切替 ===== */
@media (max-width: 767px) {
  #qa{
    padding: 30px 20px 30px;
    margin: 60px auto 40px;
  }
  #qa h2{
    font-size: 35px;
  }
  #qa h2 span{
    font-size: 15px;
  }
  #qa h2 span::after{
    max-width: 212px;
  }
  #qa dt{
    background-size: 30px;
    background-position: 4% 25%;
    padding: 12px 20px 12px 53px;
    font-size: 16px;
  }
  #qa dd{
    background-size: 30px;
    background-position: 4% 36%;
    padding: 22px 20px 22px 53px;
    font-size: 16px;
  }
}
@media (min-width: 768px) {}
/* ========================================
contact
======================================== */
#contact{
  max-width: 980px;
  margin: 0 auto;
}
#contact h2{
  color: #1E9C66;
  font-size: 70px;
  margin: 0;
  text-align: center;
  position: relative;
}
#contact h2 span{
  font-size: 24px;
  display: block;
  font-weight: 600;
}
#contact h2 span::after{
  position: absolute;
  content: "";
  display: block;
  max-width: 425px;
  width: 100%;
  height: 1px;
  background-color: #1E9C66;
  left: 0;
  right: 0;
  margin: auto;
  bottom: -20px;
}
#contact p{
  margin: 60px 0 50px;
}

td input, td select, form td input, form td select {
  border: solid 1px #ccc;
  border-radius: 3px;
  padding: 8px 10px;
  margin: 2px;
  vertical-align: middle;
  box-sizing: border-box;
  }
.mfp_element_text, .mfp_element_number, .mfp_element_select-one, .mfp_element_email, .mfp_element_tel, .mfp_element_textarea, .mfp_element_date, .mfp_element_password {
  border: solid 1px #ccc;
  border-radius: 3px;
  padding: 8px 10px;
  margin: 2px;
  vertical-align: middle;
  box-sizing: border-box;
}
form .must {
    background-color: #c00;
    border: solid 2px #c00;
    text-shadow: 0px 1px 2px #933;
    padding: 2px 5px;
    color: #fff;
    margin: 0px 10px;
    border-radius: 4px;
    font-size: 10px;
}
.catalog_btn.-confirm {
  background: #667979 !important;
  position: relative;
  font-weight: 300;
  color: #fff;
  border: none;
  padding: 15px 0 15px;
  border-radius: 50px;
  margin: 30px auto 0;
  display: block;
}
.mfp_element_button {
    background-color: #1E9C66;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: bold;
    width: 260px;
    max-width: 260px;
    padding: 14px 0 !important;
    display: inline-block;
    text-decoration: none !important;
    text-align: center;
    border-radius: 26px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    letter-spacing: 1px;
    margin: 30px 20px 0;
    border: #1E9C66;
}
button.-confirm, .mfp_element_submit, .mfp_element_button {
    width: 284px !important;
    max-width: 284px !important;
}
.form01 label{
  margin-right: 10px;
}
.form02 label{
  margin-right: 10px;
  margin-bottom: 10px;
}

#thanks{
  max-width: 982px;
  margin: 0 auto;
  padding: 50px 20px 30px;
}
#thanks h1{
  color: #1E9C66;
}
#thanks p{}
#thanks .notice{}

/* ========================================
   お問い合わせフォーム（修正版）
   ※ここを「table」ではなく「.mailform」に限定することで
     カレンダーの崩れを完全に防ぎます
======================================== */
.mailform {
  margin: 0 auto;
  border-collapse: collapse;
  width: 100%;
  border: none;
}

.mailform tr {
  display: table-row;
  vertical-align: inherit;
  border-color: inherit;
}

/* ★ここが修正箇所：.mailform を追加 */
.mailform th, .mailform td {
  padding: 10px !important;
  text-align: left !important;
  width: 30% !important; /* これがカレンダーを壊していた犯人です */
  color: #707070;
  vertical-align: middle;
  background: none !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  font-weight: normal;
  line-height: 1.6;
  font-size: 16px !important;
  border: solid 1px #ccc;
}

.mailform th {
  min-width: 230px;
}

.mailform td input, 
.mailform td select, 
form .mailform td input, 
form .mailform td select {
  border: solid 1px #ccc;
  border-radius: 3px;
  padding: 8px 10px;
  margin: 2px;
  vertical-align: middle;
  box-sizing: border-box;
}

/* MailformProの要素 */
.mfp_element_text, 
.mfp_element_number, 
.mfp_element_select-one, 
.mfp_element_email, 
.mfp_element_tel, 
.mfp_element_textarea, 
.mfp_element_date, 
.mfp_element_password {
  border: solid 1px #ccc;
  border-radius: 3px;
  padding: 8px 10px;
  margin: 2px;
  vertical-align: middle;
  box-sizing: border-box;
}

/* ===== レスポンシブ切替 ===== */
@media (max-width: 767px) {
  #contact{
    padding: 0 20px;
  }
  #contact h2{
    font-size: 35px;
  }
  #contact h2 span{
    font-size: 15px;
  }
  #contact h2 span::after{
    max-width: 212px;
  }
 
  input[type="radio" i]{
    max-width: 12px !important;
    margin-right: 2px;
  }
  input[type="checkbox" i]{
    max-width: 12px !important;
    margin-right: 2px;
  }

  /* ========================================
   【完全修正】スマートフォン用スタイル (画面幅 767px 以下)
   ※カレンダーを壊さないよう .mailform クラスのみに適用
======================================== */
@media (max-width: 767px) {

  /* 1. フォームを縦積みにする設定 */
  .mailform, 
  .mailform tbody, 
  .mailform tr, 
  .mailform th, 
  .mailform td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .mailform tr {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
  }

  .mailform th {
    min-width: 0 !important;
    width: 100% !important;
    padding: 10px 0 5px !important;
    border: none !important;
  }

  .mailform td {
    padding: 0 0 20px !important;
    border: none !important;
  }

  /* 2. 入力欄の幅調整 */
  .mailform input[type="text"],
  .mailform input[type="email"],
  .mailform input[type="tel"],
  .mailform select,
  .mailform textarea,
  #sonota {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 5px 0 !important;
  }

  /* 3. ラジオボタン・チェックボックスは小さく維持 */
  .mailform input[type="radio"],
  .mailform input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    margin-right: 5px !important;
    vertical-align: sub;
  }

  /* 4. 長い項目の改行許可 */
  form#mailformpro label {
    white-space: normal !important;
    word-wrap: break-word !important;
    max-width: 100% !important;
    display: inline-block !important;
  }
  
  /* 5. 住所入力欄のリスト調整 */
  .mailform td ol {
    padding-left: 0 !important;
    margin: 0 !important;
  }
  .mailform td ol li span {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
  }

  /* 6. カレンダー(datepicker)のスマホ調整 */
  /* カレンダー本体の文字サイズ調整のみ */
  .ui-datepicker {
    font-size: 90% !important;
    max-width: 300px !important;
    z-index: 9999 !important;
  }
  /* カレンダー内のテーブルは通常の表形式に戻す */
  .ui-datepicker table, 
  .ui-datepicker tbody, 
  .ui-datepicker tr, 
  .ui-datepicker td, 
  .ui-datepicker th {
    display: revert !important; /* ブラウザ標準に戻す */
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  /* revertが効かないブラウザ用 */
  .ui-datepicker table {            display: table !important;
            width: 100% !important;}
  .ui-datepicker tbody { display: table-row-group !important; }
  .ui-datepicker tr { display: table-row !important; }
  .ui-datepicker td { display: table-cell !important; padding: 2px !important; }
}

}
@media (min-width: 768px) {}
/* ========================================
footer
======================================== */
footer{
  border-top: 4px solid #1E9C66;
  margin: 60px 0 0;
  position: relative;
}

.footer-wrap .left{
  max-width: 332px;
  width: 100%;
}
.footer-wrap .left .logo{}
.footer-wrap .left .logo img{
  max-width: 284px;
}
.footer-wrap .right{
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
}
.footer-wrap .right .f-reserve{}
.footer-wrap .right .f-reserve img{
  max-width: 367px;
}
.footer-wrap .right p{}
.footer-wrap .right p a{
  color: #3E3E3E;
  display: inline-block;
  margin: 0 0 0 24px;
}

/* ===== レスポンシブ切替 ===== */
@media (max-width: 767px) {
  .footer-wrap{
    padding: 20px 0 100px;
    text-align: center;
  }
  .footer-wrap .left{
    margin: 0 auto;
    text-align: center;
  }
  .footer-wrap .left .logo img {
    display: block;
    margin: 0 auto;
  }
  .footer-wrap .right .f-reserve img{
    max-width: 290px;
    margin: 0 auto;
  }
  .footer-wrap .right{
    margin: 0 auto;
    display: block;
  }
  .footer-wrap .right p a{
    display: block;
    margin: 0;
  }
}
@media (min-width: 768px) {
  .footer-wrap{
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 0 60px;
  }
  .footer-wrap .left p{
    font-size: 17px;
  }
  .footer-wrap .left .logo{
    margin: 0 0 20px;
    display: block;
  }
}
/* ========================================
pagetop
======================================== */
.pagetop {
  position: absolute;
  right: 30px;
  bottom: 40px;
  width: 88px;
  height: 88px;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.pagetop:hover {
  opacity: 1;
  transform: translateY(-4px);
}

.pagetop img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 768px) {
  .pagetop {
    bottom: 15px;
    width: 66px;
    height: 66px;
    right: 0;
    left: 0;
    margin: auto;
  }
}
/* ========================================

======================================== */
/* ===== レスポンシブ切替 ===== */
@media (max-width: 767px) {}
@media (min-width: 768px) {}
/* ========================================

======================================== */
/* ===== レスポンシブ切替 ===== */
@media (max-width: 767px) {}
@media (min-width: 768px) {}
/* ========================================

======================================== */
/* ===== レスポンシブ切替 ===== */
@media (max-width: 767px) {}
@media (min-width: 768px) {}
/* ========================================

======================================== */
/* ===== レスポンシブ切替 ===== */
@media (max-width: 767px) {}
@media (min-width: 768px) {}
/* ========================================

======================================== */
/* ===== レスポンシブ切替 ===== */
@media (max-width: 767px) {}
@media (min-width: 768px) {}
/* ========================================

======================================== */
/* ===== レスポンシブ切替 ===== */
@media (max-width: 767px) {}
@media (min-width: 768px) {}
/* ========================================

======================================== */
/* ===== レスポンシブ切替 ===== */
@media (max-width: 767px) {}
@media (min-width: 768px) {}
/* ========================================

======================================== */
/* ===== レスポンシブ切替 ===== */
@media (max-width: 767px) {}
@media (min-width: 768px) {}



/* ==================================================
   【仕上げ】スマホでの「変な余白（横スクロール）」を完全防止
   ※style.cssの一番最後に追加してください
   ================================================== */

/* 1. サイト全体で横へのはみ出しを禁止 */
html, body {
  overflow-x: hidden !important;
  width: 100%;
}

/* 2. カレンダーが画面幅を超えないように調整 */
/* スマホの画面端ギリギリまで広がらないように少しゆとりを持たせます */
#ui-datepicker-div, .ui-datepicker {
  max-width: 94% !important; /* 画面幅の94%までに制限 */
  left: 50% !important;      /* 中央寄せの準備 */
  transform: translateX(-50%) !important; /* 強制的に画面中央に配置 */
  box-shadow: 0 0 10px rgba(0,0,0,0.2) !important; /* 影をつけて浮き上がらせる */
}

/* 3. 日付入力欄のズレ防止 */
.mailform input[type="text"] {
    margin: 5px 0 !important;
    width: 100% !important;
}

div.mfp_buttons button#mfp_button_cancel {
    background: #707070!important;
    border: 1px solid #707070!important;
}

/* ==================================================
   確認画面のボタン順序入れ替え（修正を上、送信を下に）
   ================================================== */
.mfp_buttons {
    display: flex !important;
    flex-direction: column-reverse !important; /* 縦の並び順を逆転させる */
    align-items: center !important;            /* ボタンを中央揃えにする */
    gap: 20px !important;                      /* ボタンとボタンの間の余白 */
    padding-top: 20px !important;
}

/* ボタン自体に元々ついている余白をリセット（上記gapで隙間を作るため） */
.mfp_buttons button {
    margin: 0 !important;
}