:root {
  --header-height: 56px;
  --anchor-offset: calc(var(--header-height) + 16px);
  --color-header: #181f29;
  --color-text: #212121;
  --color-link: #0f0f0f;
  --color-white: #ffffff;
  --font-sans: Lato, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --content-width: 1140px;
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-white);
  font-family: var(--font-sans);
  font-size: 11pt;
  line-height: 1.6;
}

a {
  color: var(--color-link);
}

a:hover {
  opacity: 0.72;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  color: var(--color-white);
  background: var(--color-header);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  height: 100%;
  padding: 0 28px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  padding-right: 85px;
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 15pt;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
}

.site-brand__icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.site-nav {
  min-width: 0;
}

.site-nav__list,
.site-mobile-nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__list {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  height: 100%;
}

.site-nav__link {
  display: flex;
  align-items: center;
  height: var(--header-height);
  padding: 0 12px;
  border-bottom: 7px solid transparent;
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 10.5pt;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--color-white);
  opacity: 0.82;
}

.site-nav__link.is-active {
  border-bottom-color: var(--color-white);
}

.site-nav__overflow {
  position: relative;
  display: block;
  height: 100%;
}

.site-nav__overflow > details {
  height: 100%;
}

.site-nav__overflow summary {
  display: flex;
  align-items: center;
  height: var(--header-height);
  padding: 0 12px;
  border-bottom: 7px solid transparent;
  color: var(--color-white);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 10.5pt;
  font-weight: 700;
  line-height: 1;
  list-style: none;
  white-space: nowrap;
}

.site-nav__overflow summary::-webkit-details-marker {
  display: none;
}

.site-nav__overflow summary::after {
  margin-left: 6px;
  content: "▾";
  font-size: 9pt;
}

.site-nav__overflow summary:hover,
.site-nav__overflow summary:focus-visible {
  background: rgb(255 255 255 / 15%);
}

.site-nav__overflow--active summary {
  border-bottom-color: var(--color-white);
}

.site-nav__overflow-menu {
  position: absolute;
  z-index: 30;
  top: var(--header-height);
  left: 0;
  width: 250px;
  margin: 0;
  padding: 8px 0;
  background: var(--color-header);
  box-shadow: 0 7px 16px rgb(0 0 0 / 24%);
  list-style: none;
}

.site-nav__overflow-link {
  display: block;
  padding: 10px 18px;
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 10.5pt;
  font-weight: 700;
  text-decoration: none;
}

.site-nav__overflow-link:hover,
.site-nav__overflow-link:focus-visible {
  color: var(--color-white);
  background: rgb(255 255 255 / 15%);
}

.site-nav__overflow-link.is-active {
  border-left: 4px solid var(--color-white);
  padding-left: 14px;
}

.site-search {
  position: static;
  z-index: 3;
  display: flex;
  align-items: center;
  height: var(--header-height);
  margin-left: 16px;
}

.site-search__toggle {
  display: grid;
  width: 44px;
  height: 36px;
  padding: 0;
  border: none;
  appearance: none;
  -webkit-appearance: none;
  color: var(--color-white);
  background: transparent;
  cursor: pointer;
  place-items: center;
}

.site-search__toggle:hover,
.site-search__toggle:focus-visible {
  background: rgb(255 255 255 / 15%);
}

.site-search__icon {
  width: 20px;
  height: 20px;
  transform: translateY(-3.5px);
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-width: 2;
}

.site-search__panel {
  position: absolute;
  z-index: 20;
  top: var(--header-height);
  right: 16px;
  width: min(460px, calc(100% - 32px));
  max-height: min(640px, calc(100vh - 80px));
  overflow: auto;
  padding: 16px;
  border: 1px solid #d8d8d8;
  border-radius: 0 0 3px 3px;
  color: var(--color-text);
  background: var(--color-white);
  box-shadow: 0 8px 22px rgb(0 0 0 / 20%);
}

.site-search__panel[hidden] {
  display: none;
}

.site-search__form {
  margin: 0;
}

.site-search__input {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid #8a8a8a;
  border-radius: 2px;
  color: var(--color-text);
  background: var(--color-white);
  font: inherit;
}

.site-search__status {
  margin: 12px 0 10px;
  color: #555555;
  font-size: 10pt;
}

.site-search__results,
.site-search__group-results {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-search__group + .site-search__group {
  margin-top: 15px;
}

.site-search__group-title {
  margin: 0 0 5px;
  color: #555555;
  font-size: 10pt;
  font-weight: 700;
}

.site-search__result + .site-search__result {
  border-top: 1px solid #eeeeee;
}

.site-search__result-link {
  display: block;
  padding: 9px 2px;
  color: var(--color-text);
  text-decoration: none;
}

.site-search__result-link:hover,
.site-search__result-link:focus-visible {
  background: #f4f4f4;
}

.site-search__result-title,
.site-search__result-snippet {
  display: block;
}

.site-search__result-title {
  font-weight: 700;
}

.site-search__result-title mark,
.site-search__result-snippet mark {
  padding: 0 0.08em;
  border-radius: 1px;
  color: inherit;
  background: #fff0a8;
}

.site-search__result-snippet {
  margin-top: 2px;
  color: #555555;
  font-size: 10pt;
  line-height: 1.45;
}

.site-mobile-menu {
  display: none;
}

.page-banner {
  position: relative;
  display: grid;
  min-height: 285px;
  overflow: hidden;
  place-items: center;
  text-align: center;
}

.page-banner h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 27pt;
  font-weight: 700;
  line-height: 1.25;
}

.page-banner--faq {
  min-height: 385px;
  background: var(--color-white);
}

.page-banner--faq::before {
  position: absolute;
  inset: 0;
  background-image: url("/assets/img/dlab-logo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(100%, 1300px) auto;
  content: "";
  filter: grayscale(1);
  opacity: 0.36;
}

.page-banner__inner {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, 760px);
}

.page-banner__lead {
  margin: 16px 0 0;
  font-size: 12.5pt;
  font-weight: 700;
  line-height: 1.55;
}

.page-banner--faq h1,
.page-banner--faq .page-banner__lead {
  color: #000000;
}

.page-banner.page-banner--dlab-qa {
  background-color: var(--color-header);
  background-image: url("/assets/img/dlab-qa-hero.jpg");
  background-position: center;
  background-size: cover;
}

.page-banner.page-banner--dlab-qa::before {
  background: rgb(0 0 0 / 25%);
  filter: none;
  opacity: 1;
}

.page-banner.page-banner--dlab-qa h1 {
  color: var(--color-white);
}

.page-banner--legal {
  background-image: url("/assets/img/legal-banner.png");
  background-position: center;
  background-size: cover;
}

.page-banner--legal h1 {
  color: var(--color-white);
}

.page-content {
  width: min(100% - 40px, var(--content-width));
  margin-inline: auto;
  padding: 30px 0 72px;
}

.page-intro {
  margin: 0 0 48px;
}

.toc {
  margin: 0 0 42px;
  padding: 0;
}

.toc h2 {
  margin: 0 0 18px;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 15pt;
  font-weight: 700;
  line-height: 1.25;
}

.toc h2 {
  font-size: 11pt;
  font-weight: 400;
  text-decoration: underline;
}

.toc ol,
.toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc li {
  margin: 0 0 14px;
}

.toc a {
  color: var(--color-link);
  text-underline-offset: 0.18em;
}

.legal-article {
  scroll-margin-top: 16px;
  margin: 0 0 42px;
}

.legal-article h2,
.legal-article h3,
.faq-category h2 {
  margin: 27px 0;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 15pt;
  font-weight: 700;
  line-height: 1.25;
}

.legal-article h2 {
  margin: 40px 0 32px;
}

.legal-article p {
  margin: 0 0 15px;
  white-space: pre-line;
}

.enacted-date {
  margin: 36px 0 0;
  text-align: right;
}

.qa-login-guide {
  margin: 0 0 42px;
}

.qa-section-heading,
.price-section-heading {
  margin: 30px 0 0;
  padding: 13px 0;
  border-top: 5px solid #f0f0f0;
  border-bottom: 5px solid #f0f0f0;
  color: #181f29;
  font-family: Arvo;
  font-size: 34pt;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.qa-section-heading__text,
.price-section-heading__text {
  color: #666666;
  font-family: var(--font-sans);
  font-size: 14pt;
  font-weight: 700;
}

.price-legacy-plans {
  margin-top: 72px;
}

.price-app-subscription {
  margin-top: 72px;
}

.price-section-heading {
  margin: 0 0 24px;
}

.qa-login-guide__image {
  display: block;
  width: min(100%, 512px);
  height: auto;
  margin: 14px auto 0;
}

.qa-login-guide__image--wide {
  width: min(100%, 1000px);
}

.qa-heading {
  margin-bottom: 0;
}

.qa-toc {
  margin: 0 0 30px;
}

.qa-toc__list,
.qa-toc__questions {
  margin: 0;
  padding: 0;
  list-style: none;
}

.qa-toc__list > li {
  margin: 0 0 14px;
}

.qa-toc__category {
  margin-left: 10px;
}

.qa-toc a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.qa-toc__questions {
  margin: 10px 0 0 12px;
}

.qa-toc__questions li {
  margin: 0 0 10px;
}

.faq-category {
  scroll-margin-top: 72px;
  margin: 0 0 42px;
}

.faq-category h2 {
  margin: 56px 0 32px;
  color: #212121;
  font-family: var(--font-sans);
  font-size: 21pt;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.faq-category__intro,
.faq-answer {
  margin-left: 0;
}

.faq-category__intro {
  margin-bottom: 22px;
}

.faq-category__intro p,
.faq-answer p,
.qa-contact p {
  margin: 0 0 10px;
  white-space: pre-line;
}

.faq-answer .faq-subblock {
  display: block;
  margin-top: 24px;
}

.faq-answer strong.faq-subblock {
  display: inline-block;
  width: 100%;
  margin-bottom: 3.5px;
}

/* 「プランについて」のPC/SP手順ラベル（◆）と直後の手順リストを整列する。 */
#plan-manage .faq-answer p:has(+ ol) {
  margin: 34px 0 8px;
}

#plan-manage .faq-answer p:has(+ ol) + ol {
  margin-top: 0;
}

.faq-answer p:empty {
  height: 0;
  margin: 0;
}

.faq-option-section {
  scroll-margin-top: 72px;
  margin-top: 24px;
}

.faq-option-section h4 {
  margin: 0 0 12px;
  color: #181f29;
  font-family: var(--font-sans);
  font-size: 14pt;
  font-weight: 700;
  line-height: 1.25;
}

.faq-option-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.faq-option-table th,
.faq-option-table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.faq-option-table th {
  background: #f5f5f5;
}

.faq-answer ul {
  margin: 0 0 10px;
  padding-left: 1.5em;
}

.faq-answer ol {
  margin: 18px 0;
  padding-left: 1.5em;
}

.faq-answer ol,
.price-features ol {
  list-style-type: decimal;
  list-style-position: outside;
}

.faq-answer li p {
  margin-bottom: 8px;
}

.faq-item {
  scroll-margin-top: 72px;
  margin: 0;
}

.faq-item h3 {
  margin: 44px 0 16px;
  color: #181f29;
  font-family: var(--font-sans);
  font-size: 15pt;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.faq-answer a,
.qa-contact a,
.legal-article a {
  color: var(--color-link);
  text-underline-offset: 0.18em;
}

.source-bold {
  font-weight: 700;
}

.source-underline {
  text-decoration: underline;
}

.source-strike {
  text-decoration-line: line-through;
}

.faq-answer .source-color-181f38 {
  color: #181f38;
}

.faq-answer .source-color-222222 {
  color: #222222;
}

.faq-answer .source-color-1a1f36 {
  color: #1a1f36;
}

.faq-answer .source-color-45818e {
  color: #45818e;
}

.faq-answer .source-color-191919 {
  color: #191919;
}

.faq-answer .source-color-ff0000 {
  color: #ff0000;
}

.qa-contact {
  scroll-margin-top: 72px;
  margin: 0 0 42px;
}

.qa-contact h2 {
  margin: 25px 0 0;
  color: #212121;
  font-family: var(--font-sans);
  font-size: 21pt;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

/* 手順・解説ページ（MCP連携ガイド等）で使う共通パーツ */
.doc-lead {
  margin: 0 0 16px;
  font-size: 12.5pt;
  font-weight: 700;
  line-height: 1.5;
}

.doc-section {
  scroll-margin-top: 24px;
  margin: 0 0 42px;
}

.doc-section h2 {
  margin: 25px 0 18px;
  color: #212121;
  font-family: var(--font-sans);
  font-size: 21pt;
  font-weight: 700;
  line-height: 1.25;
}

.doc-section h3 {
  scroll-margin-top: 24px;
  margin: 30px 0 12px;
  color: #181f29;
  font-family: var(--font-sans);
  font-size: 15pt;
  font-weight: 700;
  line-height: 1.25;
}

.doc-section p {
  margin: 0 0 15px;
}

.doc-list,
.doc-steps {
  margin: 0 0 20px;
  padding-left: 1.5em;
}

.doc-list {
  list-style: disc;
}

.doc-list li,
.doc-steps li {
  margin: 0 0 10px;
}

.doc-steps li > .doc-table-wrap,
.doc-steps li > .doc-code {
  margin-top: 12px;
}

.doc-table-wrap {
  margin: 0 0 20px;
  overflow-x: auto;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10.5pt;
  line-height: 1.5;
}

.doc-table th,
.doc-table td {
  padding: 10px 14px;
  border: 1px solid #dcdcdc;
  text-align: left;
  vertical-align: top;
}

.doc-table th {
  background: #f5f6f7;
  font-weight: 700;
}

.doc-table thead th {
  white-space: nowrap;
}

code {
  padding: 0.12em 0.38em;
  border-radius: 3px;
  background: #f0f0f1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.94em;
  word-break: break-all;
}

.doc-code {
  margin: 0 0 20px;
  padding: 14px 16px;
  overflow-x: auto;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  background: #f7f7f8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10pt;
  line-height: 1.55;
}

.doc-code code {
  padding: 0;
  border-radius: 0;
  background: none;
  font-size: inherit;
  word-break: normal;
}

.doc-figure {
  margin: 0 0 24px;
}

.doc-figure img {
  display: block;
  width: min(100%, 500px);
  height: auto;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
}

.doc-figure--narrow img {
  width: min(100%, 300px);
}

.doc-figure figcaption {
  margin: 8px 0 0;
  color: #666666;
  font-size: 10pt;
  line-height: 1.5;
}

.doc-note {
  margin: 0 0 20px;
  padding: 14px 18px;
  border-left: 5px solid #181f29;
  background: #f5f6f7;
}

.doc-note > :last-child {
  margin-bottom: 0;
}

.legal-list {
  margin: 0 0 16px;
  padding: 0;
}

.price-list {
  margin: 18px 0;
  padding: 0;
}

.legal-list {
  padding-left: 1.4em;
  list-style-type: square;
}

.price-list {
  padding-left: 1.4em;
  list-style-type: decimal;
}

/* Google Sites の外側 ol は採番形式でも、直下の構造用 li はマーカー非表示。 */
.price-list > li {
  list-style-type: none;
}

.legal-list ul,
.price-list ul {
  margin: 8px 0 0;
  padding-left: 1.4em;
  list-style-type: square;
}

.legal-list li,
.price-list li {
  margin: 0 0 8px;
}

.legal-list p,
.price-list p,
.price-features p {
  margin: 0 0 8px;
}

.price-features {
  margin: 14px 0 0;
  padding-left: 1.4em;
  list-style-type: square;
}

.price-features li {
  margin: 0 0 8px;
}

.price-features ol {
  margin: 18px 0;
  padding-left: 1.4em;
}

.price-subheading {
  margin-top: 24px;
  color: var(--color-text);
  font-weight: 700;
}

.price-note__continuation {
  padding-left: 1em;
}

.payment-example {
  display: block;
  width: min(100%, 900px);
  height: auto;
  margin: 16px auto 0;
}

[id] {
  scroll-margin-top: var(--anchor-offset);
}

.site-footer {
  padding: 28px 20px;
  color: var(--color-text);
  background: var(--color-white);
  font-size: 10pt;
  text-align: center;
}

.site-footer__inner p {
  margin: 0;
}

.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;
}

@media (max-width: 1180px) {
  .site-header__inner {
    padding: 0 16px;
  }

  .site-brand {
    padding-right: 18px;
  }

  .site-nav__link {
    padding-inline: 7px;
    font-size: 9.5pt;
  }

  .site-search {
    margin-left: 8px;
  }
}

@media (max-width: 920px) {
  .site-header__inner {
    display: flex;
    justify-content: center;
    padding: 0;
  }

  .site-brand {
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 0;
    transform: translate(-50%, -50%);
  }

  .site-brand__icon {
    width: 43px;
    height: 43px;
  }

  .site-brand__label {
    display: none;
  }

  .site-nav {
    display: none;
  }

  .site-search {
    position: absolute;
    top: 0;
    right: 14px;
    margin: 0;
  }

  .site-search__icon {
    transform: none;
  }

  .site-search__panel {
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: 100%;
    max-height: calc(100vh - var(--header-height));
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .site-mobile-menu {
    position: absolute;
    top: 0;
    left: 14px;
    display: block;
    height: var(--header-height);
    z-index: 2;
  }

  .site-mobile-menu summary {
    display: grid;
    grid-template-rows: repeat(3, 2px);
    width: 34px;
    height: 100%;
    cursor: pointer;
    align-content: center;
    justify-items: center;
    gap: 5px;
    list-style: none;
  }

  .site-mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .site-mobile-menu summary::before,
  .site-mobile-menu summary::after,
  .site-mobile-menu summary span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--color-white);
    content: "";
  }

  .site-mobile-menu summary span {
    position: static;
  }

  .site-mobile-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: min(320px, 88%);
    padding: 12px 0;
    background: var(--color-header);
    box-shadow: 3px 6px 18px rgb(0 0 0 / 22%);
  }

  .site-mobile-nav__link {
    display: block;
    padding: 12px 24px;
    color: var(--color-white);
    font-size: 11pt;
    font-weight: 700;
    text-decoration: none;
  }

  .site-mobile-nav__link.is-active {
    border-left: 4px solid var(--color-white);
    padding-left: 20px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 11pt;
  }

  .page-banner {
    min-height: 340px;
  }

  .page-banner--faq::before {
    background-size: auto 340px;
    background-position: center;
    opacity: 0.36;
  }

  .page-banner h1 {
    max-width: 290px;
    font-size: 22pt;
    line-height: 1.15;
  }

  .page-banner__inner {
    display: grid;
    justify-items: center;
  }

  .page-banner__lead {
    max-width: 290px;
    font-size: 11pt;
  }

  .page-content {
    width: min(100% - 52px, var(--content-width));
    padding-top: 54px;
  }

  .qa-login-guide__image {
    width: 100%;
  }

}
