.subpage {
  padding-top: var(--header);
  min-height: 100svh;
}
.subhero {
  padding: clamp(72px, 8vw, 112px) 0 50px;
  border-bottom: 1px solid var(--line-soft);
}
.subhero-grid {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  column-gap: 38px;
  row-gap: 18px;
  align-items: start;
}
.subhero .section-id {
  grid-column: 1;
  grid-row: 1;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 650;
  padding-top: 9px;
}
.subhero h1 {
  grid-column: 2;
  grid-row: 1;
  font-size: clamp(54px, 6.8vw, 90px);
  max-width: none;
}
.subhero .copy {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  max-width: 58ch;
}
.archive {
  /* メインページのsection-innerと同じ余白リズムで、履歴を文書一覧として見せる。 */
  padding: clamp(64px, 7vw, 96px) 0 clamp(84px, 9vw, 132px);
}
.archive-head {
  display: grid;
  /* 見出しと各行で列幅を共有し、4列のフラットなindexとして揃える。 */
  grid-template-columns:
    minmax(118px, 1.15fr) minmax(128px, 1.1fr) minmax(120px, 1.25fr)
    minmax(0, 4.6fr);
  column-gap: clamp(16px, 2.2vw, 28px);
  padding: 0 18px 11px;
  color: var(--muted-2);
  font-size: 11px;
  border-bottom: 1px solid var(--line);
}
.release-row {
  display: grid;
  grid-template-columns:
    minmax(118px, 1.15fr) minmax(128px, 1.1fr) minmax(120px, 1.25fr)
    minmax(0, 4.6fr);
  column-gap: clamp(16px, 2.2vw, 28px);
  align-items: center;
  min-height: 88px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line-soft);
  transition:
    background 0.16s ease,
    border-color 0.16s ease;
}
.release-row:hover,
.release-row:focus-visible {
  background: var(--bg-hover);
  border-color: var(--line-strong);
  outline: 0;
}
.release-row .version {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.version-prefix {
  display: inline-block;
  margin-right: 0.12em;
  letter-spacing: 0;
}
.release-row .date,
.release-row .status {
  font-size: 12px;
  color: var(--muted);
}
.release-row .summary {
  color: #c7c7c4;
  font-size: 13px;
}
.archive-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  color: var(--muted-2);
  font-size: 12px;
}

.release-view {
  /* リリース本文もトップページのsectionと同じ縦方向の密度に揃える。 */
  padding: clamp(64px, 7vw, 96px) 0 clamp(84px, 9vw, 132px);
}
.release-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: start;
}
.release-aside {
  position: sticky;
  top: calc(var(--header) + 28px);
  border-top: 1px solid var(--line);
}
.release-aside dl {
  margin: 0;
}
.release-aside dl > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.release-aside dt {
  font-size: 11px;
  color: var(--muted-2);
}
.release-aside dd {
  margin: 4px 0 0;
  color: #d7d7d4;
}
.release-aside .btn {
  width: 100%;
  margin-top: 18px;
}
.release-aside .aside-link {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}
.release-aside .aside-link:hover,
.release-aside .aside-link:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
  outline: 0;
}
.release-content {
  max-width: 820px;
}
.release-content > section {
  padding: clamp(32px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--line-soft);
}
.release-content > section:first-child {
  border-top: 1px solid var(--line-strong);
}
.release-content h2 {
  font-size: clamp(34px, 3.8vw, 52px);
  letter-spacing: -0.035em;
  margin: 0 0 22px;
}
.release-content h3 {
  font-size: 22px;
  margin: 30px 0 12px;
}
.release-content p {
  color: var(--muted);
  max-width: 70ch;
}
.release-content ul {
  padding-left: 19px;
  margin: 12px 0 0;
}
.release-content li {
  margin: 9px 0;
  color: #c8c8c5;
}
.release-content code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: #ff747a;
}
.release-endnav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
}
.release-endnav a {
  font-size: 12px;
  color: var(--muted);
}
.release-endnav a:hover,
.release-endnav a:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
  outline: 0;
}

.manual-hero .subhero-grid {
  row-gap: 16px;
}
.manual-hero-title {
  max-width: none !important;
  font-size: clamp(52px, 6.4vw, 84px) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.045em !important;
}
.manual-title-lines,
.manual-title-line {
  display: block;
}
.manual-title-line {
  white-space: nowrap;
}
.manual-title-lines--mobile {
  display: none;
}
.manual-version {
  grid-column: 2;
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.manual-body {
  padding: 52px 0 128px;
}
.manual-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: clamp(48px, 6.5vw, 92px);
  align-items: start;
}
.manual-sidebar {
  position: sticky;
  top: calc(var(--header) + 24px);
  align-self: start;
  max-height: calc(100svh - var(--header) - 40px);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.manual-search-block {
  margin-bottom: 28px;
}
.manual-search-block > label,
.manual-toc-heading {
  display: block;
  margin-bottom: 9px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.manual-search-block input {
  width: 100%;
  height: 42px;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: var(--bg-elevated);
  color: var(--text);
  padding: 0 12px;
  font-size: 13px;
  transition:
    background 0.16s ease,
    border-color 0.16s ease;
}
.manual-search-block input::placeholder {
  color: #6f6f6c;
}
.manual-search-block input:hover {
  background: #121212;
}
.manual-search-block input:focus-visible {
  border-color: var(--accent);
  background: #121212;
}
.manual-search-block input::-webkit-search-cancel-button {
  filter: grayscale(1) brightness(1.7);
}
.manual-search-results {
  max-height: 286px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-top: 0;
  background: #0d0d0d;
}
.manual-search-results[hidden] {
  display: none;
}
.manual-search-result {
  display: block;
  padding: 11px 14px 12px;
  border-bottom: 1px solid var(--line-soft);
  color: #d5d5d2;
  font-size: 12px;
  line-height: 1.4;
  transition:
    background 0.14s ease,
    color 0.14s ease;
}
.manual-search-result:last-child {
  border-bottom: 0;
}
.manual-search-result small {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.4;
}
.manual-search-result:hover,
.manual-search-result:focus-visible {
  background: var(--bg-hover);
  color: var(--text);
  outline: 0;
}
.manual-search-empty {
  margin: 0;
  padding: 12px;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.5;
}
.manual-toc-toggle {
  display: none;
}
.manual-toc {
  border-top: 1px solid var(--line);
}
.manual-toc a {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 12px 11px 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}
.manual-toc a::before {
  content: "";
  position: absolute;
  inset: 7px auto 7px 7px;
  width: 2px;
  background: var(--accent);
  opacity: 0;
  transform: scaleY(0.5);
  transform-origin: center;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}
.manual-toc-index {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.manual-toc-index.is-overview {
  color: #555553;
}
.manual-toc a:hover,
.manual-toc a:focus-visible {
  color: var(--text);
  background: #0f0f0f;
  outline: 0;
}
.manual-toc a.is-active {
  color: var(--text);
  background: #101010;
}
.manual-toc a.is-active::before {
  opacity: 1;
  transform: scaleY(1);
}
.manual-toc a.is-active .manual-toc-index {
  color: var(--accent);
}

.manual-content {
  min-width: 0;
  max-width: 900px;
}
.manual-chapter {
  position: relative;
  scroll-margin-top: calc(var(--header) + 28px);
  padding: 46px 0 62px;
  border-bottom: 1px solid var(--line-soft);
}
.manual-chapter:first-child {
  padding-top: 0;
}
.manual-chapter-heading {
  padding-top: 34px;
  border-top: 1px solid var(--line-strong);
}
.manual-chapter-index {
  margin-bottom: 11px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.manual-chapter-index.is-overview {
  color: var(--muted-2);
  font-family: inherit;
  letter-spacing: 0.04em;
}
.manual-chapter-heading > h2 {
  margin: 0;
  font-size: clamp(31px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.manual-chapter-content {
  display: grid;
  gap: 0;
  margin-top: 34px;
}
.manual-subsection {
  min-width: 0;
  scroll-margin-top: calc(var(--header) + 32px);
  padding: 0 0 34px;
}
.manual-subsection + .manual-subsection {
  padding-top: 34px;
  border-top: 1px solid var(--line-soft);
}
.manual-subsection:last-child {
  padding-bottom: 0;
}
.manual-subsection h3 {
  margin: 0 0 13px;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.manual-subsection p,
.manual-list,
.manual-steps {
  max-width: 74ch;
  color: #c8c8c5;
  font-size: 14px;
  line-height: 1.78;
}
.manual-subsection p {
  margin: 0 0 14px;
}
.manual-list,
.manual-steps {
  margin: 14px 0 0;
  padding-left: 20px;
}
.manual-list li + li,
.manual-steps li + li {
  margin-top: 7px;
}
.manual-steps {
  padding-left: 24px;
}
.manual-table-wrap {
  width: 100%;
  margin-top: 18px;
  overflow-x: auto;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  scrollbar-width: thin;
}
.manual-table-wrap:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}
.manual-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 13px;
  line-height: 1.55;
}
.manual-table th,
.manual-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}
.manual-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.manual-table td {
  color: #c8c8c5;
}
.manual-table tbody tr {
  transition: background 0.14s ease;
}
.manual-table tbody tr:hover {
  background: #0f0f0f;
}
.manual-table tr:last-child td {
  border-bottom: 0;
}
.manual-feature-link {
  display: inline-flex;
  align-items: baseline;
  color: #ededeb;
  font-weight: 650;
  text-decoration: none;
  transition: color 0.14s ease;
}
.manual-feature-link:hover,
.manual-feature-link:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  outline: 0;
}
.manual-feature-separator {
  color: var(--muted-2);
}
.manual-back-to-contents {
  display: none;
  width: max-content;
  margin-top: 34px;
  color: var(--muted);
  font-size: 12px;
}
.manual-back-to-contents:hover,
.manual-back-to-contents:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
  outline: 0;
}

html:lang(ja) .manual-subsection p,
html:lang(ja) .manual-list,
html:lang(ja) .manual-steps,
html:lang(zh) .manual-subsection p,
html:lang(zh) .manual-list,
html:lang(zh) .manual-steps,
html:lang(ko) .manual-subsection p,
html:lang(ko) .manual-list,
html:lang(ko) .manual-steps {
  line-height: 1.82;
}
html:lang(ja) .manual-subsection h3,
html:lang(zh) .manual-subsection h3,
html:lang(ko) .manual-subsection h3 {
  line-height: 1.4;
}
html:lang(ja) .manual-hero-title,
html:lang(zh) .manual-hero-title,
html:lang(ko) .manual-hero-title {
  max-width: none !important;
  line-height: 1.06 !important;
}
html:lang(ko) .manual-title-line {
  word-break: keep-all;
}
html:lang(ja) .release-content h2,
html:lang(zh) .release-content h2,
html:lang(ko) .release-content h2 {
  line-height: 1.14;
}
