/* サポテンクラウド 使い方とよくある質問（SAPO-282）。スマホで片手で読む形が先。色はアプリと同じ緑。 */
:root {
  --green: #115A36;
  --green-2: #2CAC6E;
  --green-soft: #E6F4EC;
  --green-line: #CFE7D9;
  --ink: #14201A;
  --ink-2: #3B4641;
  --muted: #5C6761;
  --line: #E1E6E3;
  --canvas: #F4F6F5;
  --warn-soft: #FFF6E5;
  --warn: #8A5A00;
  --radius: 14px;
  --bar: 56px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--green); }
img { max-width: 100%; height: auto; }

/* ---- 上の帯 ---- */
.g-bar {
  position: sticky; top: 0; z-index: 30;
  height: var(--bar);
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.g-brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; color: var(--ink); text-decoration: none; }
.g-brand img { flex: none; border-radius: 7px; }
.g-brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.g-brand-text b { font-size: 15px; }
.g-brand-text small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-search-link, .g-menu-btn {
  flex: none; height: 40px; padding: 0 12px;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 20px; background: #fff;
  color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.g-search-icon { width: 15px; height: 15px; border: 2px solid currentColor; border-radius: 50%; position: relative; }
.g-search-icon::after { content: ""; position: absolute; width: 2px; height: 6px; background: currentColor; right: -4px; bottom: -5px; transform: rotate(-45deg); border-radius: 1px; }
.g-menu-icon, .g-menu-icon::before, .g-menu-icon::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 1px; position: relative; }
.g-menu-icon::before, .g-menu-icon::after { content: ""; position: absolute; left: 0; }
.g-menu-icon::before { top: -5px; }
.g-menu-icon::after { top: 5px; }

/* ---- 並び ---- */
.g-shell { display: block; }
.g-nav {
  position: fixed; z-index: 25; top: var(--bar); bottom: 0; left: 0;
  width: min(86vw, 340px);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: #fff; border-right: 1px solid var(--line);
  padding: 12px 10px 40px;
  transform: translateX(-102%); transition: transform .2s ease;
}
.g-nav-open .g-nav { transform: none; box-shadow: 0 10px 40px rgba(0,0,0,.18); }
.g-nav-open .g-col::before { content: ""; position: fixed; inset: var(--bar) 0 0 0; background: rgba(20,32,26,.25); z-index: 20; }
.g-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.45; }
.g-nav a:hover { background: var(--canvas); }
.g-nav a.is-current { background: var(--green-soft); color: var(--green); font-weight: 700; }
.g-nav-top { font-weight: 700; }
.g-nav-group { margin-top: 10px; }
.g-nav-group.is-single { margin-top: 2px; }
.g-nav-group.is-single a { font-weight: 700; }
.g-nav-head { margin: 8px 12px 2px; font-size: 13px; font-weight: 700; color: var(--muted); }
.g-nav ul { list-style: none; margin: 0; padding: 0; }
.g-soon { flex: none; font-size: 11px; font-weight: 700; color: var(--muted); background: var(--canvas); border: 1px solid var(--line); border-radius: 10px; padding: 0 7px; line-height: 20px; white-space: nowrap; }

/* ---- 本文 ---- */
.g-col { min-width: 0; }
main { max-width: 760px; margin: 0 auto; padding: 16px 16px 32px; }
.g-crumb { margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.g-crumb a { color: var(--muted); }
h1 { margin: 4px 0 10px; font-size: 25px; line-height: 1.4; letter-spacing: .01em; }
h2 { margin: 36px 0 10px; font-size: 21px; line-height: 1.45; padding-top: 4px; }
h3 { margin: 24px 0 6px; font-size: 18px; line-height: 1.5; }
p { margin: 8px 0; }
.g-lead { font-size: 17px; color: var(--ink-2); }
main ul, main ol { padding-left: 1.3em; margin: 8px 0; }
main li { margin: 4px 0; }
.g-ui { font-weight: 700; color: var(--green); }  /* アプリの画面の字（ボタンの名前など） */
.g-toc { margin: 14px 0 6px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.g-toc p { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.g-toc ol { margin: 0; padding-left: 1.4em; font-size: 15px; }

/* 答えの札（はい・いいえ） */
.g-answer { margin: 12px 0; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.g-answer .g-q { margin: 0; font-weight: 700; }
.g-answer .g-a { margin: 6px 0 0; }
.g-answer .g-a b { color: var(--green); font-size: 19px; margin-right: 4px; }
.g-note { margin: 12px 0; padding: 12px 14px; background: var(--warn-soft); border-radius: 12px; font-size: 15px; color: #4A3A10; }
.g-tip { margin: 12px 0; padding: 12px 14px; background: var(--green-soft); border-radius: 12px; font-size: 15px; }

/* アイコンの前と後 */
.g-icons { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 14px 0; padding: 16px 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.g-icons figure { margin: 0; text-align: center; font-size: 14px; }
.g-icons img { width: 76px; height: 76px; border-radius: 18px; display: block; margin: 0 auto 6px; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.g-icons figcaption b { display: block; font-size: 15px; }
.g-icons figcaption small { color: var(--muted); }
.g-arrow { font-size: 22px; color: var(--muted); }

/* 機能の場所の変更（旧アプリ → 新しいアプリ）の表。スマホでは 1 行を札に */
.g-map { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.g-map th, .g-map td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.g-map thead th { font-size: 13px; color: var(--muted); background: transparent; }
.g-map tbody tr { background: #fff; }
.g-map td:first-child { width: 40%; color: var(--ink-2); }
.g-map .is-gone td:last-child { color: var(--muted); }
@media (max-width: 599px) {
  .g-map thead { display: none; }
  .g-map, .g-map tbody, .g-map tr, .g-map td { display: block; width: 100%; }
  .g-map tr { margin: 0 0 8px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
  .g-map td { border: 0; padding: 8px 12px; }
  .g-map td:first-child { width: 100%; background: var(--canvas); font-size: 14px; }
  .g-map td:first-child::before { content: "旧　"; font-weight: 700; color: var(--muted); }
  .g-map td:last-child::before { content: "新　"; font-weight: 700; color: var(--green); }
}

/* 手順 */
.g-steps { list-style: none; margin: 14px 0; padding: 0; counter-reset: step; }
.g-step { counter-increment: step; margin: 0 0 18px; padding: 14px 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.g-step-text h3 { margin: 0 0 4px; font-size: 18px; display: flex; gap: 10px; align-items: baseline; }
.g-step-text h3::before { content: counter(step); flex: none; width: 28px; height: 28px; border-radius: 14px; background: var(--green); color: #fff; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; transform: translateY(-2px); }
.g-step-text p, .g-step-text ul { font-size: 16px; }
.g-shots { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.g-shot { margin: 0; flex: 0 1 260px; min-width: 0; text-align: center; }
.g-shot a { display: block; }
.g-shot img { display: block; width: 100%; max-width: 260px; margin: 0 auto; filter: drop-shadow(0 2px 8px rgba(20,32,26,.16)); }
.g-shots.is-two .g-shot img { max-width: 220px; }
.g-shot figcaption { margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.5; }
@media (min-width: 720px) {
  .g-step { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; }
  .g-shots { margin-top: 0; }
  .g-shot { flex-basis: 230px; }
}

/* 頁の終わり */
.g-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 40px 0 0; }
.g-pager a { display: flex; flex-direction: column; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-size: 15px; line-height: 1.45; min-width: 0; }
.g-pager small { color: var(--muted); font-size: 12px; }
.g-next { text-align: right; }
.g-soon-box { margin: 20px 0; padding: 28px 16px; text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.g-soon-title { font-size: 18px; font-weight: 700; color: var(--ink); }
.g-foot { max-width: 760px; margin: 0 auto; padding: 20px 16px 40px; font-size: 12px; color: var(--muted); text-align: center; }

/* トップ・検索 */
.g-hero { padding: 6px 0 4px; }
.g-hero h1 { font-size: 26px; }
.g-search { display: flex; gap: 8px; margin: 14px 0 6px; }
.g-search input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.g-search input:focus { outline: 2px solid var(--green-2); outline-offset: 0; border-color: transparent; }
.g-search button { flex: none; height: 48px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--green); color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.g-index-group h2 { font-size: 18px; margin: 26px 0 8px; }
.g-cards { display: grid; gap: 8px; }
.g-card { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; position: relative; }
.g-card b { font-size: 16px; line-height: 1.5; padding-right: 56px; }
.g-card span:not(.g-soon), .g-card small { font-size: 14px; color: var(--muted); line-height: 1.6; }
.g-card .g-soon { position: absolute; top: 14px; right: 12px; }
.g-card.is-soon b { color: var(--ink-2); font-weight: 600; }
.g-card:not(.is-soon) { border-color: var(--green-line); }
.g-card:not(.is-soon) b { color: var(--green); }
.g-search-count { font-size: 14px; color: var(--muted); }
#g-search-results { display: grid; gap: 8px; }

/* 広い画面: 並びを左にいつも出す */
@media (min-width: 1000px) {
  .g-menu-btn { display: none; }
  .g-shell { display: grid; grid-template-columns: 300px minmax(0, 1fr); }
  .g-nav { position: sticky; top: var(--bar); height: calc(100vh - var(--bar)); transform: none; width: auto; transition: none; }
  .g-nav-open .g-col::before { display: none; }
  main { padding: 24px 32px 40px; }
}

/* ---- サポテンクラウドの基本（4段目 C1） ---- */
/* 仕事の流れの図（段のまとまりを上から下へ。まとまりの中は札を左から右へ） */
.g-flow { list-style: none; margin: 14px 0; padding: 0; }
main .g-flow > li { margin: 0 0 22px; }
.g-flow-phase { position: relative; padding: 12px 14px; background: #fff; border: 1px solid var(--green-line); border-radius: var(--radius); }
.g-flow-phase:not(:last-child)::after { content: ""; position: absolute; left: 50%; bottom: -19px; margin-left: -7px; border: 7px solid transparent; border-top: 9px solid var(--green-2); border-bottom: 0; }
.g-flow-head { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--green); }
main .g-flow-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
main .g-flow-steps li { position: relative; margin: 0; padding: 3px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); font-size: 14px; font-weight: 700; line-height: 1.5; }
.g-flow-steps li + li::before { content: "›"; position: absolute; left: -14px; top: 50%; transform: translateY(-52%); color: var(--muted); font-weight: 400; font-size: 16px; }
.g-flow-steps li.is-opt { border-style: dashed; color: var(--muted); background: #fff; }
.g-flow-steps li.is-end { background: var(--green); border-color: var(--green); color: #fff; }
.g-flow-note { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }

/* ステータスの一覧（番号つきの札） */
main .g-stages { list-style: none; margin: 12px 0; padding: 0; counter-reset: stage; }
main .g-stages li { counter-increment: stage; position: relative; margin: 0 0 8px; padding: 10px 12px 10px 48px; background: #fff; border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 2px; }
.g-stages li::before { content: counter(stage); position: absolute; left: 12px; top: 11px; width: 26px; height: 26px; border-radius: 13px; background: var(--green-soft); color: var(--green); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.g-stages li.is-end::before { content: "✓"; background: var(--green); color: #fff; }
.g-stages b { font-size: 16px; }
.g-stages span { font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.g-stages .g-stages-next { font-size: 14px; font-weight: 700; color: var(--green); }

/* ふつうの表（答えで進み先が変わる報告・役割） */
.g-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.g-table th, .g-table td { text-align: left; vertical-align: top; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.g-table thead th { font-size: 13px; color: var(--muted); background: var(--canvas); }
.g-table tbody th { font-size: 14px; color: var(--green); background: var(--green-soft); }
.g-table tbody tr:last-child td { border-bottom: 0; }
.g-table-roles th:not(:first-child), .g-table-roles td:not(:first-child) { text-align: center; white-space: nowrap; padding-left: 6px; padding-right: 6px; }
.g-table-roles thead th { font-size: 12px; }

/* トップのいちばん下の小さな札（旧アプリをお使いだった方へ） */
.g-index-small { margin: 30px 0 0; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; }
.g-index-small a { font-weight: 700; }
