/* ページヘッダー */
.page-header {
  background: linear-gradient(135deg, #3a5a7c 0%, #4a7a9b 50%, #5a8aaa 100%);
  padding: 120px 24px 48px;
  text-align: center;
}

.page-header-title {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.page-header-subtitle {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.2em;
}

/* サブページヘッダー（影を常時表示） */
.header--sub {
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

/* フォームレイアウト */
.contact-page-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

.contact-form-lead {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.8;
}

/* フォーム */
.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-required {
  font-size: 11px;
  color: #fff;
  background: #e74c3c;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 4px;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--gray-50);
  color: var(--text);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(41,128,185,0.15);
  background: var(--white);
}

.form-input::placeholder {
  color: #aaa;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

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

.form-privacy {
  margin-bottom: 24px;
}

.form-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}

.form-checkbox-label a {
  color: var(--primary-light);
  text-decoration: underline;
}

.form-submit {
  width: 100%;
}

.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-back-link {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-light);
  transition: color 0.3s ease;
}

.form-back-link:hover {
  color: var(--primary);
}

/* サイドバー */
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-aside-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.contact-aside-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.contact-aside-phone {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.contact-aside-hours {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-light);
}

.contact-aside-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
}

/* 送信完了ページ */
.complete-content {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.complete-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  background: #27ae60;
  color: #fff;
  font-size: 36px;
  line-height: 72px;
  border-radius: 50%;
}

.complete-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
}

.complete-text {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-light);
  margin-bottom: 16px;
  text-align: justify;
  word-break: break-all;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.complete-actions {
  margin-top: 40px;
}

/* フォームエラーメッセージ */
.form-error {
  background: #fdf0f0;
  border: 1px solid #e74c3c;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #c0392b;
  line-height: 1.7;
  display: none;
}

/* 送信中のボタン */
.form-submit:disabled.is-sending {
  opacity: 0.7;
  cursor: wait;
}

/* レスポンシブ */
@media (max-width: 860px) {
  .contact-page-layout {
    grid-template-columns: 1fr;
  }

  .page-header {
    padding: 100px 24px 40px;
  }

  .page-header-title {
    font-size: 26px;
  }
}

@media (max-width: 600px) {
  .contact-form {
    padding: 24px 20px;
  }

  .page-header {
    padding: 88px 20px 32px;
  }

  .page-header-title {
    font-size: 22px;
  }
}
