/* ================================================
   お問い合わせページ - プロフェッショナルレスポンシブデザイン
   ================================================ */

/* ベーススタイルの改善 */
.contact-form {
  width: 100%;
  max-width: none;
}

.form-group {
  margin-bottom: 1.75rem;
  animation: fadeInUp 0.6s ease-out backwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.15s; }
.form-group:nth-child(3) { animation-delay: 0.2s; }
.form-group:nth-child(4) { animation-delay: 0.25s; }
.form-group:nth-child(5) { animation-delay: 0.3s; }
.form-group:nth-child(6) { animation-delay: 0.35s; }
.form-group:nth-child(7) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-label {
  display: block;
  margin-bottom: 0.625rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #0D1824;
  letter-spacing: 0.02em;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #0D1824;
  background-color: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-input:hover,
.form-textarea:hover {
  border-color: #cbd5e1;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #17a0ce;
  box-shadow: 0 0 0 4px rgba(23, 160, 206, 0.1);
  transform: translateY(-1px);
}

.form-textarea {
  min-height: 160px;
  resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #94a3b8;
}

/* デスクトップ（1200px以上） */
@media (min-width: 1200px) {
  .hero-content h1 {
    font-size: 3.5rem;
  }

  .form-group {
    margin-bottom: 2rem;
  }

  .form-input,
  .form-textarea {
    padding: 1.125rem 1.5rem;
    font-size: 1.05rem;
  }
}

/* タブレット横向き（992px〜1199px） */
@media (max-width: 1199px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-description {
    font-size: 1.05rem;
  }
}

/* タブレット縦向き（768px〜991px） */
@media (max-width: 991px) {
  .hero {
    min-height: 45vh !important;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-tagline {
    font-size: 1.25rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .form-group {
    margin-bottom: 1.5rem;
  }

  .form-input,
  .form-textarea {
    padding: 0.95rem 1.15rem;
    font-size: 1rem;
  }

  .form-textarea {
    min-height: 140px;
  }
}

/* モバイル（576px〜767px） */
@media (max-width: 767px) {
  .hero {
    min-height: 40vh !important;
  }

  .hero-content {
    padding: 2rem 1rem;
  }

  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }

  .hero-tagline {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
  }

  .hero-accent-line {
    width: 60px;
    height: 3px;
    margin: 1.25rem auto;
  }

  .hero-description {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  /* フォームコンテナ */
  .section {
    padding: 3rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  /* フォームカード */
  div[style*="padding: 3.5rem"] {
    padding: 2rem 1.5rem !important;
    border-radius: 20px !important;
  }

  /* フォームヘッダー */
  div[style*="text-align: center"] h2 {
    font-size: 1.5rem !important;
  }

  div[style*="text-align: center"] p {
    font-size: 0.875rem !important;
  }

  .form-group {
    margin-bottom: 1.35rem;
  }

  .form-label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .form-input,
  .form-textarea,
  select.form-input {
    padding: 0.875rem 1rem;
    font-size: 16px; /* iOS zoom prevention */
    border-radius: 10px;
  }

  .form-textarea {
    min-height: 130px;
  }

  /* 送信ボタン */
  button[type="submit"].btn {
    width: 100%;
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
    border-radius: 12px !important;
  }

  /* チェックボックス */
  label[style*="cursor: pointer"] span {
    font-size: 0.85rem !important;
  }

  /* 補足情報カード */
  div[style*="border-left: 4px solid"] {
    padding: 1.75rem !important;
    border-radius: 12px !important;
    margin-top: 2rem !important;
  }

  div[style*="border-left: 4px solid"] h3 {
    font-size: 1.1rem !important;
  }

  div[style*="border-left: 4px solid"] ul {
    font-size: 0.9rem;
  }

  div[style*="border-left: 4px solid"] li {
    padding: 0.625rem 0 !important;
  }
}

/* 小型モバイル（〜575px） */
@media (max-width: 575px) {
  .hero {
    min-height: 35vh !important;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .hero-description {
    font-size: 0.875rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  div[style*="padding: 3.5rem"] {
    padding: 1.5rem 1.25rem !important;
  }

  div[style*="text-align: center"] h2 {
    font-size: 1.35rem !important;
  }

  .form-group {
    margin-bottom: 1.25rem;
  }

  .form-input,
  .form-textarea,
  select.form-input {
    padding: 0.75rem 0.875rem;
    font-size: 16px;
  }

  button[type="submit"].btn {
    padding: 0.875rem 1.75rem !important;
    font-size: 0.95rem !important;
  }

  div[style*="border-left: 4px solid"] {
    padding: 1.5rem !important;
  }

  div[style*="border-left: 4px solid"] h3 {
    font-size: 1rem !important;
  }

  div[style*="border-left: 4px solid"] ul {
    font-size: 0.85rem;
  }
}

/* 極小デバイス（〜374px） */
@media (max-width: 374px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }

  div[style*="padding: 3.5rem"] {
    padding: 1.25rem 1rem !important;
  }

  .form-input,
  .form-textarea,
  select.form-input {
    padding: 0.625rem 0.75rem;
    font-size: 16px;
  }

  button[type="submit"].btn {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
}

/* ランドスケープモード（横向き） */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 60vh !important;
  }

  .hero-content {
    padding: 1.5rem 1rem;
  }

  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .hero-description {
    font-size: 0.875rem;
  }
}

/* タッチデバイス対応 */
@media (hover: none) and (pointer: coarse) {
  .form-input,
  .form-textarea,
  select.form-input {
    font-size: 16px; /* iOS zoom prevention */
  }

  button[type="submit"].btn {
    -webkit-tap-highlight-color: rgba(23, 160, 206, 0.2);
  }

  .form-input:active,
  .form-textarea:active {
    transform: none;
  }
}

/* ダークモード対応（将来の拡張用） */
@media (prefers-color-scheme: dark) {
  /* 必要に応じてダークモードスタイルを追加 */
}

/* アクセシビリティ: 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  .form-group {
    animation: none;
  }

  .form-input,
  .form-textarea,
  button[type="submit"].btn {
    transition: none;
  }
}

/* プリント時の最適化 */
@media print {
  .hero-canvas,
  .footer,
  button[type="submit"] {
    display: none !important;
  }

  .form-input,
  .form-textarea {
    border: 1px solid #000;
  }
}

/* ハイコントラストモード対応 */
@media (prefers-contrast: high) {
  .form-input,
  .form-textarea {
    border-width: 3px;
  }

  .form-input:focus,
  .form-textarea:focus {
    outline: 3px solid #17a0ce;
  }
}
