/**
 * contact.css — お問い合わせ
 */

/* ===== お問い合わせ ===== */
.ct {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 40px 112px;
}
.ct-lead {
  text-align: center;
  line-height: 2.1;
  margin-bottom: 56px;
}
.ct-tel {
  text-align: center;
  background: var(--bg-warm);
  border-radius: 6px;
  padding: 28px 20px;
  margin-bottom: 64px;
}
.ct-tel p {
  font-size: 14px;
  color: var(--text-light);
}
.ct-tel a {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.ct-tel a small {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  margin-right: 8px;
}

/* ステップ表示：番号を使わず線と丸で */
.steps {
  display: flex;
  justify-content: center;
  margin-bottom: 56px;
  list-style: none;
}
.steps li {
  position: relative;
  width: 150px;
  text-align: center;
  padding-top: 28px;
  font-size: 14px;
  color: var(--muted);
}
.steps li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  z-index: 1;
  box-sizing: border-box;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 100%;
  height: 1px;
  background: var(--border);
}
.steps li.on {
  color: var(--accent);
  font-weight: 500;
}
.steps li.on::before {
  border-color: var(--accent);
  background: var(--accent);
}
.steps li.done::before {
  border-color: var(--accent);
}
.steps li.done::after {
  background: var(--accent);
}

.form .row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border-l);
  align-items: start;
}
.form .row:first-child {
  border-top: 1px solid var(--border-l);
}
.form label.lb,
.form .lb {
  font-weight: 500;
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.req,
.opt {
  font-size: 11px;
  font-weight: 500;
  border-radius: 2px;
  padding: 1px 7px;
  letter-spacing: 0.06em;
}
.req {
  background: var(--accent);
  color: #fff;
}
.opt {
  background: var(--border-l);
  color: var(--muted);
}
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form textarea {
  min-height: 220px;
  resize: vertical;
  line-height: 1.9;
}
.form .note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}
.radios {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 6px;
}
.radios label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 11px 20px 11px 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.radios input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--border);
  border-radius: 50%;
  margin: 0;
  flex-shrink: 0;
  transition: all 0.2s;
}
.radios input:checked {
  border: 5px solid var(--accent);
}
.radios label:has(input:checked) {
  border-color: var(--accent);
  color: var(--accent);
}
.agree {
  text-align: center;
  margin: 44px 0 36px;
}
.agree label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.agree input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 1px solid var(--border);
  border-radius: 3px;
  margin: 0;
  position: relative;
  transition: all 0.2s;
}
.agree input:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.agree input:checked::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 11px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}
.agree a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}
.actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.actions .btn {
  min-width: 320px;
  padding: 18px 48px;
  font-size: 17px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.actions .btn:disabled {
  background: #d6d1ce;
  cursor: not-allowed;
}
.actions .back {
  min-width: 200px;
  padding: 18px 32px;
  font: inherit;
  font-size: 16px;
  color: var(--text-light);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
}
.actions .back:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 確認画面 */
.confirm dl {
  border-top: 1px solid var(--border-l);
}
.confirm dl div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-l);
}
.confirm dt {
  font-weight: 500;
}
.confirm dd {
  white-space: pre-wrap;
  word-break: break-all;
}
.confirm-lead {
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-light);
}

/* 完了画面 */
.thanks {
  text-align: center;
  padding: 24px 0;
}
.thanks .ic {
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.thanks .ic svg {
  width: 44px;
  height: 44px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.thanks h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.thanks p {
  line-height: 2.1;
  color: var(--text-light);
}
.thanks .btn-line {
  margin-top: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 320px;
  padding: 18px 48px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  background: #fff;
  transition: all 0.3s;
}
.thanks .btn-line:hover {
  background: var(--accent);
  color: #fff;
}
.thanks .btn-line::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 14px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}
[data-step][hidden] {
  display: none;
}

@media (max-width: 760px) {
  .ct {
    padding: 32px 20px 80px;
  }
  .ct-lead {
    text-align: left;
    margin-bottom: 36px;
  }
  .ct-tel {
    margin-bottom: 44px;
  }
  .ct-tel a {
    font-size: 28px;
  }
  .steps {
    margin-bottom: 40px;
  }
  .steps li {
    width: 100px;
    font-size: 13px;
  }
  .form .row,
  .confirm dl div {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px 0;
  }
  .form .lb {
    padding-top: 0;
  }
  .radios {
    flex-direction: column;
  }
  .agree {
    text-align: left;
  }
  .actions {
    flex-direction: column-reverse;
  }
  .actions .btn,
  .actions .back {
    min-width: 0;
    width: 100%;
  }
  .thanks .btn-line {
    min-width: 0;
    width: 100%;
  }
}
