/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V5 */
/* Hallmark · macrostructure: inline reading fork / editorial / quiet utility / existing forest green · contrast: pass (46–50) · nav/footer/hero: unchanged · slop: pass (51–55) · honest: pass (56) · chrome: pass (57) · tokens: pass (58) · responsive: pass (59) · icons: pass (60) · mobile: pass (36, 59, 61–69) */
:root {
  --article-jump-line: #cfe3d4;
  --article-jump-muted: #52606d;
  --article-jump-link: #065f46;
  --article-jump-focus: #065f46;
}

.article-jump-nav {
  margin: 24px 0 0;
  padding: 16px 0;
  border-top: 1px solid var(--article-jump-line);
  border-bottom: 1px solid var(--article-jump-line);
}

.article-jump-nav .article-jump-nav__label {
  margin: 0 0 8px;
  color: var(--article-jump-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.article-jump-nav__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.article-jump-nav__link {
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  color: var(--article-jump-link);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  white-space: nowrap;
}

.article-jump-nav__link:hover {
  text-decoration-thickness: 2px;
}

.article-jump-nav__link:active {
  text-decoration-thickness: 2px;
}

.article-jump-nav__link:focus-visible,
.manga-story:focus-visible,
.article-body-start:focus-visible {
  outline: 3px solid var(--article-jump-focus);
  outline-offset: 4px;
}

.article-body-start {
  scroll-margin-top: 96px;
}

.manga-story {
  --manga-green: #047857;
  --manga-green-deep: #065f46;
  --manga-line: #cfe3d4;
  --manga-paper: #fffdf8;
  scroll-margin-top: 96px;
  margin: 32px 0 12px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--manga-line);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(185, 219, 194, 0.32), transparent 34%),
    var(--manga-paper);
  box-shadow: 0 20px 44px rgba(15, 70, 49, 0.08);
}

.manga-story__eyebrow,
.manga-entry__eyebrow {
  margin: 0;
  color: var(--manga-green-deep, #065f46);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.manga-story .manga-story__title,
.manga-entry .manga-entry__title {
  margin: 10px 0 0;
  color: #1f2937;
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  font-size: clamp(25px, 4vw, 34px);
  line-height: 1.45;
}

.manga-story__lead,
.manga-entry__lead {
  margin: 14px 0 0;
  color: #52606d;
  font-size: 15px;
  line-height: 1.9;
}

.manga-story__points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.manga-story__points li {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(4, 120, 87, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: #344054;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
}

.manga-story__points li::before {
  content: "";
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--manga-green);
  box-shadow: 0 0 0 5px rgba(4, 120, 87, 0.10);
}

.manga-story__pages {
  display: grid;
  gap: 28px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.article-main .manga-story__points,
.article-main .manga-story__pages {
  padding-left: 0;
}

.manga-story__page {
  width: min(100%, 720px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(4, 120, 87, 0.16);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 70, 49, 0.10);
}

.manga-story__page-link {
  display: block;
  background: #f7f5ee;
}

.manga-story__page-link:focus-visible,
.manga-entry__button:focus-visible,
.manga-entry__media:focus-visible,
.manga-story__transcript summary:focus-visible {
  outline: 3px solid var(--article-jump-focus);
  outline-offset: 4px;
}

.manga-story__page-image {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  background: #f7f5ee;
}

.manga-story__page-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 14px;
  color: #52606d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.manga-story__zoom-hint {
  flex: 0 0 auto;
  color: var(--manga-green-deep);
}

.manga-story__transcript {
  width: min(100%, 720px);
  margin: 28px auto 0;
  border: 1px solid var(--manga-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.manga-story__transcript summary {
  min-height: 48px;
  padding: 14px 18px;
  cursor: pointer;
  color: var(--manga-green-deep);
  font-size: 14px;
  font-weight: 800;
}

.manga-story__transcript-body {
  padding: 2px 18px 18px;
  border-top: 1px solid #e4eee6;
}

.manga-story__transcript-page {
  padding-top: 16px;
}

.manga-story__transcript-page + .manga-story__transcript-page {
  margin-top: 16px;
  border-top: 1px dashed #cfe3d4;
}

.manga-story .manga-story__transcript-page h3 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 16px;
}

.manga-story .manga-story__transcript-page p {
  margin: 6px 0;
  color: #52606d;
  font-size: 14px;
  line-height: 1.8;
}

.manga-entry {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(230px, 0.75fr);
  gap: clamp(24px, 5vw, 48px);
  align-items: center;
  margin-top: 32px;
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid #cfe3d4;
  border-radius: 32px;
  background:
    radial-gradient(circle at bottom right, rgba(185, 219, 194, 0.38), transparent 38%),
    #fffdf8;
  box-shadow: 0 18px 42px rgba(15, 70, 49, 0.08);
}

.manga-entry__checks {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

.manga-entry__checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.manga-entry__checks li::before {
  content: "✓";
  color: #047857;
  font-weight: 900;
}

.manga-entry__button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  padding: 13px 20px;
  border-radius: 999px;
  background: #047857;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms ease;
}

.manga-entry__button:hover {
  background: #065f46;
  transform: translateY(-1px);
}

.manga-entry__media {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(4, 120, 87, 0.14);
  border-radius: 24px;
  background: #f7f5ee;
  box-shadow: 0 16px 34px rgba(15, 70, 49, 0.12);
}

.manga-entry__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: top;
}

@media (max-width: 720px) {
  .article-jump-nav {
    margin-top: 20px;
    padding: 12px 0;
  }

  .article-jump-nav__links {
    gap: 4px;
  }

  .article-jump-nav__link {
    padding-right: 4px;
    padding-left: 4px;
    font-size: 13px;
  }

  .article-body-start {
    scroll-margin-top: 128px;
  }

  .manga-story {
    scroll-margin-top: 128px;
    margin-top: 26px;
    padding: 18px 12px;
    border-radius: 22px;
  }

  .article-main > .manga-story {
    margin-right: -15px;
    margin-left: -15px;
  }

  .manga-story__points,
  .manga-entry {
    grid-template-columns: 1fr;
  }

  .manga-story__points li {
    min-height: auto;
  }

  .manga-story__page-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .manga-entry {
    padding: 24px 20px;
    border-radius: 26px;
  }

  .manga-entry__media {
    width: min(100%, 360px);
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .manga-entry__button {
    transition: none;
  }
}
