/* ============================================================
   下層ページ共通（front-page.css の hp- 部品と組み合わせて使う）
   ============================================================ */
#main.pg { padding-top: 122px; }
:where(.pg) ol, :where(.pg) ul { margin: 0; padding: 0; list-style: none; }
.pg ol { margin-left: 0; }
.pg ol li { margin-bottom: 0; }
:where(.pg) h1, :where(.pg) h2, :where(.pg) h3, :where(.pg) h4 { font-family: inherit; }

/* ---------- ページヒーロー ---------- */
.pg-hero {
  position: relative;
  padding: 0;
  background-color: var(--hp-pale);
  background-image:
    linear-gradient(var(--hp-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hp-line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  border-bottom: 1px solid var(--hp-line);
  overflow: hidden;
}
.pg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--hp-pale) 35%, rgba(243,246,251,.55) 70%, rgba(243,246,251,.2));
}
.pg-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 48px;
  padding: 40px 0 64px;
  min-height: 340px;
}
.pg-hero--compact .pg-hero__inner { grid-template-columns: 1fr; min-height: 0; padding: 40px 0 56px; }
.pg-bc { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--hp-muted); margin: 0 0 40px; }
.pg-bc a { color: var(--hp-blue) !important; }
.pg-bc span[aria-hidden] { color: #9aabc2; }
.pg-hero__en { font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--hp-blue); margin: 0 0 14px; }
.pg-hero__title {
  font-size: clamp(32px, 4.2vw, 54px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .02em;
  color: var(--hp-navy);
  margin: 0;
}
.pg-hero__lead { font-size: 16px; color: var(--hp-muted); margin: 24px 0 0; max-width: 620px; }
.pg-hero__art svg { width: 100%; max-width: 460px; height: auto; display: block; margin-left: auto; }

/* ---------- セクション ---------- */
.pg-section { padding: 112px 0; }
.pg-section--pale { background: var(--hp-pale); }
.pg-section + .pg-section:not(.pg-section--pale) { border-top: 1px solid var(--hp-line); }
.hp-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- 汎用カード ---------- */
.pg-card {
  background: #fff;
  border: 1px solid var(--hp-line);
  border-radius: 16px;
  padding: 36px;
}
.pg-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #eaf1fb;
  color: var(--hp-navy);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.pg-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- ページ下CTA ---------- */
.pg-cta { background: var(--hp-navy); color: #fff; padding: 88px 0; }
.pg-cta__inner { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.pg-cta__title { font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; line-height: 1.5; margin: 0 0 12px; color: #fff; }
.pg-cta__text { font-size: 15px; color: rgba(255,255,255,.78); margin: 0; }
.pg-cta__actions { display: flex; flex-direction: column; gap: 14px; min-width: 320px; }
.pg-cta__tel { display: flex; align-items: center; gap: 12px; color: #fff !important; }
.pg-cta__tel strong { font-size: 26px; letter-spacing: .04em; }
.pg-cta__tel small { display: block; font-size: 12px; color: rgba(255,255,255,.7); }
.pg-cta__tel svg { width: 26px; height: 26px; fill: none; stroke: var(--hp-yellow); stroke-width: 2; }

/* ============================================================
   会社概要
   ============================================================ */
.co-mission { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.co-mission__copy { font-size: clamp(30px, 3.6vw, 48px); font-weight: 700; color: var(--hp-navy); line-height: 1.4; margin: 0 0 28px; }
.co-mission__copy em { font-style: normal; background: linear-gradient(transparent 62%, var(--hp-yellow) 62%); }
.co-mission__text { font-size: 15px; color: var(--hp-muted); margin: 0; line-height: 2; }
.co-mission__img img { border-radius: 16px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.co-facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--hp-line); border-radius: 16px; background: #fff; margin-top: 80px; }
.co-fact { padding: 32px 24px; text-align: center; }
.co-fact + .co-fact { border-left: 1px solid var(--hp-line); }
.co-fact__num { font-size: 40px; font-weight: 700; color: var(--hp-navy); line-height: 1.2; margin: 0 0 6px; letter-spacing: .02em; }
.co-fact__num small { font-size: 16px; margin-left: 4px; }
.co-fact__label { font-size: 13px; color: var(--hp-muted); margin: 0; }

.co-biz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.co-biz__item { display: flex; flex-direction: column; gap: 18px; transition: border-color .2s, box-shadow .2s; }
.co-biz__item:hover { border-color: #b9cbe6; box-shadow: 0 16px 40px rgba(15,60,128,.08); }
.co-biz__item h3 { font-size: 20px; font-weight: 700; color: var(--hp-navy); margin: 0; }
.co-biz__item p { font-size: 14px; color: var(--hp-muted); margin: 0; flex-grow: 1; }

.co-table { border-top: 2px solid var(--hp-navy); }
.co-table__row { display: grid; grid-template-columns: 220px 1fr; border-bottom: 1px solid var(--hp-line); }
.co-table__row dt { font-weight: 700; color: var(--hp-navy); padding: 24px 24px; background: #f8fafd; font-size: 15px; }
.co-table__row dd { margin: 0; padding: 24px 28px; font-size: 15px; line-height: 1.9; }
.co-table__row dd ul li { position: relative; padding-left: 18px; }
.co-table__row dd ul li::before { content: ""; position: absolute; left: 0; top: .8em; width: 7px; height: 7px; border-radius: 50%; background: var(--hp-blue); }
.co-partners { display: flex; flex-wrap: wrap; gap: 8px; }
.co-partners li { background: var(--hp-pale); border: 1px solid var(--hp-line); border-radius: 999px; padding: 4px 14px; font-size: 14px; }
.co-note { font-size: 12px; color: var(--hp-muted); margin: 8px 0 0; }

.co-strategy__lead { max-width: 820px; margin: 0 auto 56px; font-size: 15px; color: var(--hp-muted); text-align: center; line-height: 2; }
.co-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: pillar; }
.co-pillar { background: #fff; border: 1px solid var(--hp-line); border-radius: 14px; padding: 28px 24px; position: relative; }
.co-pillar__num { position: absolute; top: 22px; right: 22px; font-size: 13px; font-weight: 700; letter-spacing: .1em; color: #9aabc2; }
.co-pillar h3 { font-size: 17px; font-weight: 700; color: var(--hp-navy); margin: 20px 0 6px; }
.co-pillar p { font-size: 13px; color: var(--hp-muted); margin: 0; }
.co-pillar--center { background: var(--hp-navy); border-color: var(--hp-navy); display: flex; flex-direction: column; justify-content: center; }
.co-pillar--center p { color: rgba(255,255,255,.85); font-size: 14px; }
.co-pillar--center strong { display: block; color: var(--hp-yellow); font-size: 22px; margin-bottom: 8px; }

.co-offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.co-office { background: #fff; border: 1px solid var(--hp-line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.co-office__map { aspect-ratio: 4 / 3; background: var(--hp-pale); }
.co-office__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.co-office__body { padding: 28px; }
.co-office__tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--hp-navy); background: var(--hp-yellow); border-radius: 4px; padding: 2px 10px; margin: 0 0 12px; }
.co-office h3 { font-size: 20px; font-weight: 700; color: var(--hp-navy); margin: 0 0 16px; }
.co-office dl { margin: 0; font-size: 14px; }
.co-office dt { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--hp-text); margin-top: 12px; }
.co-office dt svg { width: 18px; height: 18px; fill: none; stroke: var(--hp-blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.co-office dd { margin: 4px 0 0 26px; color: var(--hp-muted); line-height: 1.8; }

/* ============================================================
   サービス一覧
   ============================================================ */
.sv-match { display: grid; gap: 16px; max-width: 980px; margin: 0 auto; }
.sv-match__row {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  align-items: center;
  background: #fff;
  border: 1px solid var(--hp-line);
  border-radius: 14px;
  padding: 22px 28px;
  transition: border-color .2s, box-shadow .2s;
}
.sv-match__row:hover { border-color: #b9cbe6; box-shadow: 0 12px 32px rgba(15,60,128,.08); }
.sv-match__issue { display: flex; align-items: center; gap: 14px; font-weight: 700; color: var(--hp-text); font-size: 16px; }
.sv-match__issue::before { content: "?"; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #eaf1fb; color: var(--hp-blue); font-size: 14px; flex-shrink: 0; }
.sv-match__arrow { text-align: center; color: var(--hp-blue); font-size: 20px; }
.sv-match__svc { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sv-match__svc strong { color: var(--hp-navy); font-size: 17px; }
.sv-match__svc strong + span { font-size: 13px; color: var(--hp-muted); display: block; font-weight: 400; }
.sv-match__issue { margin: 0; }
.sv-match__go { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--hp-navy); color: #fff; display: grid; place-items: center; font-size: 14px; }

/* ============================================================
   お問い合わせ
   ============================================================ */
.ct-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0 0 64px; counter-reset: ct; }
.ct-step { position: relative; display: flex; align-items: center; gap: 16px; padding: 20px 28px; background: #fff; border: 1px solid var(--hp-line); }
.ct-step:first-child { border-radius: 14px 0 0 14px; }
.ct-step:last-child { border-radius: 0 14px 14px 0; }
.ct-step + .ct-step { border-left: 0; }
.ct-step__num { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--hp-blue); display: block; }
.ct-step strong { color: var(--hp-navy); font-size: 16px; }
.ct-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.ct-form { background: #fff; border: 1px solid var(--hp-line); border-radius: 16px; padding: 48px 40px; }
.ct-form__note { font-size: 14px; color: var(--hp-muted); margin: 0 0 8px; }
.ct-form__note strong { color: var(--hp-text); }
.ct-form form { max-width: none; padding: 0; }
.ct-form input[type="text"], .ct-form input[type="email"], .ct-form input[type="tel"], .ct-form input[type="url"], .ct-form textarea {
  border: 1px solid var(--hp-line) !important;
  border-radius: 8px !important;
  background: #f8fafd !important;
}
.ct-form input[type="submit"] {
  background: var(--hp-navy) !important;
  color: #fff !important;
  border-radius: 6px !important;
  min-height: 60px;
  padding: 0 48px !important;
  font-weight: 700;
  letter-spacing: .06em;
  border: 0 !important;
}
.ct-form input[type="submit"]:hover { background: var(--hp-navy-deep) !important; }
.ct-side { display: grid; gap: 20px; position: sticky; top: 150px; }
.ct-side__box { background: #fff; border: 1px solid var(--hp-line); border-radius: 16px; padding: 28px; }
.ct-side__box h3 { font-size: 16px; font-weight: 700; color: var(--hp-navy); margin: 0 0 16px; }
.ct-side__box--navy { background: var(--hp-navy); border-color: var(--hp-navy); color: #fff; }
.ct-side__box--navy h3 { color: #fff; }
.ct-side__tel { display: block; font-size: 28px; font-weight: 700; color: var(--hp-yellow) !important; letter-spacing: .04em; }
.ct-side__box--navy p { font-size: 13px; color: rgba(255,255,255,.75); margin: 4px 0 0; }
.ct-topics { display: grid; gap: 14px; }
.ct-topics li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.ct-topics .pg-icon { width: 40px; height: 40px; border-radius: 10px; }
.ct-topics .pg-icon svg { width: 20px; height: 20px; }
.ct-topics strong { display: block; color: var(--hp-navy); }
.ct-topics span { color: var(--hp-muted); font-size: 13px; }

/* ============================================================
   プライバシーポリシー
   ============================================================ */
.pv-layout { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.pv-toc { position: sticky; top: 150px; background: #fff; border: 1px solid var(--hp-line); border-radius: 14px; padding: 24px; }
.pv-toc p { font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--hp-blue); margin: 0 0 12px; }
.pv-toc li + li { border-top: 1px solid var(--hp-line); }
.pv-toc a { display: block; padding: 10px 0; font-size: 14px; color: var(--hp-navy) !important; font-weight: 700; }
.pv-body { background: #fff; border: 1px solid var(--hp-line); border-radius: 16px; padding: 56px; font-size: 15px; line-height: 2; }
.pv-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--hp-muted); padding: 0 0 28px; margin: 0 0 32px; border-bottom: 1px solid var(--hp-line); }
.pv-body h2 { font-size: 24px; font-weight: 700; color: var(--hp-navy); margin: 0 0 20px; }
.pv-body h3, .pv-body h4 {
  font-size: 19px;
  font-weight: 700;
  color: var(--hp-navy);
  margin: 56px 0 16px;
  padding: 0 0 12px;
  border-bottom: 2px solid var(--hp-line);
  scroll-margin-top: 140px;
}
.pv-body p { margin: 0 0 12px; }
.pv-body ol { counter-reset: pv; margin: 20px 0; display: grid; gap: 12px; }
.pv-body ol li { counter-increment: pv; position: relative; padding: 16px 20px 16px 60px; background: var(--hp-pale); border-radius: 10px; list-style: none; }
.pv-body ol li::before { content: counter(pv); position: absolute; left: 18px; top: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--hp-navy); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.pv-contact { margin-top: 48px; padding: 28px; border: 1px solid var(--hp-line); border-radius: 12px; background: #f8fafd; }

/* ============================================================
   ブログ
   ============================================================ */
.bl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.bl-card { display: flex; flex-direction: column; }
.bl-card__thumb { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--hp-pale); border: 1px solid var(--hp-line); }
.bl-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.bl-card:hover .bl-card__thumb img { transform: scale(1.04); }
.bl-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 18px 0 8px; font-size: 12px; color: var(--hp-muted); }
.bl-card__cat { font-weight: 700; color: var(--hp-blue); background: #eaf1fb; border-radius: 4px; padding: 2px 8px; }
.bl-card__title { font-size: 17px; font-weight: 700; line-height: 1.6; margin: 0; }
.bl-card__title a { color: var(--hp-navy) !important; }
.bl-card:hover .bl-card__title a { text-decoration: underline; text-underline-offset: 4px; }
.bl-pager { margin-top: 72px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.bl-pager .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: grid; place-items: center; border: 1px solid var(--hp-line); border-radius: 8px; color: var(--hp-navy) !important; font-weight: 700; background: #fff; }
.bl-pager .page-numbers.current { background: var(--hp-navy); border-color: var(--hp-navy); color: #fff !important; }
.bl-pager .page-numbers.dots { border: 0; background: none; }

.bl-article { max-width: 860px; margin: 0 auto; }
.bl-article__head { margin-bottom: 40px; }
.bl-article__title { font-size: clamp(24px, 2.8vw, 36px); font-weight: 700; line-height: 1.5; color: var(--hp-navy); margin: 0 0 16px; }
.bl-article__meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 13px; color: var(--hp-muted); }
.bl-article__meta a { font-weight: 700; color: var(--hp-blue) !important; background: #eaf1fb; border-radius: 4px; padding: 2px 8px; }
.bl-article__thumb img { width: 100%; height: auto; border-radius: 16px; margin-bottom: 40px; }
.bl-back { text-align: center; margin-top: 72px; }

/* ============================================================
   レスポンシブ
   ============================================================ */
@media screen and (max-width: 1024px) {
  .pg-hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .pg-hero__art { display: none; }
  .co-mission { grid-template-columns: 1fr; gap: 40px; }
  .co-pillars { grid-template-columns: repeat(2, 1fr); }
  .co-offices, .co-biz { grid-template-columns: 1fr; }
  .co-office { display: grid; grid-template-columns: 1fr 1fr; }
  .co-office__map { aspect-ratio: auto; min-height: 260px; }
  .ct-layout, .pv-layout { grid-template-columns: 1fr; }
  .ct-side, .pv-toc { position: static; }
  .bl-grid { grid-template-columns: repeat(2, 1fr); }
  .pg-cta__inner { grid-template-columns: 1fr; }
}
@media screen and (max-width: 768px) {
  #main.pg { padding-top: 70px; }
  .pg-hero__inner { padding: 28px 0 48px; gap: 0; }
  .pg-bc { margin-bottom: 28px; font-size: 12px; }
  .pg-hero__title { font-size: clamp(26px, 7.4vw, 34px); }
  .pg-hero__lead { font-size: 14px; }
  .pg-section { padding: 72px 0; }
  .pg-card { padding: 28px 22px; }
  .pg-cta { padding: 64px 0; }
  .pg-cta__actions { min-width: 0; }
  .co-facts { grid-template-columns: 1fr 1fr; margin-top: 48px; }
  .co-fact:nth-child(3) { border-left: 0; }
  .co-fact:nth-child(n+3) { border-top: 1px solid var(--hp-line); }
  .co-fact__num { font-size: 30px; }
  .co-table__row { grid-template-columns: 1fr; }
  .co-table__row dt { padding: 14px 16px; }
  .co-table__row dd { padding: 16px 16px 20px; font-size: 14px; }
  .co-pillars { grid-template-columns: 1fr; }
  .co-office { display: flex; }
  .co-office__map { aspect-ratio: 4 / 3; min-height: 0; }
  .sv-match__row { grid-template-columns: 1fr; gap: 10px; padding: 20px; }
  .sv-match__arrow { transform: rotate(90deg); width: 24px; text-align: left; margin-left: 4px; }
  .ct-steps { grid-template-columns: 1fr; }
  .ct-step:first-child { border-radius: 14px 14px 0 0; }
  .ct-step:last-child { border-radius: 0 0 14px 14px; }
  .ct-step + .ct-step { border-left: 1px solid var(--hp-line); border-top: 0; }
  .ct-form { padding: 32px 18px; }
  .pv-body { padding: 32px 20px; font-size: 14px; }
  .pv-body ol li { padding: 14px 16px 14px 52px; }
  .pv-body ol li::before { left: 14px; }
  .bl-grid { grid-template-columns: 1fr; gap: 36px; }
}
.co-table__row dd ul.co-partners li { padding-left: 14px; }
.co-table__row dd ul.co-partners li::before { display: none; }
.pg .ct-form ol { margin-left: 20px; }
.bl-article .single-wrapper { padding: 0; max-width: none; }
.pg-hero--compact .pg-bc { margin-bottom: 0; }
.pg-hero--compact .pg-hero__inner { padding: 28px 0; }
.pg-hero--compact:has(.pg-hero__title) .pg-hero__inner { padding: 40px 0 56px; }
.pg-hero--compact:has(.pg-hero__title) .pg-bc { margin-bottom: 40px; }
.pg-section--article { padding-top: 64px; }
.co-biz__item .hp-svc__more { align-self: flex-start; }

/* AI研修：研修ロードマップ */
.ai-road { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; max-width: 1100px; margin: 8px auto 48px !important; padding: 0 24px !important; position: relative; }
.ai-road::before { content: ""; position: absolute; top: 27px; left: calc(12.5% + 24px); right: calc(12.5% + 24px); height: 2px; background: linear-gradient(90deg, #c8d6ea, var(--hp-navy)); }
.ai-road li { position: relative; text-align: center; padding: 0 12px; list-style: none; }
.ai-road__dot { width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 2px solid var(--hp-navy); color: var(--hp-navy); font-weight: 700; font-size: 15px; display: grid; place-items: center; margin: 0 auto 16px; position: relative; }
.ai-road__dot--goal { background: var(--hp-yellow); border-color: var(--hp-yellow); }
.ai-road strong { display: block; color: var(--hp-navy); font-size: 17px; }
.ai-road small { display: block; color: var(--hp-muted); font-size: 13px; margin-top: 4px; }
.ai-p-card__icon { margin-bottom: 16px; }
@media screen and (max-width: 768px) {
  .ai-road { grid-template-columns: 1fr; gap: 20px; }
  .ai-road::before { top: 28px; bottom: 28px; left: 51px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, #c8d6ea, var(--hp-navy)); }
  .ai-road li { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; text-align: left; padding: 0; }
  .ai-road__dot { margin: 0; grid-row: span 2; }
  .ai-road strong { align-self: end; }
}
.pg .ai-p-cta .ai-p-common-btn { background: var(--hp-yellow); color: var(--hp-navy) !important; border-color: var(--hp-yellow); min-height: 60px; display: inline-flex; align-items: center; padding: 0 40px; border-radius: 6px; font-weight: 700; }
.pg .ai-p-cta .ai-p-common-btn:hover { background: #fff36b; }
