:root {
  --primary: #12335f;
  --primary-dark: #0b2445;
  --accent: #c5a36a;
  --accent-dark: #9f7e43;
  --text: #263445;
  --muted: #667085;
  --line: #e6eaf0;
  --bg: #f7f9fc;
  --white: #fff;
  --shadow: 0 16px 40px rgba(18, 51, 95, 0.10);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================
   Header
========================== */

.form-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 28px 0;
}

.form-header-inner {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.form-header-inner > a {
  display: inline-flex;
}

.form-logo {
  width: 230px;
  height: auto;
}

.form-header p {
  text-align: right;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  line-height: 1.8;
}

/* ==========================
   Back Link
========================== */

.page-back {
  width: min(760px, calc(100% - 40px));
  margin: 24px auto 0;
}

.page-back a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: .92rem;
  font-weight: 700;
  transition: .25s;
}

.page-back a:hover {
  color: var(--accent-dark);
  transform: translateX(-3px);
}

/* ==========================
   Layout
========================== */

.contact-page {
  padding: 36px 0 80px;
}

.contact-box {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(34px, 5vw, 56px);
  box-shadow: var(--shadow);
}

/* ==========================
   Title
========================== */

.eyebrow {
  display: block;
  color: var(--accent-dark);
  font-size: .86rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-align: center;
  margin-bottom: 8px;
}

h1 {
  color: var(--primary-dark);
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.35;
  margin-bottom: 18px;
  letter-spacing: .04em;
}

.title-line {
  width: 170px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 0 auto 34px;
  position: relative;
}

.title-line::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* ==========================
   Step
========================== */

.step-area {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 420px;
  margin: 0 auto 34px;
  position: relative;
}

.step-area::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 17%;
  right: 17%;
  height: 1px;
  background: #d9dee8;
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.step span {
  width: 42px;
  height: 42px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: #a8adb7;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.step.active span {
  background: var(--primary);
}

.step.done span {
  background: var(--accent-dark);
}

.step p {
  color: var(--primary-dark);
  font-weight: 800;
}

.lead {
  text-align: center;
  color: var(--text);
  margin-bottom: 34px;
}

/* ==========================
   Input Form
========================== */

.contact-form {
  display: grid;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  align-items: center;
}

.form-row-textarea {
  align-items: start;
}

label {
  color: var(--primary-dark);
  font-weight: 900;
}

label span {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 4px;
  background: #d93025;
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  border: 1px solid #d7dde8;
  border-radius: 8px;
  padding: 14px 16px;
  font: inherit;
  background: #fff;
  transition: border-color .25s ease, box-shadow .25s ease;
}

textarea {
  min-height: 170px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(197,163,106,.14);
}

/* ==========================
   Buttons
========================== */

.submit-btn {
  margin-top: 18px;
  width: 100%;
  min-height: 64px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: .06em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  box-shadow: 0 16px 34px rgba(18,51,95,.22);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.submit-btn em {
  font-style: normal;
  font-size: 1.6rem;
  line-height: 1;
}

.submit-btn:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  box-shadow: 0 22px 45px rgba(159,126,67,.28);
}

.back-btn {
  width: 100%;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--primary-dark);
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}

.back-btn:hover {
  background: #f0f4fa;
  transform: translateY(-3px);
}

/* ==========================
   Confirm
========================== */

.confirm-list {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.confirm-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcff;
}

.confirm-label {
  color: var(--primary-dark);
  font-weight: 900;
}

.confirm-value {
  color: var(--text);
  line-height: 1.9;
  word-break: break-word;
}

.confirm-message {
  align-items: start;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 18px;
  margin-top: 30px;
}

/* ==========================
   Thanks
========================== */

.thanks-box {
  text-align: center;
  padding: 30px 0;
}

.thanks-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 30px;
  border-radius: 50%;
  background: linear-gradient(135deg,var(--primary-dark),var(--primary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 900;
  box-shadow: 0 18px 35px rgba(18,51,95,.18);
}

.thanks-box h2 {
  color: var(--primary-dark);
  font-size: 2rem;
  margin-bottom: 24px;
}

.thanks-box p {
  line-height: 2;
  margin-bottom: 36px;
  color: var(--text);
}

/* ==========================
   Responsive
========================== */

@media (max-width: 700px) {
  .form-header-inner {
    display: block;
    text-align: center;
  }

  .form-logo {
    width: 200px;
    margin-bottom: 12px;
  }

  .form-header p {
    text-align: center;
    font-size: .9rem;
  }

  .page-back {
    width: min(100% - 28px, 760px);
    margin: 18px auto 0;
  }

  .contact-page {
    padding: 28px 0 60px;
  }

  .contact-box {
    width: min(100% - 28px, 760px);
    padding: 34px 22px;
  }

  .pc-only {
    display: none;
  }

  .step-area {
    max-width: 320px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  label span {
    margin-left: 6px;
  }

  .confirm-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .confirm-actions {
    grid-template-columns: 1fr;
  }

  .thanks-icon {
    width: 72px;
    height: 72px;
    font-size: 2rem;
  }

  .thanks-box h2 {
    font-size: 1.6rem;
  }
}