@charset "utf-8";

/* ===========================================================
   Contact 見出しセクション (js-bg-white)
=========================================================== */
.contact-header {
  padding: 80px 20px 40px;
  min-height: auto;
}

.contact-header h2 {
  margin-bottom: 12px;
}

.contact-header__lead {
  text-align: center;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  line-height: 1.8;
}

/* ===========================================================
   Contact 入力セクション (js-bg-black)
=========================================================== */
/* Contactページ専用：初期非表示アニメーションを解除して即時表示させる */
main section.contact-header,
main section.contact-form-section {
  opacity: 1 ;
  transform: none ;
}
.contact-form-section {
  padding: 60px 20px 120px;
  min-height: auto;
}

/* 狭めのフォーム幅設定 (520px) */
.contact-container {
  position: relative;
  z-index: 1; /* canvasパーティクルより手前 */
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

/* 入力グループ */
.form-group {
  margin-bottom: 32px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.badge-required {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 6px;
  background-color: var(--color-white);
  color: var(--color-black);
  border-radius: 2px;
  line-height: 1.2;
}

.badge-optional {
  font-size: 0.6875rem;
  font-weight: 400;
  padding: 2px 6px;
  background-color: #333333;
  color: #aaaaaa;
  border-radius: 2px;
  line-height: 1.2;
}

/* 白背景の入力フィールド */
.form-input {
  width: 100%;
  padding: 13px 14px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--color-black);
  background-color: var(--color-white);
  border: 1px solid transparent;
  border-radius: 3px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.form-input::placeholder {
  color: #999999;
  font-size: 0.875rem;
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

/* ===========================================================
   カスタム チェックボックス & ラジオボタン
=========================================================== */
.choice-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.choice-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.choice-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-text {
  font-size: 0.875rem;
  color: #dddddd;
  letter-spacing: 0.03em;
}

/* 白枠ボックス（チェックボックス） */
.custom-box {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--color-white);
  border-radius: 2px;
  background-color: transparent;
  position: relative;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

.choice-item input[type="checkbox"]:checked + .custom-box {
  background-color: var(--color-white);
}

.choice-item input[type="checkbox"]:checked + .custom-box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid var(--color-black);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* 白枠ラジオボタン */
.custom-radio {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--color-white);
  border-radius: 50%;
  background-color: transparent;
  position: relative;
  flex-shrink: 0;
}

.choice-item input[type="radio"]:checked + .custom-radio::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-white);
  transform: translate(-50%, -50%);
}

/* 送信ボタン */
.form-submit {
  margin-top: 48px;
  text-align: center;
}

.form-submit-btn {
  min-width: 200px;
  padding: 14px 40px;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-black);
  background-color: var(--color-white);
  border: 1px solid var(--color-white);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}
/* 1. 通常時：文字（span）を黒にする */
.form-submit-btn span {
  color: var(--color-black);
  transition: color 0.3s ease;
}

.form-submit-btn:hover {
  background-color: transparent;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}
.form-submit-btn:hover span {
  color: var(--color-white);
}
.form-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* 送信完了メッセージ */
.contact-success {
  text-align: center;
  padding: 60px 20px;
  border: 1px solid #333333;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.03);
}

.contact-success__title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-white);
}

.contact-success__text {
  font-size: 0.875rem;
  color: #cccccc;
  line-height: 1.8;
}