@charset "UTF-8";

/* ==========================================
   お問い合わせフォーム リニューアル用 CSS (contact.css)
   ========================================== */

/* フォーム全体コンテナ */
.contact-form-section {
  max-width: 760px;
  margin: 0 auto 40px;
  padding: 0 15px;
  box-sizing: border-box;
}

.contact-header {
  padding-top: 20px;
  margin-bottom: 25px;
}

.contact-header__title {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  border-bottom: 2px solid #e90000;
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.contact-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  background: #fff;
  padding-top: 8px;
  padding-bottom: 4px;
}

.contact-breadcrumb li + li::before {
  content: '>';
  margin: 0 8px;
  color: #999;
}

.contact-breadcrumb a {
  color: #0066cc;
  text-decoration: none;
}

/* ===== 電話帳エリア ===== */
.contact-tel-section {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
}

.contact-office-main {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px dashed #ccc;
}

.contact-office-main img {
  max-width: 100%;
  height: auto;
}

.contact-office-main__numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.contact-office-main__numbers a,
.contact-office-main__numbers div {
  display: inline-block;
}

.contact-offices__note {
  font-size: 13px;
  color: #555;
  margin-bottom: 15px;
  text-align: center;
  line-height: 1.5;
}

.contact-offices__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-office-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.contact-office-card__name {
  font-weight: bold;
  font-size: 13px;
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.contact-office-card__name img {
  max-width: 100%;
  height: auto;
}

.contact-office-card__name:hover {
  color: #e90000;
  text-decoration: underline;
}

.contact-office-card__tel {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: bold;
  font-size: 14px;
  color: #0066cc;
  text-decoration: none;
  padding: 6px 12px;
  background: #f0f7ff;
  border-radius: 4px;
  border: 1px solid #cce0ff;
  white-space: nowrap;
  flex-shrink: 0;
}

.contact-office-card__tel:hover {
  background: #e0efff;
}

/* ===== フォーム本体 ===== */
.contact-form-section__title {
  font-size: 18px;
  font-weight: bold;
  color: #222;
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 4px solid #e90000;
}

.contact-form-section__note {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* 説明文 薄グレー枠ボックス */
.contact-intro-box {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 25px;
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

.contact-intro-box p {
  margin: 0;
}

/* フォームグループ */
.form-group {
  margin-bottom: 22px;
}

.form-fieldset {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 22px;
  background: #fafafa;
}

.form-label {
  display: block;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 8px;
  color: #333;
}

.form-sublabel {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
  margin-top: 6px;
}

/* 必須/任意バッジ */
.form-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 7px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
  line-height: 1;
}

.form-badge--required {
  background: #e90000;
  color: #fff;
}

.form-badge--optional {
  background: #888;
  color: #fff;
}

/* 入力要素 */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font-size: 16px; /* iOS自動ズーム防止 */
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  color: #333;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #e90000;
  box-shadow: 0 0 0 3px rgba(233, 0, 0, 0.12);
}

.form-input--small,
.form-input--medium {
  width: 100%;
  max-width: 100%;
}

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

/* 住所入力用レイアウト */
.form-address__zip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.form-address__zip-row .form-input {
  width: 120px;
}

.btn-zip-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: bold;
  color: #333;
  background: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 0.2s,
    border-color 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-zip-search:hover {
  background: #e4e4e4;
  border-color: #bbb;
}

.form-address__state {
  margin-bottom: 10px;
}

/* ラジオボタン (カードスタイル) */
.form-radio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}

.form-radio-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  text-align: center;
  transition: all 0.2s ease;
  user-select: none;
}

.form-radio-card input[type='radio'] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-radio-card:hover {
  border-color: #999;
  background: #fdfdfd;
}

.form-radio-card.is-selected,
.form-radio-card:has(input[type='radio']:checked) {
  border-color: #e90000;
  background: #fff5f5;
  color: #e90000;
  font-weight: bold;
  box-shadow: 0 0 0 1px #e90000;
}

/* チェックボックス・送信エリア */
.form-submit-area {
  margin-top: 30px;
  text-align: center;
}

.form-checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}

.form-checkbox input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
}

.form-submit-area__note {
  font-size: 12px;
  color: #cc0000;
  margin: 8px 0 20px;
}

/* ボタン */
.form-btn,
.form-btn:link,
.form-btn:visited {
  display: inline-block;
  min-width: 220px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  transition:
    background-color 0.2s,
    opacity 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-btn--primary,
.form-btn--primary:link,
.form-btn--primary:visited {
  background-color: #e90000;
  color: #ffffff;
}

.form-btn--primary:hover,
.form-btn--primary:focus {
  background-color: #c80000;
  color: #ffffff;
}

.form-btn--primary:disabled {
  background-color: #ccc !important;
  color: #888 !important;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.7;
}

.form-btn--secondary,
.form-btn--secondary:link,
.form-btn--secondary:visited {
  background-color: #666666;
  color: #ffffff;
}

.form-btn--secondary:hover,
.form-btn--secondary:focus {
  background-color: #444444;
  color: #ffffff;
}

.form-submit-area--confirm {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* ===== 確認画面 定義リスト ===== */
.confirm-list {
  margin: 20px 0 30px;
  border-top: 1px solid #e0e0e0;
}

.confirm-list__item {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  padding: 12px 8px;
  font-size: 14px;
}

.confirm-list__item dt {
  width: 180px;
  flex-shrink: 0;
  font-weight: bold;
  color: #444;
  padding-right: 15px;
  box-sizing: border-box;
}

.confirm-list__item dd {
  flex: 1;
  margin: 0;
  color: #222;
  word-break: break-word;
}

/* ===== エラー・完了表示 ===== */
.contact-error-box {
  background: #fff5f5;
  border: 1px solid #ffcccc;
  border-radius: 6px;
  padding: 15px 20px;
  margin-bottom: 25px;
  color: #cc0000;
}

.contact-error-box p {
  font-weight: bold;
  margin: 0 0 8px;
}

.contact-error-box ul {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.6;
}

.contact-complete-box {
  background: #f4fff4;
  border: 1px solid #ccffcc;
  border-radius: 6px;
  padding: 25px 20px;
  margin-bottom: 25px;
  text-align: center;
  line-height: 1.8;
  font-size: 15px;
  color: #222;
}

.form-input--error {
  border-color: #e90000 !important;
  background-color: #fff8f8 !important;
}

/* ===== レスポンシブ (スマホ向け: 768px以下) ===== */
@media screen and (max-width: 768px) {
  .contact-form-section {
    padding: 0 10px;
  }

  .contact-header__title {
    font-size: 18px;
  }

  .contact-tel-section {
    padding: 15px 10px;
  }

  .contact-office-main__numbers {
    flex-direction: column;
    gap: 10px;
  }

  .form-radio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .confirm-list__item {
    flex-direction: column;
    padding: 10px 4px;
  }

  .confirm-list__item dt {
    width: 100%;
    margin-bottom: 4px;
    color: #666;
    font-size: 12px;
  }

  .confirm-list__item dd {
    font-size: 14px;
  }

  .form-submit-area--confirm {
    flex-direction: column-reverse;
    gap: 12px;
  }

  .form-btn {
    width: 100%;
    min-width: auto;
    box-sizing: border-box;
  }

  .contact-office-card {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
  }
}
