/* =====================================================
   エンタメベース - メインスタイルシート
   ===================================================== */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-subtle: #dbeafe;
  --accent: #0ea5e9;
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-2: #f1f5f9;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.1), 0 4px 8px rgba(0,0,0,.06);
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 64px;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP',
               'Meiryo', 'Yu Gothic UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.header-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.5px;
  white-space: nowrap;
}
.site-logo:hover { color: var(--primary-dark); }

/* Desktop nav */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s, background .2s;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  background: var(--primary-light);
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--text);
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform .25s, opacity .25s;
  border-radius: 2px;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  z-index: 99;
  flex-direction: column;
  padding: 24px;
  gap: 8px;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border);
  transition: background .2s, color .2s;
}
.mobile-nav a:hover,
.mobile-nav a.active {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-subtle);
}

/* ----- Layout ----- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 760px; }

/* ----- Hero (top page) ----- */
.hero {
  padding: 80px 0 72px;
  text-align: center;
  background: linear-gradient(160deg, var(--primary-light) 0%, #ffffff 60%);
}
.hero-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 700;
  border-radius: 9999px;
  letter-spacing: .05em;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text);
}
.hero h1 span { color: var(--primary); }
.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,.35);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* ----- Section ----- */
.section { padding: 72px 0; }
.section--alt { background: var(--surface); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 10px;
}
.section-header p { color: var(--text-muted); font-size: 1rem; }
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

/* ----- Cards ----- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow .25s, transform .25s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 4px;
}
.card h3 { font-size: 1.15rem; font-weight: 700; }
.card p { color: var(--text-muted); font-size: .93rem; flex: 1; }
.card-link {
  font-size: .88rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.card-link::after { content: '→'; transition: transform .2s; }
.card:hover .card-link::after { transform: translateX(4px); }
.card--link { text-decoration: none; color: inherit; }

/* ----- Page Header ----- */
.page-header {
  padding: 56px 0 48px;
  background: linear-gradient(160deg, var(--primary-light) 0%, #ffffff 70%);
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -.5px;
  margin-bottom: 10px;
}
.page-header p { color: var(--text-muted); font-size: 1rem; max-width: 520px; }

/* ----- Empty State ----- */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: .93rem; }

/* ----- Blog / Info List ----- */
.post-list { display: flex; flex-direction: column; gap: 1px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.post-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 28px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background .2s;
}
.post-item:last-child { border-bottom: none; }
.post-item:hover { background: var(--surface); }
.post-date { font-size: .8rem; color: var(--text-muted); white-space: nowrap; padding-top: 3px; min-width: 88px; }
.post-meta { flex: 1; }
.post-meta h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.post-meta h3 a { color: var(--text); }
.post-meta h3 a:hover { color: var(--primary); }
.post-meta p { font-size: .87rem; color: var(--text-muted); }
.post-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 9999px;
  background: var(--primary-subtle);
  color: var(--primary);
  margin-bottom: 6px;
}

/* ----- App Cards ----- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.app-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
  background: var(--bg);
}
.app-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.app-card-header {
  padding: 28px 24px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.app-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}
.app-card-body { padding: 0 24px 24px; }
.app-name { font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; }
.app-platform { font-size: .75rem; color: var(--text-muted); font-weight: 500; }
.app-desc { font-size: .9rem; color: var(--text-muted); margin-bottom: 16px; }
.app-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  background: var(--surface-2);
  color: var(--text-muted);
}
.app-badge--soon { background: var(--primary-subtle); color: var(--primary); }

/* ----- Footer ----- */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,.7);
  padding: 48px 0 32px;
  margin-top: auto;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.footer-brand .footer-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.footer-brand p { font-size: .85rem; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav-title { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 4px; }
.footer-nav a { font-size: .88rem; color: rgba(255,255,255,.65); transition: color .2s; }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .8rem;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,.5); }
.footer-bottom-links a:hover { color: #fff; }

/* ----- Prose (policy / article content) ----- */
.prose {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
}
.prose > * + * { margin-top: 1.4em; }
.prose h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-top: 2.2em;
  margin-bottom: .5em;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
}
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text); }
.prose ul {
  padding-left: 1.4em;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.prose ul li { color: var(--text); }
.prose strong { font-weight: 700; }
.prose a { color: var(--primary); text-decoration: underline; }
.prose a:hover { color: var(--primary-dark); }
.prose .meta-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: .9rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  :root { --header-h: 56px; }
  .main-nav { display: none; }
  .menu-toggle { display: flex; }

  .hero { padding: 56px 0 48px; }
  .section { padding: 52px 0; }
  .page-header { padding: 40px 0 32px; }

  .footer-top { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .post-item { flex-direction: column; gap: 8px; }
  .post-date { min-width: auto; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .card { padding: 24px 20px; }
}
