/* 武蔵野人事コンサルティング 共通スタイル
   色・書体は名刺（ロゴC・深緑）に合わせています */
:root {
  --green: #2C4A3C;
  --green-dark: #213a2f;
  --green-light: #9CC3A0;
  --green-pale: #EEF4EE;
  --navy: #1F2B4D;
  --ink: #1F2430;
  --muted: #555C69;
  --line: #D9DED9;
  --bg: #FFFFFF;
  --bg-soft: #F6F7F3;
  --todo: #B3261E;
  --serif: "Noto Serif JP", serif;
  --sans: "Noto Sans JP", system-ui, sans-serif;
  --roman: "EB Garamond", "Noto Serif JP", serif;
  --radius: 10px;
  --container: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.5; letter-spacing: 0.04em; margin: 0 0 0.6em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
:focus-visible { outline: 3px solid var(--green-light); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 16px; z-index: 100; }
.skip:focus { left: 8px; }
.todo { color: var(--todo); font-weight: 700; background: #FDECEA; padding: 0 4px; border-radius: 4px; }

/* ---------- ヘッダー ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand:hover { color: var(--navy); }
.logo-mark { width: 40px; height: 40px; flex: 0 0 auto; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 19px; letter-spacing: 0.06em; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 500; }
.site-nav a[aria-current="page"] { color: var(--green); border-bottom: 2px solid var(--green-light); }
.site-nav .btn { color: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 11px; width: 20px; height: 2px; background: var(--navy); content: ""; }
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { top: -7px; left: 0; }
.nav-toggle-bar::after { top: 7px; left: 0; }

/* ---------- ボタン ---------- */
.btn { display: inline-block; padding: 14px 32px; border-radius: 999px; font-weight: 700; text-decoration: none; letter-spacing: 0.06em; border: 2px solid transparent; cursor: pointer; font-family: var(--sans); font-size: 16px; line-height: 1.4; text-align: center; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { border-color: var(--green); color: var(--green); background: #fff; }
.btn-ghost:hover { background: var(--green-pale); }
.btn-light { background: #fff; color: var(--green); }
.btn-light:hover { background: var(--green-pale); color: var(--green-dark); }
.btn-small { padding: 9px 20px; font-size: 14px; }
.text-link { font-weight: 700; }
.text-link::after { content: " →"; }

/* ---------- ヒーロー（名刺の表面を踏襲） ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 44%; background: var(--green); clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 40px; min-height: 560px; padding-top: 56px; padding-bottom: 56px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.14em; color: var(--green); margin-bottom: 12px; }
.hero-title { font-size: clamp(30px, 4.4vw, 50px); letter-spacing: 0.04em; }
.hero-title span { display: inline-block; }
.hero-lead { font-size: 18px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.hero-visual { display: flex; justify-content: center; }
.hero-photo { width: min(320px, 70vw); aspect-ratio: 1; border-radius: 50%; border: 6px solid var(--green-light); overflow: hidden; background: #fff; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- セクション ---------- */
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-title { font-size: clamp(24px, 3vw, 32px); text-align: center; margin-bottom: 40px; }
.section-title.left { text-align: left; font-size: 22px; margin: 48px 0 20px; padding-bottom: 8px; border-bottom: 2px solid var(--green-light); }
.page-hero { background: var(--green); color: #fff; padding: 64px 0 56px; }
.page-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 40px); margin: 0; }
.page-hero .eyebrow { color: var(--green-light); font-family: var(--roman); font-size: 16px; letter-spacing: 0.2em; }
.page-lead { margin: 16px 0 0; color: #E6EEE7; }
.note { font-size: 14px; color: var(--muted); }

.worry-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.worry-grid li { background: var(--bg-soft); border-radius: var(--radius); padding: 18px 20px 18px 52px; position: relative; font-weight: 500; }
.worry-grid li::before { content: ""; position: absolute; left: 20px; top: 26px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--green); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card { display: block; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--radius); padding: 28px; text-decoration: none; color: var(--ink); }
.card:hover { border-color: var(--green-light); color: var(--ink); box-shadow: 0 4px 16px rgba(31,43,77,0.08); }
.card h3 { font-size: 22px; }

.reason-list { list-style: none; counter-reset: reason; padding: 0; margin: 0; display: grid; gap: 28px; }
.reason-list li { counter-increment: reason; padding-left: 72px; position: relative; }
.reason-list li::before { content: counter(reason, decimal-leading-zero); position: absolute; left: 0; top: -6px; font-family: var(--roman); font-size: 44px; color: var(--green-light); line-height: 1; }
.reason-list h3 { font-size: 20px; margin-bottom: 6px; }

.message-teaser { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center; }
.teaser-photo, .message-photo, .profile-photo { border-radius: 50%; overflow: hidden; border: 4px solid var(--green-light); aspect-ratio: 1; background: #fff; }
.teaser-quote { font-family: var(--serif); font-size: 20px; color: var(--navy); }
.teaser-name { font-weight: 700; }

.flow-mini { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; counter-reset: flow; }
.flow-mini li { counter-increment: flow; background: var(--green-pale); color: var(--green-dark); border-radius: 999px; padding: 8px 20px; font-weight: 700; }
.flow-mini li::before { content: counter(flow) ". "; }

.cta { background: var(--green); color: #fff; padding: 72px 0; text-align: center; }
.cta h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); }
.cta p { color: #E6EEE7; }

/* ---------- 下層ページ ---------- */
.info-table, .price-table, .works-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td, .price-table th, .price-table td, .works-table th, .works-table td { border-bottom: 1px solid var(--line); padding: 16px 12px; text-align: left; vertical-align: top; }
.info-table th { width: 30%; color: var(--navy); background: var(--bg-soft); }
.price-table thead th, .works-table thead th { background: var(--green); color: #fff; }
.price-table tbody th { color: var(--navy); white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.works-table { min-width: 560px; }

.message { position: relative; }
.message-photo { width: 220px; margin: 0 auto 32px; }
.message-catch { font-size: clamp(24px, 3vw, 30px); text-align: center; margin-bottom: 32px; }
.signature { text-align: right; font-family: var(--serif); margin-top: 32px; }

.profile-head { display: grid; grid-template-columns: 180px 1fr; gap: 32px; align-items: center; }
.profile-role { color: var(--green); font-weight: 700; margin: 0; }
.profile-name { font-family: var(--serif); font-size: 36px; color: var(--navy); letter-spacing: 0.12em; margin: 0; }
.profile-roman { font-family: var(--roman); font-size: 20px; color: var(--green); letter-spacing: 0.08em; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--green-light); }
.timeline li { position: relative; padding: 0 0 24px 28px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 10px; width: 14px; height: 14px; border-radius: 50%; background: var(--green); }
.timeline h3 { font-size: 18px; margin-bottom: 4px; }
.tag-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list li { background: var(--green-pale); color: var(--green-dark); border-radius: 999px; padding: 6px 16px; font-weight: 700; font-size: 15px; }

.service-block { border: 1px solid var(--line); border-left: 6px solid var(--green); border-radius: var(--radius); padding: 32px; margin-bottom: 28px; scroll-margin-top: 96px; }
.service-block h2 { font-size: 26px; }
.service-for { font-weight: 700; color: var(--green); }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 32px 72px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-family: var(--roman); font-size: 22px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 23px; top: 52px; bottom: 4px; width: 2px; background: var(--green-light); }
.steps h2 { font-size: 20px; margin-bottom: 4px; padding-top: 8px; }

.case { background: #fff; border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); }
.case-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 0; }
.case-steps dt { font-weight: 700; color: var(--green); }
.case-steps dd { margin: 0; }
.case + .case { margin-top: 24px; }
.case h3 { font-size: 20px; margin-bottom: 16px; }

.faq { border-bottom: 1px solid var(--line); padding: 8px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 12px 0 12px 36px; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 0; font-family: var(--roman); font-size: 22px; color: var(--green); top: 6px; }
.faq p { padding-left: 36px; }

.news-list { list-style: none; padding: 0; margin: 0 0 24px; }
.news-list li { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.news-date { color: var(--muted); font-size: 15px; }
.news-tag { background: var(--green-pale); color: var(--green-dark); font-size: 13px; padding: 2px 10px; border-radius: 999px; font-weight: 700; }

.contact-form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label, .field legend { font-weight: 700; color: var(--navy); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #B9C0BA; border-radius: 8px; background: #fff; color: var(--ink); }
.field textarea { resize: vertical; }
.check { display: inline-flex; align-items: center; gap: 8px; margin-right: 20px; font-weight: 500; }
.check input { width: 20px; height: 20px; accent-color: var(--green); }
.consent { margin-top: 4px; }
.req { display: inline-block; background: var(--todo); color: #fff; font-size: 12px; padding: 0 6px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-weight: 700; min-height: 1.5em; }
.form-status.is-error { color: var(--todo); }
.form-status.is-success { color: var(--green); }

.policy h2 { font-size: 20px; margin-top: 36px; }

/* ---------- フッター ---------- */
.site-footer { background: var(--green-dark); color: #E6EEE7; padding: 56px 0 24px; }
.footer-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
.brand-light, .brand-light:hover { color: #fff; }
.footer-tagline { font-family: var(--serif); margin-top: 16px; }
.footer-mail { font-size: 15px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 16px; }
.footer-links a { color: #E6EEE7; text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.copyright { text-align: center; font-size: 13px; margin: 40px 0 0; color: #B9CBBD; }

/* ---------- スマートフォン ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 16px 24px 24px; }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 12px; }
  .brand-name { font-size: 16px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .hero::before { top: auto; width: 100%; height: 300px; clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%); }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 24px; padding-bottom: 40px; }
  .hero-photo { width: 220px; }
  .hero-title { font-size: 27px; }
  .message-teaser, .profile-head { grid-template-columns: 1fr; text-align: center; }
  .teaser-photo, .profile-photo { width: 160px; margin: 0 auto; }
  .field-row, .footer-inner { grid-template-columns: 1fr; }
  .info-table th { width: 36%; }
  .price-table tbody th { white-space: normal; }
}
