.opan_btn_l {
  position: fixed;
  top: 80vh;
  right: 0;
  background-color: #ccb894;
  width: 95px;
  height: 85px;
  border-radius: 8px 0 0 8px;
  z-index: 3;
  filter: drop-shadow(-4px 4px 1px rgba(100, 100, 100, 0.2));
  opacity: 0;
  transition: opacity 0.6s;
  display: block;
}

.opan_btn_l:hover {
  filter: brightness(90%);
  cursor: pointer;
}

.opan_btn_l img {
  width: 65px;
  position: relative;
  top: -6px;
  left: -5px;
}

.opan_btn_l::after {
  content: 'お問い合わせ';
  color: #fff;
  position: absolute;
  right: 14px;
  bottom: 5px;
  white-space: nowrap;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.opan_btn_s {
  display: none;
}
.w_space {
  background-color: white;
  padding-top: 85px;
  border-radius: 20px;
}

@media screen and (max-width: 767px) {
  .opan_btn_l {
    display: none;
  }

  .opan_btn_s {
    position: fixed;
    top: 31px;
    right: 88px;
    width: 60px;
    height: 65px;
    border-radius: 8px 0 0 8px;
    z-index: 5;
    transition: all 0.1s;
    display: block;
  }

  .opan_btn_s:hover {
    filter: brightness(90%);
    cursor: pointer;
  }

  .opan_btn_s img {
    width: 40px;
    position: relative;
    top: -5.5px;
    left: 1px;
  }
}

body:not(.main_index) .opan_btn_s img {
  width: 42px;
  position: relative;
  top: -20.5px;
  left: 20px;
}

.modal {
  position: fixed;
  top: -1000vh;
  left: -1000vw;
  overflow: visible;
  width: 70%;
  /* height: calc(100vh - 120px); */
  height: 100%;
  bottom: 0;
  right: 0;
  opacity: 1;
  z-index: 400;
  border-radius: 20%;
}

.modal::before {
  content: ' ';
  position: absolute;
  top: -14px;
  left: 0;
  overflow: visible;
  width: 100%;
  height: 45px;
  bottom: 0;
  right: 0;
  opacity: 1;
  z-index: 0;
  background-color: #fff;
  border-radius: 20px 20px 0 0;
  opacity: 1;
}

.modal_image {
  width: 100%;
  height: 100%;
  position: relative;
  overflow-y: scroll;
}

.modal .form {
  width: 100%;
  height: auto;
  padding-bottom: 100px;
}

.modal .form::after {
  content: '';
  display: block;
  width: 100%;
  height: 100px;
}

.modal_image::-webkit-scrollbar {
  display: none;
}

.modal .modal_close {
  width: 32px;
  position: absolute;
  top: 24px;
  right: 30px;
  cursor: pointer;
  z-index: 10;
}

.modal .form_title_h2 {
  width: 36.8%;
  margin: 0 auto 1.82vw;
}

.modal .form_title_text {
  margin: 10px auto 40px;
  font-size: 14px;
  text-align: center;
  line-height: 1.8em;
  display: inline-block;
}

.modal .form_title_h2 img {
  display: block;
  width: 100%;
  margin: 0 auto;
  object-fit: contain;
}

.modal img {
  width: 100%;
  display: block;
  object-fit: contain;
  margin-bottom: 10px;
}

.modal .form-Item {
  width: 76.85%;
  margin: 0 auto 2.5vw;
}

.modal .check-Item {
  width: 76.85%;
  margin: 0 auto;
}

.modal .form_h3_1 {
  width: 25.16%;
  margin-bottom: 12px;
}

.modal .form_h3_2 {
  width: 35.27%;
  margin-bottom: 12px;
}

.modal .form_h3_3 {
  width: 38.45%;
  margin-bottom: 12px;
}

.modal .form_h3_4 {
  width: 46.3%;
  margin-bottom: 12px;
}

.modal .item4_text {
  width: 77.92%;
  margin-bottom: 2vw;
}

.modal .check_content {
  display: flex;
  padding: 15px 0;
  gap: 10px;
  justify-content: center;
  border-top: #ccb894 2px solid;
  border-bottom: #ccb894 2px solid;
  margin-bottom: 2.5vw;
}

.modal .check_content input {
  width: 15px;
}

.modal .check_content p {
  width: 45%;
}

.modal .submit_text_l {
  width: 60%;
  margin: 0 auto;
  margin-bottom: 2.6vw;
}

.modal .form-Item-Input {
  border-radius: 2px;
  padding: 0.5em 0.9em;
  height: 40px;
  border: #707070 1px solid;
  flex: 1;
  width: 100%;
  background: #fff;
  font-size: 14px;
  box-sizing: border-box;
}

.modal .Form-Item-Textarea {
  border-radius: 2px;
  border: #707070 1px solid;
  padding: 0.6em 0.9em;
  height: 216px;
  flex: 1;
  width: 100%;
  background: #fff;
  font-size: 14px;
  box-sizing: border-box;
  resize: none;
}

.modal .privacy_page {
  background-color: #f7f7f7;
  width: 100%;
  height: 180px;
  margin-bottom: 2vw;
  overflow: hidden;
  overflow-y: scroll;
  border: #ddd 2px solid;
  border-radius: 2px;
}

.modal .privacy_page h4 {
  width: 100%;
  padding: 30px 0;
  margin: 0 auto 20px;
}

.modal .privacy_page h4 img {
  width: 30%;
  margin: 0 auto;
}

.modal .privacy_page h4::after {
  content: '';
  display: block;
  width: 120%;
  height: 3px;
  background-color: #fff;
  margin: 0 auto;
  position: relative;
  top: 20px;
  left: -8.8%;
}

.modal h5 img {
  border-top: #ddd 1.5px solid;
  border-bottom: #ddd 1.5px solid;
}

.modal .h4_text {
  width: 90%;
  margin: -15px auto 45px;
  font-size: 10px;
  transform: scale(0.95);
  text-align: left;
  line-height: 2.1em;
  font-feature-settings: 'palt';
  letter-spacing: 1px;
  margin-bottom: 2em;
  text-align: justify;
}

.modal .h5_title1 {
  width: 29.8%;
  margin-right: auto;
  margin-bottom: 25px;
}

.modal .h5_title2 {
  width: 34.5%;
  margin-right: auto;
  margin-bottom: 25px;
}

.modal .h5_title3 {
  width: 57.3%;
  margin-right: auto;
  margin-bottom: 25px;
}

.modal .h5_title4 {
  width: 35.2%;
  margin-right: auto;
  margin-bottom: 25px;
}

.modal .h5_text {
  width: 90%;
  margin: -10px auto 35px;
  font-size: 10px;
  transform: scale(0.95);
  text-align: left;
  line-height: 2.1em;
  font-feature-settings: 'palt';
  letter-spacing: 1px;
  margin-bottom: 2em;
  text-align: justify;
}

.modal button {
  all: unset;
  cursor: pointer;
  transition: all 0.6s;
  display: block;
  text-align: center;
  margin: 0 auto;
}

.modal button:hover {
  filter: brightness(90%);
}

.modal button:active {
  transform: translateY(3px);
}

.modal .form button img {
  width: 80%;
  margin: 0 auto 80px;
  margin-top: 0 auto 70px;
  display: block;
  filter: drop-shadow(-4px 4px 0px rgba(0, 0, 0, 0.2));
  transition: all 0.6s;
}

.modal button:active img {
  filter: drop-shadow(-4px 4px 0px rgba(0, 0, 0, 0));
}

.modal .form-Item1 input:focus,
.modal .form-Item2 input:focus {
  outline: 2px solid #9ccfd6;
}

.modal textarea:focus {
  outline: 2px solid #9ccfd6;
}

.modal .input_flex {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.modal .form-Item1 .Form-Item-Input {
  width: 61%;
  margin-right: 20%;
  padding: 0.45em 0.9em;
  margin-bottom: 20px;
}

.modal .form-Item2 .Form-Item-Input {
  width: 61%;
  margin-right: 12%;
  padding: 0.45em 0.9em;
  margin-bottom: 20px;
}

.modal .example_name {
  width: 22%;
}

.modal .example_mail {
  width: 30%;
}

@media screen and (max-width: 1200px) {
  .modal .form_title_text {
    margin: 10px auto 40px;
    font-size: 13px;
    text-align: center;
    line-height: 1.8em;
  }
}

@media screen and (max-width: 900px) {
  .modal .form_title_text {
    margin: 10px auto 40px;
    font-size: 12px;
    text-align: center;
    line-height: 1.8em;
  }
}

@media screen and (max-width: 850px) {
  .modal .form_title_text {
    margin: 10px auto 40px;
    font-size: 11px;
    text-align: center;
    line-height: 1.8em;
  }
}

@media screen and (max-width: 767px) {
  .modal .form {
    margin: 0 auto;
    border-radius: 20px;
    padding-bottom: 100px;
    height: calc(100vh - 80px);
    overflow-y: scroll;
  }

  .modal .form::-webkit-scrollbar {
    display: none;
  }

  br.del {
    display: none;
  }

  .modal .modal_close {
    width: 32px;
    position: absolute;
    top: 5px;
    right: 20px;
    cursor: pointer;
    z-index: 10;
  }

  .modal .modal_close {
    width: 24px;
    position: absolute;
    top: 5px;
    right: 20px;
    cursor: pointer;
  }

  .modal .form_title_h2 {
    width: 60%;
    margin: 0 auto 22px;
  }

  .modal .form_title_text {
    width: 74%;
    margin: 0 auto 40px;
    font-size: 11.5px;
    text-align: left;
    line-height: 1.85em;
  }

  .modal .form-Item {
    width: calc(100% - 80px);
    max-width: 380px;
    margin: 0 auto 20px;
  }

  .modal .check-Item {
    width: calc(100% - 80px);
    max-width: 380px;
    margin: 0 auto;
  }

  .modal .form_h3_1 {
    width: 100%;
    margin-bottom: 12px;
  }

  .modal .form_h3_2 {
    width: 100%;
    margin-bottom: 12px;
  }

  .modal .form_h3_3 {
    width: 100%;
    margin-bottom: 12px;
  }

  .modal .form_h3_4 {
    width: 100%;
    margin-bottom: 12px;
  }

  .modal .item4_text {
    width: 90%;
    margin: 0 auto;
    margin-bottom: 12px;
  }

  .modal .check_content {
    display: flex;
    padding: 13px 0;
    gap: 10px;
    justify-content: center;
    border-top: #ccb894 2px solid;
    border-bottom: #ccb894 2px solid;
    margin-bottom: 30px;
  }

  .modal .check_content input {
    width: 15px;
  }

  .modal .check_content p {
    width: calc(70% - 5px);
  }

  .modal .input_flex {
    width: 100%;
    display: block;
    justify-content: space-between;
  }

  .modal .form-Item1 .Form-Item-Input {
    width: 100%;
    margin-right: 0%;
    padding: 0.7em 0.9em;
    box-sizing: border-box;
  }

  .modal .form-Item2 .Form-Item-Input {
    width: 100%;
    margin-right: 0%;
    padding: 0.7em 0.9em;
    box-sizing: border-box;
  }

  .modal .example_name {
    width: 36%;
    margin-top: 10px;
    margin-bottom: 50px;
  }

  .modal .example_mail {
    width: 48%;
    margin-top: 10px;
    margin-bottom: 50px;
  }

  .modal .submit_text_l {
    width: 70%;
    margin: 0 auto;
    margin-bottom: 30px;
  }

  .modal .form button img {
    width: 80%;
    max-width: 300px;
    margin: 0 auto 70px;
    display: block;
    filter: drop-shadow(-2px 2px 0px rgba(0, 0, 0, 0.2));
    transition: all 0.6s;
  }

  .modal .Form-Item-Textarea {
    border-radius: 2px;
    border: #707070 1px solid;
    padding: 0.4em 0.9em;
    height: 216px;
    flex: 1;
    width: 100%;
    background: #fff;
    font-size: 14px;
    box-sizing: border-box;
    resize: none;
    margin-bottom: 20px;
  }

  .modal .privacy_page {
    background-color: #f7f7f7;
    width: 100%;
    height: 180px;
    margin-top: 30px;
    margin-bottom: 35px;
    overflow: hidden;
    overflow-y: scroll;
    border: #ddd 2px solid;
    border-radius: 2px;
  }

  .modal .privacy_page h4 {
    width: 100%;
    padding: 30px 0;
    margin: 0 auto 20px;
  }

  .modal .privacy_page h4 img {
    width: 45%;
    margin: 0 auto;
  }

  .modal .privacy_page h4::after {
    content: '';
    display: block;
    width: 120%;
    height: 3px;
    background-color: #fff;
    margin: 0 auto;
    position: relative;
    top: 20px;
    left: -8.8%;
  }

  .modal h5 img {
    border-top: #ddd 1.5px solid;
    border-bottom: #ddd 1.5px solid;
  }

  .modal .h5_title1 {
    width: 44.8%;
    margin-right: auto;
  }

  .modal .h5_title2 {
    width: 49.5%;
    margin-right: auto;
  }

  .modal .h5_title3 {
    width: 72.3%;
    margin-right: auto;
  }

  .modal .h5_title4 {
    width: 50.2%;
    margin-right: auto;
  }
}

@media screen and (max-width: 500px) {
  .modal .form {
    border-radius: 20px;
    padding-bottom: 120px;
    height: calc(100vh - 80px);
    overflow-y: scroll;
  }

  .modal .form button img {
    width: 80%;
    max-width: 300px;
    margin: 0 auto 70px;
    display: block;
    filter: drop-shadow(-1px 1px 0px rgba(0, 0, 0, 0.2));
    transition: all 0.6s;
  }

  .opan_btn_s {
    position: fixed;
    top: 21px;
    right: 77px;
    width: 55px;
    height: 65px;
    border-radius: 8px 0 0 8px;
    z-index: 5;
    transition: all 0.1s;
  }

  body:not(.main_index) .opan_btn_s img {
    width: 42px;
    position: relative;
    top: -10.5px;
    left: 8px;
  }

  .modal .Form-Item-Textarea {
    border-radius: 2px;
    border: #707070 1px solid;
    padding: 0.4em 0.9em;
    height: 150px;
    flex: 1;
    width: 100%;
    background: #fff;
    font-size: 14px;
    box-sizing: border-box;
    resize: none;
    margin-bottom: 20px;
  }

  .modal .modal_close {
    width: 24px;
    position: absolute;
    top: 5px;
    right: 20px;
    cursor: pointer;
  }

  .modal .form_title_h2 {
    width: 60%;
    margin: 0 auto 25px;
  }

  .modal .form_title_text {
    width: 82%;
    margin: 0 auto 40px;
    font-size: 12px;
    text-align: left;
    line-height: 1.85em;
  }

  .modal .form-Item {
    width: calc(100% - 60px);
    max-width: 380px;
    margin: 0 auto 20px;
  }

  .modal .check-Item {
    width: calc(100% - 60px);
    max-width: 520px;
    margin: 0 auto;
  }
}

@media screen and (max-width: 450px) {
  .opan_btn_s img {
    width: 40px;
    position: relative;
    top: -10px;
    left: 7px;
  }
}

@media screen and (max-width: 400px) {
  .modal .form {
    border-radius: 20px;
    padding-bottom: 140px;
    height: calc(100vh - 80px);
    overflow-y: scroll;
  }

  .modal .modal_close {
    width: 24px;
    position: absolute;
    top: 5px;
    right: 20px;
    cursor: pointer;
  }

  .modal .form_title_h2 {
    width: 60%;
    margin: 0 auto 22px;
  }

  .modal .form_title_text {
    width: 84%;
    margin: 0 auto 40px;
    font-size: 11px;
    text-align: left;
    line-height: 1.85em;
  }

  .modal .form-Item {
    width: calc(100% - 40px);
    max-width: 380px;
    margin: 0 auto 20px;
  }

  .modal .check-Item {
    width: calc(100% - 40px);
    max-width: 520px;
    margin: 0 auto;
  }
}

/* モーダル用のスタイル */
.modal-background {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(80, 80, 80, 0.3);
  justify-content: center;
  align-items: center;
  z-index: 399;
  cursor: pointer;
}

@media screen and (max-width: 767px) {
  .opan_btn_l {
    display: none;
  }
}
@media screen and (min-width: 768px) {
  .opan_btn_s {
    display: none;
  }
}
