
  /* 並べ方は suke.work（zonohoukou/v3 と同じ）：灰色の地・中央856px・16:9のサムネが2列・題名＋日付＋説明 */
  :root {
    --bg: #f6f6f6;
    --ink: #000;
    --sub: #8a8a8a;
    --line: rgba(0, 0, 0, .14);
    --thumb: #e6e6e6;
    --accent: #2c53de;
    --warn: #c62828;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --bg: #141414;
      --ink: #f2f2f2;
      --sub: #8f8f8f;
      --line: rgba(255, 255, 255, .16);
      --thumb: #262626;
      --accent: #8aa4ff;
      --warn: #ff8a80;
    }
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { -webkit-text-size-adjust: 100%; }
  body { background: var(--bg); color: var(--ink); font-family: "Noto Sans JP", sans-serif; font-size: 16px; line-height: 1.3; }
  a { color: inherit; text-decoration: none; }
  img { display: block; max-width: 100%; }
  ul, ol { list-style: none; }
  .wrap { max-width: 856px; margin: 0 auto; padding: 0 16px; }

  .head { display: flex; justify-content: space-between; align-items: center; height: 60px; font-size: 14px; gap: 12px; }
  .head .meta { color: var(--sub); text-align: right; }
  .stale { color: var(--warn); }

  h1 { font-size: 32px; font-weight: 400; margin-top: 12px; }
  .lead { font-size: 15px; line-height: 1.5; margin-top: 6px; }

  h2.sec { font-size: 15px; font-weight: 500; margin: 48px 0 0; display: flex; align-items: baseline; gap: 10px; }
  h2.sec .n { font-size: 12px; color: var(--sub); font-weight: 400; letter-spacing: .04em; }

  /* これから・本人の手 */
  .rows { margin-top: 10px; border-top: 1px solid var(--line); }
  .row { display: grid; grid-template-columns: 96px 72px minmax(0, 1fr); gap: 12px; align-items: baseline;
    padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
  .row .d { font-weight: 500; white-space: nowrap; }
  .row .left { font-size: 12px; color: var(--sub); letter-spacing: .04em; white-space: nowrap; }
  .row.soon .left, .row.today .left { color: var(--accent); }
  .row.today .d { color: var(--accent); }
  .row.past .left { color: var(--warn); }
  .row small { font-size: 12px; color: var(--sub); margin-left: .5em; }
  .row.ask { grid-template-columns: 168px minmax(0, 1fr); }
  .kind { font-size: 11px; border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; margin-right: .5em;
    vertical-align: 1px; color: var(--sub); white-space: nowrap; }
  .kind.j { color: var(--accent); border-color: var(--accent); }
  .more { font: inherit; font-size: 14px; color: var(--sub); background: none; border: 0; cursor: pointer; padding: 10px 0; }
  .more:hover { color: var(--ink); }

  /* 絞り込み（v3 の言語切り替えと同じ作法） */
  .filter { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 14px; font-size: 14px; }
  .filter button { font: inherit; color: var(--sub); background: none; border: 0; cursor: pointer; padding: 6px 0; }
  .filter button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
  .filter button:hover { color: var(--ink); }

  /* プロジェクトの並び */
  /* minmax(0, 1fr)：列の幅を中身（ロゴ画像の元の大きさ）に引っ張らせない。1fr だけだと 1000px の画像で列が広がる */
  .works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; margin: 24px 0 0; }
  .works.small { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
  .work { min-width: 0; overflow-wrap: anywhere; }
  .thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 7px; overflow: hidden; background: var(--thumb);
    display: grid; place-items: center; }
  /* 画像は枠に対して置く（% の高さが枠を基準に効くように） */
  .thumb img { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 90%; max-height: 90%; }
  .thumb.cover img { left: 0; top: 0; transform: none; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
  .thumb.logo img { object-fit: contain; }
  .thumb.word { border: 1.5px dashed var(--line); background: transparent; font-size: 40px; letter-spacing: .02em; }
  .small .thumb.word { font-size: 26px; }
  .work a.t:hover h3 { text-decoration: underline; text-underline-offset: 3px; }

  .work .meta { margin-top: 12px; line-height: 1.3; }
  .work h3 { font-size: 15px; font-weight: 500; display: inline; }
  .work time { font-size: 12px; color: var(--sub); letter-spacing: .04em; margin-left: .35em; }
  .work time::before { content: "・"; margin-right: .15em; }
  .work time.old { color: var(--warn); }
  .status { font-size: 11px; border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; margin-left: .45em;
    vertical-align: 1px; color: var(--sub); }
  .status.active { color: var(--accent); border-color: var(--accent); }
  .status.wait { color: var(--warn); border-color: var(--warn); }
  .work p { font-size: 15px; line-height: 1.5; margin-top: 6px; }
  .small .work p { font-size: 13px; color: var(--sub); }
  .small .work ol li { font-size: 13px; }
  .work .warn { font-size: 13px; color: var(--warn); margin-top: 6px; line-height: 1.5; }

  .work .lbl { font-size: 12px; color: var(--sub); margin-top: 14px; letter-spacing: .04em; }
  .work ol { margin-top: 4px; counter-reset: n; }
  .work ol li { counter-increment: n; position: relative; padding-left: 1.6em; font-size: 14px; line-height: 1.55; margin-top: 2px; }
  .work ol li::before { content: counter(n); position: absolute; left: 0; top: .2em; font-size: 11px; color: var(--sub);
    width: 1.2em; text-align: center; }
  .work ol.ask li::before { content: "?"; color: var(--accent); }
  .me { font-size: 11px; color: var(--accent); margin-left: .4em; white-space: nowrap; }

  /* 月の表（calendar.md） */
  .cal-bar { display: flex; align-items: baseline; gap: 14px; margin-top: 10px; }
  .cal-bar b { font-size: 15px; font-weight: 500; margin-right: auto; }
  .cal-bar button { font: inherit; font-size: 14px; color: var(--sub); background: none; border: 0; cursor: pointer; padding: 6px 2px; }
  .cal-bar button:hover { color: var(--ink); }
  .cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-top: 6px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
  .cal .wd { font-size: 11px; color: var(--sub); text-align: center; padding: 6px 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .cal .c { font: inherit; color: inherit; background: none; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
    min-height: 84px; padding: 4px 5px 6px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow: hidden; }
  .cal .c:hover { background: rgba(127, 127, 127, .06); }
  .cal .c .n { font-size: 13px; }
  .cal .c.out .n { color: var(--sub); opacity: .55; }
  .cal .c.today .n { color: var(--accent); font-weight: 700; }
  .cal .c.sel { box-shadow: inset 0 0 0 1.5px var(--accent); }
  .cal .e { font-size: 11px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cal .e.rep, .cal .e.vague { color: var(--sub); }
  .cal .e.mine::before { content: "●"; color: var(--accent); font-size: 8px; margin-right: 3px; vertical-align: 1px; }
  .cal .more-n { font-size: 11px; color: var(--sub); }
  .cal .ct { font-style: normal; }
  .day-list { margin-top: 0; }
  .day-h { font-size: 14px; font-weight: 500; margin-top: 14px; }
  .bad { margin-top: 10px; font-size: 13px; color: var(--warn); line-height: 1.6; }

  .foot { text-align: center; font-size: 13px; color: var(--sub); padding: 80px 0 40px; }

  @media (max-width: 640px) {
    h1 { font-size: 28px; }
    .works { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .works.small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .row { grid-template-columns: 80px minmax(0, 1fr); }
    .row .left { grid-column: 2; grid-row: 2; }
    .row .t { grid-column: 2; grid-row: 1; }
    .row.ask { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .head .meta { font-size: 12px; }
    .cal .c { min-height: 58px; padding: 3px 3px 4px; }
    .cal .e { font-size: 10px; }
    .cal .ct { display: none; }   /* 狭いと時刻でマスが埋まる。時刻は下の「その日の予定」に出る */
  }
  @media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
