@font-face {
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./noto-sans-jp-400.ttf) format('truetype');
}

@font-face {
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(./noto-sans-jp-500.ttf) format('truetype');
}

  :root {
    --bg: #f1efea; --ink: #262826; --sub: #74776f; --line: #cdc9bf; --trace: #3a3c3a; --faint: rgba(38, 40, 38, .18); --accent: #56664a;
    color-scheme: light;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); }
  /* 色がゆっくり変わるのは、開いたあとの時刻の移り変わりのときだけ（開いた瞬間は、その時刻の色で表示する） */
  html.ready, html.ready body { transition: background-color .7s ease, color .7s ease; }
  @media (prefers-reduced-motion: reduce) { html.ready, html.ready body, .field canvas { transition: none !important; } }   /* 動きを減らす設定では、色も絵もすぐ切り替える */
  body { font: 15px/1.6 "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif; font-feature-settings: "palt"; -webkit-font-smoothing: antialiased; }
  .mono { font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Noto Sans JP", monospace; font-feature-settings: normal; }
  .page { height: 100%; max-width: 1200px; margin: 0 auto; padding: 40px 40px 32px; display: grid; grid-template-rows: auto minmax(240px, 1fr) 1px auto auto auto; min-height: 100svh; }
  header { display: flex; justify-content: flex-end; padding-bottom: 20px; border-bottom: 1px solid var(--ink); }
  .who { text-align: right; }
  .who h1 { margin: 0; font-size: 19px; font-weight: 500; letter-spacing: .2em; }
  .who p { margin: 2px 0 0; font-size: 12px; letter-spacing: .16em; color: var(--sub); }
  .field { position: relative; min-height: 240px; overflow: hidden; }
  .field canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: opacity .7s ease; }
  .progress { position: relative; height: 1px; background: var(--line); }
  /* 隠しスライダー：見た目は線のまま。上下に見えない当たり判定を広げ、カーソルだけ変わる */
  .progress[role="slider"] { cursor: ew-resize; touch-action: none; outline: none; }
  .progress[role="slider"]::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; bottom: -12px; }
  .progress[role="slider"]:focus-visible { box-shadow: 0 0 0 1px var(--accent); }
  .progress i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--ink); }
  .meta { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0 18px; font-size: 10px; letter-spacing: .16em; color: var(--sub); }
  #info { display: flex; flex-wrap: wrap; column-gap: .6em; }
  .info-item { white-space: nowrap; }
  .ways { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
  .ways a { display: grid; grid-template-columns: 1fr auto; align-items: center; color: inherit; text-decoration: none; padding: 26px 0; font-size: clamp(26px, 3.4vw, 38px); line-height: 1; letter-spacing: .02em; }
  .ways a:first-child { border-right: 1px solid var(--line); padding-right: 32px; }
  .ways a:last-child { padding-left: 32px; }
  .ways .ar { font-size: 20px; color: var(--accent); transition: transform .18s cubic-bezier(.2, .7, .2, 1); }
  .ways a:hover .ar, .ways a:focus-visible .ar { transform: translate(3px, -3px); }
  .ways a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  @media (max-width: 680px) {
    .page { padding: 24px 20px 20px; }
    .meta { flex-wrap: wrap; }
    .ways a { font-size: 24px; padding: 20px 0; }
    .ways a:first-child { padding-right: 14px; } .ways a:last-child { padding-left: 14px; }
  }

  .past { display: flex; justify-content: flex-end; padding-top: 10px; font-size: 12px; letter-spacing: .1em; }
  .past a { display: inline-flex; align-items: center; gap: 8px; min-height: 24px; color: var(--sub); text-decoration: none; }
  .past .ar { color: var(--accent); }
  .past a:hover { color: var(--ink); }
  .past a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

  @media (prefers-reduced-motion: reduce) { .ways .ar { transition: none; } .ways a:hover .ar, .ways a:focus-visible .ar { transform: none; } }
