/* 2026-11-11: トップ・哲学以外のページで共通に読む指定（上部のナビ・共通フッター・スマホの絞り込み）。各ページの <style> の後に読む */

/* 上部のナビ。2026-11-13: トップ・哲学のページのヘッダーと同じ見た目にそろえる（字の大きさ・色・押せる高さ・いまのページの下線・ロゴ横の文）。
   「← Back to the mountain」は出さない（ロゴがトップへ戻る。トップのヘッダーにも無い） */
.head .top { align-items: center; flex-wrap: nowrap; }
.head .top > a { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.head .top nav { display: flex; flex-wrap: nowrap; align-items: center; gap: 18px; color: var(--ink); }
.head .top nav a { color: var(--ink); font-size: 12px; letter-spacing: .1em; text-decoration: none; white-space: nowrap; min-height: 32px; display: inline-flex; align-items: center; border-bottom: 1px solid transparent; text-shadow: 0 1px 6px rgba(5, 6, 8, .9); }
.head .top nav a:hover, .head .top nav a:focus-visible { color: var(--lamp); border-bottom-color: var(--lamp); }
.head .top nav a[aria-current] { color: var(--ink); border-bottom-color: var(--lamp); }
.head .top nav a:last-child { display: none; }
@media (min-width: 1024px) { .head .top > a:not(:has(.mono))::after { content: "Independent Creative Practice"; font-family: "Martian Mono", ui-monospace, monospace; font-size: 10.5px; font-stretch: 87.5%; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); white-space: nowrap; } } /* 名鑑のページにはロゴ横の文が無いので足す */
@media (max-width: 759px) { .head .top nav { gap: 16px; } .head .top nav a { min-height: 28px; } }
.head > .top { max-width: none; } /* 名鑑のページは .head > * に幅の上限があるが、ヘッダーの帯は画面の端まで */
@media (max-width: 759px) {
  /* スマホ: ロゴとナビを 1 行に。ロゴ横の文と「← Back to the mountain」は出さない（ロゴがトップへ戻る） */
  .top { flex-wrap: nowrap; gap: 10px; }
  .top > a > .mono { display: none; }
  .head .top nav { gap: 8px; min-width: 0; }
  .head .top nav a { font-size: 10px; letter-spacing: .02em; font-stretch: 75%; }
  .head .top nav a[href*="profile"] { display: none; } /* 2026-11-13: Notes を足したので、狭い幅では Profile を上のメニューから外す（フッターにある）。本番では Netlify が href を /profile に書き換えるので、末尾一致（.html）で選ばない */
}
@media (max-width: 1023px) { .top > a > .mono { display: none; } .top { flex-wrap: nowrap; } } /* タブレット幅でもロゴとナビを 1 行に */
@media (max-width: 374px) { .head .top nav { gap: 6px; } .top svg, .top img { width: 56px; } }
@media (max-width: 339px) { .head .top nav a[href*="contact"] { display: none; } } /* 2026-11-13: いちばん狭い幅（320px）では Contact も外す（フッターにある） */

/* 共通フッター: どのページからも主なページへ */
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; flex-basis: 100%; padding-bottom: 18px; margin-bottom: 4px; }
.site-nav a { text-decoration: none; color: var(--body, #aab1c0); min-height: 28px; display: inline-flex; align-items: center; }
.site-nav a:hover { color: var(--ink); }
/* 2026-11-13: フッターを全ページで同じ形に。1 段目は主なページ、2 段目はそのページの出典など（あれば）、3 段目は署名とメール */
footer.site-foot { padding-top: 28px; padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px 24px; color: var(--dim); border-top: 1px solid var(--faint, rgba(232, 235, 241, .12)); font-size: 11px; letter-spacing: .06em; }
footer.site-foot a { text-decoration: none; color: inherit; }
footer.site-foot a:hover { color: var(--ink); }
footer.site-foot .site-nav a { color: var(--body, #aab1c0); }
footer.site-foot, footer.site-foot .mono, footer.site-foot.mono { font-size: 11px; } /* 2026-11-19: フッターの字も 11px 以上に */
footer.site-foot .f-note { flex-basis: 100%; line-height: 1.9; padding-bottom: 8px; }
footer.site-foot .f-note a { text-decoration: underline; text-underline-offset: 3px; }
footer.site-foot .f-mail { color: var(--body, #aab1c0); }

/* スマホの絞り込み: 検索とよく使うものだけ出し、残りは「絞り込み」で開く */
.more-toggle { display: none; }
@media (max-width: 759px) {
  .more-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid rgba(232, 235, 241, .22); background: none; color: var(--ink); font: inherit; font-family: var(--font-mono); font-stretch: 87.5%; font-size: 11px; letter-spacing: .06em; cursor: pointer; }
  .more-toggle[aria-expanded="true"] { border-color: var(--lamp); color: var(--lamp); }
  .more-toggle b { font-weight: 400; color: var(--lamp); }
  .filters:not(.more-open) .is-more { display: none !important; }
  .filters > *, .filters .chips, .filters .chips > * { min-width: 0; max-width: 100%; }
  .more-toggle { justify-self: start; }
  /* 横に並ぶリンクの列は 1 行にして横に送る */
  .scroll-x { flex-wrap: nowrap !important; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; white-space: nowrap; }
  .scroll-x::-webkit-scrollbar { display: none; }
  .scroll-x > * { flex: none; }
  .scroll-x details, .scroll-x details > div { display: inline-flex; gap: 14px; align-items: baseline; }
}

/* 本文のページ（アプリ紹介・ガイド）: 字を少し大きく・明るく、行を広く。左端をページの頭にそろえる */
.editorial { max-width: 1240px; margin-inline: 0; color: #c3c9d6; font-size: 15px; }
.editorial > * { max-width: 46em; }
.editorial > figure, .editorial > .app-figure, .editorial > .app-features, .editorial > .app-related, .editorial > .app-next, .editorial > .app-faq { max-width: 960px; }
.editorial p { line-height: 2; }
.editorial h2 { margin-top: 56px; margin-bottom: 16px; font-size: clamp(20px, 2.1vw, 28px); letter-spacing: .06em; line-height: 1.5; }
.editorial h3 { color: var(--ink); }
.editorial a { color: var(--acid); text-decoration-thickness: 1px; text-decoration-color: rgba(255, 201, 142, .45); text-underline-offset: 5px; }
.editorial a:hover { text-decoration-color: currentColor; }
.editorial .byline { color: var(--dim); }
@media (min-width: 960px) { .editorial { font-size: 16px; } }

/* 2026-11-13: 読み物の棚 Notes。長い文章を静かに読ませる。区切りは線ではなく余白 */
.editorial.note > * { max-width: 40em; }
.editorial.note p { line-height: 2.15; }
.editorial.note p + p { margin-top: 1.25em; }
.editorial.note h2 { margin-top: 88px; margin-bottom: 26px; display: grid; gap: 10px; }
.note .note-no { font-size: 12px; letter-spacing: .2em; color: var(--lamp); font-weight: 400; }
.note .note-key { margin-block: 2.2em; padding-left: 16px; border-left: 2px solid var(--lamp); color: var(--ink); font-weight: 700; font-size: 1.08em; line-height: 1.9; }
.note .note-aside { color: var(--lamp); font-style: normal; letter-spacing: .08em; } .note .note-aside em { font-style: normal; }
.note .note-gap { height: 56px; }
.note .note-link { margin-top: 40px; } .note .note-link a { display: inline-block; padding: 12px 18px; border: 1px solid var(--lamp); color: var(--lamp); text-decoration: none; letter-spacing: .06em; }
.note .note-link a:hover { background: var(--lamp); color: var(--night); }
.note .note-back { margin-top: 28px; font-size: 13px; }
.note-list { display: grid; gap: 14px; margin-top: 36px; }
.editorial.note .note-card { display: grid; gap: 6px; padding: 20px; background: rgba(255, 255, 255, .035); color: inherit; text-decoration: none; }
.note-card:hover { background: rgba(255, 255, 255, .06); } .note-card .mono { font-size: 11px; letter-spacing: .16em; color: var(--dim); }
.note-card b { color: var(--ink); font-size: 1.25em; letter-spacing: .06em; } .note-card i { font-style: normal; color: var(--lamp); } .note-card .note-desc { font-size: 13px; line-height: 1.8; color: var(--body); }
.note .note-empty { margin-top: 36px; color: var(--dim); }
/* 2026-11-13: Notes の図版。本文より広く置き、押すと原寸で開く */
.editorial.note > figure.note-fig { max-width: 1040px; margin: 3em 0; }
.editorial.note > figure.note-fig.is-narrow { max-width: 620px; }
.note-fig img { display: block; width: 100%; height: auto; background: #f5f4ee; }
.note-fig a { display: block; }
.note-fig figcaption { margin-top: 12px; max-width: 46em; font-size: 12.5px; line-height: 1.85; color: var(--dim); }
.note .note-credit { margin-top: 8px; font-size: 12px; line-height: 1.85; color: var(--dim); }

/* 2026-11-13: 広い画面（1600px〜）では、ヘッダー・本文・フッターを中央に置いた 1 本の柱にそろえる。
   本文の幅に上限があるページで、右側だけが大きく空くのを防ぐ。背景の地形は端まで広げたまま。
   柱は最大 1400px（一覧のページ）。読み物のページ（Notes・ガイド・アプリ紹介）は 1120px に細くして、文章の左右の余白の釣り合いを取る。
   :has() が使えないブラウザでは 1400px のまま（困らない） */
@media (min-width: 1600px) {
  :root { --col: 1400px; }
  body:has(main.editorial) { --col: 1120px; }
  .gut { padding-left: max(40px, calc((100vw - var(--col)) / 2)) !important; padding-right: max(40px, calc((100vw - var(--col)) / 2)) !important; }
  main.gut { max-width: none !important; }
  .head.gut > .top, .gut.head > .top { max-width: none !important; margin-left: calc(40px - max(40px, (100vw - var(--col)) / 2)); margin-right: calc(40px - max(40px, (100vw - var(--col)) / 2)); }   /* 2026-11-13: ヘッダーの帯だけは柱に入れず、トップ・哲学と同じく画面の両端（40px）に置く */
}
/* 2026-11-13: Notes の末尾の「次に読む」 */
.editorial.note > a.note-next { display: grid; gap: 6px; max-width: 40em; margin-top: 72px; padding: 22px 20px; background: rgba(255, 255, 255, .035); color: inherit; text-decoration: none; }
.editorial.note > a.note-next:hover { background: rgba(255, 255, 255, .06); }
.note-next .mono { font-size: 11px; letter-spacing: .16em; color: var(--lamp); text-transform: uppercase; }
.note-next b { color: var(--ink); font-size: 1.25em; letter-spacing: .06em; } .note-next i { font-style: normal; color: var(--body); }

/* 2026-11-14: 運営ごとの大会のまとめ（/races/organizers.html）。区切りは線ではなく余白と面 */
.editorial.orgs > * { max-width: 62em; }
.org-index { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.editorial .org-index a { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 12px; background: rgba(255, 255, 255, .045); color: var(--ink); text-decoration: none; font-size: 13px; }
.editorial .org-index a:hover { background: rgba(255, 255, 255, .09); }
.org-index a .mono { font-size: 11px; color: var(--lamp); }
.editorial.orgs .org { margin-top: 72px; scroll-margin-top: 24px; }
.editorial.orgs .org h2 { margin-top: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.org h2 span { font-size: .6em; font-weight: 500; color: var(--lamp); letter-spacing: .08em; }
.org-links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; }
.org-facts { display: grid; gap: 2px; margin: 20px 0 0; }
.org-facts div { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 0 14px; padding: 9px 12px; background: rgba(255, 255, 255, .035); font-size: 13.5px; line-height: 1.7; }
.org-facts dt { color: var(--dim); } .org-facts dd { margin: 0; color: var(--body); }
.editorial.orgs h3 { margin-top: 28px; font-size: 12px; font-weight: 500; letter-spacing: .14em; color: var(--dim); }
.org-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.org-list li { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 0 12px; padding: 8px 12px; background: rgba(255, 255, 255, .035); font-size: 13.5px; line-height: 1.6; }
.org-list .mono { font-size: 11.5px; color: var(--dim); padding-top: 2px; }
.org-list b { font-weight: 500; color: var(--ink); } .org-list i { grid-column: 2; font-style: normal; font-size: 12px; color: var(--dim); }
.editorial .org-more, .editorial .org-past { margin-top: 10px; font-size: 13px; line-height: 1.9; color: var(--body); }
.editorial .org-note { margin-top: 72px; font-size: 12px; line-height: 1.9; color: var(--dim); }
@media (max-width: 759px) { .org-list li { grid-template-columns: 6.4em minmax(0, 1fr); } .org-facts div { grid-template-columns: 4.6em minmax(0, 1fr); } }

/* 2026-11-15: 取材する人向けの資料（/press.html）。区切りは線ではなく余白と面 */
.editorial.press > * { max-width: 60em; }
.editorial.press h3 { margin-top: 32px; font-size: 12px; font-weight: 500; letter-spacing: .14em; color: var(--dim); }
.pk-dl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 22px; font-size: 13px; color: var(--dim); }
.editorial .pk-btn { display: inline-block; padding: 12px 18px; background: var(--lamp); color: var(--night); font-weight: 700; text-decoration: none; }
.editorial .pk-btn:hover { background: var(--ink); color: var(--night); }
.pk-copy { margin-top: 14px; padding: 16px 18px; background: rgba(255, 255, 255, .04); }
.pk-copy .mono { font-size: 11px; letter-spacing: .16em; color: var(--lamp); text-transform: uppercase; }
.pk-copy blockquote { margin: 8px 0 0; color: var(--ink); line-height: 1.95; }
.pk-facts, .pk-nums { display: grid; gap: 2px; margin: 16px 0 0; }
.pk-facts div { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 0 16px; padding: 10px 14px; background: rgba(255, 255, 255, .035); line-height: 1.8; }
.pk-facts dt, .pk-nums dt { color: var(--dim); font-size: 13px; } .pk-facts dd, .pk-nums dd { margin: 0; }
.pk-nums { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2px; }
.pk-nums div { padding: 16px 16px 14px; background: rgba(255, 255, 255, .035); display: grid; gap: 6px; }
.pk-nums b { font-family: "Anybody", sans-serif; font-stretch: 110%; font-weight: 400; font-size: 34px; line-height: 1; color: var(--ink); margin-right: 8px; }
.pk-nums span { font-size: 12px; color: var(--dim); }
.pk-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2px; margin-top: 12px; }
.pk-list section { padding: 16px; background: rgba(255, 255, 255, .035); display: grid; gap: 4px; align-content: start; }
.pk-list .mono { font-size: 11px; letter-spacing: .16em; color: var(--lamp); text-transform: uppercase; }
.editorial.press .pk-list h4 { margin: 0; font-size: 17px; letter-spacing: .06em; color: var(--ink); }
.editorial.press .pk-list p { margin: 0; font-size: 13.5px; line-height: 1.8; } .pk-list .pk-lead { color: var(--ink); }
.pk-links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; } .editorial.press .pk-list .pk-links { margin-top: 6px; }
.editorial .pk-key { margin-top: 20px; padding-left: 16px; border-left: 2px solid var(--lamp); color: var(--ink); font-weight: 700; font-size: 1.3em; letter-spacing: .08em; }
.pk-q { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 2px; }
.pk-q li { padding: 12px 14px; background: rgba(255, 255, 255, .035); color: var(--ink); line-height: 1.7; display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 0 12px; }
.pk-q .mono { font-size: 11px; letter-spacing: .14em; color: var(--lamp); text-transform: uppercase; padding-top: 4px; } .pk-q i { grid-column: 2; font-style: normal; font-size: 12px; color: var(--dim); }
.pk-assets { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 18px; }
.pk-assets figure { margin: 0; } .pk-assets img { display: block; width: 100%; height: auto; background: #0b0d12; }
.pk-logo { display: grid; place-items: center; aspect-ratio: 1200 / 630; background: #0b0d12; } .pk-logo img { width: 46%; background: none; filter: invert(1); }
.pk-assets figcaption { margin-top: 8px; font-size: 12px; line-height: 1.7; color: var(--dim); display: grid; gap: 2px; } .pk-assets figcaption b { color: var(--ink); font-weight: 500; }
.editorial .pk-foot { margin-top: 56px; font-size: 12px; color: var(--dim); }
@media (min-width: 760px) { .pk-list:has(> section:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } } /* アプリ 4 つは 2 列ずつ（3 と 1 に割れない） */
@media (max-width: 759px) { .pk-facts div { grid-template-columns: 6em minmax(0, 1fr); } .pk-q li { grid-template-columns: 1fr; } .pk-q i { grid-column: 1; } }
/* 印刷（PDF）: 白い紙に黒い字。背景の地形・メニュー・フッターは出さない */
@media print {
  html:has(main.press), body:has(main.press) { background: #fff !important; color-scheme: light !important; } @page { background: #fff; } /* 2026-11-15: 紙の余白（ページのふち）も白に。body だけ白だと、ふちに夜の地が残る */
  body:has(main.press) { background: #fff !important; color: #111 !important; --ink: #111; --body: #222; --dim: #555; --lamp: #9a4a00; --acid: #9a4a00; --night: #fff; }
  body:has(main.press) .top nav, body:has(main.press) footer, body:has(main.press) .terrain, body:has(main.press) .topic-links, body:has(main.press) .pk-dl, body:has(main.press) .display-title { display: none !important; }
  body:has(main.press) .head { padding-bottom: 0 !important; background: none !important; } body:has(main.press) .head::before, body:has(main.press) .head::after { display: none !important; }
  body:has(main.press) .top svg, body:has(main.press) .top img { filter: brightness(0) !important; }
  body:has(main.press) * { text-shadow: none !important; }
  body:has(main.press) .gut { padding-left: 0 !important; padding-right: 0 !important; }
  .editorial.press { font-size: 10.5pt; color: #222 !important; } .editorial.press dd { color: #111; } .editorial.press > * { max-width: none; }
  .editorial.press h2 { margin-top: 26px; break-after: avoid; } .editorial.press h3 { break-after: avoid; }
  .pk-copy, .pk-facts div, .pk-nums div, .pk-list section, .pk-q li { background: #f3f2ee !important; break-inside: avoid; }
  .pk-assets figure { break-inside: avoid; } .pk-assets { grid-template-columns: repeat(3, 1fr); } .pk-logo, .pk-assets img { background: #0b0d12 !important; } .pk-logo img { background: none !important; }
  .editorial.press a { color: #111 !important; text-decoration: none; } .pk-assets figcaption a { display: none; }
}
/* 2026-11-19: 並んだリンクは、見た目を変えずに押せる範囲だけを上下に広げる（高さ 22〜26px だった）。文の中のリンクは対象外 */
.topic-links a, .month-links a, .month-archive summary, .month-archive a, footer.site-foot .f-mail, .org-links a, .org-more a, .pk-links a, .pk-assets figcaption a, .app-next a, ul.out a { position: relative; }
.topic-links a::after, .month-links a::after, .month-archive summary::after, .month-archive a::after, footer.site-foot .f-mail::after, .org-links a::after, .org-more a::after, .pk-links a::after, .pk-assets figcaption a::after, .app-next a::after, ul.out a::after { content: ""; position: absolute; inset: -7px -3px; }
.topic-links a::after { inset: -7px -3px -4px; } /* 下の余白が 4px なので、それ以上は広げない（横に流れる箱が縦に動いてしまう） */
