@charset "UTF-8";
/* ==========================================================================
   お問い合わせ（/contact/）

   目次
     1. 案内文
     2. フォーム
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. 案内文
   -------------------------------------------------------------------------- */
.contact {
  width: 90%;
  max-width: 600px;
  margin-inline: auto;
  padding-block: 100px;
}

.contact__notice {
  margin: 1rem 0 8rem;
  line-height: 2;
}

.contact__notice a {
  font-weight: 700;
  letter-spacing: 0.05em;
}


/* --------------------------------------------------------------------------
   2. フォーム
   -------------------------------------------------------------------------- */
.form-group {
  display: flex;
  flex-direction: column;
  margin: 2rem 0;
}

.form-label {
  color: rgb(37, 60, 128);
  font-family: var(--font-mplus);
  font-size: 22px;
  font-weight: 500;
  text-align: center;
}

.form-control {
  padding: 0.8em 1em;
  border: 1px solid #fff;
  border-radius: 0.5em;
  background-color: rgba(255, 255, 255, 0.8);
}

/* 入力エラー */
.form-control.is-error {
  border: 1px solid rgb(153, 27, 27);
  background-color: rgb(252, 165, 165);
}

.form-control:focus {
  outline: none;
}

/* 同意チェックボックス */
.form-label--agreement {
  width: fit-content;
  margin-inline: auto;
}

.form-agreement-text {
  display: block;
  margin: 1rem 0;
}

/* 本物のチェックボックスは見えなくし、下の .form-checkbox で表示 */
.form-checkbox-origin {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  opacity: 0;
}

.form-checkbox {
  position: relative;
  display: block;
  width: 2rem;
  height: 2rem;
  margin: 1rem auto;
  border-radius: 0.4rem;
  background: #fff;
  cursor: pointer;
}

.form-checkbox-origin:checked + .form-checkbox::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0.3rem;
  width: 2rem;
  height: 2rem;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2241.811%22%20height%3D%2230.833%22%20viewBox%3D%220%200%2041.811%2030.833%22%3E%20%20%3Cpath%20d%3D%22M13718.57%2C1804.173l13.43%2C15.918%2C28.381-30.833L13732%2C1808.812Z%22%20transform%3D%22translate(-13718.57%20-1789.258)%22%20fill%3D%22%2332f6d5%22%2F%3E%3C%2Fsvg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* キーボード操作時のフォーカス表示 */
.form-checkbox-origin:focus-visible + .form-checkbox {
  outline: 2px solid rgb(37, 60, 128);
  outline-offset: 2px;
}

/* 送信ボタン */
.form-submit {
  display: block;
  width: 200px;
  margin: 1rem auto;
  padding: 0.35em;
  border-radius: 0.5em;
  background: linear-gradient(-45deg, rgba(62, 255, 203, 1) 0%, rgba(138, 157, 255, 1) 100%);
  font-size: 22px;
  transition: 0.3s;
}

.form-submit span {
  color: white;
  font-family: var(--font-mplus);
  font-weight: 500;
}

.form-submit[disabled] {
  background: #353535;
}

.form-submit[disabled]:hover {
  cursor: not-allowed;
}

/* 送信状況のメッセージ */
.form-message {
  margin: 1.5rem 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

/* 迷惑メール対策の入力欄（人には見えない） */
.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
