/* ============================================================
 * contact/ Contact-specific styles ONLY
 * 
 * 共通デザインシステム (nav / btn / page-head / footer / Page Head
 * Dark Theme / breadcrumb / foot__social 等) は /assets/style.css
 * に統合済み。このファイルは contact 固有スタイル (contact form + 
 * pre-contact section) のみを保持する。
 * 
 * ⚠ ロード順:
 *   1. /assets/style.css (共通) ← header.html / index.php で先に読む
 *   2. /contact/assets/lp-base.css (このファイル、後で読む)
 * 
 * 2026-07-10: CSS 統合により /assets/style.css を作成、共通部分をこちらから除去
 * ============================================================ */

/* ============================================================
 * Contact form styles
 * ============================================================ */

.contact-section { padding: 56px 24px 80px; }
.contact-section > .wrap { padding: 0; }
.contact-form { max-width: 640px; margin: 0 auto; }

.field { margin-bottom: 24px; }
.field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.field__label .req {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  letter-spacing: 0.05em;
  vertical-align: middle;
}
.field__label .opt {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-mute);
  background: var(--bg-code);
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  letter-spacing: 0.05em;
  vertical-align: middle;
}
.field__hint {
  display: block;
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 6px;
}
.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 11px 14px;
  border: 0.5px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8a85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.field textarea {
  min-height: 160px;
  resize: vertical;
  font-family: inherit;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

.form-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.form-actions .btn {
  min-width: 160px;
  font-size: 15px;
  padding: 11px 20px;
}
.form-actions .btn--ghost {
  background: var(--bg);
  color: var(--text);
  border-color: var(--line);
}
.form-actions .btn--ghost:hover {
  background: var(--bg-alt);
  text-decoration: none;
}

/* Errors */
.form-error {
  background: var(--warn-bg);
  border: 0.5px solid var(--warn);
  color: var(--warn);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 13.5px;
  line-height: 1.7;
}
.form-error strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}
.form-error ul { margin: 0; padding-left: 18px; }
.form-error li { margin-top: 2px; }

/* Confirm screen */
.confirm-list {
  border: 0.5px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
  margin: 24px 0;
}
.confirm-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 16px 20px;
  border-bottom: 0.5px solid var(--line);
  font-size: 14px;
}
.confirm-row:last-child { border-bottom: none; }
.confirm-row__label {
  color: var(--text-mute);
  font-weight: 500;
  font-size: 13px;
}
.confirm-row__value { color: var(--text); white-space: pre-wrap; word-break: break-word; }
@media (max-width: 600px) {
  .confirm-row { grid-template-columns: 1fr; gap: 4px; }
}

/* Finish / error screens */
.notice-card {
  max-width: 560px;
  margin: 40px auto;
  text-align: center;
  padding: 40px 24px;
  border: 0.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.notice-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  font-size: 28px;
}
.notice-card .icon--ok { background: var(--green-bg); color: var(--green); }
.notice-card .icon--ng { background: var(--warn-bg); color: var(--warn); }
.notice-card h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.notice-card p {
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.7;
}
.notice-card .actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}



/* ============================================================
 * Pre-contact section (お問い合わせの前に)
 * 気軽な問い合わせを抑制し、自己解決を促すブロック。
 * ============================================================ */

.pre-contact {
  margin-bottom: 56px;
}
.pre-contact__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.pre-contact__desc {
  font-size: 13.5px;
  color: var(--text-mid);
  margin-bottom: 20px;
}
.pre-contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.pre-contact__card {
  display: block;
  padding: 18px 18px 16px;
  border: 0.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.pre-contact__card:hover {
  border-color: var(--accent);
  text-decoration: none;
}
.pre-contact__card-label {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  margin-bottom: 8px;
}
.pre-contact__card-title {
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 4px;
}
.pre-contact__card-desc {
  font-size: 12.5px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 10px;
}
.pre-contact__card-link {
  font-size: 12.5px;
  color: var(--accent);
}
.pre-contact__card:hover .pre-contact__card-link {
  text-decoration: underline;
}

.pre-contact__note {
  background: var(--bg-alt);
  border: 0.5px solid var(--line);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 13px;
}
.pre-contact__note strong {
  display: block;
  font-size: 13.5px;
  color: var(--text);
  margin-bottom: 8px;
}
.pre-contact__note ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pre-contact__note li {
  padding-left: 16px;
  position: relative;
  color: var(--text-mid);
  line-height: 1.7;
  margin-top: 4px;
}
.pre-contact__note li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--text-mute);
}
.pre-contact__note li strong {
  display: inline;
  font-size: inherit;
  color: var(--text);
  margin: 0;
}

.contact-form__heading {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
  padding-top: 24px;
  border-top: 0.5px solid var(--line);
}

@media (max-width: 700px) {
  .pre-contact__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}


