@charset "utf-8";

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

/* フォームテーブルの基本設定 */
.form-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  border: 1px solid #ccc;
}

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

.form-table th {
  background-color: #f9f9f9;
  text-align: left;
  width: 30%;
}

.form-table th label {
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 「必須」ラベル（赤） */
.form-table th span {
  background-color: var(--color-accent); /* 共通のアクセント赤に統一 */
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 10px;
}

/* 入力要素のスタイル */
.form-table input[type="text"],
.form-table input[type="email"],
.form-table input[type="tel"],
.form-table textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
  box-sizing: border-box;
}

/* 郵便番号などの短い入力欄 */
.form-table .input-short {
  width: 150px; /* !important を削除 */
}

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

/* フォーカス時の色（メインの紺色に連動） */
.form-table input:focus,
.form-table textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 5px rgba(0, 60, 130, 0.2);
}

/* ==========================================================================
   レスポンシブ対応（スマホ表示）
   ========================================================================== */
@media screen and (max-width: 640px) {
  .form-table th, 
  .form-table td {
    display: block;
    width: 100%;
    border-bottom: none;
  }
  
  .form-table th {
    padding-bottom: 5px;
    background-color: #f9f9f9;
  }
  
  .form-table td {
    padding-top: 5px;
    border-top: none;
    border-bottom: 1px solid #ccc; /* スマホ時に項目の区切りをわかりやすく */
  }
}