/* ============================================================
   Steorra — 中小M&Aガイドライン遵守宣言ページ (/ja/guideline.html)
   Long-form document on the dark shader ground: one glass sheet,
   Noto Sans JP for the body (readability), DotGothic16 for chrome.
   ============================================================ */

.page--doc {
  min-height: 100svh;
  overflow: visible;           /* the page scrolls, unlike the hero/contact */
  padding-bottom: 64px;
}

.center--doc {
  margin: 0;
  width: 100%;
  max-width: 820px;
  gap: 28px;
  padding: 24px 0 40px;
}

.pixel-star--doc { font-size: 4px; }

.doc-title {
  /* same stack and tracking as the detail panel's .proj-title */
  font-family: 'Inter', 'Noto Sans JP', system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 28px);
  letter-spacing: -0.01em;
  text-indent: 0;
  text-align: center;
  line-height: 1.6;
  margin: 0;
}
.doc-title small {
  display: block;
  font-family: 'DotGothic16', monospace;   /* = .proj-label */
  font-size: 11px;
  letter-spacing: 0.28em;
  opacity: 0.45;
  margin-bottom: 12px;
}

/* the sheet */
.doc {
  box-sizing: border-box;
  width: 100%;
  padding: 44px 48px 40px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(236, 238, 246, 0.12);
  /* body type = the detail panel's .proj-desc: Inter for Latin, Noto Sans JP
     for kana/kanji, 14.5px / 1.8, flush both edges, last line left */
  font-family: 'Inter', 'Noto Sans JP', system-ui, sans-serif;
  font-weight: 400;
  font-size: 14.5px;
  line-height: 1.8;
  letter-spacing: 0;
  color: #ECEEF6;
  text-align-last: left;
  /* justified Japanese body: inter-character spacing, strict kinsoku,
     and Latin runs allowed to break so the last glyph meets the margin */
  text-align: justify;
  text-justify: inter-character;
  line-break: strict;
  word-break: normal;
  overflow-wrap: anywhere;
}
.doc h1, .doc h2, .doc h3, .doc .ki, .doc .ijo, .doc .sign, .doc .refs { text-align: left; }
.doc .ki { text-align: center; text-align-last: center; }
.doc .ijo, .doc .sign { text-align: right; text-align-last: right; }
.doc ol.items > li > .n { text-align-last: right; }

.doc p { margin: 0 0 1.2em; }
.doc .lead { font-size: 15px; }

/* 「記」 and 「以上」 */
.doc .ki { text-align: center; margin: 1.6em 0 1.2em; letter-spacing: 0.5em; text-indent: 0.5em; }
.doc .ijo { text-align: right; margin-top: 2em; }

/* section heads: ○…… */
.doc h2 {
  font-family: 'DotGothic16', monospace;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.12em;
  margin: 2.4em 0 0.9em;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(236, 238, 246, 0.2);
}
/* the site's pixel star (same box-shadow glyph as .icon-star) in place of ○.
   The glyph spans ±2em around its 1em cell, so it gets real margins. */
.doc h2::before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  font-size: 3px;
  width: 1em;
  height: 1em;
  margin: 0 16px 0 7px;
  position: relative;
  top: -1px;
  background: currentColor;
  box-shadow:
    0 -2em 0 0 currentColor, 0 -1em 0 0 currentColor,
    -2em 0 0 0 currentColor, -1em 0 0 0 currentColor,
    1em 0 0 0 currentColor, 2em 0 0 0 currentColor,
    0 1em 0 0 currentColor, 0 2em 0 0 currentColor,
    -1em -1em 0 0 currentColor, 1em -1em 0 0 currentColor,
    -1em 1em 0 0 currentColor, 1em 1em 0 0 currentColor;
}
.doc h2 .note { font-family: inherit; font-size: 12px; opacity: 0.6; letter-spacing: 0; margin-left: 0.8em; }

/* phase heads: 【…】 */
.doc h3 {
  font-weight: 500;
  font-size: 14.5px;
  margin: 1.6em 0 0.4em;
  opacity: 0.9;
}

/* a sub-lead inside a section (「専任条項については、……」) */
.doc .sub-lead { margin: 1.2em 0 0.4em; opacity: 0.9; }

/* numbered clauses 1–42 (numbers are in the source, not generated,
   so they stay continuous across sections) */
.doc ol.items { list-style: none; margin: 0; padding: 0; }
.doc ol.items > li {
  position: relative;
  padding-left: 2.4em;
  margin: 0 0 1.05em;
}
.doc ol.items > li > .n {
  position: absolute;
  left: 0;
  top: 0.12em;
  width: 1.9em;
  font-family: 'DotGothic16', monospace;   /* = .proj-index */
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0.5;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* bullets ・ */
.doc ul { list-style: none; margin: 0.4em 0 0.2em; padding: 0; }
.doc ul > li { position: relative; padding-left: 1.2em; margin: 0.25em 0; opacity: 0.95; }
.doc ul > li::before { content: '・'; position: absolute; left: 0; top: 0; opacity: 0.7; }

/* circled numbers ①②③ and (1)…(17): numbers are in the text */
.doc ol.circ, .doc ol.paren { list-style: none; margin: 0.4em 0 0.2em; padding: 0; }
.doc ol.circ > li { position: relative; padding-left: 1.6em; margin: 0.25em 0; }
.doc ol.circ > li > .n { position: absolute; left: 0; top: 0; }
.doc ol.paren > li { position: relative; padding-left: 2.6em; margin: 0.25em 0; }
.doc ol.paren > li > .n { position: absolute; left: 0; top: 0; }
.doc ul.dash > li::before { content: '－'; }

/* ※ remarks */
.doc .rem {
  font-size: 13.5px;
  line-height: 1.85;
  opacity: 0.72;
  margin: 0.5em 0 0.6em;
  padding-left: 1.3em;
  text-indent: -1.3em;
}

/* signature block */
.doc .sign {
  margin-top: 2.6em;
  padding-top: 1.4em;
  border-top: 1px solid rgba(236, 238, 246, 0.2);
  text-align: right;
  line-height: 1.9;
}
.doc .sign .date { opacity: 0.7; font-size: 14px; }

/* references */
.doc .refs { margin-top: 2em; font-size: 13.5px; opacity: 0.8; }
.doc .refs dt { font-family: 'DotGothic16', monospace; letter-spacing: 0.28em; font-size: 11px; opacity: 0.45; margin-bottom: 8px; }
.doc .refs dd { margin: 0 0 4px; }
.doc .refs a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(236, 238, 246, 0.4); }

.doc em { font-style: normal; text-emphasis: filled sesame; -webkit-text-emphasis: filled sesame; }

@media (max-width: 600px) {
  .center--doc { gap: 20px; padding: 12px 0 24px; }
  .pixel-star--doc { font-size: 3px; }
  .doc {
    padding: 26px 20px 24px;
    border-radius: 16px;
    font-size: 13.5px;               /* = mobile .proj-desc */
    line-height: 1.7;
  }
  .doc .lead { font-size: 14px; }
  .doc ol.items > li { padding-left: 2.1em; }
  .doc .rem { font-size: 12.5px; }
}
