/* ============================================================
  お問い合わせページ専用スタイル（contact.css）
  共通スタイル css/style.css + css/gaiheki.css を継承し、
  このページ固有のセクションのみここで定義します。
============================================================ */

/* ============================================================
  ページヒーロー（コンパクト）
============================================================ */
.contact-hero {
  background: var(--navy);
  padding: 72px 0 64px;
  text-align: center;
}
.contact-hero__inner {
  max-width: 720px;
  margin: 0 auto;
}
.contact-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.45;
  color: var(--white);
  margin-top: 16px;
}
.contact-hero__sub {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 2;
  color: rgba(255,255,255,.78);
  margin-top: 18px;
}
.contact-hero__notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.contact-note {
  display: inline-block;
  background: rgba(200,168,90,.15);
  border: 1px solid rgba(200,168,90,.35);
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 6px 16px;
  border-radius: var(--r-pill);
}

/* ============================================================
  3つの連絡方法
============================================================ */
.contact-methods-section {
  background: var(--off);
  padding: 80px 0 72px;
}
.contact-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.contact-method-card {
  background: var(--white);
  border: 1.5px solid var(--line-clr);
  border-radius: var(--r-xl);
  padding: 36px 28px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}
.contact-method-card--tel  { border-top: 4px solid var(--navy); }
.contact-method-card--line { border-top: 4px solid var(--line-green); }
.contact-method-card--form { border-top: 4px solid var(--gold); }

.contact-method-card__label {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--navy);
  font-weight: 700;
}
.contact-method-card__desc {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-muted);
}
.contact-method-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 28px;
  border-radius: var(--r-pill);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  width: 100%;
  background: var(--navy);
  color: var(--white);
  transition: opacity var(--dur-fast) var(--ease-soft),
              transform var(--dur-fast) var(--ease-soft);
}
.contact-method-card__action--line {
  background: var(--line-green);
  color: var(--white);
  font-size: 16px;
}
.contact-method-card__action--form {
  background: var(--gold);
  color: var(--navy);
  font-size: 16px;
}
@media (hover:hover) {
  .contact-method-card__action:hover {
    opacity: .85;
    transform: translateY(-2px);
  }
}
.contact-method-card__note {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: .04em;
}

/* ============================================================
  フォームセクション
============================================================ */
.contact-form-section {
  background: var(--white);
  padding: 88px 0 96px;
}
.contact-form-wrap {
  max-width: 720px;
  margin: 56px auto 0;
}

/* フォーム全体 */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* フォームグループ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ラベル */
.form-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-required {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 2px 8px;
  border-radius: var(--r-pill);
}
.form-optional {
  display: inline-block;
  background: var(--off2);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .06em;
  padding: 2px 8px;
  border-radius: var(--r-pill);
}

/* テキスト入力・セレクト・テキストエリア 共通 */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid rgba(15,32,68,.18);
  border-radius: var(--r-md);
  padding: 14px 18px;
  min-height: 52px;
  transition: border-color var(--dur-fast) var(--ease-soft),
              box-shadow var(--dur-fast) var(--ease-soft);
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,168,90,.18);
}
.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #d94040;
  box-shadow: 0 0 0 3px rgba(217,64,64,.12);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(30,45,69,.35);
}

/* セレクトの矢印 */
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230f2044' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 48px;
  cursor: pointer;
}

/* テキストエリア */
.form-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.9;
}

/* エラーメッセージ */
.form-error {
  font-family: var(--font-body);
  font-size: 12px;
  color: #d94040;
  min-height: 16px;
  letter-spacing: .02em;
}

/* チェックボックス群 */
.form-checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  min-height: 44px;
}
.form-check input[type="checkbox"] {
  width: 20px; height: 20px;
  min-width: 20px;
  border: 1.5px solid rgba(15,32,68,.25);
  border-radius: 5px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--white);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-soft),
              border-color var(--dur-fast) var(--ease-soft);
  position: relative;
}
.form-check input[type="checkbox"]:checked {
  background: var(--navy);
  border-color: var(--navy);
}
.form-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 3px; left: 6px;
  width: 5px; height: 9px;
  border: 2px solid var(--white);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.form-check span {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

/* プライバシー同意 */
.form-group--consent {
  padding: 24px;
  background: var(--off);
  border-radius: var(--r-lg);
  gap: 12px;
}
.form-check--consent {
  gap: 12px;
}
.form-check--consent span {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.form-privacy-note {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-muted);
  padding-left: 32px;
}

/* 送信ボタン */
.form-submit {
  display: block;
  width: 100%;
  min-height: 60px;
  padding: 16px 28px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .06em;
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: opacity var(--dur-fast) var(--ease-soft),
              transform var(--dur-fast) var(--ease-soft),
              box-shadow var(--dur-fast) var(--ease-soft);
}
@media (hover:hover) {
  .form-submit:hover {
    opacity: .88;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(200,168,90,.36);
  }
}
.form-submit:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

/* フォーム下の注意書き */
.form-note {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.8;
}

/* ============================================================
  送信完了メッセージ
============================================================ */
.form-thanks {
  text-align: center;
  padding: 64px 24px;
}
.form-thanks__inner {
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.form-thanks__icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(200,168,90,.15);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--gold);
  font-family: var(--font-number);
}
.form-thanks h2 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 30px);
  color: var(--navy);
  line-height: 1.5;
}
.form-thanks p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 2;
  color: var(--text-muted);
}
.form-thanks__note {
  font-size: 13px;
}
.form-thanks__note a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
  安心ポイントセクション
============================================================ */
.contact-assurance-section {
  background: var(--off);
}
.assurance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.assurance-card {
  background: var(--white);
  border: 1px solid var(--line-clr);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}
.assurance-card h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-clr);
}
.assurance-card p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 2;
  color: var(--text-muted);
}

/* ============================================================
  レスポンシブ
============================================================ */
@media (max-width: 1024px) {
  .contact-methods-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

@media (max-width: 768px) {
  .contact-hero { padding: 52px 0 48px; }
  .contact-methods-grid { grid-template-columns: 1fr; max-width: 420px; margin: 40px auto 0; }
  .form-checks { grid-template-columns: 1fr; }
  .assurance-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { margin-top: 40px; }
}

@media (max-width: 640px) {
  .contact-form-section { padding: 56px 0 64px; }
  .form-input,
  .form-select,
  .form-textarea { font-size: 16px; /* iOS ズーム防止 */ }
  .assurance-card { padding: 24px 20px; }
}

@media (max-width: 374px) {
  .contact-note { font-size: 11px; padding: 5px 12px; }
  .contact-method-card { padding: 28px 20px 24px; }
}
