@charset "utf-8";

/* ---------------------------------------------------------
   safari ios 用 リセットcss
---------------------------------------------------------*/
/* iosのラジオボタンとチェックボックスが大きいのでOS固定のデザインをリセットする */
input[type="radio"] {
  padding: 0;
  margin: 0;
}

input[type="checkbox"] {
  padding: 0;
  margin: 0;
}


/* ----------------------------------------------
 共通
---------------------------------------------- */
main {
  font-family: "Zen Maru Gothic", sans-serif; 
}

.contact .section-inner {
  max-width: 660px;
  margin: 0 auto;
  padding: 2rem 4rem;
}
.form-title-box {
  text-align: center;
  margin-bottom: 3rem;
}
.form-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.form-sub-text {
  font-size: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}
.form-text {
  margin-top: 1rem;
  font-size: 1.5rem;
  line-height: 1.3;
}


/* ----------------------------------------------
  Contact
---------------------------------------------- */
.form-area {
  width: 100%;
  border-collapse: collapse;
}
.form-item {
  margin-bottom: 2rem;
}
.item-title {
  display: block;
  margin-bottom: 0.5rem;
}
.item-title .title {
  position: relative;
  width: 100%;
  font-weight: 500;
}

/* [必須]ラベル */
.required {
  font-size: 1.1rem;
  font-weight: 400;
  color: #fff;
  background: var(--info-required);
  margin-left: 1rem;
  padding: 0.3rem 0.6rem;
  border-radius: 0.2em;
  /* 垂直位置調整 */
  display: inline-block;
  vertical-align: top;
}

.form-area input,
.form-area select,
.form-area textarea {
  background-color: #fff;
  padding: 1rem;
  line-height: 1;
  border: 1px solid #bbb;
  border-radius: 0.3rem;
}
.form-area textarea {
  line-height: 1.5;
}
::placeholder {
  font-size: 1.2rem;
  color: #bbb;
}
@media (hover: hover) and (pointer: fine){
  /* hover装飾なし */
}
/* 入力枠内を選択中の表示（スマホでも適用可能） */
.form-area input:focus,
.form-area select:focus,
.form-area textarea:focus {
  /* 枠線の色を変えるにはoutlineを使用する */
  outline: 1px solid var(--mainGray-color);
}
/* ラジオボタンとセレクトボックスは除外する */
.form-area #type-contact input:focus, 
.form-area #agree:focus {
  outline: none;
}

/* td詳細設定 */
#name,
#email,
textarea {
  width: 100%;
}

/* お問い合わせ種別 */
.type-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.type-flex input {
  width: 15px;
  height: 15px;
  line-height: 1.5;
  margin-right: 0.2rem;
  vertical-align: middle;
}
.type-flex label {
  font-size: 1.5rem;
  margin-right: 4rem;
}

/* プライバシーポリシー */
/* 同意 */
.agree-area {
  text-align: center;
  margin-top: 2rem;
}
.agree-area input {
  width: 15px;
  height: 15px;
  margin-right: 0.5rem;
}

/* 送信ボタン */
.button-area button {
  display: block;
  margin: 1rem auto;
  font-size: 2rem;
  text-align: center;
  padding: 1rem 8rem;
  margin-top: 3rem;
  border-radius: 0.2em;
  background: var(--mainGray-color);
  color: #fff;
  font-weight: bold;
  letter-spacing: 0.2rem;
  border: none;
  cursor: pointer;
  transition: 300ms;
}
@media (hover: hover) and (pointer: fine) {
  .button-area button:hover {
    background: var(--accent-color);
  }
}

/* エラー時表示 */
.error-text.active {
  font-size: 1.4rem;
  color: #ec5151;
  font-weight: 500;
  line-height: 1.2;
  margin-top: 0.5rem;
}

/* エラークラス付与された時 */
.error {
  /* ↓ エラーテキスト表示時のスクロールした際に、固定ヘッダーに隠れるので調整する */
  /* 固定ヘッダー100px + 調整余白（入力枠とタイトルが隠れない程度） */
  scroll-margin-top: 160px;
}
@media screen and (max-width: 767px) {
  .error {
    scroll-margin-top: 100px;
  }
}


/* ----------------------------------------------
  モーダル画面　（確認画面）
---------------------------------------------- */
/* 初期状態は非表示 */
.modal-area {
  display: none;
  position: fixed;
  overflow: scroll;
  top: 0;
  left: 0;
  background: #fff;
  width: 100%;
  height: 100%;
  padding-top: 20px;
  z-index: 10;
}
/* jsでactiveクラス付与 */
.modal-area.active {
  display: block;
}

.modal-inner {
  width: 70%;
  max-width: 660px;
  padding: 8rem 4rem;
  margin-inline: auto;
}

/* 確認画面 注意書き */
.modal-info {
  margin-bottom: 2rem;
}
.modal-info-title {
  font-size: 2rem;
  margin-inline: auto;
  text-align: center;
  background: var(--mainGray-color);
  color: #fff;
  padding: 0.5rem 6rem;
}
.modal-info-text {
  text-align: center;
  line-height: 1.5;
  margin: 1rem auto;
}

/* フォーム内容 */
.modal-area .form-item {
  margin-bottom: 2rem;
}
.modal-area .item-title {
  margin-bottom: 0.5rem;
}
.modal-area .form-item p {
  font-family: "Zen Maru Gothic", sans-serif;
  letter-spacing: 0.1rem;
  min-height: 30px;
  line-height: 30px;
  border: 1px solid #ccc;
  padding: 0.5rem 1.5rem;
  text-align: left;
  background: #f3fbfd;
}
.modal-area .button-area button {
  margin-top: 4rem;
}

/* モーダル画面を閉じるボタン */
#modal-close {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #fff;
  border: 4px double #fff;
  background: var(--mainGray-color);
  padding: 0.4rem 0.6rem;
  width: fit-content;
  margin-left: auto;
  cursor: pointer;
  transition: 300ms;
  position: relative;
}
@media (hover: hover) and (pointer: fine){
  #modal-close:hover {
    background: var(--accent-color);
  }
}

/* 送信完了メッセージ */
#complete {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  transition: 400ms;
  z-index: 100;
}
#complete>span {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 24rem;
  height: 8rem;
  line-height: 8rem;
  font-size: 2.4rem;
  font-weight: 400;
  text-align: center;
  color: #333;
  background: #fff;
  border: 3px double #aaa;
}


/* ----------------------------------------------
  メディアクエリ
---------------------------------------------- */
@media screen and (max-width: 1024px) {
  /* モーダル画面（確認画面） */
  .modal-inner {
    width: 70%;
  }
} /* close */

@media screen and (max-width: 767px) {
  main {
    font-size: 1.5rem;
  }
  .contact .section-inner {
    max-width: 100%;
    padding: 2rem 1.5rem;
  }
  .form-title {
    font-size: 3rem;
  }
  .form-sub-text {
    font-size: 1.5rem;
  }
  .form-text {
    text-align: left;
  }

  /* 種別ラジオボタン */
  .type-flex {
    flex-direction: column;
    gap: 1.5rem;
  }
  /* [必須]ラベル */
  .required {
    font-size: 1rem;
  }
  /* エラー時表示 */
  .error-text {
    font-size: 1.3rem;
  }
  /* 送信ボタン */
  .button-area button {
    font-size: 1.8rem;
  }

  /* モーダル画面（確認画面） */
  .modal-inner {
    width: calc(100% - 4rem);
    padding: 4rem 0;
    margin-inline: 2rem;
  }
  .modal-info-text {
    text-align: left;
  }
  /* 送信完了メッセージ */
  #complete>span {
    height: 6rem;
    line-height: 6rem;
    font-size: 2rem;
  }
} /* close */













