.journal-main {
  padding-bottom: var(--s6);
}
.journal-heading {
  padding: var(--s5) 0 var(--s4);
  text-align: center;
}
.journal-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-wash);
  color: var(--brand);
  font-size: var(--small);
  margin: 0 0 var(--s3);
}
.journal-count {
  margin: var(--s3) auto 0;
  color: var(--muted);
}
.journal-card {
  border: 1px solid var(--line-soft);
}
.journal-card h2 {
  font-size: var(--mail);
  line-height: 1.5;
  font-weight: 500;
}
.journal-card .journal-kicker {
  margin-bottom: 0;
}
.journal-card.is-latest {
  background: var(--brand-wash);
  color: var(--ink);
}
.journal-card.is-latest:hover {
  background: var(--brand-soft);
  color: var(--ink);
}
.article-shell {
  padding-bottom: var(--s6);
}
.article-hero {
  padding-bottom: var(--s5);
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  margin-bottom: var(--s4);
  font-size: var(--small);
  color: var(--muted);
}
.article-hero h1 {
  max-width: 1040px;
  line-height: 1.25;
}
.article-hero .section-intro {
  max-width: 860px;
  margin: var(--s3) 0;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  font-size: var(--small);
}
.article-meta > * {
  padding: 6px 12px;
  background: var(--white);
  color: var(--muted);
  border-radius: 999px;
}
.article-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: var(--s5);
  align-items: start;
}
.article-toc {
  position: sticky;
  top: 96px;
  align-self: start;
  z-index: 2;
  padding: var(--s3);
  border-radius: var(--radius-card);
  background: var(--white);
  color: var(--ink);
}
.article-toc h2 {
  font-size: var(--h3);
}
.article-toc ol {
  padding-left: 20px;
  margin: var(--s2) 0 0;
}
.article-toc li {
  margin: 8px 0;
  font-size: var(--small);
}
.toc-count {
  margin: var(--s3) 0 0;
  font-size: var(--small);
  color: var(--muted);
}
.prose {
  min-width: 0;
  font-size: var(--body);
  line-height: 1.75;
}
.prose h2 {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.4;
  margin: var(--s4) 0 var(--s2);
  scroll-margin-top: 100px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  font-size: var(--h3);
  margin: var(--s3) 0 var(--s2);
}
.prose p {
  margin: 0 0 var(--s2);
  font-weight: 400;
}
.prose li {
  margin: 6px 0;
  line-height: 1.75;
}
.prose ul,
.prose ol {
  padding-left: 22px;
  margin: var(--s2) 0 var(--s3);
}
.article-table {
  overflow-x: auto;
  margin: var(--s3) 0 var(--s4);
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--small);
}
.prose th,
.prose td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
  min-width: 11rem;
  max-width: 22rem;
  line-height: 1.55;
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: break-word;
}
.prose tbody tr:last-child td {
  border-bottom: 0;
}
:lang(ja) .prose th,
:lang(ja) .prose td {
  max-width: 28rem;
}
.prose th {
  background: var(--brand-wash);
  color: var(--ink);
  font-weight: 500;
}
.prose a:not(.btn):not(.text-link) {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose code {
  font-family: var(--mono);
  font-size: 0.92em;
  padding: 0 4px;
  background: var(--brand-wash);
  color: var(--ink);
  border-radius: 6px;
}
.prose svg:not([width]) {
  width: 22px;
  height: 22px;
  max-width: 22px;
}
.prose .call-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 28px 0 32px;
  padding: 16px 20px;
  border-radius: var(--radius-control);
  background: var(--brand-wash);
  color: var(--ink);
}
.prose .call-box:first-child {
  margin-top: 0;
}
.prose .call-box svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  color: var(--brand);
}
.prose .call-box span {
  min-width: 0;
}
.prose .faq-list {
  display: grid;
  gap: 12px;
  margin: 0 0 32px;
}
.prose .faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--white);
  padding: 0 20px;
}
.prose .faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  color: var(--ink);
}
.prose .faq-item summary::-webkit-details-marker {
  display: none;
}
.prose .faq-item summary::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-2px) rotate(45deg);
}
.prose .faq-item[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}
.prose .faq-a {
  padding: 0 28px 16px 0;
  color: var(--ink-soft);
  line-height: 1.75;
}
.article-cta {
  margin-top: var(--s5);
  padding: var(--s4);
  border-radius: var(--radius-card);
  background: var(--ink);
  color: var(--white);
}
.article-cta h2 {
  color: var(--white);
  margin-top: var(--s3);
}
.prose .article-cta > svg {
  width: 32px;
  height: 32px;
  max-width: 32px;
  color: var(--brand-soft);
}
.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s3);
}
.article-cta .btn {
  background: var(--brand);
  color: var(--white);
}
.article-cta .btn:hover {
  background: var(--brand-strong);
  color: var(--white);
}
.article-cta .text-link {
  color: var(--white);
  text-decoration: none;
}
.related-reading {
  padding-top: var(--s4);
}
.related-reading a {
  display: block;
  padding: var(--s3);
  background: var(--white);
  color: var(--brand);
  border-radius: var(--radius-control);
}
.recommend-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  width: 280px;
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-float);
  border: 1px solid var(--line);
}
.recommend-float > svg {
  width: 28px;
  height: 28px;
  margin-bottom: var(--s2);
  color: var(--brand);
}
.recommend-float strong {
  display: block;
  padding-right: 12px;
}
.recommend-float p {
  margin: var(--s1) 0 var(--s2);
  font-size: var(--small);
  color: var(--muted);
}
.recommend-float .btn {
  background: var(--brand);
  color: var(--white);
}
.recommend-float .btn:hover {
  background: var(--brand-strong);
  color: var(--white);
}
.recommend-float button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.float-close svg {
  width: 16px;
  height: 16px;
}
@media (max-width: 860px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s4);
  }
  .article-toc {
    position: static;
    top: auto;
    padding: var(--s3);
  }
  .article-hero {
    padding-bottom: var(--s4);
  }
  .article-cta {
    padding: var(--s3);
  }
  .recommend-float {
    right: 12px;
    bottom: 12px;
    width: min(270px, calc(100% - 24px));
    padding: 16px;
  }
  .recommend-float > svg {
    display: none;
  }
  .recommend-float strong {
    padding-right: 24px;
  }
}
