:root {
      --paper: #fbf9f4;
      --ink: #544a43;
      --subtle: #857870;
      --accent: #a17a70;
      --border: #dfd7cd;
      --pale: #f2ede6;
      --body-font: 'Yu Mincho', 'Hiragino Mincho ProN', 'Noto Serif JP', serif;
      --ui-font: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
      --logo-font: 'Lobster Two', 'Snell Roundhand', 'Segoe Script', 'Brush Script MT', 'URW Chancery L', cursive;
    }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      background: var(--paper);
      color: var(--ink);
      font-family: var(--body-font);
      font-size: 15px;
      line-height: 1.9;
      -webkit-font-smoothing: antialiased;
    }
    body:before {
      content: '';
      position: fixed;
      inset: 0;
      background: radial-gradient(ellipse at 48% -25%, rgba(230,211,192,.25), transparent 60%);
      z-index: -1;
      pointer-events: none;
    }
    a { color: inherit; text-decoration: none; }
    a:hover { color: var(--accent); }
    a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
    button, input { font: inherit; }
    button { cursor: pointer; }
    .wrap { width: min(100% - 48px, 720px); margin: 0 auto; }
    .site-header { text-align: center; padding: 54px 0 22px; }
    .logo {
      display: inline-block;
      font-family: var(--logo-font);
      font-size: clamp(57px, 10vw, 76px);
      font-weight: 400;
      font-style: italic;
      letter-spacing: -.065em;
      line-height: 1;
      transform: rotate(-4deg);
    }
    .logo small { font-size: 11px; line-height: 1; letter-spacing: .25em; font-family: var(--ui-font); display: block; transform: rotate(4deg); font-style: normal; font-weight: 400; padding-left: 16px; margin-top: 15px; color: var(--subtle); }
    .donut { width: 23px; height: 23px; display: block; border: 6px solid #d0b4a4; border-radius: 50%; margin: 26px auto 0; transform: rotate(22deg); opacity: .8; }
    .top-guide { margin: 28px auto 0; text-align: center; font-size: 12px; color: var(--subtle); line-height: 2.1; }
    .more { font-size: 12px; letter-spacing: .08em; color: var(--accent); border-bottom: 1px solid #cbb9b0; padding-bottom: 1px; }
    .divider { margin: 44px 0 34px; height: 1px; border: 0; background: var(--border); }
    .label { font-family: var(--ui-font); text-transform: uppercase; color: #a08c7c; font-size: 11px; letter-spacing: .2em; font-weight: 600; }
    .section-title { margin: 0 0 18px; font-size: 13px; font-weight: normal; letter-spacing: .09em; }
    .section-title .label { margin-left: 9px; font-size: 10px; }
    .name-area { background: rgba(242,237,230,.64); padding: 23px 28px 24px; border-radius: 2px; }
    .name-area h2 { font: 600 11px/1.6 var(--ui-font); color: var(--subtle); letter-spacing: .18em; margin: 0 0 16px; }
    .name-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 15px 20px; }
    .name-field { display: flex; align-items: center; gap: 12px; }
    .name-field label { color: var(--subtle); font-size: 12px; min-width: 35px; }
    .name-field input { background: var(--paper); color: var(--ink); border: 1px solid #e0d7ce; border-radius: 2px; outline: 0; padding: 8px 10px; width: 149px; max-width: 55vw; font-size: 13px; }
    .name-fields.half .name-field input { width: 170px; }
    .name-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
    .name-submit { background: #a17a70; border: 1px solid #a17a70; color: #fffaf6; border-radius: 2px; padding: 6px 22px; font: 12px/1.8 var(--ui-font); letter-spacing: .08em; transition: background-color .2s ease; }
    .name-submit:hover { background: #856157; }
    .save-status { color: #88766d; font: 11px/1.8 var(--ui-font); min-height: 1em; }
    .small-note { font-family: var(--ui-font); color: #9b8e84; font-size: 10px; letter-spacing: .015em; margin: 12px 0 0; }
    .works-title { font: 500 14px/1.6 var(--ui-font); letter-spacing: .18em; color: var(--subtle); margin: 0 0 38px; }
    .group { margin: 0 0 42px; }
    .group h3 { margin: 0 0 20px; padding-left: 13px; border-left: 2px solid #cbb8ac; font-size: 14px; font-weight: 500; letter-spacing: .11em; line-height: 1.4; }
    .work { padding: 0 0 22px 15px; }
    .work + .work { border-top: 1px solid #ebe4dc; padding-top: 18px; }
    .work-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px; }
    .work-link { font-size: 15px; line-height: 1.7; border-bottom: 1px solid transparent; }
    .work-link:hover { border-color: var(--accent); }
    .badge { font: 600 9px/1.5 var(--ui-font); letter-spacing: .08em; color: #9a8073; padding: 1px 5px; border: 1px solid #d3c2b7; border-radius: 2px; }
    .badge.new { color: #a26d68; border-color: #d8bab7; }
    .desc { margin: 6px 0 0; color: var(--subtle); font-size: 12px; line-height: 1.9; }
    .more-list { margin-top: 10px; padding: 20px 15px 0; border-top: 1px solid #ebe4dc; font-size: 13px; }
    .more-list a { border-bottom: 1px solid #cbb9b0; padding-bottom: 3px; }
    footer { text-align: center; color: #aa9e94; padding: 30px 0 46px; font: 11px/1.8 var(--ui-font); letter-spacing: .07em; }
    .page-header { margin: 42px 0 26px; text-align: center; }
    .page-heading { font-size: 24px; line-height: 1.65; font-weight: 500; letter-spacing: .07em; margin: 0; }
    .page-brief { margin: 18px auto 0; color: var(--subtle); font-size: 12px; line-height: 2; max-width: 560px; white-space: pre-line; }
    .text-body { padding: 8px 0 6px; font-size: 15px; line-height: 2.6; letter-spacing: .018em; }
    .text-body p { margin: 0 0 1.8em; white-space: pre-wrap; overflow-wrap: anywhere; }
    .text-body p:last-child { margin-bottom: 0; }
    .work-rule { border: none; height: 1px; background: var(--border); margin: 45px 0 37px; }
    .back { text-align: center; margin-top: 26px; font-size: 12px; letter-spacing: .03em; }
    .episode-list { max-width: 400px; margin: 4px auto 15px; padding: 0; list-style: none; }
    .episode-list li { border-bottom: 1px solid #eee7df; padding: 17px 4px; text-align: center; font-size: 14px; }
    .ep-nav { display: flex; justify-content: center; gap: 32px; font-size: 12px; margin: 17px auto 0; }
    .ep-nav > * { min-width: 42px; text-align: center; }
    .ep-nav .inert { color: #ccc3bb; }
    .notice { font-size: 12px; color: var(--subtle); max-width: 540px; margin: 32px auto; line-height: 2.2; }
    @media (max-width: 520px) {
      .wrap { width: min(100% - 36px, 720px); }
      .site-header { padding-top: 43px; }
      .top-guide { margin-top: 24px; }
      .divider { margin: 33px 0 29px; }
      .name-area { padding: 20px 18px; }
      .name-fields { gap: 10px 14px; }
      .name-field { gap: 9px; }
      .name-field input { width: 115px; }
      .works-title { margin-bottom: 31px; }
      .group { margin-bottom: 33px; }
      .work { padding-left: 9px; }
      .page-header { margin-top: 31px; }
      .page-heading { font-size: 21px; }
      .text-body { font-size: 15px; line-height: 2.45; }
      .ep-nav { gap: 25px; }
    }
    @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* 小説本文の強調・改行はMarkdownから生成します。 */
.text-body h2, .text-body h3 { font-size: 1em; font-weight: 600; }
.text-body blockquote { margin: 1.4em 0; padding-left: 1em; border-left: 2px solid var(--border); color: var(--subtle); }
.text-body a { text-decoration: underline; text-underline-offset: .2em; }
.text-body code { overflow-wrap: anywhere; }
.name-area input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
