@charset "UTF-8";

*,
::before,
::after {
  min-width: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-style: solid;
  border-width: 0;
}

html {
  --14px: 0.875rem;
  --15px: 0.9375rem;
  --16px: 1rem;
  --17px: 1.0625rem;
  --18px: 1.125rem;
  --19px: 1.1875rem;
  --20px: 1.25rem;
  --21px: 1.3125rem;
  --24px: 1.5rem;
  --28px: 1.75rem;
  --32px: 2rem;
  --36px: 2.25rem;
  --48px: 3rem;
  --60px: 3.75rem;
}

/* =========================================================
   ロジックラボ お問い合わせフォーム 共通スタイル
   index.html / confirm.html / complete.html で共有
========================================================= */
:root {
  --bg: #EBEDFF;
  --surface: #FFFFFF;
  --ink: #151523;
  --ink-soft: #4C5A73;
  --ink-faint: #8291A8;
  --line: #DCE3ED;
  --line-strong: #B9C6D9;
  --accent: #232256;
  --accent-dark: #3B4FFF;
  --accent-soft: #d2d6ff;
  --amber: #22247c;
  --amber-soft: #e3f5f8;
  --danger: #C24949;
  --danger-soft: #FBEAEA;
  --radius: 14px;
  --focus-ring: 0 0 0 3px rgba(47,143,143,0.35);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-size: var(--16px);
  font-weight: 500;
  line-height: var(--24px);
  -webkit-font-smoothing: antialiased;
  font-family: "Murecho","Noto Sans JP", sans-serif;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  background-color: transparent;
  text-decoration: none;
  color: inherit;
}

/* 
.page{
  max-width:760px;
  margin:0 auto;
  padding:48px 20px 96px;
} */

/* header.hero{padding:8px 4px 40px;} */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  margin-bottom: 18px;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .14em;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.contact-main h1 {
  padding: 60px 4%;
  font-size: var(--36px);
}

.contact-main .other-main-text {
  padding: 45px 4%;
}

.contact-main p {
  font-size: var(--20px);
  line-height: var(--32px);
}

/* h1{
  font-family:'Zen Kaku Gothic New', sans-serif;
  font-weight:900;
  font-size:clamp(26px,5vw,34px);
  line-height:1.4;
  margin:0 0 14px;
  color:var(--ink);
} */

/* header.hero p {
  max-width: 56ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--15px);
} */

form {
  position:relative;
}

/* --- 回路風のセクション連結レール（入力ページ） --- */
.rail {
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--line-strong) 0 6px, transparent 6px 12px);
  position: absolute;
  left: 20px;
  top: 26px;
  bottom: 26px;
}

section.step {
  padding: 0 0 40px 68px;
  position: relative;
}

section.step:last-of-type {
  padding-bottom: 0;
}

.chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: var(--surface);
  border:2px solid var(--accent);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
}

.chip::before,.chip::after {
  content: "";
  width: 2px;
  height: 6px;
  background: var(--accent);
  transform: translateX(-50%);
  position: absolute;
  left: 50%;
}

.chip::before {
  top: -6px;
}

.chip::after {
  bottom:-6px;
}

section.step h2 {
  margin: 8px 0 8px;
  color: var(--ink);
  font-size: var(--18px);
  font-weight: 700;
}

.step-note {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 13.5px;
}

.card {
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

fieldset {
  padding: 0;
  margin: 0;
  border: 0;
}

legend {
  padding: 0;
}

.field {
  margin-bottom: 18px;
}

.field:last-child {
  margin-bottom: 0;
}

.field .field-label {
  margin-bottom: 8px;
}

.field label.field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}

.req {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  margin-left: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--bg);
  border: 1px solid var(--accent-dark);
  border-radius: 999px;
  letter-spacing: 1px;
  line-height: 1;
}

.opt {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding: 3px 7px;
  margin-left: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-faint);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  letter-spacing: 1px;
  line-height: 1;
}

input[type=text], input[type=email], input[type=tel], input[type=date], select, textarea {
  width: 100%;
  padding: 11px 13px;
  font-size: var(--15px);
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
}

select,
input[type="date"] {
  cursor: pointer;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus-visible, select:focus-visible, textarea:focus-visible, input[type=checkbox]:focus-visible, input[type=radio]:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

.choice-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.choice:hover {
  border-color: var(--accent);
}

.choice input {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 3px;
  accent-color: var(--accent);
}

.choice input[type="checkbox"],
.choice input[type="radio"] {
  cursor: pointer;
}

.choice .choice-text {
  font-size: var(--15px);
}

.choice .choice-sub {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width:520px) {
  .row2 {
    grid-template-columns: 1fr;
  }
}

.candidate {
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
}

.candidate:last-child {
  margin-bottom: 0;
}

.candidate-title {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
}

.conditional {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.conditional.show {
  display: block;
}

.hint-box {
  padding: 12px 14px;
  margin-bottom: 14px;
  background: var(--accent-soft);
  border: 1px solid #BFE0DC;
  border-radius: 10px;
  font-size: var(--14px);
  color: var(--accent-dark);
}

.note-box {
  padding: 12px 14px;
  margin-top: 12px;
  background: var(--amber-soft);
  border: 1px solid var(--amber);
  border-radius: 10px;
  font-size: var(--14px);
  color: #22247c;
}

.error-text {
  display: none;
  margin-top: 6px;
  font-size: var(--14px);
  color: var(--danger);
  font-weight: 500;
}

.field.invalid input:not([type=checkbox]):not([type=radio]),
.field.invalid select,
.field.invalid textarea,
.field.invalid .choice-grid {
  border-color: var(--danger);
}

.field.invalid .choice-grid .choice {
  border-color: var(--danger);
}

.field.invalid .error-text {
  display: block;
}

.agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-soft);
}

.agree input {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 3px;
  accent-color: var(--accent);
}

.agree a {
  color: var(--accent-dark);
}

.submit-row {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

button.btn, a.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 14px 20px;
  font-weight: 700;
  font-size: var(--15px);
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  transition: all .3s;
}

button.btn.primary, a.btn.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

button.btn.primary:hover, a.btn.primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

button.btn:not(.primary):hover,
a.btn:not(.primary):hover {
  background: var(--bg);
  border-color: var(--accent-dark);
  color: var(--accent-dark);
}

button.btn:active, a.btn:active {
  transform: translateY(1px);
}

.form-error-banner {
  display: none;
  padding: 12px 14px;
  margin-left: 68px;
  margin-bottom: 22px;
  background: var(--danger-soft);
  border: 1px solid var(--danger);
  color: #8C2E2E;
  border-radius: 10px;
}

.form-error-banner.show {
  display: block;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto 80px;
}

.step-item {
  flex: 1;
  padding: 20px 10px;
  text-align: center;
  font-weight: 700;
  color: #fff;
  background: var(--line-strong);
  border-radius: 10px;
}

.step-item.is-active {
  background: #4b58d1;
}

.step-arrow {
  flex: none;
  font-weight: 700;
  font-size: var(--20px);
  color: var(--line-strong);
  line-height: 1;
}

@media screen and (max-width: 600px) {
  .step-indicator {
    gap: 6px;
    margin: 0 auto 40px;
  }
  .step-item {
    padding: 14px 4px;
    font-size: var(--14px);
  }
  .step-arrow {
    font-size: var(--16px);
  }
}


/* --- 確認ページ用 --- */
.review-section {
  padding: 18px 20px 6px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.review-section:last-child {
  margin-bottom: 0;
}

.review-row:not(:last-child) {
  border-bottom: 1px dashed var(--line);
}

.review-section h2 {
  margin: 0 0 12px;
  font-size: var(--15px);
  font-weight: 700;
  color: var(--ink);
}

.review-row:not(:last-child) {
  margin-bottom: 4px;
}

.review-row {
  display: flex;
  gap: 30px;
  padding: 0px 0 8px;
  font-size: var(--15px);
}

.review-row .label {
  flex: 1.5;
  color: var(--ink-soft);
  font-weight: 500;
}

.review-row .value {
  flex: 2.5;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

.review-row .value.empty {
  color: var(--ink-faint);
}

.review-note {
  padding: 12px 14px;
  margin-bottom: 22px;
  background: var(--amber-soft);
  border: 1px solid var(--amber);
  border-radius: 10px;
  color: #22247c;
}

/* --- 完了ページ用 --- */
.complete-panel {
  padding: 40px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.complete-panel .mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: var(--28px);
}

.complete-panel h1 {
  margin-bottom: 12px;
  font-size: var(--24px);
}

.complete-panel p {
  margin: 0 0 10px;
  color: var(--ink-soft);
}

.complete-panel .btns {
  margin-top: 24px;
}

.complete-panel .btns a.btn {
  display: inline-flex;
  flex: none;
  padding: 12px 30px;
}

@media (prefers-reduced-motion:no-preference) {
  section.step {
    animation:fade .4s ease both;
  }
  @keyframes fade {from{opacity:0;transform:translateY(6px);}to{opacity:1;transform:translateY(0);}}
}


@media screen and (max-width: 960px) {
  .card {
    padding: 40px 4%;
  }

  .contact-main h1 {
    padding: 40px 4%;
    margin: 0;
    font-size: var(--32px);
  }

  .contact-main .other-main-text {
    padding: 35px 4%;
  }

  .contact-main p {
    font-size: var(--14px);
    line-height: var(--32px);
  }

  .complete-panel {
    padding: 35px 4%;
  }
}
