/* 以下、ユーザー提供CSS（色だけ修正） */

@charset "utf-8";
/*
body {
  background: var(--main-bg);
  font-family: "Noto Sans JP", sans-serif;
}
*/
.contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

/* ===========================
   見出し
=========================== */

.contact_pageLabel {
  font-size: 26px;
  font-weight: 600;
  margin: 50px auto 20px;
  color: var(--main-text-color);
  position: relative;
}

.contact_pageLabel::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--main-text-color);
  margin: 12px auto 0;
}

/* ===========================
   フォーム領域
=========================== */
.contact-form {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}
.contact-form-area {
  width: 100%;
  max-width: 800px;
  background: var(--base-background-lighter);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 40px 30px 50px;
  margin: auto;
  box-shadow: 0px 2px 20px -10px rgba(150, 150, 150, 0.45);
  margin-bottom: 10px;
}

/* ===========================
   各入力行（label + input）
=========================== */

.contact-form-group {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 12px;
}

.contact-form-label {
  width: 200px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--form-label-color);
  padding-top: 12px;
}

/* 必須ラベル（赤） */
.required {
  color: #EB4F32;
  font-size: 13px;
  margin-left: 8px;
  font-weight: 700;
}

/* ===========================
   入力欄（text / email / tel）
=========================== */



.contact-input-text {
  width: 100%;
  border-radius: 5px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #DAD2D6;
  background-color: var(--text-input-bg-color);
  font-size: 15px;
}

.contact-input-text:focus {
  outline: none;
  border-color: var(--focus-border-color);
  box-shadow: 0 0 6px var(--focus-border-color);
}

/* ===========================
   select
=========================== */

.contact-select-box {
  width: 100%;
  height: 45px;
  border-radius: 5px;
  border: 1px solid #DAD2D6;
  padding: 0 12px;
  background-color: var(--text-input-bg-color);
  font-size: 15px;
}

.contact-select-box:focus {
  outline: none;
  border-color: var(--focus-border-color);
  box-shadow: 0 0 6px var(--focus-border-color);
}

/* ===========================
   radio
=========================== */

.contact-radio-button {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-right: 25px;
  margin-bottom: 5px;
  margin-bottom: 5px;
}

.contact-radio {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #C8BFC4;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
}

.contact-radio:checked {
  border-color: var(--contact-radio-color);
}

.contact-radio:checked::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--contact-radio-color);
  border-radius: 50%;
}

/* ===========================
   textarea
=========================== */

.contact-message-placeholder {
  width: 100%;
}

.contact-message-text {
  width: 100%;
  min-height: 260px;
  border-radius: 5px;
  padding: 12px;
  font-size: 15px;
  border: 1px solid #DAD2D6;
  background-color: var(--text-input-bg-color);
  line-height: 1.5;
}

.contact-message-text:focus {
  outline: none;
  border-color: var(--focus-border-color);
  box-shadow: 0 0 6px var(--focus-border-color);
}

 .contact-submit-box {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100px;
  padding: 0 12px;
  margin-top: 50px;
  margin-bottom: auto;
  margin-left: auto;
  /*gap:50px;*/
 }
.contact-submit-box p {
  font-size: 14px;
  color: var(--main-text-color);
  margin-bottom: 20px;
  text-align: left;

 }
/* ===========================
   エラー表示
=========================== */

.contact-input-err {
  display: block;
  font-size: 13px;
  color: var(--error-color);
  margin-top: 6px;
  text-align: left;
}
.contact-input-text#eMail {
  min-width: 520px;
  max-width: 100%;
}


/* 処理中ポップアップのスタイル */
.Popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 20px 40px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  text-align: center;
  border-radius: 8px;
}

.Popup.hidden {
  display: none;
}

/* スピナーアニメーション */
.spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  border: 4px solid #ccc;
  border-top: 4px solid #e762b9;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

@media (max-width: 800px) {

  .contact-form-area {
    padding: 24px 16px 30px;
  }

  .contact-form-label {
    width: 100%;
  }

  .contact-form-input {
    width: 100%;
    min-width: 0;
  }

  .contact-input-text,
  .contact-select-box,
  .contact-message-text {
    width: 100%;
  }

  /* 小さい画面では eMail の拡張幅を無効化 */
  .contact-input-text#eMail {
    min-width: 0;
    width: 100%;
  }

  .contact-radio-button {
    margin-right: 12px;
    margin-bottom: 10px;
  }

  .contact-submit-box {
    padding: 0 0;
    width: 100%;
  }
}
