/* =============================================
   CONTACT PAGE — contact.css
   ============================================= */

/* ─── ヘッダー / パンくず ─── */
.contact-header {
  padding: 24px 48px 32px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.contact-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 400;
  color: #4a4a4a;
  letter-spacing: 1px;
  margin-bottom: 28px;
}

.contact-breadcrumb a {
  color: #4a4a4a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-breadcrumb a:hover {
  color: #000;
  text-decoration: underline;
}

.contact-breadcrumb svg {
  opacity: 0.5;
  flex-shrink: 0;
}

.contact-breadcrumb span {
  color: #4a4a4a;
}

.contact-title {
  font-size: 48px;
  font-weight: 500;
  color: #000;
  line-height: 1;
  margin: 0;
  letter-spacing: 0.5px;
}

/* ─── フォームセクション ─── */
.contact-form-section {
  background: #fff;
  padding: 40px 0 100px;
}

.contact-form-inner {
  max-width: 1184px;
  margin: 0 auto;
  padding: 0 127px;
}

/* ─── 説明文 ─── */
.contact-description {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.contact-description p {
  font-size: 16px;
  font-weight: 400;
  color: #000;
  line-height: 2;
  margin: 0;
  flex: 1;
}

.contact-required-note {
  font-size: 10px;
  font-weight: 400;
  color: #000;
  letter-spacing: 0.7px;
  white-space: nowrap;
  padding-top: 6px;
  flex-shrink: 0;
}

.contact-required-note em {
  font-style: normal;
  font-size: 16px;
  color: #000;
  margin-right: 2px;
  vertical-align: middle;
}

/* ─── フォーム全体 ─── */
.contact-form {
  width: 100%;
}

/* ─── フォーム行 ─── */
.form-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 28px;
  gap: 0;
}

/* ─── ラベル部分 ─── */
.form-label-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 160px;
  flex-shrink: 0;
  padding-top: 10px;
  justify-content: flex-end;
  padding-right: 28px;
}

.form-label {
  font-size: 14px;
  font-weight: 400;
  color: #000;
  letter-spacing: 0.5px;
  text-align: right;
  line-height: 1.4;
  cursor: pointer;
}

.form-required {
  font-size: 16px;
  color: #000;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
}

/* ─── 入力エリア ─── */
.form-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.form-input,
.form-textarea,
.form-select {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #000;
  border: 1.333px solid #bfbfbf;
  background: #fff;
  padding: 9px 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  line-height: 1.5;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: #000;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

/* テキストエリア */
.form-textarea {
  width: 100%;
  resize: vertical;
  min-height: 200px;
  border-color: #bfbfbf;
}

/* 通常の入力フィールド (フル幅) */
.form-input {
  width: 100%;
  height: 40px;
}

/* セレクト */
.form-select-wrap {
  position: relative;
  width: 358px;
  max-width: 100%;
}

.form-select {
  width: 100%;
  height: 40px;
  padding-right: 36px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* 短い入力フィールド */
.form-input-short {
  width: 170px !important;
  flex-shrink: 0;
}

.form-input-medium {
  width: 207px !important;
  flex-shrink: 0;
}

.form-input-short-wrap {
  align-items: center;
}

/* ヒントテキスト */
.form-hint {
  font-size: 10px;
  color: #666;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── プライバシーポリシー同意 ─── */
.form-privacy {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  margin-top: 16px;
}

.form-checkbox-label {
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  user-select: none;
}

.form-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.form-checkbox-custom {
  width: 11px;
  height: 11px;
  border: 1px solid #000;
  background: #fff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  position: relative;
}

.form-checkbox:checked + .form-checkbox-custom {
  background: #000;
}

.form-checkbox:checked + .form-checkbox-custom::after {
  content: '';
  display: block;
  width: 5px;
  height: 3px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

.form-privacy-text {
  font-size: 12px;
  font-weight: 500;
  color: #000;
  line-height: 1.5;
}

.form-privacy-link {
  color: #000;
  text-decoration: underline;
  font-weight: 700;
  text-underline-offset: 2px;
  transition: opacity 0.2s ease;
}

.form-privacy-link:hover {
  opacity: 0.6;
}

/* ─── 送信ボタン ─── */
.form-submit-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.form-submit-btn {
  width: 419px;
  height: 71px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1.3px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  line-height: 1.3;
  position: relative;
  overflow: hidden;
}

.form-submit-btn:hover {
  background: #1a1a1a;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.form-submit-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ─── 戻るリンク ─── */
.form-back-wrap {
  display: flex;
  justify-content: flex-start;
  padding-left: 160px;
  margin-top: 8px;
}

.form-back-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  line-height: 2;
  transition: opacity 0.2s ease;
}

.form-back-link:hover {
  opacity: 0.6;
}

.form-back-link svg {
  flex-shrink: 0;
}

/* ─── レスポンシブ ─── */
@media (max-width: 1200px) {
  .contact-form-inner {
    padding: 0 60px;
  }

  .contact-title {
    font-size: 40px;
  }
}

@media (max-width: 960px) {
  .contact-header {
    padding: 20px 40px 24px;
  }

  .contact-form-inner {
    padding: 0 40px;
  }

  .contact-title {
    font-size: 36px;
  }

  .form-submit-btn {
    width: 360px;
    height: 60px;
    font-size: 18px;
  }

  .form-back-wrap {
    padding-left: 0;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .contact-header {
    padding: 16px 24px 20px;
  }

  .contact-form-inner {
    padding: 0 24px;
  }

  .contact-title {
    font-size: 30px;
  }

  .contact-description {
    flex-direction: column;
    gap: 8px;
  }

  .contact-required-note {
    padding-top: 0;
  }

  .form-row {
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
  }

  .form-label-wrap {
    width: 100%;
    justify-content: flex-start;
    padding-right: 0;
    padding-top: 0;
  }

  .form-label {
    text-align: left;
  }

  .form-input-wrap {
    width: 100%;
  }

  .form-select-wrap {
    width: 100%;
  }

  .form-input-short {
    width: 100% !important;
    max-width: 200px;
  }

  .form-input-medium {
    width: 100% !important;
    max-width: 250px;
  }

  .form-submit-btn {
    width: 100%;
    max-width: 419px;
    height: 56px;
    font-size: 16px;
  }
}

@media (max-width: 540px) {
  .contact-header {
    padding: 14px 16px 16px;
  }

  .contact-form-inner {
    padding: 0 16px;
  }

  .contact-title {
    font-size: 26px;
  }

  .contact-description p {
    font-size: 14px;
  }

  .form-submit-btn {
    height: 52px;
    font-size: 15px;
    border-radius: 8px;
  }

  .form-back-link {
    font-size: 13px;
  }
}
