@charset "UTF-8";

/* ==========================================================================
   CONTACT Form Style
   ========================================================================== */

.p-contact-form {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
}

/* --- フォームの行（グループ） --- */
.p-form-group {
  display: flex;
  border-bottom: 1px solid #e0e6ed;
  padding: 30px 0;
}

.p-form-group:first-child {
  border-top: 1px solid #e0e6ed;
}

/* ラベルエリア */
.p-form-head {
  width: 240px;
  padding-right: 20px;
  display: flex;
  align-items: center;
  flex-shrink: 0; /* 幅を固定 */
}

.p-form-label {
  font-weight: 700;
  color: #333;
  font-size: 1rem;
  margin-right: 10px;
}

/* 入力エリア */
.p-form-body {
  flex-grow: 1;
}

/* --- バッジ（必須/任意） --- */
.c-badge-required,
.c-badge-any {
  display: inline-block;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  vertical-align: middle;
  line-height: 1.4;
}

.c-badge-required {
  background: #d32f2f; /* 赤 */
  color: #fff;
}

.c-badge-any {
  background: #eee;
  color: #666;
}

/* --- 入力パーツ共通設定 --- */
.c-input,
.c-textarea,
.c-select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f9f9f9;
  font-size: 1rem;
  color: #333;
  transition: all 0.3s ease;
  box-sizing: border-box; /* パディングを含める */
}

/* フォーカス時の演出（JILAFカラー） */
.c-input:focus,
.c-textarea:focus,
.c-select:focus {
  background: #fff;
  border-color: var(--jilaf);
  box-shadow: 0 0 0 3px rgba(22, 88, 160, 0.1);
  outline: none;
}

.c-textarea {
  line-height: 1.6;
  resize: vertical; /* 縦方向のみリサイズ可 */
}

/* セレクトボックスの矢印カスタマイズ */
.c-select-wrap {
  position: relative;
}
.c-select-wrap::after {
  content: "\f078"; /* FontAwesomeの矢印 */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none; /* クリックを透過 */
  font-size: 0.8rem;
}
.c-select {
  appearance: none; /* デフォルトの矢印を消す */
  cursor: pointer;
}

/* --- 個人情報同意エリア --- */
.p-form-privacy {
  margin-top: 50px;
  text-align: center;
  background: #f4f8fb;
  padding: 30px;
  border-radius: 8px;
}

.privacy-text {
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.privacy-text a {
  color: var(--jilaf);
  text-decoration: underline;
}

/* チェックボックスのデザイン */
.c-checkbox-label {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.c-checkbox-input {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  cursor: pointer;
  accent-color: var(--jilaf); /* モダンブラウザ用 */
}

.c-checkbox-text {
  font-weight: 700;
  font-size: 1.05rem;
}

/* --- 送信ボタンエリア --- */
.p-form-btn {
  margin-top: 40px;
  text-align: center;
}

/* ボタンサイズ調整 */
.p-form-btn .c-btn {
  width: 300px;
  max-width: 100%;
  margin: 0 auto;
  border: none;
  cursor: pointer;
}

/* --- スマホ対応（レスポンシブ） --- */
@media screen and (max-width: 768px) {
  .p-form-group {
    display: block; /* 縦積みに変更 */
    padding: 20px 0;
  }

  .p-form-head {
    width: 100%;
    margin-bottom: 10px;
  }

  .p-form-label {
    font-size: 0.9rem;
  }

  .c-input,
  .c-textarea,
  .c-select {
    font-size: 0.9rem;
    padding: 10px 12px;
  }

  .p-form-btn .c-btn {
    width: 100%;
  }

  .c-checkbox-text {
    font-size: 0.875rem;
  }
}
