/*
Contact Page Styles for FACT Theme
*/

/* 問い合わせページ全体の文字をbold */
.contact-page,
.contact-page * {
  font-weight: bold !important;
}

/* プログレスインジケーター */
.progress-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 32px 0 40px;
  padding: 0 20px;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.progress-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
}

.progress-circle.completed {
  background: #22c55e;
  color: white;
}

.progress-circle.active {
  background: #0066cc;
  color: white;
}

.progress-circle.inactive {
  background: #e5e7eb;
  color: #999;
}

.progress-label {
  font-size: 12px;
  color: #666;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}

.progress-connector {
  width: 60px;
  height: 2px;
  background: #e5e7eb;
  margin: 0 8px;
  align-self: flex-start;
  margin-top: 20px;
}

.progress-connector.completed {
  background: #22c55e;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .progress-indicator {
    gap: 8px;
    margin: 24px 0 32px;
  }

  .progress-circle {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .progress-label {
    font-size: 11px;
  }

  .progress-connector {
    width: 40px;
    margin-top: 16px;
  }
}

@media (max-width: 480px) {
  .progress-indicator {
    gap: 4px;
  }

  .progress-circle {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .progress-label {
    font-size: 10px;
  }

  .progress-connector {
    width: 30px;
    margin-top: 14px;
  }
}

/* コンタクトページ全体 */
.contact-page {
  background-color: #f8fafb;
  position: relative;
  z-index: 10;
}

/* ヒーローセクション全体をコンタクトページで非表示 */
.contact-page ~ .hero-section-new,
.contact-page .hero-section-new,
body.page-contact .hero-section-new,
body.page-template-page-contact .hero-section-new,
.contact-page ~ .hero-images,
.contact-page .hero-images,
body.page-contact .hero-images,
body.page-template-page-contact .hero-images {
  display: none !important;
}

/* フォームコンテナは下部で定義 */

.contact-form {
  padding: 20px 0;
}

/* ヒーローセクション */
.contact-hero {
  background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
  color: white;
  padding: 80px 0 60px;
}

.contact-hero .hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.contact-hero .hero-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-hero .hero-subtitle {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 40px;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
}

.feature-item svg {
  flex-shrink: 0;
}

/* フォームセクション */
.contact-form-section {
  padding: 80px 0;
  position: relative;
  z-index: 20;
  background-color: #f8fafb;
}

.form-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  align-items: start;
}

.form-wrapper.centered {
  display: block;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.form-container {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-header {
  margin-bottom: 32px;
  text-align: center;
}

.form-header .form-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.form-header .form-description {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

/* フォームセクション */
.form-section {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e5e7eb;
}

.form-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.section-number {
  background: #0066cc;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

/* フォームグリッド */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.required {
  color: #FF1A1A;
  margin-left: 4px;
}

.form-input,
.form-select,
.form-textarea {
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  background: white;
  color: black;
  transition: border-color 0.3s ease;
  min-height: 48px;
  font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

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

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

/* 単位付き入力フィールド */
.input-with-unit {
  position: relative;
  display: inline-block;
  width: 100%;
}

.input-with-unit .form-input {
  padding-right: 40px;
}

.input-unit {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 16px;
  font-weight: 500;
  pointer-events: none;
}

/* ラジオボタンスタイル */
.radio-group {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.radio-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  min-height: 24px;
}

.radio-wrapper input[type="radio"] {
  display: none;
}

.radio-mark {
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: all 0.3s ease;
}

.radio-wrapper input[type="radio"]:checked + .radio-mark {
  border-color: #0066cc;
}

.radio-wrapper input[type="radio"]:checked + .radio-mark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #0066cc;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.radio-text {
  font-size: 16px;
  color: #1a1a1a;
}

/* チェックボックススタイル */
.agreement-section {
  padding: 24px;
  background: #f8f9fa;
  border-radius: 8px;
}

.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.3s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark {
  background: #0066cc;
  border-color: #0066cc;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-text {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.checkbox-text .link {
  color: #0066cc;
  text-decoration: underline;
}

/* 送信ボタン */
.form-submit {
  text-align: center;
  margin: 48px 0 24px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.submit-button {
  background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
   min-width: 200px;
  justify-content: center;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.submit-icon {
  transition: transform 0.3s ease;
}

.submit-button:hover .submit-icon {
  transform: translateX(4px);
}

.form-note {
  font-size: 14px;
  color: #666;
  text-align: center;
  margin-top: 20px;
  line-height: 1.6;
}

/* サイドバー */
.sidebar-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.info-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 16px;
}

/* 電話情報 */
.phone-info {
  text-align: center;
}

.phone-number {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 700;
  color: #0066cc;
  margin-bottom: 8px;
}

.phone-hours {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* FAQ リスト */
.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-link {
  display: block;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  border-left: 4px solid #e5e7eb;
}

.faq-link:hover {
  background: #e5e7eb;
  border-left-color: #0066cc;
  color: #0066cc;
}

/* オフィス情報 */
.office-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-item strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.info-item p {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
  margin: 0;
}



/* タブレット・モバイル対応 */
@media (max-width: 1024px) {
  .form-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-wrapper.centered {
    max-width: 700px;
    padding: 0 16px;
  }

  .sidebar-info {
    order: -1;
  }

  .sidebar-info .info-card {
    padding: 20px;
  }
}

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

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

  .contact-hero .hero-subtitle {
    font-size: 16px;
  }

  .hero-features {
    gap: 20px;
  }

  .contact-form-section {
    padding: 60px 20px;
  }

  .form-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 16px;
  }

  .form-wrapper.centered {
    max-width: 100%;
    padding: 0 16px;
  }

  .sidebar-info {
    order: -1;
  }

  .form-container {
    padding: 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 16px;
  }

  .form-header .form-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 18px;
  }

  .form-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
  }

  .form-container {
    padding: 24px;
    margin: 0 10px;
  }

  .contact-form {
    padding: 10px 0;
  }

  .radio-group {
    gap: 16px;
    margin-top: 12px;
  }

  .radio-text {
    font-size: 15px;
  }

  .phone-number {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .contact-hero {
    padding: 40px 16px;
  }

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

  .hero-features {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .contact-form-section {
    padding: 0px 16px;
  }

  .form-wrapper.centered {
    padding: 0 12px;
  }

  .form-container {
    padding: 20px;
  }

  .submit-button {
    width: 100%;
    font-size: 16px;
    padding: 14px 24px;
  }

  .radio-group {
    flex-direction: column;
    gap: 12px;
  }

  .radio-text {
    font-size: 14px;
  }

  .section-title {
    font-size: 16px;
    gap: 8px;
  }

  .section-number {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .phone-number {
    font-size: 18px;
  }
}

/* 確認ページ専用スタイル */
.confirm-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  align-items: start;
}

.confirm-wrapper.centered {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.confirm-container {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.confirm-content {
  margin-bottom: 40px;
}

.confirm-section {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e5e7eb;
}

.confirm-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.confirm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}

.confirm-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.confirm-item.full-width {
  grid-column: 1 / -1;
}

.confirm-label {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.confirm-value {
  font-size: 16px;
  color: #1a1a1a;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.confirm-message {
  min-height: 80px;
  align-items: flex-start;
  padding-top: 16px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.confirm-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin: 40px 0 24px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.back-button {
  background: #f8f9fa;
  color: #666;
  border: 2px solid #e5e7eb;
  border-radius: 50px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  min-width: 180px;
  justify-content: center;
}

.back-button:hover {
  background: #e5e7eb;
  border-color: #ccc;
  color: #333;
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-number {
  background: #0066cc;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.step-content p {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

/* 確認ページのレスポンシブ対応 */
@media (max-width: 1024px) {
  .confirm-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .confirm-wrapper.centered {
    max-width: 700px;
    padding: 0 16px;
  }
}

@media (max-width: 768px) {
  .confirm-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 16px;
  }

  .confirm-wrapper.centered {
    max-width: 100%;
    padding: 0 16px;
  }

  .confirm-container {
    padding: 24px;
  }

  .confirm-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 16px;
  }

  .confirm-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .back-button,
  .submit-button {
    width: 100%;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .confirm-container {
    padding: 20px;
  }

  .confirm-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
  }

  .confirm-value {
    font-size: 15px;
    padding: 10px 12px;
  }

  .confirm-message {
    min-height: 60px;
    padding-top: 12px;
  }
}

/* フォームヘルプテキスト */
.form-help {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
  display: block;
}

/* ファイルアップロード */
.file-upload-area {
  border: 2px dashed #e5e7eb;
  border-radius: 12px;
  padding: 0;
  transition: all 0.3s ease;
  background: #f8f9fa;
  position: relative;
  overflow: hidden;
}

.file-upload-area:hover {
  border-color: #0066cc;
  background: #f1f5f9;
}

.file-upload-area.drag-over {
  border-color: #0066cc;
  background: #e5f3ff;
  transform: scale(1.02);
}

.file-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-upload-display {
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* file-upload-area用のアップロードアイコン */
.file-upload-area .upload-icon {
  opacity: 0.7;
  transition: all 0.3s ease;
}

.file-upload-area:hover .upload-icon {
  opacity: 1;
  transform: translateY(-2px);
}

/* file-upload-area用のアップロードテキスト */
.file-upload-area .upload-text {
  max-width: 400px;
}

.upload-main {
  font-size: 16px;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.upload-link {
  color: #0066cc;
  text-decoration: underline;
  font-weight: 600;
}

.upload-sub {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* ファイルリスト */
.file-list {
  border-top: 1px solid #e5e7eb;
  background: white;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f1f1;
  transition: background-color 0.2s ease;
}

.file-item:last-child {
  border-bottom: none;
}

.file-item:hover {
  background: #f8f9fa;
}

/* file-item用のファイル情報 */
.file-item .file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.file-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #f8f9fa;
  border-radius: 8px;
}

.file-details {
  flex: 1;
  min-width: 0;
}

/* file-item用のファイル名 */
.file-item .file-name {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 4px;
  word-break: break-all;
}

.file-size {
  font-size: 12px;
  color: #666;
}

.file-remove {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.file-remove:hover {
  background: #fee2e2;
  color: #dc2626;
}

/* アップロードセクションのスタイル */
.upload-info {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.upload-info p {
  margin: 0 0 12px;
  color: #333;
  font-size: 14px;
}

.upload-specs {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.spec-item {
  background: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #666;
  border: 1px solid #e5e7eb;
}

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

.upload-zone {
  border: 2px dashed #e5e7eb;
  border-radius: 12px;
  background: white;
  transition: all 0.3s ease;
}

.upload-zone.drag-over {
  border-color: #0066cc;
  background: #f0f7ff;
}

.upload-area {
  padding: 32px;
  text-align: center;
}

/* upload-zone用のアップロードアイコン */
.upload-zone .upload-icon {
  color: #9ca3af;
  margin-bottom: 16px;
}

.select-files-btn {
  background: #0066cc;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 8px;
}

.select-files-btn:hover:not(:disabled) {
  background: #0052a3;
  transform: translateY(-1px);
}

.select-files-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

/* upload-zone用のアップロードテキスト */
.upload-zone .upload-text {
  color: #666;
  font-size: 13px;
  margin: 0;
}

.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  padding: 16px;
}

.file-card {
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.2s ease;
}

.file-card:hover {
  border-color: #0066cc;
  box-shadow: 0 2px 8px rgba(0,102,204,0.1);
}

.file-icon-wrapper {
  margin-bottom: 8px;
}

/* file-card用のファイル情報 */
.file-card .file-info {
  width: 100%;
  text-align: center;
}

/* file-card用のファイル名 */
.file-card .file-name {
  font-size: 12px;
  color: #333;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-meta {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  color: #666;
}

.file-remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 2px;
  cursor: pointer;
  color: #666;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-remove-btn:hover {
  background: #dc2626;
  color: white;
  border-color: #dc2626;
}

.file-counter {
  padding: 12px 16px;
  background: #f0f7ff;
  border-top: 1px solid #e5e7eb;
  font-size: 14px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.file-count-number {
  font-weight: 600;
  color: #0066cc;
}

.file-limit-warning {
  color: #dc2626;
  font-size: 13px;
  margin-left: 8px;
}

/* ファイルアップロードのモバイル対応 */
@media (max-width: 768px) {
  .upload-area {
    padding: 24px 16px;
  }

  .upload-icon svg {
    width: 40px;
    height: 40px;
  }

  .select-files-btn {
    font-size: 14px;
    padding: 8px 20px;
  }

  .files-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    padding: 12px;
  }

  .file-card {
    padding: 8px;
  }

  .file-card .file-name {
    font-size: 11px;
  }

  .file-meta {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .file-upload-display {
    padding: 24px 12px;
  }

  .upload-main {
    font-size: 14px;
  }

  .upload-main br {
    display: none;
  }

  .upload-sub {
    font-size: 12px;
  }

  .file-item {
    padding: 10px 12px;
  }

  .file-icon {
    width: 32px;
    height: 32px;
  }

  .file-remove {
    padding: 6px;
  }
}

/* 確認ページのファイル表示 */
.confirm-files {
  min-height: auto !important;
  padding: 12px 16px !important;
}

.confirm-file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f1f1;
}

.confirm-file-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.confirm-file-item:first-child {
  padding-top: 0;
}

.confirm-file-item .file-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.confirm-file-item .file-name {
  font-size: 14px;
  color: #1a1a1a;
  word-break: break-all;
}

/* ========================================
   プログレスバー（確認・完了ページ共通）
   ======================================== */

.progress-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.progress-track {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.progress-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.progress-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  position: relative;
  z-index: 2;
}

.progress-dot.active,
.progress-dot.completed {
  background: #FAEA39;
  border-color: #FAEA39;
}

.progress-text {
  font-size: 12px;
  color: white;
  white-space: nowrap;
}

.progress-text.active {
  color: #FAEA39;
  font-weight: bold;
}

.progress-line {
  flex: 1;
  height: 4px;
  background: white;
  margin: 0 -12px;
  align-self: flex-start;
  margin-top: 10px;
  position: relative;
  z-index: 1;
}

.progress-line.completed {
  background: #FAEA39;
}

/* プログレスバーのレスポンシブ */
@media (max-width: 768px) {
  .progress-dot {
    width: 18px;
    height: 18px;
  }

  .progress-text {
    font-size: 10px;
  }

  .progress-line {
    margin: 0 -9px;
    margin-top: 7px;
  }
}

@media (max-width: 480px) {
  .progress-dot {
    width: 14px;
    height: 14px;
  }

  .progress-text {
    font-size: 9px;
  }

  .progress-line {
    margin: 0 -7px;
    margin-top: 5px;
  }

  .contact-progress-bar {
    padding: 15px 0;
  }
}

/* ========================================
   新しいプログレスインジケーター
   ======================================== */
.progress-indicator-new {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 40px 0 60px;
  padding: 24px 40px;
  background: linear-gradient(135deg, #6abed0 0%, #5aaebd 100%);
}

.progress-step-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
}

.progress-circle-new {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.progress-circle-new.active {
  background: #faea39;
  box-shadow: 0 4px 12px rgba(250, 234, 57, 0.4);
}

.progress-label-new {
  font-size: 14px;
  font-weight: 600;
  color: white;
  text-align: center;
  white-space: nowrap;
}

.progress-line-new {
  flex: 1;
  height: 4px;
  background: #d1d5db;
  margin: 0 -2px;
  align-self: center;
  margin-bottom: 36px;
}

/* ========================================
   新しいフォームセクション
   ======================================== */
.form-section-new {
  background: white;
  border: 3px solid #e0e0e0;
  border-radius: 24px;
  padding: 40px 48px;
  margin-bottom: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 100;
}

/* フォームグリッドを画像と被せない */
.form-section-new .form-grid {
  position: relative;
  z-index: 101;
  background: white;
}

/* コンタクトページでヒーロー画像・スマホフォームを完全に非表示 */
.contact-page .hero-images,
.contact-page .phone-mockup,
.contact-page .phone-form-container,
.contact-page .business-woman,
.contact-page .hero-section-new {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.section-title-new {
  font-size: 24px;
  font-weight: 700;
  color: #6abed0;
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e0e0e0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .progress-indicator-new {
    gap: 0;
    padding: 20px 16px;
    margin: 30px 0 40px;
  }

  .progress-circle-new {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .progress-label-new {
    font-size: 11px;
  }

  .progress-line-new {
    height: 3px;
    margin-bottom: 30px;
  }

  .form-section-new {
    padding: 32px 24px;
  }

  .section-title-new {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .progress-indicator-new {
    padding: 16px 8px;
  }

  .progress-circle-new {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .progress-label-new {
    font-size: 10px;
  }

  .progress-line-new {
    height: 2px;
    margin-bottom: 26px;
  }

  .form-section-new {
    padding: 24px 20px;
  }

  .section-title-new {
    font-size: 18px;
  }
}

/* ========================================
   共通スタイル（確認・完了・比較ページ共通）
   ======================================== */

.contact-page-new {
  min-height: 100vh;
}

.contact-form-section-new {
  padding: 40px 20px;
}

.contact-form-container {
  max-width: 700px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-section-title {
  text-align: center;
  font-size: 24px;
  color: #6ABED0;
  margin-bottom: 10px;
  font-weight: bold;
}

/* 共通送信ボタン */
.contact-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #FAA639;
  color: white;
  font-size: 16px;
  font-weight: bold;
  padding: 14px 30px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 0 #D4820A;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.contact-submit-btn:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #D4820A;
}

.btn-free-badge {
  background: #6ABED0;
  color: white;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 15px;
  font-weight: bold;
}

.btn-text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.3;
}

.btn-sub-text {
  font-size: 10px;
  font-weight: normal;
  text-align: center;
}

.btn-main-text {
  font-size: 14px;
  font-weight: bold;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
}

.btn-arrow-img {
  width: 30px;
  height: auto;
  display: block;
}

/* ソーシャルセクション */
.contact-social-section {
  padding: 40px 20px;
  text-align: center;
}

.contact-social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-social-icon {
  width: 50px;
  height: auto;
}

.contact-logo-img {
  width: 250px;
  height: auto;
}

/* フッターアイコンは hero-new.css で定義済み */

.contact-form-submit {
  margin-top: 40px;
  text-align: center;
}

/* 共通レスポンシブ */
@media (max-width: 768px) {
  .contact-form-section-new {
    padding: 20px 10px;
  }

  .contact-form-container {
    padding: 24px 16px;
    margin: 0;
    border-radius: 10px;
  }

  .contact-section-title {
    font-size: 20px;
  }

  .contact-submit-btn {
    width: 100%;
    max-width: 350px;
    padding: 12px 20px;
    justify-content: center;
  }

  .contact-social-section {
    text-align: left;
  }

  .contact-social-icons {
    gap: 15px;
    margin-bottom: 20px;
    justify-content: flex-start;
  }

  .contact-social-icon {
    width: 40px;
  }

  .contact-logo-img {
    width: 180px;
  }

  /* フッター関連は hero-new.css で定義済み */
}

/* ========================================
   ユーティリティクラス
   ======================================== */

/* 青文字（強調表示用） */
.blue-text {
  color: #6ABED0;
  font-weight: bold;
}

/* ========================================
   Contact Step 2 ページ固有スタイル
   ======================================== */

/* contact2ページ全体の文字をbold */
.contact-page-new,
.contact-page-new * {
  font-family: 游ゴシック体, yu-gothic-pr6n, sans-serif;
  font-weight: bold !important;
}

/* contact2専用：コンテナの上書き */
.contact-page-new .contact-form-container {
  max-width: 1200px;
  padding: 120px 200px;
}

/* フォーム行 */
.contact-form-row {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  justify-content: space-around;
  gap: 30px;
}

.upload-row {
  align-items: flex-start;
}

.upload-row .contact-form-label {
  padding-top: 0;
}

/* フォームラベル */
.contact-form-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.required-badge {
  color: #FF1A1A;
  font-size: 16px;
  border: 2px #FF1A1A solid;
  padding: 2px 4px;
  border-radius: 20px;
  font-weight: bold;
}

.optional-badge {
  color: #FAA639;
  background: white;
  border: 2px solid #FAA639;
  font-size: 16px;
  font-weight: bold;
  padding: 2px 4px;
  border-radius: 20px;
  flex-shrink: 0;
}

.label-text {
  font-size: 18px;
  color: #565454;
  font-weight: bold;
}

/* フォーム入力フィールド */
.contact-select,
.contact-input {
  width: 300px;
  padding: 12px 16px;
  padding-right: 40px;
  border: 3.2px solid #6ABED0;
  border-radius: 10px;
  font-size: 14px;
  color: #333;
  background: white;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-sizing: border-box;
}

.contact-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236ABED0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
}

.contact-input::placeholder {
  color: #999;
}

.contact-input::-webkit-input-placeholder {
  color: #999;
}

.contact-input::-moz-placeholder {
  color: #999;
}

.contact-input:-ms-input-placeholder {
  color: #999;
}

/* アップロード関連 */
.upload-input-area {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 300px;
}

.upload-description {
  line-height: 1.8;
}

.upload-description p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.highlight-text {
  color: #6ABED0;
  font-weight: 500;
}

.upload-box-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.upload-box-label {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.file-upload-box {
  width: 100%;
}

/* contact2専用のファイルアップロードエリア */
.contact-page-new .file-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 30px;
  border: 2px dashed #ddd;
  border-radius: 8px;
  background: #fafafa;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}

.contact-page-new .file-upload-area:hover {
  border-color: #6ABED0;
  background: #f5fafb;
}

.contact-page-new .upload-icon {
  opacity: 0.6;
}

.contact-page-new .upload-text {
  font-size: 14px;
  color: #999;
}

/* contact2専用の送信ボタン */
.contact-page-new .contact-submit-btn {
  gap: 20px;
  font-size: 18px;
  padding: 14px 60px;
  margin-top: 60px;
}

.contact-page-new .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: white;
  border-radius: 50%;
}

.contact-page-new .btn-arrow-img {
  height: auto;
  display: block;
}

/* contact2 レスポンシブ */
@media (max-width: 768px) {
  .contact-page-new .contact-form-container {
    padding: 20px 15px;
    margin: 0;
    border-radius: 10px;
  }

  .contact-form-new {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .contact-form-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .contact-form-label {
    min-width: auto;
  }

  .contact-select,
  .contact-input {
    width: 280px;
    box-sizing: border-box;
  }

  .contact-page-new .contact-submit-btn {
    width: 100%;
    max-width: 300px;
    padding: 14px 30px;
    justify-content: center;
  }
}

/* ========================================
   Contact Confirm ページ固有スタイル
   ======================================== */

.confirm-header {
  text-align: center;
  margin-top: 48px;
  margin-bottom: 48px;
}

.confirm-title {
  font-size: 36px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 32px;
}

.section-icon {
  font-size: 28px;
}

.fee-calculation-result {
  background: white;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.confirm-table {
  width: 100%;
  border-collapse: collapse;
}

.confirm-table th {
  width: 35%;
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: #666;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
}

.confirm-table td {
  padding: 16px;
  color: #333;
  border: 1px solid #e5e7eb;
}

/* アップロードファイル */
.uploaded-files-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.uploaded-files-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
}

#uploaded-files-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#uploaded-files-list li {
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

#uploaded-files-list li:before {
  content: "📎";
  font-size: 18px;
}

/* アクションボタン */
.confirm-actions {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 48px 0;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.confirm-notice {
  text-align: center;
  padding: 24px;
  background: #fef3c7;
  border-radius: 12px;
  margin-top: 32px;
}

.confirm-notice p {
  margin: 8px 0;
  font-size: 14px;
  color: #92400e;
}

/* 新しい確認ページスタイル */
.confirm-container {
  border: none;
}

.confirm-description {
  text-align: center;
  font-size: 16px;
  color: #666;
  margin-bottom: 40px;
}

.confirm-list {
  margin-bottom: 40px;
}

.confirm-row {
  display: flex;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.confirm-label {
  min-width: 220px;
  font-size: 18px;
  color: #565454;
  font-weight: bold;
}

.confirm-value {
  flex: 1;
  font-size: 18px;
  color: #333;
}

/* 確認ページのボタンスタイル上書き */
.confirm-container .contact-submit-btn {
  font-size: 18px;
  padding: 12px 40px;
  margin-top: 60px;
}

/* confirm レスポンシブ */
@media (max-width: 768px) {
  .confirm-title {
    font-size: 28px;
  }

  .confirm-actions {
    flex-direction: column;
    gap: 16px;
  }

  .confirm-table th {
    width: 40%;
    font-size: 14px;
  }

  .confirm-table td {
    font-size: 14px;
  }

  .confirm-row {
    flex-direction: column;
    gap: 8px;
  }

  .confirm-label {
    min-width: auto;
    font-weight: bold;
  }

  .confirm-container .contact-submit-btn {
    width: 100%;
    max-width: 300px;
    padding: 12px 20px;
  }
}

/* ========================================
   Contact Thanks ページ固有スタイル
   ======================================== */

.thanks-container {
  border: 1px solid #ddd;
  text-align: center;
}

.thanks-subtitle {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 40px;
}

.thanks-message-box {
  margin-bottom: 40px;
}

.thanks-text {
  font-size: 13px;
  color: #666;
  margin: 0 0 8px 0;
  line-height: 1.8;
}

.thanks-text-margin-top {
  margin-top: 24px;
}

.simulation-result-section {
  margin-top: 40px;
}

.simulation-text {
  font-size: 16px;
  color: #333;
  font-weight: bold;
  margin-bottom: 20px;
}

/* Thanksページのコンテナは padding を上書き */
.thanks-container.contact-form-container {
  padding: 60px 40px;
}

/* thanks レスポンシブ */
@media (max-width: 768px) {
  .thanks-container.contact-form-container {
    padding: 24px 16px;
  }
}