
  * { box-sizing: border-box; margin: 0; padding: 0; }

  html, body {
    background: #f6f6f6;
    color: #202122;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Helvetica Neue", Helvetica, Arial, sans-serif;
    min-height: 100vh;
    line-height: 1.65;
    font-size: 15px;
  }

  a { color: #0645ad; text-decoration: none; }
  a:hover { text-decoration: underline; }
  a:visited { color: #0b0080; }

  .sitehead {
    background: #ffffff;
    border-bottom: 1px solid #a2a9b1;
  }
  .sitehead-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }
  .sitehead .logo {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }
  .sitehead .logo a {
    color: #202122;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.01em;
  }
  .sitehead .logo a:hover { text-decoration: none; }
  .sitehead .logo .sub {
    color: #72777d;
    font-size: 12px;
  }
  .sitehead .toplink {
    color: #54595d;
    font-size: 12.5px;
  }

  .authbox { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
  .owner-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #d5fdf4;
    color: #14866d;
    border: 1px solid #b3f0e0;
    letter-spacing: 0.02em;
  }
  .linklike {
    background: none;
    border: none;
    color: #0645ad;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
  }
  .linklike:hover { text-decoration: underline; }

  .wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 20px 60px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 22px;
    align-items: start;
  }
  @media (max-width: 700px) {
    .wrap { grid-template-columns: 1fr; }
  }

  .pagelist {
    background: #f8f9fa;
    border: 1px solid #eaecf0;
    border-radius: 2px;
    padding: 12px 14px;
    font-size: 13.5px;
  }
  .pagelist h2 {
    font-size: 12px;
    color: #54595d;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 8px;
    border-bottom: 1px solid #eaecf0;
    padding-bottom: 6px;
  }
  .pagelist ul { list-style: none; }
  .pagelist li { margin-bottom: 2px; }
  .pagelist a {
    display: block;
    padding: 4px 6px;
    border-radius: 2px;
    color: #0645ad;
  }
  .pagelist a:hover { background: #eaf0fa; text-decoration: none; }
  .pagelist a.current { background: #eaf0fa; color: #202122; font-weight: 600; }
  .pagelist .empty-hint { color: #72777d; padding: 4px 6px; }
  .pagelist .newpage { margin-top: 10px; border-top: 1px solid #eaecf0; padding-top: 10px; }

  .content {
    background: #ffffff;
    border: 1px solid #eaecf0;
    border-radius: 2px;
    padding: 26px 32px 36px;
    min-height: 300px;
  }
  .content h1 {
    font-size: 28px;
    font-weight: 600;
    color: #202122;
    border-bottom: 1px solid #a2a9b1;
    padding-bottom: 10px;
    margin-bottom: 4px;
  }
  .content h2 {
    font-size: 20px;
    font-weight: 600;
    color: #202122;
    border-bottom: 1px solid #eaecf0;
    padding-bottom: 4px;
    margin: 22px 0 10px;
  }
  .content h3 { font-size: 16px; font-weight: 600; margin: 16px 0 6px; }
  .content p { margin-bottom: 14px; white-space: pre-wrap; }
  .content ul, .content ol { margin: 0 0 14px 26px; }
  .content li { margin-bottom: 5px; }
  .content code {
    background: #f8f9fa;
    border: 1px solid #eaecf0;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  }
  .content pre {
    background: #f8f9fa;
    border: 1px solid #eaecf0;
    border-radius: 3px;
    padding: 12px 14px;
    overflow-x: auto;
    margin-bottom: 14px;
  }
  .content pre code { background: none; border: none; padding: 0; }
  .content blockquote {
    border-left: 3px solid #c8ccd1;
    padding-left: 14px;
    color: #54595d;
    margin-bottom: 14px;
  }
  .content hr { border: none; border-top: 1px solid #eaecf0; margin: 20px 0; }
  .content .meta { color: #72777d; font-size: 12.5px; margin-bottom: 18px; font-style: italic; }
  .content .empty { color: #72777d; }

  .edit-toolbar { display: flex; gap: 14px; margin-bottom: 6px; font-size: 13px; justify-content: flex-end; }
  .edit-toolbar .linklike.danger { color: #b32424; }

  .editor input[type=text] {
    width: 100%;
    background: #fff;
    border: 1px solid #a2a9b1;
    border-radius: 2px;
    color: #202122;
    font: inherit;
    font-size: 20px;
    padding: 8px 10px;
    margin-bottom: 12px;
    outline: none;
  }
  .editor input[type=text]:focus { border-color: #36c; box-shadow: 0 0 0 1px #36c; }
  .editor textarea {
    width: 100%;
    min-height: 380px;
    background: #fff;
    border: 1px solid #a2a9b1;
    border-radius: 2px;
    color: #202122;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
    line-height: 1.6;
    padding: 12px;
    outline: none;
    resize: vertical;
  }
  .editor textarea:focus { border-color: #36c; box-shadow: 0 0 0 1px #36c; }
  .editor .hint { color: #72777d; font-size: 12px; margin: 8px 0 14px; }
  .editor .save-row { display: flex; gap: 10px; margin-top: 14px; align-items: center; }
  .editor .status { font-size: 12.5px; color: #72777d; }

  .btn {
    background: #f8f9fa;
    border: 1px solid #a2a9b1;
    border-radius: 2px;
    color: #202122;
    padding: 6px 16px;
    font: inherit;
    font-size: 13.5px;
    cursor: pointer;
  }
  .btn:hover { background: #eaecf0; }
  .btn.primary { background: #36c; border-color: #36c; color: #fff; }
  .btn.primary:hover { background: #2a4b8d; }

  footer {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 40px;
    text-align: center;
    font-size: 12px;
    color: #72777d;
  }
  footer a { color: #72777d; text-decoration: underline; }

  .content img { max-width: 100%; max-height: 70vh; width: auto; height: auto; display: block; margin: 14px auto; border-radius: 4px; }
  .content { overflow-wrap: break-word; }
