/*
Theme Name: Shot Clock
Theme URI: https://shotclock.jp/
Author: 株式会社onze
Description: Shot Clock（NBA / スニーカーメディア）のテーマ。ベースカラー = イエロー、他はインクとマゼンタの 2 色のみ。紙のような余白とヘアラインで構成する。
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: shot-clock
*/

:root {
  --brand: #f5c400;
  --ink: #141414;
  --magenta: #d6006e;
  --paper: #fcfbf7;
  --surface: #fff;
  --surface-2: #f4f1e8;
  --line: #e0dccf;
  --muted: #6e6a60;
  --wrap: 1024px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }

.sc-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* 英字ラベル */
.sc-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ヘッダー */
.sc-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--ink);
}
.sc-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 80px;
}
.sc-header__logo img { height: 56px; width: auto; display: block; }
.sc-nav { display: flex; align-items: center; overflow-x: auto; min-width: 0; margin: 0 -4px; padding: 0 4px; }
.sc-nav ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.sc-nav a {
  display: block;
  padding: 8px 10px;
  white-space: nowrap;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color .15s, border-color .15s;
}
.sc-nav a:hover,
.sc-nav .current-menu-item > a { color: var(--ink); border-bottom-color: var(--brand); }
.sc-band { height: 4px; background: var(--brand); }

/* 本文 */
.sc-main { padding: 40px 0 24px; }
.sc-stack > * + * { margin-top: 40px; }

/* 見出しバー（トップのセクション・各ページ共通） */
.sc-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 24px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 8px;
  margin: 0 0 16px;
}
.sc-heading__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.sc-heading--section .sc-heading__title { font-size: 18px; }
.sc-heading__side { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px; }
.sc-heading__meta { margin: 0; color: var(--muted); }
.sc-heading__link { text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 2px; }
.sc-heading__link:hover { border-bottom-color: var(--ink); }

/* 記事リスト */
.sc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sc-card {
  display: block;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 16px;
  text-decoration: none;
  transition: border-color .15s;
}
.sc-card:hover { border-color: var(--ink); }
.sc-card__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 11px; color: var(--muted); }
.sc-card__tag { background: rgba(214, 0, 110, .12); color: var(--magenta); padding: 1px 8px; border-radius: 999px; }
.sc-card__title { margin: 4px 0 0; font-size: 16px; font-weight: 700; }
.sc-card__excerpt { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.sc-empty {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 28px;
  text-align: center;
  color: var(--muted);
  margin: 0;
}

/* コミュニティ CTA */
.sc-cta { background: var(--brand); padding: 3px; }
.sc-cta__inner { background: var(--surface); padding: 28px 20px; text-align: center; }
.sc-cta__title { margin: 0; font-size: 18px; font-weight: 700; }
.sc-cta__text { margin: 6px auto 0; max-width: 36em; font-size: 14px; color: var(--muted); }
.sc-buttons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.sc-btn {
  display: inline-block;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  background: var(--brand);
  color: var(--ink);
  transition: background .15s, color .15s;
}
.sc-btn:hover { background: var(--ink); color: var(--brand); }
.sc-btn--ghost { background: transparent; border: 1px solid rgba(20, 20, 20, .3); }
.sc-btn--ghost:hover { background: var(--surface-2); color: var(--ink); }

/* 日付ナビ */
.sc-datenav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; }
.sc-datenav__btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  color: var(--muted);
}
.sc-datenav__btn:hover { color: var(--ink); background: var(--surface-2); }
.sc-datenav__label { font-weight: 700; min-width: 12rem; text-align: center; }
.sc-datenav__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.sc-datenav__today { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; }
.sc-datenav__form { margin: 0; display: flex; gap: 8px; }
.sc-datenav__input {
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  color-scheme: light;
}
.sc-datenav__input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .sc-datenav__right { margin-left: 0; width: 100%; }
}

/* 本文（固定ページ・投稿） */
.sc-entry { max-width: 720px; }
.sc-entry h2 { font-size: 20px; margin: 2em 0 .6em; }
.sc-entry h3 { font-size: 17px; margin: 1.8em 0 .5em; }
.sc-entry p { margin: 0 0 1.2em; }
.sc-entry img { border: 1px solid var(--line); }
.sc-entry table { width: 100%; border-collapse: collapse; }
.sc-entry th, .sc-entry td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.sc-entry a { color: var(--magenta); }
.sc-meta { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* パンくず */
.sc-breadcrumb { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 16px; }
.sc-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: 11px; color: var(--muted); }
.sc-breadcrumb a { text-decoration: none; }
.sc-breadcrumb a:hover { color: var(--magenta); }
.sc-breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--line); }

/* フッター */
.sc-footer { margin-top: 64px; border-top: 1px solid var(--ink); background: var(--surface-2); }
.sc-footer__inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; padding: 40px 16px; }
.sc-footer__logo img { height: 48px; width: auto; display: block; }
.sc-footer__about { max-width: 24em; font-size: 12px; color: var(--muted); margin: 12px 0 0; }
.sc-footer__nav ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.sc-footer__nav a { text-decoration: none; border-bottom: 1px solid transparent; }
.sc-footer__nav a:hover { border-bottom-color: var(--ink); }
.sc-footer__bottom { border-top: 1px solid var(--line); }
.sc-footer__bottom--single { justify-content: flex-end !important; }
.sc-footer__bottom > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  justify-content: space-between;
  padding: 16px;
  font-size: 11px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .sc-header__inner { height: 64px; }
  .sc-header__logo img { height: 40px; }
  .sc-heading__title { font-size: 17px; }
}

/* ==========================================================================
 * 記事レイアウト（News / Transfer: ESPN 参考、Snap: 写真グリッド）
 * ========================================================================== */

/* サムネイル */
.sc-thumb {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.sc-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sc-thumb--wide { aspect-ratio: 16 / 9; }
.sc-thumb--small { width: 128px; aspect-ratio: 4 / 3; flex: 0 0 auto; }
.sc-thumb--snap { aspect-ratio: 3 / 2; }
.sc-thumb__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--line);
}

/* メタ */
.sc-amet { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); }
.sc-amet__cat { color: var(--magenta); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* News / Transfer の2カラム */
.sc-newsgrid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .sc-newsgrid { grid-template-columns: minmax(0, 1fr) 280px; } }
.sc-newsgrid__main { min-width: 0; }

/* リード記事 */
.sc-lead { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 4px; }
.sc-lead__link { display: block; text-decoration: none; color: inherit; }
.sc-lead__body { display: block; padding-top: 12px; }
.sc-lead__title { display: block; margin-top: 6px; font-size: 24px; font-weight: 700; line-height: 1.4; }
.sc-lead__link:hover .sc-lead__title { color: var(--magenta); }
.sc-lead__excerpt { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .sc-lead__title { font-size: 20px; } }

/* 一覧の行 */
.sc-rows { list-style: none; margin: 0; padding: 0; }
.sc-row { border-bottom: 1px solid var(--line); }
.sc-row__link { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; text-decoration: none; color: inherit; }
.sc-row__body { min-width: 0; }
.sc-row__title { display: block; font-size: 16px; font-weight: 700; line-height: 1.45; margin-bottom: 6px; }
.sc-row__link:hover .sc-row__title { color: var(--magenta); }
@media (max-width: 640px) {
  .sc-thumb--small { width: 104px; }
  .sc-row__title { font-size: 14px; }
}

/* サイドの見出しリスト */
.sc-side { border: 1px solid var(--line); background: var(--surface); align-self: start; }
.sc-side__head { margin: 0; padding: 12px 14px; border-bottom: 1px solid var(--ink); color: var(--muted); }
.sc-side__list { list-style: none; margin: 0; padding: 0; }
.sc-side__list li { border-bottom: 1px solid var(--line); }
.sc-side__list li:last-child { border-bottom: 0; }
.sc-side__list a { display: block; padding: 10px 14px; font-size: 13px; line-height: 1.5; text-decoration: none; }
.sc-side__list a:hover { background: var(--surface-2); color: var(--magenta); }

/* ページネーション */
.sc-pagination { margin-top: 24px; }
.sc-pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  margin-right: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  font-size: 13px;
}
.sc-pagination .page-numbers:hover { border-color: var(--ink); }
.sc-pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); font-weight: 700; }

/* Snap グリッド */
.sc-snaps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .sc-snaps { grid-template-columns: 1fr 1fr; } }
.sc-snap__link { display: block; text-decoration: none; color: inherit; }
.sc-snap .sc-thumb { border-bottom: 0; }
.sc-snap__bar {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
}
.sc-snap__date { font-size: 11px; letter-spacing: .12em; color: var(--brand); text-align: right; }
.sc-snap__title { font-size: 14px; font-weight: 700; }
.sc-snap__link:hover .sc-snap__bar { background: var(--magenta); }
.sc-snap__link:hover .sc-snap__date { color: #fff; }

/* 記事ページ */
.sc-article { max-width: 760px; }
.sc-article__title { font-size: 28px; line-height: 1.4; margin: 8px 0 8px; }
.sc-article__meta { color: var(--muted); margin: 0 0 20px; }
.sc-article__hero { margin: 0 0 20px; }
.sc-article__hero img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.sc-article__hero figcaption { margin-top: 8px; font-size: 12px; color: var(--muted); }
.sc-article--snap .sc-article__hero img { border-color: var(--ink); }
.sc-credit { font-size: 11px; letter-spacing: .1em; color: var(--muted); margin: -12px 0 20px; }
.sc-entry--intro { margin-bottom: 24px; }
@media (max-width: 640px) { .sc-article__title { font-size: 22px; } }

/* 旧記事（カスタム投稿タイプ）用 */
.sc-catch { font-size: 17px; font-weight: 700; line-height: 1.6; margin: 0 0 16px; }
.sc-legacy-link { margin: 0 0 20px; font-size: 14px; }
.sc-legacy-link a { color: var(--magenta); text-decoration: none; border-bottom: 1px solid transparent; }
.sc-legacy-link a:hover { border-bottom-color: var(--magenta); }
.sc-legacy-sns { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; font-size: 12px; letter-spacing: .08em; }
.sc-legacy-sns a { text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.sc-legacy-sns a:hover { border-bottom-color: var(--ink); }
.sc-article__sub { margin: 0 0 20px; }
.sc-article__sub img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
