/*
  見本の画面の見た目（LP と一緒に公開する。架空のデータ）。
  色と字は LP（lp/src/style.css）・客のプログラム（gas/Style.gs の DS_）とそろえる（2026-09-28 開発部 デザイン係）。
  デモは外へ通信しないので、字の形は読み込まない（入っていればその字、無ければヒラギノで出る）。
  枠の中の「Googleの画面らしさ」（フォーム・シート・Gmail）は、本物に近づけるための借り物の見た目。
*/
:root {
  --ink: #1c2b29;
  --muted: #566663;
  --faint: #8a9794;
  --paper: #fafbf8;
  --white: #ffffff;
  --tint: #eaf2ee;
  --line: #d6e0db;
  --green: #14524c;
  --green-deep: #0e3d38;
  --green-soft: #d3e6df;
  --yellow: #f2b632;
  --yellow-soft: #fdf1d2;
  --high: #7a2a10; --high-soft: #f9ddd3;
  --mid: #6b4a00; --mid-soft: #fdf1d2;
  --low: #2f4a66; --low-soft: #e4ebf2;
  --ph: #b3261e;
  --g-line: #dadce0;
  --g-muted: #5f6368;
  --font-head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  --font-body: "BIZ UDPGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  --r-lg: 20px;
  --r-md: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  line-break: strict;
  overflow-wrap: anywhere;
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
a { color: var(--green); text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }
.small { font-size: 13px; color: var(--muted); }
.center { text-align: center; }
[hidden] { display: none !important; }

.sample-banner {
  position: sticky; top: 0; z-index: 20;
  background: var(--yellow); color: var(--ink); text-align: center;
  padding: 6px 12px; font-size: 14px; line-height: 1.5; border-bottom: 1px solid rgba(28, 43, 41, .18);
}
.sample-banner b { font-weight: 700; }
.sample-banner span { font-weight: 400; margin-left: .8em; font-size: 12.5px; }
@media (max-width: 599px) { .sample-banner { font-size: 13px; padding: 6px 8px; } .sample-banner span { display: block; margin: 0; font-size: 11.5px; } }
.brand-home { color: inherit; text-decoration: none; }
.foot-links { margin-top: 8px; }

header.top { background: var(--white); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { header.top { position: sticky; top: 34px; z-index: 10; } }
header.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { font-family: var(--font-head); font-weight: 700; font-size: 19px; color: var(--green-deep); line-height: 1.3; }
.brand small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--muted); }
nav.steps { display: flex; gap: 4px; flex-wrap: wrap; }
nav.steps a { text-decoration: none; color: var(--muted); padding: 6px 12px; border-radius: 999px; font-size: 14px; white-space: nowrap; }
nav.steps a b { margin-right: 4px; font-weight: 400; }
nav.steps a:hover { background: var(--tint); color: var(--green-deep); }
nav.steps a.on { background: var(--green); color: #fff; }

/* .wrap（左右の余白）より強くして、上の余白が .wrap に消されないように */
main.wrap { padding-top: 32px; padding-bottom: 48px; }
.lead-box { margin-bottom: 22px; max-width: 46em; }
.lead-box .who { margin: 0; color: var(--green); font-weight: 700; font-size: 13px; }
.lead-box h1 { font-family: var(--font-head); margin: 2px 0 8px; font-size: 26px; line-height: 1.4; color: var(--green-deep); }
.lead-box p { margin: 0; }
.empty { background: var(--white); border: 1px dashed var(--line); border-radius: var(--r-md); padding: 32px; text-align: center; color: var(--muted); }
.next { text-align: right; margin-top: 18px; }
.btn { display: inline-block; background: var(--green); color: #fff; text-decoration: none; border-radius: 999px; padding: 9px 22px; font-weight: 700; }
.btn:hover { background: var(--green-deep); }

/* ① フォーム（Googleフォーム。テーマの色と背景は手で設定したときの見た目） */
.sample-picker { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; flex-wrap: wrap; }
.sample-picker p { margin: 5px 0 0; font-weight: 700; font-size: 14px; }
#sample-buttons { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
#sample-buttons button { border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 999px; padding: 5px 14px; font: inherit; font-size: 13px; cursor: pointer; }
#sample-buttons button:hover, #sample-buttons button.on { border-color: var(--green); background: var(--tint); }
.gform-bg { background: #e7efeb; border-radius: var(--r-lg); padding: 24px 12px 12px; }
.gform { max-width: 640px; margin: 0 auto; font-family: "Hiragino Sans", "Noto Sans JP", Roboto, sans-serif; }
.gform-banner { display: block; width: 100%; height: auto; border-radius: 8px; margin-bottom: 12px; }
.gform-card { background: #fff; border: 1px solid var(--g-line); border-radius: 8px; padding: 22px 24px; margin-bottom: 12px; }
.gform-head { border-top: 10px solid var(--green); }
.gform-head h2 { margin: 0 0 10px; font-size: 26px; font-weight: 400; line-height: 1.35; }
.gform-head p { margin: 0 0 8px; white-space: pre-wrap; font-size: 14px; line-height: 1.7; }
.gform-req { color: #d93025; font-size: 13px; }
.gform-section { padding: 0; overflow: hidden; }
.gform-section h3 { margin: 0; background: var(--green); color: #fff; font-size: 15px; font-weight: 700; padding: 10px 24px; }
.gform-section .help { padding: 10px 24px 12px; margin: 0; }
.gform-card label { display: block; font-size: 16px; margin-bottom: 4px; line-height: 1.5; }
.gform-card label .req { color: #d93025; margin-left: 4px; }
.gform-card .help { font-size: 12.5px; color: var(--g-muted); margin: 0 0 10px; }
.gform-card input, .gform-card textarea { width: 100%; border: none; border-bottom: 1px solid var(--g-line); font: inherit; font-size: 15px; padding: 6px 2px; background: transparent; resize: vertical; color: var(--ink); }
.gform-card input:focus, .gform-card textarea:focus { outline: none; border-bottom: 2px solid var(--green); }
.gform-actions { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 8px; }
.gform-actions button { background: var(--green); color: #fff; border: none; border-radius: 4px; padding: 10px 26px; font: inherit; font-size: 15px; cursor: pointer; }
.gform-actions .clear { background: none; color: var(--green); padding: 10px 8px; }
.gform-done .again { font-size: 14px; }

/* ② AIの整理 */
.match-note { background: var(--yellow-soft); border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-size: 14px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; } }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; }
.panel h3 { font-family: var(--font-head); margin: 0 0 10px; font-size: 16px; color: var(--green-deep); }
dl.kv { margin: 0; }
dl.kv dt { font-size: 12px; color: var(--muted); margin-top: 8px; }
dl.kv dd { margin: 0; white-space: pre-wrap; }
.mask { background: var(--tint); border-radius: 4px; padding: 0 3px; color: var(--green-deep); font-weight: 700; }
.result .row { display: grid; grid-template-columns: 9.5em 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--tint); }
@media (max-width: 520px) { .result .row { grid-template-columns: 1fr; gap: 2px; } }
.result .row:first-child { border-top: none; }
.result .row > span { color: var(--muted); font-size: 13px; padding-top: 2px; }
.result ol { margin: 0; padding-left: 1.4em; }
.result ul { margin: 0; padding-left: 1.2em; }
.stepno { display: inline-block; font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; margin-left: 6px; }
.badge { display: inline-block; border-radius: 999px; padding: 0 12px; font-weight: 700; }
.u-高 { background: var(--high-soft); color: var(--high); }
.u-中 { background: var(--mid-soft); color: var(--mid); }
.u-低 { background: var(--low-soft); color: var(--low); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--tint); color: var(--green-deep); border-radius: 999px; padding: 0 10px; font-size: 13px; }
.note-box { background: var(--tint); border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-top: 10px; }
.consult { background: var(--high-soft); border-left: 4px solid var(--high); border-radius: 6px; padding: 10px 14px; font-size: 13px; margin-top: 10px; }
.guarded { background: var(--yellow-soft); border-radius: 10px; padding: 8px 14px; font-size: 13px; margin-top: 10px; }

/* ③ スプレッドシート（Googleの画面を借りる。セルの色・幅・字は本物のプログラムが当てたもの） */
.sheet-tools { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; font-size: 14px; }
.gsheet { background: #fff; border: 1px solid var(--g-line); border-radius: 10px; overflow: hidden; font-family: "Hiragino Sans", "Noto Sans JP", Arial, sans-serif; }
.gsheet-bar { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--g-line); font-size: 14px; flex-wrap: wrap; }
.gsheet-icon { width: 16px; height: 20px; background: #188038; border-radius: 3px; display: inline-block; }
.gsheet-name { font-size: 15px; }
.gsheet-menus { position: relative; display: flex; gap: 2px; align-items: center; font-size: 13px; color: #3c4043; margin-left: auto; }
.gsheet-menus > span { padding: 3px 8px; }
.gsheet-svc { font: inherit; font-size: 13px; background: var(--tint); color: var(--green-deep); border: 1px solid var(--green-soft); border-radius: 6px; padding: 3px 10px; cursor: pointer; font-weight: 700; }
.gsheet-svc[aria-expanded="true"] { background: var(--green); color: #fff; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; background: #fff; border: 1px solid var(--g-line); border-radius: 6px; box-shadow: 0 4px 16px rgba(28, 43, 41, 0.18); padding: 6px 0; min-width: 300px; }
.menu-pop button { display: block; width: 100%; text-align: left; background: none; border: 0; font: inherit; font-size: 13.5px; padding: 6px 18px; cursor: pointer; color: #202124; }
.menu-pop button:hover { background: #f1f3f4; }
.menu-pop hr { border: 0; border-top: 1px solid var(--g-line); margin: 6px 0; }
.menu-pop .sub-name { display: flex; justify-content: space-between; padding: 6px 18px; font-size: 13.5px; color: #202124; }
.menu-pop .sub-items { border-left: 3px solid var(--green-soft); margin: 0 12px 4px 18px; }
.menu-pop .sub-items button { padding-left: 12px; }
.menu-note { margin: 6px 0 0; padding: 6px 18px 2px; font-size: 11.5px; color: var(--g-muted); border-top: 1px solid var(--g-line); }
.gsheet-scroll { overflow: auto; max-height: 70vh; }
.gsheet table { border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 13.3px; line-height: 1.45; color: #000; }
.gsheet th, .gsheet td { border-right: 1px solid #e2e3e3; border-bottom: 1px solid #e2e3e3; padding: 3px 5px; vertical-align: bottom; text-align: left; background-clip: padding-box; }
.gsheet td { background: #fff; }
.gsheet td.clip { white-space: nowrap; overflow: hidden; text-overflow: clip; }
.gsheet td.w { white-space: pre-wrap; }
.gsheet td.ov { white-space: nowrap; overflow: visible; }
.gsheet td.has-dd { position: relative; padding-right: 18px; }
.gsheet .dd { position: absolute; right: 4px; top: 4px; font-size: 10px; color: var(--muted); }
.gsheet thead th { position: sticky; top: 0; z-index: 3; background: #f8f9fa; color: var(--g-muted); font-weight: 400; text-align: center; font-size: 11px; height: 22px; }
.gsheet th.rn { position: sticky; left: 0; z-index: 2; background: #f8f9fa; color: var(--g-muted); font-weight: 400; text-align: center; font-size: 11px; width: var(--rn, 40px); }
.gsheet thead th.corner { z-index: 5; }
.gsheet tr.frozen-row td { position: sticky; top: 22px; z-index: 2; }
.gsheet td.fz { position: sticky; left: var(--rn, 40px); z-index: 1; box-shadow: 2px 0 0 #c4c7c5; }
.gsheet thead th.fz { left: var(--rn, 40px); z-index: 4; box-shadow: 2px 0 0 #c4c7c5; }
.gsheet tr.frozen-row td.fz { z-index: 3; }
.gsheet tr.frozen-row th.rn { position: sticky; top: 22px; left: 0; z-index: 4; }
.gsheet tr.frozen-row td { box-shadow: 0 2px 0 #c4c7c5; }
.gsheet tr.frozen-row td.fz { box-shadow: 2px 2px 0 #c4c7c5; }
.gsheet tr.mine td { outline: 2px solid var(--yellow); outline-offset: -2px; }
.gsheet-scroll.no-grid td { border-color: transparent; }
/* スマホの「主な列だけ」：列を細くし、字を少し小さく、日時や見立ては折り返して行の高さをそろえる */
.gsheet table.compact { font-size: 12px; line-height: 1.4; }
.gsheet table.compact td { font-size: 12px !important; padding: 3px 4px; }
.gsheet table.compact td.clip { white-space: normal; }
.gsheet table.compact th.rn { font-size: 10px; }
.gsheet .nw { white-space: nowrap; }
/* スマホでは表を画面の端まで広げて、見える列を1本ぶん増やす */
@media (max-width: 700px) { #s3 .gsheet { margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; } }
.gsheet-tabs { display: flex; gap: 2px; border-top: 1px solid var(--g-line); background: #f8f9fa; padding: 0 8px; font-size: 12.5px; overflow-x: auto; }
.gsheet-tabs button { font: inherit; font-size: 12.5px; background: none; border: 0; padding: 7px 14px 5px; color: var(--g-muted); border-bottom: 3px solid var(--tab, transparent); cursor: pointer; white-space: nowrap; }
.gsheet-tabs button.on { background: #fff; color: #188038; font-weight: 700; }

/* ④ メール（Gmailを借りる） */
.gmail { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); background: #fff; border: 1px solid var(--g-line); border-radius: 10px; overflow: hidden; }
@media (max-width: 860px) { .gmail { grid-template-columns: 1fr; } }
.gmail-list { list-style: none; margin: 0; padding: 0; border-right: 1px solid #eceff1; }
.gmail-list button { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid #eceff1; padding: 12px 14px; cursor: pointer; font: inherit; font-size: 13.5px; color: var(--ink); }
.gmail-list button:hover { background: #f5f7fa; }
.gmail-list button.on { background: var(--tint); }
.gmail-list .from { font-weight: 700; }
.gmail-list .date { float: right; color: var(--muted); font-size: 12px; }
.gmail-list .subj { display: block; }
.gmail-open { padding: 20px 24px; min-width: 0; }
.gmail-open h2 { margin: 0 0 12px; font-size: 20px; font-weight: 500; line-height: 1.45; }
.gmail-open .meta { font-size: 13px; color: var(--muted); border-bottom: 1px solid #eceff1; padding-bottom: 10px; margin-bottom: 16px; }
.mail-html { overflow-x: auto; }
.plain { margin-top: 18px; font-size: 13px; }
.plain summary { color: var(--muted); cursor: pointer; }
.plain .mailbody { background: #f8f9fa; border-radius: 8px; padding: 10px 14px; margin-top: 8px; }
.mailbody { white-space: pre-wrap; font-size: 14px; }
.mail-card { background: #fff; border: 1px solid var(--g-line); border-radius: 10px; padding: 18px 22px; }
.mail-card .meta { font-size: 13px; color: var(--muted); border-bottom: 1px solid #eceff1; padding-bottom: 8px; margin-bottom: 12px; }
.mail-card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 500; }
.mail-strip { background: #fff; border: 1px solid var(--g-line); border-radius: 10px; padding: 12px 18px; margin-bottom: 14px; font-size: 13.5px; }
.attach { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--g-line); border-radius: 6px; padding: 3px 10px; margin-top: 6px; font-size: 13px; }
.attach::before { content: "PDF"; background: #d93025; color: #fff; font-size: 10px; font-weight: 700; border-radius: 3px; padding: 0 4px; }

/* ⑤⑥ 文書（A4。書式は本物のプログラムが当てたもの。1pt＝紙の幅の 1/595.28） */
.paper-wrap { container-type: inline-size; margin-bottom: 10px; }
.paper {
  --u: calc(min(794px, 100cqw) / 595.28);
  width: calc(var(--u) * 595.28);
  min-height: calc(var(--u) * 841.89);
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 1px 3px rgba(28, 43, 41, .12), 0 10px 28px rgba(28, 43, 41, .07);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: calc(var(--u) * 10.5);
  line-height: 1.7;
  /* ページの切れ目（A4 の高さごとに薄い線） */
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--u) * 841.89 - 2px), var(--line) calc(var(--u) * 841.89 - 2px), var(--line) calc(var(--u) * 841.89));
}
.paper.one-page { height: calc(var(--u) * 841.89); overflow: hidden; }
.paper h1, .paper h2, .paper h3, .paper p { margin: 0; white-space: pre-wrap; }
.paper ul { margin: 0 0 calc(var(--u) * 6); padding-left: calc(var(--u) * 20); }
.paper table { border-collapse: collapse; margin: calc(var(--u) * 2) 0 calc(var(--u) * 12); }
.paper td { border: 1px solid; padding: calc(var(--u) * 5) calc(var(--u) * 8); vertical-align: top; }
.paper p.img { margin: calc(var(--u) * 4) 0 0; }
.paper img { image-rendering: pixelated; display: inline-block; }
.paper .pg-gap { list-style: none; margin: 0; padding: 0; }

h2.sub { font-family: var(--font-head); font-size: 18px; color: var(--green-deep); margin: 40px 0 12px; scroll-margin-top: 120px; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.subnav a { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; text-decoration: none; font-size: 13px; }
.subnav a:hover { border-color: var(--green); }

.foot { color: var(--muted); font-size: 12.5px; padding-bottom: 40px; }
