:root {
  --ink: #151f3a;
  --muted: #67718a;
  --line: #dfe4ee;
  --paper: #ffffff;
  --soft: #f4f6fa;
  --accent: #ff5a4f;
  --accent-dark: #e8463c;
  --blue: #3c6fff;
  --shadow: 0 22px 60px rgba(26, 39, 72, .12);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
button, input, textarea { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }

.site-header {
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 1.26rem; font-weight: 800; letter-spacing: -.04em; }
.brand b { color: var(--accent); }
.brand-mark { width: 36px; height: 40px; display: grid; place-items: center; color: #fff; background: var(--accent); border-radius: 8px 8px 8px 3px; font-weight: 900; box-shadow: 0 5px 14px rgba(255,90,79,.25); }
.privacy-chip { font-size: .84rem; font-weight: 700; color: #3b775d; background: #edf8f1; padding: 7px 13px; border-radius: 999px; }
.privacy-chip span { color: #35a66d; margin-right: 5px; font-size: .7rem; }

main { max-width: 1180px; margin: 0 auto; padding: 64px 24px 80px; }
.intro { text-align: center; max-width: 780px; margin: 0 auto 38px; }
.eyebrow, .step-label { color: var(--accent); font-size: .76rem; font-weight: 900; letter-spacing: .16em; margin: 0 0 8px; }
.intro h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1.12; letter-spacing: -.065em; }
.intro h1 span { color: var(--accent); }
.intro-copy { color: var(--muted); margin: 15px 0 0; font-size: 1.05rem; }

.tool-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 22px; }
.tool-card {
  min-height: 150px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper);
  text-align: left; cursor: pointer; display: grid; grid-template-columns: 50px 1fr auto; gap: 14px; align-items: start;
  transition: .2s ease; box-shadow: 0 5px 20px rgba(26,39,72,.04);
}
.tool-card:hover, .tool-card:focus-visible { transform: translateY(-3px); border-color: #bbc5d9; outline: none; box-shadow: 0 14px 34px rgba(26,39,72,.1); }
.tool-card.is-active { color: #fff; background: var(--ink); border-color: var(--ink); box-shadow: 0 16px 38px rgba(21,31,58,.22); }
.tool-card strong { display: block; font-size: 1.08rem; line-height: 1.35; margin: 2px 0 6px; }
.tool-card small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.tool-card.is-active small { color: #bec6d9; }
.card-arrow { align-self: end; font-size: 1.2rem; color: #98a2b7; }
.tool-card.is-active .card-arrow { color: var(--accent); }
.tool-icon { width: 46px; height: 46px; border-radius: 13px; background: #fff0ef; position: relative; display: block; color: var(--accent); }
.is-active .tool-icon { background: rgba(255,255,255,.1); }
.icon-merge i { position: absolute; width: 16px; height: 21px; border: 2px solid currentColor; border-radius: 2px; top: 11px; }
.icon-merge i:first-child { left: 10px; }.icon-merge i:last-child { left: 20px; top: 15px; background: inherit; }
.icon-split i { position: absolute; width: 13px; height: 23px; border: 2px solid currentColor; top: 11px; }
.icon-split i:first-child { left: 8px; }.icon-split i:last-child { right: 8px; }
.icon-compress { display: grid; grid-template-columns: 1fr 1fr; place-items: center; font-weight: 900; font-size: 1rem; }
.icon-organize { display: grid; grid-template-columns: repeat(2, 10px); grid-template-rows: repeat(2, 10px); place-content: center; gap: 4px; }
.icon-organize i { border: 2px solid currentColor; border-radius: 2px; }
.icon-edit { display: grid; place-items: center; font-size: 1.6rem; font-weight: 900; }
.icon-edit i { font-style: normal; }

.workspace { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 5vw, 48px); box-shadow: var(--shadow); }
.workspace-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.workspace-heading h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); letter-spacing: -.045em; margin: 0; line-height: 1.25; }
.workspace-heading p:not(.step-label) { color: var(--muted); margin: 6px 0 0; }
.text-button { border: 0; background: none; color: var(--blue); text-decoration: underline; cursor: pointer; white-space: nowrap; padding: 8px; }

.drop-zone { border: 2px dashed #c8cede; border-radius: 18px; min-height: 270px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 34px; text-align: center; cursor: pointer; background: linear-gradient(135deg, #fafbfe, #f4f6fb); transition: .2s; }
.drop-zone:hover, .drop-zone:focus-visible, .drop-zone.is-dragging { border-color: var(--accent); background: #fff8f7; outline: none; }
.drop-icon { width: 74px; height: 74px; border-radius: 21px; background: #fff; color: var(--accent); display: grid; place-items: center; margin-bottom: 15px; box-shadow: 0 9px 25px rgba(41,55,89,.1); }
.drop-zone strong { font-size: 1.25rem; }
.drop-zone > span:not(.drop-icon):not(.select-button) { color: var(--muted); font-size: .9rem; margin-top: 3px; }
.select-button { margin-top: 18px; color: #fff; background: var(--accent); border-radius: 10px; padding: 10px 24px; font-weight: 800; box-shadow: 0 7px 16px rgba(255,90,79,.22); }

.notice { padding: 13px 16px; border-radius: 10px; margin: 0 0 18px; font-weight: 650; }
.notice.error { color: #9b2d28; background: #fff0ef; border: 1px solid #ffc9c5; }
.notice.success { color: #24694c; background: #eef9f2; border: 1px solid #bce7cc; }

.file-list { display: grid; gap: 10px; margin-top: 22px; }
.file-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; }
.file-badge { width: 38px; height: 42px; background: #fff; border: 1px solid #d7dce7; border-radius: 6px; display: grid; place-items: center; color: var(--accent); font-size: .68rem; font-weight: 900; }
.file-meta { min-width: 0; }.file-meta strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.file-meta small { color: var(--muted); }
.row-actions { display: flex; gap: 6px; }
.icon-button { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; border: 1px solid #d6dce8; background: #fff; border-radius: 8px; cursor: pointer; font-weight: 800; }
.icon-button:hover { border-color: var(--accent); color: var(--accent); }
.icon-button.danger:hover { background: #fff0ef; }

.settings { margin-top: 24px; padding: 22px; background: var(--soft); border-radius: 14px; }
.settings h3 { margin: 0 0 14px; font-size: 1rem; }
.option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option label { display: block; height: 100%; border: 1px solid #d6dce8; background: #fff; padding: 13px; border-radius: 10px; cursor: pointer; }
.option label strong, .option label small { display: block; }.option label small { color: var(--muted); margin-top: 2px; }
.option input:checked + label { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: #f2f6ff; }
.field-label { display: block; font-weight: 800; margin-bottom: 7px; }
textarea { width: 100%; min-height: 100px; border: 1px solid #cbd2e1; border-radius: 10px; padding: 12px; background: #fff; resize: vertical; }
.field-help { color: var(--muted); font-size: .85rem; margin: 6px 0 0; }
.warning-text { color: #8a5a15; background: #fff8e8; border-radius: 8px; padding: 10px 12px; font-size: .86rem; margin: 14px 0 0; }
.primary-button { width: 100%; border: 0; border-radius: 12px; color: #fff; background: var(--accent); font-weight: 900; font-size: 1.02rem; padding: 15px 22px; margin-top: 22px; cursor: pointer; box-shadow: 0 9px 20px rgba(255,90,79,.23); }
.primary-button:hover { background: var(--accent-dark); }.primary-button:disabled { opacity: .5; cursor: not-allowed; }
.add-button { border: 1px solid #cbd2e1; background: #fff; border-radius: 10px; padding: 10px 14px; font-weight: 750; cursor: pointer; margin-top: 12px; }

.pages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 22px; }
.page-card { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 10px; position: relative; }
.page-card.is-dragging { opacity: .45; }.page-card.is-over { outline: 2px solid var(--blue); }
.page-preview { aspect-ratio: 1 / 1.3; background: #e3e7ef; border-radius: 7px; overflow: hidden; display: grid; place-items: center; }
.page-preview { position: relative; }
.page-header-footer { position: absolute; inset: 7% 7%; pointer-events: none; font-size: clamp(5px, .52vw, 8px); line-height: 1.15; }
.page-header, .page-footer { position: absolute; left: 0; right: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.page-header { top: 0; }.page-footer { bottom: 0; }
.page-header span, .page-footer span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.page-header span:nth-child(2), .page-footer span:nth-child(2) { text-align: center; }.page-header span:last-child, .page-footer span:last-child { text-align: right; }
.page-preview canvas { max-width: 100%; max-height: 100%; box-shadow: 0 2px 8px rgba(0,0,0,.12); transition: transform .2s; }
.page-number { display: block; text-align: center; font-weight: 800; margin: 7px 0 5px; font-size: .85rem; }
.page-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.page-actions button { border: 1px solid #d6dce8; background: #fff; border-radius: 6px; min-height: 32px; cursor: pointer; }
.page-actions button:hover { color: var(--accent); border-color: var(--accent); }

.header-footer-settings { margin-top: 24px; padding: 22px; border: 1px solid #cbd2df; border-radius: 14px; background: linear-gradient(180deg, #f8fafc, #eef2f7); }
.header-footer-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 14px; }
.header-footer-heading h3 { margin: 2px 0 0; font-size: 1.12rem; }.header-footer-heading > span { color: var(--muted); font-size: .8rem; }
.header-footer-sheet { overflow-x: auto; border: 1px solid #bfc8d8; border-radius: 9px; background: #fff; }
.header-footer-row { min-width: 650px; display: grid; grid-template-columns: 90px repeat(3, minmax(160px, 1fr)); }
.header-footer-row > strong, .header-footer-row > b { display: flex; align-items: center; padding: 9px 11px; border-right: 1px solid #d7dde7; border-bottom: 1px solid #d7dde7; background: #f0f3f8; font-size: .82rem; }
.header-footer-row > b { justify-content: center; color: #59647a; padding-block: 6px; font-size: .72rem; }
.header-footer-row input { min-width: 0; padding: 10px 11px; border: 0; border-right: 1px solid #d7dde7; border-bottom: 1px solid #d7dde7; outline: none; }
.header-footer-row input:focus { position: relative; box-shadow: inset 0 0 0 2px #2f66d0; background: #f7faff; }
.header-footer-row > :last-child { border-right: 0; }.header-footer-row:last-child > * { border-bottom: 0; }
.header-footer-tokens { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 12px; }
.header-footer-tokens > span { font-size: .8rem; font-weight: 850; }.header-footer-tokens button { border: 1px solid #bcc7d8; border-radius: 7px; padding: 7px 10px; background: #fff; color: var(--blue); font-weight: 800; cursor: pointer; }
.header-footer-tokens button:hover { border-color: var(--blue); background: #eef4ff; }.header-footer-tokens small { color: var(--muted); }
.header-footer-options { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.header-footer-options label { display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 5px 9px; border: 1px solid #d0d7e3; border-radius: 8px; background: #fff; font-size: .78rem; font-weight: 800; }
.header-footer-options select, .header-footer-options input[type="text"] { min-height: 30px; border: 1px solid #c7cfdd; border-radius: 6px; background: #fff; padding: 4px 7px; }
.header-footer-options input[type="color"] { width: 34px; height: 30px; padding: 2px; border: 1px solid #c7cfdd; border-radius: 6px; background: #fff; }
.organizer-help { margin-top: 18px !important; }

.editor-shell { margin-top: 22px; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; }
.editor-ribbon { display: flex; gap: 1px; align-items: stretch; overflow-x: auto; padding: 6px; background: #edf1f7; border: 1px solid #cbd2df; border-radius: 12px 12px 5px 5px; box-shadow: inset 0 1px #fff; scrollbar-width: thin; }
.editor-group { flex: 0 0 auto; display: flex; align-items: center; gap: 5px; padding: 21px 9px 7px; position: relative; background: #f8f9fc; border-right: 1px solid #d7dce6; }
.editor-group:first-child { border-radius: 7px 0 0 7px; }.editor-group:last-child { border-right: 0; border-radius: 0 7px 7px 0; }
.editor-group-name { position: absolute; top: 4px; left: 9px; color: #697388; font-size: .66rem; font-weight: 900; letter-spacing: .04em; }
.editor-options { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.editor-tool, .editor-command, .editor-undo, .editor-pagination button { border: 1px solid #ccd3e0; background: #fff; border-radius: 7px; padding: 8px 10px; cursor: pointer; font-weight: 800; white-space: nowrap; }
.editor-tool:hover, .editor-command:hover { border-color: #8ca9e8; background: #eef4ff; }
.editor-tool.is-selected { color: #fff; background: var(--ink); border-color: var(--ink); }
.editor-command.danger { color: #b23737; }.editor-command:disabled { opacity: .38; cursor: not-allowed; background: #f3f4f7; }
.editor-control { display: flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 800; padding: 4px 8px; }
.editor-control input[type="color"] { width: 35px; height: 32px; padding: 2px; border: 1px solid #ccd3e0; border-radius: 6px; background: #fff; }
.editor-control input[type="range"] { width: 90px; }
.editor-control select { min-height: 34px; padding: 4px 28px 4px 8px; border: 1px solid #ccd3e0; border-radius: 7px; background: #fff; color: var(--ink); }
.editor-control output { min-width: 34px; color: var(--blue); }
.color-palette { display: flex; align-items: center; gap: 5px; padding: 4px 8px; border-left: 1px solid var(--line); }
.color-palette > span { margin-right: 2px; color: var(--muted); font-size: .75rem; font-weight: 800; }
.color-palette button { width: 24px; height: 24px; padding: 0; border: 2px solid #fff; border-radius: 5px; background: var(--swatch); box-shadow: 0 0 0 1px #b7bfce; cursor: pointer; }
.color-palette button:hover, .color-palette button.is-active { transform: translateY(-1px); box-shadow: 0 0 0 2px var(--blue), 0 3px 7px rgba(21,31,58,.18); }
.editor-undo { margin-left: auto; color: var(--blue); }
.editor-help { margin: 9px 0; color: var(--muted); font-size: .88rem; }
.editor-zoom { display: flex; justify-content: center; align-items: center; gap: 7px; margin: 12px 0; }
.editor-zoom button { min-width: 44px; height: 40px; padding: 0 12px; border: 1px solid #ccd3e0; border-radius: 9px; background: #fff; color: var(--ink); cursor: pointer; font-weight: 900; font-size: 1.05rem; }
.editor-zoom button:nth-child(2) { min-width: 76px; font-size: .9rem; }
.editor-zoom button:disabled { opacity: .4; cursor: not-allowed; }
.editor-zoom small { color: var(--muted); font-weight: 700; }
.editor-viewport { max-width: 100%; overflow: auto; padding: 4px; border-radius: 10px; background: #e8ebf1; -webkit-overflow-scrolling: touch; }
.editor-viewport.is-panning { cursor: grabbing; user-select: none; }
.editor-stage { position: relative; margin: 0 auto; overflow: hidden; background: #dfe3eb; box-shadow: 0 6px 20px rgba(21,31,58,.14); touch-action: none; }
.editor-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#annotation-canvas { cursor: crosshair; }
.editor-pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 14px; }
.editor-pagination button:disabled { opacity: .4; cursor: not-allowed; }
.signature-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 18px; background: rgba(17,25,45,.65); backdrop-filter: blur(3px); }
.signature-card { width: min(760px, 100%); padding: 24px; background: #fff; border-radius: 18px; box-shadow: 0 24px 70px rgba(0,0,0,.3); }
.signature-card h3 { margin: 0 0 5px; }.signature-card p { margin: 0 0 16px; color: var(--muted); }
#signature-canvas { display: block; width: 100%; height: min(240px, 34vh); border: 2px dashed #aeb8cb; border-radius: 10px; background: #fff; touch-action: none; }
.signature-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 16px; }
.signature-actions button { border: 1px solid #ccd3e0; border-radius: 8px; padding: 10px 16px; background: #fff; cursor: pointer; font-weight: 850; }
.signature-actions .signature-primary { color: #fff; border-color: var(--blue); background: var(--blue); }

.safety { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.safety > div, .safety-link { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 20px; background: rgba(255,255,255,.65); border: 1px solid var(--line); border-radius: 14px; }
.safety-link { color: inherit; text-decoration: none; transition: .2s ease; }
.safety-link:hover, .safety-link:focus-visible { transform: translateY(-2px); border-color: var(--blue); background: #fff; outline: none; box-shadow: 0 10px 28px rgba(26,39,72,.09); }
.safety > div > span, .safety-link > span { grid-row: 1 / 4; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--blue); background: #eaf0ff; font-size: 1.4rem; font-weight: 800; }
.safety strong, .safety small { display: block; }.safety small { color: var(--muted); }
.safety-link b { color: var(--blue); font-size: .76rem; margin-top: 5px; }

.info-main { max-width: 980px; }
.back-link { display: inline-block; color: var(--blue); font-weight: 800; text-decoration: none; margin-bottom: 30px; }
.back-link:hover { text-decoration: underline; }
.info-hero { text-align: center; max-width: 800px; margin: 0 auto 42px; }
.shield-mark { width: 78px; height: 78px; margin: 0 auto 18px; display: grid; place-items: center; color: #fff; background: #35a66d; border-radius: 24px; font-size: 2.2rem; font-weight: 900; box-shadow: 0 14px 30px rgba(53,166,109,.22); }
.info-hero h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.15; letter-spacing: -.06em; }
.info-hero > p:last-child { color: var(--muted); font-size: 1.08rem; margin: 20px auto 0; max-width: 710px; }
.info-hero strong, .plain-explanation strong { color: var(--ink); }
.process-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: center; padding: 28px; margin-bottom: 22px; background: var(--ink); border-radius: var(--radius); color: #fff; box-shadow: var(--shadow); }
.process-flow div { min-height: 120px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; }
.process-flow div > span { width: 29px; height: 29px; display: grid; place-items: center; margin-bottom: 8px; border-radius: 50%; background: rgba(255,255,255,.13); font-size: .8rem; font-weight: 900; }
.process-flow strong { font-size: 1.02rem; }.process-flow small { color: #bec6d9; }
.process-flow i { color: var(--accent); font-size: 1.5rem; font-style: normal; }
.process-flow .flow-highlight { background: var(--accent); border-color: var(--accent); }.process-flow .flow-highlight small { color: #fff; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.info-card { padding: 28px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.info-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; background: #eaf0ff; color: var(--blue); font-size: 1.35rem; font-weight: 900; }
.info-card h2 { margin: 16px 0 8px; font-size: 1.08rem; line-height: 1.45; }.info-card p { color: var(--muted); margin: 0; font-size: .92rem; }
.plain-explanation { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; margin-top: 22px; padding: 34px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.plain-explanation h2 { margin: 0; font-size: 1.55rem; line-height: 1.4; }.plain-explanation > p { color: var(--muted); margin: 0; }
.attention-box { margin-top: 22px; padding: 24px 28px; background: #fff8e8; border: 1px solid #f1d9a7; border-radius: 14px; }
.attention-box h2 { margin: 0 0 5px; font-size: 1.05rem; }.attention-box p { color: #705327; margin: 0; }
.info-action { text-align: center; margin-top: 34px; }
.primary-link { display: inline-block; min-width: 230px; padding: 14px 28px; border-radius: 12px; color: #fff; background: var(--accent); font-weight: 900; text-decoration: none; box-shadow: 0 9px 20px rgba(255,90,79,.23); }
.primary-link:hover { background: var(--accent-dark); }

footer { padding: 30px 24px; background: var(--ink); color: #c3c9d8; display: flex; justify-content: center; align-items: center; gap: 30px; }
.footer-brand { color: #fff; }.footer-brand .brand-mark { width: 30px; height: 34px; font-size: .9rem; }
footer p { font-size: .85rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.footer-links a { color: #fff; font-size: .85rem; font-weight: 750; text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

.legal-main { max-width: 900px; }
.legal-hero { margin-bottom: 28px; }
.legal-hero h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.2; letter-spacing: -.055em; }
.legal-hero p:last-child { color: var(--muted); margin: 12px 0 0; }
.legal-card { padding: clamp(22px, 5vw, 40px); background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.legal-card h2 { margin: 28px 0 8px; font-size: 1.16rem; }.legal-card h2:first-child { margin-top: 0; }
.legal-card p, .legal-card li { color: #4f596f; }
.legal-card ul { padding-left: 1.35em; }
.company-table { width: 100%; border-collapse: collapse; }
.company-table th, .company-table td { padding: 15px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.company-table th { width: 30%; color: var(--ink); background: var(--soft); }
.company-table p { margin: 0 0 10px; }.company-table p:last-child { margin-bottom: 0; }
.company-table a { color: var(--blue); font-weight: 750; }
.draft-note { margin-top: 22px; padding: 12px 15px; color: #705327; background: #fff8e8; border: 1px solid #f1d9a7; border-radius: 10px; font-size: .88rem; }

.processing { position: fixed; inset: 0; background: rgba(11,17,34,.72); backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 50; padding: 20px; }
.processing-card { width: min(420px, 100%); background: #fff; border-radius: 18px; padding: 34px; text-align: center; box-shadow: var(--shadow); }
.processing-card h2 { margin: 14px 0 5px; }.processing-card p { color: var(--muted); margin: 0; }
.spinner { width: 46px; height: 46px; border: 4px solid #ffe2e0; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; margin: auto; }
.progress-track { height: 7px; background: #edf0f5; border-radius: 20px; margin-top: 22px; overflow: hidden; }
#progress-bar { height: 100%; width: 8%; background: var(--accent); border-radius: inherit; transition: width .2s; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-card { min-height: 130px; }
  .safety { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .site-header { min-height: 64px; padding: 0 16px; }.privacy-chip { font-size: 0; padding: 7px 10px; }.privacy-chip::after { content: "端末内処理"; font-size: .76rem; }.privacy-chip span { font-size: .6rem; }
  main { padding: 42px 14px 55px; }.intro { margin-bottom: 28px; }.intro-copy { font-size: .95rem; }
  .tool-grid { grid-template-columns: 1fr; gap: 9px; }.tool-card { min-height: auto; grid-template-columns: 44px 1fr auto; padding: 15px; align-items: center; }.tool-icon { width: 42px; height: 42px; }.tool-card strong { margin-top: 0; }.card-arrow { align-self: center; }
  .workspace { padding: 22px 16px; border-radius: 16px; }.workspace-heading { align-items: flex-start; flex-direction: column; gap: 4px; }.drop-zone { min-height: 240px; padding: 25px 16px; }
  .file-row { grid-template-columns: auto 1fr; }.row-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .option-grid { grid-template-columns: 1fr; }.pages-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }.page-card { padding: 7px; }
  .header-footer-settings { padding: 16px 12px; margin-inline: -4px; }.header-footer-heading { align-items: flex-start; flex-direction: column; gap: 3px; }.header-footer-options { display: grid; grid-template-columns: 1fr 1fr; }.header-footer-options label { justify-content: space-between; }.header-footer-options label:last-child { grid-column: 1 / -1; }.header-footer-tokens small { width: 100%; }
  footer { flex-direction: column; gap: 8px; text-align: center; }
  .info-main { padding-top: 28px; }.back-link { margin-bottom: 24px; }.info-hero { margin-bottom: 30px; }
  .process-flow { grid-template-columns: 1fr; padding: 16px; }.process-flow i { transform: rotate(90deg); text-align: center; line-height: 1; }.process-flow div { min-height: 105px; }
  .plain-explanation { grid-template-columns: 1fr; gap: 14px; padding: 24px 20px; }.attention-box { padding: 20px; }
  .editor-toolbar, .editor-options { gap: 6px; }.editor-tool, .editor-command, .editor-undo { padding: 8px 9px; font-size: .82rem; }.editor-undo { margin-left: 0; }
  .editor-ribbon { margin-inline: -8px; border-radius: 8px; }.editor-group { padding-inline: 6px; }.signature-card { padding: 18px; }.signature-actions { display: grid; grid-template-columns: 1fr 1fr; }.signature-actions .signature-primary { grid-column: 1 / -1; grid-row: 1; }
  .editor-options { align-items: stretch; }.editor-control { width: 100%; justify-content: space-between; }.editor-control input[type="range"] { flex: 1; }
  .color-palette { width: 100%; flex-wrap: wrap; border-left: 0; }.editor-zoom { flex-wrap: wrap; }.editor-zoom small { width: 100%; text-align: center; }
  .company-table th, .company-table td { display: block; width: 100%; }.company-table th { border-bottom: 0; padding-bottom: 5px; }.company-table td { padding-top: 7px; }
}

/* 端末内処理の説明ページ */
