/* おかだ社労士事務所 v2 — 青基調(ロゴ色準拠)+先進性モーション
   採用色: accent #2563eb / accent-dark #184890(ロゴ紺・指定#1e40afをロゴに寄せ調整)
           electric #3b82f6→#60a5fa / logo-sky #78c0f0 / navy #0b1220→#1e293b
   コンポーネント7個: .btn / .card / .badge / .price-card / .section / .toc / .table-wrap
   ブレークポイントは min-width:768px の1本のみ(+動作抑制の prefers-reduced-motion) */
:root {
  --c-bg: #ffffff;
  --c-bg-alt: #f1f5f9;
  --c-text: #334155;
  --c-heading: #1e293b;
  --c-accent: #2563eb;
  --c-accent-dark: #184890;   /* ロゴの紺をそのまま採用 */
  --c-ele1: #3b82f6;          /* エレクトリックブルー(グラデ始点) */
  --c-ele2: #60a5fa;          /* エレクトリックブルー(グラデ終点) */
  --c-navy1: #0b1220;         /* ダークネイビー(グラデ始点) */
  --c-navy2: #1e293b;         /* ダークネイビー(グラデ終点) */
  --c-on-dark: #f1f5f9;       /* ダーク背景上の本文 */
  --c-on-dark-sub: #93c5fd;   /* ダーク背景上のサブ(4.5:1以上) */
  --fs-1: 1rem;
  --fs-2: 1.25rem;
  --fs-3: 1.563rem;
  --fs-4: 1.953rem;
  --sp-1: .5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2.5rem;
  --sp-5: 4rem;
  --w-content: 42rem;
  --w-wide: 66rem;
  --radius: 8px;
  --line: #e2e8f0;
  --grad-ele: linear-gradient(90deg, var(--c-ele1), var(--c-ele2));
  --grad-navy: linear-gradient(160deg, var(--c-navy1), var(--c-navy2));
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDGothic", Meiryo, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .03em;
  color: var(--c-text);
  background: var(--c-bg);
}
h1, h2, h3, h4 { color: var(--c-heading); line-height: 1.4; }
h1 { font-size: var(--fs-4); margin: var(--sp-3) 0 var(--sp-2); }
h2 { font-size: var(--fs-3); margin: var(--sp-4) 0 var(--sp-2); }
h3 { font-size: var(--fs-2); margin: var(--sp-3) 0 var(--sp-1); }
a { color: var(--c-accent); }
a:hover { color: var(--c-accent-dark); }
img { max-width: 100%; height: auto; border-radius: var(--radius); }
hr { border: none; border-top: 1px solid var(--line); margin: var(--sp-4) 0; }
ul, ol { padding-left: 1.4rem; }
li { margin: var(--sp-1) 0; }
blockquote {
  margin: var(--sp-2) 0;
  padding: var(--sp-1) var(--sp-2);
  background: var(--c-bg-alt);
  border-left: 4px solid var(--c-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
table { border-collapse: collapse; font-size: .875rem; min-width: 100%; }
th, td { border: 1px solid var(--line); padding: var(--sp-1) .75rem; text-align: left; vertical-align: top; }
td { min-width: 9rem; }
th { background: var(--c-bg-alt); color: var(--c-heading); white-space: nowrap; }

/* ============ header (常時固定) ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--c-bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: var(--sp-1) var(--sp-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-1);
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: var(--fs-2);
  font-weight: 700;
  color: var(--c-accent-dark);
  text-decoration: none;
  padding: var(--sp-1) 0;
}
.brand-logo { width: 34px; height: 34px; border-radius: 0; }
.header-actions { display: flex; align-items: center; gap: var(--sp-1); }
.header-tel {
  font-weight: 700;
  color: var(--c-heading);
  text-decoration: none;
  font-size: var(--fs-1);
  padding: var(--sp-1);
}
.site-nav { display: flex; justify-content: center; gap: var(--sp-2); border-top: 1px solid var(--line); }
.site-nav a {
  color: var(--c-text);
  text-decoration: none;
  font-size: .9375rem;
  padding: .7rem var(--sp-1);
}
.site-nav a:hover { color: var(--c-accent); }

/* ============ 1. .btn ============ */
.btn {
  display: inline-block;
  background: var(--c-accent);
  color: #fff;
  padding: .75rem var(--sp-3);
  min-height: 44px;
  border: 2px solid var(--c-accent);
  border-radius: var(--radius);
  font-size: var(--fs-1);
  font-family: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover {
  background: var(--c-accent-dark);
  border-color: var(--c-accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, .35);
}
.btn:disabled { background: #94a3b8; border-color: #94a3b8; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--ghost { background: transparent; color: var(--c-accent); }
.btn--ghost:hover { background: var(--c-bg-alt); color: var(--c-accent-dark); box-shadow: 0 4px 12px rgba(37, 99, 235, .18); }
.btn--small { padding: .45rem var(--sp-2); font-size: .9375rem; min-height: 44px; }

/* ============ 2. .card ============ */
.card {
  background: var(--c-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-3);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* ============ 3. .badge ============ */
.badge {
  display: inline-block;
  background: #eff6ff;
  color: var(--c-accent-dark);
  border: 1px solid var(--c-accent);
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 700;
  padding: .15rem .75rem;
  margin: .15rem .15rem .15rem 0;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.badge:hover {
  transform: translateY(-2px);
  border-color: var(--c-ele2);
  box-shadow: 0 4px 10px rgba(59, 130, 246, .25);
}

/* ============ 4. .price-card ============ */
.price-card {
  background: var(--c-bg);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(24, 72, 144, .16);
  border-color: var(--c-ele2);
}
.price-card h3 { margin: 0; }
.price-card .price {
  font-size: var(--fs-4);
  font-weight: 700;
  color: var(--c-accent);
  line-height: 1.2;
}
.price-card .price small { font-size: var(--fs-1); font-weight: 400; color: var(--c-text); }
.price-card details { border-top: 1px solid var(--line); padding-top: var(--sp-1); }
.price-card summary { cursor: pointer; color: var(--c-accent); font-weight: 700; padding: var(--sp-1) 0; }
.price-card .effect { background: var(--c-bg-alt); border-radius: var(--radius); padding: var(--sp-1) var(--sp-2); font-size: .9375rem; }

/* ============ 5. .section ============ */
.section { padding: var(--sp-4) var(--sp-2); }
.section--alt { background: var(--c-bg-alt); }
.section > .inner { max-width: var(--w-wide); margin: 0 auto; }
.section h2 { text-align: center; margin-top: 0; }
.section h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: .5rem auto 0;
  border-radius: 2px;
  background: var(--grad-ele);
  transition: width .7s ease .15s;
}
/* スクロール到達でアクセント線が伸びる(JSが.fx-lineを付与。JS無効時は最初から48px) */
.section h2.fx-line::after { width: 0; }
.section h2.fx-line.fx-in::after { width: 48px; }

/* ============ 6. .toc ============ */
.toc {
  background: var(--c-bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-1) var(--sp-2);
  margin: var(--sp-3) 0;
}
.toc summary { cursor: pointer; font-weight: 700; color: var(--c-heading); padding: var(--sp-1) 0; }
.toc ol { margin: var(--sp-1) 0; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ============ 7. .table-wrap ============ */
.table-wrap { overflow-x: auto; margin: var(--sp-2) 0; }

/* ============ layout parts ============ */
main.narrow { max-width: var(--w-content); margin: 0 auto; padding: var(--sp-2) var(--sp-2) var(--sp-5); }

/* FV — 流れるダークネイビーグラデ + アニメーションSVG背景 */
.fv {
  position: relative;
  overflow: hidden;
  /* #0f2547はダーク上サブ文字#93c5fdでも4.5:1を保つ明るさ上限 */
  background: linear-gradient(120deg, #0b1220, #1e293b, #0f2547, #0b1220);
  background-size: 300% 300%;
  animation: bgflow 18s ease-in-out infinite;
  text-align: center;
  padding-top: var(--sp-5);
  padding-bottom: var(--sp-5);
}
@keyframes bgflow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* ヒーローテキストの時差登場(見出し→サブ→リード→CTA→バッジ) */
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
.fv h1 { animation: rise .7s ease .1s both; }
.fv-sub { animation: rise .7s ease .3s both; }
.fv-lead { animation: rise .7s ease .5s both; }
.fv .cta { animation: rise .7s ease .7s both; }
.fv-badges { animation: rise .7s ease .85s both; }
.fv-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .45;
  pointer-events: none;
}
.fv .inner { position: relative; }
.fv h1 { color: #fff; margin: 0 0 var(--sp-2); text-shadow: 0 2px 12px rgba(11, 18, 32, .6); }
.fv-sub { font-size: var(--fs-2); font-weight: 700; color: var(--c-on-dark-sub); margin: 0 0 var(--sp-2); }
.fv-lead { max-width: var(--w-content); margin: 0 auto var(--sp-3); text-align: left; color: var(--c-on-dark); }
.fv .cta { margin: var(--sp-3) 0 var(--sp-2); }
.fv .badge { background: rgba(37, 99, 235, .18); color: #bfdbfe; border-color: var(--c-ele2); }
.fv .btn { border-color: var(--c-ele2); }

/* 悩み提起 */
.problems { list-style: none; padding: 0; max-width: var(--w-content); margin: 0 auto; }
.problems li {
  background: var(--c-bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--c-ele1);
  border-radius: var(--radius);
  padding: var(--sp-1) var(--sp-2) var(--sp-1) 2.4rem;
  margin: var(--sp-1) 0;
  position: relative;
}
.problems li::before { content: "✔"; position: absolute; left: var(--sp-2); color: var(--c-accent); font-weight: 700; }
.answer { max-width: var(--w-content); margin: var(--sp-3) auto 0; }

/* グリッド */
.grid { display: grid; gap: var(--sp-2); grid-template-columns: 1fr; margin: var(--sp-3) 0; }

/* タイムライン */
.timeline { list-style: none; padding: 0; max-width: var(--w-content); margin: var(--sp-3) auto; }
.timeline li { position: relative; padding: 0 0 var(--sp-3) var(--sp-3); border-left: 2px solid var(--c-accent); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: .5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--grad-ele);
}
.timeline .era { font-weight: 700; color: var(--c-heading); display: block; }
.profile-head { text-align: center; margin-bottom: var(--sp-2); }
.profile-head .name { font-size: var(--fs-2); font-weight: 700; color: var(--c-heading); margin: 0; }
.profile-head .role { margin: .2rem 0 0; }

/* ご相談の流れ — 番号バッジは通常フローで重なりなし */
.flow-step { display: flex; flex-direction: column; align-items: flex-start; }
.flow-step .step-no {
  flex-shrink: 0;
  background: var(--grad-ele);
  color: #fff;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--fs-2);
  margin-bottom: var(--sp-1);
}
.flow-step h3 { margin: 0 0 var(--sp-1); }

/* CTA帯 — ダークネイビーグラデ */
.cta-band { background: linear-gradient(200deg, var(--c-navy2), var(--c-navy1)); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band h2::after { background: var(--grad-ele); }
.cta-band p { color: var(--c-on-dark); }
.cta-band .btn { background: #fff; color: var(--c-accent-dark); border-color: #fff; }
.cta-band .btn:hover { background: #dbeafe; border-color: #dbeafe; box-shadow: 0 6px 16px rgba(96, 165, 250, .35); }
.cta-band .tel { font-size: var(--fs-3); font-weight: 700; color: #fff; text-decoration: none; display: inline-block; padding: var(--sp-1); }

/* コラム */
.post-list { list-style: none; padding: 0; margin: var(--sp-3) 0; display: grid; gap: var(--sp-2); }
.post-list .card { display: block; }
.post-date { font-weight: 700; color: var(--c-accent-dark); font-size: .9375rem; margin: 0; }
.post-list .title { margin: .2rem 0 0; font-size: var(--fs-1); font-weight: 700; line-height: 1.5; }
.post-list .title a { text-decoration: none; color: var(--c-heading); }
.post-list .title a:hover { color: var(--c-accent); }

/* 記事ページ */
.breadcrumb { font-size: .8125rem; margin: var(--sp-2) 0; }
.breadcrumb a { text-decoration: none; }
.post-meta { display: flex; align-items: center; gap: var(--sp-1); font-size: .9375rem; margin-bottom: var(--sp-2); }
.article-body { max-width: 68ch; }
.article-body h2 {
  font-size: var(--fs-2);
  border-left: 4px solid var(--c-accent);
  background: var(--c-bg-alt);
  padding: var(--sp-1) var(--sp-2);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.author-box { margin: var(--sp-4) 0; }
.author-box .name { font-weight: 700; color: var(--c-heading); margin: 0; }
.author-box p { margin: .2rem 0 0; font-size: .9375rem; }

/* フォーム */
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: .7rem;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: var(--fs-1);
  font-family: inherit;
  background: var(--c-bg);
  color: var(--c-text);
}
.req {
  background: var(--c-accent);
  color: #fff;
  font-size: .75rem;
  padding: .1rem .5rem;
  border-radius: 4px;
  vertical-align: middle;
}
.form-notice { color: #b91c1c; font-size: .9375rem; }
/* ハニーポット(スパムボット対策): 視覚・支援技術の双方から隠す */
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { font-size: .9375rem; }

.cta { text-align: center; margin: var(--sp-3) 0; }

/* footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--c-bg-alt);
  padding: var(--sp-3) var(--sp-2) var(--sp-4);
  text-align: center;
  font-size: .875rem;
}
.site-footer p { margin: var(--sp-1) 0; }
.footer-logo { width: 44px; height: 44px; }

/* CTAボタンの軽いパルス(FV・CTA帯のみ。hover効果と干渉しないよう::afterのリングで) */
.fv .btn, .cta-band .btn { position: relative; }
.fv .btn::after, .cta-band .btn::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  animation: ctapulse 2.8s ease-out infinite;
}
@keyframes ctapulse {
  0% { box-shadow: 0 0 0 0 rgba(96, 165, 250, .45); }
  60% { box-shadow: 0 0 0 12px rgba(96, 165, 250, 0); }
  100% { box-shadow: 0 0 0 0 rgba(96, 165, 250, 0); }
}

/* 波形セクション区切り */
.divider { line-height: 0; }
.divider svg { width: 100%; height: 48px; display: block; }

/* ============ motion ============ */
/* スクロール連動 fade-in-up(JSが .fx を付与。JS無効時は即表示) */
.fx { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.fx-in { opacity: 1; transform: none; }
/* FV背景SVGのゆるやかな浮遊 */
@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(-14px); }
}
.fv-bg .drift { animation: drift 12s ease-in-out infinite alternate; }
.fv-bg .drift2 { animation: drift 16s ease-in-out infinite alternate-reverse; }

/* ============ 768px〜(ブレークポイントはこの1本のみ) ============ */
@media (min-width: 768px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .post-list { grid-template-columns: repeat(3, 1fr); }
  .post-list--rows { grid-template-columns: 1fr; }
  .header-inner { padding: var(--sp-1) var(--sp-3); }
  .site-nav { justify-content: flex-end; max-width: var(--w-wide); margin: 0 auto; border-top: none; padding: 0 var(--sp-3); }
  .fv-lead { text-align: center; }
  main.narrow { padding-top: var(--sp-3); }
}

/* 動きを抑制したい利用者への配慮(ブレークポイントではない) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fv { animation: none; }
  .fv h1, .fv-sub, .fv-lead, .fv .cta, .fv-badges { animation: none; }
  .fv .btn::after, .cta-band .btn::after { animation: none; }
  .fv-bg .drift, .fv-bg .drift2 { animation: none; }
  .btn, .price-card, .badge, .fx { transition: none; }
  .btn:hover, .price-card:hover, .badge:hover { transform: none; }
  .fx { opacity: 1; transform: none; }
  .section h2.fx-line::after { width: 48px; transition: none; }
}
