@charset "utf-8";

/*-------------------------------------------------
CONTACT TOP
-------------------------------------------------*/
.contact-top-inner {
  position: relative;
  background: url(../img/contact-top.png) no-repeat center center/cover;
  max-width: 1280px;
  height: 300px;
  margin: 0 auto;
}

.contact-top-inner::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  background-color: #0068fa;
  opacity: 0.15;
}

.top-heading {
  padding: 40px 0 0 40px;
  color: #fafafa;
  -webkit-text-stroke-width: 5px;
  -webkit-text-stroke-color: #0068fa;
  font-size: 64px;
  font-weight: bold;
  letter-spacing: 12.8px;
  position: relative;
}

/*-------------------------------------------------
Form
-------------------------------------------------*/
.contact-inner {
  position: relative;
}

.contact-inner::before {
  position: absolute;
  z-index: 0;
  content: "";
  width: 600px;
  height: 600px;
  transform: rotate(25deg);
  background: #0068fa;
  top: 15%;
  right: -15%;
}

.contact-head {
  text-align: center;
  font-weight: bold;
  font-size: 24px;
  margin-bottom: 30px;
}

.contact-form {
  position: relative;
  display: flex;
  max-width: 1000px;
  justify-content: center;
  padding: 60px;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  flex-shrink: 0;
  border: 5px solid #5bc0de;
  background: #fafafa;
  margin: 0 auto;
}

.form-item {
  display: flex;
  align-items: center;
  width: 100%;
}

.form-area {
  align-items: unset;
}

.form-label {
  font-size: 16px;
  font-weight: bold;
  width: 300px;
}

.policy {
  width: 100%;
  display: flex;
  justify-content: center;
}

.policy a {
  text-decoration: underline;
  color: #ffa500;
  font-weight: bold;
}

.form-label span {
  font-size: 14px;
  padding: 1px 2px;
  background-color: red;
  color: #fafafa;
  border-radius: 5px;
  margin-left: 8px;
}

.form-input {
  font-size: 18px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid #1a1a1a;
  width: 100%;
}

.form-textarea {
  width: 100%;
  height: 150px;
  padding: 8px;
  border-radius: 5px;
  font-size: 18px;
}

/* チェックボックスを視覚的に隠す */
input[type="checkbox"].check {
  width: 1px;
  height: 1px;
  position: absolute;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  white-space: nowrap;
}

/* カスタムチェックボックススタイル */
input[type="checkbox"].check + label::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-left: 8px; /* ラベルの右側にスペース */
  border: 2px solid #333;
  border-radius: 4px;
  vertical-align: middle;
}

/* チェックが入っているときのスタイル */
input[type="checkbox"].check:checked + label::after {
  content: "✔";
  color: #ffa500;
  background-color: #fafafa;
  text-align: center;
  line-height: 16px;
}

/* フォーカスした時の色 */
input[type="checkbox"]:focus + label::after {
  border: 2px solid red;
}

/* カスタムチェックボックスのラベル */
label.form-label.policy {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.confirm-btn {
  margin: 0 auto;
  border-radius: 10px;
  background: #ffa500;
  padding: 20px 40px;
  color: #fafafa;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  border: #fafafa;
}

.confirm-btn:disabled {
  background-color: #666666;
  pointer-events: none;
  cursor: none;
}

.back-form {
  background-color: #5bc0de;
  border-radius: 10px;
  padding: 8px 16px;
  font-weight: bold;
  cursor: pointer;
  border: none;
}

::placeholder {
  opacity: 0.3;
}

/*-------------------------------------------------
ACCESS
-------------------------------------------------*/

.access-head {
  font-size: 28px;
  font-weight: bold;
  text-align: center;
}

.access-maps {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.access-box {
  background: #ffffff;
  box-shadow: 6px 6px 4px 0px rgba(0, 0, 0, 0.25);
  width: 80%;
}

.map-heading {
  font-size: 28px;
  background-color: #5bc0de;
  padding: 10px 0 10px 20px;
}

.map-heading span {
  font-size: 20px;
  padding-left: 8px;
}

.access-map-box {
  padding: 30px;
}

.map-addresses {
  font-size: 18px;
  margin-bottom: 60px;
}

.map-address {
  font-weight: bold;
}

.access-map {
  width: 100%;
  height: 450px;
}

.access-map iframe {
  width: 100%;
}

/* --------------------
レスポンシブ
-----------------------*/

/* タブレット、スマホ共通 */
@media (max-width: 1024px) {
  .form-item {
    flex-wrap: wrap;
  }

  .form-label {
    margin-bottom: 8px;
  }

  .policy {
    flex-wrap: wrap;
    gap: 10px;
  }

  .access-maps {
    flex-wrap: wrap;
  }

  .access-box{
    width: 100%;
  }
}

@media (min-width: 481px) and (max-width: 1024px) {
  .contact-form {
    padding: 40px;
  }
  .contact-head {
    font-size: 20px;
  }
  .access-head {
    font-size: 24px;
  }

}

@media (max-width: 480px) {
  .form-input {
    font-size: 16px;
  }

  .form-textarea {
    font-size: 16px;
  }
  .contact-form {
    padding: 20px;
  }
  .contact-head {
    font-size: 18px;
  }

  .access-head {
    font-size: 20px;
  }
}
