/* =========================================================
   里山しごとマッチ — 下層ページ共通スタイル
   style.css（トップページ／共通土台）の後に読み込む
   ========================================================= */

/* ---------------------------------------------------------
   ページヘッダー（下層ページ共通の見出し帯）
   --------------------------------------------------------- */
.page-head{
  background:
    repeating-linear-gradient(45deg, rgba(46,125,67,.03) 0 1px, transparent 1px 16px),
    var(--cream-2);
  border-bottom:1px solid var(--line);
  padding:26px 0 30px;
}
.page-head-inner{max-width:var(--max);margin:0 auto;padding:0 24px}
.page-title-lg{font-size:2rem;font-weight:900;color:var(--green-dark);line-height:1.35}
.page-lead{margin-top:10px;font-size:1rem;color:var(--text-muted);max-width:760px}

/* パンくず */
.breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:.8rem;color:var(--text-muted);margin-bottom:14px}
.breadcrumb a{color:var(--text-muted);transition:color .15s}
.breadcrumb a:hover{color:var(--green);text-decoration:underline}
.breadcrumb li{display:flex;align-items:center;gap:8px}
.breadcrumb li+li::before{content:"›";color:var(--green-accent);font-weight:800}
.breadcrumb [aria-current]{color:var(--green-dark);font-weight:700}

/* ページ本体の余白 */
.page-body{padding:48px 0 72px}
.page-body-narrow{max-width:860px;margin:0 auto;padding:48px 24px 72px}

/* ---------------------------------------------------------
   汎用パーツ
   --------------------------------------------------------- */
.card-plain{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:26px 28px;box-shadow:var(--shadow-sm);
}
.card-cream{
  background:var(--cream-2);border:1px solid var(--line);border-radius:var(--radius);padding:24px 26px;
}
.section-lead{font-size:1rem;color:var(--text-muted);margin-bottom:24px;max-width:760px}
.stack-lg>*+*{margin-top:40px}
.stack-md>*+*{margin-top:24px}
.text-center{text-align:center}

/* 注意・補足ボックス */
.notice{
  display:flex;gap:12px;background:var(--green-light);border-left:4px solid var(--green);
  border-radius:8px;padding:16px 18px;font-size:1rem;color:#33472f;line-height:1.75;
}
.notice-ico{flex:0 0 auto;color:var(--green);font-weight:900}
.notice strong{color:var(--green-dark)}
.notice-warn{background:#fdf4e7;border-left-color:#d9902b}
.notice-warn .notice-ico{color:#c07a1c}

/* 作業者登録の導線からユーザー登録に来たときの案内
   （ステップ一覧 .mini-flow と流れの画像は掲載をやめたため、
     残っているのは案内文のスタイルだけ） */
.notice-flow p{font-size:.92rem;line-height:1.85}

/* タグ・ラベル */
.tag{
  display:inline-block;background:var(--green-light);color:var(--green);
  font-size:.76rem;font-weight:800;padding:.24em .8em;border-radius:6px;
}
.tag-muted{background:#eef1e9;color:var(--text-muted)}

/* ---------------------------------------------------------
   規約・ポリシーなどの長文ドキュメント
   --------------------------------------------------------- */
.doc-meta{font-size:.82rem;color:var(--text-muted);margin-bottom:26px}
.doc-meta span+span{margin-left:16px}

/* 目次 */
.doc-toc{
  background:var(--cream-2);border:1px solid var(--line);border-radius:var(--radius);
  padding:20px 24px;margin-bottom:38px;
}
.doc-toc h2{font-size:1rem;color:var(--green-dark);margin-bottom:12px}
.doc-toc ol{
  display:grid;grid-template-columns:repeat(2,1fr);gap:6px 24px;
  counter-reset:none;
}
.doc-toc a{font-size:.86rem;color:#41544a;transition:color .15s}
.doc-toc a:hover{color:var(--green);text-decoration:underline}

/* 本文 */
.doc{font-size:.95rem;line-height:1.95;color:#3a4a3f}
.doc p{margin-bottom:14px}
.doc-intro{margin-bottom:34px}
.doc section{scroll-margin-top:90px}
.doc section+section{margin-top:34px;padding-top:30px;border-top:1px dashed var(--line)}
.doc h2{
  font-size:1.12rem;font-weight:800;color:var(--green-dark);margin-bottom:14px;
  padding-left:13px;border-left:4px solid var(--green);line-height:1.5;
}
.doc h3{font-size:1rem;font-weight:800;color:var(--green-dark);margin:22px 0 10px}
/* 条文の項（1. 2. …） */
.doc ol.clause{counter-reset:clause;margin-bottom:14px}
.doc ol.clause>li{
  counter-increment:clause;position:relative;padding-left:2.1em;margin-bottom:10px;
}
.doc ol.clause>li::before{
  content:counter(clause) ".";position:absolute;left:0;top:0;
  font-weight:800;color:var(--green);
}
/* 号（(1) (2) …） */
.doc ol.item{counter-reset:item;margin:8px 0 12px}
.doc ol.item>li{
  counter-increment:item;position:relative;padding-left:2.6em;margin-bottom:7px;
}
.doc ol.item>li::before{
  content:"(" counter(item) ")";position:absolute;left:0;top:0;color:var(--text-muted);font-weight:700;
}
/* 中黒リスト */
.doc ul.dots>li{position:relative;padding-left:1.1em;margin-bottom:6px}
.doc ul.dots>li::before{content:"・";position:absolute;left:0;color:var(--green-accent);font-weight:800}
.doc a.inline{color:var(--green);font-weight:700;text-decoration:underline;text-underline-offset:2px}
.doc a.inline:hover{text-decoration:none}

/* ページ末尾へ戻るリンク */
.doc-foot{margin-top:44px;padding-top:22px;border-top:1px solid var(--line);text-align:center}

/* ---------------------------------------------------------
   定義リスト（特定商取引法に基づく表記など）
   --------------------------------------------------------- */
.deflist{
  border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:#fff;
  box-shadow:var(--shadow-sm);
}
.deflist>div{display:grid;grid-template-columns:260px 1fr;border-bottom:1px solid var(--line)}
.deflist>div:last-child{border-bottom:0}
.deflist dt{
  background:var(--cream-2);padding:16px 20px;font-weight:800;color:var(--green-dark);font-size:.9rem;
  border-right:1px solid var(--line);
}
.deflist dd{padding:16px 20px;font-size:.92rem;line-height:1.85;color:#3a4a3f}
.deflist dd p+p{margin-top:8px}
.deflist dd ul.dots>li{position:relative;padding-left:1.1em}
.deflist dd ul.dots>li::before{content:"・";position:absolute;left:0;color:var(--green-accent)}
.deflist dd .sub{display:block;font-size:.84rem;color:var(--text-muted);margin-top:4px}

/* ---------------------------------------------------------
   サービス紹介ページ
   --------------------------------------------------------- */
/* 理念 */
.philosophy{
  position:relative;overflow:hidden;padding:64px 0;color:#fff;
  background:url("../image/footer.jpg") center/cover no-repeat;
}
.philosophy-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(31,61,43,.62),rgba(31,61,43,.74))}
.philosophy-inner{position:relative;z-index:1;text-align:center;max-width:820px;margin:0 auto;padding:0 24px}
.philosophy-label{font-size:.78rem;font-weight:800;letter-spacing:.22em;color:var(--green-accent);margin-bottom:16px}
.philosophy-title{font-size:2.1rem;font-weight:900;line-height:1.5;margin-bottom:22px}
.philosophy-text{font-size:1.02rem;line-height:2;opacity:.95}

/* 課題 → 解決 */
.issue-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:22px;align-items:stretch}
.issue-col{border-radius:var(--radius);padding:26px 24px;border:1px solid var(--line)}
.issue-col.before{background:#f7f5f0}
.issue-col.after{background:var(--green-light);border-color:var(--green-accent)}
.issue-col h3{font-size:1.08rem;color:var(--green-dark);margin-bottom:14px;display:flex;align-items:center;gap:10px}
.issue-col .badge-x{background:#e7ded2;color:#8a7a63;font-size:.72rem;font-weight:800;padding:.2em .7em;border-radius:5px}
.issue-col .badge-o{background:var(--green);color:#fff;font-size:.72rem;font-weight:800;padding:.2em .7em;border-radius:5px}
.issue-col ul>li{position:relative;padding-left:1.5em;margin-bottom:10px;font-size:.95rem;line-height:1.7}
.issue-col.before ul>li::before{content:"×";position:absolute;left:0;color:#b09a7a;font-weight:800}
.issue-col.after ul>li::before{content:"✓";position:absolute;left:0;color:var(--green);font-weight:800}

/* 全体像（依頼者 ↔ サービス ↔ 作業者） */
.overview{display:grid;grid-template-columns:1fr auto 1fr;gap:20px;align-items:center}
.overview-side{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px 22px;
  box-shadow:var(--shadow-sm);text-align:center;
}
.overview-side h3{font-size:1.05rem;color:var(--green-dark);margin-bottom:6px}
.overview-side p{font-size:.9rem;color:var(--text-muted);line-height:1.7}
.overview-core{
  background:var(--green);color:#fff;border-radius:var(--radius);padding:28px 26px;text-align:center;
  box-shadow:0 6px 20px rgba(46,125,67,.3);min-width:230px;
}
.overview-core h3{font-size:1.1rem;margin-bottom:10px}
.overview-core ul>li{font-size:.88rem;padding:5px 0;border-bottom:1px dotted rgba(255,255,255,.3)}
.overview-core ul>li:last-child{border-bottom:0}
.overview-arrow{display:flex;flex-direction:column;align-items:center;gap:6px;color:var(--green-accent);font-size:1.5rem;font-weight:800}
.overview-arrow small{font-size:.7rem;color:var(--text-muted);font-weight:700;white-space:nowrap}
/* 全体像の図（overview_pc / 960px以下は overview_sp に切替。WebP優先・JPEGフォールバック） */
.overview-figure{margin:0}
.overview-figure img{display:block;width:100%;height:auto;border-radius:var(--radius)}

/* 特徴（3カラム・アイコン付き） */
.point-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.point-card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px 24px;
  box-shadow:var(--shadow-sm);
}
.point-num{
  display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;
  background:var(--green-light);color:var(--green);font-weight:900;font-size:.95rem;margin-bottom:14px;
}
.point-card h3{font-size:1.05rem;color:var(--green-dark);margin-bottom:10px;line-height:1.45}
.point-card p{font-size:.95rem;color:var(--text-muted);line-height:1.8}

/* 縦並びの利用の流れ（サービス紹介用・トップの5ステップとは別表現） */
.vflow{position:relative;padding-left:34px}
.vflow::before{content:"";position:absolute;left:13px;top:8px;bottom:8px;width:2px;background:var(--green-accent)}
.vflow>li{position:relative;padding-bottom:30px}
.vflow>li:last-child{padding-bottom:0}
.vflow-num{
  position:absolute;left:-34px;top:0;width:28px;height:28px;border-radius:50%;background:var(--green);
  color:#fff;font-weight:800;font-size:.85rem;display:flex;align-items:center;justify-content:center;
  box-shadow:0 2px 8px rgba(46,125,67,.3);
}
.vflow h3{font-size:1.05rem;color:var(--green-dark);margin-bottom:6px}
.vflow p{font-size:.95rem;color:var(--text-muted);line-height:1.8}
.vflow-who{font-size:.72rem;font-weight:800;color:var(--green);margin-bottom:3px;letter-spacing:.04em}
/* 流れの中の補足（キャンセル・追加作業の扱いなど、条件に関わる注意書き） */
.vflow-note{
  display:block;margin-top:8px;padding:9px 12px;
  background:var(--cream-2);border-left:3px solid var(--green-accent);border-radius:0 6px 6px 0;
  font-size:.88rem;line-height:1.8;
}

/* 数値・エリア */
.area-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.area-step{
  background:var(--cream-2);border:1px solid var(--line);border-radius:var(--radius);
  padding:22px 20px;text-align:center;position:relative;
}
.area-step .step-tag{color:var(--green);font-size:.72rem;letter-spacing:.1em;font-weight:800;margin-bottom:6px;display:block}
.area-step h3{font-size:1.05rem;color:var(--green-dark);margin-bottom:6px}
.area-step p{font-size:.88rem;color:var(--text-muted)}
.area-step:not(:last-child)::after{
  content:"›";position:absolute;top:50%;right:-13px;transform:translateY(-50%);
  color:var(--green-accent);font-size:1.6rem;font-weight:800;
}

/* 対応エリア一覧（都道府県 ＞ エリア ＞ 市区町村。エリアマスタから動的に出力） */
.area-note{font-size:.95rem;color:var(--text-muted);line-height:1.9;margin-bottom:20px}
.area-note .tag{margin-right:8px;vertical-align:2px}

.area-pref{border-top:1px solid var(--line)}
.area-pref:first-of-type{border-top:0}
.area-pref>summary{
  display:flex;align-items:center;gap:12px;cursor:pointer;list-style:none;
  padding:14px 4px;font-weight:800;color:var(--green-dark);
}
.area-pref>summary::-webkit-details-marker{display:none}
/* 開閉の三角を自前で描く（ブラウザ既定のマーカーは位置が揃わないため） */
.area-pref>summary::before{
  content:"";flex:0 0 auto;width:0;height:0;
  border-left:6px solid var(--green);border-top:5px solid transparent;border-bottom:5px solid transparent;
  transition:transform .15s;
}
.area-pref[open]>summary::before{transform:rotate(90deg)}
.area-pref>summary:hover{color:var(--green)}
.area-pref-name{font-size:1.05rem}
.area-pref-count{margin-left:auto;font-size:.8rem;font-weight:600;color:var(--text-muted)}

.area-regions{padding:2px 0 18px 18px;display:grid;gap:16px}
.area-region h3{
  font-size:.86rem;font-weight:800;color:var(--green);margin-bottom:8px;
  padding-left:9px;border-left:3px solid var(--green-accent);
}
.area-cities{display:flex;flex-wrap:wrap;gap:6px 8px}
.area-cities a{
  display:inline-block;font-size:.85rem;color:#41544a;
  background:var(--cream-2);border:1px solid var(--line);border-radius:6px;padding:.28em .7em;
  transition:background .15s,color .15s,border-color .15s;
}
.area-cities a:hover{background:var(--green-light);color:var(--green);border-color:var(--green-accent)}
.area-foot{margin-top:20px;padding-top:18px;border-top:1px solid var(--line);font-size:.9rem;color:var(--text-muted)}
.area-foot a{color:var(--green);font-weight:700;text-decoration:underline}

@media (max-width:600px){
  .area-regions{padding-left:10px}
  .area-pref-count{flex:0 0 100%;margin-left:18px}
}

/* ページ下部の共通CTA */
.page-cta{background:var(--cream);padding:56px 0;text-align:center}
.page-cta h2{font-size:1.6rem;font-weight:900;color:var(--green-dark);margin-bottom:12px}
.page-cta p{font-size:1rem;color:var(--text-muted);margin-bottom:26px}
.page-cta-buttons{display:flex;flex-wrap:wrap;gap:14px;justify-content:center}

/* ---------------------------------------------------------
   サービスガイド（一覧・詳細）
   --------------------------------------------------------- */
.guide-layout{display:grid;grid-template-columns:1fr 280px;gap:40px;align-items:start}
.guide-side{position:sticky;top:88px}
.guide-side h2{font-size:.95rem;color:var(--green-dark);margin-bottom:12px}
.guide-side-box{
  background:var(--cream-2);border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px;
}
.guide-side-box+.guide-side-box{margin-top:18px}
.guide-side-nav>li+li{border-top:1px dotted var(--line)}
.guide-side-nav a{display:block;padding:9px 0;font-size:.88rem;color:#41544a;transition:color .15s}
.guide-side-nav a:hover{color:var(--green)}
.guide-side-nav .current{color:var(--green);font-weight:800}

/* ガイド内検索 */
.guide-search{display:flex;gap:8px;margin-bottom:34px}
.guide-search input{
  flex:1;font-size:.95rem;padding:.75em 1em;border:1px solid var(--line);border-radius:999px;
  font-family:inherit;color:var(--text);background:#fff;
}
.guide-search input:focus{outline:2px solid var(--green-accent);outline-offset:1px}

/* カテゴリ + 記事リンク */
.guide-cat+.guide-cat{margin-top:34px}
.guide-cat-head{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.guide-cat-ico{
  flex:0 0 auto;width:44px;height:44px;border-radius:10px;background:var(--green-light);
  display:flex;align-items:center;justify-content:center;color:var(--green);
}
.guide-cat-ico svg{width:22px;height:22px}
.guide-cat-head h2{font-size:1.18rem;font-weight:800;color:var(--green-dark)}
.guide-cat-head p{font-size:.86rem;color:var(--text-muted);margin-top:2px}
.guide-articles{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;
  box-shadow:var(--shadow-sm);
}
.guide-articles>li+li{border-top:1px solid var(--line)}
.guide-articles a{
  display:flex;align-items:center;gap:12px;padding:15px 20px;font-size:.95rem;color:#3a4a3f;
  transition:background .15s,color .15s;
}
.guide-articles a:hover{background:var(--green-light);color:var(--green-dark)}
.guide-articles a::after{content:"›";margin-left:auto;color:var(--green-accent);font-size:1.2rem;font-weight:800}
.guide-articles .new{background:var(--green);color:#fff;font-size:.66rem;font-weight:800;padding:.18em .55em;border-radius:4px}

/* ガイド詳細 */
.article{font-size:.98rem;line-height:2;color:#3a4a3f}
.article h2{
  font-size:1.2rem;font-weight:800;color:var(--green-dark);margin:38px 0 14px;
  padding-bottom:10px;border-bottom:2px solid var(--green-light);
}
.article h2:first-child{margin-top:0}
.article h3{font-size:1.05rem;font-weight:800;color:var(--green-dark);margin:26px 0 10px}
.article p{margin-bottom:16px}
.article ul.dots>li,.article ol.item>li{margin-bottom:8px}
.article ol.steps{counter-reset:st;margin:18px 0}
.article ol.steps>li{
  counter-increment:st;position:relative;padding:0 0 18px 46px;
}
.article ol.steps>li::before{
  content:counter(st);position:absolute;left:0;top:0;width:30px;height:30px;border-radius:50%;
  background:var(--green);color:#fff;font-weight:800;font-size:.85rem;
  display:flex;align-items:center;justify-content:center;
}
.article ol.steps>li strong{display:block;color:var(--green-dark);margin-bottom:3px}
.article-figure{
  background:var(--cream-2);border:1px dashed var(--line);border-radius:10px;
  padding:34px 20px;text-align:center;color:var(--text-muted);font-size:.86rem;margin:20px 0;
}
.article-related{margin-top:44px;padding-top:26px;border-top:1px solid var(--line)}
.article-related h2{font-size:1.05rem;color:var(--green-dark);margin-bottom:14px}
.article-nav{display:flex;justify-content:space-between;gap:16px;margin-top:34px;flex-wrap:wrap}
.article-nav a{
  font-size:.9rem;font-weight:700;color:var(--green);border:1px solid var(--green-accent);
  border-radius:999px;padding:.6em 1.3em;transition:background .15s;
}
.article-nav a:hover{background:var(--green-light)}

/* Q&A（アコーディオン） */
.qa-list>li+li{margin-top:12px}
.qa{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.qa summary{
  display:flex;align-items:flex-start;gap:12px;padding:16px 20px;cursor:pointer;
  font-weight:700;color:var(--green-dark);font-size:.98rem;list-style:none;
}
.qa summary::-webkit-details-marker{display:none}
.qa summary::after{content:"+";margin-left:auto;color:var(--green);font-weight:900;font-size:1.2rem;line-height:1}
.qa[open] summary::after{content:"−"}
.qa summary:hover{background:var(--green-light)}
.qa-q{
  flex:0 0 auto;width:24px;height:24px;border-radius:50%;background:var(--green);color:#fff;
  font-size:.78rem;font-weight:800;display:flex;align-items:center;justify-content:center;
}
.qa-body{padding:0 20px 18px 56px;font-size:.94rem;line-height:1.9;color:#4a5a4e}

/* ---------------------------------------------------------
   フォーム（ユーザー登録・ログインなど）
   --------------------------------------------------------- */
.form-layout{max-width:760px;margin:0 auto}
.form-card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:32px 34px;box-shadow:var(--shadow-sm);
}
.form-card+.form-card{margin-top:22px}
.form-card>h2{
  font-size:1.12rem;color:var(--green-dark);margin-bottom:22px;padding-left:13px;
  border-left:4px solid var(--green);line-height:1.5;
}
.field+.field{margin-top:20px}
.field-label{display:flex;align-items:center;gap:8px;font-size:.9rem;font-weight:800;color:var(--green-dark);margin-bottom:7px}
.req{background:#d94f4f;color:#fff;font-size:.66rem;font-weight:800;padding:.18em .5em;border-radius:4px}
.opt{background:#eef1e9;color:var(--text-muted);font-size:.66rem;font-weight:800;padding:.18em .5em;border-radius:4px}
.input,.select,.textarea{
  width:100%;font-size:.95rem;padding:.72em .9em;border:1px solid var(--line);border-radius:8px;
  background:#fff;color:var(--text);font-family:inherit;line-height:1.6;
}
.input:focus,.select:focus,.textarea:focus{outline:2px solid var(--green-accent);outline-offset:1px;border-color:var(--green-accent)}
.textarea{min-height:120px;resize:vertical}
.field-note{font-size:.82rem;color:var(--text-muted);margin-top:6px;line-height:1.7}
.field-row{display:grid;gap:12px}
.field-row-2{grid-template-columns:1fr 1fr}
.field-row-zip{grid-template-columns:180px auto;align-items:end}
.field-inline{display:flex;flex-wrap:wrap;gap:10px 22px}
.check,.radio{display:inline-flex;align-items:flex-start;gap:8px;font-size:.93rem;color:#3a4a3f;cursor:pointer;line-height:1.6}
.check input,.radio input{margin-top:.25em;accent-color:var(--green);width:17px;height:17px;flex:0 0 auto}
.agree-box{
  background:var(--cream-2);border:1px solid var(--line);border-radius:10px;padding:18px 20px;
}
.agree-box .check{font-weight:700;color:var(--green-dark)}
.agree-box a{color:var(--green);font-weight:700;text-decoration:underline;text-underline-offset:2px}
.form-actions{margin-top:28px;text-align:center}
.form-actions .btn{min-width:280px}
.form-sub{margin-top:16px;font-size:.88rem;color:var(--text-muted);text-align:center}
.form-sub a{color:var(--green);font-weight:700;text-decoration:underline}

/* ステップインジケータ */
.stepbar{display:flex;align-items:stretch;gap:0;margin-bottom:36px;border-radius:999px;overflow:hidden;border:1px solid var(--line)}
.stepbar li{
  flex:1;background:#fff;padding:13px 10px 13px 26px;font-size:.88rem;font-weight:700;color:var(--text-muted);
  position:relative;text-align:center;
}
.stepbar li:first-child{padding-left:16px}
.stepbar li:not(:last-child)::after{
  content:"";position:absolute;top:0;right:-14px;z-index:2;
  width:0;height:0;border-top:26px solid transparent;border-bottom:26px solid transparent;
  border-left:14px solid #fff;
}
.stepbar li.done{background:var(--green-light);color:var(--green)}
.stepbar li.done:not(:last-child)::after{border-left-color:var(--green-light)}
.stepbar li.current{background:var(--green);color:#fff}
.stepbar li.current:not(:last-child)::after{border-left-color:var(--green)}
.stepbar .step-no{display:inline-block;margin-right:6px;font-weight:900}

/* 登録の流れ図解（ユーザー登録ページ冒頭） */
.reg-flow{
  background:var(--cream-2);border:1px solid var(--line);border-radius:var(--radius);
  padding:26px 28px;margin-bottom:32px;
}
.reg-flow h2{font-size:1.08rem;color:var(--green-dark);margin-bottom:6px}
.reg-flow>p{font-size:.92rem;color:var(--text-muted);margin-bottom:22px}
.reg-track{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.reg-node{
  background:#fff;border:1px solid var(--line);border-radius:10px;padding:18px 16px;text-align:center;position:relative;
}
.reg-node .reg-no{
  display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;
  background:var(--green);color:#fff;font-size:.8rem;font-weight:800;margin-bottom:8px;
}
.reg-node h3{font-size:.98rem;color:var(--green-dark);margin-bottom:4px}
.reg-node p{font-size:.85rem;color:var(--text-muted);line-height:1.65}
.reg-node:not(:last-child)::after{
  content:"›";position:absolute;top:50%;right:-12px;transform:translateY(-50%);
  color:var(--green-accent);font-size:1.5rem;font-weight:800;z-index:2;
}
/* 作業者登録は「ユーザー登録の後」であることを示す分岐 */
.reg-branch{
  margin-top:20px;padding-top:20px;border-top:1px dashed var(--line);
  display:flex;gap:14px;align-items:flex-start;
}
.reg-branch-mark{
  flex:0 0 auto;background:var(--green);color:#fff;font-size:.72rem;font-weight:800;
  padding:.3em .8em;border-radius:6px;white-space:nowrap;
}
.reg-branch p{font-size:.92rem;color:#3a4a3f;line-height:1.8}
.reg-branch strong{color:var(--green-dark)}

/* ---------------------------------------------------------
   認証系（ログイン／メール認証／完了）
   --------------------------------------------------------- */
.auth-wrap{max-width:460px;margin:0 auto}
.auth-card{
  background:#fff;border:1px solid var(--line);border-top:4px solid var(--green);
  border-radius:var(--radius);padding:34px 32px;box-shadow:var(--shadow);
}
.auth-card h1{font-size:1.4rem;font-weight:900;color:var(--green-dark);text-align:center;margin-bottom:8px}
.auth-card .auth-lead{font-size:.9rem;color:var(--text-muted);text-align:center;margin-bottom:26px}
.auth-links{margin-top:20px;display:flex;flex-direction:column;gap:10px;text-align:center;font-size:.88rem}
.auth-links a{color:var(--green);font-weight:700;text-decoration:underline}
.auth-divider{
  display:flex;align-items:center;gap:12px;margin:26px 0 20px;color:var(--text-muted);font-size:.82rem;
}
.auth-divider::before,.auth-divider::after{content:"";flex:1;height:1px;background:var(--line)}

/* 2段階認証コード入力 */
.code-input{
  letter-spacing:.55em;text-align:center;font-size:1.5rem;font-weight:800;padding:.6em .4em;
  font-variant-numeric:tabular-nums;
}
.code-note{font-size:.85rem;color:var(--text-muted);text-align:center;margin-top:12px;line-height:1.8}

/* 完了画面 */
.done-hero{text-align:center;max-width:640px;margin:0 auto 44px}
.done-ico{
  width:78px;height:78px;border-radius:50%;background:var(--green-light);
  display:flex;align-items:center;justify-content:center;margin:0 auto 20px;
}
.done-ico svg{width:40px;height:40px}
.done-hero h1{font-size:1.6rem;font-weight:900;color:var(--green-dark);margin-bottom:12px;line-height:1.45}
.done-hero p{font-size:1rem;color:var(--text-muted);line-height:1.9}
.done-mail{
  display:inline-block;background:var(--cream-2);border:1px solid var(--line);border-radius:8px;
  padding:.6em 1.2em;font-weight:800;color:var(--green-dark);margin-top:14px;font-size:.95rem;
}

/* 完了画面の3導線カード */
.next-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.next-card{
  display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);
  border-radius:var(--radius);padding:26px 22px;box-shadow:var(--shadow-sm);text-align:center;
  transition:transform .15s,box-shadow .15s;
}
.next-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.next-card.primary{border-color:var(--green-accent);background:var(--green-light)}
.next-ico{
  width:60px;height:60px;border-radius:50%;background:var(--green-light);
  display:flex;align-items:center;justify-content:center;margin:0 auto 14px;
}
.next-card.primary .next-ico{background:#fff}
.next-ico svg{width:28px;height:28px}
.next-card h2{font-size:1.05rem;color:var(--green-dark);margin-bottom:8px;line-height:1.45}
.next-card p{font-size:.9rem;color:var(--text-muted);line-height:1.75;margin-bottom:18px;flex:1}

/* ---------------------------------------------------------
   レスポンシブ
   --------------------------------------------------------- */
@media (max-width:960px){
  .page-title-lg{font-size:1.6rem}
  .doc-toc ol{grid-template-columns:1fr}
  .guide-layout{grid-template-columns:1fr;gap:32px}
  .guide-side{position:static}
  .issue-grid{grid-template-columns:1fr}
  .overview{grid-template-columns:1fr}
  .overview-arrow{flex-direction:row;transform:rotate(90deg);margin:0 auto}
  .point-grid{grid-template-columns:1fr}
  .area-steps{grid-template-columns:1fr;gap:26px}
  .area-step:not(:last-child)::after{content:"⌄";top:auto;bottom:-22px;right:50%;transform:translateX(50%)}
  .next-cards{grid-template-columns:1fr}
  .reg-track{grid-template-columns:1fr;gap:24px}
  .reg-node:not(:last-child)::after{content:"⌄";top:auto;bottom:-19px;right:50%;transform:translateX(50%)}
  .deflist>div{grid-template-columns:1fr}
  .deflist dt{border-right:0;border-bottom:1px solid var(--line)}
  .philosophy-title{font-size:1.5rem}
}
@media (max-width:600px){
  .page-body{padding:34px 0 56px}
  .page-body-narrow{padding:34px 20px 56px}
  .form-card{padding:24px 20px}
  .card-plain{padding:22px 20px}
  .field-row-2,.field-row-zip{grid-template-columns:1fr}
  .form-actions .btn{min-width:0;width:100%}
  .doc h2{font-size:1.05rem}
  /* ステップは縦積みに（矢羽を解除） */
  .stepbar{flex-direction:column;border-radius:var(--radius)}
  .stepbar li{padding:12px 14px;text-align:left}
  .stepbar li:not(:last-child)::after{display:none}
  .stepbar li:not(:last-child){border-bottom:1px solid var(--line)}
  .qa-body{padding-left:20px}
}
