@charset "UTF-8";

/* ==========================================================================
   お問い合わせフォーム専用スタイル (完全版 + ファイル選択UI強化)
   ========================================================================== */

/* --------------------------------------------------
   ベースレイアウト
   -------------------------------------------------- */
.contact-form-section {
  padding: 60px 0 100px;
  background-color: #f4f6fb;
}

.contact-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-form-card {
  background: #fff;
  border-radius: 10px;
  padding: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .contact-form-card {
    padding: 30px 20px;
  }
}

/* --------------------------------------------------
   フォームの行 (Label + Field)
   -------------------------------------------------- */
.contact-row {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #eef2f6;
  padding: 30px 0;
}

.contact-row:last-of-type {
  border-bottom: none;
}

.contact-row-label {
  width: 240px;
  font-weight: 700;
  color: #1a3055;
  padding-top: 10px;
  flex-shrink: 0;
}

.contact-row-field {
  width: calc(100% - 240px);
}

/* 必須ラベル */
.required-label {
  display: inline-block;
  background: #d9534f;
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 8px;
  position: relative;
  top: -1px;
}

@media (max-width: 768px) {
  .contact-row {
    display: block;
    padding: 20px 0;
  }

  .contact-row-label {
    width: 100%;
    margin-bottom: 10px;
    padding-top: 0;
  }

  .contact-row-field {
    width: 100%;
  }
}

/* --------------------------------------------------
   入力フィールド (Input, Textarea)
   -------------------------------------------------- */
.contact-input,
.contact-textarea {
  width: 100%;
  border: 1px solid #dde2e9;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 16px;
  color: #333;
  background: #fdfdfd;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

.contact-input:focus,
.contact-textarea:focus {
  border-color: #22344f;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(34, 52, 79, 0.1);
  outline: none;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: #bbb;
}

/* 姓名などの横並びフィールド */
.contact-row-field--name {
  display: flex;
  gap: 20px;
}

.contact-name-item {
  flex: 1;
  display: flex;
  align-items: center;
}

.contact-name-label {
  margin-right: 10px;
  font-size: 14px;
  color: #666;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .contact-row-field--name {
    flex-direction: column;
    gap: 15px;
  }
}

/* --------------------------------------------------
   注釈テキスト
   -------------------------------------------------- */
.contact-type-note,
.contact-file-note,
.contact-message-note {
  font-size: 13px;
  color: #888;
  margin-top: 8px;
  line-height: 1.6;
}

.contact-privacy-link {
  margin-bottom: 15px;
}

.contact-privacy-link a {
  color: #22344f;
  text-decoration: underline;
  font-weight: 700;
}

/* --------------------------------------------------
   ラジオボタン：選択ボタン風デザイン
   -------------------------------------------------- */
.contact-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-radio-item {
  flex: 1;
  min-width: 200px;
  position: relative;
  cursor: pointer;
  margin: 0;
}

.contact-radio-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.contact-radio-item span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  background-color: #fff;
  border: 2px solid #dde2e9;
  border-radius: 8px;
  color: #666;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.2s ease;
  text-align: center;
}

/* 選択された時 */
.contact-radio-item input[type="radio"]:checked+span {
  background-color: #22344f;
  color: #fff;
  border-color: #22344f;
  box-shadow: 0 4px 10px rgba(34, 52, 79, 0.2);
}

/* 選択マーク */
.contact-radio-item input[type="radio"]:checked+span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-right: 10px;
  margin-bottom: 2px;
}

@media (hover: hover) {
  .contact-radio-item span:hover {
    border-color: #22344f;
    background-color: #f4f8fb;
  }

  .contact-radio-item input[type="radio"]:checked+span:hover {
    background-color: #22344f;
    opacity: 0.9;
  }
}

/* --------------------------------------------------
   チェックボックス
   -------------------------------------------------- */
.contact-checkbox-item {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  color: #333;
}

.contact-checkbox-item input[type="checkbox"] {
  transform: scale(1.4);
  margin-right: 10px;
  accent-color: #22344f;
}

/* --------------------------------------------------
   ファイルアップロード (★修正：選択時のスタイル追加)
   -------------------------------------------------- */
.contact-file-label {
  display: inline-block;
  cursor: pointer;
}

.contact-file-button {
  display: inline-block;
  background: #f4f6fb;
  border: 1px dashed #22344f;
  color: #22344f;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s;
}

.contact-file-button:hover {
  background: #eef4fa;
}

/* 選択された状態（JSでクラス付与） */
.contact-file-button.is-active {
  background: #22344f;
  color: #fff;
  border-style: solid;
}

/* ファイル名表示エリア */
#file-name-display {
  margin-top: 10px;
  font-size: 14px;
  font-weight: bold;
  color: #22344f;
  background-color: #eef4fa;
  padding: 8px 12px;
  border-radius: 4px;
  display: inline-block;
}

.contact-file-input {
  display: none;
}

/* --------------------------------------------------
   送信ボタンエリア
   -------------------------------------------------- */
.contact-submit-row {
  margin-top: 40px;
  text-align: center;
}

.contact-submit-button {
  background: #22344f;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 18px 80px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(34, 52, 79, 0.3);
  letter-spacing: 0.05em;
}

.contact-submit-button:hover {
  background: #1a2640;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 52, 79, 0.4);
}

/* --------------------------------------------------
   ページヒーロー
   -------------------------------------------------- */
.contact-hero {
  background: url('../images/mv-img.jpg') no-repeat center center / cover;
  position: relative;
  padding: 100px 20px;
  text-align: center;
  color: #fff;
}

.contact-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 20, 40, 0.6);
}

.contact-hero-en {
  position: relative;
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  letter-spacing: 0.1em;
  color: #4da6ff;
  margin-bottom: 10px;
  font-weight: 500;
}

.contact-hero-title {
  position: relative;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
}

.contact-hero-lead {
  position: relative;
  font-size: 15px;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 60px 20px;
  }

  .contact-hero-title {
    font-size: 28px;
  }
}