/* =========================================================
   FuzzyBase Inc. — site stylesheet
   このファイル1枚で全ページの見た目を管理しています。
   色を変えたいときは :root の変数だけ書き換えてください。
   ========================================================= */

:root {
  --bg:        #0a0c11;
  --bg-soft:   #10141c;
  --surface:   #141924;
  --surface-2: #1a2130;
  --border:    #242d3f;
  --border-2:  #313c52;

  --text:      #e9edf5;
  --text-mid:  #b6c0d4;
  --text-dim:  #8a94ab;

  --accent:    #5ce1e6;
  --accent-2:  #8b7cff;
  --accent-ink:#062023;

  --radius: 14px;
  --maxw: 1080px;
  --font-jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
             "BIZ UDPGothic", Meiryo, system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Noto Sans Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}

/* 背景のうっすらしたグラデーション */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60rem 40rem at 82% -10%, rgba(139,124,255,.16), transparent 60%),
    radial-gradient(50rem 34rem at 6% 4%,  rgba(92,225,230,.12), transparent 60%);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
  position: relative;
  z-index: 1;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,12,17,.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: .04em;
  font-size: 17px;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
}
.brand .sub {
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: .12em;
  margin-left: 10px;
}
@media (max-width: 700px) { .brand .sub { display: none; } }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--text-mid);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.nav a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 20px;
}
.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.45;
  letter-spacing: .01em;
  font-weight: 700;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  margin: 0;
  max-width: 46em;
  color: var(--text-mid);
  font-size: 16px;
}

/* ---------- Page head (下層ページ) ---------- */
.page-head {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.page-head h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
}
.page-head p { margin: 0; color: var(--text-dim); font-size: 14px; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section > .wrap > h2,
h2.section-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .04em;
}
.section-sub {
  margin: 0 0 32px;
  color: var(--text-dim);
  font-size: 14px;
  font-family: var(--font-mono);
  letter-spacing: .14em;
}
.divider { border: 0; border-top: 1px solid var(--border); margin: 0; }

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: .18em;
  display: block;
  margin-bottom: 12px;
}
.card h3 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}
.card p { margin: 0; color: var(--text-mid); font-size: 14.5px; }
.card ul {
  margin: 14px 0 0;
  padding-left: 1.1em;
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.85;
}

/* ---------- Table (会社概要・貸借対照表) ---------- */
.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
table.data th,
table.data td {
  border-bottom: 1px solid var(--border);
  padding: 16px 12px;
  text-align: left;
  vertical-align: top;
}
table.data th {
  width: 11em;
  color: var(--text-dim);
  font-weight: 600;
  white-space: nowrap;
}
table.data td { color: var(--text); }

/* 貸借対照表用 */
table.bs { font-size: 14.5px; }
table.bs th, table.bs td { padding: 10px 12px; }
table.bs thead th {
  width: auto;
  color: var(--text);
  border-bottom: 1px solid var(--border-2);
  background: var(--surface);
}
table.bs td.num, table.bs th.num { text-align: right; font-family: var(--font-mono); }
table.bs tr.total td, table.bs tr.total th {
  border-top: 1px solid var(--border-2);
  font-weight: 700;
  color: var(--text);
}
table.bs tr.sub th { padding-left: 24px; font-weight: 400; color: var(--text-mid); width: auto; }

/* ---------- Notice (電子公告) ---------- */
.notice-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  background: var(--bg-soft);
}
.notice-item h3 { margin: 0 0 4px; font-size: 17px; }
.notice-item .meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: .1em;
  margin: 0 0 18px;
}
.empty-state {
  border: 1px dashed var(--border-2);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14.5px;
}

/* ---------- Callout / TODO ---------- */
.callout {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  color: var(--text-mid);
  font-size: 14px;
}
.todo {
  background: rgba(255, 196, 0, .12);
  border-bottom: 1px dashed rgba(255, 196, 0, .55);
  color: #ffd66b;
  padding: 0 .25em;
  border-radius: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid var(--border-2);
  color: var(--text);
}
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn.primary {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  border-color: transparent;
}
.btn.primary:hover { opacity: .9; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* ---------- Prose (規約・ポリシー) ---------- */
.prose h2 { font-size: 18px; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-mid); font-size: 15px; }
.prose ul, .prose ol { color: var(--text-mid); font-size: 15px; padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 72px;
  padding: 44px 0 56px;
  color: var(--text-dim);
  font-size: 13.5px;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer a { color: var(--text-mid); }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer .copy { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; }

@media (max-width: 640px) {
  .hero { padding: 64px 0 48px; }
  .site-header .wrap { min-height: 60px; padding-block: 10px; }
  table.data th { width: auto; display: block; padding-bottom: 0; border-bottom: 0; }
  table.data td { display: block; padding-top: 4px; }
}

/* ---------- 実績：グループ内小見出し ---------- */
.works-sub {
  font-size: 17px;
  font-weight: 700;
  margin: 36px 0 4px;
  color: var(--text);
}
.works-sub:first-of-type { margin-top: 0; }

/* ---------- 広告ガイド：媒体カード＋円グラフ ---------- */
.chart-card h3 { margin: 0 0 2px; font-size: 16px; }
.chart-card .stat {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 6px 0 2px;
  letter-spacing: .02em;
}
.chart-card .stat small { font-size: 13px; font-weight: 400; color: var(--text-dim); margin-left: 6px; }
.chart-card .cap { margin: 10px 0 2px; font-size: 12.5px; color: var(--text-dim); }
.chart-card svg { display: block; width: 100%; height: auto; margin-top: 6px; }
.chart-card .note-line { margin: 12px 0 0; font-size: 13px; color: var(--text-mid); line-height: 1.8; }

/* 固定ヘッダーにアンカー位置が隠れないように */
section[id] { scroll-margin-top: 84px; }

/* 実績ページ：グループ見出しを大きく */
.works-section > .wrap > .section-title {
  font-size: clamp(24px, 4vw, 32px);
  margin-bottom: 32px;
}

/* 本文中の強調 */
.prose strong { color: var(--text); font-weight: 700; }

/* ---------- Listing table (実績・舞台など) ---------- */
table.list {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  font-size: 14px;
}
table.list thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--text-dim);
  font-weight: 600;
  white-space: nowrap;
  padding: 0 20px 12px 0;
  border-bottom: 1px solid var(--border-2);
}
table.list td {
  padding: 17px 18px 17px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-mid);
  line-height: 1.7;
}
table.list td.date { white-space: nowrap; color: var(--accent); font-size: 13.5px; }
table.list td.title { color: var(--text); font-weight: 700; }
table.list td:last-child { white-space: nowrap; padding-right: 0; }
table.list thead th:last-child { padding-right: 0; }
table.list tbody tr:hover td { background: rgba(255,255,255,.025); }
table.list.narrow { min-width: 0; }
table.list.narrow td:first-child,
table.list.narrow th:first-child { width: 13em; white-space: nowrap; }

/* ---------- リンクリスト（実績のnote・ゲーム） ---------- */
.link-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.link-list li {
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
  color: var(--text);
  font-weight: 700;
}
.works-section { padding: 44px 0; }

/* クリックできることを示す標準的なリンク表現 */
a.weblink {
  color: #6fa8ff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a.weblink:hover { color: #9cc4ff; }
