/*
Theme Name: MT Child
Theme URI: https://manga-tobira.com
Template: generatepress
Description: manga-tobira.com 子テーマ
Author: kizuku
Version: 1.0.0
Text Domain: mt-child
*/

/* ========== Base ========== */
:root {
  --mt-primary: #2c3e50;
  --mt-accent: #3498db;
  --mt-text: #333;
  --mt-bg: #fff;
  --mt-gray: #f5f5f5;
  --mt-border: #e0e0e0;
  --mt-max-width: 960px;
}

body {
  color: var(--mt-text);
  background: var(--mt-bg);
  line-height: 1.8;
}

/* ========== Header ========== */
.site-header {
  background: var(--mt-bg);
  border-bottom: 1px solid var(--mt-border);
}

.site-title a {
  color: var(--mt-primary) !important;
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
}

.site-description {
  font-size: 0.85rem;
  color: #666;
}

/* Genre nav */
.genre-nav {
  background: var(--mt-gray);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--mt-border);
}

.genre-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0 auto;
  padding: 0 1rem;
  max-width: var(--mt-max-width);
  justify-content: center;
}

.genre-nav a {
  color: var(--mt-text);
  text-decoration: none;
  font-size: 0.85rem;
}

.genre-nav a:hover {
  color: var(--mt-accent);
}

/* ========== Content ========== */
.mt-container {
  max-width: var(--mt-max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* ========== Single Works ========== */
.work-header {
  margin-bottom: 1.5rem;
}

.work-header h1 {
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.work-author {
  color: #666;
  font-size: 0.95rem;
}

.work-cover {
  text-align: center;
  margin: 1.5rem 0;
}

.work-cover img {
  max-width: 300px;
  width: 100%;
  height: auto;
  border: 1px solid var(--mt-border);
}

.work-catch {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--mt-primary);
  margin: 1.5rem 0 1rem;
  line-height: 1.6;
}

.work-section {
  margin: 2rem 0;
}

.work-section h2 {
  font-size: 1.2rem;
  border-left: 4px solid var(--mt-accent);
  padding-left: 0.75rem;
  margin-bottom: 1rem;
}

.work-section-body {
  line-height: 1.9;
}

/* Store list */
.store-list {
  list-style: none;
  padding: 0;
}

.store-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--mt-border);
}

.store-list li:last-child {
  border-bottom: none;
}

.store-list a {
  color: var(--mt-accent);
  text-decoration: none;
  font-size: 0.95rem;
}

.store-list a:hover {
  text-decoration: underline;
}

.store-name {
  font-weight: 600;
  color: var(--mt-text);
  margin-right: 0.5rem;
}

/* Related works */
.related-works {
  margin: 2.5rem 0;
}

.related-works h2 {
  font-size: 1.2rem;
  border-left: 4px solid var(--mt-accent);
  padding-left: 0.75rem;
  margin-bottom: 1rem;
}

/* Copyright */
.work-copyright {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--mt-border);
  font-size: 0.85rem;
  color: #666;
}

/* ========== Card Grid (Archive / Related) ========== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
}

.work-card {
  text-decoration: none;
  color: var(--mt-text);
  display: block;
}

.work-card img {
  width: 100%;
  height: auto;
  border: 1px solid var(--mt-border);
  aspect-ratio: 7 / 10;
  object-fit: cover;
}

.work-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.5rem;
  line-height: 1.4;
}

.work-card-catch {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.25rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== Front Page ========== */
.mt-container > h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--mt-primary);
}

.front-section {
  margin: 2.5rem 0;
}

.front-section h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--mt-primary);
}

.site-intro {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #555;
  margin-bottom: 2rem;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--mt-gray);
  border-top: 1px solid var(--mt-border);
  padding: 1.5rem 0;
  margin-top: 3rem;
}

.footer-nav {
  text-align: center;
  margin-bottom: 0.75rem;
}

.footer-nav a {
  color: var(--mt-text);
  text-decoration: none;
  margin: 0 0.75rem;
  font-size: 0.85rem;
}

.footer-nav a:hover {
  color: var(--mt-accent);
}

.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  color: #999;
}

/* ========== Static Pages ========== */
.static-page h1 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--mt-primary);
}

.static-page h2 {
  font-size: 1.1rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.static-page p {
  margin-bottom: 1rem;
}

/* ========== Responsive ========== */
@media (max-width: 600px) {
  .work-header h1 {
    font-size: 1.3rem;
  }

  .works-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
  }

  .genre-nav ul {
    gap: 0.4rem 0.8rem;
  }
}
