/* HGC株式会社 ウェブサイト 共通スタイル */

:root {
  --c-text: #1f2328;
  --c-muted: #565a6e;
  --c-primary: #2e3092; /* ブランド・カラー（DIC F43） */
  --c-primary-dark: #1f2170;
  --c-link: #2e3092;
  --c-bg: #ffffff;
  --c-bg-soft: #f4f4fa;
  --c-line: #d9d9ea;
  --c-focus: #e39b00;
  --c-draft-bg: #fff3cd;
  --c-draft-ink: #5c4300;
  --c-note-bg: #fff8e1;
  --c-note-line: #d9a520;
  --w-max: 62rem;
  --radius: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic",
    "Yu Gothic UI", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-wrap: anywhere;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--c-link);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--c-primary);
}

a:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
}

p {
  margin: 0 0 1em;
}

/* 本文へ移動（キーボード操作のとき） */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: #ffffff;
  color: var(--c-primary);
}

/* 下書きの帯（公開の前に全ページから外す） */
.draft-banner {
  margin: 0;
  padding: 0.5rem 1rem;
  background: var(--c-draft-bg);
  color: var(--c-draft-ink);
  border-bottom: 1px solid #e6cf86;
  font-size: 0.875rem;
  text-align: center;
}

/* 下書きの確認メモ（公開の前に全ページから外す） */
.draft-note {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: var(--c-note-bg);
  border-left: 4px solid var(--c-note-line);
  font-size: 0.9375rem;
}

.draft-note strong {
  color: var(--c-draft-ink);
}

/* ヘッダー */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--c-line);
}

.site-header__inner {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0.875rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  color: var(--c-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

/* ロゴは比率を変えない（横は高さの1.4021倍）。まわりに余白を取る */
.site-logo__mark {
  display: block;
  width: auto;
  height: 2.75rem;
}

.site-logo__text {
  display: block;
}

.site-logo small {
  display: block;
  color: var(--c-muted);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-nav a {
  display: inline-block;
  padding: 0.25rem 0;
  color: var(--c-text);
  text-decoration: none;
  font-size: 0.9375rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: var(--c-line);
}

.site-nav a[aria-current="page"] {
  color: var(--c-primary);
  font-weight: 700;
  border-bottom-color: var(--c-primary);
}

/* 本文 */
.container {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.page-head {
  background: var(--c-bg-soft);
  border-bottom: 1px solid var(--c-line);
}

.page-head h1 {
  margin: 0;
  padding: 2rem 0 1.5rem;
  color: var(--c-primary);
  font-size: 1.625rem;
  line-height: 1.45;
}

.page-head .lead {
  margin: -0.75rem 0 0;
  padding-bottom: 1.5rem;
  color: var(--c-muted);
  font-size: 0.9375rem;
}

.section {
  padding: 2.25rem 0;
}

.section + .section {
  border-top: 1px solid var(--c-line);
}

h2 {
  margin: 0 0 1rem;
  padding-left: 0.75rem;
  border-left: 4px solid var(--c-primary);
  color: var(--c-primary);
  font-size: 1.3125rem;
  line-height: 1.5;
}

h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.0625rem;
  line-height: 1.5;
}

/* トップの大見出し */
.hero {
  background: var(--c-primary);
  color: #ffffff;
}

.hero__inner {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 3.25rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2rem;
}

.hero__logo {
  display: none;
}

@media (min-width: 56rem) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  /* ロゴは白い台に載せ、まわりに推奨の余白（ロゴの大きさの135％）を取る */
  .hero__logo {
    display: block;
    margin: 0;
    padding: 2.1rem 2.95rem;
    background: #ffffff;
    border-radius: var(--radius);
  }

  .hero__logo img {
    display: block;
    width: auto;
    height: 12rem;
  }
}

.hero__kicker {
  margin: 0 0 0.75rem;
  color: #c8c9ee;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.625rem, 4.6vw, 2.25rem);
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.hero p {
  max-width: 40rem;
  margin: 0;
  color: #e9e9f8;
}

/* 当社の考え方（3つ並び） */
.points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.points li {
  padding: 1.25rem;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.points h3 {
  margin: 0 0 0.5rem;
  color: var(--c-primary);
}

.points p {
  margin: 0;
}

/* 案内のカード */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card {
  display: block;
  padding: 1.25rem;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.card:hover {
  border-color: var(--c-primary);
}

.card h3 {
  margin: 0 0 0.25rem;
  color: var(--c-primary);
}

.card p {
  margin: 0;
  color: var(--c-muted);
  font-size: 0.9375rem;
}

@media (min-width: 48rem) {
  .points {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ご依頼から就業開始までの流れ */
ol.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: flow;
}

ol.flow > li {
  position: relative;
  padding: 0 0 1.25rem 3rem;
  counter-increment: flow;
}

ol.flow > li::before {
  content: counter(flow);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--c-primary);
  color: #ffffff;
  font-weight: 700;
  line-height: 2rem;
  text-align: center;
}

ol.flow > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 2.4rem;
  bottom: 0.25rem;
  width: 2px;
  background: var(--c-line);
}

ol.flow h3 {
  margin: 0 0 0.25rem;
  color: var(--c-primary);
}

ol.flow p {
  margin: 0 0 0.5rem;
}

/* 表（会社概要・情報提供） */
.table-wrap {
  overflow-x: auto;
}

table.info {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

table.info th,
table.info td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--c-line);
  text-align: left;
  vertical-align: top;
}

table.info th {
  width: 34%;
  background: var(--c-bg-soft);
  font-weight: 700;
}

.num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

.note {
  color: var(--c-muted);
  font-size: 0.875rem;
}

/* スマートフォンでは表を縦に並べる */
@media (max-width: 40rem) {
  table.info,
  table.info tbody,
  table.info tr,
  table.info th,
  table.info td {
    display: block;
    width: 100%;
  }

  table.info tr {
    margin-bottom: 0.75rem;
  }

  table.info th {
    border-bottom: none;
  }
}

ul.list {
  margin: 0 0 1em;
  padding-left: 1.25rem;
}

ul.list li + li {
  margin-top: 0.25rem;
}

/* 方針などの条文 */
.policy h2 {
  margin-top: 2rem;
}

.policy h2:first-of-type {
  margin-top: 0;
}

.signature {
  margin-top: 2rem;
  text-align: right;
}

.button-link {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  color: var(--c-primary);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--c-primary);
  border-radius: var(--radius);
}

.button-link:hover {
  background: var(--c-primary);
  color: #ffffff;
}

/* フッター */
.site-footer {
  margin-top: 2rem;
  background: var(--c-primary-dark);
  color: #e2e3f5;
}

.site-footer__inner {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 2rem 1.25rem;
  font-size: 0.875rem;
}

.site-footer a {
  color: #ffffff;
}

.site-footer .license {
  margin: 0 0 0.75rem;
  color: #ffffff;
  font-weight: 700;
}

.footer-nav ul {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.copyright {
  margin: 0;
  color: #babce4;
}
