/* =============================================================
   u-full 作品集 ── ハブ（トップ）スタイル
   配色は tokens.css の変数を参照（色を変えるなら tokens.css）。
   ============================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  min-height: 100dvh;
  background: radial-gradient(120% 80% at 50% -10%, var(--uf-bg-glow) 0%, var(--uf-bg-1) 40%, var(--uf-bg-0) 100%);
  color: var(--uf-text);
  font-family: var(--uf-font);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

.home-page {
  position: relative;
  isolation: isolate;
  background: var(--uf-bg-0);
}

/* Background image supplied for the u-full top page; confirm publication permission before deployment. */
.home-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(12, 38, 78, .48) 0%, rgba(15, 34, 72, .48) 48%, rgba(8, 13, 27, .74) 100%),
    url('/shared/ufull-top-background.jpg');
  background-position: center 34%;
  background-size: cover;
  background-repeat: no-repeat;
}

.wrap { max-width: var(--uf-maxw); margin: 0 auto; padding: 56px 20px 80px; flex: 1 0 auto; width: 100%; }

/* ---- ヘッダー ---- */
header { text-align: center; margin-bottom: 44px; }
.mark { font-family: monospace; letter-spacing: 6px; color: var(--uf-accent); font-size: 13px; opacity: .9; }
h1 { font-size: clamp(26px, 6vw, 40px); margin: 14px 0 10px; letter-spacing: .04em; }
h1 .eq { color: var(--uf-accent); }
.lead { color: var(--uf-text-dim); font-size: 15px; line-height: 1.8; }

/* ---- ゲーム一覧 ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-top: 8px; }
.card {
  display: block; text-decoration: none; color: inherit; position: relative; overflow: hidden;
  border: 1px solid var(--uf-line); border-radius: var(--uf-radius); min-height: 160px; padding: 0;
  background: linear-gradient(160deg, rgba(35, 53, 92, .70), rgba(12, 21, 45, .68));
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--uf-line-hover); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.card-visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--uf-line);
}
.card-visual::before,
.card-visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(238, 240, 251, .18);
  border-radius: 50%;
}
.card-visual::before { width: 42%; height: 42%; right: 16%; top: 18%; }
.card-visual::after { width: 18%; height: 18%; left: 19%; bottom: 19%; }
.card-visual span {
  position: relative;
  z-index: 1;
  color: rgba(238, 240, 251, .64);
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 3px;
}
.card-visual--jelly {
  background:
    radial-gradient(circle at 67% 38%, rgba(133, 214, 255, .52) 0 3%, transparent 3.5%),
    radial-gradient(circle at 34% 68%, rgba(112, 181, 236, .28) 0 6%, transparent 6.5%),
    linear-gradient(145deg, #173e62, #0b172e 70%);
}
.card-visual--lumi {
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 227, 135, .56) 0 3%, transparent 3.7%),
    linear-gradient(160deg, #263d73, #101936 65%, #0c1226);
}
.card-visual--rabbit {
  background:
    linear-gradient(145deg, rgba(221, 174, 193, .18), transparent 42%),
    linear-gradient(160deg, #3b385e, #1a1b38 58%, #11152c);
}
.card-visual--gogo {
  background:
    radial-gradient(circle at 72% 28%, rgba(255, 224, 112, .68) 0 4%, transparent 4.6%),
    linear-gradient(160deg, #b86531, #512a35 55%, #191a35);
}
.card-visual--ship-log {
  background:
    radial-gradient(ellipse at 50% 68%, rgba(245, 207, 105, .34) 0 8%, transparent 8.8%),
    linear-gradient(180deg, #0a2b4c 0%, #0a6480 52%, #071b3c 100%);
}
.card-visual--witch {
  background:
    radial-gradient(circle at 72% 28%, rgba(255, 240, 170, .7) 0 5%, transparent 5.8%),
    linear-gradient(160deg, #23134a, #101534 60%, #081226);
}
.card-body { padding: 16px 20px 48px; }
.card .genre { font-size: 11px; letter-spacing: 2px; color: var(--uf-accent); text-transform: uppercase; }
.card h2 { font-size: 20px; margin: 8px 0 6px; }
.card p { font-size: 13px; color: var(--uf-text-dim); line-height: 1.7; }
.card .play { position: absolute; right: 16px; bottom: 14px; font-size: 12px; color: var(--uf-accent); border-bottom: 1px solid var(--uf-line); }
.card.soon { opacity: .5; pointer-events: none; border-style: dashed; }
.card.soon .play { color: var(--uf-text-faint); border: none; }

/* ---- 依頼導線 ---- */
.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 52px;
  padding: 28px 0 0;
  border-top: 1px solid var(--uf-line);
}
.contact-copy { min-width: 0; }
.section-kicker {
  color: var(--uf-accent);
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.contact-copy h2 { font-size: clamp(22px, 5vw, 30px); letter-spacing: .04em; margin-bottom: 8px; }
.contact-copy > p:not(.section-kicker) { color: var(--uf-text-dim); font-size: 14px; line-height: 1.8; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 16px; }
.service-tags li {
  padding: 5px 10px;
  border: 1px solid var(--uf-line);
  border-radius: 999px;
  color: var(--uf-text-dim);
  font-size: 11px;
}
.contact-actions { display: flex; flex: 0 0 auto; flex-direction: column; align-items: stretch; gap: 9px; min-width: 220px; }
.cta-link {
  display: inline-block;
  padding: 13px 18px;
  border-radius: 10px;
  color: var(--uf-on-accent);
  background: var(--uf-accent);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background .18s ease;
}
.cta-link:hover { background: var(--uf-accent-strong); }
.secondary-links { display: flex; justify-content: center; gap: 4px; }
.works-link {
  display: inline-block;
  padding: 8px 12px;
  color: var(--uf-accent);
  font-size: 12px;
  text-align: center;
  text-decoration: none;
}
.works-link:hover { color: var(--uf-text); }

/* シェアUIは shared/share.css に分離（ゲーム結果画面と共用） */

/* ---- フッター ---- */
footer { flex-shrink: 0; text-align: center; padding: 18px; font-size: 12px; color: var(--uf-text-faint); font-family: monospace; }
footer a { color: var(--uf-text-dim); text-decoration: none; border-bottom: 1px solid var(--uf-line); }
footer a:hover { color: var(--uf-accent); }
footer .ver { display: inline-block; margin-top: 6px; opacity: 0.55; font-size: 11px; letter-spacing: 1px; }
footer .copyright { display: inline-block; margin-top: 4px; opacity: 0.5; font-size: 11px; }

/* ---- アクセシビリティ / モーション配慮（ブログのUX方針に合わせる）---- */
a:focus-visible, button:focus-visible, .card:focus-visible {
  outline: 2px solid var(--uf-accent); outline-offset: 3px; border-radius: 6px;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* スキップリンク（WCAG 2.4.1）。普段は画面外、キーボードフォーカスで左上に出現。 */
.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 100;
  padding: 8px 14px; border-radius: 8px; font-weight: 700; font-size: 14px;
  color: var(--uf-on-accent); background: var(--uf-accent);
  text-decoration: none; transition: top .15s ease;
}
.skip-link:focus-visible { top: 8px; outline: 2px solid var(--uf-text); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .card:hover { transform: none; }
}

@media (max-width: 680px) {
  .contact-strip { align-items: flex-start; flex-direction: column; }
  .contact-actions { width: 100%; }
}
