@charset "utf-8";

/* ====================================
  共通フォームスタイル
==================================== */

/* 入力フィールド共通 */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #111111;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  min-height: 48px;
}
@media screen and (min-width: 765px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="date"],
  select,
  textarea {
    min-height: unset;
  }
}
input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="number"]:hover,
input[type="date"]:hover,
select:hover,
textarea:hover {
  border-color: #bbb;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #111111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}
input::placeholder,
textarea::placeholder {
  color: #aaa;
  font-size: 14px;
}
textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.8;
}
select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23666' d='M5 7L0 2h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* 日付入力 */
input[type="date"] {
  min-height: 48px;
}

/* 郵便番号ローディング状態 */
input[name*="zipcode"].is-loading {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cstyle%3E@keyframes spin%7Bto%7Btransform:rotate(360deg)%7D%7D%3C/style%3E%3Ccircle cx='12' cy='12' r='10' fill='none' stroke='%23ddd' stroke-width='3'/%3E%3Cpath d='M12 2a10 10 0 0 1 10 10' fill='none' stroke='%23fbbf24' stroke-width='3' stroke-linecap='round' style='animation:spin .8s linear infinite;transform-origin:center'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}

/* 郵便番号成功状態 */
input[name*="zipcode"].is-valid {
  border-color: #28a745;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%2328a745'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}


/* ====================================
  チェックボックス・ラジオボタン
==================================== */
input[type="checkbox"],
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #e5e5e5;
  border-radius: 3px;
  background: #ffffff;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin: 0;
  transition: all 0.15s ease;
  accent-color: #111111;
}
input[type="radio"] {
  border-radius: 50%;
}
input[type="checkbox"]:hover,
input[type="radio"]:hover {
  border-color: #111111;
}
input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background: #111111;
  border-color: #111111;
}
input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
input[type="checkbox"]:focus,
input[type="radio"]:focus {
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.1);
}


/* ====================================
  フォームラッパー
==================================== */
.contact-form,
.recruit-form {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 0;
  padding: 28px 20px;
  border-top: 3px solid #111111;
  box-shadow: 0 1px 0 #e5e5e5, 0 4px 8px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.10), 0 40px 80px rgba(0, 0, 0, 0.07);
}
@media screen and (min-width: 765px) {
  .contact-form,
  .recruit-form {
    padding: 40px 36px;
  }
}


/* ====================================
  セクション区切り
==================================== */
.form-section {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #e5e5e5;
}
.form-section:first-child,
.form-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.form-section__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10.4px;
  font-weight: 700;
  color: #888888;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e5e5;
}


/* ====================================
  フォーム項目
==================================== */
.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
@media screen and (min-width: 765px) {
  .form-group {
    margin-bottom: 24px;
  }
}
.form-group:last-child {
  margin-bottom: 0;
}

/* ラベル */
.form-group > label:first-child {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #111111;
  margin-bottom: 4px;
  line-height: 1.5;
}

/* 必須バッジ */
.form-group .required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  font-size: 10.4px;
  font-weight: 700;
  color: #fff;
  background: #111111;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

/* 任意バッジ */
.form-group .optional {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  font-size: 10.4px;
  font-weight: 600;
  color: #888888;
  background: #f5f5f5;
  border-radius: 4px;
}

/* プライバシー同意エリア */
.form-group.row {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #e5e5e5;
}


/* ====================================
  2カラムレイアウト
==================================== */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-row:last-child {
  margin-bottom: 0;
}
.form-row .form-group {
  margin-bottom: 0;
}
@media screen and (min-width: 600px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}
@media screen and (min-width: 765px) {
  .form-row {
    gap: 20px;
    margin-bottom: 24px;
  }
}


/* ====================================
  ラジオ・チェックボックスグループ
==================================== */
.form-radio-group,
.form-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 8px 0;
}
.radio-label,
.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #111111;
  line-height: 1.5;
  padding: 6px 0;
  min-height: 40px;
  transition: color 0.2s ease;
}
.radio-label:hover,
.checkbox-label:hover {
  color: #111111;
}
.radio-label span,
.checkbox-label span {
  display: block;
}


/* ====================================
  ヒント・補足テキスト
==================================== */
.form-hint {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 10.4px;
  color: #888888;
  line-height: 1.5;
}
.form-hint::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E") center / contain no-repeat;
}


/* ====================================
  注意書きボックス
==================================== */
.form-attention-box,
.form-attention-box--short {
  background: #f5f5f5;
  padding: 16px;
  border-radius: 4px;
  border: 1px solid #e5e5e5;
  font-size: 13px;
  color: #888888;
  line-height: 1.7;
  margin-bottom: 16px;
}
.form-attention-box--short {
  max-height: 100px;
  overflow-y: auto;
}
.form-attention-box p,
.form-attention-box--short p {
  margin: 0;
}
.form-attention-box a,
.form-attention-box--short a {
  color: #111111;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form-attention-box a:hover,
.form-attention-box--short a:hover {
  text-decoration: none;
}


/* ====================================
  ハニーポット（スパム対策）
==================================== */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}


/* ====================================
  バリデーション - エラー状態
==================================== */
input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: #c0392b !important;
  background-color: #fdf2f2;
}
input.is-invalid:focus,
select.is-invalid:focus,
textarea.is-invalid:focus {
  border-color: #c0392b !important;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

/* エラーメッセージ */
.form-error {
  margin-top: 4px;
  font-size: 10.4px;
  font-weight: 500;
  color: #c0392b;
  line-height: 1.4;
}

/* 成功状態 */
input.is-valid,
select.is-valid,
textarea.is-valid {
  border-color: #28a745;
}


/* ====================================
  送信ボタン
==================================== */
.btn-contact-form {
  display: block;
  width: 100%;
  min-height: 52px;
  max-width: 320px;
  margin: 36px auto 0;
  padding: 16px 24px;
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #111111;
  background: #fbbf24;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}
@media screen and (min-width: 765px) {
  .btn-contact-form {
    min-height: unset;
    padding: 14px 64px;
    max-width: none;
    width: auto;
    display: inline-block;
    margin: 36px auto 0;
  }
}
.btn-contact-form:hover {
  background: #facc15;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}
.btn-contact-form:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}
.btn-contact-form:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.6;
}

/* ローディング状態 */
.btn-contact-form.is-loading {
  color: transparent;
  pointer-events: none;
}
.btn-contact-form.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 3px solid rgba(17, 17, 17, 0.2);
  border-top-color: #111111;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}


/* ====================================
  送信結果メッセージ
==================================== */
.form-message {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px;
  border-radius: 4px;
  margin-bottom: 28px;
}
.form-message__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  border-radius: 50%;
}
.form-message p {
  margin: 0;
  padding-top: 2px;
  line-height: 1.6;
  font-size: 15px;
  font-weight: 500;
}

/* 成功 */
.form-message--success {
  background: #f5f5f5;
  border-top: 3px solid #111111;
  color: #111111;
}
.form-message--success .form-message__icon {
  background: #111111;
  color: #fff;
}

/* エラー */
.form-message--error {
  background: #fdf2f2;
  border-top: 3px solid #c0392b;
  color: #c0392b;
}
.form-message--error .form-message__icon {
  background: #c0392b;
  color: #fff;
}

/* デバッグ */
.form-message--debug {
  background: #fff3cd;
  border-top: 3px solid #e6a817;
  color: #856404;
}
.form-message--debug .form-message__icon {
  background: #e6a817;
  color: #fff;
}


/* ====================================
  フォームラッパー（外部）
==================================== */
.form-wrapper {
  max-width: 960px;
  margin: 0 auto;
}
.form-wrapper__note {
  text-align: center;
  font-size: 14px;
  color: #888888;
  margin-bottom: 28px;
}
.form-required-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #111111;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: middle;
}


/* ====================================
  検索フォーム
==================================== */
.search-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
}
.search-form__input {
  flex: 1;
}
.search-form__submit {
  flex-shrink: 0;
}
