/* kojin.html 用: Word 出力をWeb向けに整える */

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #1f2937;
  --line: #e5e7eb;
  --title: #0f172a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Meiryo", "Yu Gothic UI", "Yu Gothic", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", sans-serif;
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-text-size-adjust: 100%;
  overflow-wrap: anywhere;
}

.WordSection1 {
  max-width: 980px;
  margin: 24px auto;
  padding: 36px 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

p.MsoNormal {
  margin: 0 0 0.8rem !important;
  font-size: 15px !important;
  line-height: 1.85 !important;
  color: var(--text) !important;
}

p.MsoNormal[align="center"] {
  text-align: center !important;
  margin-bottom: 1.4rem !important;
}

p.MsoNormal[align="center"] b,
p.MsoNormal[align="center"] strong {
  font-size: 28px !important;
  line-height: 1.3 !important;
  color: var(--title) !important;
}

span {
  font-family: inherit !important;
}

span[lang="EN-US"] {
  font-family: inherit !important;
}

a {
  color: #1d4ed8;
  text-underline-offset: 2px;
}

@media (max-width: 900px) {
  .WordSection1 {
    margin: 12px;
    padding: 20px 16px;
    border-radius: 10px;
  }

  p.MsoNormal {
    font-size: 14px !important;
    line-height: 1.75 !important;
  }

  p.MsoNormal[align="center"] b,
  p.MsoNormal[align="center"] strong {
    font-size: 22px !important;
  }
}

@media print {
  body {
    background: #fff;
  }

  .WordSection1 {
    margin: 0;
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  p.MsoNormal {
    font-size: 10.5pt !important;
    line-height: 1.7 !important;
  }
}
