/* 白背景ベース＋緑（jade）アクセントの単一ライトテーマ */
:root {
  --paper: #ffffff;        /* ページ背景（白） */
  --band: #f2f8f5;         /* 帯・淡い緑がかった背景（セクション区切り） */
  --panel: #ffffff;        /* カード面 */
  --ink: #1c2722;          /* 本文（緑みのある濃色） */
  --muted: #61706a;        /* 補助テキスト */
  --line: #dbe6e0;         /* 罫線 */
  --jade: #3f6b5c;         /* 基調の緑（ブロック・アクセント） */
  --jade-deep: #2c5044;    /* 強調・CTA用の濃い緑 */
  --jade-ink: #ffffff;     /* 緑地の上のテキスト */
  --jade-soft: #e6f0eb;    /* 淡い緑（説明欄の塗り） */
  --seal: #b5432e;         /* 注意・免責（意味的な赤系。アクセントとは別） */
  --seal-soft: #f7e7e1;
  --caution: #8a6d1f;
  --caution-bg: #faf3dd;
  --caution-line: #c9a53a;
  --font-display: "Shippori Mincho", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--jade); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: 2px;
}

/* ---- App header ---- */
.app-header {
  border-bottom: 1px solid var(--line);
  padding: .9rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.app-header .brand-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: inherit;
}
.app-header .mark {
  width: 30px; height: 30px;
  display: block;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.app-header .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
}
.app-header .step-label {
  margin-left: auto;
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--muted);
}
.app-header .header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .8rem;
  color: var(--muted);
}
.app-header .header-right a { text-decoration: none; }
.credit-pill {
  display: inline-block;
  border: 1px solid var(--jade);
  color: var(--jade);
  padding: .1rem .6rem;
  font-family: var(--font-mono);
  font-size: .78rem;
}

/* ---- Auth card ---- */
.auth-wrap { max-width: 420px; margin: 0 auto; padding: 3rem 1.25rem 4rem; }
.auth-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--jade);
  padding: 1.75rem 1.75rem 2rem;
}
.auth-card h1 { font-size: 1.4rem; margin: 0 0 1.25rem; }
.auth-note { font-size: .82rem; color: var(--muted); margin-top: 1.25rem; }
.auth-msg { font-size: .88rem; margin: 1rem 0 0; padding: .75rem 1rem; }
.auth-msg.error { background: var(--seal-soft); border: 1px solid var(--seal); color: var(--seal); }
.auth-msg.success { background: var(--jade-soft); border: 1px solid var(--jade); color: var(--jade); }
.auth-card button[type="submit"] { width: 100%; margin-top: .5rem; }

/* ---- Dashboard ---- */
.dash-grid { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.dash-card {
  flex: 1 1 200px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.25rem 1.4rem;
}
.dash-card .big-num { font-family: var(--font-display); font-size: 2rem; color: var(--jade); }
.report-list { list-style: none; margin: 0; padding: 0; }
.report-list li {
  border: 1px solid var(--line);
  border-left: 3px solid var(--jade);
  background: var(--panel);
  padding: .9rem 1.1rem;
  margin-bottom: .6rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.report-list .r-title { font-weight: 700; flex: 1 1 auto; }
.report-list .r-date { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.wrap-wide { max-width: 1500px; }

.dashboard-tabs { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; margin: 2rem 0; }
@media (max-width: 700px) { .dashboard-tabs { grid-template-columns: 1fr; } }

.tab-bar { display: flex; flex-direction: column; gap: .2rem; }
.tab-btn {
  background: none; border: none; border-left: 3px solid transparent;
  padding: .7rem .9rem; margin: 0; text-align: left;
  font-size: .9rem; color: var(--muted); cursor: pointer;
}
.tab-btn.active { color: var(--jade); border-left-color: var(--jade); font-weight: 700; background: var(--jade-soft); }

.dashboard-content {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.6rem;
  min-height: 260px;
}
.tab-panel .form-stack input { margin-bottom: 0; }

.pack-rows { display: flex; flex-direction: column; gap: .8rem; margin-bottom: 2rem; }
.pack-row {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line);
  padding: 1rem 1.4rem;
}
.pack-row .p-label { font-weight: 700; min-width: 6rem; }
.pack-row .p-credits { font-family: var(--font-display); font-size: 1.3rem; color: var(--jade); min-width: 4rem; }
.pack-row .p-price { color: var(--muted); flex: 1 1 auto; }
.pack-row button { flex-shrink: 0; }

.credit-history-list { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.credit-history-list li {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  padding: .65rem 0; border-bottom: 1px solid var(--line);
  font-size: .85rem;
}
.credit-history-list .c-date { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.credit-history-list .c-reason { flex: 1 1 auto; }
.credit-history-list .c-delta { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.credit-history-list .c-delta.positive { color: var(--jade); }
.credit-history-list .c-delta.negative { color: var(--muted); }

.inquiry-box { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: .4rem; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

@media (prefers-reduced-motion: no-preference) {
  .wrap { animation: rise .4s ease-out; }
  @keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}

.eyebrow {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--jade);
  margin: 0 0 .5rem;
}

h1 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.4;
  margin: 0 0 .6rem;
  text-wrap: balance;
}

.admin-subnav {
  display: flex;
  gap: 1.2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}
.admin-subnav a {
  font-size: .85rem;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: .6rem;
  border-bottom: 2px solid transparent;
}
.admin-subnav a.active { color: var(--jade); border-bottom-color: var(--jade); }

/* ---- 管理画面: 監視モニター ---- */
#monitorBlock { margin-bottom: 1.5rem; }
#monitorSummary .dash-card { flex: 1 1 150px; padding: 1rem 1.1rem; }
#monitorSummary .m-label { font-size: .72rem; color: var(--muted); margin-bottom: .3rem; }
#monitorSummary .m-value { font-family: var(--font-display); font-size: 1.6rem; color: var(--jade); }
#monitorSummary .m-sub { font-size: .72rem; color: var(--muted); margin-top: .2rem; }
#monitorSummary .m-periods { display: flex; gap: .3rem; align-items: center; }
#monitorSummary .m-period {
  background: none; border: none; padding: .1rem .2rem;
  font-size: .72rem; color: var(--muted); cursor: pointer;
  font-family: inherit;
}
#monitorSummary .m-period:hover { color: var(--jade); text-decoration: underline; }
#monitorSummary .m-period.active { color: var(--jade); font-weight: 700; }

.monitor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; margin-top: 1.2rem; }
.monitor-panel { background: var(--panel); border: 1px solid var(--line); padding: 1rem 1.2rem; }
.monitor-panel h3 { font-size: .82rem; margin: 0 0 .8rem; color: var(--ink); }

.trend-chart { display: flex; flex-direction: column; gap: .35rem; }
.trend-row { display: flex; align-items: center; gap: .5rem; font-size: .72rem; }
.trend-row .t-label { flex: 0 0 62px; color: var(--muted); white-space: nowrap; }
.trend-row .t-bars { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.trend-row .t-bar-track { display: flex; align-items: center; gap: .35rem; height: 12px; }
.trend-row .t-bar { height: 8px; background: var(--jade); min-width: 2px; }
.trend-row .t-bar.logins { background: var(--jade); }
.trend-row .t-bar.diagnoses { background: var(--caution-line); }
.trend-row .t-count { font-size: .68rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.trend-legend { display: flex; gap: 1rem; font-size: .72rem; color: var(--muted); margin-bottom: .6rem; }
.trend-legend span { display: inline-flex; align-items: center; gap: .3rem; }
.trend-legend .dot { width: 8px; height: 8px; display: inline-block; }
.trend-legend .dot.logins { background: var(--jade); }
.trend-legend .dot.diagnoses { background: var(--caution-line); }
h2 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 .75rem;
}

p.lede { color: var(--muted); margin: 0 0 1.5rem; max-width: 42em; }

hr.rule { border: none; border-top: 1px solid var(--line); margin: 1.5rem 0; }

.disclaimer {
  background: var(--seal-soft);
  border: 1px solid var(--seal);
  border-left: 4px solid var(--seal);
  padding: .9rem 1.1rem;
  margin-bottom: 1.75rem;
  font-size: .88rem;
}

.sim-banner {
  background: var(--caution-bg);
  border: 1px solid var(--caution-line);
  border-left: 4px solid var(--caution-line);
  padding: .9rem 1.1rem;
  margin-bottom: 1.5rem;
  font-size: .85rem;
  color: var(--caution);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--jade);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.25rem;
}
.panel:last-child { margin-bottom: 0; }

/* ---- Flow steps (index page) ---- */
.flow { position: relative; margin: 0 0 .5rem; padding-left: 2.4rem; }
.flow::before {
  content: ""; position: absolute; left: .95rem; top: .4rem; bottom: .4rem;
  width: 1px; background: var(--line);
}
.flow-step { position: relative; padding-bottom: 1.4rem; }
.flow-step:last-child { padding-bottom: 0; }
.flow-step::before {
  content: attr(data-n);
  position: absolute; left: -2.4rem; top: 0;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--jade); color: var(--jade);
  font-family: var(--font-mono); font-size: .78rem;
  display: flex; align-items: center; justify-content: center;
}
.flow-step h3 { font-size: .95rem; margin: 0 0 .25rem; font-weight: 700; }
.flow-step p { margin: 0; color: var(--muted); }

/* ---- OCR reference image layout ---- */
.ocr-reference-layout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.ocr-image-pane {
  flex: 0 0 240px;
  position: sticky;
  top: 1rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.ocr-image-caption {
  font-size: .78rem;
  color: var(--muted);
  margin: 0 0 .5rem;
}
.ocr-image-pane img {
  display: block;
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border: 1px solid var(--line);
  background: var(--panel);
}
.ocr-fields-pane {
  flex: 1 1 300px;
  min-width: 240px;
}
@media (max-width: 640px) {
  .ocr-image-pane { position: static; flex-basis: 100%; }
}

/* ---- Forms ---- */
.field-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.field-row > div { flex: 1; min-width: 200px; }
label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .35rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], textarea, select {
  width: 100%;
  padding: .6rem .75rem;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-family: inherit;
  font-size: .95rem;
  margin-bottom: 1.1rem;
}
textarea { min-height: 4.5rem; resize: vertical; }

.checkbox-group label { display: inline-flex; align-items: center; gap: .35rem; font-size: .9rem; color: var(--ink); margin-right: 1.1rem; margin-bottom: .5rem; }
.checkbox-group input { margin: 0; }

.checkbox-inline { display: flex; align-items: center; gap: .45rem; font-size: .88rem; color: var(--ink); margin: -.3rem 0 1.1rem; }
.checkbox-inline input { margin: 0; width: auto; }

.pesticide-details {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: .9rem 1.1rem;
  margin-bottom: 1.1rem;
}
.pesticide-details summary {
  cursor: pointer;
  font-size: .9rem;
  color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.pesticide-details summary::-webkit-details-marker { display: none; }
.pesticide-details summary::after { content: '展開する ＋'; font-size: .78rem; color: var(--jade); flex-shrink: 0; white-space: nowrap; }
.pesticide-details[open] summary::after { content: '閉じる −'; }
.pesticide-details[open] summary { margin-bottom: .9rem; }
.pesticide-details-body .checkbox-group:first-child { margin-top: 0; }

.form-stack label { margin-bottom: 1rem; }
.form-stack input { margin-bottom: 0; }
.form-stack input:disabled { opacity: .6; }
.form-stack button[type="submit"] { margin-top: .3rem; }

button, .btn {
  display: inline-block;
  background: var(--jade);
  color: var(--paper);
  border: none;
  padding: .7rem 1.5rem;
  font-size: .95rem;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
button.secondary, .btn.secondary { background: transparent; color: var(--jade); border: 1px solid var(--jade); }
button:disabled { opacity: .45; cursor: default; }

.step { display: none; }
.step.active { display: block; }

/* ---- Step progress ---- */
.step-progress { margin-bottom: 1.75rem; }
.step-progress .track { display: flex; gap: .35rem; margin-bottom: .5rem; }
.step-progress .track span { flex: 1; height: 3px; background: var(--line); }
.step-progress .track span.done, .step-progress .track span.active { background: var(--jade); }
.step-progress .caption { font-size: .78rem; color: var(--muted); font-family: var(--font-mono); }

.step-nav { display: flex; justify-content: space-between; margin-top: 1.75rem; }

/* ---- Upload ---- */
.upload-zone {
  border: 1px dashed var(--line);
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  margin-bottom: 1rem;
}
.upload-list { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1rem 0 0; }
.upload-item { border: 1px solid var(--line); padding: .6rem; width: 150px; background: var(--panel); }
.upload-item img { width: 100%; height: 100px; object-fit: cover; }
.upload-item select { margin: .6rem 0 0; }

/* ---- Analyzing ---- */
.spinner-wrap { text-align: center; padding: 2rem 0; }
.spinner {
  width: 34px; height: 34px;
  border: 3px solid var(--line);
  border-top-color: var(--jade);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.5rem;
}
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- 処理中モーダル（レポート生成中など、時間のかかる処理の待機表示） ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(28, 39, 34, .55);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-box {
  background: var(--panel);
  padding: 2.2rem 2rem;
  max-width: 22rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.modal-box p { margin: 0; color: var(--ink); font-size: .92rem; line-height: 1.7; }
.modal-spinner {
  width: 34px; height: 34px;
  border: 3px solid var(--line);
  border-top-color: var(--jade);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.2rem;
}
@media (prefers-reduced-motion: reduce) { .modal-spinner { animation: none; } }

/* ---- Report tabs ---- */
.tabs { display: flex; gap: .3rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.tab-btn {
  background: none; border: none; padding: .65rem 1.1rem; font-size: .92rem;
  color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent;
  font-family: inherit;
}
.tab-btn.active { color: var(--jade); border-bottom-color: var(--jade); font-weight: 700; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.status-badge {
  display: inline-block; font-size: .72rem; padding: .12rem .55rem;
  font-weight: 700; font-variant-numeric: tabular-nums;
}
.status-present { background: var(--jade-soft); color: var(--jade); }
.status-missing { background: var(--seal-soft); color: var(--seal); }
.status-unclear { background: var(--caution-bg); color: var(--caution); }

.admin-notes {
  margin-top: .35rem;
  font-size: .78rem;
  color: var(--muted);
  max-width: 28em;
  white-space: pre-wrap;
}
.admin-notes-label { font-weight: 600; color: var(--ink); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
thead th {
  text-align: left; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); border-bottom: 2px solid var(--jade); padding: .5rem .7rem .5rem 0;
}
tbody td { padding: .65rem .7rem .65rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }

.error-box { background: var(--seal-soft); border: 1px solid var(--seal); padding: 1rem 1.1rem; color: var(--seal); }

.report-actions { display: flex; gap: .75rem; margin-top: 1.75rem; }

/* ---- Full report sections ---- */
.report-section { margin: 2.5rem 0; }
.report-section:first-child { margin-top: 0; }
.report-section h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: .5rem;
  margin: 0 0 1rem;
}
.report-section h3 { font-size: .95rem; margin: 1rem 0 .5rem; }

.risk-badge {
  display: inline-block; font-size: .85rem; font-weight: 700; padding: .25rem .8rem;
}
.risk-低 { background: var(--jade-soft); color: var(--jade); }
.risk-中 { background: var(--caution-bg); color: var(--caution); }
.risk-高 { background: var(--seal-soft); color: var(--seal); }

.level-badge {
  display: inline-block; font-size: .78rem; font-weight: 700; padding: .18rem .7rem;
}
.level-badge.level-high { background: var(--jade-soft); color: var(--jade); }
.level-badge.level-mid { background: var(--caution-bg); color: var(--caution); }
.level-badge.level-low { background: var(--seal-soft); color: var(--seal); }

.overview-grid { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: flex-start; }
.overview-grid .overview-table { flex: 1 1 320px; }
.overview-grid .overview-image { flex: 0 0 200px; }
.overview-grid .overview-image img {
  width: 100%; max-height: 260px; object-fit: contain;
  border: 1px solid var(--line); background: var(--panel);
}

.flow-diagram {
  font-family: var(--font-mono); font-size: .85rem; line-height: 1.6;
  background: var(--panel); border: 1px solid var(--line); padding: 1rem 1.5rem;
  white-space: pre; display: inline-block;
}

.persona-card {
  border: 1px solid var(--line); border-left: 3px solid var(--jade);
  padding: .8rem 1rem; margin-bottom: .75rem; background: var(--panel);
}
.persona-card .persona-name { font-weight: 700; }
.persona-card .persona-age { font-size: .78rem; color: var(--muted); margin-left: .5rem; }

.star-rating { color: var(--jade); letter-spacing: .05em; }
.star-rating .dim { color: var(--line); }

/* ==== ランディングページ ==== */
.section { padding: 4rem 1.25rem; }
.section.band { background: var(--band); }
.section.jade-band { background: var(--jade-deep); color: var(--jade-ink); }
.section-inner { max-width: 960px; margin: 0 auto; }
.section-inner.narrow { max-width: 720px; }

.section-head { margin-bottom: 2.25rem; }
.section-head .eyebrow { margin-bottom: .6rem; }
.section-head h2.big {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
.section-head p { color: var(--muted); margin: .8rem 0 0; max-width: 48em; }
.jade-band .section-head p { color: rgba(255,255,255,.82); }

/* Hero */
.hero { padding: 5rem 1.25rem 4rem; border-bottom: 1px solid var(--line); }
.hero-inner { max-width: 960px; margin: 0 auto; }
.hero h1.headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.28;
  letter-spacing: .01em;
  margin: .4rem 0 1.1rem;
  text-wrap: balance;
}
.hero .sub { font-size: 1.05rem; color: var(--muted); max-width: 40em; margin: 0 0 2rem; }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.hero-meta { margin-top: 1.5rem; font-size: .82rem; color: var(--muted); }
.trust-badges { display: flex; gap: 1rem; margin-top: 1.25rem; flex-wrap: wrap; }
.trust-badge {
  display: flex; flex-direction: column; align-items: flex-start; gap: .1rem;
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--jade);
  padding: .85rem 1.4rem; min-width: 9.5rem;
}
.trust-badge .t-num { font-family: var(--font-display); font-size: 2rem; color: var(--jade); line-height: 1; }
.trust-badge .t-label { font-size: .8rem; color: var(--muted); }
.hero-keywords {
  list-style: none; margin: 1.75rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.hero-keywords li {
  background: var(--jade-soft); color: var(--jade-deep);
  border: 1px solid var(--line);
  font-size: .8rem; padding: .3rem .8rem; white-space: nowrap;
}

/* Buttons: large / on-jade */
.btn.large { padding: .85rem 1.8rem; font-size: 1rem; }
.btn.on-jade { background: #fff; color: var(--jade-deep); }
.btn.on-jade:hover { background: #f0f5f2; }
.btn.ghost-jade { background: transparent; color: var(--jade-ink); border: 1px solid rgba(255,255,255,.5); }

/* Feature grid: 緑のブロック */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.feature-card {
  background: var(--jade);
  color: var(--jade-ink);
  padding: 1.5rem 1.5rem 1.6rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.feature-card .f-num {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em;
  color: rgba(255,255,255,.7);
}
.feature-card h3 { font-size: 1.05rem; margin: 0; font-weight: 700; }
.feature-card p { margin: 0; font-size: .9rem; color: rgba(255,255,255,.88); line-height: 1.75; }

/* Explanation panel: 淡い緑の説明欄 */
.explain {
  background: var(--jade-soft);
  border-left: 3px solid var(--jade);
  padding: 1.4rem 1.6rem;
}
.explain h3 { margin: 0 0 .5rem; font-size: 1.05rem; color: var(--jade-deep); }
.explain p { margin: 0; color: var(--ink); }

/* Process flow: 順序に意味があるので番号付き */
.process { display: flex; flex-direction: column; gap: 0; }
.process-step {
  display: flex; gap: 1.25rem; align-items: flex-start;
  padding: 1.25rem 0; border-top: 1px solid var(--line);
}
.process-step:first-child { border-top: none; }
.process-step .p-num {
  flex: 0 0 auto;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--jade); color: var(--jade-ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: .95rem; font-weight: 700;
}
.process-step .p-body h3 { margin: .2rem 0 .3rem; font-size: 1.05rem; }
.process-step .p-body p { margin: 0; color: var(--muted); font-size: .92rem; }

/* Pricing */
.price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.price-card { background: var(--panel); border: 1px solid var(--line); padding: 1.5rem; text-align: center; }
.price-card.highlight { border: 2px solid var(--jade); }
.price-card .p-name { font-weight: 700; }
.price-card .p-amount { font-family: var(--font-display); font-size: 2rem; color: var(--jade); margin: .3rem 0; }
.price-card .p-desc { font-size: .82rem; color: var(--muted); }
.price-card .btn { margin-top: 1rem; width: 100%; }

/* Success stories */
.success-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.success-card {
  background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--jade);
  padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .6rem;
}
.success-card .s-meta { font-size: .78rem; color: var(--muted); }
.success-card .s-product { font-family: var(--font-display); font-size: 1.1rem; }
.success-card .s-result {
  background: var(--jade-soft); color: var(--jade-deep);
  padding: .6rem .8rem; font-weight: 700; font-size: .9rem;
}
.success-card dl { margin: 0; }
.success-card dt { font-size: .74rem; color: var(--jade); letter-spacing: .04em; margin-top: .5rem; }
.success-card dd { margin: .15rem 0 0; font-size: .88rem; }
.success-card .s-voice { font-size: .85rem; color: var(--muted); border-left: 2px solid var(--line); padding-left: .75rem; }
.sample-note { font-size: .76rem; color: var(--muted); margin-top: 1rem; }

.faq-list { display: flex; flex-direction: column; gap: .6rem; }
.faq-item {
  background: var(--panel); border: 1px solid var(--line); padding: 1rem 1.25rem;
}
.faq-item summary {
  cursor: pointer; font-weight: 600; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--jade); flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: .75rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.7; }

/* スクロール連動フェードイン（宣伝ページのみ） */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

.reveal-group > * {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-group.is-visible > * { opacity: 1; transform: none; }
.reveal-group.is-visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-group.is-visible > *:nth-child(2) { transition-delay: .07s; }
.reveal-group.is-visible > *:nth-child(3) { transition-delay: .14s; }
.reveal-group.is-visible > *:nth-child(4) { transition-delay: .21s; }
.reveal-group.is-visible > *:nth-child(5) { transition-delay: .28s; }
.reveal-group.is-visible > *:nth-child(6) { transition-delay: .35s; }
.reveal-group.is-visible > *:nth-child(7) { transition-delay: .42s; }
.reveal-group.is-visible > *:nth-child(8) { transition-delay: .49s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-group > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Sample report download CTA */
.sample-cta {
  display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center;
  background: var(--jade-soft); border: 1px solid var(--jade);
  padding: 1.5rem 1.6rem;
}
.sample-cta .s-body { flex: 1 1 280px; }
.sample-cta .s-body h3 { margin: 0 0 .4rem; font-size: 1.1rem; color: var(--jade-deep); }
.sample-cta .s-body p { margin: 0; font-size: .9rem; color: var(--ink); }
.sample-cta .s-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* CTA band (ユニコネ・グローバル) */
.cta-band .section-inner { text-align: center; }
.cta-band h2.big { color: var(--jade-ink); }
.cta-partner {
  display: inline-block; margin: .5rem 0 1.5rem;
  font-family: var(--font-display); font-size: 1.3rem; color: #fff;
}
.cta-partner small { display: block; font-family: var(--font-body); font-size: .8rem; color: rgba(255,255,255,.7); margin-top: .3rem; letter-spacing: .04em; }
.cta-band .hero-cta { justify-content: center; }

/* クレジット消費リスク警告バナー（OCR実行後〜レポート完成前に表示） */
.credit-risk-banner {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--caution-bg);
  border-bottom: 1px solid var(--caution-line);
  color: var(--caution);
  font-size: .82rem;
  text-align: center;
  padding: .55rem 1rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: .8rem;
  color: var(--muted);
}
.site-footer .disc { max-width: 52em; margin: 0 auto .75rem; }
.site-footer .legal-links { margin: 0 0 .75rem; }
.site-footer .legal-links a { color: var(--muted); margin: 0 .6rem; }
.site-footer .legal-links a:hover { color: var(--jade); }

/* 法務ページ（特商法・利用規約・プライバシーポリシー） */
.legal-page h2 { font-family: var(--font-display); font-size: 1.1rem; margin: 2rem 0 .6rem; }
.legal-page p, .legal-page li { color: var(--ink, #333); line-height: 1.8; }
.legal-page ul { margin: 0 0 1rem; padding-left: 1.4rem; }
.legal-page ul li { margin-bottom: .4rem; }
.legal-table { width: 100%; border-collapse: collapse; margin: 1rem 0 2rem; font-size: .92rem; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: .7rem .9rem; text-align: left; vertical-align: top; }
.legal-table th { width: 11em; background: var(--band, #f7f6f2); font-weight: 600; white-space: nowrap; }
.legal-note { font-size: .82rem; color: var(--muted); margin-top: 1rem; }

@media print {
  body { background: #fff; color: #000; }
  button, .no-print { display: none !important; }
  .tab-panel { display: block !important; margin-bottom: 2rem; }
  .panel { break-inside: avoid; }
  .report-section { break-inside: avoid; margin: 1.5rem 0; }
}
