/* contact.css - お問い合わせページ専用スタイル */

/* ベーススタイルをhomepage2.cssから継承 */
@import url("./homepage2.css");

/* ページ全体の背景 */
body {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.6;
  color: #1f2937;
}

/* ヘッダーのアクティブ状態 */
.contact-btn.active {
  background: #ef4444 !important;
  color: #fff !important;
  transform: scale(1.05);
}

/* ヒーローセクション調整 */
.hero-section {
  padding: 4rem 1rem;
}

.contact-info-cards {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .contact-info-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.info-card {
  background: #fff;
  border: 3px solid #fecaca;
  border-radius: 1.5rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.25);
  border-color: #f87171;
}

.info-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.info-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.info-content p {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.phone-number,
.email {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ef4444;
}

/* フォームセクション */
.contact-form-section {
  padding: 6rem 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #6b7280;
  margin-top: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.form-container {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 2rem;
  padding: 3rem;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.15);
  border: 4px solid #fecaca;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: #374151;
  font-size: 1rem;
}

.form-label i {
  color: #ef4444;
  width: 16px;
}

.required {
  color: #ef4444;
  font-weight: 900;
}

.form-input,
.form-select,
.form-textarea {
  padding: 1rem 1.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 1rem;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: #fff;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
  transform: translateY(-2px);
}

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

.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.95rem;
}

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

.checkmark {
  width: 26px;
  height: 26px;
  border: 3px solid #4b5563;
  border-radius: 5px;
  position: relative;
  background-color: #ffffff;
  flex-shrink: 0;
  display: inline-block;
  transition: all 0.3s ease;
}

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

.checkbox-label input[type="checkbox"]:checked+.checkmark::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
}

.privacypolicy-link {
  color: #ef4444;
  text-decoration: underline;
  font-weight: 600;
}

.privacypolicy-link:hover {
  color: #dc2626;
}

.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

/* FAQセクション */
.faq-section {
  padding: 6rem 1rem;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  background: #fff;
  border: 3px solid #fecaca;
  border-radius: 1.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: #f87171;
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.15);
}

.faq-item.active {
  border-color: #ef4444;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.2);
}

.faq-question {
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  font-weight: 700;
  color: #1f2937;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: #fef2f2;
}

.faq-question i.fas.fa-question-circle {
  color: #ef4444;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.faq-question span {
  flex: 1;
}

.faq-toggle {
  color: #6b7280;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
  color: #ef4444;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 2rem 2rem;
  color: #6b7280;
  line-height: 1.7;
  margin: 0;
}

/* CTAセクション */
.cta-section {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  text-align: center;
  padding: 6rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  position: relative;
}

.cta-inner {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.merits-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
  justify-content: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 480px) {
  .merits-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (min-width: 768px) {
  .merits-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .merits-grid {
    gap: 4rem;
  }
}

.merit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.merit-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.25);
  transition: all 0.35s ease;
}

.merit-item:hover .merit-icon {
  transform: scale(1.12);
}

.merit-text {
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 600;
  opacity: 0.9;
}

/* CTAセクションのタイトルとテキスト */
.cta-section h3 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-section p {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  opacity: 0.95;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
  .cta-section {
    padding: 4rem 1rem;
    min-height: 50vh;
  }

  .cta-section h3 {
    font-size: 2rem;
  }

  .cta-section p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
  }

  .btn-cta-white {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .cta-section h3 {
    font-size: 1.75rem;
  }

  .cta-section p {
    font-size: 1rem;
  }
}

/* CTAボタンスタイル */
.btn-cta-white {
  background: #ffffff;
  color: #ef4444;
  border: 3px solid transparent;
  border-radius: 2rem;
  padding: 1.25rem 3rem;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-decoration: none;
  box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.3);
  transform: translateY(0);
}

.btn-cta-white:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.4);
  color: #dc2626;
}

.btn-cta-white:active {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.3);
}

.btn-cta-white .icon {
  font-size: 1.125rem;
}

/* アイコンスタイル */
.icon-phone::before {
  content: "📞";
}

/* レスポンシブ調整 */
@media (max-width: 640px) {
  .form-container {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .contact-info-cards {
    grid-template-columns: 1fr;
  }

  .info-card {
    padding: 1.5rem;
  }

  .faq-question {
    padding: 1.5rem;
    font-size: 0.95rem;
  }

  .faq-answer p {
    padding: 0 1.5rem 1.5rem;
  }
}

/* アクセシビリティ対応 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* フォーカス状態の改善 */
.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.faq-question:focus-visible {
  outline: 3px solid #ef4444;
  outline-offset: 2px;
}