/* 商品の税率設定チェックの画面。トップページ（app/routes/_index/styles.module.css）と同じ規律で作る:
 * 角丸は 4px だけ、枠は使わず 1px の罫線で区切る、見出しは細字で大きく、差し色は滲ませるだけ。 */
/* WCAG 2.2 1.4.3 contrast on white:
 * navy 16.59:1 / text-secondary 9.03:1 / muted 4.83:1
 * gold is used as a filled CTA with navy text for 8.84:1 contrast.
 */

:root {
  --font-public: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  --navy: #0e1e3a;
  --navy-2: #1a2332;
  --text-secondary: #3d4a5a;
  --text-muted: #6b7280;
  --bg-tint: #f6f8fb;
  --public-border: #d8dee8;
  --success: #00876a;
  --success-text: #006b4f;
  --gold: #f5b04a;
  --gold-strong: #f2a52f;
  --gold-soft: #fff7e6;
  --gold-border: #f1d59b;
  --focus: #005bd3;
  --danger: #b42318;
}

._page_9254t_5 {
  font-family: var(--font-public);
  color: var(--navy);
  line-height: 1.75;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

._page_9254t_5 * {
  box-sizing: border-box;
}

._page_9254t_5 p,
._page_9254t_5 li,
._summary_9254t_19 {
  word-break: auto-phrase;
  text-wrap: pretty;
  line-break: strict;
}

._heading_9254t_25,
._h2_9254t_26,
._eyebrow_9254t_27,
._lbl_9254t_28,
._productName_9254t_29,
._issueHeading_9254t_30,
._ctaHeading_9254t_31 {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

._inner_9254t_36 {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
}

._page_9254t_5 a:focus-visible,
._page_9254t_5 button:focus-visible,
._page_9254t_5 input:focus-visible,
._dropzone_9254t_45:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

._lbl_9254t_28 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-strong);
}

._h2_9254t_26 {
  margin: 14px 0 0;
  font-size: 34px;
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.018em;
}

/* ============ hero ============ */
._hero_9254t_68 {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
}

._heroInner_9254t_74 {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

._eyebrow_9254t_27 {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

._heading_9254t_25 {
  margin: 20px 0 0;
  font-size: 50px;
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.024em;
}

._lead_9254t_95 {
  margin: 26px 0 0;
  max-width: 580px;
  font-size: 18px;
  line-height: 1.85;
  color: var(--text-secondary);
}

._facts_9254t_103 {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin: 64px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid #e5e7eb;
  list-style: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

._facts_9254t_103 li + li::before {
  content: "・";
  margin-right: 22px;
  color: #c8d0dc;
}

/* ============ ファイルを選ぶ面 ============ */
._tool_9254t_126 {
  padding: 80px 0 96px;
  background-color: var(--bg-tint);
  background-image: radial-gradient(
    circle at 1px 1px,
    #e5e7eb 1px,
    transparent 0
  );
  background-size: 24px 24px;
  border-top: 1px solid #eef1f6;
}

._toolGrid_9254t_138 {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}

._steps_9254t_145 {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

._step_9254t_145 {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid #e5e7eb;
  counter-increment: step;
}

._step_9254t_145:last-child {
  border-bottom: 1px solid #e5e7eb;
}

._step_9254t_145::before {
  content: counter(step, decimal-leading-zero);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-strong);
  line-height: 1.9;
}

._stepTitle_9254t_174 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

._stepBody_9254t_180 {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-secondary);
}

._panel_9254t_187 {
  padding: 36px;
  background: #fff;
  border: 1px solid var(--public-border);
  border-radius: 4px;
  box-shadow: 0 18px 48px -32px rgba(14, 30, 58, 0.35);
}

._dropzone_9254t_45 {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 40px 24px;
  border: 1px dashed #b8c2d2;
  border-radius: 4px;
  background: #fbfcfe;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
}

._dropzone_9254t_45:hover,
._dropzoneActive_9254t_212 {
  border-color: var(--navy);
  background: var(--gold-soft);
}

/* input は枠全体に重ねて透明にし、クリックとキーボード操作を input に任せる */
._fileInput_9254t_218 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

._dropIcon_9254t_227 {
  width: 36px;
  height: 36px;
  color: var(--navy);
}

._dropTitle_9254t_233 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

._dropHint_9254t_239 {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

._fileName_9254t_245 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--success-text);
  word-break: break-all;
}

._textLink_9254t_253 {
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

._altInput_9254t_264 {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

._altInput_9254t_264 ._textLink_9254t_253 {
  margin-left: 0.5em;
}

._textLink_9254t_253:disabled {
  cursor: not-allowed;
}

._pasteInput_9254t_278 {
  display: grid;
  justify-items: start;
  gap: 8px;
}

._pasteTextarea_9254t_284 {
  box-sizing: border-box;
  width: 100%;
  min-height: 180px;
  padding: 12px;
  border: 1px solid #b8c2d2;
  border-radius: 4px;
  background: #fbfcfe;
  color: var(--navy);
  font: inherit;
  font-size: 14px;
  resize: vertical;
}

._pasteTextarea_9254t_284::-moz-placeholder {
  color: var(--text-muted);
  opacity: 1;
}

._pasteTextarea_9254t_284::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

/*
 * 高さを確保しない。非表示の設定の鍵では確認欄が高さ 0 になり、確保した分が空白だけ残る。
 * 表示の有無で余白を分けたいが、確認欄の中身は外から見えない（:has(iframe) が効かない）。
 */
._verify_9254t_307 {
  margin-top: 12px;
}

._actions_9254t_311 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

._btnPrimary_9254t_318 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border: none;
  border-radius: 4px;
  background: var(--navy);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

._btnPrimary_9254t_318:hover:not(:disabled) {
  background: #0a1730;
}

._btnPrimary_9254t_318:disabled {
  background: #9aa6b8;
  cursor: not-allowed;
}

._actionHint_9254t_343 {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

._notices_9254t_349 {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

._notice_9254t_349 {
  padding: 12px 16px;
  border-left: 3px solid var(--gold);
  background: var(--gold-soft);
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
}

._error_9254t_366 {
  margin: 20px 0 0;
  padding: 12px 16px;
  border-left: 3px solid var(--danger);
  background: #fef3f2;
  font-size: 14px;
  line-height: 1.75;
  color: var(--danger);
}

._progress_9254t_376 {
  margin-top: 24px;
}

._progressLabel_9254t_380 {
  display: flex;
  justify-content: space-between;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

._progressTrack_9254t_389 {
  height: 4px;
  border-radius: 4px;
  background: #e5e7eb;
  overflow: hidden;
}

._progressBar_9254t_396 {
  height: 100%;
  background: var(--navy);
  transition: width 0.4s ease;
}

/* ============ 結果 ============ */
._result_9254t_403 {
  padding: 88px 0 96px;
}

._summary_9254t_19 {
  margin: 14px 0 0;
  font-size: 34px;
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.018em;
}

._summaryCount_9254t_415 {
  font-weight: 500;
}

._failed_9254t_419 {
  margin: 32px 0 0;
  padding: 16px 20px;
  border-left: 3px solid var(--danger);
  background: #fef3f2;
  font-size: 15px;
  line-height: 1.8;
  color: var(--navy);
}

._products_9254t_429 {
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

._product_9254t_29 {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 40px;
  padding: 28px 0;
  border-top: 1px solid #e5e7eb;
}

._product_9254t_29:last-child {
  border-bottom: 1px solid #e5e7eb;
}

._productName_9254t_29 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}

._setting_9254t_454 {
  display: inline-block;
  margin: 10px 0 0;
  padding: 2px 10px;
  border: 1px solid var(--public-border);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

._issues_9254t_465 {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

._issueHead_9254t_30 {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

._tag_9254t_479 {
  flex-shrink: 0;
  padding: 1px 8px;
  border: 1px solid var(--gold-border);
  border-radius: 4px;
  background: var(--gold-soft);
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
}

._issueHeading_9254t_30 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
}

._evidence_9254t_497 {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text-secondary);
}

._evidence_9254t_497 mark {
  padding: 0 2px;
  background: linear-gradient(transparent 60%, var(--gold-soft) 60%);
  color: var(--navy);
  font-weight: 700;
}

._qaLink_9254t_510 {
  display: inline-block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 1px;
  text-decoration: none;
}

._qaLink_9254t_510:hover {
  color: var(--focus);
  border-color: var(--focus);
}

._empty_9254t_526 {
  margin: 40px 0 0;
  padding: 28px 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  font-size: 16px;
  color: var(--text-secondary);
}

._disclaimer_9254t_535 {
  margin: 40px 0 0;
  max-width: 720px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-muted);
}

/* ============ 暗い面：Journify への導線 ============ */
._cta_9254t_31 {
  position: relative;
  overflow: hidden;
  padding: 112px 0 104px;
  background: linear-gradient(180deg, #001027 0%, #00040b 55%, #001027 100%);
}

._ctaSpot_9254t_551 {
  position: absolute;
  right: -10%;
  top: -24%;
  width: 46%;
  height: 72%;
  pointer-events: none;
  filter: blur(70px);
  background: radial-gradient(
    50% 50%,
    rgba(0, 91, 211, 0.34) 36%,
    rgba(0, 91, 211, 0) 100%
  );
}

._ctaInner_9254t_566 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

._ctaInner_9254t_566 ._lbl_9254t_28 {
  color: var(--gold);
}

._ctaHeading_9254t_31 {
  margin: 14px 0 0;
  font-size: 38px;
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.018em;
  color: #fff;
}

._ctaLead_9254t_587 {
  margin: 22px auto 0;
  max-width: 620px;
  font-size: 17px;
  line-height: 1.9;
  color: #b7c3d8;
}

._btnGold_9254t_595 {
  display: inline-flex;
  align-items: center;
  height: 48px;
  margin-top: 36px;
  padding: 0 26px;
  border-radius: 4px;
  background: var(--gold);
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

._btnGold_9254t_595:hover {
  background: var(--gold-strong);
}

/* ============ 1024px 以下 ============ */
@media (max-width: 1024px) {
  ._inner_9254t_36 {
    padding: 0 40px;
  }

  ._toolGrid_9254t_138 {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

/* ============ 720px 以下 ============ */
@media (max-width: 720px) {
  ._inner_9254t_36 {
    padding: 0 20px;
  }

  ._hero_9254t_68 {
    padding: 48px 0 44px;
  }

  /* PC の改行位置（意味の区切り）は 375px でも保つ。行が溢れないよう字を詰める */
  ._heading_9254t_25 {
    font-size: 26px;
    line-height: 1.42;
    letter-spacing: -0.02em;
  }

  ._lead_9254t_95 {
    font-size: 16px;
  }

  ._facts_9254t_103 {
    margin-top: 40px;
    flex-direction: column;
    align-items: flex-start;
  }

  ._facts_9254t_103 li + li::before {
    content: none;
  }

  ._tool_9254t_126,
  ._result_9254t_403 {
    padding: 56px 0 64px;
  }

  ._h2_9254t_26,
  ._summary_9254t_19 {
    font-size: 26px;
  }

  ._panel_9254t_187 {
    padding: 22px;
  }

  ._actions_9254t_311 {
    flex-direction: column;
    align-items: stretch;
  }

  ._product_9254t_29 {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 24px 0;
  }

  ._cta_9254t_31 {
    padding: 72px 0 64px;
  }

  ._ctaHeading_9254t_31 {
    font-size: 28px;
  }
}
