/* 相談フォームページ用(style.css のあとに読み込む) */
.contact-page header.top {
  animation: none;
  opacity: 1;
}
.contact-main {
  padding: 150px 24px 88px;
}
.form-wrap {
  max-width: 680px;
  margin: 0 auto;
}
.form-head {
  text-align: center;
  margin-bottom: 36px;
}
.form-head h1 {
  font-weight: 500;
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.form-head p {
  margin-top: 14px;
  color: var(--sub);
}
.form-card {
  padding: 48px;
  border-radius: 40px;
  background: var(--row-bg);
  box-shadow: 0 24px 60px -36px rgba(125, 90, 217, 0.35);
}
.field {
  margin-bottom: 26px;
}
.field label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 8px;
  line-height: 1.6;
}
.badge {
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.badge.req {
  color: #fff;
  background: var(--btn);
}
.badge.opt {
  color: var(--sub);
  box-shadow: inset 0 0 0 1px var(--line);
}
.field input,
.field textarea {
  width: 100%;
  display: block;
  padding: 15px 20px;
  border-radius: 18px;
  border: 1.5px solid rgba(143, 111, 214, 0.22);
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.7 "Noto Sans JP", system-ui, sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea {
  min-height: 180px;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--sub);
  opacity: 0.55;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--a2);
  box-shadow: 0 0 0 4px rgba(154, 124, 240, 0.18);
}
.field input:user-invalid,
.field textarea:user-invalid {
  border-color: #e0788c;
}
.hint {
  margin-top: 6px;
  font-size: 13px;
  color: var(--sub);
  line-height: 1.7;
}
.hint.above {
  margin: 0 0 10px;
}
.submit {
  margin-top: 34px;
  text-align: center;
}
.submit .btn {
  border: 0;
  cursor: pointer;
  min-width: 260px;
  font-size: 16px;
  padding: 17px 40px;
}
.submit .btn:hover {
  filter: brightness(1.05);
}
.privacy {
  margin-top: 18px;
  font-size: 13px;
  color: var(--sub);
  line-height: 1.8;
}
@media (max-width: 760px) {
  .contact-main {
    padding: 112px 18px 64px;
  }
  .form-card {
    padding: 30px 22px;
    border-radius: 30px;
  }
  .submit .btn {
    width: 100%;
    min-width: 0;
  }
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 制作物(チェックボックスのチップ) */
fieldset.field {
  border: 0;
  min-width: 0;
  padding: 0;
}
.field legend {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 8px;
  padding: 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  position: relative;
  cursor: pointer;
}
.field .chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  opacity: 0;
  cursor: pointer;
  box-shadow: none;
}
.chip span {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(143, 111, 214, 0.22);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.5;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}
.chip:hover span {
  border-color: var(--a2);
}
.field .chip input:checked + span {
  background: var(--btn);
  border-color: transparent;
  color: #fff;
}
.field .chip input:checked + span::before {
  content: "✓ ";
}
.field .chip input:focus-visible + span {
  box-shadow: 0 0 0 4px rgba(154, 124, 240, 0.28);
}
