/* Stock-HR / 株式会社OpenYouth 法務文書 共通スタイル
   A4 印刷を主目的に最適化。Chrome の「印刷 → PDFとして保存」で書類化する想定。 */

@page {
  size: A4;
  margin: 20mm 18mm 22mm 18mm;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  font-size: 10.5pt;
  line-height: 1.85;
  color: #1a1a1a;
  background: #f6f5f3;
  margin: 0;
  padding: 0;
  font-feature-settings: "palt" 1;
}

main.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 56px 80px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

@media screen {
  main.page {
    margin: 32px auto;
    box-shadow: 0 6px 36px rgba(0, 0, 0, 0.08);
  }
}

@media print {
  body {
    background: #ffffff;
  }
  main.page {
    margin: 0;
    padding: 0;
    box-shadow: none;
    max-width: 100%;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
  .no-print {
    display: none;
  }
}

header.doc-header {
  border-bottom: 1px solid #d6d3cc;
  padding-bottom: 18px;
  margin-bottom: 28px;
}

.eyebrow {
  font-size: 9pt;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8b8378;
  margin: 0 0 6px;
  font-weight: 500;
}

h1 {
  font-size: 19pt;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  color: #1a1a1a;
}

.meta {
  font-size: 9.5pt;
  color: #6b6358;
  margin: 8px 0 0;
}

h2 {
  font-size: 12.5pt;
  font-weight: 600;
  border-left: 3px solid #c92a2a;
  padding-left: 10px;
  margin: 32px 0 12px;
  color: #1a1a1a;
  page-break-after: avoid;
}

h3 {
  font-size: 11pt;
  font-weight: 600;
  margin: 20px 0 6px;
  color: #2a2a2a;
  page-break-after: avoid;
}

p {
  margin: 0 0 10px;
}

ol,
ul {
  margin: 0 0 12px;
  padding-left: 1.6em;
}

ol > li,
ul > li {
  margin-bottom: 4px;
}

ol.lower-roman {
  list-style: lower-roman;
}

article > section + section {
  margin-top: 8px;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0 18px;
  font-size: 10pt;
  page-break-inside: auto;
}

th,
td {
  border: 1px solid #d6d3cc;
  padding: 9px 12px;
  vertical-align: top;
  text-align: left;
}

th {
  background: #f6f5f3;
  font-weight: 600;
  width: 30%;
  white-space: nowrap;
}

footer.doc-footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid #d6d3cc;
  font-size: 9pt;
  color: #8b8378;
  text-align: right;
}

.placeholder {
  background: #fff7e6;
  color: #8a4d00;
  padding: 0 4px;
  border-radius: 3px;
  font-weight: 600;
}

.note {
  font-size: 9.5pt;
  color: #6b6358;
  background: #f6f5f3;
  border-left: 3px solid #c4bdb0;
  padding: 10px 14px;
  margin: 10px 0 16px;
}

/* インデックスページ用 */
nav.doc-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 24px 0;
}

nav.doc-nav a {
  display: block;
  padding: 18px 22px;
  border: 1px solid #d6d3cc;
  border-radius: 8px;
  color: #1a1a1a;
  text-decoration: none;
  background: #fff;
  transition: border-color 0.12s;
}

nav.doc-nav a:hover {
  border-color: #c92a2a;
}

nav.doc-nav .ttl {
  font-size: 12pt;
  font-weight: 600;
  margin-bottom: 4px;
}

nav.doc-nav .desc {
  font-size: 9.5pt;
  color: #6b6358;
}
