@charset "UTF-8";

/*
 * 元のcontact.cssのデザインを、
 * 現在のカスタムお問い合わせフォームのHTML構造へ対応させた版です。
 */

/* =========================
   Contact Page
========================= */
.contact-page {
  padding: 85px 0px 50px;
  box-sizing: border-box;
}

/* ========================================
   Contact Hero
======================================== */
.contact-page__hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 56px;
  padding: 90px 40px 86px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
}

.contact-page__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-primary-30);
  opacity: .6;
  pointer-events: none;
}
/* 背景の細いライン */
.contact-page__hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.contact-page__hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

/* CONTACT */
.contact-page__eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  line-height: 1;
}

/* 左右のライン */
.contact-page__eyebrow::before,
.contact-page__eyebrow::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
}

/* タイトル */
.contact-page__hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.35;
}

/* 説明文 */
.contact-page__hero p:not(.contact-page__eyebrow) {
  max-width: 620px;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.04em;
}


/* ========================================
   Tablet
======================================== */

@media (max-width: 768px) {

  .contact-page__hero {
    margin-bottom: 42px;
    padding: 70px 24px 66px;
  }

  .contact-page__hero h1 {
    font-size: 34px;
  }

  .contact-page__hero p:not(.contact-page__eyebrow) {
    margin-top: 20px;
    font-size: 13px;
    line-height: 1.9;
  }

}


/* ========================================
   Mobile
======================================== */

@media (max-width: 500px) {

  .contact-page__hero {
    margin-bottom: 36px;
    padding: 58px 20px 56px;
  }

  .contact-page__eyebrow {
    gap: 12px;
    margin-bottom: 16px;
    font-size: 10px;
    letter-spacing: 0.24em;
  }

  .contact-page__eyebrow::before,
  .contact-page__eyebrow::after {
    width: 20px;
  }

  .contact-page__hero h1 {
    font-size: 29px;
    letter-spacing: 0.1em;
  }

  .contact-page__hero p:not(.contact-page__eyebrow) {
    margin-top: 18px;
    font-size: 12px;
    line-height: 1.9;
  }

}

/* =========================
   Form Container
========================= */
.contact-form-section {
  padding: 0;
}

.contact-form-wrap {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 70px 40px;

  border: 4px solid var(--color-primary-light);
  border-radius: 30px;

  background-image: url(../img/27415477.png);
  background-position: left;
  background-size: cover;
  overflow: hidden;
  box-sizing: border-box;
}

.contact-form-wrap::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background: var(--color-muted-white);
}

.contact-form-wrap > * {
  position: relative;
  z-index: 1;
}

/* =========================
   Form
========================= */
.contact-custom-form {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.contact-field-grid {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.contact-field {
  display: flex;
  flex-direction: column;
}

.contact-field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--color-bg);
  font-size: 14px;
  font-weight: 600;
}

.contact-field-required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 4px;
  background: #df3838;
  color: #fff;
  font-size: 10px;
  line-height: 1.4;
}

.contact-field input[type="text"],
.contact-field input[type="email"],
.contact-field input[type="tel"],
.contact-field select,
.contact-field textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--color-text);
  border-radius: 10px;
  background: var(--color-text-white);
  color: var(--color-bg);
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
}

.contact-field textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus,
.contact-field select:focus {
  border: 2px solid var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 120, 170, 0.25);
}

.contact-field-help {
  margin: 6px 0 0;
  color: var(--color-surface);
  font-size: 12px;
  line-height: 1.6;
}

.contact-field-error {
  margin: 6px 0 0;
  color: #c62828;
  font-size: 12px;
  line-height: 1.6;
}

/* =========================
   Radio / Checkbox
========================= */
.contact-field-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.contact-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-bg);
  font-size: 14px;
  cursor: pointer;
}

.contact-option input {
  width: 17px;
  height: 17px;
  margin: 0;
}

/* =========================
   Privacy
========================= */
.contact-privacy {
  color: var(--color-bg);
  font-size: 13px;
}

.contact-privacy label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.contact-privacy input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
}

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

/* =========================
   Error Summary
========================= */
.contact-error-summary {
  margin-bottom: 22px;
  padding: 13px 15px;
  border: 1px solid #e7a3a3;
  border-radius: 8px;
  background: #fff2f2;
  color: #b32020;
  font-size: 13px;
}

/* =========================
   Submit Button
========================= */
.contact-submit-button {
  display: block;
  width: 100%;
  max-width: 200px;
  margin: 20px auto 0;
  padding: 16px;
  border: none;
  border-radius: 999px;

  background: var(--color-primary);
  color: var(--color-text-white);

  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;

  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-submit-button:hover {
  background: var(--color-primary-lighter);
}

/* ハニーポットは必ず非表示 */
.contact-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
  .contact-page {
    padding: 85px 0px 30px;
  }


  .contact-form-wrap {
    padding: 50px 20px;
  }
}
