﻿:root {
  --bg: #0f172a;
  --bg-card: #1e293b;
  --text: #f1f5f9;
  --text-muted: #b9b3b8;
  --sakura: #fda4af;
  --gold: #fbbf24;
  --border: rgba(253, 164, 175, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  padding: 3rem 1rem 4rem;
}
body.ruby-off rt {
  display: none;
}
#toggle-ruby {
  position: fixed;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.5rem;
  min-width: 4.6rem;
  white-space: nowrap;
  z-index: 10;
}
body.ruby-off rt.ruby-all, body.ruby-off .ruby-all rt {
  display: ruby-text;
}
body.ruby-big rt {
  font-size: 75%;
}
body.ruby-inline ruby {
  display: inline;
}
body.ruby-inline rt {
  display: inline;
  font-size: 100%;
}
body.ruby-inline rt::before {
  content: "(";
}
body.ruby-inline rt::after {
  content: ")";
}
body:not(.ruby-off) .ruby-side {
  display: none;
}
a {
  color: var(--sakura);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--gold);
}

.container {
  max-width: 720px;
  margin: 0 auto;
}

header {
  text-align: center;
  margin-bottom: 2.5rem;
}

h1 {
  color: var(--gold);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.back-link {
  display: inline-block;
  margin-top: 0.5rem;
  background: rgba(253, 164, 175, 0.12);
  border: 1px solid var(--border);
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--sakura);
}

.back-link:hover {
  background: rgba(253, 164, 175, 0.2);
  color: var(--gold);
}

.subtitle {
  color: var(--sakura);
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.author {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.description {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.description strong {
  color: var(--gold);
}

h2 {
  font-size: 1.15rem;
  color: var(--gold);
  margin: 2.2rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.4rem;
  transition: transform 0.2s, border-color 0.2s;
}

.work-card:hover {
  transform: translateY(-2px);
  border-color: rgba(253, 164, 175, 0.4);
}

.cover-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0c1222;
  padding: 1.2rem;
}

.work-card img {
  max-width: 100%;
  max-height: 380px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}
.work-card img.item-inline {
  max-width: 40%;
  max-height: 210px;
}
.work-card img.item-middle {
  max-width: 65%;
  max-height: 300px;
}

.work-info {
  padding: 1.3rem 1.5rem 1.5rem;
}

.work-info h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--gold);
}
.work-info p {
  color: #e2e8f0;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}
p.sub-text {
  margin-bottom: 0.8rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
p.nickname {
  color: var(--sakura);
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
}

.links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.links a {
  display: inline-block;
  background: rgba(253, 164, 175, 0.1);
  border: 1px solid var(--border);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--sakura);
}

.links a:hover {
  background: rgba(253, 164, 175, 0.18);
  color: var(--gold);
}

.comic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.2rem;
  margin-top: 0.5rem;
}

.comic-item {
  text-align: center;
}

.comic-item img {
  max-width: 100%;
  max-height: 280px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
}

footer {
  text-align: center;
  margin-top: 3.5rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

@media (max-width: 480px) {
  h1 { font-size: 1.45rem; }
  body { padding: 2rem 0.8rem 3rem; }
  .work-card img { max-height: 320px; }
  .comic-item img { max-height: 240px; }
}
