/* ご依頼の流れ・FAQ ページ(Flow FAQ)専用 */

/* ---------- 01 流れ ---------- */
.fl-flow { border-top: 1px solid var(--line-dark); }
.fl-h2--flow { margin-bottom: clamp(36px, 4.4cqw, 64px); }
.fl-steps {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 36px 0;
}
.fl-step { display: flex; flex-direction: column; gap: 14px; }
.fl-step__track { display: flex; align-items: center; }
.fl-step__dot { width: 14px; height: 14px; background: var(--on-dark); flex: none; }
.fl-step__line { flex: 1; height: 2px; background: var(--line-dark-3); }
.fl-step:first-child .fl-step__dot { background: var(--laser); box-shadow: 0 0 12px rgba(255,91,31,.9); }
.fl-step:first-child .fl-step__line { background: var(--laser); box-shadow: 0 0 10px rgba(255,91,31,.6); }
.fl-step:last-child .fl-step__line { display: none; }
.fl-step__no { font-family: var(--font-num); font-size: 56px; font-weight: 600; line-height: 1; }
.fl-step:first-child .fl-step__no { color: var(--laser-light); }
.fl-step__title { font-size: 24px; font-weight: 900; }
.fl-step__text { color: var(--on-dark-3); padding-right: 28px; }

/* ---------- 02 受け付ける図面 ---------- */
.fl-drawing .section-head { margin-bottom: clamp(28px, 3.4cqw, 48px); }
.fl-drawing .section-head .h2 { margin-top: 14px; }
.fl-kinds {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); border-top: 2px solid var(--ink);
}
.fl-kind {
  padding: clamp(20px, 2.4cqw, 28px) clamp(16px, 2cqw, 24px) clamp(20px, 2.4cqw, 28px) 0;
  border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px;
}
.fl-kind__name { font-size: 32px; font-weight: 900; line-height: 1.1; }
.fl-kind__name--num { font-family: var(--font-num); font-size: 44px; font-weight: 600; letter-spacing: .02em; }
.fl-kind p { color: var(--muted); font-size: 16px; }
.fl-memo {
  margin-top: clamp(28px, 3cqw, 40px); background: var(--iron); color: var(--on-dark);
  padding: clamp(24px, 3cqw, 40px); display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: center;
}
.fl-memo__title { flex: 1 1 260px; font-size: clamp(20px, 2cqw, 24px); font-weight: 900; line-height: 1.5; }
.fl-memo__list {
  flex: 2 1 400px; list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(50%, 120px), 1fr)); gap: 12px;
}
.fl-memo__list li { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; }
.fl-memo__list li::before { content: ""; width: 10px; height: 10px; flex: none; background: var(--laser); box-shadow: 0 0 8px rgba(255,91,31,.8); }
.fl-memo__note { flex: 1 1 100%; color: var(--on-dark-3); font-size: 15px; border-top: 1px solid var(--line-dark-2); padding-top: 14px; }

/* ---------- 03 FAX ---------- */
.fl-h2--fax { margin-bottom: clamp(28px, 3.4cqw, 48px); }
.fl-fax__row { display: flex; flex-wrap: wrap; gap: clamp(32px, 5cqw, 72px); align-items: flex-start; }
.fl-fax__main { flex: 1.2 1 400px; display: flex; flex-direction: column; gap: 28px; }
.fl-fax__num-box { display: flex; flex-direction: column; gap: 4px; border-top: 2px solid var(--ink); padding-top: 16px; }
.fl-fax__label { font-size: 14px; color: var(--muted); }
.fl-fax__num { font-size: clamp(48px, 6cqw, 80px); font-weight: 600; line-height: 1.05; letter-spacing: .02em; }
.fl-fax__steps { list-style: none; padding: 0; display: flex; flex-direction: column; }
.fl-fax__steps li { display: grid; grid-template-columns: 48px 1fr; gap: 0 8px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 18px; }
.fl-fax__steps li:last-child { border-bottom: 1px solid var(--line); }
.fl-fax__n { font-size: 28px; color: var(--laser-text); line-height: 1.2; }
.fl-fax__steps a { font-weight: 700; white-space: nowrap; }
.fl-sheet { flex: 1 1 320px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.fl-sheet figcaption { font-size: 14px; color: var(--muted); }
.fl-sheet__paper {
  aspect-ratio: 1 / 1.414; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.12); padding: 7%;
  display: flex; flex-direction: column; justify-content: space-between;
}
.fl-sheet__draw {
  flex: 1; border: 1px dashed var(--on-dark-muted); display: flex; align-items: center; justify-content: center;
  color: #7a8085; font-size: 14px; margin-bottom: 6%;
}
.fl-sheet__table {
  align-self: flex-end; width: 72%; border: 1.5px solid var(--ink);
  display: grid; grid-template-columns: auto 1fr; font-size: clamp(11px, 1cqw, 13px); line-height: 1.8;
}
.fl-sheet__table span { border-bottom: 1px solid var(--ink); }
.fl-sheet__table span:nth-child(odd) { padding: 5px 8px; border-right: 1px solid var(--ink); background: var(--paper); }
.fl-sheet__table span.is-hl { background: #fff1ea !important; color: #8f2f08; font-weight: 700; }
.fl-sheet__table span:nth-last-child(-n+2) { border-bottom: 0; }

/* ---------- 04 よくある質問 ---------- */
.fl-faq__row { display: flex; flex-wrap: wrap; gap: 24px clamp(40px, 6cqw, 96px); align-items: flex-start; }
.fl-faq__head { flex: 1 1 240px; }
.fl-faq__head .h2 { margin-bottom: 0; }
.fl-faq__help { margin-top: 16px; color: var(--muted); }
.fl-faq__tel { display: inline-block; margin-top: 4px; font-size: 32px; line-height: 1.5; color: var(--ink); text-decoration: none; }
.fl-faq__tel:hover { color: var(--laser-text); }
.fl-faq__groups { flex: 2.4 1 460px; display: flex; flex-direction: column; gap: clamp(32px, 4cqw, 48px); }
.fl-faq-group { display: flex; flex-direction: column; }
.fl-faq-group__title { padding: 0 0 10px; font-size: 15px; letter-spacing: .1em; color: var(--muted); font-weight: 700; border-bottom: 2px solid var(--ink); }
.fl-q { border-bottom: 1px solid var(--line); }
.fl-q summary {
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start;
  padding: 20px 0; cursor: pointer; min-height: 48px; list-style: none;
}
.fl-q summary::-webkit-details-marker { display: none; }
.fl-q__mark { font-family: var(--font-num); font-size: 24px; font-weight: 600; line-height: 1.35; }
.fl-q__mark--q { color: var(--laser-text); }
.fl-q__text { font-size: clamp(18px, 1.8cqw, 21px); font-weight: 900; line-height: 1.55; }
.fl-q__icon { font-family: var(--font-num); font-size: 26px; line-height: 1.2; color: var(--muted); }
.fl-q__icon::before { content: "＋"; }
.fl-q[open] .fl-q__icon::before { content: "－"; }
.fl-q summary:hover .fl-q__text { color: var(--laser-text); }
.fl-q__a { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 0 0 22px; }
.fl-q__a p { color: var(--body-strong); }

/* ---------- 05 見積もりフォーム ---------- */
.fl-form { padding-top: clamp(56px, 8cqw, 120px); padding-bottom: clamp(56px, 8cqw, 120px); }
.fl-form__row { display: flex; flex-wrap: wrap; gap: 32px clamp(40px, 5cqw, 72px); align-items: flex-start; }
.fl-form__side { flex: 1 1 280px; display: flex; flex-direction: column; gap: 20px; }
.fl-form__side .h2 { margin-bottom: 0; }
.fl-form__lead { color: var(--body-strong); }
.fl-contact { border-top: 2px solid var(--ink); display: flex; flex-direction: column; }
.fl-contact > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.fl-contact dt { font-size: 14px; color: var(--muted); }
.fl-contact dd { font-size: 34px; font-weight: 600; line-height: 1.2; }
.fl-contact dd a { color: var(--ink); text-decoration: none; }
.fl-contact dd a:hover { color: var(--laser-text); }

.fl-form__panel { flex: 1.8 1 480px; min-width: 0; background: #fff; border-top: 4px solid var(--ink); }
.fl-formbox[hidden] { display: none; }
.fl-formbox { padding: clamp(24px, 3.4cqw, 48px); display: flex; flex-direction: column; gap: 28px; }
.fl-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.fl-fieldset--sep { padding-top: 0; border-top: 1px solid var(--line); display: block; }
.fl-fieldset--sep > .fl-grid, .fl-fieldset--sep > .fl-due { clear: both; }
.fl-fieldset--sep > .fl-due { margin-top: 22px; }
.fl-legend { padding: 0 0 14px; font-size: 14px; letter-spacing: .12em; color: var(--laser-text); font-weight: 700; }
.fl-fieldset--sep .fl-legend { float: left; width: 100%; padding-top: 22px; }
.fl-grid { display: grid; gap: 22px 20px; }
.fl-grid--contact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.fl-grid--spec { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }

.fl-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fl-label-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fl-label { font-size: 17px; font-weight: 700; }
.fl-req { font-size: 12px; font-weight: 900; background: var(--laser); color: var(--iron); padding: 1px 8px; line-height: 1.6; }
.fl-opt { font-size: 12px; color: var(--muted); border: 1px solid var(--on-dark-muted); padding: 0 7px; line-height: 1.6; }
.fl-hint { font-size: 14px; color: var(--muted); }

.fl-input {
  width: 100%; min-height: 56px; padding: 12px 16px;
  font: inherit; font-size: 18px; line-height: 1.5; color: var(--ink); background: #fff;
  border: 1.5px solid var(--ghost); border-radius: 0; appearance: none; -webkit-appearance: none;
}
.fl-input::placeholder { color: #7a8085; }
.fl-input:focus { border-color: var(--ink); outline: 3px solid var(--laser); outline-offset: 0; }
.fl-input[aria-invalid="true"] { background: #fff6f4; border: 2px solid #c81e1e; }
.fl-input[aria-invalid="true"]:focus { border-color: var(--ink); }
.fl-err { display: flex; gap: 8px; align-items: baseline; color: #b91c1c; font-weight: 700; font-size: 15px; line-height: 1.6; }
.fl-err::before { content: "▲"; }
.fl-err[hidden] { display: none; }

.fl-select { position: relative; }
.fl-select .fl-input { padding-right: 44px; cursor: pointer; }
.fl-select__arrow { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 14px; }
.fl-unit { display: flex; }
.fl-unit .fl-input { border-right: 0; min-width: 0; }
.fl-unit__u {
  display: flex; align-items: center; padding: 0 16px; background: var(--paper);
  border: 1.5px solid var(--ghost); font-size: 17px; font-weight: 700;
}
.fl-unit__u--en { font-family: var(--font-num); font-size: 20px; font-weight: 600; }

.fl-due { display: flex; flex-direction: column; gap: 10px; }
.fl-due__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 8px; }
.fl-radio {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px;
  border: 1.5px solid var(--ghost); cursor: pointer; font-size: 17px;
}
.fl-radio:has(input:checked) { border-color: var(--ink); background: #fffaf6; }
.fl-radio input { width: 22px; height: 22px; accent-color: var(--laser); margin: 0; }
.fl-due__date { max-width: 280px; }

.fl-files { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 26px; }
.fl-drop {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 150px; padding: 24px; border: 2px dashed var(--ghost); background: #fafaf8; cursor: pointer; text-align: center;
}
.fl-drop:hover, .fl-drop.is-over { border-color: var(--laser); background: #fff8f4; }
.fl-drop:focus-within { outline: 3px solid var(--laser); outline-offset: 3px; }
.fl-drop__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fl-drop__btn {
  display: flex; align-items: center; min-height: 52px; padding: 0 22px;
  background: var(--ink); color: var(--on-dark); font-weight: 700; font-size: 17px;
}
.fl-drop__text { font-size: 15px; color: var(--muted); }
.fl-filelist { list-style: none; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.fl-filelist[hidden] { display: none; }
.fl-filelist li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.fl-file__ext { font-family: var(--font-num); font-size: 14px; font-weight: 600; background: var(--ink); color: var(--on-dark); padding: 2px 8px; min-width: 34px; text-align: center; }
.fl-file__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.fl-file__size { font-size: 13px; color: var(--muted); white-space: nowrap; }
.fl-file__rm { width: 48px; height: 48px; border: 0; background: transparent; font-size: 22px; cursor: pointer; color: var(--muted); }
.fl-file__rm:hover { color: var(--ink); }

.fl-textarea { min-height: 150px; line-height: 1.7; resize: vertical; }

.fl-submit { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 26px; }
.fl-submit__btn { width: 100%; min-height: 68px; padding: 0 28px; border: 0; font: inherit; font-weight: 900; font-size: 19px; cursor: pointer; }
.fl-submit__btn .arrow { font-size: 26px; }
.fl-submit__note { font-size: 14px; color: var(--muted); }

/* エラーのまとめ */
.fl-summary {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 18px 20px;
  border: 2px solid #c81e1e; background: #fff6f4;
}
.fl-summary[hidden] { display: none; }
.fl-summary__mark {
  grid-row: span 2; width: 32px; height: 32px; background: #c81e1e; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 20px;
}
.fl-summary__title { font-size: 18px; font-weight: 900; color: #991b1b; }
.fl-summary__text { font-size: 15px; color: var(--body-strong); }
.fl-summary:focus { outline: 3px solid var(--laser); outline-offset: 3px; }

/* 送信後 */
.fl-done[hidden], #sent-summary[hidden] { display: none; }
.fl-done { display: flex; flex-direction: column; }
.fl-done__top { padding: clamp(28px, 3.6cqw, 48px); display: flex; flex-direction: column; gap: 16px; }
.fl-done__tag { display: flex; align-items: center; gap: 12px; font-size: 14px; letter-spacing: .14em; color: var(--laser-light); font-weight: 700; }
.fl-done__tag span { width: 12px; height: 12px; background: var(--laser); box-shadow: 0 0 10px rgba(255,91,31,.9); }
.fl-done__lead { font-size: clamp(26px, 3cqw, 36px); font-weight: 900; line-height: 1.4; }
.fl-done__sub { color: var(--on-dark-3); }
.fl-done__sub a { color: var(--on-dark) !important; font-weight: 700; white-space: nowrap; }
.fl-done__body { padding: clamp(24px, 3cqw, 40px); display: flex; flex-direction: column; gap: 16px; }
.fl-done__h { font-size: 14px; letter-spacing: .12em; color: var(--muted); font-weight: 700; margin-bottom: 16px; }
.fl-done__dl { display: grid; grid-template-columns: auto 1fr; border-top: 1px solid var(--ink); }
.fl-done__dl dt { padding: 12px 20px 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.fl-done__dl dd { padding: 12px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.fl-done__again {
  align-self: flex-start; display: flex; align-items: center; min-height: 52px; padding: 0 20px;
  border: 1.5px solid var(--ink); background: #fff; font-size: 16px; font-weight: 700; color: var(--ink); text-decoration: none;
}
.fl-done__again:hover { background: var(--paper); color: var(--ink); }

@media (max-width: 959px) {
  .fl-form__side .h2 br { display: none; }
}
