/* 株式会社ファイブスターズカンパニー サイト共通スタイル
   色はサービス案内（スライド）と揃えています。変えるときは :root の値だけ直せば全ページに反映されます。 */
:root {
  --brand: #b23a1d;        /* れんがの赤（見出し・ボタン） */
  --brand-dark: #8f2c14;
  --brand-tint: #f7e9e4;
  --star: #e9a21b;         /* ロゴの星の色（小さなアクセントだけに使う） */
  --ink: #2a2522;
  --ink-soft: #5d5651;
  --line: #e3ddd6;
  --sand: #f4f0eb;         /* 区切りの背景 */
  --white: #ffffff;
  --radius: 14px;
  --wrap: 1120px;
  --font: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--white);
  letter-spacing: 0.02em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { line-height: 1.45; margin: 0 0 0.6em; font-weight: 700; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.4em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--white); padding: 8px 12px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(6px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 210px; }
.brand span { font-size: 12px; color: var(--ink-soft); line-height: 1.4; border-left: 1px solid var(--line); padding-left: 12px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); background: var(--brand-tint); }
.nav a.nav-cta { background: var(--brand); color: var(--white); margin-left: 8px; padding: 9px 18px; }
.nav a.nav-cta:hover { background: var(--brand-dark); color: var(--white); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .brand span { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid var(--line); background: var(--white); color: var(--ink);
    font: inherit; font-size: 14px; padding: 6px 12px; border-radius: 8px; cursor: pointer;
  }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a.nav-cta { margin: 12px 0 0; text-align: center; border-radius: 8px; border-bottom: 0; }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid var(--brand); transition: background 0.15s, color 0.15s;
}
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand-tint); }
.btn-white { background: var(--white); color: var(--brand); border-color: var(--white); }
.btn-white:hover { background: var(--brand-tint); color: var(--brand-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 共通セクション ---------- */
.section { padding: 88px 0; }
.section-sand { background: var(--sand); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--brand); margin-bottom: 12px;
}
.eyebrow::before { content: "★"; color: var(--star); font-size: 12px; }
.section-title { font-size: clamp(24px, 3.4vw, 34px); }
.section-lead { color: var(--ink-soft); max-width: 720px; }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- トップ：ファーストビュー ---------- */
.hero { padding: 72px 0 88px; background: linear-gradient(180deg, var(--white) 0%, var(--sand) 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(30px, 4.8vw, 52px); letter-spacing: 0.01em; margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--brand); display: block; }
.hero .lead { font-size: 17px; color: var(--ink-soft); margin-bottom: 32px; max-width: 560px; }
.hero-photo { position: relative; }
.hero-photo img { border-radius: 24px; aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.hero-card {
  position: absolute; left: -28px; bottom: -28px;
  background: var(--white); border-radius: var(--radius); padding: 16px 20px;
  box-shadow: 0 12px 32px rgba(42, 37, 34, 0.12); line-height: 1.6; max-width: 300px;
}
.hero-card strong { font-size: 18px; display: block; }
.hero-card small { color: var(--ink-soft); font-size: 12px; display: block; }
@media (max-width: 860px) {
  .hero { padding: 48px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { max-width: 420px; margin: 0 auto; }
  .hero-card { left: 12px; bottom: -24px; }
}

/* ---------- 実績の数字 ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.stat { background: var(--white); border-radius: var(--radius); padding: 28px 24px; text-align: center; border: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(36px, 5vw, 52px); color: var(--brand); line-height: 1.2; }
.stat span { color: var(--ink-soft); font-size: 15px; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }

/* ---------- お悩み ---------- */
.worries { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 36px; }
.worry {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border-radius: var(--radius); padding: 22px 24px; border: 1px solid var(--line);
}
.worry::before {
  content: ""; flex: 0 0 22px; height: 22px; margin-top: 4px;
  border: 2px solid var(--brand); border-radius: 5px;
}
.worry strong { display: block; font-size: 18px; }
.worry span { color: var(--ink-soft); font-size: 14px; }
@media (max-width: 700px) { .worries { grid-template-columns: 1fr; } }

/* ---------- 採用をインストールする（土台＋3つの仕組み） ---------- */
.install { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-item {
  display: grid; grid-template-columns: 64px 1fr; align-items: stretch;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--ink);
}
.stack-item:hover { border-color: var(--brand); color: var(--ink); }
.stack-num { display: grid; place-items: center; background: var(--brand); color: var(--white); font-weight: 700; font-size: 20px; }
.stack-body { padding: 16px 20px; line-height: 1.6; }
.stack-body strong { display: block; font-size: 17px; }
.stack-body span { font-size: 14px; color: var(--ink-soft); }
.stack-base { margin-top: 6px; border: 2px solid var(--brand); background: var(--brand-tint); }
.stack-base .stack-num { font-size: 13px; letter-spacing: 0.08em; }
.stack-note { text-align: center; font-size: 13px; font-weight: 700; color: var(--brand); margin: 2px 0; }
@media (max-width: 860px) { .install { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- 対象・業種 ---------- */
.fit { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 36px; }
.fit-card { background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.fit-card h3 { font-size: 18px; color: var(--brand); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li { background: var(--sand); border-radius: 999px; padding: 4px 14px; font-size: 14px; }
@media (max-width: 700px) { .fit { grid-template-columns: 1fr; } }

/* ---------- 代表メッセージ ---------- */
.message { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.message img { border-radius: 20px; aspect-ratio: 1 / 1; object-fit: cover; }
.message .sign { margin-top: 16px; font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.message .sign strong { color: var(--ink); font-size: 18px; }
@media (max-width: 780px) { .message { grid-template-columns: 1fr; gap: 24px; } .message img { max-width: 260px; } }

/* ---------- お客様の声 ---------- */
.voices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 36px; }
.voice-card { background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.voice-card blockquote { margin: 0 0 12px; font-size: 16px; }
.voice-card cite { font-style: normal; font-size: 14px; color: var(--ink-soft); }
@media (max-width: 700px) { .voices { grid-template-columns: 1fr; } }

/* ---------- 相談の呼びかけ ---------- */
.cta { background: var(--brand); color: var(--white); padding: 72px 0; }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 8px; }
.cta p { margin: 0; opacity: 0.92; }

/* ---------- 下層ページの見出し ---------- */
.page-head { background: var(--sand); padding: 56px 0 48px; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); margin: 0; }
.page-head p { margin: 12px 0 0; color: var(--ink-soft); }
.crumbs { font-size: 13px; color: var(--ink-soft); margin-bottom: 12px; }
.crumbs a { color: var(--ink-soft); }

/* ---------- サービス詳細 ---------- */
.program { display: grid; grid-template-columns: 96px 1fr; gap: 28px; padding: 40px 0; border-top: 1px solid var(--line); }
.program:first-of-type { border-top: 0; }
.program-num {
  width: 96px; height: 96px; border-radius: 20px; background: var(--brand); color: var(--white);
  display: grid; place-items: center; font-size: 30px; font-weight: 700;
}
.program-num.is-base { font-size: 15px; letter-spacing: 0.1em; background: var(--ink); }
.program h2 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 8px; }
.price { display: inline-block; background: var(--brand-tint); color: var(--brand-dark); font-weight: 700; border-radius: 8px; padding: 2px 12px; margin-bottom: 16px; }
.program .summary { font-weight: 700; }
.check { list-style: none; padding: 0; }
.check li { position: relative; padding-left: 28px; margin-bottom: 6px; }
.check li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 12px; height: 7px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.note { font-size: 13px; color: var(--ink-soft); }
@media (max-width: 640px) {
  .program { grid-template-columns: 1fr; gap: 16px; }
  .program-num { width: 64px; height: 64px; font-size: 22px; border-radius: 14px; }
  .program-num.is-base { font-size: 11px; }
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 36px 0 0; counter-reset: step; }
.steps li { background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); counter-increment: step; }
.steps li::before { content: "STEP " counter(step); display: block; font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: 0.1em; margin-bottom: 8px; }
.steps strong { display: block; font-size: 18px; margin-bottom: 4px; }
.steps span { font-size: 14px; color: var(--ink-soft); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- 表（会社概要） ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; vertical-align: top; padding: 18px 16px; border-bottom: 1px solid var(--line); }
.table th { width: 9em; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.table td ul { margin: 0; }
@media (max-width: 640px) {
  .table th, .table td { display: block; width: auto; padding: 0 0 4px; border: 0; }
  .table tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
}

.profile { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.profile img { border-radius: 20px; aspect-ratio: 1 / 1; object-fit: cover; }
.profile .titles { color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.timeline { list-style: none; padding: 0; margin: 0 0 1.2em; }
.timeline li { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.timeline time { color: var(--brand); font-weight: 700; }
@media (max-width: 700px) { .profile { grid-template-columns: 1fr; } .profile img { max-width: 220px; } }

.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--sand); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 760px) { .videos { grid-template-columns: 1fr; } }

/* ---------- お客様の声（詳細） ---------- */
.interview { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; margin-bottom: 32px; }
.interview h2 { font-size: 22px; }
.interview h3 { font-size: 16px; color: var(--brand); margin-top: 1.6em; }
.qa-q { font-weight: 700; margin-bottom: 0.4em; }
.qa-q::before { content: "Q. "; color: var(--brand); }
@media (max-width: 640px) { .interview { padding: 24px 20px; } }

/* ---------- コラム ---------- */
.posts { list-style: none; padding: 0; margin: 0; }
.posts li { border-bottom: 1px solid var(--line); }
.posts a { display: block; padding: 22px 4px; text-decoration: none; color: var(--ink); }
.posts a:hover strong { color: var(--brand); }
.posts time { font-size: 13px; color: var(--ink-soft); display: block; }
.posts strong { font-size: 18px; }
.article { padding: 56px 0 88px; }
.article h1 { font-size: clamp(24px, 3.6vw, 34px); }
.article .meta { color: var(--ink-soft); font-size: 14px; margin-bottom: 32px; }
.article blockquote { margin: 1.4em 0; padding: 16px 24px; background: var(--sand); border-radius: 10px; font-weight: 700; }
.article .box { background: var(--sand); border-radius: 10px; padding: 20px 24px; margin-bottom: 1.2em; }
.article .box p:last-child { margin-bottom: 0; }

/* ---------- フォーム ---------- */
.form { display: grid; gap: 22px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.req, .opt { font-size: 12px; font-weight: 700; border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }
.req { background: var(--brand); color: var(--white); }
.opt { background: var(--sand); color: var(--ink-soft); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid #cfc7bf; border-radius: 10px; padding: 12px 14px;
}
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--brand-tint); border-color: var(--brand); }
.consent { display: flex; gap: 10px; align-items: flex-start; }
.consent input { margin-top: 7px; width: 18px; height: 18px; accent-color: var(--brand); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; cursor: pointer; font: inherit; font-weight: 700; }
.panel { background: var(--sand); border-radius: var(--radius); padding: 28px; }

/* ---------- 本文ページ ---------- */
.prose h2 { font-size: 20px; margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }

/* ---------- フッター ---------- */
.site-footer { background: var(--ink); color: #d9d2cb; padding: 56px 0 32px; font-size: 14px; }
.site-footer a { color: #f0ebe6; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.footer-brand strong { display: block; color: var(--white); font-size: 17px; margin-bottom: 6px; }
.footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 24px; list-style: none; padding: 0; margin: 0; }
.copy { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 12px; color: #a59d95; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 見出しの改行位置 ----------
   日本語の見出しが「インストー／ル」のように言葉の途中で折り返さないように、文節で折り返す（Chrome・Edge）。
   対応していないブラウザでは、ふだんどおりの折り返しになる。 */
h1, h2, h3, .worry strong, .stack-body strong, .stat span, .cta p, .section-lead {
  word-break: auto-phrase;
  text-wrap: balance;
}
.hero h1 em { word-break: keep-all; overflow-wrap: anywhere; }

/* ---------- ファーストビュー：求職者がAIに聞く、の図 ---------- */
.ai-chat {
  margin: 0; background: var(--white); border-radius: 24px; padding: 28px;
  box-shadow: 0 20px 48px rgba(42, 37, 34, 0.12); border: 1px solid var(--line);
}
.ai-chat figcaption { font-size: 12px; color: var(--ink-soft); margin-bottom: 16px; letter-spacing: 0.08em; }
.ai-q {
  margin: 0 0 16px auto; max-width: 88%; background: var(--ink); color: var(--white);
  border-radius: 18px 18px 4px 18px; padding: 14px 18px; font-size: 15px; line-height: 1.7;
}
.ai-a { background: var(--sand); border-radius: 18px 18px 18px 4px; padding: 16px 18px; font-size: 14px; line-height: 1.75; }
.ai-a p { margin: 0 0 10px; }
.ai-a p:last-child { margin-bottom: 0; }
.ai-a-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: var(--ink-soft); }
.ai-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--star); }
.ai-a-good { background: var(--white); border: 2px solid var(--brand); border-radius: 12px; padding: 10px 12px; }
.ai-a-good b { color: var(--brand); }
.ai-a-weak { color: #8a827b; padding: 0 12px; }
.ai-note { margin: 16px 0 0; font-weight: 700; color: var(--brand); font-size: 15px; }

/* ---------- 数字（4つ） ---------- */
.stats-4 { grid-template-columns: repeat(4, 1fr); }
.stat small { font-size: 0.45em; margin-left: 2px; }
.stat-main { background: var(--brand); border-color: var(--brand); }
.stat-main b, .stat-main span { color: var(--white); }
@media (max-width: 900px) { .stats-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-4 { grid-template-columns: 1fr; } }

.worries-foot { margin: 28px 0 0; font-weight: 700; }

/* ---------- AI×採用（濃い背景） ---------- */
.section-ink { background: var(--ink); color: #efe9e3; }
.section-ink .section-title { color: var(--white); }
.section-ink .section-lead { color: #cfc7bf; }
.section-ink .eyebrow { color: #f3b9a8; }
.ai-steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: ai; }
.ai-steps li { border-top: 2px solid var(--star); padding-top: 20px; counter-increment: ai; }
.ai-steps li::before { content: "0" counter(ai); display: block; color: var(--star); font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.ai-steps b { display: block; font-size: 19px; color: var(--white); margin-bottom: 8px; }
.ai-steps span { font-size: 15px; color: #cfc7bf; }
@media (max-width: 800px) { .ai-steps { grid-template-columns: 1fr; } }

/* ---------- 研修・講演 ---------- */
.courses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
.course {
  display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; text-decoration: none; color: var(--ink); line-height: 1.7;
}
.course:hover { border-color: var(--brand); color: var(--ink); }
.course strong { display: block; font-size: 19px; margin: 6px 0 8px; }
.course span:last-child { font-size: 14px; color: var(--ink-soft); }
.course-tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--brand); background: var(--brand-tint); border-radius: 6px; padding: 2px 10px; margin: 0 0 8px; }
.course .course-tag { margin: 0; }
@media (max-width: 700px) { .courses { grid-template-columns: 1fr; } }
h3.mini { font-size: 15px; color: var(--brand); margin: 20px 0 8px; }
.table-compact th, .table-compact td { padding: 10px 12px; }
.table-compact th { width: 5em; color: var(--brand); }
@media (max-width: 640px) { .table-compact tr { padding: 8px 0; } }
.takeaway { margin-top: 20px; background: var(--sand); border-radius: 12px; padding: 16px 20px; line-height: 1.8; }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.steps-4 li::before { content: "0" counter(step); }
@media (max-width: 900px) { .steps-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps-4 { grid-template-columns: 1fr; } }
.promise { margin-top: 32px; background: var(--white); border-radius: var(--radius); padding: 24px 28px; border: 2px solid var(--brand); }
.promise ul { margin: 8px 0 0; }

/* ---------- トップ：Why から始める構成 ---------- */
.hero-why { padding: 96px 0 104px; }
.hero-why .wrap { display: block; max-width: 980px; }
.hero-why h1 { font-size: clamp(28px, 4.4vw, 50px); margin-bottom: 20px; }
.hero-answer { font-size: clamp(22px, 3vw, 32px); font-weight: 700; margin: 0 0 28px; }
.hero-answer em {
  font-style: normal; color: var(--white); background: var(--brand);
  padding: 2px 14px; border-radius: 8px; margin: 0 4px; white-space: nowrap;
}
.hero-why .lead { max-width: 720px; }
@media (max-width: 860px) { .hero-why { padding: 56px 0 72px; } }

.why-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: why; }
.why-list li { background: var(--sand); border-radius: var(--radius); padding: 24px; counter-increment: why; }
.why-list li::before { content: counter(why); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--white); font-weight: 700; margin-bottom: 14px; }
.why-list b { display: block; font-size: 18px; line-height: 1.5; margin-bottom: 8px; }
.why-list span { font-size: 14px; color: var(--ink-soft); }
@media (max-width: 960px) { .why-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-list { grid-template-columns: 1fr; } }

.cycle-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; margin-top: 36px; }
.cycle-h { font-size: 20px; margin-top: 8px; }
.cycle-wrap h3.cycle-h + p { margin-bottom: 20px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 0 10px; }
.fact { background: var(--white); border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--line); line-height: 1.6; }
.fact b { display: block; font-size: 34px; color: var(--brand); line-height: 1.2; margin-bottom: 6px; }
.fact b small { font-size: 0.5em; margin-left: 2px; }
.fact span { font-size: 13px; color: var(--ink-soft); }
.cycle-wrap .note { margin-bottom: 36px; }
.questions { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.questions li { background: var(--white); border-radius: 10px; padding: 12px 18px; font-weight: 700; font-size: 17px; border-left: 0; position: relative; padding-left: 48px; }
.questions li::before { content: "？"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: var(--white); display: grid; place-items: center; font-size: 13px; }

.cycle { margin: 0; background: var(--white); border-radius: 24px; padding: 28px; box-shadow: 0 16px 40px rgba(42, 37, 34, 0.08); position: sticky; top: 96px; }
.cycle figcaption { text-align: center; font-weight: 700; color: var(--brand); margin-bottom: 16px; letter-spacing: 0.1em; }
.cycle ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; position: relative; }
.cycle li { background: var(--sand); border-radius: 14px; padding: 16px 12px; text-align: center; line-height: 1.5; position: relative; }
.cycle li b { display: block; font-size: 16px; }
.cycle li span { font-size: 12px; color: var(--ink-soft); }
/* 矢印：1→2（右）、2→3（下）、3→4（左）、4→1（上）。並びは 1,2 / 4,3 にする */
.cycle li:nth-child(3) { order: 4; }
.cycle li:nth-child(4) { order: 3; }
.cycle li::after { position: absolute; color: var(--brand); font-weight: 700; font-size: 22px; }
.cycle li:nth-child(1)::after { content: "→"; right: -30px; top: 50%; transform: translateY(-50%); }
.cycle li:nth-child(2)::after { content: "↓"; bottom: -34px; left: 50%; transform: translateX(-50%); }
.cycle li:nth-child(3)::after { content: "←"; left: -30px; top: 50%; transform: translateY(-50%); }
.cycle li:nth-child(4)::after { content: "↑"; top: -34px; left: 50%; transform: translateX(-50%); }
.cycle-foot { margin: 20px 0 0; text-align: center; font-weight: 700; font-size: 14px; }
@media (max-width: 900px) { .cycle-wrap { grid-template-columns: 1fr; gap: 36px; } .cycle { position: static; } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

.answers { margin: 8px 0 28px; display: grid; gap: 10px; }
.answers p { margin: 0; background: var(--sand); border-radius: 10px; padding: 12px 16px; font-size: 15px; line-height: 1.6; }
.answers span { display: block; font-weight: 700; color: var(--brand); font-size: 13px; }

.ai-now { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.ai-now .ai-steps { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
.ai-now .ai-steps li { padding-top: 14px; }
.section-ink .ai-chat { color: var(--ink); }
@media (max-width: 900px) { .ai-now { grid-template-columns: 1fr; gap: 36px; } }
.cycle li b, .cycle li span, .cycle-foot, .why-list b, .questions li, .fact span { word-break: auto-phrase; }
@media (max-width: 480px) {
  .cycle { padding: 24px 16px; }
  .cycle ol { gap: 32px 28px; }
  .cycle li { padding: 14px 8px; }
  .cycle li b { font-size: 14px; }
  .cycle li:nth-child(1)::after { right: -24px; }
  .cycle li:nth-child(3)::after { left: -24px; }
}

/* ---------- キャッチフレーズ（ファーストビュー） ---------- */
.hero-why h1.catch { font-size: clamp(34px, 6vw, 68px); line-height: 1.3; margin-bottom: 28px; letter-spacing: 0.02em; }
.hero-why h1.catch em { display: block; color: var(--brand); }
.hero-why .hero-answer { font-size: clamp(18px, 2.4vw, 24px); }
.hero-why .hero-answer em { padding: 0 10px; }

/* ---------- 私たちの考え方 ---------- */
.belief { margin-top: 40px; background: var(--ink); color: #efe9e3; border-radius: 20px; padding: 36px 40px; }
.belief-head { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--star); margin-bottom: 8px; }
.belief-main { font-size: clamp(20px, 2.8vw, 28px); font-weight: 700; color: var(--white); line-height: 1.6; word-break: auto-phrase; }
.belief-main em { font-style: normal; color: var(--white); background: var(--brand); padding: 0 8px; border-radius: 6px; }
.belief p:last-child { margin-bottom: 0; color: #d6cec6; }
@media (max-width: 640px) { .belief { padding: 28px 22px; } }

/* ---------- AI：任せる／人がやる ---------- */
.ai-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.ai-col { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius); padding: 24px 28px; }
.ai-col h3 { color: var(--star); font-size: 18px; }
.ai-col-human h3 { color: #f3b9a8; }
.ai-col ul { margin: 0; padding-left: 1.2em; color: #e6dfd8; }
.ai-col li { margin-bottom: 6px; }
.ai-caution { margin: 20px 0 0; font-size: 14px; color: #bfb7af; }
.section-ink-2 { background: #332d29; }
@media (max-width: 760px) { .ai-split { grid-template-columns: 1fr; } }

/* ---------- 目指す状態（GOAL）の図 ---------- */
.goal { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; margin-top: 40px; }
.goal-ring { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 560px; margin: 0 auto; }
.goal-arrows { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.goal-arrows path { fill: none; stroke: var(--brand); stroke-width: 0.9; stroke-linecap: round; }
.goal-hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 40%; aspect-ratio: 1 / 1; border-radius: 50%; background: var(--brand); color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.4;
  box-shadow: 0 0 0 10px var(--brand-tint);
}
.goal-hub span { font-size: 12px; letter-spacing: 0.15em; opacity: 0.85; }
.goal-hub b { font-size: clamp(16px, 2vw, 21px); margin: 4px 0; }
.goal-hub small { font-size: 11px; opacity: 0.9; }
.goal-node {
  position: absolute; transform: translate(-50%, -50%); width: 34%;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px 10px;
  text-align: center; line-height: 1.45; box-shadow: 0 8px 20px rgba(42, 37, 34, 0.08);
}
.goal-node i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--star); color: var(--white); font-style: normal; font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.goal-node b { display: block; font-size: 15px; word-break: auto-phrase; }
.goal-node span { display: block; font-size: 12px; color: var(--ink-soft); word-break: auto-phrase; }
.goal-node.n1 { left: 50%; top: 10%; }
.goal-node.n2 { left: 88%; top: 50%; }
.goal-node.n3 { left: 50%; top: 90%; }
.goal-node.n4 { left: 12%; top: 50%; }
.goal-ai {
  position: absolute; left: 50%; top: 71%; transform: translateX(-50%); margin: 0; white-space: nowrap;
  background: var(--ink); color: var(--white); font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 12px;
}
.goal-out-lead { font-weight: 700; font-size: 18px; margin-bottom: 16px; }
.outcome { background: var(--sand); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 16px; }
.outcome-tag { display: inline-block; background: var(--brand); color: var(--white); font-size: 12px; font-weight: 700; border-radius: 6px; padding: 2px 10px; }
.outcome b { display: block; font-size: 22px; margin: 8px 0; }
.outcome p { font-size: 15px; margin-bottom: 8px; }
.outcome .note { margin: 0; }
@media (max-width: 960px) { .goal { grid-template-columns: 1fr; gap: 40px; } }

/* スマホでは、輪の図を縦の流れに組み替える */
@media (max-width: 640px) {
  .goal-ring { aspect-ratio: auto; display: flex; flex-direction: column; align-items: stretch; gap: 26px; max-width: none; }
  .goal-arrows { display: none; }
  .goal-hub, .goal-node, .goal-ai { position: static; transform: none; }
  .goal-hub { width: 200px; align-self: center; order: 0; }
  .goal-ai { order: 1; align-self: center; }
  .goal-node { width: 100%; text-align: left; display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; padding: 14px 16px; position: relative; }
  .goal-node i { grid-row: span 2; margin: 2px 0 0; }
  .goal-node.n1 { order: 2; } .goal-node.n2 { order: 3; } .goal-node.n3 { order: 4; } .goal-node.n4 { order: 5; }
  .goal-node::before { content: "↓"; position: absolute; top: -24px; left: 50%; transform: translateX(-50%); color: var(--brand); font-weight: 700; }
  .goal-node.n4::after { content: "↺ 社員の声が、また土台（自社採用サイト）へ"; position: absolute; bottom: -26px; left: 0; right: 0; text-align: center; font-size: 12px; font-weight: 700; color: var(--brand); }
  .goal-ring { padding-bottom: 28px; }
}
/* 図の調整：矢印の先端は塗りつぶし、ノードは中央の円と重ならない幅に */
.goal-arrows marker path { stroke: none; fill: var(--brand); }
.goal-hub { width: 36%; }
.goal-node { width: 31%; text-wrap: balance; }
.goal-node span { font-size: 11.5px; text-wrap: balance; }
.goal-node.n2 { left: 85%; }
.goal-node.n4 { left: 15%; }
.goal-ai { top: 70%; }
@media (max-width: 640px) {
  .goal-node, .goal-node.n1, .goal-node.n2, .goal-node.n3, .goal-node.n4 { left: auto; top: auto; width: 100%; }
  .goal-hub { width: 200px; }
}

/* ---------- A：ファーストビュー下の公表データ ---------- */
.hero-data {
  margin-top: 48px; display: grid; grid-template-columns: auto auto auto 1fr; gap: 20px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 20px 26px;
  text-decoration: none; color: var(--ink); box-shadow: 0 10px 28px rgba(42, 37, 34, 0.06);
}
.hero-data:hover { border-color: var(--brand); color: var(--ink); }
.hero-data-num { display: flex; flex-direction: column; line-height: 1.2; }
.hero-data-num b { font-size: 40px; color: var(--brand); }
.hero-data-num b small { font-size: 0.5em; }
.hero-data-num > small { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.hero-data-num.is-muted b { color: #9a918a; }
.hero-data-vs { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.hero-data-text { font-size: 15px; line-height: 1.75; }
.hero-data-text strong { color: var(--brand); }
.hero-data-text em { display: block; font-style: normal; font-size: 11px; color: var(--ink-soft); margin-top: 4px; }
@media (max-width: 760px) {
  .hero-data { grid-template-columns: auto auto 1fr; padding: 18px; gap: 12px 16px; }
  .hero-data-num b { font-size: 32px; }
  .hero-data-text { grid-column: 1 / -1; }
}

/* ---------- B：1年のロードマップ ---------- */
.roadmap { list-style: none; padding: 0; margin: 40px 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.roadmap::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 2px; background: linear-gradient(90deg, var(--brand-tint), var(--brand)); }
.roadmap li { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px 22px; margin-top: 10px; display: flex; flex-direction: column; }
.rm-when { margin: -10px 0 14px; display: flex; align-items: center; gap: 10px; }
.rm-when { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--white); }
.rm-when { background: none; }
.rm-when::before { content: ""; }
.rm-when { width: fit-content; background: var(--brand); border-radius: 999px; padding: 4px 12px; }
.rm-when span { font-weight: 500; letter-spacing: 0.02em; opacity: 0.9; }
.roadmap h3 { font-size: 20px; margin-bottom: 6px; }
.rm-do { font-size: 14px; color: var(--ink-soft); margin-bottom: 16px; }
.rm-state { margin: auto 0 0; background: var(--sand); border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.65; font-weight: 700; }
.rm-state b { display: block; font-size: 11px; color: var(--brand); letter-spacing: 0.08em; margin-bottom: 2px; }
.rm-goal { border: 2px solid var(--brand) !important; }
.rm-goal .rm-state { background: var(--brand-tint); }
@media (max-width: 960px) { .roadmap { grid-template-columns: repeat(2, 1fr); row-gap: 28px; } .roadmap::before { display: none; } }
@media (max-width: 560px) { .roadmap { grid-template-columns: 1fr; } }

/* ---------- C：信条 ---------- */
.motto { font-size: clamp(24px, 3.4vw, 36px); line-height: 1.55; color: var(--brand); margin-bottom: 24px; word-break: auto-phrase; text-wrap: balance; }

/* ======================================================================
   飾り：イラスト・アイコン・背景の模様
   ====================================================================== */

/* ファーストビュー：文章とイラストの2列 */
.hero-why .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px 40px; align-items: center; max-width: var(--wrap); }
.hero-why .hero-data { grid-column: 1 / -1; margin-top: 24px; }
.hero-why h1.catch { font-size: clamp(34px, 5.2vw, 60px); }
.hero-illust { width: 100%; height: auto; max-width: 480px; justify-self: center; }
@media (max-width: 900px) {
  .hero-why .wrap { grid-template-columns: 1fr; }
  .hero-illust { max-width: 340px; order: -1; margin-bottom: 4px; }
}

/* 線画アイコン */
.ico { display: block; width: 56px; height: 56px; flex: none; }
.why-list li { position: relative; }
.why-list li::before { position: absolute; top: 18px; right: 18px; width: 28px; height: 28px; font-size: 13px; margin: 0; }
.why-list .ico { width: 64px; height: 64px; margin-bottom: 12px; }
.roadmap .ico { width: 52px; height: 52px; margin: 2px 0 8px; }
.ai-col h3 { display: flex; align-items: center; gap: 10px; }
.ai-col h3 .ico { width: 36px; height: 36px; }
.outcome b { display: flex; align-items: center; gap: 12px; }
.outcome b .ico { width: 48px; height: 48px; }

/* 砂色の区切り：大きな星の輪郭を、すみに薄く */
.section-sand { position: relative; overflow: hidden; }
.section-sand::before {
  content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -120px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 4l13.5 29.6 32.3 3.6-24.1 21.8 6.7 31.8L50 74.6 21.6 90.8l6.7-31.8L4.2 37.2l32.3-3.6z' fill='none' stroke='%23eadfd4' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat center / contain;
}
.section-sand:nth-of-type(even)::before { right: auto; left: -140px; top: auto; bottom: -160px; transform: rotate(18deg); }
.section-sand > .wrap { position: relative; }

/* 濃い区切り：細かい点の模様 */
.section-ink { position: relative; background-image: radial-gradient(rgba(233, 162, 27, 0.16) 1.2px, transparent 1.4px); background-size: 22px 22px; }
.section-ink-2 { background-color: #332d29; }

/* 相談の呼びかけ：星をちらす */
.cta { position: relative; overflow: hidden; }
.cta::before, .cta::after {
  content: "★"; position: absolute; color: rgba(255, 255, 255, 0.12); pointer-events: none; line-height: 1;
}
.cta::before { font-size: 220px; right: 4%; top: -40px; transform: rotate(12deg); }
.cta::after { font-size: 90px; left: 2%; bottom: -24px; transform: rotate(-14deg); }
.cta .wrap { position: relative; }

/* ファーストビューの背景にも星を少しだけ */
.hero-why { position: relative; overflow: hidden; }
/* スマホでは、キャッチを先に見せ、イラストはボタンの下に */
@media (max-width: 900px) { .hero-illust { order: 0; max-width: 420px; margin: 8px auto 0; } }

/* ======================================================================
   黒い背景を、やわらかい色に（強調はそのまま）
   濃い色の面をやめ、れんがを薄くした暖かい色＋赤の差し色で目立たせる
   ====================================================================== */
:root { --peach: #fbe6da; --peach-soft: #fff5ef; --peach-line: #f0cdbd; }

/* 私たちの考え方 */
.belief {
  position: relative; overflow: hidden; color: var(--ink);
  background: linear-gradient(135deg, var(--peach-soft) 0%, var(--peach) 100%);
  border: 2px solid var(--peach-line); box-shadow: 0 14px 36px rgba(178, 58, 29, 0.10);
}
.belief::after {
  content: "★"; position: absolute; right: 28px; bottom: -36px; font-size: 180px; line-height: 1;
  color: rgba(233, 162, 27, 0.18); pointer-events: none;
}
.belief > * { position: relative; }
.belief-head { color: var(--brand); }
.belief-main { color: var(--ink); }
.belief-main em { color: var(--white); background: var(--brand); }
.belief p:last-child { color: var(--ink-soft); }

/* AI の2つの区切り */
.section-ink {
  color: var(--ink);
  background-color: var(--peach-soft);
  background-image:
    radial-gradient(rgba(178, 58, 29, 0.10) 1.2px, transparent 1.4px),
    linear-gradient(160deg, var(--peach-soft) 0%, var(--peach) 100%);
  background-size: 22px 22px, 100% 100%;
}
.section-ink-2 {
  background-color: #fffaf6;
  background-image:
    radial-gradient(rgba(233, 162, 27, 0.16) 1.2px, transparent 1.4px),
    linear-gradient(200deg, #fffaf6 0%, #fdeee5 100%);
  background-size: 22px 22px, 100% 100%;
}
.section-ink .section-title { color: var(--ink); }
.section-ink .section-lead { color: var(--ink-soft); }
.section-ink .eyebrow { color: var(--brand); }
.ai-col {
  background: var(--white); border: 1px solid var(--peach-line);
  box-shadow: 0 10px 28px rgba(178, 58, 29, 0.08);
}
.ai-col h3 { color: #b8790a; }
.ai-col-human h3 { color: var(--brand); }
.ai-col ul { color: var(--ink); }
.ai-caution { color: var(--ink-soft); }
.ai-steps li { border-top-color: var(--brand); }
.ai-steps li::before { color: var(--brand); }
.ai-steps b { color: var(--ink); }
.ai-steps span { color: var(--ink-soft); }
.belief::after { right: -8px; bottom: -64px; }
.ai-q { background: var(--brand); }
.why-list li::before { background: var(--brand); }
/* 冒頭の数字：小さな会社2つ（5〜29人・30〜99人）と大企業を並べる */
.hero-data { grid-template-columns: auto auto auto auto 1fr; }
@media (max-width: 760px) {
  .hero-data { grid-template-columns: auto auto auto auto; justify-content: start; }
  .hero-data-text { grid-column: 1 / -1; }
}
@media (max-width: 420px) { .hero-data-num b { font-size: 26px; } .hero-data { gap: 10px 12px; } }
@media (max-width: 760px) {
  .hero-data { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .hero-data-vs { display: none; }
  .hero-data-num b { font-size: 28px; }
  .hero-data-num > small { font-size: 11px; white-space: nowrap; }
}
/* 下層ページ：見出しの幅を本文（狭い列）とそろえる */
.page-head .wrap { max-width: 780px; }
