/* ==========================================
   AMG CAREER - カスタムスタイル
   ========================================== */

/* --- リセット & ベース --- */
html {
  scroll-behavior: smooth;
}

/* --- KV セクション --- */
.kv-section {
  position: relative;
  overflow: hidden;
}

.kv-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 39, 68, 0.4);
  z-index: 1;
}

.kv-geometric {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: 20% center;
  background-size: 50%;
  opacity: 0.6;
  z-index: 2;
}

.kv-content {
  position: relative;
  z-index: 3;
}

/* --- セクション共通見出し --- */
.section-title {
  font-weight: 700;
  line-height: 1.3;
}

.section-subtitle {
  color: #b0b0b0;
  letter-spacing: 0.15em;
  font-size: 12px;
}

/* --- サービスカード --- */
.service-card {
  background-color: #ffffff;
  display: flex;
  min-height: 300px;
}

.service-card .card-left {
  width: 42%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.service-card .card-right {
  width: 58%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-badge {
  display: inline-block;
  background-color: #333;
  color: #fff;
  font-size: 11px;
  padding: 8px 20px;
  border-radius: 9999px;
  align-self: flex-start;
}

.service-card .card-left img {
  max-width: 90%;
}

/* --- 会社概要テーブル --- */
.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table tr {
  border-bottom: 1px solid #e5e7eb;
}

.company-table th {
  text-align: left;
  padding: 16px 24px 16px 0;
  font-weight: 600;
  color: #555;
  width: 200px;
  white-space: nowrap;
  vertical-align: top;
  font-size: 13px;
}

.company-table td {
  padding: 16px 0;
  color: #333;
  font-size: 13px;
}

/* --- お問い合わせフォーム --- */
.form-row {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.form-row label {
  width: 160px;
  flex-shrink: 0;
  font-weight: 600;
  font-size: 13px;
}

.form-row input,
.form-row textarea,
.form-row select {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: #fff;
  font-size: 13px;
  outline: none;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
}

/* --- ハンバーガーメニュー --- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a2744;
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  z-index: 40;
  padding: 20px;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}

/* --- レスポンシブ --- */
@media (max-width: 767px) {
  .hamburger {
    display: flex;
  }

  .service-card {
    flex-direction: column;
  }

  .service-card .card-left {
    width: 100%;
    padding: 40px 24px;
  }

  .service-card .card-right {
    width: 100%;
    padding: 24px;
  }

  .form-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-row label {
    width: 100%;
    margin-bottom: 8px;
  }

  .form-row input,
  .form-row textarea,
  .form-row select {
    width: 100%;
  }

  .company-table th {
    white-space: normal;
    width: 120px;
    padding: 14px 12px 14px 0;
  }

  .company-table td {
    padding: 14px 0;
  }
}

/* ===================================
   CF7 フォームスタイル
   =================================== */

/* CF7ラッパー：入力欄とエラーを縦並びにする */
.wpcf7 .form-row .wpcf7-form-control-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

/* フォームコントロールを先に表示 */
.wpcf7 .form-row .wpcf7-form-control {
  order: 1;
  width: 100%;
}

/* エラーメッセージを入力欄の下に表示 */
.wpcf7 .form-row .wpcf7-not-valid-tip {
  display: block !important;
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 0.375rem;
  order: 2;
}

/* エラー時のinputに赤ボーダー */
.wpcf7 .form-row .wpcf7-not-valid {
  border: 1px solid #ef4444 !important;
}

/* 下部の全体エラーメッセージ */
.wpcf7 .wpcf7-response-output {
  font-size: 0.875rem;
  border-color: #ef4444 !important;
  color: #ef4444;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem !important;
  margin-top: 1.5rem;
}

/* 送信ボタン */
.wpcf7 .wpcf7-submit {
  background-color: #9ca3af;
  color: #fff;
  font-weight: bold;
  padding: 1rem 5rem;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}
.wpcf7 .wpcf7-submit:hover {
  background-color: #6b7280;
}
/* 送信成功時のメッセージ */
.wpcf7-form[data-status="sent"] .wpcf7-response-output {
  border-color: #22c55e !important;
  color: #16a34a;
  background-color: #f0fdf4;
}