/* ============================================================
   Contact Pages — contact.html / confirm / thanks
   ============================================================ */

/* --- Contact Hero --- */
.contact-hero {
  padding-top: var(--header-h);
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  padding-bottom: 60px;
}

.contact-hero__content {
  max-width: 700px;
}

.contact-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.contact-hero__label::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5ECEB5;
}

.contact-hero__title {
  font-size: var(--text-4xl);
  font-weight: var(--fw-bold);
  line-height: var(--leading-tight);
  margin-bottom: 20px;
}

.contact-hero__lead {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.8);
  line-height: var(--leading-normal);
}

/* --- Breadcrumb --- */
.contact-breadcrumb {
  margin-bottom: 40px;
  padding-top: 24px;
}

.contact-breadcrumb__list {
  display: flex;
  align-items: center;
  list-style: none;
  font-size: var(--text-sm);
}

.contact-breadcrumb__list li {
  display: flex;
  align-items: center;
}

.contact-breadcrumb__list li:not(:last-child)::after {
  content: '>';
  margin: 0 12px;
  color: rgba(255, 255, 255, 0.4);
  font-size: var(--text-xs);
}

.contact-breadcrumb__list a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-breadcrumb__list a:hover {
  color: var(--color-text-on-dark);
}

.contact-breadcrumb__list li[aria-current="page"] {
  color: var(--color-text-on-dark);
  font-weight: var(--fw-medium);
}

/* --- Step Indicator --- */
.step-indicator {
  background: #FFFFFF;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.step-indicator__list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  list-style: none;
  counter-reset: step;
}

.step-indicator__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  position: relative;
}

.step-indicator__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 2px;
  background: var(--color-border);
}

.step-indicator__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  font-family: var(--font-en);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.step-indicator__text {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
}

/* Active step */
.step-indicator__item--active .step-indicator__number {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-on-dark);
}

.step-indicator__item--active .step-indicator__text {
  color: var(--color-primary);
  font-weight: var(--fw-bold);
}

/* Done step */
.step-indicator__item--done .step-indicator__number {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.step-indicator__item--done .step-indicator__text {
  color: var(--color-text-secondary);
}

.step-indicator__item--done::after {
  background: var(--color-primary);
}

/* --- Contact Form Wrapper --- */
.contact-form-wrapper {
  max-width: 640px;
  margin: 0 auto;
  background: #FFFFFF;
}

/* --- Confirm page: Turnstile & submit error --- */
.confirm__turnstile {
  display: flex;
  justify-content: center;
  margin: var(--space-lg) 0 var(--space-md) 0;
}

.confirm__submit-error {
  font-size: var(--text-sm);
  color: #C53030;
  background: #FFF5F5;
  border-left: 3px solid #C53030;
  padding: 12px 16px;
  border-radius: 4px;
  margin: 0 0 var(--space-md) 0;
  font-weight: var(--fw-medium);
}

.btn--loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn--loading::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* --- Form Intro --- */
.contact-form__intro {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-lg);
  padding: 16px 20px;
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-primary);
  border-radius: 4px;
}

/* --- Form Error State --- */
.form__error {
  font-size: var(--text-xs);
  color: #C53030;
  margin-top: 6px;
  font-weight: var(--fw-medium);
}

.form__input--error,
.form__textarea--error {
  border-color: #C53030;
}

.form__input--error:focus,
.form__textarea--error:focus {
  box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.15);
}

/* --- Checkbox --- */
.form__group--checkbox {
  margin-top: var(--space-lg);
}

.form__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.6;
}

.form__checkbox {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
}

.form__checkbox-text a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* --- Confirm Table --- */
.confirm__table {
  margin-bottom: 40px;
}

.confirm__row {
  display: flex;
  border-bottom: 1px solid var(--color-border-light);
  padding: 20px 0;
}

.confirm__row:first-child {
  border-top: 1px solid var(--color-border-light);
}

.confirm__row dt {
  width: 200px;
  flex-shrink: 0;
  font-weight: var(--fw-bold);
  font-size: var(--text-sm);
  color: var(--color-text);
  padding-top: 2px;
}

.confirm__row dd {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
}

/* --- Confirm Actions --- */
.confirm__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* --- Thanks --- */
.thanks {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 0;
}

.thanks__icon {
  color: var(--color-primary);
  margin-bottom: 32px;
}

.thanks__title {
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin-bottom: 24px;
}

.thanks__text {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
  margin-bottom: 16px;
}

.thanks__note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
  margin-bottom: 40px;
}

.thanks__actions {
  margin-top: 16px;
}

/* --- Contact CTA (index.html) --- */
.contact-cta {
  text-align: center;
  padding: 20px 0;
}

.contact-cta__text {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.8);
  line-height: var(--leading-normal);
  margin-bottom: 32px;
}

/* --- Screen reader only --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Responsive --- */
@media (max-width: 1023px) {
  .contact-hero__title {
    font-size: var(--text-3xl);
  }
}

@media (max-width: 767px) {
  .contact-hero {
    padding-top: var(--header-h-sp);
    padding-bottom: 40px;
  }

  .contact-hero__title {
    font-size: var(--text-2xl);
  }

  .contact-breadcrumb {
    padding-top: 16px;
    margin-bottom: 24px;
  }

  .contact-breadcrumb__list {
    font-size: var(--text-xs);
  }

  .step-indicator__item {
    padding: 0 12px;
  }

  .step-indicator__text {
    font-size: var(--text-xs);
  }

  .contact-form__intro {
    font-size: var(--text-xs);
    padding: 12px 16px;
  }

  .confirm__row {
    flex-direction: column;
    gap: 4px;
  }

  .confirm__row dt {
    width: 100%;
  }

  .confirm__actions {
    flex-direction: column;
    align-items: center;
  }

  .thanks__title {
    font-size: var(--text-2xl);
  }
}

/* ============================================================
   Privacy Policy Page
   ============================================================ */

.privacy {
  max-width: 800px;
  margin: 0 auto;
}

.privacy__intro {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
  margin-bottom: 16px;
}

.privacy__intro:last-of-type {
  margin-bottom: var(--space-xl);
}

.privacy__section-title {
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-primary);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.privacy__text {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-sm);
}

.privacy__list {
  list-style: none;
  padding: 0;
  margin: var(--space-sm) 0 var(--space-md) 0;
}

.privacy__list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
}

.privacy__list li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 13px;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
}

.privacy__contact-info {
  background: var(--color-bg-alt);
  padding: var(--space-lg);
  border-radius: var(--card-radius);
  margin: var(--space-md) 0 var(--space-xl) 0;
}

.privacy__company-name {
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.privacy__contact-info .privacy__text {
  margin-bottom: 8px;
}

.privacy__contact-info a {
  color: var(--color-primary);
  text-decoration: underline;
}

.privacy__contact-info a:hover {
  color: var(--color-hover);
}

.privacy__dates {
  margin-top: var(--space-2xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border-light);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: right;
}

.privacy__dates p {
  margin-bottom: 4px;
}

/* レスポンシブ */
@media (max-width: 767px) {
  .privacy__section-title {
    font-size: var(--text-lg);
    margin-top: var(--space-xl);
  }

  .privacy__contact-info {
    padding: var(--space-md);
  }
}
