/* 資料請求・導入相談・オーダーメイド開発相談・お問い合わせ(contact.html)だけのスタイル。
   PCは左に説明と資料、右に入力フォーム。狭い画面は縦に並べる。色・文字・ボタンは site.css のトークンと部品を使う。 */
.inq { padding: 112px 0 clamp(72px, 9vw, 112px); background: var(--paper); color: var(--navy); }
.inq__wrap {
  width: min(1180px, 100% - var(--gutter) * 2); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: start;
}
.inq-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- 左:用件の説明と資料 ---------- */
.inq-side { position: sticky; top: 104px; padding-top: 12px; }
.inq-side__title { margin-top: 14px; font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.35; font-weight: 400; }
.inq-side__product {
  margin-top: 16px; display: inline-block; padding: 4px 14px; border-radius: 999px;
  background: rgba(0, 34, 74, .08); font-size: var(--t-s); font-weight: 500;
}
.inq-side__lead { margin-top: 16px; max-width: 30em; color: #1b2f45; line-height: 1.9; }
.inq-side__body { margin-top: 28px; }
.inq-side__links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: var(--t-s); }
.inq-side__links a { color: var(--navy); text-underline-offset: 4px; }

.inq-docs { display: grid; gap: 14px; }
.inq-doc { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 18px; align-items: center; }
.inq-doc__cover {
  aspect-ratio: 210 / 297; display: grid; align-content: space-between; padding: 12px 10px;
  border-radius: 6px; background: linear-gradient(160deg, #0b3561 0%, var(--abyss) 72%); color: var(--on-dark);
  box-shadow: 0 14px 30px -18px rgba(4, 25, 46, .7);
}
.inq-doc__cover img { width: 70%; height: auto; }
.inq-doc__cover b { font-size: 9px; font-weight: 600; line-height: 1.45; border-top: 2px solid var(--swoosh); padding-top: 6px; }
.inq-doc__text b { display: block; font-weight: 600; line-height: 1.5; }
.inq-doc__text span { display: block; margin-top: 4px; font-size: var(--t-s); color: #2a3e54; line-height: 1.75; }

.inq-points { display: grid; gap: 10px; }
.inq-points li { position: relative; padding-left: 30px; font-weight: 500; line-height: 1.7; }
.inq-points li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--current) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m5 9.4 2.6 2.5L13 6.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.inq-points--steps { counter-reset: s; }
.inq-points--steps li::before {
  counter-increment: s; content: counter(s); background: var(--navy); color: var(--paper);
  display: grid; place-items: center; font-family: var(--f-lat); font-size: 11px; line-height: 1;
}

/* ---------- 右:入力フォーム ---------- */
.inq-card { padding: clamp(22px, 3vw, 40px); border-radius: var(--radius-m); background: #fff; border: 1px solid var(--line-light); box-shadow: 0 30px 60px -40px rgba(4, 25, 46, .35); scroll-margin-top: 88px; }
.inq-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
/* 入力の案内で欄へ移るとき、固定ヘッダーの下に隠さない */
.inq-form :is(input, select, textarea) { scroll-margin-top: 140px; }

/* 用件の切り替え */
.inq-kinds__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 5px; border-radius: 999px; background: var(--paper); }
.inq-kinds .inq-chip span { width: 100%; justify-content: center; min-height: 40px; border: 0; background: none; font-size: var(--t-xs); font-weight: 600; white-space: nowrap; padding-inline: 6px; }
.inq-kinds .inq-chip input:checked + span { background: var(--navy); color: var(--paper); }

/* 進み具合 */
.inq-progress { margin-top: 22px; display: grid; grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); gap: 6px; font-size: 11px; color: var(--ink-soft); }
.inq-progress li { display: grid; gap: 6px; padding-top: 8px; border-top: 3px solid var(--line-light); line-height: 1.4; }
.inq-progress span { font-family: var(--f-lat); font-weight: 600; }
.inq-progress em { font-style: normal; }
.inq-progress .is-done { border-color: rgba(0, 34, 74, .45); }
.inq-progress .is-current { border-color: var(--current); color: var(--navy); font-weight: 600; }

/* 1段階ぶんの質問 */
.inq-step { margin-top: 26px !important; display: grid; gap: 20px; }
.inq-step__title { padding: 0; margin-bottom: 14px; font-size: var(--t-l); font-weight: 600; line-height: 1.5; outline: none; }
.inq-q { display: grid; gap: 8px; }
.inq-q__label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-weight: 600; font-size: var(--t-s); }
.inq-q__note, .inq-q__opt { font-size: 11px; font-weight: 400; color: var(--ink-soft); }
.inq-q__opt { padding: 0 8px; border-radius: 999px; border: 1px solid var(--line-light); line-height: 1.6; }
.inq-q select, .inq-q input, .inq-q textarea {
  width: 100%; min-height: 50px; padding: 10px 14px; border-radius: var(--radius-s); border: 1px solid rgba(0, 34, 74, .32);
  background: #fff; color: var(--navy); font: inherit; font-size: 1rem;
}
.inq-q select {
  appearance: none; padding-right: 42px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%2300224a' stroke-width='1.6'/%3E%3C/svg%3E") right 16px center / 12px no-repeat;
}
.inq-q textarea { min-height: 130px; resize: vertical; line-height: 1.8; }
.inq-q select:focus-visible, .inq-q input:focus-visible, .inq-q textarea:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; }
.inq-q select:user-invalid, .inq-q input:user-invalid, .inq-q textarea:user-invalid { border-color: #b3261e; }

.inq-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.inq-chip { position: relative; display: inline-flex; }
.inq-chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.inq-chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 6px 16px; border-radius: 999px;
  border: 1px solid rgba(0, 34, 74, .32); background: #fff; font-size: var(--t-s); line-height: 1.4;
}
.inq-chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.inq-chip input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
/* 製品: 5分類のボタンで絞り込み、その分類の製品だけを並べる */
.inq-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.inq-cat {
  min-height: 36px; padding: 4px 12px; border-radius: 8px; border: 1px solid var(--line-light); background: var(--paper);
  color: var(--navy); font: inherit; font-size: var(--t-xs); font-weight: 600; cursor: pointer;
}
.inq-cat[aria-pressed="true"] { background: rgba(0, 34, 74, .1); border-color: var(--navy); }
.inq-cat:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.inq-products { margin-top: 4px; }
.inq-products .inq-chips { gap: 6px; }
.inq-products .inq-chip span { min-height: 40px; padding: 4px 14px; font-size: var(--t-xs); }
.inq-q__picked { font-size: var(--t-xs); color: var(--navy); font-weight: 500; }
.inq-q__picked:empty { display: none; }

.inq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inq-consents { display: grid; gap: 12px; padding-top: 6px; }
.inq-check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--t-s); line-height: 1.7; cursor: pointer; }
.inq-check input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--navy); }
.inq-check a { color: var(--navy); text-underline-offset: 3px; }
.inq-check small { margin-left: 8px; font-size: 11px; color: var(--ink-soft); }

/* 戻る・次へ・送信 */
.inq-nav { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.inq-next { margin-left: auto; min-width: 12em; }
.inq-next:disabled { opacity: .45; cursor: default; box-shadow: none; }
.inq-back { min-height: 48px; padding: 0 18px; border: 0; background: none; color: var(--navy); font: inherit; font-size: var(--t-s); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.inq-status { margin-top: 12px; font-size: var(--t-s); color: #2a3e54; }
.inq-status:empty { display: none; }
.inq-done { padding: 24px 0; display: grid; gap: 10px; }
.inq-done__title { font-size: var(--t-xl); font-weight: 500; }
.inq-done a { color: var(--navy); text-underline-offset: 4px; }

/* ---------- 狭い画面 ---------- */
@media (max-width: 900px) {
  .inq { padding-top: 96px; }
  .inq__wrap { grid-template-columns: 1fr; gap: 24px; }
  .inq-side { position: static; padding-top: 0; }
  .inq-side__body { margin-top: 18px; }
  .inq-docs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .inq-doc { grid-template-columns: 1fr; gap: 8px; align-items: start; }
  .inq-doc__cover { aspect-ratio: 3 / 2; padding: 8px; }
  .inq-doc__cover img { width: 56%; }
  .inq-doc__cover b { display: none; }
  .inq-doc__text span { display: none; }
  .inq-doc__text b { font-size: var(--t-xs); }
  .inq-points { gap: 6px; }
}
@media (max-width: 560px) {
  .inq-kinds__list { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: var(--radius-m); }
  /* 段階の名前は直下の見出しと同じなので、狭い画面では番号と線だけにする */
  .inq-progress em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .inq-next { min-width: 0; flex: 1; }
}
