/* ゆるりと遊ぶ 共通スタイル
   ポータル（トップ・固定ページ）のテーマと、全ページ共通の部品（ヘッダー・フッター・トースト・タイトル一覧）。
   体裁は「ゲームレーベルの公式サイト」: 黒地、蛍光イエローの斜めタグ、英字の見出しはコンデンス体。
   各ツールのページは自分の style.css でこの上から書体と色を上書きする。 */

:root {
  --bg: #000;
  --surface: #121216;
  --surface-2: #1b1b22;
  --fg: #fff;
  --fg-2: #c3c3cf;
  --muted: #80808f;
  --line: #2a2a34;
  --y: #ffe600;
  --y-ink: #0a0a0a;
  --red: #ff2e3f;
  --display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --measure: 1120px;
  --skew: -12deg;
  --unskew: 12deg;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.9;
  color: var(--fg);
  background: var(--bg);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  letter-spacing: 0.02em;
}

a { color: inherit; }
img, canvas { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 900; line-height: 1.4; }
p, ul, ol { margin: 0; }

:focus-visible {
  outline: 3px solid var(--y);
  outline-offset: 3px;
}

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

main { flex: 1; }

/* 斜めタグ: サイト全体の記号。黄色の平行四辺形に黒文字 */
.tag {
  display: inline-block;
  transform: skewX(var(--skew));
  background: var(--y);
  color: var(--y-ink);
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.1em;
  line-height: 1.4;
  padding: 3px 12px 2px;
  white-space: nowrap;
}
.tag > span { display: inline-block; transform: skewX(var(--unskew)); }
.tag-red { background: var(--red); color: #fff; }
.tag-ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 2px currentColor; }
.tag-ja { font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; padding: 3px 14px; }

/* ヘッダー（全ページ共通） */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}
.brand {
  display: inline-block;
  transform: skewX(var(--skew));
  background: var(--y);
  color: var(--y-ink);
  text-decoration: none;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.06em;
  padding: 4px 16px;
  white-space: nowrap;
}
.brand > span { display: inline-block; transform: skewX(var(--unskew)); }
.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.site-nav a { text-decoration: none; color: var(--fg-2); line-height: 1; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--y); border-bottom-color: var(--y); }
.site-nav .nav-x {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 13px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 2px solid var(--fg-2);
  padding: 0;
}
.site-nav .nav-x:hover { border-color: var(--y); }
@media (max-width: 480px) {
  .site-nav { gap: 14px; font-size: 17px; }
}

/* ヒーロー: 最新タイトルのキービジュアルを全面に */
.hero {
  position: relative;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}
.hero-slides { position: relative; display: grid; }
.hero-slide {
  grid-area: 1 / 1;
  position: relative;
  min-height: min(92svh, 880px);
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 900ms ease, visibility 0s linear 900ms;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 900ms ease, visibility 0s;
  z-index: 1;
}
.hero-dots {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 28px;
  height: 6px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.4);
  transform: skewX(var(--skew));
  cursor: pointer;
  transition: background 200ms;
}
.hero-dot:hover { background: rgba(255, 255, 255, 0.8); }
.hero-dot.is-active { background: var(--y); }
@media (min-width: 700px) {
  .hero-dots { right: max(16px, calc((100% - var(--measure)) / 2 + 16px)); bottom: 28px; }
}
.hero-art, .hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}
.hero-art img { object-fit: cover; object-position: center top; }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.78) 72%, rgba(0, 0, 0, 0.96) 100%);
}
.hero-body {
  position: relative;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 40px 16px 44px;
  display: grid;
  gap: 14px;
  justify-items: start;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-title {
  font-size: clamp(28px, 5.2vw, 58px);
  line-height: 1.18;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.7);
}
.hero-tagline {
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 500;
  color: var(--fg-2);
  max-width: 34em;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  margin-top: 10px;
}
.hero-chips {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 8px;
}
.hero-chips li {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--fg);
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 2px 10px;
  line-height: 1.7;
}

/* 遊ぶボタン: 黄色の斜めブロック、白のハードシャドウ */
.btn-play {
  display: inline-block;
  transform: skewX(var(--skew));
  background: var(--y);
  color: var(--y-ink);
  text-decoration: none;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.08em;
  padding: 16px 38px 16px 32px;
  box-shadow: 6px 6px 0 #fff;
  transition: transform 160ms, box-shadow 160ms;
  white-space: nowrap;
}
.btn-play > span { display: inline-flex; align-items: center; gap: 12px; transform: skewX(var(--unskew)); }
.btn-play > span::before {
  content: "";
  width: 0; height: 0;
  border-left: 12px solid currentColor;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
.btn-play:hover { transform: skewX(var(--skew)) translate(-2px, -2px); box-shadow: 8px 8px 0 #fff; }
.btn-play:active { transform: skewX(var(--skew)) translate(2px, 2px); box-shadow: 2px 2px 0 #fff; }

/* 帯: 黄色のティッカー */
.ticker {
  background: var(--y);
  color: var(--y-ink);
  overflow: hidden;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.16em;
  padding: 11px 0;
  border-top: 3px solid #000;
  border-bottom: 3px solid #000;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 36s linear infinite;
}
.ticker-track span { white-space: nowrap; padding: 0 22px; }
.ticker-track span::after { content: "◆"; margin-left: 44px; font-size: 10px; vertical-align: 2px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* セクション */
.sec { padding: 72px 0 8px; }
.sec-head {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 28px;
}
.sec-en {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(60px, 11vw, 120px);
  line-height: 0.86;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 2px #fff;
}
.sec-head .tag { margin-bottom: 6px; }

/* タイトル一覧（LINEUP）。ツールページの「ほかの思いつき」でも使う */
.tool-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
}
.tool-item { min-width: 0; }
.tool-card {
  position: relative;
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 220ms, border-color 220ms;
}
.tool-card:hover { transform: translateY(-4px); border-color: var(--y); }
.tool-visual {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--tool-color, #111);
}
.tool-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tool-card:hover .tool-visual img { transform: scale(1.04); }
.tool-no {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--display);
  font-size: 38px;
  line-height: 1;
  background: var(--y);
  color: var(--y-ink);
  padding: 8px 20px 4px 14px;
  clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
}
.tool-text { display: grid; gap: 8px; padding: 18px 18px 20px; justify-items: start; }
.tool-kicker { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }
.tool-kicker .tag { font-size: 13px; padding: 2px 10px 1px; }
.tool-title { font-size: 20px; font-weight: 900; line-height: 1.4; }
.tool-tagline { font-size: 13px; color: var(--fg-2); }
.tool-play {
  margin-top: 6px;
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: 0.14em;
  color: var(--y);
  border-bottom: 2px solid var(--y);
  padding: 0 2px;
  line-height: 1.1;
}
.tool-play::before { content: "▶ "; font-size: 12px; }
.tool-soon {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--line);
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(135deg, #0c0c10 0 14px, #111117 14px 28px);
  font-family: var(--display);
  font-size: clamp(32px, 6vw, 48px);
  letter-spacing: 0.1em;
  color: var(--muted);
}
.tool-soon .tool-no { background: var(--surface-2); color: var(--muted); }
.tool-soon-meta { display: block; margin-top: 10px; font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }
.tool-empty {
  border: 1px dashed var(--line);
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.1em;
}

/* NEWS */
.news-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.news-list li {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.news-list time { font-family: var(--display); font-size: 19px; letter-spacing: 0.08em; color: var(--fg-2); }
.news-list .tag { font-size: 13px; padding: 2px 10px 1px; }
.news-list a { text-decoration: none; font-weight: 500; }
.news-list a:hover { color: var(--y); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 560px) {
  .news-list li { grid-template-columns: auto auto; }
  .news-list a { grid-column: 1 / -1; }
}

/* ABOUT: 数字で3つ */
.about-lead { font-size: clamp(16px, 2vw, 20px); font-weight: 700; line-height: 1.8; margin-bottom: 28px; }
.facts {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}
.facts li {
  background: var(--surface);
  border-top: 4px solid var(--y);
  padding: 20px 22px 22px;
  display: grid;
  gap: 4px;
}
.facts strong { font-family: var(--display); font-weight: 400; font-size: 56px; line-height: 1; color: var(--y); letter-spacing: 0.04em; }
.facts small { font-family: var(--sans); font-weight: 900; font-size: 20px; margin-left: 4px; }
.facts span { font-size: 13px; color: var(--fg-2); }

/* 締め: X への誘導 */
.outro {
  margin: 72px 0 0;
  padding: 56px 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  text-align: center;
}
.outro .wrap { display: grid; gap: 20px; justify-items: center; }
.outro p { font-size: clamp(18px, 2.4vw, 24px); font-weight: 900; line-height: 1.7; }
.outro-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 26px;
  border: 2px solid var(--fg);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: transparent;
  color: var(--fg);
  font-family: inherit;
  cursor: pointer;
  transition: background 160ms, color 160ms, border-color 160ms;
}
.btn-line:hover { background: var(--y); border-color: var(--y); color: var(--y-ink); }

/* 固定ページ */
.page-head { padding: 56px 0 12px; }
.page-head h1 {
  font-size: clamp(26px, 5vw, 40px);
  letter-spacing: 0.04em;
  padding-left: 18px;
  border-left: 6px solid var(--y);
  line-height: 1.3;
}
.page-head .lead { margin-top: 12px; color: var(--fg-2); font-size: 14px; }
.prose { max-width: 42em; padding-bottom: 56px; color: var(--fg-2); }
.prose h2 {
  color: var(--fg);
  font-size: 17px;
  letter-spacing: 0.06em;
  margin: 36px 0 10px;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 12px;
}
.prose h2::before { content: ""; width: 14px; height: 14px; background: var(--y); transform: skewX(var(--skew)); flex: none; }
.prose p + p { margin-top: 10px; }
.prose ul { padding-left: 1.3em; margin: 8px 0; }
.prose a { color: var(--y); text-underline-offset: 4px; }
.prose strong { color: var(--fg); }

/* フッター（全ページ共通） */
.site-footer {
  background: #000;
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-top: 0;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  align-items: center;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { text-decoration: none; color: var(--fg-2); }
.site-footer a:hover { color: var(--y); text-decoration: underline; text-underline-offset: 4px; }

/* トースト（全ページ共通） */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--y);
  color: var(--y-ink);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms, transform 200ms;
  max-width: calc(100vw - 32px);
  z-index: 30;
}
.toast.is-shown { opacity: 1; transform: translateX(-50%) translateY(0); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* 登場: ヒーローの文字だけ、読み込み時に一度だけ下から */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.hero-body > * { animation: rise 640ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hero-body > :nth-child(2) { animation-delay: 80ms; }
.hero-body > :nth-child(3) { animation-delay: 160ms; }
.hero-body > :nth-child(4) { animation-delay: 240ms; }

@media (min-width: 700px) {
  .tool-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-art img { object-position: center 30%; }
  .hero-shade {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 55%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.82) 80%, rgba(0, 0, 0, 0.96) 100%);
  }
  .hero-body { padding: 56px 16px 64px; }
  .sec { padding: 96px 0 8px; }
}
@media (min-width: 1000px) {
  .tool-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .hero-body > * { animation: none; }
  .tool-card, .tool-visual img, .btn-play, .btn-line, .toast { transition: none; }
  .tool-card:hover { transform: none; }
  .tool-card:hover .tool-visual img { transform: none; }
}
