@charset: "UTF-8";
/*ベース*/

.wrap {
  max-width: 1000px;
  width: 95%;
  margin: auto;
}

input {
  padding: 5px 5px;
  border: 1px solid #b5b5b6;
  border-radius: 0;
  outline: none;
  background: none;
}

textarea {
  width: 100%!important;
  height: 230px!important;
}

h2 {
  width: 100%;
  background-color: #119351;
  padding: 45px 0;
  color: #fff;
  font-size: 30px;
  text-align: center;
  margin: 70px 0 0;
  line-height: 1.2em;
  position: relative;
}

li {
  line-height: 1.7em;
}

button{
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

a:hover {
  opacity: 0.7;
}


header {
  height: 110px;
  display: flex;
  justify-content: center;
  align-items: center;
}

header h1 {
  max-width: 320px;
  width: 100%;
  margin: auto;
}

header h1 img {
  margin: auto;
}

.contact_ttl {
  text-align: center;
  background-image: url(../images/header/bg.png);
  background-repeat: no-repeat;
  background-size: cover;
  font-size: 33px;
  color: #fff;
  padding: 50px 0;
  font-weight: bold;
}



#contact {
  background-color: #fff;
}

#contact h2 span {
  position: absolute;
  top: -35px;
  
}

table {
  max-width: 1000px;
  width: 100%;
  margin: auto;
  border-collapse: collapse;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-size: 14px;
}
.bnr02 {
  padding-top: 52px;
}

table td,
table th {
  padding: 20px 12px;
}

table th {
  width: 30%;
  border: 1px solid #b7b7b7;
  text-align: left;
  background-color: #f5f6f6;
}

table .contact_contents_th {
  vertical-align: top;
}

table td {
  width: 70%;
  border: 1px solid #b7b7b7;
}

.contact_wrap {
  padding: 30px 0;
  max-width: 1000px;
  margin: 15px auto 0;
  background-color: #fff;
}

.contact_btn {
  max-width: 290px;
  width: 100%;
  background-color: #ffaa00;
  color: #fff;
  display: inline-block;
  font-size: 19px;
  padding: 20px 0;
  text-align: center;
  text-decoration: none;
  margin: auto;
  border-radius: 5px;
  position: relative;
}

.contact_btn span {
  position: absolute;
  right: 20px;
}

.contact_btn_wrap {
  width: 100%;
  margin-top: 30px;
  padding-bottom: 100px;
  text-align: center;
}

input {
  display: block;
  max-width: 370px !important;
  width: 100%;
  border-radius: 5px;
}

.privacy_list {
  max-width: 370px;
  height: 120px;
  border: 1px solid #b5b5b6;
  overflow: scroll;
  overflow-x: hidden;
  text-align: left;
  padding: 10px;
}

.privacy_list ul li {
  margin-top: 10px;
}

.privacy_list ul li span {
  display: block;
  font-weight: bold;
}

.privacy_list .privacy_list_ttl {
  font-weight: bold;
}

::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 7px;
  background-color: #e3e4e4;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: rgba(0, 0, 0, .5);
  -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5);
  box-shadow: 0 0 1px rgba(255, 255, 255, .5);
}

::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 7px;
  background-color: #fff;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: rgba(0, 0, 0, .5);
  -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5);
  box-shadow: 0 0 1px rgba(255, 255, 255, .5);
}

#privacy {
  display: inline-block;
  width: 15px;
  height: 15px;
      margin-bottom: 4px;
}

.checkbox_wrap {
  margin-top: 10px;
  max-width: 320px;
}

.checkbox_wrap span {
  display: inline-block;
}

.comment_tab {
  padding: 7px;
  display: inline-block;
  background-color: #e60012;
  color: #fff;
  margin-right: 10px;
  border-radius: 5px;
}

.comment_tab02 {
  background-color: #898989;
}

.photo_arrangement_txt {
  margin: auto;
}

.contact_flow02 {
  max-width: 660px;
  width: 100%;
  margin: 50px auto 0;
}

.contact_flow01 {
  max-width: 660px;
  width: 100%;
  margin: 50px auto 0;
}

table#mfp_confirm_table tr td {
  line-height: 1.5em;
  word-break: break-all;
  padding: 25px;
}

table#mfp_confirm_table {
  border-spacing: 0px;
  border-collapse: collapse;
  width: 100%;
  padding-top: 50px;
  margin-top: 50px;
}

.mfp_element_submit, .mfp_element_reset, .mfp_element_button, button.mfp_next, button.mfp_prev {
  max-width: 290px;
  width: 100%;
  background-color: #ffaa00;
  color: #fff;
  display: block;
  font-size: 19px;
  padding: 20px 0;
  text-align: center;
  text-decoration: none;
  margin: auto;
  border-radius: 5px;
  position: relative;
  display: block;
}

.mfp_element_submit, .mfp_element_reset, .mfp_element_button, button.mfp_next{
  max-width: 290px!important;
  width: 100%;
  display: block;
  padding: 1em 0;
  text-decoration: none;
  background: #ff9600;/*ボタン色*/
  color: #FFF;
  border-bottom: solid 4px #da7f00;
  border-radius: 20px;
  font-size: 16px;
}

.mfp_element_submit, .mfp_element_reset, .mfp_element_button:active {/*ボタンを押したとき*/
  -ms-transform: translateY(4px);
  -webkit-transform: translateY(4px);
  transform: translateY(4px);/*下に動く*/
  border-bottom: none;/*線を消す*/
}

div.mfp_buttons button#mfp_button_cancel {
  margin-bottom: 50px;
}

div.mfp_buttons button#mfp_button_cancel {
  background-color: #b3b3b4;
  border-bottom: solid 4px #878787;
}

div.mfp_buttons button#mfp_button_send {
  margin-top: 30px;
}

div.mfp_buttons button#mfp_button_send span {
  position: absolute;
  right: 20px;
}

/*thankページ*/
.thanks_txt {
  font-size: 20px;
  margin: 30px;
  color: #119351;
  text-align: center;
}

.thanks_txt02 {
  margin-top: 20px;
  text-align: center;
  color: #000;
}

.personal_information {
  border: 1px solid #b3b3b4;
  margin-top: 40px;
}

.personal_information_wrap {
  width: 95%;
  margin: 20px auto;
}

 .square_btn{
  max-width: 470px!important;
  width: 100%;
  display: inline-block;
  padding: 1em 0;
  text-decoration: none;
  background: #ff9600;/*ボタン色*/
  color: #FFF;
  border-bottom: solid 4px #da7f00;
  border-radius: 20px;
  font-size: 16px;
}
.square_btn:active {/*ボタンを押したとき*/
  -ms-transform: translateY(4px);
  -webkit-transform: translateY(4px);
  transform: translateY(4px);/*下に動く*/
  border-bottom: none;/*線を消す*/
}

.send_ttl {
  font-size: 33px;
  text-align: center;
  margin: 60px 0;
  color: #3e3a39;
  font-weight: bold;
}

.send_contents {
  font-size: 16px;
  text-align: center;
  margin-bottom: 50px;
  line-height: 2;
}

.square_btn02_wrap {
  max-width: 256px;
  margin: 50px auto 100px;
}

.square_btn02{
  text-align: center;
  max-width: 256px;
  width: 100%;
  display: inline-block;
  padding: 1em 0;
  text-decoration: none;
  background: #ff9600;/*ボタン色*/
  color: #FFF;
  border-bottom: solid 4px #da7f00;
  border-radius: 20px;
  font-size: 16px;
}
.square_btn02:active {/*ボタンを押したとき*/
  -ms-transform: translateY(4px);
  -webkit-transform: translateY(4px);
  transform: translateY(4px);/*下に動く*/
  border-bottom: none;/*線を消す*/
}

footer .copyright {
  background-color: #0380e7;
  text-align: center;
}

footer .copyright small {
  font-size: 13px;
  padding: 20px 0;
  display: block;
  color: #fff;
}

.pcv {
  display: block;
}

.spv {
  display: none;
}

@media only screen and (max-width:970px) {
  .main_visual {
    height: 250px;
  }
  .main_visual img {
    margin: auto;
    width: 350px;
  }
}

@media only screen and (max-width:880px) {
  table#mfp_confirm_table tr th {
    width: 100%!important;
  }
}

@media screen and (max-width: 800px) {
  
}

@media only screen and (max-width:769px) {
  
  h2 {
    width: 100%;
    padding: 20px 0;
    font-size: 18px;
    margin: 25px 0 0;
  }
  
  table {
    border-bottom: 1px solid #b7b7b7;
  }
  table td,
  table th {
    display: block;
    width: 100%;
    border-bottom: none;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    height: auto;
  }
  
  #contact h2 span {
    display: none;
  }
  
  .contact_wrap {
    padding: 15px;
  }
  
  div.mfp_ok {
    margin-top: 10px;
  }
  
  .contact_content img {
    margin: auto;
    max-width: 490px;
    width: 90%;
  }
}

@media only screen and (max-width:640px) {

  table#mfp_confirm_table tr th {
    width: 100%;
    padding: 25px 10px;
  }

  #privacy {
  width: 20px;
  height: 20px;

}
  
  .contact_ttl {
    font-size: 20px;
  }
  
  .send_contents {
    text-align: left;
  }
  
  .checkbox_wrap span {
    margin-top: 10px;
  }
  
  .mfp_element_submit, .mfp_element_reset, .mfp_element_button, button.mfp_next, button.mfp_prev {
    font-size: 12px;
  }
  
  .pcv {
    display: none;
  }

  .spv {
    display: block;
  }
}

/* ========================================
   CF7 + レスポンシブ調整（元 contact/common2/css 準拠）
   ======================================== */

body.page-contact,
body.page-id-9 {
  overflow-x: hidden;
}

#contact img {
  max-width: 100%;
  height: auto;
}

#contact .contact_flow {
  text-align: center;
}

#contact .contact_flow01,
#contact .contact_flow02 {
  max-width: 660px;
  width: 100%;
  margin: 50px auto 0;
  height: auto;
}

/* PC / SP 画像切替（#contact .contact_flow0x の display:block が .spv を潰さないように） */
#contact .contact_flow01.pcv,
#contact .contact_flow02.pcv {
  display: block;
}
#contact .contact_flow01.spv,
#contact .contact_flow02.spv {
  display: none;
}

#contact .wpcf7 {
  width: 100%;
  margin: 0;
}

#contact .wpcf7 form {
  margin: 0;
}

#contact .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

#contact .wpcf7 p {
  margin: 0;
}

#contact .wpcf7 input[type="text"],
#contact .wpcf7 input[type="email"],
#contact .wpcf7 input[type="tel"],
#contact .wpcf7 textarea {
  display: block;
  width: 100% !important;
  max-width: 370px !important;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #b5b5b6;
  border-radius: 5px;
  font-size: 16px;
  background: #fff;
  outline: none;
}

#contact .wpcf7 textarea {
  height: 230px !important;
  max-width: 100% !important;
}

#contact .wpcf7 input.motomura-invalid,
#contact .wpcf7 textarea.motomura-invalid {
  border-color: #c0392b;
  background: #fff5f5;
}

#contact .motomura-field-error {
  color: #c0392b;
  font-size: 13px;
  margin-top: 6px;
}

#contact .motomura-phase-confirm #motomura-confirm-table {
  border-spacing: 0;
  border-collapse: collapse;
  width: 100%;
  margin-top: 20px;
  margin-bottom: 30px;
}

#contact .motomura-phase-confirm #motomura-confirm-table th,
#contact .motomura-phase-confirm #motomura-confirm-table td {
  border: 1px solid #b7b7b7;
  padding: 20px 12px;
  vertical-align: top;
  line-height: 1.5em;
  word-break: break-all;
}

#contact .motomura-phase-confirm #motomura-confirm-table th {
  width: 30%;
  background: #f5f6f6;
  text-align: left;
  font-weight: bold;
}

/* 確認画面ボタン：PCは横並び、SPは縦並び */
#contact .motomura-confirm-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
  margin-top: 40px;
  padding-bottom: 100px;
  text-align: center;
}

#contact .motomura-confirm-actions p {
  margin: 0;
  padding: 0;
  display: contents;
}

#contact .motomura-confirm-actions .motomura-btn-back,
#contact .motomura-confirm-actions .motomura-btn-submit,
#contact .motomura-confirm-actions input.wpcf7-submit,
#contact .motomura-confirm-actions input[type="submit"] {
  box-sizing: border-box;
  display: inline-block !important;
  width: auto !important;
  min-width: 220px;
  max-width: none !important;
  margin: 0;
  padding: 1em 2em !important;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: normal;
  line-height: 1.4;
  color: #fff !important;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  vertical-align: middle;
}

#contact .motomura-confirm-actions .motomura-btn-back {
  background: #ff9600 !important;
  border-bottom: solid 4px #da7f00 !important;
  order: 1;
}

#contact .motomura-confirm-actions .motomura-btn-back:hover {
  opacity: 0.92;
}

#contact .motomura-confirm-actions .motomura-btn-back:active {
  transform: translateY(4px);
  border-bottom: none;
}

#contact .motomura-confirm-actions .motomura-btn-submit,
#contact .motomura-confirm-actions input.wpcf7-submit,
#contact .motomura-confirm-actions input[type="submit"] {
  background: #4caf50 !important;
  border-bottom: solid 4px #388e3c !important;
  order: 2;
}

#contact .motomura-confirm-actions .motomura-btn-submit:hover,
#contact .motomura-confirm-actions input.wpcf7-submit:hover,
#contact .motomura-confirm-actions input[type="submit"]:hover {
  opacity: 0.92;
}

#contact .motomura-confirm-actions .motomura-btn-submit:active,
#contact .motomura-confirm-actions input.wpcf7-submit:active,
#contact .motomura-confirm-actions input[type="submit"]:active {
  transform: translateY(4px);
  border-bottom: none;
}

#contact .wpcf7-spinner {
  display: block;
  margin: 10px auto;
  width: 100%;
  flex-basis: 100%;
  order: 3;
}

#contact.is-thanks .wpcf7 {
  display: none;
}

#contact .motomura-thanks {
  padding: 20px 0 60px;
  text-align: center;
}

#contact .contact_btn_wrap .motomura-btn-confirm {
  position: relative;
  max-width: 470px;
  width: 100%;
  padding: 1em 1.25em 1em 2.75em;
  box-sizing: border-box;
}

/* 「＞」の代わりのCSS矢印 */
#contact .contact_btn_wrap .motomura-btn-confirm::before {
  content: '';
  position: absolute;
  left: 1.15em;
  top: 50%;
  width: 0.5em;
  height: 0.5em;
  margin-top: -0.15em; /* border-bottom の厚み分を少し補正 */
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

#contact .contact_btn_wrap .motomura-btn-confirm:active::before {
  margin-top: 0;
}

/* --- 元サイト同等: 769px --- */
@media only screen and (max-width: 769px) {
  #contact .contact_wrap {
    padding: 15px;
  }

  #contact table,
  #contact .motomura-phase-confirm #motomura-confirm-table {
    border-bottom: 1px solid #b7b7b7;
  }

  #contact table td,
  #contact table th,
  #contact .motomura-phase-confirm #motomura-confirm-table td,
  #contact .motomura-phase-confirm #motomura-confirm-table th {
    display: block;
    width: 100% !important;
    border-bottom: none;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    height: auto;
  }

  #contact table th,
  #contact .motomura-phase-confirm #motomura-confirm-table th {
    border: 1px solid #b7b7b7;
    border-bottom: none;
  }

  #contact table td,
  #contact .motomura-phase-confirm #motomura-confirm-table td {
    border: 1px solid #b7b7b7;
    border-top: none;
    margin-bottom: 12px;
  }

  #contact .wpcf7 input[type="text"],
  #contact .wpcf7 input[type="email"],
  #contact .wpcf7 input[type="tel"],
  #contact .wpcf7 textarea {
    max-width: 100% !important;
    width: 100% !important;
  }

  #contact .personal_information {
    margin-top: 24px;
  }

  #contact .contact_btn_wrap {
    padding-left: 10px;
    padding-right: 10px;
  }

  #contact .contact_btn_wrap .square_btn,
  #contact .contact_btn_wrap .motomura-btn-confirm {
    max-width: 100% !important;
    font-size: 15px;
    padding: 1em 0.5em;
  }
}

/* --- 元サイト同等: 640px --- */
@media only screen and (max-width: 640px) {
  header {
    height: auto;
    min-height: 80px;
    padding: 16px 0;
  }

  header h1 {
    max-width: 240px;
  }

  .contact_ttl {
    font-size: 20px;
    padding: 28px 12px;
    line-height: 1.4;
  }

  #contact .contact_flow01,
  #contact .contact_flow02 {
    margin-top: 24px;
  }

  #contact .contact_flow01.pcv,
  #contact .contact_flow02.pcv {
    display: none !important;
  }

  #contact .contact_flow01.spv,
  #contact .contact_flow02.spv {
    display: block !important;
  }

  #contact .motomura-phase-confirm #motomura-confirm-table th {
    width: 100%;
    padding: 16px 10px;
  }

  #contact .motomura-phase-confirm #motomura-confirm-table td {
    padding: 16px 10px 20px;
  }

  .send_ttl {
    font-size: 24px;
    margin: 36px 0 24px;
  }

  .send_contents {
    text-align: left;
    font-size: 14px;
    padding: 0 8px;
  }

  #contact .motomura-confirm-actions {
    flex-direction: column;
    gap: 14px;
    padding-bottom: 60px;
    margin-top: 24px;
  }

  #contact .motomura-confirm-actions .motomura-btn-back,
  #contact .motomura-confirm-actions .motomura-btn-submit,
  #contact .motomura-confirm-actions input.wpcf7-submit,
  #contact .motomura-confirm-actions input[type="submit"] {
    width: 90% !important;
    min-width: 0;
    font-size: 15px;
  }

  .square_btn02_wrap {
    max-width: 90%;
    margin: 30px auto 60px;
  }

  .square_btn02 {
    max-width: 100%;
  }

  /* contact ページでも SP / PC 切替を確実に */
  body.page-contact .pcv,
  body.page-id-9 .pcv,
  #contact .pcv {
    display: none !important;
  }

  body.page-contact .spv,
  body.page-id-9 .spv,
  #contact .spv {
    display: block !important;
  }
}

/* トップ（ペライチ）の横はみ出し防止 */
body.home,
body.front-page {
  overflow-x: hidden;
}

#page.index img {
  max-width: 100%;
  height: auto;
}

@media only screen and (max-width: 640px) {
  #page.index .contact_flow_wrap {
    flex-direction: column;
  }

  #page.index .contact_flow_item {
    width: 100%;
    max-width: 100%;
  }

  #page.index .ui01 {
    display: none;
  }

  #page.index .company_profile table th,
  #page.index .company_profile table td {
    display: block;
    width: 100%;
  }

  #page.index .company_profile_flex {
    flex-direction: column;
  }
}
