/* =====================================================================
   パシャ勤怠 LP再設計モックアップ 共有デザインシステム
   コンセプト: Anthropic の紙質感・極太ゴシックディスプレイ・コーラルアクセント
             × デジタル庁デザインシステムの情報設計・リンク規範・A11y
   3ページ共通: top.html / category.html / detail.html
   ===================================================================== */

:root {
  /* ---- Anthropic 系: 紙のパレット(anthropic.com の ivory/slate 基調) ---- */
  --paper:      #FAF9F5;   /* ベース背景 (ivory) */
  --paper-mid:  #F0EEE6;   /* 交互セクション */
  --paper-deep: #E8E5DA;   /* 強調面・表ヘッダ */
  --ink:        #191919;   /* 見出し・本文強 (slate) */
  --ink-2:      #52514D;   /* 本文 */
  --ink-3:      #7D7A72;   /* 補助テキスト */
  --border:     rgba(20, 20, 19, 0.12);   /* ヘアライン罫 */
  --border-strong: rgba(20, 20, 19, 0.24);

  /* ---- ブランド: 既存コーラル ---- */
  --coral:      #E34234;
  --coral-deep: #B4291D;   /* paper 上でコントラスト AA を満たすテキスト用 */
  --coral-soft: rgba(227, 66, 52, 0.07);

  /* ---- デジタル庁系: リンク・フォーカス ---- */
  --link:         #0017C1; /* デジ庁プライマリブルー */
  --link-hover:   #000082;
  --link-visited: #4F4B9C;
  --focus-ring:   #FFD43D; /* デジ庁イエローフォーカス */

  /* ---- セマンティック ---- */
  --success: #2E7D32;
  --warning-bg: #FBF5E0;
  --warning-border: #E5C860;
  --info-bg: #EDF0FB;
  --info-border: #B5BFE8;

  /* ---- 形状・タイポ ---- */
  --radius: 16px;   /* Anthropic流: 大きめの角丸 */
  --radius-sm: 8px;
  --shadow-card: 0 1px 2px rgba(31, 30, 29, 0.05), 0 4px 16px rgba(31, 30, 29, 0.05);
  --font-display: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", system-ui, sans-serif; /* 見出し用ゴシック(極太で使う) */
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  --max-w: 1120px;
  --max-w-article: 760px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;                /* デジ庁DS: 本文Mは16px */
  line-height: 1.7;               /* デジ庁DS: 本文の行間は1.7 */
  letter-spacing: 0.04em;         /* デジ庁DS: 本文の字間0.04em */
  line-break: strict;             /* 日本語の禁則処理を厳格に */
  text-autospace: normal;         /* claude.com/ja流の和欧間スペースを自動挿入(非対応ブラウザは無視) */
  text-spacing-trim: space-first; /* 約物の詰め */
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* ---- デジ庁流: 可視フォーカス(全インタラクティブ要素) ---- */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(31, 30, 29, 0.9);
  border-radius: 4px;
}

/* ---- 見出し: 極太ゴシックディスプレイ ----
   サイズ/行間=デジ庁DS(見出しの行間1.4〜1.5)、字間=Anthropic流にわずかに詰める。
   改行位置: text-wrap:balance で行長を均し、word-break:auto-phrase で文節単位に折り返す
   (未対応ブラウザでは無視され通常折り返し) */
h1, h2, h3 {
  color: var(--ink); font-weight: 700;
  text-wrap: balance;
  word-break: auto-phrase;
}
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.01em; }  /* claude.com/ja: 極太より軽い見出し */
h1 { font-size: clamp(1.9rem, 4.2vw, 3.25rem); line-height: 1.3; }    /* 30〜52px・行間タイト(claude.com実測lh1.1に寄せつつ日本語可読を確保) */
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.5; }       /* 24〜32px */
h3 { font-size: 1.125rem; line-height: 1.5; letter-spacing: 0.02em; } /* 18px */

p { margin: 0 0 1em; text-wrap: pretty; }   /* 段落末尾の1文字孤立(オーファン)を抑制 */
li { text-wrap: pretty; }
img, svg { max-width: 100%; height: auto; }
ul, ol { padding-left: 1.4em; }
p.lead { font-size: 1.0625rem; line-height: 1.75; }  /* デジ庁DS: 本文Lに準拠 */
summary { word-break: auto-phrase; }

/* ---- リンク: デジ庁流(本文リンクは常に下線+青) ---- */
a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
a:visited { color: var(--link-visited); }
/* ナビ・カード等の機能リンクは下線なし(hoverで表示) */
a.plain { color: inherit; text-decoration: none; }
a.plain:hover { text-decoration: underline; }
a.plain:visited { color: inherit; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* =====================================================================
   モックアップ注記リボン
   ===================================================================== */
.mock-note {
  background: var(--ink);
  color: #F5F3EC;
  font-size: 12px;
  text-align: center;
  padding: 6px 16px;
  letter-spacing: 0.08em;
}
.mock-note strong { color: var(--focus-ring); }

/* サイト共通の定義ストリップ(AEO: 全ページの最初のテキスト=製品の正確な定義文) */
.site-tagline {
  background: var(--ink);
  color: #E8E5DC;
  font-size: 12.5px;
  text-align: center;
  padding: 7px 16px;
  margin: 0;
  letter-spacing: 0.05em;
}
.site-tagline .tagline-price::before { content: "｜"; color: #7D7A72; margin: 0 2px; }
@media (max-width: 620px) {
  .site-tagline { font-size: 11.5px; }
  .site-tagline .tagline-price, .site-tagline .tagline-service { display: none; }
}

/* =====================================================================
   お知らせバー(デジ庁流ノーティフィケーション)
   ===================================================================== */
.notice-bar {
  background: var(--paper-mid);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  padding: 8px 0;
}
.notice-bar .container { display: flex; gap: 12px; align-items: center; }
.notice-bar .tag {
  background: var(--coral-deep); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  padding: 2px 10px; border-radius: 999px; white-space: nowrap;
}

/* =====================================================================
   ヘッダー
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; gap: 28px;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.brand img { width: 28px; height: 28px; }
.global-nav { display: flex; gap: 4px; margin-left: auto; }
.global-nav a {
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  padding: 8px 14px; border-radius: 999px;
}
.global-nav a:hover { background: var(--paper-mid); color: var(--ink); text-decoration: none; }
.global-nav a[aria-current="page"] { color: var(--coral-deep); font-weight: 700; }
.header-cta { display: flex; gap: 10px; }

/* ---- ボタン: claude.com/ja 実測準拠(角丸8-10px・weight600・淡枠セカンダリ) ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 600;
  padding: 11px 24px; border-radius: 10px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--coral); color: #fff !important; }
.btn-primary:hover { background: var(--coral-deep); }
/* セカンダリ: 淡枠+墨文字(claude.com実測 #D1CFC5)、ホバーで墨反転 */
.btn-ghost { background: transparent; color: var(--ink) !important; border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper) !important; }
.btn-sm { font-size: 13.5px; padding: 8px 16px; border-radius: 8px; }
.btn-lg { font-size: 16px; padding: 14px 32px; border-radius: 12px; }
/* CTA直下のマイクロコピー(claude.com「コミットなし・いつでもキャンセル可能」流) */
.cta-note { font-size: 12.5px; color: var(--ink-3); margin: 10px 0 0; }
.cta-band .cta-note { color: rgba(245, 243, 236, 0.65); }

/* =====================================================================
   パンくず(デジ庁流)
   ===================================================================== */
.breadcrumb { padding: 16px 0 0; font-size: 13px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; }
.breadcrumb li { display: flex; align-items: center; gap: 4px; color: var(--ink-3); }
.breadcrumb li + li::before { content: "›"; color: var(--ink-3); margin: 0 4px; }
.breadcrumb [aria-current="page"] { color: var(--ink-2); }

/* =====================================================================
   セクション基礎
   ===================================================================== */
.section { padding: 88px 0; }
.section-alt { background: var(--paper-mid); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  color: var(--coral-deep); text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--coral); }
.section-head p.lead { color: var(--ink-2); margin-top: 16px; }

/* ---- カード ---- */
.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-card);
}
.card h3 { margin: 14px 0 8px; }
.card p { font-size: 14.5px; margin: 0; color: var(--ink-2); }
.card .icon { width: 52px; height: 52px; }
a.card { display: block; text-decoration: none; color: inherit; transition: transform 0.15s ease, border-color 0.15s ease; }
a.card:hover { transform: translateY(-3px); border-color: var(--coral); text-decoration: none; }
a.card:visited { color: inherit; }
a.card .card-more { color: var(--coral-deep); font-size: 13.5px; font-weight: 700; margin-top: 12px; display: inline-block; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* =====================================================================
   情報ボックス(デジ庁流)
   ===================================================================== */
/* 注: 左だけ太い縦ボーダー(アクセントバー)は使用禁止(2026-07-13 ユーザー指示)。枠は全辺均一にする */
.info-box, .warn-box {
  border-radius: var(--radius-sm); padding: 20px 24px;
  font-size: 14.5px; margin: 28px 0;
  border: 1px solid;
}
.info-box { background: var(--info-bg); border-color: var(--info-border); }
.warn-box { background: var(--warning-bg); border-color: var(--warning-border); }
.info-box .box-label, .warn-box .box-label {
  display: block; font-weight: 700; font-size: 13px; letter-spacing: 0.08em;
  margin-bottom: 6px; color: var(--ink);
}

/* =====================================================================
   表(デジ庁流: 罫線明示・ヘッダ面あり)
   ===================================================================== */
.table-wrap { overflow-x: auto; margin: 28px 0; }
table.spec {
  width: 100%; border-collapse: collapse; font-size: 14.5px;
  background: #fff; border: 1px solid var(--border-strong);
}
table.spec th, table.spec td { border: 1px solid var(--border-strong); padding: 12px 16px; text-align: left; vertical-align: top; }
table.spec thead th { background: var(--paper-deep); color: var(--ink); font-weight: 700; }
table.spec tbody th { background: var(--paper-mid); font-weight: 700; width: 11em; }
table.spec .good { color: var(--coral-deep); font-weight: 700; }

/* =====================================================================
   FAQ(details/summary)
   ===================================================================== */
/* FAQ: claude.com/ja流のヘアライン下線区切り(枠カードなし) */
.faq-item {
  background: transparent; border: none;
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0; margin-bottom: 0;
}
.faq-item:first-of-type { border-top: 1px solid var(--border-strong); }
.faq-item summary {
  cursor: pointer; padding: 20px 4px; font-weight: 700; color: var(--ink);
  list-style: none; display: flex; gap: 12px; align-items: baseline;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q"; color: var(--coral-deep); font-family: var(--font-display); font-size: 1.1rem; }
.faq-item summary::after { content: "+"; margin-left: auto; color: var(--ink-3); font-size: 1.2rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-a, .faq-item > div:not([class]) { padding: 0 4px 20px 28px; font-size: 14.5px; }

/* =====================================================================
   CTAバンド
   ===================================================================== */
.cta-band { background: var(--ink); color: #F5F3EC; padding: 72px 0; }
.cta-band h2 { color: #FAF9F5; margin-bottom: 12px; }
.cta-band p { color: #C9C5BA; max-width: 560px; }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; justify-content: space-between; }
.cta-band .btn-ghost { color: #F5F3EC !important; border-color: rgba(245, 243, 236, 0.55); }
.cta-band .btn-ghost:hover { background: #F5F3EC; color: var(--ink) !important; }

/* =====================================================================
   フッター(サイトマップ型 = SEO内部リンク基盤)
   ===================================================================== */
.site-footer { background: var(--paper-mid); border-top: 1px solid var(--border); padding: 64px 0 32px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-grid h4 { font-size: 13px; letter-spacing: 0.1em; color: var(--ink-3); margin-bottom: 14px; font-weight: 700; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--coral-deep); text-decoration: underline; }
.footer-meta { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--ink-3); font-size: 12.5px; }

/* =====================================================================
   記事レイアウト(category / detail 用)
   ===================================================================== */
.page-title-block { padding: 40px 0 48px; }
.page-title-block h1.article-h1 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.page-title-block .meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); margin-top: 18px; }
.page-title-block .meta span { display: inline-flex; gap: 6px; align-items: center; }
.cat-chip {
  display: inline-block; background: var(--coral-soft); color: var(--coral-deep);
  font-size: 12.5px; font-weight: 700; padding: 3px 14px; border-radius: 999px;
  border: 1px solid rgba(227, 66, 52, 0.25); margin-bottom: 16px;
  text-decoration: none;
}
a.cat-chip:visited { color: var(--coral-deep); }

.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.side-rail { position: sticky; top: 88px; display: grid; gap: 20px; }
.side-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; font-size: 14px; }
.side-card h4 { font-size: 13px; letter-spacing: 0.1em; color: var(--ink-3); margin-bottom: 12px; }
.side-card ul { list-style: none; padding: 0; }
.side-card li { margin-bottom: 10px; line-height: 1.6; }
.side-card.cta { background: var(--ink); color: #F5F3EC; text-align: center; }
.side-card.cta p { font-size: 13.5px; color: #C9C5BA; }

/* ---- 目次(デジ庁流) ---- */
.toc {
  background: var(--paper-mid); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 24px 28px; margin: 36px 0;
}
.toc h2 { font-family: var(--font-sans); font-size: 15px; letter-spacing: 0.1em; color: var(--ink); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 1.4em; font-size: 14.5px; }
.toc li { margin-bottom: 6px; }

/* ---- 記事本文 ---- */
.article-body { max-width: var(--max-w-article); }
.article-body h2 {
  font-size: 1.55rem; margin: 64px 0 20px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border-strong);   /* 左太ボーダー禁止のため下線ヘアラインで区切る */
}
.article-body h3 { margin: 40px 0 12px; }
.article-body figure { margin: 32px 0; text-align: center; }
.article-body figcaption { font-size: 13px; color: var(--ink-3); margin-top: 10px; }
.summary-box {
  background: #fff; border: 1.5px solid var(--coral); border-radius: var(--radius);
  padding: 26px 30px; margin: 36px 0;
}
.summary-box .box-label { color: var(--coral-deep); font-weight: 700; font-size: 14px; letter-spacing: 0.1em; display: block; margin-bottom: 10px; }
.summary-box ul { margin: 0; font-size: 15px; }
.summary-box li { margin-bottom: 6px; }

/* ---- 記事リストカード(category 用) ---- */
.article-card { display: flex; gap: 20px; align-items: flex-start; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: border-color 0.15s ease, transform 0.15s ease; }
.article-card:hover { border-color: var(--coral); transform: translateY(-2px); text-decoration: none; }
.article-card:visited { color: inherit; }
.article-card img { width: 44px; height: 44px; flex-shrink: 0; }
.article-card h3 { font-size: 1.02rem; margin: 0 0 6px; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.article-card:hover h3 { color: var(--link-hover); }
.article-card p { font-size: 13.5px; margin: 0 0 8px; color: var(--ink-2); }
.article-card .read-meta { font-size: 12px; color: var(--ink-3); }
.article-group { margin-bottom: 56px; }
.article-group > h2 { margin-bottom: 8px; }
.article-group > .group-desc { font-size: 14.5px; color: var(--ink-3); margin-bottom: 22px; }
.article-list { display: grid; gap: 16px; }

/* =====================================================================
   Hero(top 用)
   ===================================================================== */
.hero { padding: 96px 0 88px; position: relative; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: stretch; }  /* 右ビジュアルを左タイポと同じ高さに */
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--coral-deep); }
/* サブタイトル(PR Times訴求「DXやめませんか？」をH1にした際の受け) */
.hero-sub {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.5;
  color: var(--ink); margin: 0 0 14px;
  text-wrap: balance; word-break: auto-phrase;
}
.hero-sub em { font-style: normal; color: var(--coral-deep); }
.hero .lead { font-size: 19px; line-height: 1.7; color: #5E5D59; margin-bottom: 36px; max-width: 32em; }  /* claude.com実測: サブヘッドは大きめ+ミュート */
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.trust-chips { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.trust-chips span {
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 5px 16px; color: var(--ink-2);
}
.hero-visual {
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  box-shadow: var(--shadow-card); padding: 40px; text-align: center;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px;  /* 高さ揃えの中で中央配置 */
}
.hero-visual .flow { display: flex; align-items: center; justify-content: center; gap: 10px; }
.hero-visual .flow-item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-visual .flow-item img { width: 136px; height: 136px; }
.hero-visual .flow-item span { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); }
.hero-visual .flow .arrow { font-size: 1.8rem; color: var(--coral); font-family: var(--font-display); margin-bottom: 32px; }
/* 製品名の記憶フック(名前の由来をタグラインに) */
.hero-visual .hv-tagline {
  font-family: var(--font-display); font-weight: 700;
  font-size: 17px; color: var(--ink); margin: 24px 0 0;
  text-wrap: balance; word-break: auto-phrase;
}
.hero-visual .hv-tagline em { font-style: normal; color: var(--coral-deep); font-size: 1.2em; }
.hero-visual .hv-note { font-size: 12.5px; color: var(--ink-3); margin: 8px 0 0; }

/* ---- ステップ ---- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-size: 2.6rem; color: var(--paper-deep);
  position: absolute; top: 14px; right: 22px; line-height: 1; font-weight: 700;
}

/* ---- ハブナビ(目的から探す: デジ庁ポータル流) ---- */
.hub-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hub-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.hub-card h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.hub-card h3 img { width: 36px; height: 36px; }
.hub-card ul { list-style: none; padding: 0; font-size: 14.5px; }
.hub-card li { margin-bottom: 10px; padding-left: 18px; position: relative; }
.hub-card li::before { content: "›"; position: absolute; left: 0; color: var(--coral); font-weight: 700; }
.hub-card .hub-all { display: inline-block; margin-top: 10px; font-weight: 700; font-size: 14px; }

/* ---- 料金 ---- */
.price-card {
  background: #fff; border: 1.5px solid var(--coral); border-radius: 20px;
  padding: 48px; text-align: center; max-width: 560px; margin: 0 auto;
}
.price-card .price { font-family: var(--font-display); font-size: 3.4rem; color: var(--ink); line-height: 1.1; }
.price-card .price small { font-size: 1.05rem; color: var(--ink-3); font-family: var(--font-sans); }
.price-card ul { list-style: none; padding: 0; margin: 28px 0; text-align: left; display: inline-block; }
.price-card li { padding-left: 28px; position: relative; margin-bottom: 10px; font-size: 15px; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--coral-deep); font-weight: 700; }

/* ---- メディア ---- */
.media-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.media-row span {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 28px; font-size: 14px; font-weight: 500; color: var(--ink-2);
}

/* ---- 関連記事(detail 用) ---- */
.related { border-top: 1px solid var(--border); margin-top: 72px; padding-top: 48px; }

/* ---- ページネーション風 戻り導線 ---- */
.back-to-cat { margin-top: 48px; font-size: 14.5px; }

/* =====================================================================
   機能ページ: 交互レイアウト
   ===================================================================== */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--border); }
.feature-row:last-of-type { border-bottom: none; }
.feature-row .fig { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 48px; text-align: center; box-shadow: var(--shadow-card); }
.feature-row .fig img { width: 110px; height: 110px; }
.feature-row .fig p { font-size: 13px; color: var(--ink-3); margin: 16px 0 0; }
.feature-num { font-size: 13px; font-weight: 800; color: var(--coral-deep); letter-spacing: 0.14em; display: block; margin-bottom: 8px; }
.feature-row h2 { margin-bottom: 12px; }
.feature-row ul.checks { list-style: none; padding: 0; margin-top: 16px; font-size: 14.5px; }
.feature-row ul.checks li { padding-left: 26px; position: relative; margin-bottom: 8px; }
.feature-row ul.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--coral-deep); font-weight: 700; }

/* =====================================================================
   導入ガイド: タイムライン
   ===================================================================== */
.timeline { list-style: none; padding: 0; counter-reset: tl; max-width: 720px; }
.timeline li { position: relative; padding: 0 0 44px 68px; counter-increment: tl; }
.timeline li::before {
  content: counter(tl, decimal-leading-zero);
  position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%;
  background: var(--coral); color: #fff; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.timeline li::after { content: ""; position: absolute; left: 22px; top: 52px; bottom: 6px; width: 2px; background: var(--border-strong); }
.timeline li:last-child::after { display: none; }
.timeline h3 { margin-bottom: 4px; }
.timeline .tl-meta { font-size: 12.5px; color: var(--coral-deep); font-weight: 700; display: block; margin-bottom: 8px; }
.timeline p { font-size: 14.5px; margin: 0; }

/* =====================================================================
   業種別: ケースカード(導入イメージ)
   ===================================================================== */
.case-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-card); }
.case-card .case-head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.case-card .case-head img { width: 48px; height: 48px; }
.case-card .case-head .ind { font-size: 12.5px; color: var(--ink-3); display: block; }
.case-card .case-head h3 { margin: 0; }
.case-card dl { margin: 0; font-size: 14px; }
.case-card dt { font-weight: 800; color: var(--ink); font-size: 12.5px; letter-spacing: 0.08em; margin-top: 16px; display: flex; align-items: center; gap: 8px; }
.case-card dt::before { content: ""; width: 12px; height: 2.5px; background: var(--coral); }
.case-card dd { margin: 4px 0 0; }
.case-effect { background: var(--coral-soft); border-radius: var(--radius-sm); padding: 12px 16px; margin-top: 18px; font-size: 13.5px; color: var(--coral-deep); font-weight: 700; }

/* =====================================================================
   FAQ: カテゴリピル / ヘルプ検索
   ===================================================================== */
.anchor-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 8px; }
.anchor-pills a { background: #fff; border: 1px solid var(--border-strong); border-radius: 999px; padding: 8px 20px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.anchor-pills a:hover { border-color: var(--coral); color: var(--coral-deep); }
.anchor-pills a:visited { color: var(--ink-2); }

.help-search { background: var(--paper-mid); border: 1px solid var(--border); border-radius: 20px; padding: 44px 32px; text-align: center; margin: 8px 0 48px; }
.help-search form { display: flex; gap: 10px; max-width: 560px; margin: 20px auto 0; }
.help-search input { flex: 1; font: inherit; font-size: 15px; padding: 13px 22px; border-radius: 999px; border: 1.5px solid var(--border-strong); background: #fff; color: var(--ink); }
.help-search .hint { font-size: 12.5px; color: var(--ink-3); margin: 12px 0 0; }

/* =====================================================================
   運用ガイド: セクション/手順
   ===================================================================== */
[id] { scroll-margin-top: 84px; }              /* 固定ヘッダー分のアンカーオフセット */
.guide-section { padding: 40px 0 8px; border-top: 1px solid var(--border); margin-top: 40px; }
.guide-section:first-of-type { border-top: none; margin-top: 0; padding-top: 8px; }
.guide-section .answer-first {
  font-size: 16.5px; font-weight: 700; color: var(--ink);
  background: var(--coral-soft); border-radius: var(--radius-sm);
  padding: 14px 18px; margin: 12px 0 20px;
}
.step-list { list-style: none; padding: 0; counter-reset: gs; }
.step-list li { position: relative; padding: 0 0 18px 44px; counter-increment: gs; font-size: 15px; }
.step-list li::before {
  content: counter(gs);
  position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.step-list li strong { color: var(--ink); }

/* =====================================================================
   現行LPから移植: 信頼バンド / Before-After / メディアカード / AIエージェント / 開発の柱
   ===================================================================== */
.trust-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; margin-bottom: 28px; }
.trust-stat .num { font-family: var(--font-display); font-weight: 800; font-size: 2.5rem; color: var(--ink); line-height: 1.2; display: block; }
.trust-stat .num small { font-size: 1rem; font-weight: 700; color: var(--ink-2); margin-left: 2px; }
.trust-stat .label { font-size: 14.5px; font-weight: 700; color: var(--ink); display: block; margin-top: 4px; }
.trust-stat .sub { font-size: 12.5px; color: var(--ink-3); display: block; margin-top: 2px; }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.badge-row span { background: #fff; border: 1px solid var(--border-strong); border-radius: 999px; padding: 6px 16px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }

.ba-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ba-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 20px; text-align: center; box-shadow: var(--shadow-card); }
.ba-item .label { font-size: 13px; font-weight: 700; color: var(--ink-3); display: block; margin-bottom: 10px; }
.ba-item .delta { display: flex; align-items: baseline; justify-content: center; gap: 10px; flex-wrap: wrap; }
.ba-item .before { color: var(--ink-3); font-size: 15px; }
.ba-item .arrow { color: var(--coral); font-weight: 700; }
.ba-item .after { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--coral-deep); }
.ba-item .after small { font-size: 0.75rem; color: var(--ink-3); font-weight: 700; margin-left: 4px; }
.ba-note { font-size: 12px; color: var(--ink-3); margin-top: 14px; }

.media-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
a.media-card { display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-decoration: none; color: inherit; box-shadow: var(--shadow-card); transition: border-color 0.15s ease, transform 0.15s ease; }
a.media-card:hover { border-color: var(--coral); transform: translateY(-2px); text-decoration: none; }
a.media-card:visited { color: inherit; }
.media-card .outlet { font-weight: 800; color: var(--ink); display: block; margin-bottom: 8px; font-size: 15px; font-family: var(--font-display); }
.media-card .headline { font-size: 13.5px; color: var(--ink-2); display: block; margin-bottom: 10px; line-height: 1.6; }
.media-card .meta { font-size: 12px; color: var(--ink-3); }

.agents-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.agent-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 16px; }
.agent-card .num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--coral); color: #fff; font-weight: 800; font-size: 13px; margin-bottom: 10px; }
.agent-card h3 { font-size: 0.95rem; margin-bottom: 6px; }
.agent-card h3 small { display: block; font-size: 10.5px; color: var(--ink-3); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.agent-card p { font-size: 12.5px; margin: 0; }
.agent-card.master { border-color: var(--coral); }
.agents-note { font-size: 12.5px; color: var(--ink-3); margin-top: 14px; }

.pull-quote { border: none; background: var(--paper-mid); border-radius: var(--radius); padding: 28px 32px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); text-wrap: balance; word-break: auto-phrase; }
.pull-quote cite { display: block; margin-top: 12px; font-size: 12.5px; color: var(--ink-3); font-style: normal; font-weight: 400; }

@media (max-width: 960px) {
  .trust-band, .ba-band, .media-cards { grid-template-columns: 1fr 1fr; }
  .agents-flow { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .trust-band, .ba-band, .media-cards, .agents-flow { grid-template-columns: 1fr; }
}

/* =====================================================================
   適合チェック(診断+料金シミュレーション)
   ===================================================================== */
.fitcheck-progress { display: flex; gap: 8px; justify-content: center; margin: 8px 0 28px; }
.fitcheck-progress span { width: 10px; height: 10px; border-radius: 50%; background: var(--paper-deep); }
.fitcheck-progress span.active { background: var(--coral); }
.fitcheck-progress span.done { background: var(--coral-deep); }
.fitcheck-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 44px 32px; text-align: center; box-shadow: var(--shadow-card); max-width: 640px; margin: 0 auto; display: none; }
.fitcheck-card.active { display: block; }
.fitcheck-card .qnum { font-family: var(--font-display); font-weight: 800; color: var(--coral-deep); letter-spacing: 0.12em; font-size: 13px; }
.fitcheck-card h2 { margin: 10px 0 28px; font-size: 1.35rem; }
.fitcheck-actions { display: flex; gap: 12px; justify-content: center; }
.fitcheck-result { text-align: center; max-width: 640px; margin: 0 auto; display: none; }
.score-ring { width: 120px; height: 120px; border-radius: 50%; border: 6px solid var(--coral); display: flex; align-items: center; justify-content: center; gap: 2px; margin: 0 auto 20px; font-family: var(--font-display); background: #fff; }
.score-ring .n { font-size: 2.6rem; font-weight: 800; color: var(--ink); line-height: 1; }
.score-ring .t { font-size: 1rem; color: var(--ink-3); }
.fitcheck-feedback { list-style: none; padding: 0; margin: 20px auto; text-align: left; display: inline-block; }
.fitcheck-feedback li { padding-left: 26px; position: relative; margin-bottom: 8px; font-size: 14.5px; }
.fitcheck-feedback li::before { content: "✓"; position: absolute; left: 0; color: var(--coral-deep); font-weight: 700; }

.estimate-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; max-width: 640px; margin: 0 auto; box-shadow: var(--shadow-card); }
.estimate-box label { font-weight: 700; color: var(--ink); font-size: 14px; display: block; margin-bottom: 10px; }
.estimate-box input[type="range"] { width: 100%; accent-color: var(--coral); }
.estimate-count { display: flex; align-items: baseline; gap: 8px; justify-content: center; margin: 10px 0 20px; }
.estimate-count input { font: inherit; font-size: 1.2rem; font-weight: 700; width: 5em; text-align: center; padding: 6px 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: #fff; color: var(--ink); }
.estimate-price { text-align: center; padding: 22px; background: var(--coral-soft); border-radius: var(--radius-sm); margin-bottom: 20px; }
.estimate-price .yen { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; color: var(--coral-deep); }
.estimate-price .note { font-size: 12.5px; color: var(--ink-3); }
.estimate-compare { font-size: 14.5px; }
.estimate-compare .row { display: flex; justify-content: space-between; padding: 10px 4px; border-bottom: 1px solid var(--border); }
.estimate-compare .row strong.ours { color: var(--coral-deep); }
.estimate-compare .save { text-align: right; font-weight: 800; color: var(--ink); margin-top: 12px; }

/* =====================================================================
   お問い合わせフォーム
   注: クラス名(form__* / form-success 等)とid(contact-form/submit-btn/error-*)は
   現行LPのmain.js(バリデーション・contact_submit計測)と互換のため変更禁止
   ===================================================================== */
.contact__form { max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 36px; box-shadow: var(--shadow-card); }
.form__honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form__group { margin-bottom: 22px; }
.form__label { display: block; font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 8px; }
.form__required { color: var(--coral-deep); margin-left: 4px; }
.form__input, .form__select, .form__textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  padding: 12px 16px; background: #fff;
  border: 1px solid var(--border-strong); border-radius: 8px;
}
.form__textarea { min-height: 130px; resize: vertical; }
.form__input::placeholder, .form__textarea::placeholder { color: var(--ink-3); }
.form__error { display: none; color: var(--coral-deep); font-size: 12.5px; margin-top: 6px; }
.form__error.is-visible { display: block; }
.form__input.is-error, .form__select.is-error, .form__textarea.is-error { border-color: var(--coral); }
.form__submit { width: 100%; margin-top: 6px; font-size: 16px; padding: 14px; }
.form__result { display: none; text-align: center; padding: 32px 0 8px; }
.form__result.is-visible { display: block; }
.form__result-title { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); margin: 14px 0 6px; }
.form__result-desc { font-size: 14.5px; color: var(--ink-2); }


/* ヘルプ検索の結果表示 */
.help-results { max-width: 640px; margin: 18px auto 0; text-align: left; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.help-result { display: block; padding: 14px 18px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--border); }
.help-result:last-child { border-bottom: none; }
.help-result:hover { background: var(--coral-soft); text-decoration: none; }
.help-result:visited { color: inherit; }
.help-result .cat { display: inline-block; font-size: 11px; font-weight: 700; color: var(--coral-deep); background: var(--coral-soft); border-radius: 999px; padding: 1px 10px; margin-bottom: 4px; }
.help-result .ttl { display: block; font-weight: 700; color: var(--link); font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; }
.help-result .snip { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.help-noresult { padding: 16px 18px; font-size: 14px; margin: 0; }
.hint-kw { background: none; border: none; font: inherit; font-size: 12.5px; color: var(--link); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0; }

/* =====================================================================
   モバイルファースト補強
   ===================================================================== */
.mobile-cta-bar { display: none; }
@media (max-width: 620px) {
  .mobile-cta-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    display: flex; gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(250, 249, 245, 0.96); backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
  }
  .mobile-cta-bar .btn { flex: 1; padding: 12px 10px; font-size: 14px; }
  body { padding-bottom: 76px; }
  .anchor-pills { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
  .anchor-pills a { white-space: nowrap; }
  .page-title-block { padding: 28px 0 32px; }
  .cta-band .container { gap: 20px; }
}

/* =====================================================================
   レスポンシブ
   ===================================================================== */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 28px; }
  .grid-3, .steps, .hub-nav { grid-template-columns: 1fr 1fr; }
  .layout-side { grid-template-columns: 1fr; }
  .side-rail { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .global-nav { display: none; }
}
@media (max-width: 620px) {
  .grid-3, .grid-2, .steps, .hub-nav { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { padding: 56px 0; }
  .header-cta .btn-ghost { display: none; }
}
