@charset "utf-8";

/* ==========================================================================
   お問い合わせフォーム（contact.css）
   ========================================================================== */

/* 全体の最大幅と中央揃え */
.form-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 20px 60px;
}

/* パンくずリスト */
.trail-list {
  font-size: 14px;
  color: #666666;
  margin-bottom: 25px;
}
.trail-list a {
  color: #002060;
  text-decoration: underline;
}

/* 導入文・見出し */
.form-intro {
  margin-bottom: 25px;
}
.form-title {
  font-size: 24px;
  color: #002060;
  font-weight: bold;
  border-left: 6px solid #002060;
  padding-left: 12px;
  margin-bottom: 15px;
  line-height: 1.4;
}
.form-intro p {
  font-size: 15px;
  line-height: 1.8;
  color: #333333;
}

/* 注意事項ボックス（薄赤の枠） */
.form-attention-box {
  background-color: #fef3f3;
  border: 1px solid #c00000;
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 30px;
}
.form-attention-box strong {
  color: #c00000;
  font-size: 15px;
  display: block;
  margin-bottom: 4px;
}
.form-attention-box p {
  font-size: 14px;
  color: #444444;
  line-height: 1.6;
  margin: 0;
}

/* フォームテーブル */
.form-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #dcdcdc;
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.form-table th, 
.form-table td {
  padding: 16px 20px;
  border: 1px solid #e0e0e0;
  vertical-align: middle;
}

.form-table th {
  background-color: #f8f9fa;
  text-align: left;
  width: 28%;
  color: #002060;
  font-weight: bold;
  font-size: 15px;
}

.form-table th label {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 「必須」ラベル（中大赤） */
.badge-required {
  background-color: #c00000;
  color: #ffffff;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* 入力欄（テキスト・メール・TEL・セレクト・テキストエリア） */
.form-table input[type="text"],
.form-table input[type="email"],
.form-table input[type="tel"],
.form-table select,
.form-table textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
  background-color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-table select {
  height: 44px;
  cursor: pointer;
}

.form-table textarea {
  line-height: 1.6;
  resize: vertical;
}

/* フォーカス時の色 */
.form-table input:focus,
.form-table select:focus,
.form-table textarea:focus {
  outline: none;
  border-color: #002060;
  box-shadow: 0 0 6px rgba(0, 32, 96, 0.25);
}

/* 同意チェックボックス */
.confirm-check-area {
  text-align: center;
  margin: 30px 0 25px;
}
.check-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 15px;
  color: #333333;
  cursor: pointer;
}
.check-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* 送信ボタンエリア（中央寄せの赤丸ボタン） */
.form-btn-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
.btn-submit {
  background-color: #c00000;
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  padding: 15px 60px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(192, 0, 0, 0.3);
  transition: all 0.25s ease;
  min-width: 280px;
}
.btn-submit:hover {
  background-color: #900000;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(192, 0, 0, 0.4);
}

/* ==========================================================================
   レスポンシブ対応（スマホ表示）
   ========================================================================== */
@media screen and (max-width: 768px) {
  .form-title {
    font-size: 20px;
  }
  .form-table th, 
  .form-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .form-table th {
    padding-bottom: 6px;
    border-bottom: none;
    background-color: #f8f9fa;
  }
  .form-table td {
    padding-top: 6px;
    border-top: none;
    border-bottom: 1px solid #e0e0e0;
  }
  .btn-submit {
    width: 100%;
    font-size: 16px;
    padding: 14px 20px;
    border-radius: 8px;
  }
}

/* ==========================================================================
   フッターの最下部固定（白隙間の解消）
   ========================================================================== */
html, body.contact-page {
  height: 100%;
  margin: 0;
  padding: 0;
}

body.contact-page .site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.contact-page .main-container {
  flex: 1; /* メイン領域を伸ばしてフッターを最下部に押し下げる */
}

/* ==========================================================================
   確認画面ボタン（センタリング・スタイル定義）
   ========================================================================== */
.confirm-btn-wrapper {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 24px;
  margin: 40px auto 20px !important;
  width: 100%;
}

/* 戻るボタン */
.btn-back {
  background-color: #6c757d;
  color: #ffffff;
  font-size: 17px;
  font-weight: bold;
  padding: 14px 36px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(108, 117, 125, 0.25);
  transition: all 0.25s ease;
  min-width: 200px;
  display: inline-block;
  text-align: center;
}
.btn-back:hover {
  background-color: #545b62;
  transform: translateY(-2px);
}

/* 送信ボタン */
.confirm-btn-wrapper .btn-submit {
  background-color: #c00000;
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  padding: 14px 44px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(192, 0, 0, 0.3);
  transition: all 0.25s ease;
  min-width: 240px;
}
.confirm-btn-wrapper .btn-submit:hover {
  background-color: #900000;
  transform: translateY(-2px);
}

/* スマホ表示時 */
@media screen and (max-width: 768px) {
  .confirm-btn-wrapper {
    flex-direction: column-reverse;
    gap: 15px;
  }
  .btn-back,
  .confirm-btn-wrapper .btn-submit {
    width: 100%;
    min-width: unset;
    border-radius: 8px;
    padding: 14px 10px;
  }
}

/* ==========================================================================
   完了画面専用スタイル
   ========================================================================== */
.complete-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 50px 30px;
  text-align: center;
  margin: 30px auto 40px;
  max-width: 800px;
}

.complete-icon {
  width: 60px;
  height: 60px;
  background-color: #e8f4fd;
  color: #002060;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
}

.complete-title {
  font-size: 22px;
  color: #002060;
  font-weight: bold;
  margin-bottom: 20px;
}

.complete-text {
  font-size: 16px;
  color: #333333;
  line-height: 1.8;
  margin-bottom: 15px;
}

.complete-subtext {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
}

@media screen and (max-width: 768px) {
  .complete-card {
    padding: 35px 20px;
  }
  .complete-title {
    font-size: 19px;
  }
}