.wall-page { width: min(1180px, calc(100% - 2rem)); }
.wall-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; padding: clamp(2.5rem, 6vw, 5rem) 0 2.25rem; border-bottom: 1px solid var(--path-line); }
.wall-hero h1 { max-width: 11em; margin: 0; font-family: "Songti SC", "Yu Mincho", serif; font-size: clamp(2.7rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; }
.wall-hero p { max-width: 42rem; margin: 1.15rem 0 0; color: var(--path-muted); font-size: 1.05rem; line-height: 1.75; }
.wall-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: flex-end; }
.wall-actions a { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 1.2rem; border: 1px solid var(--path-line); border-radius: 14px; color: var(--path-ink); font-weight: 800; text-decoration: none; }
.wall-actions .primary-action { border-color: transparent; color: #fff; }
.wall-jump { display: flex; flex-wrap: wrap; gap: .65rem; padding: 1.1rem 0; position: sticky; top: var(--site-nav-height); z-index: 4; background: color-mix(in srgb, var(--path-paper) 92%, transparent); backdrop-filter: blur(14px); }
.wall-jump a { padding: .65rem .9rem; border-radius: 10px; color: var(--path-muted); font-size: .86rem; font-weight: 750; text-decoration: none; }
.wall-jump a:hover, .wall-jump a:focus-visible { background: var(--path-panel); color: var(--path-accent-dark); }
.wall-section { padding: clamp(3.8rem, 8vw, 7rem) 0 0; scroll-margin-top: calc(var(--site-nav-height) + 4rem); }
.wall-section > header { display: grid; grid-template-columns: minmax(0, .8fr) minmax(18rem, 1.2fr); gap: 2rem; align-items: end; margin-bottom: 2rem; }
.wall-section h2 { max-width: 12em; margin: 0; font-family: "Songti SC", "Yu Mincho", serif; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.wall-section > header p { max-width: 48rem; margin: 0; color: var(--path-muted); line-height: 1.75; }
.wall-timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--path-line); }
.wall-timeline article { min-height: 14rem; padding: 1.6rem 1.5rem 1.8rem; border-right: 1px solid var(--path-line); }
.wall-timeline article:last-child { border-right: 0; }
.wall-timeline time { color: var(--path-accent-dark); font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.wall-timeline h3 { margin: 2.2rem 0 .75rem; font-family: "Songti SC", "Yu Mincho", serif; font-size: 1.65rem; }
.wall-timeline p, .wall-writing-roles p, .wall-practice-paths p { margin: 0; color: var(--path-muted); line-height: 1.7; }
.wall-writing-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.wall-writing-roles article { padding: 1.4rem 1.5rem; border: 1px solid var(--path-line); border-radius: 14px; background: rgba(255,253,249,.7); }
.wall-writing-roles strong { display: block; margin-bottom: .55rem; font-family: "Noto Serif JP", "Yu Mincho", serif; font-size: 1.35rem; }
.wall-origin-example { display: inline-flex; align-items: baseline; gap: .6rem; margin-top: .85rem; color: var(--path-accent-dark); font-size: 1.15rem; font-weight: 800; }
.wall-source-note { margin: 1.25rem 0 0; color: var(--path-muted); font-size: .82rem; line-height: 1.6; }
.wall-source-note a { color: var(--path-accent-dark); text-underline-offset: .2em; }
.wall-foundations { display: grid; gap: 1rem; }
.foundation-item { padding: clamp(1.4rem, 3vw, 2.4rem); border: 1px solid var(--path-line); border-radius: 18px; background: rgba(255,253,249,.78); }
.foundation-item > header { max-width: 58rem; }
.foundation-item h3 { margin: 0 0 .75rem; font-family: "Songti SC", "Yu Mincho", serif; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.12; }
.foundation-item > header p { margin: 0; color: var(--path-muted); line-height: 1.75; }
.foundation-rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: 1.5rem; }
.foundation-rule { padding: 1.15rem; border-top: 1px solid var(--path-line); }
.foundation-rule h4 { margin: 0 0 .45rem; font-size: 1rem; }
.foundation-rule > p { min-height: 2.8rem; margin: 0; color: var(--path-muted); font-size: .88rem; line-height: 1.55; }
.foundation-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-top: 1.5rem; }
.foundation-facts section { padding: 1rem; border-top: 1px solid var(--path-line); }
.foundation-facts h4 { margin: 0 0 .5rem; font-size: .95rem; }
.foundation-facts p { margin: 0; color: var(--path-muted); font-size: .84rem; line-height: 1.55; }
.foundation-facts code { display: block; margin-top: .75rem; color: var(--path-accent-dark); font-family: "Noto Serif JP", "Yu Mincho", serif; font-size: .92rem; white-space: normal; }
.foundation-examples { margin-top: 1rem; }
.foundation-examples > b { display: block; margin-bottom: .45rem; color: var(--path-accent-dark); font-size: .72rem; }
.foundation-examples ul { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.foundation-examples li { display: grid; grid-template-columns: minmax(6rem, auto) 5rem 1fr; gap: .65rem; align-items: baseline; }
.foundation-examples li span { font-family: "Noto Serif JP", "Yu Mincho", serif; font-size: 1.1rem; }
.foundation-examples li em { color: var(--path-accent-dark); font-style: normal; }
.foundation-examples li small { color: var(--path-muted); }
.foundation-video { display: grid; grid-template-columns: minmax(0, 2fr) minmax(13rem, 1fr); gap: 1rem; align-items: center; margin: 1rem 0 0; padding: 1rem; border-radius: 14px; background: #fff8f1; }
.foundation-video video { display: block; width: 100%; border-radius: 10px; background: #fff8f1; }
.foundation-video figcaption { display: grid; gap: .45rem; }
.foundation-video figcaption span { color: var(--path-muted); font-size: .84rem; line-height: 1.55; }
.punctuation-table { margin-top: 1.5rem; border-top: 1px solid var(--path-line); }
.punctuation-table > div { display: grid; grid-template-columns: 7rem minmax(14rem, 1fr) minmax(14rem, 1fr); gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--path-line); }
.punctuation-table .punctuation-head { color: var(--path-muted); font-size: .74rem; }
.punctuation-table strong { font-family: "Noto Serif JP", "Yu Mincho", serif; font-size: 1.45rem; }
.punctuation-table span { display: grid; gap: .2rem; color: var(--path-muted); }
.punctuation-table i { color: var(--path-ink); font-style: normal; font-weight: 750; }
.punctuation-table code { font-family: "Noto Serif JP", "Yu Mincho", serif; font-size: 1rem; white-space: normal; }
.pitch-points, .pitch-types, .foundation-contrast { display: grid; gap: .7rem; margin-top: 1.5rem; }
.pitch-points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pitch-points > div, .foundation-contrast > div { display: grid; gap: .45rem; padding: 1rem; border-top: 1px solid var(--path-line); }
.pitch-points strong { color: var(--path-accent-dark); font-size: 1.55rem; letter-spacing: .05em; }
.pitch-points span, .foundation-contrast span { color: var(--path-muted); font-size: .86rem; line-height: 1.55; }
.pitch-types { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pitch-types > div { min-height: 9.5rem; padding: 1rem; border: 1px solid var(--path-line); border-radius: 12px; }
.pitch-types span { color: var(--path-accent-dark); font-size: .76rem; font-weight: 850; }
.pitch-types strong { display: block; margin: 1rem 0 .55rem; font-size: 1.1rem; white-space: nowrap; }
.pitch-types p, .foundation-caution { margin: 0; color: var(--path-muted); font-size: .84rem; line-height: 1.55; }
.foundation-caution { margin-top: .8rem; }
.foundation-formula { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; align-items: center; margin-top: 1.5rem; padding: 1.25rem; border-block: 1px solid var(--path-line); }
.foundation-formula strong { color: var(--path-accent-dark); }
.foundation-formula span { color: var(--path-muted); }
.foundation-contrast { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foundation-contrast b { color: var(--path-accent-dark); text-transform: uppercase; }
.wall-sound-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--path-line); }
.wall-sound-flow a { min-height: 11rem; padding: 1.3rem 1.4rem; border-right: 1px solid var(--path-line); border-bottom: 1px solid var(--path-line); color: inherit; text-decoration: none; }
.wall-sound-flow a:nth-child(3n) { border-right: 0; }
.wall-sound-flow span { color: var(--path-accent-dark); font-size: .74rem; font-weight: 850; }
.wall-sound-flow strong { display: block; margin: 1.5rem 0 .55rem; font-size: 1.1rem; }
.wall-sound-flow p { margin: 0; color: var(--path-muted); font-size: .88rem; line-height: 1.6; }
.wall-video-library { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--path-line); }
.wall-video-library > header { display: flex; gap: 1rem 2rem; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.wall-video-library h3 { margin: 0; font-family: "Songti SC", "Yu Mincho", serif; font-size: 1.7rem; }
.wall-video-library header p { max-width: 38rem; margin: 0; color: var(--path-muted); font-size: .86rem; line-height: 1.55; }
.wall-video-library > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.wall-video-library article { overflow: hidden; border: 1px solid var(--path-line); border-radius: 14px; background: rgba(255,253,249,.78); }
.wall-video-library video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #fff8f1; }
.wall-video-library article div { display: grid; grid-template-columns: 1fr auto; gap: .3rem .75rem; padding: 1rem; }
.wall-video-library strong, .wall-video-library p { grid-column: 1 / -1; }
.wall-video-library span { font-family: "Noto Serif JP", "Yu Mincho", serif; font-size: 1.2rem; }
.wall-video-library small { color: var(--path-accent-dark); }
.wall-video-library p { margin: .25rem 0 0; color: var(--path-muted); font-size: .78rem; line-height: 1.45; }
.wall-course-tree { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.wall-unit { border: 1px solid var(--path-line); border-radius: 14px; overflow: hidden; background: rgba(255,253,249,.72); }
.wall-unit header { padding: 1.4rem 1.5rem; border-bottom: 1px solid var(--path-line); }
.wall-unit header span { color: var(--path-accent-dark); font-size: .74rem; font-weight: 850; }
.wall-unit h3 { margin: .55rem 0 .4rem; font-family: "Songti SC", "Yu Mincho", serif; font-size: 1.55rem; }
.wall-unit header p { margin: 0; color: var(--path-muted); font-size: .86rem; line-height: 1.55; }
.wall-unit ol { margin: 0; padding: 0; list-style: none; }
.wall-unit li + li { border-top: 1px solid var(--path-line); }
.wall-unit a { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: .8rem; align-items: center; min-height: 3.8rem; padding: .8rem 1.25rem; color: var(--path-ink); text-decoration: none; }
.wall-unit a:hover, .wall-unit a:focus-visible { background: #fff; }
.wall-unit a span { color: var(--path-accent-dark); font-size: .75rem; font-weight: 850; }
.wall-unit a b { font-size: .93rem; line-height: 1.4; }
.wall-unit a i { color: var(--path-muted); font-style: normal; }
.wall-practice-paths { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--path-line); }
.wall-practice-paths a { min-height: 11rem; padding: 1.4rem; border-right: 1px solid var(--path-line); color: var(--path-ink); text-decoration: none; }
.wall-practice-paths a:last-child { border-right: 0; }
.wall-practice-paths strong { display: block; margin-bottom: 1rem; font-size: 1.05rem; }
.wall-page .simple-footer { margin-top: 6rem; }
@media (max-width: 820px) {
  .wall-hero, .wall-section > header { grid-template-columns: 1fr; align-items: start; }
  .wall-actions { justify-content: flex-start; }
  .wall-timeline, .wall-writing-roles, .wall-sound-flow, .wall-course-tree, .wall-practice-paths, .foundation-rule-grid, .foundation-facts, .pitch-types, .wall-video-library > div { grid-template-columns: 1fr; }
  .foundation-video { grid-template-columns: 1fr; }
  .wall-video-library > header { display: grid; }
  .punctuation-table > div { grid-template-columns: 4rem 1fr; }
  .punctuation-table > div > :last-child { grid-column: 2; }
  .wall-timeline article, .wall-sound-flow a, .wall-practice-paths a { border-right: 0; border-bottom: 1px solid var(--path-line); }
  .wall-timeline article:last-child, .wall-practice-paths a:last-child { border-bottom: 0; }
  .wall-unit a { grid-template-columns: 4.2rem 1fr auto; }
}
@media (max-width: 520px) {
  .wall-page { width: min(100% - 1rem, 1180px); }
  .wall-hero h1 { font-size: 2.45rem; }
  .wall-actions a { width: 100%; }
  .wall-jump { top: 6.2rem; display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
  .wall-jump a { flex: 0 0 auto; white-space: nowrap; }
  .wall-section { scroll-margin-top: 11rem; }
  .foundation-examples li, .pitch-points, .foundation-contrast { grid-template-columns: 1fr; }
}
