/* =========================================================
   研修見積ナビ — 下層ページ用コンポーネント
   style.css の後に読み込む
   ========================================================= */

/* ---------- ページヘッダ ---------- */
.page-hero {
  background: linear-gradient(180deg, #f2f7fb 0%, #e7f0f8 100%);
  border-bottom: 1px solid var(--line);
  padding: clamp(30px, 4vw, 46px) 0 clamp(26px, 3.4vw, 38px);
}
.page-hero h1 {
  font-size: clamp(23px, 3.2vw, 33px); font-weight: 900;
  letter-spacing: .03em; color: var(--ink-900); line-height: 1.45;
}
.page-hero .eyebrow { margin-top: 10px; text-align: left; }
.page-hero .page-lead {
  margin-top: 16px; max-width: 74ch;
  font-size: 14.5px; line-height: 2; font-weight: 500; color: var(--text);
}

/* ---------- パンくず ---------- */
.breadcrumb { background: #fff; border-bottom: 1px solid var(--line-soft); }
.breadcrumb ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0; padding: 11px 0; list-style: none;
  font-size: 11.5px; color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #c2ccd6; }
.breadcrumb [aria-current] { color: var(--ink-800); font-weight: 700; }

/* ---------- 本文（記事・規約） ---------- */
.prose { max-width: 760px; }
.prose h2 {
  margin: 46px 0 16px; padding-left: 14px;
  font-size: clamp(18px, 2.2vw, 21px); font-weight: 900;
  color: var(--ink-800); line-height: 1.55;
  border-left: 4px solid var(--blue);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 30px 0 12px; font-size: 16px; font-weight: 700; color: var(--blue-dark); }
.prose p { margin: 0 0 16px; font-size: 14.5px; line-height: 2.05; color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: 7px 0; font-size: 14.5px; line-height: 1.95; color: var(--ink); }
.prose li::marker { color: var(--blue); }
.prose strong { font-weight: 700; color: var(--ink-900); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose > :last-child { margin-bottom: 0; }

/* ---------- 表 ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--line-card); border-radius: 6px; background: #fff; }
table.data { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 13.5px; line-height: 1.8; }
table.data th, table.data td {
  padding: 12px 16px; border-bottom: 1px solid var(--line-card);
  text-align: left; vertical-align: top; color: var(--ink);
}
table.data thead th { background: #eef4f9; font-weight: 700; color: var(--ink-800); white-space: nowrap; }
table.data tbody th { background: #f7fafc; font-weight: 700; width: 27%; }
table.data tr:last-child th, table.data tr:last-child td { border-bottom: 0; }
table.data td.num, table.data th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.data tr.em td, table.data tr.em th { background: #eaf4fd; font-weight: 700; }
.table-note { margin: -12px 0 24px; font-size: 11.5px; line-height: 1.8; color: var(--note); }

/* ---------- 注記ボックス ---------- */
.notice {
  border: 1px solid #cfe3f3; border-left: 4px solid var(--blue);
  background: #f4f9fd; border-radius: 4px;
  padding: 16px 20px; margin: 0 0 22px;
}
.notice h3 { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--blue-dark); }
.notice p, .notice li { font-size: 13px; line-height: 1.95; color: var(--ink-800); margin: 0 0 6px; }
.notice > :last-child { margin-bottom: 0; }
.notice ul { margin: 0; padding-left: 1.3em; list-style: disc; }
.notice-warn { border-color: #f0dcc0; border-left-color: #d79a3c; background: #fdf8f1; }
.notice-warn h3 { color: #9d6a17; }

/* ---------- カラム・パネル ---------- */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.cols-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.panel { background: #fff; border: 1px solid var(--line-card); border-radius: var(--radius); padding: 24px 24px 26px; }
.panel h3 { margin: 0 0 12px; font-size: 16px; font-weight: 700; color: var(--ink-800); }
.panel p { font-size: 13.5px; line-height: 1.95; color: var(--muted); margin: 0 0 10px; }
.panel ul { margin: 0; padding-left: 1.25em; list-style: disc; }
.panel li { font-size: 13.5px; line-height: 1.9; color: var(--muted); margin: 6px 0; }
.panel li::marker { color: var(--blue); }
.panel > :last-child { margin-bottom: 0; }
.panel-accent { border-top: 4px solid var(--blue); }
.panel-gray { background: #f7fafc; }

/* ---------- 縦ステップ ---------- */
.steps { counter-reset: step; display: flex; flex-direction: column; }
.step-item { position: relative; counter-increment: step; padding: 0 0 34px 74px; }
.step-item::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--blue-dark); color: #fff;
  font-family: Barlow, sans-serif; font-size: 19px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step-item::after {
  content: ""; position: absolute; left: 24px; top: 58px; bottom: 8px;
  width: 2px; background: #d5e4f0;
}
.step-item:last-child { padding-bottom: 0; }
.step-item:last-child::after { display: none; }
.step-item h3 { margin: 8px 0 10px; font-size: 17px; font-weight: 700; color: var(--ink-800); }
.step-item p { font-size: 14px; line-height: 1.95; color: var(--muted); margin: 0 0 10px; }
.step-item ul { margin: 0; padding-left: 1.25em; list-style: disc; }
.step-item li { font-size: 13.5px; line-height: 1.9; color: var(--muted); margin: 5px 0; }
.step-item li::marker { color: var(--blue); }
.step-item .step-meta {
  display: inline-block; margin-bottom: 2px; padding: 3px 12px; border-radius: 3px;
  background: #eaf4fd; color: var(--blue-dark); font-size: 11.5px; font-weight: 700;
}

/* ---------- カテゴリ詳細 ---------- */
.cat-detail {
  display: grid; grid-template-columns: 280px 1fr; gap: 26px;
  background: #fff; border: 1px solid var(--line-card); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 22px;
}
.cat-detail img { width: 100%; height: 100%; min-height: 190px; object-fit: cover; }
.cat-detail-body { padding: 24px 26px 26px 0; }
.cat-detail h3 { margin: 0 0 6px; font-size: 18px; font-weight: 900; color: var(--ink-800); }
.cat-detail .cat-target { font-size: 12px; font-weight: 700; color: var(--cyan); margin-bottom: 12px; }
.cat-detail p { font-size: 13.5px; line-height: 1.95; color: var(--muted); margin: 0 0 12px; }
.cat-detail .cat-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-detail .cat-tags span {
  padding: 4px 12px; border: 1px solid var(--line-btn); border-radius: 3px;
  font-size: 11.5px; color: var(--text); background: #fafcfe;
}
@media (max-width: 719px) {
  .cat-detail { grid-template-columns: 1fr; }
  .cat-detail img { min-height: 0; aspect-ratio: 16 / 7; }
  .cat-detail-body { padding: 20px 22px 24px; }
}

/* ---------- フォーム ---------- */
.container-form { max-width: 840px; }
.form { max-width: none; }
.field { margin-bottom: 26px; }
.field > label, .field > .field-label {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-bottom: 9px; font-size: 14px; font-weight: 700; color: var(--ink-800);
}
.req, .opt { padding: 2px 9px; border-radius: 3px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; }
.req { background: #d33327; color: #fff; }
.opt { background: #eef2f6; color: var(--muted); }
.field .hint { margin: -3px 0 9px; font-size: 12px; line-height: 1.8; color: var(--muted); }
.field input[type=text], .field input[type=email], .field input[type=tel],
.field select, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line-btn); border-radius: 4px;
  font-family: inherit; font-size: 14.5px; color: var(--ink); background: #fff;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.8; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid #9ecdf0; outline-offset: 1px; border-color: var(--blue);
}
.choices { display: flex; flex-direction: column; gap: 10px; }
.choice {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--line-btn); border-radius: 5px;
  background: #fff; cursor: pointer; font-size: 14px; line-height: 1.7; color: var(--ink);
  transition: border-color .16s, background .16s;
}
.choice:hover { border-color: var(--blue); background: #f7fbfe; }
.choice input { margin-top: 3px; accent-color: var(--blue-dark); flex: 0 0 auto; }
.choice-text b { display: block; font-weight: 700; margin-bottom: 3px; }
.choice-text small { display: block; font-size: 12px; color: var(--muted); line-height: 1.75; }
.choices-inline { display: flex; flex-wrap: wrap; gap: 10px; }
.choices-inline .choice { flex: 0 1 auto; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.form-submit { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.btn-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-width: 290px; height: 60px; padding: 0 30px; border: 0; border-radius: 5px;
  background: var(--blue-dark); color: #fff; font-size: 16px; font-weight: 700;
  cursor: pointer; box-shadow: 0 2px 6px rgba(13, 82, 150, .25); transition: background .18s;
}
.btn-submit:hover { background: var(--blue-darker); }
.form-status { font-size: 13.5px; line-height: 1.8; color: var(--blue-dark); font-weight: 700; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #d33327; }
.field .error-msg { display: none; margin-top: 7px; font-size: 12.5px; font-weight: 700; color: #c22a21; }
.field.has-error .error-msg { display: block; }

/* ---------- 記事 ---------- */
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin-top: 16px; font-size: 12.5px; color: var(--muted);
}
.article-meta .tag {
  padding: 4px 12px; border-radius: 3px; background: var(--blue); color: #fff;
  font-size: 11px; font-weight: 700;
}
.toc { border: 1px solid var(--line-card); border-radius: 6px; background: #f7fafc; padding: 20px 24px; margin: 0 0 34px; }
.toc h2 { margin: 0 0 12px !important; padding: 0 !important; border: 0 !important; font-size: 15px !important; }
.toc ol { margin: 0; padding-left: 1.3em; }
.toc li { margin: 6px 0; font-size: 13.5px; }

/* ---------- 汎用 ---------- */
.section-sm { padding: clamp(30px, 3.6vw, 44px) 0; }
.lead-center { max-width: 74ch; margin: 0 auto 34px; text-align: center; font-size: 14.5px; line-height: 2; color: var(--text); }
.center { text-align: center; }
.mt-lg { margin-top: 40px; }
.stack > * + * { margin-top: 22px; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.updated { font-size: 12px; color: var(--note); }
.placeholder-val { background: #fff6da; padding: 1px 6px; border-radius: 3px; color: #8a6414; font-weight: 700; }
