/* ===================================================
   Base & Reset
=================================================== */
:root {
  --bg-color: #f8fafc;
  --surface-color: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --accent: #f59e0b;
  --border-color: #e2e8f0;
  --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  --font-serif: "Times New Roman", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "BIZ UDPMincho", "MS PMincho", serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ===================================================
   Header & Navigation
=================================================== */
.site-header {
  /* background: var(--surface-color); */
  background: url("/assets/images/header_image.jpeg") no-repeat center / cover;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-logo {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
}
.site-logo:hover {
  text-decoration: none;
}
.site-nav a {
  margin-left: 1.5rem;
  font-weight: 500;
  color: var(--text-muted);
}
.site-nav a:hover {
  color: var(--primary);
}

/* ===================================================
   Main Layout & Containers
=================================================== */
.main-container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  width: 100%;
  flex: 1;
}
.main-container ul,
.main-container ol {
  padding-left: 2rem;
  list-style-position: outside;
}
.main-container h1 {
}
.main-container h2 {
  margin-top: 1.5rem;
}
.main-container pre {
  margin: 1rem 0rem 1rem 0.5rem;
}
.main-container p code,
.main-container li code {
  background-color: #eee;
  border-right: 0.3rem solid #eee;
  border-left: 0.3rem solid #eee;
}

.hero-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
}
.hero-section h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}
.hero-section p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.section {
  margin-bottom: 3.5rem;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
}
.section-header h2 {
  font-size: 1.5rem;
  border-left: 4px solid var(--primary);
  padding-left: 0.75rem;
}
.more-link {
  font-size: 0.95rem;
  font-weight: 600;
}

/* ===================================================
   Works Grid & Cards
=================================================== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.work-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.work-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.06);
}
.card-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e2e8f0;
  display: block;
}
.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.card-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.card-title a {
  color: var(--text-main);
}
.card-price {
  font-weight: 700;
  color: var(--primary);
}
.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
}

/* ===================================================
   Badges & Buttons
=================================================== */
.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
}
.badge-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.status-頒布中 {
  background: #dcfce7;
  color: #15803d;
}
.status-完売 {
  background: #fee2e2;
  color: #b91c1c;
}
.status-準備中 {
  background: #fef3c7;
  color: #b45309;
}
.badge-price {
  background: #e0f2fe;
  color: #0369a1;
}
.badge-date, .badge-space {
  background: #f1f5f9;
  color: #475569;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--primary-hover);
  text-decoration: none;
}
.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background: #f1f5f9;
  text-decoration: none;
}

/* ===================================================
   Work Detail Page
=================================================== */
.work-article, .event-article, .page-content {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2.5rem;
}
.work-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}
.work-title {
  font-size: 2rem;
}
.work-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 0.25rem;
}
.work-hero-wrapper {
  margin: 1.5rem 0 2rem;
  text-align: center;
}
.work-hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.work-actions {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Markdown typography */
.markdown-body h2 {
  font-size: 1.4rem;
  margin: 1.5rem 0 0.75rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.4rem;
}
.markdown-body h3 {
  font-size: 1.2rem;
  margin: 1.25rem 0 0.5rem;
}
.markdown-body p {
  margin-bottom: 1rem;
}
.markdown-body ul, .markdown-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.markdown-body th, .markdown-body td {
  border: 1px solid var(--border-color);
  padding: 0.6rem 0.8rem;
  text-align: left;
}
.markdown-body th {
  background: #f8fafc;
}

/* ===================================================
   Events
=================================================== */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.event-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 1.25rem;
}
.event-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.event-title {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}
.event-venue {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===================================================
   Footer
=================================================== */
.site-footer {
  border-top: 1px solid var(--border-color);
  background: var(--surface-color);
  padding: 2rem 0;
  margin-top: auto;
}
.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.copyright {
  margin-bottom: 0.25rem;
}
