/* ========================================
   contact.css - お問い合わせページ専用CSS
   ======================================== */

.contact-consent-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ヒーローセクション */
.contact-hero {
  width: 100%;
  background-image: url('../media/contact/mainvisual.webp');
  background-size: 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
  position: relative;
}

.contact-hero::before {
  content: '';
  display: block;
  padding-bottom: 27%; /* 画像の縦横比に合わせて調整 */
}

.contact-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.contact-hero-title {
  position: absolute;
  top: 30%;
  left: 15%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  font-weight: 600;
  color: #444;
  letter-spacing: 0.1em;
  margin: 0;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
               0 0 20px rgba(0, 0, 0, 0.4),
               0 0 20px rgba(255, 255, 255, 0.6),
               0 0 30px rgba(255, 255, 255, 0.4);
}

.contact-hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.8;
  font-weight: normal;
}

/* プライバシーポリシーセクション */
.consent-section {
  flex: 1;
  background-color: #fff;
  padding: 4rem 2rem;
}

.consent-container {
  max-width: var(--container-width-ncta-button-icon);
  margin: 0 auto;
}

.consent-heading {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: normal;
  color: #333;
  line-height: 1.6;
}

.consent-intro-text {
  text-align: center;
  font-size: 1rem;
  color: #666;
  margin-bottom: 2rem;
}

/* プライバシーポリシー本文 */
.privacy-policy {
  border-radius: 8px;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.privacy-policy h3 {
  position: relative;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: normal;
  color: #333;
  padding-bottom: 8px;
}

.privacy-policy h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10px;
  width: 8%;
  border-bottom: 4px solid #e0e0e0;
}

.policy-intro {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: #666;
}

.policy-content section {
  margin-bottom: 2rem;
}

.policy-content h4 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.8rem;
  color: #333;
}

.policy-content p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #555;
}

.contact-window {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
}

.contact-window h4 {
  margin-bottom: 1rem;
}

.consent-notice {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #ddd;
  text-align: center;
}

.consent-notice p {
  font-size: 1rem;
  color: #666;
  margin: 0.5rem 0;
}

/* 同意チェックボックス */
.agreement-section {
  text-align: center;
  margin: 2rem 0;
}

.agreement-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  font-size: 1.1rem;
}

.agreement-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.agreement-checkbox span {
  color: #333;
}

/* 送信ボタン */
.consent-button {
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  background: var(--color-button-primary);
  color: #333;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: normal;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.consent-button .cta-button-icon {
  margin-left: 0.5rem;
}

.consent-button.active:hover {
  box-shadow: 0 6px 0 #fbceb6;
  transform: translateY(-2px);
}

.consent-button.disabled {
  background-color: #e0e0e0;
  color: #999;
  cursor: not-allowed;
  opacity: 0.6;
}

/* レスポンシブ */
@media (max-width: 768px) {
  /* スマホ用hero画像に切り替え */
  .contact-hero {
    background-image: url('../media/contact/mainvisual_sp.webp');
  }

  .contact-hero::before {
    padding-bottom: 50%; /* スマホ用の縦横比 */
  }

  .contact-hero-title {
    font-size: 1.8rem;
    color: #FFF;
    left: 10%;
    top: 40%;
    transform: translate(-50%, -50%);
  }

  .contact-hero-subtitle {
    font-size: 0.95rem;
  }

  .consent-section {
    padding: 2rem 1rem;
  }

  .privacy-policy {
    padding: 0;
  }

  .consent-heading {
    font-size: 1.4rem;
  }

  .consent-button {
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
  }
}
