/* #281: LPの青・白・黒を引き継ぎ、入力と完成文書を明確に分ける。外部フォントは読み込まない。 */
:root {
  --blue: #234cdb;
  --blue-dark: #1938a7;
  --ink: #18202d;
  --muted: #596374;
  --border: #d9dfe8;
  --paper: #fff;
  --background: #f5f7fb;
  --yellow: #f5e36e;
  --font:
    -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo,
    sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font: 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
img {
  max-width: 100%;
  display: block;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #f0b900;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.container {
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 16px;
  z-index: 50;
  transform: translateY(-150%);
  padding: 10px 18px;
  background: white;
  border: 2px solid var(--blue);
  border-radius: 8px;
}
.skip-link:focus {
  transform: translateY(0);
}
.site-header {
  height: 76px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #e3e8f0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  height: 100%;
  width: min(1200px, calc(100% - 64px));
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: block;
}
.brand img {
  width: 145px;
  height: auto;
  max-height: 43px;
  object-fit: contain;
}
.header-app-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 99px;
  white-space: nowrap;
}
.header-app-link span {
  color: var(--blue);
  margin-left: 10px;
}
.tool-hero {
  padding-top: 24px;
  padding-bottom: 34px;
}
.breadcrumbs {
  display: flex;
  gap: 11px;
  font-size: 11px;
  color: #627084;
  align-items: center;
  margin-bottom: 32px;
}
.breadcrumbs a {
  color: #627084;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 17px;
}
.free-pill {
  background: var(--yellow);
  color: #232a37;
  padding: 4px 12px;
  border-radius: 5px;
  letter-spacing: 0.5px;
  font-size: 11px;
}
.tool-hero h1 {
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.4;
  margin-bottom: 17px;
}
.mobile-break {
  display: none;
}
.hero-lead {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
}
.trust-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  font-size: 11px;
  color: #4e5d72;
}
.trust-dot {
  height: 8px;
  width: 8px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}
.type-selector {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 26px;
  margin-bottom: 24px;
}
.step-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: 12px;
  font-weight: 800;
}
.step-heading h2 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.kind-options {
  display: flex;
  gap: 12px;
  margin: 18px 0 10px;
  padding: 0;
  border: 0;
}
.kind-options label {
  flex: 1;
  position: relative;
  cursor: pointer;
}
.kind-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
}
.kind-options label > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid #d8dfeb;
  background: #fff;
  border-radius: 8px;
  padding: 13px 10px;
  font-size: 15px;
  font-weight: 800;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.kind-symbol {
  font-size: 10px;
  font-weight: 600;
  color: #768399;
  letter-spacing: 1px;
}
.kind-options input:checked + span {
  background: #edf1ff;
  color: var(--blue);
  border: 2px solid var(--blue);
  padding: 12px 9px;
}
.kind-options input:checked + span .kind-symbol {
  color: var(--blue);
}
.kind-options input:focus-visible + span {
  outline: 3px solid #f0b900;
  outline-offset: 4px;
}
.kind-description {
  font-size: 12px;
  color: var(--muted);
}
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.editor-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
}
.panel-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.manual-pill {
  font-size: 10px;
  color: #637088;
  background: #edf0f5;
  padding: 3px 9px;
  border-radius: 4px;
  white-space: nowrap;
}
.editor-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0 24px;
  padding-bottom: 19px;
  border-bottom: 1px solid #e4e8ef;
}
.editor-actions button {
  color: var(--blue);
  background: none;
  border: 0;
  padding: 7px 0;
  font-size: 11px;
  font-weight: 700;
  min-height: 32px;
}
.editor-actions button:last-child {
  color: #6a7381;
  font-weight: 400;
}
.editor-actions button span {
  margin-left: 4px;
}
.basic-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
.basic-fields .input-field:first-child {
  grid-column: 1/-1;
}
.input-field label {
  display: block;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 7px;
}
.input-field input,
.input-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd4e2;
  border-radius: 7px;
  background: #fcfdff;
  color: var(--ink);
  padding: 11px 12px;
  font-size: 14px;
  line-height: 1.7;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.input-field input {
  height: 45px;
}
.input-field input[type='date'] {
  appearance: none;
  -webkit-appearance: none;
  text-align: left;
}
.input-field textarea {
  resize: vertical;
  min-height: 93px;
}
.input-field input:focus,
.input-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px #234cdb10;
}
.input-field input::placeholder {
  color: #8c97a7;
}
.input-section-title {
  font-size: 13px;
  font-weight: 800;
  border-top: 1px solid #e4e8ef;
  margin-top: 26px;
  padding-top: 22px;
}
.field-limit {
  font-size: 10px;
  color: #657388;
  margin: 5px 0 21px;
}
.input-field-body {
  margin-top: 21px;
}
.field-help {
  font-size: 10px;
  color: #617086;
  margin-top: 5px;
  line-height: 1.7;
}
.memory-note {
  margin-top: 26px;
  padding: 13px 14px;
  border-radius: 6px;
  background: #f4f6fa;
  font-size: 10px;
  color: #5b687b;
  line-height: 1.85;
}
.preview-panel {
  min-width: 0;
}
.preview-sticky {
  position: sticky;
  top: 100px;
}
.preview-panel .panel-topline {
  padding: 4px 0;
}
.input-count {
  font-size: 10px;
  color: #5c6980;
  white-space: nowrap;
}
.preview-note {
  color: #5a6880;
  font-size: 11px;
  line-height: 1.75;
  margin: 13px 0 16px;
}
.export-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.export-actions button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border: 1px solid #bdc9db;
  border-radius: 7px;
  background: white;
  padding: 12px 5px;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
  min-height: 46px;
}
.export-actions button:hover {
  background: #edf1ff;
}
.export-actions .button-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.export-actions .button-primary:hover {
  background: var(--blue-dark);
}
.export-actions button > span {
  font-size: 16px;
  line-height: 1;
}
.export-help {
  font-size: 10px;
  color: #6b7688;
  margin-top: 9px;
  line-height: 1.65;
}
.credit-option {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 13px;
  cursor: pointer;
  color: #5e6c80;
  font-size: 10px;
}
.credit-option input {
  accent-color: var(--blue);
  width: 14px;
  height: 14px;
  margin: 2px 0 0;
  flex-shrink: 0;
}
.builder-status {
  color: var(--blue-dark);
  font-size: 11px;
  margin-top: 12px;
  line-height: 1.75;
}
.builder-status:empty {
  display: none;
}
.document-paper {
  background: #fff;
  border: 1px solid #d7deea;
  box-shadow: 0 7px 24px #19385207;
  min-height: 580px;
  padding: 30px 32px;
  margin-top: 18px;
  overflow-wrap: anywhere;
}
.document-header {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 17px;
  margin-bottom: 18px;
}
.document-eyebrow {
  font-size: 8px;
  letter-spacing: 2.3px;
  font-weight: 800;
  color: #718096;
  margin-bottom: 5px;
}
.document-header h3 {
  font-size: 27px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 2px;
}
.document-meta {
  margin: 0 0 20px;
}
.document-meta > div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 7px;
  font-size: 10px;
  border-bottom: 1px solid #e8edf3;
  padding: 8px 0;
}
.document-meta dt {
  color: #627086;
  font-weight: 500;
}
.document-meta dd {
  margin: 0;
  white-space: pre-wrap;
}
.document-section {
  margin-top: 20px;
}
.document-section h4 {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  padding-left: 9px;
  border-left: 3px solid var(--blue);
  margin-bottom: 8px;
}
.document-section p {
  font-size: 11px;
  line-height: 1.95;
  white-space: pre-wrap;
  padding-left: 12px;
}
.is-empty {
  color: #98a2b2 !important;
}
.document-credit {
  border-top: 1px solid #e1e5eb;
  padding-top: 12px;
  margin-top: 25px;
  color: #6d798b;
  font-size: 8px;
  line-height: 1.7;
}
.back-to-editor {
  display: none;
}
.copy-fallback {
  margin-top: 18px;
}
.copy-fallback label {
  font-size: 12px;
  font-weight: 700;
}
.copy-fallback textarea {
  width: 100%;
  font: 12px/1.6 var(--font);
  padding: 10px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  resize: vertical;
  margin-top: 5px;
}
.copy-fallback p {
  font-size: 10px;
  color: #66768e;
}
.app-section {
  scroll-margin-top: 95px;
  background: var(--blue);
  color: white;
  border-radius: 20px;
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 64px;
  padding: 46px 48px;
  margin-top: 72px;
}
.app-eyebrow {
  display: block;
  font-size: 11px;
  color: #e3e9ff;
  margin-bottom: 15px;
  letter-spacing: 1px;
}
.app-copy h2 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}
.app-copy > p {
  font-size: 13px;
  line-height: 1.95;
  color: #f4f6ff;
}
.app-copy .app-distinction {
  font-size: 10px;
  color: #dce4ff;
  line-height: 1.85;
  margin-top: 16px;
}
.app-download {
  align-self: center;
}
.app-icon {
  width: 66px;
  height: 66px;
  border-radius: 14px;
  box-shadow: 0 3px 14px #092a731a;
  margin-bottom: 13px;
}
.app-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
}
.app-name span {
  font-size: 10px;
  font-weight: 500;
  display: block;
  letter-spacing: 0.3px;
  margin-top: 3px;
}
.store-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.store-links a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 50px;
  background: white;
  border-radius: 7px;
  color: #19233b;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}
.store-links a:hover {
  background: #f4f6ff;
  text-decoration: none;
}
.store-links a span {
  font-weight: 400;
  color: var(--blue);
}
.quota-note {
  font-size: 9px;
  line-height: 1.95;
  color: #e1e8ff;
  margin-top: 14px;
}
.guide-section,
.faq-section {
  margin-top: 72px;
}
.section-label {
  font-size: 9px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.guide-section > h2,
.faq-section > h2 {
  font-size: 25px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -0.5px;
}
.guide-section > p {
  font-size: 13px;
  color: #627086;
  margin-top: 9px;
}
.guide-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 25px;
}
.guide-links > a {
  padding: 23px 24px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: white;
  position: relative;
  color: var(--ink);
  transition: border-color 0.15s;
}
.guide-links > a:hover {
  border-color: var(--blue);
  text-decoration: none;
}
.guide-tag {
  font-size: 10px;
  display: inline-block;
  color: var(--blue);
  background: #eef2ff;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 13px;
}
.guide-links strong {
  font-size: 14px;
  display: block;
  line-height: 1.85;
}
.guide-arrow {
  position: absolute;
  right: 20px;
  bottom: 19px;
  color: var(--blue);
  font-size: 18px;
}
.faq-section details {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-section details:first-of-type {
  margin-top: 15px;
  border-top: 1px solid var(--border);
}
.faq-section summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
  padding-right: 20px;
}
.faq-section details p {
  font-size: 12px;
  color: #5a6880;
  line-height: 1.9;
  margin-top: 13px;
  max-width: 850px;
}
.faq-section details a {
  text-decoration: underline;
}
.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  padding-bottom: 32px;
  margin-top: 64px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  color: #68768b;
  font-size: 10px;
}
.site-footer > div {
  display: flex;
  gap: 15px;
  align-items: center;
}
.site-footer > div > a {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}
.site-footer nav {
  display: flex;
  gap: 15px;
}
.site-footer nav a {
  color: #596a82;
}
.site-footer small {
  font-size: 9px;
}
.fallback-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px;
  background: white;
}
.fallback-panel h2 {
  font-size: 22px;
}
.fallback-panel > p {
  font-size: 13px;
  color: #617086;
  margin-top: 12px;
}
.fallback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}
.fallback-grid h3 {
  font-size: 15px;
}
.fallback-grid pre {
  font: 12px/1.8 var(--font);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f4f6fb;
  padding: 14px;
  border-radius: 5px;
}
@media (min-width: 981px) {
  .preview-panel {
    align-self: stretch;
  }
  .document-paper {
    max-height: 72vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c5ccda #f5f7fb;
  }
}
@media (max-width: 980px) {
  .container,
  .header-inner {
    width: calc(100% - 40px);
  }
  .workspace-grid {
    gap: 20px;
  }
  .editor-panel {
    padding: 20px;
  }
  .step-heading h2 {
    font-size: 14px;
  }
  .document-paper {
    padding: 24px 22px;
  }
  .app-section {
    padding: 36px;
    gap: 35px;
  }
  .app-copy h2 {
    font-size: 32px;
  }
  .store-links a {
    padding: 11px 12px;
    font-size: 12px;
  }
  .guide-links > a {
    padding: 18px;
  }
  .guide-links strong {
    font-size: 12px;
  }
  .guide-arrow {
    right: 13px;
    bottom: 12px;
  }
  .input-count {
    font-size: 9px;
  }
  .site-footer {
    flex-wrap: wrap;
  }
  .site-footer small {
    width: 100%;
  }
  .export-actions button {
    font-size: 10px;
    gap: 3px;
  }
  .export-actions button > span {
    font-size: 14px;
  }
  .basic-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .basic-fields .input-field:first-child {
    grid-column: auto;
  }
}
@media (max-width: 760px) {
  html {
    scroll-padding-top: 78px;
  }
  .container,
  .header-inner {
    width: calc(100% - 32px);
  }
  .site-header {
    height: 65px;
  }
  .brand img {
    width: 117px;
    max-height: 34px;
  }
  .header-app-link {
    font-size: 10px;
    padding: 8px 11px;
  }
  .header-app-link span {
    margin-left: 4px;
  }
  .tool-hero {
    padding-top: 19px;
    padding-bottom: 27px;
  }
  .breadcrumbs {
    font-size: 9px;
    gap: 8px;
    margin-bottom: 27px;
  }
  .hero-kicker {
    font-size: 8px;
    letter-spacing: 1.5px;
    gap: 10px;
    margin-bottom: 16px;
  }
  .free-pill {
    font-size: 9px;
    padding: 3px 9px;
  }
  .tool-hero h1 {
    font-size: 32px;
    letter-spacing: -1.2px;
    line-height: 1.45;
    margin-bottom: 15px;
  }
  .mobile-break {
    display: block;
  }
  .hero-lead {
    font-size: 12px;
    line-height: 1.9;
  }
  .trust-line {
    font-size: 9px;
    line-height: 1.8;
    gap: 7px;
    align-items: flex-start;
    margin-top: 14px;
  }
  .trust-dot {
    margin-top: 5px;
    width: 6px;
    height: 6px;
  }
  .type-selector {
    padding: 20px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
  }
  .step-heading h2 {
    font-size: 14px;
  }
  .step-number {
    width: 23px;
    height: 23px;
    font-size: 11px;
  }
  .kind-options {
    gap: 6px;
    margin-top: 16px;
  }
  .kind-options label > span {
    font-size: 12px;
    padding: 12px 3px;
    gap: 0;
    min-height: 47px;
  }
  .kind-options input:checked + span {
    padding: 11px 2px;
  }
  .kind-symbol {
    display: none;
  }
  .kind-description {
    font-size: 10px;
    line-height: 1.8;
  }
  .workspace-grid {
    display: block;
  }
  .editor-panel {
    padding: 20px 17px;
    border-radius: 12px;
  }
  .editor-actions {
    margin: 14px 0 20px;
  }
  .editor-actions button {
    font-size: 10px;
    min-height: 34px;
  }
  .basic-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .input-field label {
    font-size: 12px;
  }
  .input-field input,
  .input-field textarea {
    font-size: 16px;
    padding: 10px 11px;
  }
  .input-field input {
    height: 46px;
  }
  .input-field textarea {
    min-height: 100px;
  }
  .field-help,
  .field-limit,
  .memory-note {
    font-size: 10px;
  }
  .input-field-body {
    margin-top: 23px;
  }
  .memory-note {
    padding: 12px;
    margin-top: 25px;
  }
  .preview-panel {
    margin-top: 32px;
  }
  .preview-sticky {
    position: static;
  }
  .preview-panel .panel-topline {
    padding-inline: 2px;
  }
  .input-count {
    font-size: 9px;
  }
  .preview-note {
    font-size: 10px;
  }
  .export-actions {
    gap: 7px;
  }
  .export-actions button {
    font-size: 11px;
    min-height: 47px;
    padding: 12px 3px;
  }
  .export-actions button > span {
    font-size: 14px;
  }
  .export-help {
    font-size: 9px;
  }
  .credit-option {
    font-size: 10px;
    min-height: 30px;
    align-items: center;
  }
  .credit-option input {
    width: 16px;
    height: 16px;
    margin: 0;
  }
  .builder-status {
    font-size: 11px;
  }
  .document-paper {
    min-height: 520px;
    padding: 26px 22px;
    margin-top: 15px;
  }
  .document-header h3 {
    font-size: 25px;
  }
  .document-meta > div {
    grid-template-columns: 80px minmax(0, 1fr);
    font-size: 10px;
  }
  .document-section p {
    font-size: 11px;
    line-height: 1.9;
  }
  .document-section h4 {
    font-size: 12px;
  }
  .back-to-editor {
    display: block;
    font-size: 11px;
    text-align: center;
    margin-top: 17px;
    min-height: 40px;
    padding: 8px;
  }
  .app-section {
    display: block;
    padding: 28px 22px;
    border-radius: 14px;
    margin-top: 42px;
    scroll-margin-top: 82px;
  }
  .app-eyebrow {
    font-size: 10px;
    margin-bottom: 13px;
  }
  .app-copy h2 {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .app-copy > p {
    font-size: 12px;
    line-height: 1.9;
  }
  .app-copy .app-distinction {
    font-size: 9px;
  }
  .app-download {
    margin-top: 25px;
    padding-top: 23px;
    border-top: 1px solid #ffffff38;
    position: relative;
  }
  .app-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    float: left;
    margin-right: 12px;
    margin-bottom: 0;
  }
  .app-name {
    font-size: 19px;
    line-height: 1.4;
    padding-top: 1px;
  }
  .app-name span {
    font-size: 9px;
    letter-spacing: 0;
  }
  .store-links {
    clear: both;
    padding-top: 17px;
    margin-top: 0;
    gap: 8px;
  }
  .store-links a {
    min-height: 46px;
    padding: 11px 10px;
    font-size: 11px;
  }
  .quota-note {
    font-size: 8px;
    line-height: 1.95;
    margin-top: 12px;
  }
  .guide-section,
  .faq-section {
    margin-top: 44px;
  }
  .section-label {
    font-size: 8px;
    margin-bottom: 9px;
  }
  .guide-section > h2,
  .faq-section > h2 {
    font-size: 21px;
    line-height: 1.55;
  }
  .guide-section > p {
    font-size: 11px;
    line-height: 1.85;
  }
  .guide-links {
    display: block;
    margin-top: 18px;
  }
  .guide-links > a {
    display: block;
    padding: 18px 20px;
    margin-top: 10px;
  }
  .guide-tag {
    font-size: 9px;
    margin-bottom: 8px;
  }
  .guide-links strong {
    font-size: 13px;
  }
  .guide-arrow {
    bottom: 21px;
    right: 22px;
  }
  .faq-section summary {
    font-size: 12px;
    line-height: 1.8;
  }
  .faq-section details {
    padding: 17px 0;
  }
  .faq-section details p {
    font-size: 11px;
  }
  .site-footer {
    display: block;
    margin-top: 42px;
    padding-top: 24px;
    padding-bottom: 26px;
  }
  .site-footer > div {
    font-size: 9px;
  }
  .site-footer nav {
    margin-top: 16px;
    font-size: 9px;
  }
  .site-footer small {
    display: block;
    margin-top: 18px;
  }
  .fallback-panel {
    padding: 20px 17px;
  }
  .fallback-panel h2 {
    font-size: 19px;
  }
  .fallback-grid {
    display: block;
  }
  .fallback-grid article + article {
    margin-top: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
/* 印刷時は現在の文書だけを出す。入力UI・紹介CTA・任意OFFの紹介文は混ざらない。 */
@page {
  size: A4;
  margin: 18mm 16mm;
}
@media print {
  html,
  body {
    background: white !important;
    color: #111 !important;
    font-size: 11pt;
    line-height: 1.6;
  }
  body > * {
    display: none !important;
  }
  body > main {
    display: block !important;
  }
  main > * {
    display: none !important;
  }
  main > #builder-workspace {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  #builder-workspace > * {
    display: none !important;
  }
  #builder-workspace > .workspace-grid {
    display: block !important;
  }
  .workspace-grid > * {
    display: none !important;
  }
  .workspace-grid > .preview-panel {
    display: block !important;
    margin: 0 !important;
  }
  .preview-sticky {
    position: static !important;
    display: block !important;
  }
  .preview-sticky > * {
    display: none !important;
  }
  .preview-sticky > #document-preview {
    display: block !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .document-header {
    break-after: avoid;
    border-bottom: 1.5pt solid #111;
    margin-bottom: 16pt;
    padding-bottom: 13pt;
  }
  .document-eyebrow {
    font-size: 7pt;
    color: #444 !important;
  }
  .document-header h3 {
    font-size: 22pt;
    letter-spacing: 2pt;
  }
  .document-meta {
    margin-bottom: 18pt;
  }
  .document-meta > div {
    font-size: 10pt;
    grid-template-columns: 90pt minmax(0, 1fr);
    padding: 7pt 0;
    break-inside: avoid;
  }
  .document-meta dt {
    color: #444 !important;
  }
  .document-section {
    margin-top: 17pt;
    break-inside: auto;
  }
  .document-section h4 {
    font-size: 11pt;
    border-left: 2pt solid #333;
    padding-left: 8pt;
    break-after: avoid;
    margin-bottom: 7pt;
  }
  .document-section p {
    font-size: 10pt;
    line-height: 1.85;
    padding-left: 10pt;
    orphans: 3;
    widows: 3;
  }
  .is-empty {
    color: #777 !important;
  }
  .document-credit {
    display: block;
    font-size: 7pt;
    color: #555 !important;
    margin-top: 20pt;
    padding-top: 10pt;
    break-inside: avoid;
  }
  .skip-link {
    display: none !important;
  }
}
