@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
  --color-bg: #0d0a0a;
  --color-surface: #1a1414;
  --color-surface-alt: #231a1a;
  --color-border: #3a2828;
  --color-primary: #bb2423;
  --color-primary-light: #d27d7c;
  --color-text: #e8e6e6;
  --color-text-muted: #999;
  --color-white: #fff;
  --font-main: 'Noto Sans JP', 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', 'MS Pゴシック', sans-serif;
  --max-width: 980px;
  --header-height: 60px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary-light); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-primary); }

/* ===== Layout ===== */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-logo img { height: 40px; width: auto; }
.header-logo { flex-shrink: 0; }

.header-sub-logo img { height: 22px; width: auto; opacity: .7; }

/* ===== Navigation ===== */
.site-nav { background: var(--color-surface-alt); }

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0;
}

.nav-list li { position: relative; }

.nav-list a {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: .03em;
  border-left: 1px solid var(--color-border);
  transition: background .2s, color .2s;
}

.nav-list li:first-child a { border-left: none; }

.nav-list a:hover,
.nav-list a.active {
  color: var(--color-primary);
  background: rgba(187,36,35,.08);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

/* ===== Main ===== */
main {
  flex: 1;
  width: 100%;
}

.page-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px;
}

.page-container--wide {
  max-width: 1200px;
}

/* ===== Page header ===== */
.page-header {
  text-align: center;
  padding: 40px 20px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.4;
}

/* ===== Hero (homepage) ===== */
.hero {
  position: relative;
  text-align: center;
  padding: 60px 20px;
  background: var(--color-surface);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .3;
}

.hero-content {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-content img { margin: 0 auto 20px; max-height: 300px; }

.hero h1 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--color-white);
}

.hero p {
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto 15px;
}

/* ===== Content sections ===== */
.content-section {
  margin-bottom: 40px;
}

.content-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}

.content-section p { margin-bottom: 12px; }

.content-section ul,
.content-section ol {
  margin: 0 0 16px 20px;
  padding: 0;
}

.content-section li { margin-bottom: 6px; }

/* ===== Info cards ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 20px;
}

.info-card h3 {
  font-size: 16px;
  color: var(--color-white);
  margin-bottom: 8px;
}

/* ===== News list ===== */
.news-list { list-style: none; }
.news-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  gap: 16px;
  align-items: baseline;
}

.news-date {
  font-size: 13px;
  color: var(--color-text-muted);
  flex-shrink: 0;
  min-width: 90px;
}

/* ===== Ticket table ===== */
.ticket-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.ticket-table th,
.ticket-table td {
  padding: 10px 14px;
  text-align: left;
  border: 1px solid var(--color-border);
}

.ticket-table th {
  background: var(--color-surface-alt);
  color: var(--color-white);
  font-weight: 600;
}

/* ===== Cast grid ===== */
.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin: 20px 0;
}

.cast-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 24px;
}

.cast-card h3 {
  font-size: 16px;
  color: var(--color-primary-light);
  margin-bottom: 4px;
}

.cast-card .role {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

/* ===== Comment blocks ===== */
.comment-block {
  background: var(--color-surface);
  border-left: 3px solid var(--color-primary);
  padding: 24px;
  margin-bottom: 24px;
  border-radius: 0 6px 6px 0;
}

.comment-block h3 {
  font-size: 16px;
  color: var(--color-primary-light);
  margin-bottom: 12px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 30px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--color-text-muted);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ===== Blog cards (from r-template_blog) ===== */
.blog-container { margin: 20px 0; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(1200px, 1fr));
  gap: 20px;
}

.blog-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 20px;
  transition: border-color .2s;
}

.blog-card:hover { border-color: var(--color-primary); }

.blog-title a {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-white);
}

.blog-title a:hover { color: var(--color-primary-light); }

.blog-preview {
  margin-top: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .nav-list.open { display: flex; }

  .nav-list a {
    border-left: none;
    border-bottom: 1px solid var(--color-border);
    padding: 12px 20px;
  }

  .header-inner { flex-wrap: wrap; }

  .hero { padding: 40px 16px; }

  .page-header h1 { font-size: 20px; }

  .page-container { padding: 24px 16px; }

  .news-item { flex-direction: column; gap: 4px; }
}
