/* PROCENOVA 業務自動化デモ */
:root {
  --ink: #142334;
  --ink-2: #3b4a5a;
  --muted: #5d6b78;
  --line: #dfe4e8;
  --line-2: #c9d1d8;
  --bg: #f5f7f6;
  --paper: #ffffff;
  --navy: #12304a;
  --teal: #0b6e63;
  --teal-dark: #08564d;
  --teal-tint: #e3f2ef;
  --focus: #1b6ad1;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 35, 52, .06), 0 4px 16px rgba(20, 35, 52, .06);

  --s-match: #2f6b4f;   --s-match-bg: #e5f3ea;
  --s-variant: #0f6380; --s-variant-bg: #def1f7;
  --s-diff: #845400;    --s-diff-bg: #fbefd2;
  --s-aOnly: #5b3f99;   --s-aOnly-bg: #eee8fa;
  --s-bOnly: #2b5196;   --s-bOnly-bg: #e4ecfb;
  --s-dup: #b01f3a;     --s-dup-bg: #fde6ea;
  --s-review: #b03f06;  --s-review-bg: #ffead8;

  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Meiryo", "Yu Gothic UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  font-feature-settings: "palt" 0;
}
img, video { max-width: 100%; display: block; }
/* width・height 属性は読み込み前の場所取りにだけ使い、表示は元の比率のまま（幅いっぱい・高さは自動） */
img { height: auto; }
a { color: var(--teal-dark); }
a:hover { color: var(--teal); }
h1, h2, h3 { line-height: 1.4; margin: 0; word-break: auto-phrase; text-wrap: balance; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--paper); padding: 8px 12px; z-index: 100; border-radius: 8px; }
.skip:focus { top: 8px; }
[hidden] { display: none !important; }

/* ---- ボタン ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  border: 1px solid transparent; border-radius: 999px; padding: .62em 1.3em;
  font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.3;
  transition: background-color .15s, border-color .15s, color .15s, transform .05s;
  min-height: 44px;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-ghost { background: var(--paper); color: var(--teal-dark); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn-large { font-size: 1.05rem; padding: .8em 1.6em; min-height: 52px; }
.btn-small { padding: .4em 1em; min-height: 36px; font-size: .92rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---- ヘッダー ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 60px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(135deg, var(--teal) 0 50%, var(--navy) 50% 100%); align-self: center; }
.brand-name { font-weight: 800; letter-spacing: .06em; font-size: 1.05rem; }
.brand-sub { color: var(--muted); font-size: .85rem; }
.nav { display: flex; gap: 20px; font-size: .92rem; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--teal-dark); text-decoration: underline; }
@media (max-width: 900px) { .nav { display: none; } }
@media (max-width: 420px) { .brand-sub { display: none; } }

/* ---- ヒーロー ---- */
.hero { background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%); padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--teal-dark); font-weight: 700; font-size: .92rem; letter-spacing: .04em; margin-bottom: 12px; }
.hero h1 { font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.7rem); font-weight: 800; letter-spacing: .01em; color: var(--navy); }
.br-narrow { display: none; }
.lead { margin-top: 18px; color: var(--ink-2); font-size: 1.04rem; max-width: 36em; }
.lead strong { color: var(--ink); background: linear-gradient(transparent 62%, #cdebe5 62%); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-note { margin-top: 16px; font-size: .88rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.lock { flex: none; width: 14px; height: 14px; margin-top: 5px; border-radius: 3px; border: 2px solid var(--teal); position: relative; }
.lock::before { content: ""; position: absolute; left: 1px; right: 1px; top: -7px; height: 7px; border: 2px solid var(--teal); border-bottom: 0; border-radius: 6px 6px 0 0; }
.hero-video { margin: 0; }
.video-frame {
  aspect-ratio: 16 / 9; background: var(--navy); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px rgba(18, 48, 74, .08);
}
.video-frame video { width: 100%; height: 100%; object-fit: contain; background: #0f2236; }
.hero-video figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 900px) {
  .hero { padding-top: 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .br-wide { display: none; }
}
@media (max-width: 520px) {
  .br-narrow { display: inline; }
  .hero-actions .btn { width: 100%; }
}

/* ---- こんな作業に ---- */
.works { padding: 8px 0 28px; }
.works-title { font-size: 1rem; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.work-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.work-btn {
  width: 100%; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; cursor: pointer; display: grid; gap: 4px; box-shadow: 0 1px 2px rgba(20, 35, 52, .04);
  transition: border-color .15s, box-shadow .15s;
}
.work-btn:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.work-name { font-weight: 700; font-size: 1.02rem; }
.work-pair { color: var(--muted); font-size: .88rem; }
.work-go { color: var(--teal-dark); font-size: .88rem; font-weight: 700; }
@media (max-width: 760px) { .work-list { grid-template-columns: 1fr; } }

/* ---- セクション共通 ---- */
.section { padding: 64px 0; }
.section-head { margin-bottom: 28px; max-width: 46em; }
.section-head h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.85rem); color: var(--navy); font-weight: 800; }
.section-head p { margin-top: 10px; color: var(--ink-2); }
.demo { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---- タブ ---- */
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin-bottom: 22px; }
.tab {
  background: none; border: 0; padding: 10px 16px 12px; cursor: pointer; font-weight: 700; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -2px; display: flex; align-items: baseline; gap: 6px;
}
.tab[aria-selected="true"] { color: var(--teal-dark); border-bottom-color: var(--teal); }
.tab-note { font-size: .75rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 0 6px; }

.step-label { font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--ink); padding: 0; }
.step-no { width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .8rem; display: inline-grid; place-items: center; flex: none; }

/* ---- シナリオ ---- */
.scenario-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.scenario {
  text-align: left; background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; cursor: pointer; display: grid; gap: 6px; align-content: start; position: relative;
}
.scenario:hover { border-color: var(--line-2); }
.scenario[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-tint); }
.scenario[aria-pressed="true"]::after {
  content: "選択中"; position: absolute; top: 12px; right: 12px; font-size: .72rem; font-weight: 700;
  background: var(--teal); color: #fff; border-radius: 999px; padding: 1px 8px;
}
.scenario-title { font-weight: 800; font-size: 1.08rem; color: var(--navy); padding-right: 52px; }
.scenario-work { font-size: .9rem; color: var(--ink-2); }
.scenario-files { font-size: .78rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; }
@media (max-width: 860px) { .scenario-list { grid-template-columns: 1fr; } }

.sample-info { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fafbfb; }
.sample-info summary { cursor: pointer; padding: 12px 16px; font-weight: 700; font-size: .92rem; color: var(--ink-2); }
.sample-info-body { padding: 4px 16px 16px; display: grid; gap: 16px; font-size: .9rem; }
.file-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.file-card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px; min-width: 0; }
.file-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 8px; }
.file-card-head strong { font-size: .95rem; }
.file-card-head .muted { font-size: .8rem; }
.planted { margin: 0; padding-left: 1.2em; }
.planted li { margin: 2px 0; }
@media (max-width: 760px) { .file-cards { grid-template-columns: 1fr; } }
.muted { color: var(--muted); }

.preview-wrap { overflow: auto; max-height: 260px; border: 1px solid var(--line); border-radius: 8px; }
.preview { border-collapse: collapse; font-size: .78rem; white-space: nowrap; width: 100%; }
.preview th, .preview td { border-bottom: 1px solid var(--line); padding: 4px 8px; text-align: left; }
.preview th { position: sticky; top: 0; background: #eef2f1; font-weight: 700; }
.preview td.ln, .preview th.ln { color: var(--muted); text-align: right; background: #fafbfb; }
.ws { background: #ffe9a8; }

/* ---- 自分のファイル ---- */
.own-intro { color: var(--ink-2); margin-bottom: 8px; }
.mobile-hint { display: none; font-size: .88rem; color: var(--s-review); margin-bottom: 8px; }
@media (max-width: 760px) { .mobile-hint { display: block; } }
.drop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
@media (max-width: 760px) { .drop-grid { grid-template-columns: 1fr; } }
.drop { min-width: 0; }
.drop-title { font-weight: 700; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.side-tag { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-size: .78rem; font-weight: 800; color: #fff; flex: none; }
.side-a { background: var(--s-aOnly); }
.side-b { background: var(--s-bOnly); }
.drop-zone {
  display: grid; place-items: center; min-height: 112px; border: 2px dashed var(--line-2); border-radius: var(--radius);
  background: #fafbfb; cursor: pointer; text-align: center; padding: 16px; position: relative; transition: border-color .15s, background-color .15s;
}
.drop-zone:hover, .drop-zone.drag { border-color: var(--teal); background: var(--teal-tint); }
.drop-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop-zone:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.drop-text { font-weight: 700; color: var(--teal-dark); display: grid; gap: 2px; }
.drop-text small { font-weight: 400; color: var(--muted); }
.file-state { margin-top: 10px; display: grid; gap: 8px; font-size: .88rem; }
.file-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.file-meta strong { word-break: break-all; }
.enc-select { display: flex; gap: 6px; align-items: center; font-size: .85rem; }
.enc-select select { padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--paper); }
.warn { color: var(--s-review); font-weight: 700; }
.own-formats { font-size: .8rem; color: var(--muted); margin-top: 12px; }

/* ---- 設定 ---- */
.settings { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; margin-top: 24px; }
@media (max-width: 900px) { .settings { grid-template-columns: 1fr; } }
.mapping-card, .options-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: #fafbfb; margin: 0; min-width: 0; }
.mapping-summary { color: var(--ink-2); }
.mapping-summary b { color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; font-weight: 700; white-space: nowrap; }
.mapping-notes { margin-top: 8px; display: grid; gap: 4px; font-size: .85rem; color: var(--muted); }
.mapping-edit { margin-top: 10px; }
.mapping-edit summary { cursor: pointer; color: var(--teal-dark); font-weight: 700; font-size: .9rem; }
.mapping-editor { display: grid; gap: 10px; margin-top: 10px; }
.map-row { display: grid; grid-template-columns: auto 1fr auto 1fr auto; gap: 6px 8px; align-items: center; font-size: .88rem; }
.map-row .map-label { grid-column: 1 / -1; font-weight: 700; font-size: .82rem; color: var(--ink-2); }
.map-row select { width: 100%; min-width: 0; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--paper); }
.map-row .arrow { color: var(--muted); }
.map-row .remove { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.map-row .remove:hover { color: var(--s-dup); background: var(--s-dup-bg); }
.map-type { width: auto !important; }
.add-field { justify-self: start; }

.options-help { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
@media (max-width: 520px) { .options { grid-template-columns: 1fr; } }
.option { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; align-items: start; padding: 6px 4px; border-radius: 8px; cursor: pointer; }
.option:hover { background: var(--paper); }
.option input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--teal); }
.option-label { font-weight: 700; font-size: .9rem; line-height: 1.5; }
.option-example { grid-column: 2; font-size: .76rem; color: var(--muted); line-height: 1.45; }

/* ---- 結果 ---- */
.results { margin-top: 28px; }
.results-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 12px; }
.results-head h3 { font-size: 1.3rem; color: var(--navy); }
.results-meta { color: var(--muted); font-size: .9rem; }
.expected { border-radius: var(--radius); padding: 12px 16px; margin-bottom: 14px; font-size: .92rem; display: flex; gap: 10px; align-items: flex-start; }
.expected.ok { background: var(--s-match-bg); color: #1f4d37; }
.expected.changed { background: #f1f3f5; color: var(--ink-2); }
.expected .mark { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem; color: #fff; background: var(--s-match); margin-top: 1px; }
.expected.changed .mark { background: var(--muted); }

.counts { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
@media (max-width: 1060px) { .counts { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .counts { grid-template-columns: repeat(2, 1fr); } }
.count {
  --c: var(--ink); --cb: #eef1f3;
  border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: 10px; background: var(--paper);
  padding: 8px 10px; cursor: pointer; text-align: left; display: grid; gap: 0; min-height: 64px;
  transition: background-color .12s, border-color .12s;
}
.count:hover { background: var(--cb); }
.count[aria-pressed="true"] { background: var(--cb); border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); }
.count-label { font-size: .78rem; font-weight: 700; color: var(--c); line-height: 1.35; }
.count-num { font-size: 1.5rem; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--ink); }
.count-num small { font-size: .75rem; font-weight: 600; color: var(--muted); margin-left: 2px; }
.count[data-status="all"] { --c: var(--navy); --cb: #e9eef3; }
.count.zero .count-num { color: #a3adb6; }

.st-match { --c: var(--s-match); --cb: var(--s-match-bg); }
.st-variant { --c: var(--s-variant); --cb: var(--s-variant-bg); }
.st-diff { --c: var(--s-diff); --cb: var(--s-diff-bg); }
.st-aOnly { --c: var(--s-aOnly); --cb: var(--s-aOnly-bg); }
.st-bOnly { --c: var(--s-bOnly); --cb: var(--s-bOnly-bg); }
.st-dup { --c: var(--s-dup); --cb: var(--s-dup-bg); }
.st-review { --c: var(--s-review); --cb: var(--s-review-bg); }

.scenario-notes { display: grid; gap: 6px; margin-top: 12px; }
.scenario-note { font-size: .86rem; color: var(--ink-2); background: #f6f1e7; border-radius: 8px; padding: 8px 12px; border-left: 4px solid #d6b36a; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 16px; }
.search input { width: min(320px, 100%); padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); }
.search { flex: 1 1 220px; }
.filter-state { font-size: .85rem; color: var(--muted); margin: 10px 0 8px; }

.result-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.result-head, .result { display: grid; grid-template-columns: 150px minmax(110px, 180px) 1fr 120px; gap: 12px; padding: 10px 14px; align-items: start; }
.result-head { background: #eef2f1; font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.result { border-top: 1px solid var(--line); font-size: .9rem; }
.result:nth-child(even) { background: #fbfcfc; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--c); background: var(--cb); border-radius: 6px; padding: 2px 8px; line-height: 1.5; }
.hint { display: block; font-size: .75rem; color: var(--muted); margin-top: 2px; }
.key { font-weight: 700; word-break: break-all; font-variant-numeric: tabular-nums; }
.key .ws { font-weight: 400; }
.by { display: block; font-size: .74rem; color: var(--muted); font-weight: 400; }
.detail { display: grid; gap: 4px; min-width: 0; }
.reason { color: var(--ink-2); }
.diff-line { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.diff-field { font-size: .8rem; color: var(--muted); }
.val { font-variant-numeric: tabular-nums; font-weight: 700; border-radius: 4px; padding: 0 4px; word-break: break-all; }
.val-a { background: var(--s-aOnly-bg); }
.val-b { background: var(--s-bOnly-bg); }
.val-arrow { color: var(--muted); font-size: .8rem; }
.delta { font-size: .8rem; font-weight: 700; color: var(--s-diff); }
.same-note { font-size: .78rem; color: var(--muted); }
.lines { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.lines b { color: var(--ink-2); font-weight: 700; }
.empty { padding: 28px; text-align: center; color: var(--muted); }
@media (max-width: 760px) {
  .result-head { display: none; }
  .result { grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px; }
  .result .cell-status { grid-column: 1; }
  .result .cell-lines { grid-column: 2; grid-row: 1; text-align: right; }
  .result .cell-key, .result .cell-detail { grid-column: 1 / -1; }
}
.more-wrap { display: flex; justify-content: center; margin-top: 12px; }
.csv-note { font-size: .8rem; color: var(--muted); margin-top: 14px; }
.error { margin-top: 16px; background: var(--s-dup-bg); color: #7d1225; border-radius: var(--radius); padding: 12px 16px; font-weight: 700; }

/* ---- ほかにも ---- */
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .case-grid { grid-template-columns: 1fr; } }
.case { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(20, 35, 52, .04); }
.case-shot { margin: 0; background: #eef1f3; border-bottom: 1px solid var(--line); }
.case-shot img { width: 100%; height: auto; }

/* 押すと拡大表示する画像 */
.zoomable { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; text-align: left; color: inherit; }
/* 「拡大して見る」は画像に重ねず、画像のすぐ下に出す（背の低い画像でも内容を隠さない） */
.zoomable::after {
  content: "拡大して見る ＋"; display: block; text-align: right; font-size: .74rem; font-weight: 700; line-height: 1.5;
  color: var(--teal-dark); padding: 4px 8px 6px; pointer-events: none;
}
.zoomable:hover::after, .zoomable:focus-visible::after { text-decoration: underline; }
.zoom-tip { display: block; margin-top: 2px; }
.case-body { padding: 18px 20px 20px; display: grid; gap: 10px; align-content: start; }
.case-kind { font-size: .78rem; font-weight: 800; color: var(--teal-dark); letter-spacing: .06em; }
.case h3 { font-size: 1.08rem; color: var(--navy); }
.case-body > p:not(.case-kind):not(.case-proof) { color: var(--ink-2); font-size: .94rem; }
.case-proof { font-size: .8rem; color: var(--muted); border-top: 1px dashed var(--line-2); padding-top: 10px; }
.case-plain { background: linear-gradient(180deg, #ffffff, #f8faf9); }
.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list li { font-size: .82rem; background: var(--teal-tint); color: var(--teal-dark); border-radius: 999px; padding: 2px 10px; }

/* ---- 毎日自動で ---- */
.daily { background: #eef3f2; }
.flow { margin: 0 0 28px; }
.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: none; }
.flow-steps li {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 14px 14px;
  display: grid; gap: 4px; align-content: start; position: relative; font-size: .86rem; color: var(--ink-2);
}
.flow-steps li strong { color: var(--navy); font-size: .98rem; }
.flow-steps li:not(:last-child)::after {
  content: ""; position: absolute; right: -13px; top: 50%; width: 12px; height: 12px;
  border-top: 3px solid var(--teal); border-right: 3px solid var(--teal); transform: translateY(-50%) rotate(45deg); z-index: 1;
}
.flow-no { width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .82rem; }
.flow figcaption { margin-top: 12px; font-size: .88rem; color: var(--muted); }
@media (max-width: 900px) {
  .flow-steps { grid-template-columns: 1fr; gap: 16px; }
  .flow-steps li { grid-template-columns: 26px 1fr; column-gap: 12px; }
  .flow-steps li .flow-no { grid-row: span 2; }
  .flow-steps li:not(:last-child)::after { right: auto; left: 22px; top: auto; bottom: -13px; transform: rotate(135deg); }
}
.daily-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .daily-grid { grid-template-columns: 1fr; } }
.daily-shot { display: grid; gap: 16px; min-width: 0; }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.code-table { border-collapse: collapse; width: 100%; font-size: .88rem; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.code-table caption { text-align: left; font-weight: 700; color: var(--navy); font-size: .9rem; padding: 0 0 6px; }
.code-table th, .code-table td { padding: 6px 12px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.code-table thead th { background: #eef2f1; border-top: 0; font-size: .8rem; color: var(--ink-2); }
.code-table td[lang="en"] { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .82rem; white-space: nowrap; color: var(--ink); }
.shot figcaption { margin-top: 8px; font-size: .85rem; color: var(--muted); }
.daily-text h3 { font-size: 1.02rem; color: var(--navy); margin-bottom: 8px; }
.daily-text h3 + ul { margin-bottom: 20px; }
.check-list, .todo-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .92rem; }
.check-list li, .todo-list li { position: relative; padding-left: 24px; color: var(--ink-2); }
.check-list li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 6px; border-left: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(-45deg); }
.todo-list li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 11px; height: 11px; border: 2px solid var(--muted); border-radius: 3px; }

/* ---- このページについて ---- */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .about-grid { grid-template-columns: 1fr; } }
.tech-details { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.tech-details summary { cursor: pointer; padding: 12px 18px; font-weight: 700; color: var(--ink-2); font-size: .92rem; }
.tech-details summary:hover { color: var(--teal-dark); }
.tech-body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; padding: 4px 18px 18px; }
.tech-body h3 { font-size: .92rem; color: var(--navy); margin-bottom: 8px; }
.tech-body .todo-list { font-size: .86rem; }
@media (max-width: 760px) { .tech-body { grid-template-columns: 1fr; } }

/* ---- 画像の拡大表示 ---- */
.zoom { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0c2235; color: #fff; }
.zoom::backdrop { background: rgba(12, 34, 53, .9); }
.zoom[open] { display: flex; flex-direction: column; }
.zoom-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.zoom-title { font-size: .85rem; color: #d7e2ec; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zoom-close { flex: none; background: #fff; color: var(--navy); border: 0; border-radius: 999px; padding: 6px 16px; font-weight: 700; cursor: pointer; min-height: 40px; }
.zoom-body { flex: 1; overflow: auto; padding: 16px; display: grid; place-items: start center; }
.zoom-body img { max-width: none; width: auto; height: auto; background: #fff; border-radius: 6px; }
.zoom-note { font-size: .78rem; color: #b9c9d8; padding: 8px 14px 12px; }
@media (min-width: 761px) { .zoom-note { display: none; } }
.about-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 8px; align-content: start; }
.about-item h3 { font-size: 1.02rem; color: var(--navy); }
.about-item p { color: var(--ink-2); font-size: .93rem; }

/* ---- ご依頼の流れ ---- */
.order { background: var(--paper); border-top: 1px solid var(--line); }
.order-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.order-steps li {
  background: #fafbfb; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px 16px;
  display: grid; gap: 10px; align-content: start; position: relative; color: var(--ink); font-size: .96rem; line-height: 1.7;
}
.order-steps li:not(:last-child)::after {
  content: ""; position: absolute; right: -14px; top: 50%; width: 12px; height: 12px;
  border-top: 3px solid var(--teal); border-right: 3px solid var(--teal); transform: translateY(-50%) rotate(45deg); z-index: 1;
}
.order-steps p, .order-note { word-break: auto-phrase; }
.order-note { margin-top: 20px; padding: 12px 16px; border-radius: var(--radius); background: var(--teal-tint); color: var(--teal-dark); font-weight: 700; }
@media (max-width: 760px) {
  .order-steps { grid-template-columns: 1fr; gap: 18px; }
  .order-steps li { grid-template-columns: 26px 1fr; column-gap: 12px; align-items: start; }
  .order-steps li .flow-no { margin-top: 1px; }
  .order-steps li:not(:last-child)::after { right: auto; left: 22px; top: auto; bottom: -14px; transform: rotate(135deg); }
}

/* ---- お問い合わせ ---- */
.contact { background: var(--navy); color: #fff; }
.contact-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; }
@media (max-width: 900px) { .contact-inner { grid-template-columns: 1fr; } }
.contact h2 { font-size: clamp(1.35rem, 1.05rem + 1.2vw, 1.8rem); font-weight: 800; }
.contact-text p { margin-top: 12px; color: #d7e2ec; }
.contact-tips { font-size: .88rem; color: #b9c9d8 !important; border-left: 3px solid #4fb3a5; padding-left: 12px; }
.contact-links { display: grid; gap: 10px; }
.contact-link {
  display: grid; gap: 2px; text-decoration: none; color: #fff; border: 1px solid rgba(255, 255, 255, .28); border-radius: var(--radius);
  padding: 14px 18px; position: relative; transition: background-color .15s, border-color .15s;
}
.contact-link::after { content: "→"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); opacity: .8; }
.contact-link:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .6); color: #fff; }
.contact-primary { background: #fff; color: var(--navy); border-color: #fff; }
.contact-primary:hover { background: #e9f4f2; color: var(--navy); }
.contact-label { font-weight: 800; font-size: 1.02rem; }
.contact-desc { font-size: .82rem; opacity: .8; }

.site-footer { background: #0c2235; color: #b9c9d8; font-size: .85rem; padding: 24px 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; align-items: end; }
.footer-brand { color: #fff; font-weight: 700; }
.noscript { background: var(--s-review-bg); color: var(--s-review); padding: 12px; text-align: center; margin: 0; }

/* 動画・画面撮影用（?capture=1 のときだけ使う） */
.capture .site-header { position: static; }
