/* 公開ページの説明部分。アプリや共通ヘッダー・フッターには適用しない。 */
.qz-public {
  --qz-content-width: 1160px;
  --qz-content-gutter: 32px;
  --qz-title-size: 47px;
  --qz-section-size: 28px;
  --qz-subsection-size: 22px;
  --qz-card-title-size: 18px;
  --qz-font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  --qz-kicker-size: 13px;
  --qz-note-color: #52635b;
  --qz-breadcrumb-top: 24px;
}

@media (max-width: 640px) {
  .qz-public {
    --qz-content-gutter: 18px;
    --qz-title-size: 28px;
    --qz-section-size: 23px;
    --qz-subsection-size: 19px;
    --qz-kicker-size: 12px;
    --qz-breadcrumb-top: 20px;
  }
}

@media screen {
  .qz-public.qz-content-width,
  .qz-public .qz-content-width {
    width: min(var(--qz-content-width), calc(100% - 2 * var(--qz-content-gutter)));
    max-width: none;
    margin-inline: auto;
  }

  :is(main, section, div).qz-public h1:not(:where(#hero-title)) {
    font-size: var(--qz-title-size);
    font-weight: 700;
    line-height: 1.6;
  }

  :is(main, section, div).qz-public h2:not(:where(figure *, table *, .qz-video *, .column-toc *, .portfolio-gallery *, .report-doc *, .arch-diagram *, .comparison-table-wrap *)) {
    font-size: var(--qz-section-size);
  }

  :is(main, section, div).qz-public h3:not(:where(figure *, table *, .qz-video *, .column-toc *, .portfolio-gallery *, .report-doc *, .arch-diagram *, .comparison-table-wrap *)) {
    font-size: var(--qz-subsection-size);
  }

  /* 写真・図表とトップのヒーローは、既存の行組みを保つ。 */
  :is(main, section, div).qz-public :is(h1, h2, h3):not(:where(#hero-title, figure *, table *, .qz-video *, .portfolio-gallery *, .report-doc *, .arch-diagram *, .comparison-table-wrap *)),
  :is(main, section, div).qz-public :is([data-faq] summary) {
    word-break: auto-phrase;
    text-wrap: balance;
  }

  :is(main, section, div).qz-public :is(h2, h3).qz-card-title {
    font-size: var(--qz-card-title-size);
  }

  :is(main, section, div).qz-public .qz-section-heading {
    margin-block: 24px 16px;
  }
}

:is(main, section, div).qz-public :is(.contact-intro h1, .contact-result h1),
.demo-subpage main.qz-public {
  font-family: var(--qz-font-family);
}

:is(main, section, div).qz-public nav[aria-label="パンくず"] {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0 0 16px;
  padding: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #556174;
}

:is(main, section, div).qz-public nav.qz-breadcrumb-start[aria-label="パンくず"] {
  padding-block-start: var(--qz-breadcrumb-top);
}

:is(main, section, div).qz-public nav[aria-label="パンくず"] > :is(a, span) {
  padding: 0;
  color: inherit;
  font-size: inherit;
}

:is(main, section, div).qz-public nav[aria-label="パンくず"] > a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

:is(main, section, div).qz-public nav[aria-label="パンくず"] > a:focus-visible {
  outline: 2px solid #245e4c;
  outline-offset: 3px;
}

:is(main, section, div).qz-public :is(.column-kicker, .work-kicker, .partners-kicker, .hp-kicker, .eyebrow):not(:where(.flow-hero *, .report-doc *, .process > .wrap > .eyebrow, [data-private-only] *)) {
  margin-block: 0 10px;
  color: var(--qz-kicker-color, #245e4c);
  font-size: var(--qz-kicker-size);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .07em;
}

:is(main, section, div).qz-public .qz-link-mark::after {
  content: '↗' / '';
  margin-inline-start: .35em;
}

:is(main, section, div).qz-public details:not(:where(dialog *, #skipped-box)) {
  min-width: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid #dce5df;
  border-radius: 0;
  background: transparent;
}

:is(main, section, div).qz-public details:not(:where(dialog *, #skipped-box, :has(+ details))) {
  border-bottom: 1px solid #dce5df;
}

:is(main, section, div).qz-public details[open]:not(:where(dialog *, #skipped-box, [data-faq] *, .invoice-toc-details)) {
  padding-block-end: 12px;
}

:is(main, section, div).qz-public details:not(:where(dialog *, #skipped-box)) > summary {
  position: relative;
  display: block;
  margin: 0;
  padding: 15px 32px 15px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #233b35;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  list-style: none;
  cursor: pointer;
  overflow-wrap: anywhere;
}

:is(main, section, div).qz-public details:not(:where(dialog *, #skipped-box)) > summary::-webkit-details-marker {
  display: none;
}

:is(main, section, div).qz-public details:not(:where(dialog *, #skipped-box)) > summary::after {
  position: absolute;
  inset: 15px 4px auto auto;
  content: '＋';
  color: #245e4c;
  font-weight: 700;
}

:is(main, section, div).qz-public details[open]:not(:where(dialog *, #skipped-box)) > summary::after {
  content: '−';
}

:is(main, section, div).qz-public details:not(:where(dialog *, #skipped-box)) > summary:focus-visible {
  outline: 3px solid #245e4c;
  outline-offset: 3px;
}

:is(main, section, div).qz-public :is([data-faq] details) > p {
  margin: 0;
  padding: 0 0 16px;
  font-size: 15px;
  line-height: 1.95;
}

:is(main, section, div).qz-public :is(.column-meta, .column-end p, .source-link, .table-hint, .invoice-replay-note, .entry-note, .price-note, .consult-note, .page-note, .guide-note, .env-note, .partners-caption, .aicode-hero-note, .aicode-head-note, .note, .fine, .fine-print, .footnote, .demo-reference > small):not(:where(figure *, table *, .qz-video *, .report-doc *, .flow-hero *)) {
  color: var(--qz-note-color);
  font-size: 13px;
}
