@charset "utf-8";
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&display=swap");

/* 基本設定 */
body {
  background-color: #f0f8fb;
}

form#mail_form * {
  margin: 0;
}

form#mail_form {
  width: 1120px;
  margin: 50px auto;
  padding: 30px;
  background: #fff;
  color: #474747;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

/* レイアウト */
.box {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.content {
  width: 650px;
}

.left,
.right {
  width: 50%;
}

/* タイトル・説明文 */
div#title h1 {
  width: 95%;
  margin: 0 auto;
  padding: 20px 0 10px;
  color: #1c9cc4;
  font-size: 250%;
  font-weight: bold;
  line-height: normal;
}

form#mail_form .inquiry-left #title h1 {
  padding-bottom: 24px;
  color: #08658f;
  font-size: clamp(15px, 2.5vw, 24px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

div#title p {
  width: 95%;
  margin: 0 auto;
}

form#mail_form .inquiry-left #title p {
  padding-bottom: 28px;
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: 0.04em;
}

div#title h3 {
  width: 95%;
  margin: 0 auto;
  padding: 5px 0 10px;
  border-top: 1px solid #ccc;
  text-align: center;
  font-size: 120%;
}

/* 資料案内 */
form#mail_form .wrap-document-p {
  padding: 24px 16px;
  background-color: #eef7fa;
  border-radius: 8px;
}

form#mail_form .document-title {
  margin-bottom: 18px;
  color: #08658f;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

form#mail_form .document-list {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

form#mail_form .document-sub {
  align-items: center;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.025em;
}

form#mail_form .document-sub:last-child {
  margin-bottom: 0;
}

/* フォームの項目 */
form#mail_form dl {
  width: 90%;
  margin: 0 auto;
  overflow: hidden;
}

form#mail_form dl dt {
  clear: both;
  float: left;
  width: 40%;
  padding: 15px 0;
  border-top: 1px solid #ccc;
  overflow: hidden;
  text-align: left;
}

form#mail_form .content dl dt {
  color: #075980;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 0.04em;
}

form#mail_form dl dd {
  float: right;
  width: 55%;
  padding: 15px 0 15px 5%;
  border-top: 1px solid #ccc;
}

form#mail_form dl dt:first-child,
form#mail_form dl dt:first-child + dd {
  border: none;
}

form#mail_form dl dt span {
  display: block;
  color: #1c9cc4;
  font-size: 85%;
}

/* 必須・任意の表示 */
form#mail_form dl dt span.required,
form#mail_form dl dt span.optional {
  display: inline-block;
  float: left;
  margin-right: 15px;
  padding: 4px 10px;
  border: 1px solid;
  border-radius: 3px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

form#mail_form dl dt span.required {
  background: #d9534f;
  border-color: #d9534f;
}

form#mail_form dl dt span.optional {
  background: #3677bb;
  border-color: #3677bb;
}

/* 入力欄 */
form#mail_form input,
form#mail_form select,
form#mail_form textarea,
form#mail_form button {
  font-family: inherit;
  font-size: 16px;
  letter-spacing: 0.025em;
}

form#mail_form input[type="text"],
form#mail_form input[type="email"],
form#mail_form input[type="tel"],
form#mail_form select,
form#mail_form textarea {
  border: 1px solid #c8dce5;
  border-radius: 5px;
  background: #fff;
  color: #474747;
  line-height: 1.6;
}

form#mail_form input[type="text"],
form#mail_form input[type="email"],
form#mail_form input[type="tel"] {
  max-width: 90%;
  margin-top: 7px;
  padding: 7px 2%;
  -webkit-appearance: none;
}

form#mail_form select {
  width: 95%;
  height: 40px;
  margin-top: 10px;
}

form#mail_form textarea {
  display: block;
  width: 90%;
  max-width: 90%;
  height: 50px;
  padding: 7px 2%;
  resize: vertical;
  -webkit-appearance: none;
}

form#mail_form input::placeholder,
form#mail_form textarea::placeholder {
  color: #767676;
  opacity: 1;
}

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 {
  box-shadow: 0 0 5px #55ccff;
  border-color: #55ccff;
}

form#mail_form input#company,
form#mail_form input#name_1,
form#mail_form input#phone,
form#mail_form input#mail_address,
form#mail_form input#所在地,
form#mail_form input#kobetsu_sodan,
form#mail_form input#contents {
  width: 100%;
}

form#mail_form input#address {
  width: 90%;
}

/* 選択項目 */
form#mail_form ul {
  list-style-type: none;
}

form#mail_form ul li label:hover {
  cursor: pointer;
}

form#mail_form ul li input[type="radio"],
form#mail_form ul li input[type="checkbox"] {
  margin-top: 10px;
  margin-right: 10px;
}

form#mail_form ul li:first-child input[type="radio"],
form#mail_form ul li:first-child input[type="checkbox"] {
  margin-top: 0;
}

/* 郵便番号検索・送信ボタン */
form#mail_form input#postal + a {
  display: inline-block;
  padding: 5px 15px;
  border: 1px solid #46b8da;
  border-radius: 3px;
  background: #5bc0de;
  color: #fff;
  font-size: 100%;
  text-decoration: none;
}

form#mail_form input#postal + a:hover {
  cursor: pointer;
  background: #31b0d5;
  border-color: #269abc;
}

form#mail_form p#form_submit {
  width: 90%;
  padding: 15px 0;
  text-align: center;
}

form#mail_form input[type="button"] {
  margin-bottom: 20px;
  margin-left: 30px;
  padding: 10px 30px;
  border: none;
  border-radius: 3px;
  background: #1c9cc4;
  color: #fff;
  font-size: 110%;
  -webkit-appearance: none;
}

form#mail_form input[type="button"]:hover {
  cursor: pointer;
}

form#mail_form input#form_submit_button {
  width: 97%;
}

/* エラー表示・送信中の表示 */
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;
  margin-top: 3px;
  color: #f00;
}

span.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  margin-top: -30px;
  margin-left: -30px;
  border: 5px solid rgba(255, 255, 255, 0.2);
  border-left-color: #fff;
  border-radius: 50%;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation: load-circle 1s linear infinite;
  animation: load-circle 1s linear infinite;
}

@-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);
  }
}

/* 著作権表記 */
div#title h2 {
  text-align: center;
  font-size: 80%;
  color: #1c9cc4;
}

form#mail_form > #title h2 {
  padding-top: 28px;
  color: #667780;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.03em;
}

/* 1000px以下 */
@media screen and (max-width: 1000px) {
  form#mail_form {
    width: 95%;
  }

  form#mail_form dl {
    overflow: visible;
  }

  form#mail_form dl dt {
    float: none;
    width: auto;
    padding: 15px 0 5px;
    font-weight: bold;
  }

  form#mail_form dl dd {
    float: none;
    width: auto;
    padding: 0 0 20px;
    border-top: none;
  }

  form#mail_form dl dt span:not(.required):not(.optional) {
    font-weight: normal;
  }

  form#mail_form dl dt span.required,
  form#mail_form dl dt span.optional {
    margin-right: 1em;
    margin-bottom: 2em;
  }

  form#mail_form input[type="text"],
  form#mail_form input[type="email"],
  form#mail_form input[type="tel"],
  form#mail_form select {
    margin-top: 0;
  }

  form#mail_form input#postal + a {
    padding: 6px 15px 5px;
  }

  form#mail_form input#form_submit_button {
    margin-left: 0;
  }
}

/* 834px以下 */
@media screen and (max-width: 834px) {
  div#title h1 {
    font-size: 200%;
  }

  div#agreement div {
    width: 78%;
  }

  form#mail_form p#form_submit {
    padding-left: 2%;
  }

  form#mail_form input#form_submit_button {
    width: 93%;
  }

  .content {
    width: 100%;
  }

  span.sp_only {
    display: inline-block;
  }

  span.受付時間 {
    font-size: 88%;
  }
}

/* 768px以下 */
@media screen and (max-width: 768px) {
  .box {
    flex-direction: column;
  }

  .left,
  .right {
    width: 100%;
  }
}

/* 600px以下 */
@media screen and (max-width: 600px) {
  form#mail_form {
    letter-spacing: 0.025em;
  }

  form#mail_form .inquiry-left #title h1 {
    padding-bottom: 20px;
    font-size: 25px;
    line-height: 1.65;
    letter-spacing: 0.025em;
  }

  form#mail_form .inquiry-left #title h1 br.br-pc {
    display: none;
  }

  form#mail_form .inquiry-left #title p {
    line-height: 2;
    letter-spacing: 0.025em;
  }

  form#mail_form .document-title {
    font-size: 19px;
  }

  form#mail_form .document-sub {
    font-size: 14px;
  }
}
