main.gyujtheto-page {
  position: relative;
  overflow: hidden;
  background-color: var(--color-parchment);
  background-image: radial-gradient(rgba(43, 33, 24, 0.035) 0.7px, transparent 0.8px);
  background-size: 9px 9px;
}

.gyujtheto-page .dossier-section {
  position: relative;
}

.gyujtheto-page .dossier-section + .dossier-section {
  border-top: 1px solid rgba(184, 169, 141, 0.72);
}

.gyujtheto-page .dossier-section::before,
.gyujtheto-page .dossier-section::after {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--color-rule-tan);
  content: "";
  pointer-events: none;
}

.gyujtheto-page .dossier-section::before {
  top: 28px;
  left: max(18px, calc((100% - var(--container-max)) / 2));
  border-top: 1px solid;
  border-left: 1px solid;
}

.gyujtheto-page .dossier-section::after {
  right: max(18px, calc((100% - var(--container-max)) / 2));
  bottom: 28px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.gyujtheto-page .section-kicker {
  display: inline-flex;
  width: fit-content;
  min-width: 0;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  color: var(--color-seal-red);
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.gyujtheto-page .section-kicker::before {
  width: 20px;
  height: 1px;
  background: currentColor;
  content: "";
}

.gyujtheto-page .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-7);
  align-items: start;
}

.gyujtheto-page .hero-copy,
.gyujtheto-page .hero-figure,
.gyujtheto-page .route-copy,
.gyujtheto-page .route-figure,
.gyujtheto-page .legend-copy,
.gyujtheto-page .legend-list,
.gyujtheto-page .growth-copy,
.gyujtheto-page .growth-steps {
  min-width: 0;
}

.gyujtheto-page .hero-copy {
  display: grid;
  width: 100%;
  max-width: 720px;
  gap: var(--space-4);
}

.gyujtheto-page .hero-copy .display-title,
.gyujtheto-page .hero-copy .lead,
.gyujtheto-page .hero-copy p {
  margin: 0;
}

.gyujtheto-page .hero-note {
  max-width: 680px;
  padding-left: var(--space-4);
  border-left: 3px solid var(--color-map-ochre);
  color: var(--color-ink-muted);
}

.gyujtheto-page .play-actions {
  display: grid;
  width: 100%;
  max-width: 360px;
  gap: var(--space-2);
}

.gyujtheto-page .play-actions .button {
  width: fit-content;
}

.gyujtheto-page .external-cue {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.gyujtheto-page .external-cue svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.gyujtheto-page .external-note {
  margin: 0;
  color: var(--color-ink-muted);
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.gyujtheto-page .hero-figure {
  width: 100%;
  margin: var(--space-6) 0 0;
}

.gyujtheto-page .evidence-plate {
  width: 100%;
  padding: 8px;
  border: var(--border-strong);
  border-radius: var(--radius-sheet);
  background: var(--color-paper-light);
  box-shadow: var(--shadow-paper);
}

.gyujtheto-page .evidence-plate img {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--color-wax-dark);
  object-fit: cover;
}

.gyujtheto-page .hero-figure img {
  aspect-ratio: 4 / 3;
  object-position: center;
}

.gyujtheto-page .evidence-plate figcaption {
  margin: 0;
  padding: var(--space-3) var(--space-2) 0;
  color: var(--color-ink-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.gyujtheto-page .section-intro {
  width: 100%;
  max-width: 520px;
}

.gyujtheto-page .section-intro p:last-child {
  margin-bottom: 0;
}

.gyujtheto-page .rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.gyujtheto-page .rule-card {
  display: grid;
  min-width: 0;
  min-height: 100%;
  padding: var(--space-5);
  border: var(--border-thin);
  border-radius: var(--radius-panel);
  background: var(--color-stat-parchment);
  box-shadow: var(--shadow-paper);
}

.gyujtheto-page .rule-card > *:last-child,
.gyujtheto-page .situation-card > *:last-child,
.gyujtheto-page .step-card > *:last-child,
.gyujtheto-page .growth-step > *:last-child,
.gyujtheto-page .tip-copy > *:last-child {
  margin-bottom: 0;
}

.gyujtheto-page .rule-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  border: 1px solid var(--color-wax-dark);
  border-radius: 50%;
  color: var(--color-map-ochre);
  font-size: 1.35rem;
  font-weight: 700;
}

.gyujtheto-page .rule-card h3 {
  margin-bottom: var(--space-3);
}

.gyujtheto-page .rule-card p {
  max-width: 38ch;
}

.gyujtheto-page .stamp {
  display: inline-block;
  width: fit-content;
  margin-bottom: var(--space-3);
  padding: 3px 7px;
  border: 1px solid var(--color-seal-red);
  border-radius: var(--radius-compact);
  color: var(--color-seal-red);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.25;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.gyujtheto-page .route-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: start;
}

.gyujtheto-page .route-copy {
  width: 100%;
  max-width: 660px;
}

.gyujtheto-page .reading-list {
  display: grid;
  gap: var(--space-4);
  margin: var(--space-5) 0;
  padding: 0;
  list-style: none;
  counter-reset: route-reading;
}

.gyujtheto-page .reading-list li {
  position: relative;
  min-width: 0;
  padding-left: 44px;
  counter-increment: route-reading;
}

.gyujtheto-page .reading-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--color-wax-dark);
  border-radius: 50%;
  content: counter(route-reading);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
}

.gyujtheto-page .field-note {
  display: grid;
  max-width: 500px;
  gap: var(--space-3);
  padding: var(--space-5);
  border: var(--border-thin);
  border-left: 4px solid var(--color-map-ochre);
  border-radius: var(--radius-panel);
  background: var(--color-paper-light);
}

.gyujtheto-page .field-note > * {
  margin: 0;
}

.gyujtheto-page .field-note strong {
  font-family: var(--font-heading);
  font-size: var(--text-stat);
  line-height: 1.15;
}

.gyujtheto-page .route-close {
  max-width: 620px;
  margin-top: var(--space-5);
  margin-bottom: 0;
  font-family: var(--font-heading);
}

.gyujtheto-page .route-close::before {
  display: inline-block;
  margin-right: var(--space-2);
  color: var(--color-map-ochre);
  content: "↗";
}

.gyujtheto-page .route-figure {
  width: 100%;
  margin: 0;
}

.gyujtheto-page .route-figure img {
  aspect-ratio: 3 / 2;
  object-position: center;
}

.gyujtheto-page .rhythm-header {
  width: 100%;
  max-width: 700px;
}

.gyujtheto-page .rhythm-header .lead {
  margin-bottom: 0;
}

.gyujtheto-page .rhythm-layout {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: var(--space-7);
  margin-top: var(--space-6);
  align-items: start;
}

.gyujtheto-page .step-stack {
  display: grid;
  width: 100%;
  max-width: 740px;
  gap: var(--space-4);
}

.gyujtheto-page .step-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: var(--space-4);
  min-width: 0;
  padding: var(--space-5);
  border: var(--border-thin);
  border-radius: var(--radius-panel);
  background: var(--color-stat-parchment);
}

.gyujtheto-page .step-number {
  width: 56px;
  height: 56px;
  border: 2px solid var(--color-wax-dark);
  border-radius: 50%;
  color: var(--color-seal-red);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 52px;
  text-align: center;
}

.gyujtheto-page .step-card h3 {
  margin-bottom: var(--space-2);
}

.gyujtheto-page .step-card p {
  max-width: 680px;
}

.gyujtheto-page .step-card--return h3 {
  text-decoration: underline 2px var(--color-seal-red);
  text-underline-offset: 5px;
}

.gyujtheto-page .rhythm-margin {
  display: grid;
  gap: var(--space-4);
  min-width: 0;
  padding: var(--space-5);
  border-top: 2px solid var(--color-wax-dark);
  color: var(--color-ink-muted);
}

.gyujtheto-page .rhythm-margin p {
  margin: 0;
  font-size: 0.9rem;
}

.gyujtheto-page .rhythm-margin .meta {
  margin: 0;
}

.gyujtheto-page .rhythm-figure {
  width: 100%;
  margin: var(--space-6) 0 0;
}

.gyujtheto-page .rhythm-figure img {
  aspect-ratio: 16 / 9;
  object-position: center;
}

.gyujtheto-page .situation-intro {
  width: 100%;
  max-width: 600px;
}

.gyujtheto-page .situation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.gyujtheto-page .situation-card {
  display: grid;
  min-width: 0;
  padding: var(--space-5);
  border: var(--border-thin);
  border-radius: var(--radius-panel);
  background: var(--color-stat-parchment);
}

.gyujtheto-page .situation-card h3 {
  margin-bottom: var(--space-4);
}

.gyujtheto-page .situation-card dl {
  display: grid;
  gap: var(--space-3);
  margin: 0;
}

.gyujtheto-page .situation-card dl > div {
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-rule-tan);
}

.gyujtheto-page .situation-card dt {
  margin-bottom: var(--space-1);
  color: var(--color-ink-muted);
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.gyujtheto-page .situation-card dd {
  margin: 0;
}

.gyujtheto-page .legend-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-7);
  align-items: start;
}

.gyujtheto-page .legend-copy {
  width: 100%;
  max-width: 520px;
}

.gyujtheto-page .legend-list {
  display: grid;
  width: 100%;
  border-top: 1px solid var(--color-rule-tan);
}

.gyujtheto-page .legend-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: var(--space-4);
  min-width: 0;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-rule-tan);
}

.gyujtheto-page .legend-row h3 {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.gyujtheto-page .legend-row p {
  max-width: 600px;
  margin: 0;
}

.gyujtheto-page .legend-mark {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 2px solid var(--color-wax-dark);
}

.gyujtheto-page .legend-mark--line {
  height: 2px;
  margin-top: 10px;
  background: var(--color-wax-dark);
}

.gyujtheto-page .legend-mark--arc {
  border-color: var(--color-map-ochre) var(--color-map-ochre) transparent transparent;
  border-radius: 50%;
  transform: rotate(-40deg);
}

.gyujtheto-page .legend-mark--danger {
  border-color: var(--color-seal-red);
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-seal-red) 0 4px, transparent 5px);
}

.gyujtheto-page .legend-mark--broken {
  height: 2px;
  margin-top: 10px;
  border: 0;
  background: repeating-linear-gradient(90deg, var(--color-rule-tan) 0 6px, transparent 6px 11px);
}

.gyujtheto-page .check-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-7);
  align-items: start;
}

.gyujtheto-page .check-sheet {
  display: grid;
  width: 100%;
  max-width: 680px;
  gap: var(--space-5);
  padding: var(--space-6);
  border: var(--border-strong);
  border-radius: var(--radius-sheet);
  background: var(--color-stat-parchment);
  box-shadow: var(--shadow-paper);
}

.gyujtheto-page .check-sheet h2,
.gyujtheto-page .check-sheet p {
  margin: 0;
}

.gyujtheto-page .check-form,
.gyujtheto-page .check-list {
  display: grid;
  gap: var(--space-3);
}

.gyujtheto-page .check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gyujtheto-page .check-list li {
  min-width: 0;
}

.gyujtheto-page .check-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  min-height: 48px;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-rule-tan);
  border-radius: var(--radius-compact);
  background: var(--color-paper-light);
  font-weight: 700;
  cursor: pointer;
}

.gyujtheto-page .check-item input {
  width: 24px;
  min-width: 24px;
  min-height: 24px;
  margin: 0;
}

.gyujtheto-page .check-item:has(input:checked) {
  border-color: var(--color-map-ochre);
  background: rgba(255, 248, 233, 0.66);
}

.gyujtheto-page .check-margin {
  display: grid;
  width: 100%;
  min-height: 190px;
  align-content: center;
  justify-items: start;
  gap: var(--space-3);
  color: var(--color-ink-muted);
}

.gyujtheto-page .check-margin::before {
  width: 96px;
  height: 52px;
  border-top: 2px dashed var(--color-map-ochre);
  border-right: 2px dashed var(--color-map-ochre);
  content: "";
  transform: skewY(-15deg);
}

.gyujtheto-page .check-margin p {
  max-width: 26ch;
  margin: 0;
  font-size: 0.875rem;
}

.gyujtheto-page .growth-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-7);
  align-items: start;
}

.gyujtheto-page .growth-copy {
  width: 100%;
  max-width: 520px;
}

.gyujtheto-page .growth-copy .lead {
  margin-bottom: var(--space-4);
}

.gyujtheto-page .growth-steps {
  display: grid;
  gap: var(--space-3);
}

.gyujtheto-page .growth-step {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: var(--space-4);
  min-width: 0;
  padding: var(--space-4) var(--space-5);
  border: var(--border-thin);
  border-radius: var(--radius-panel);
  background: var(--color-stat-parchment);
}

.gyujtheto-page .growth-step .meta {
  margin: 0;
  color: var(--color-seal-red);
}

.gyujtheto-page .growth-step h3 {
  margin-bottom: var(--space-2);
}

.gyujtheto-page .growth-step p {
  max-width: 600px;
}

.gyujtheto-page .tips-intro {
  width: 100%;
  max-width: 620px;
}

.gyujtheto-page .tips-sheet {
  display: grid;
  width: min(100%, 980px);
  margin: var(--space-6) auto 0;
  border: var(--border-strong);
  border-radius: var(--radius-sheet);
  background: var(--color-stat-parchment);
  box-shadow: var(--shadow-paper);
}

.gyujtheto-page .tip-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: var(--space-4);
  min-width: 0;
  padding: var(--space-5);
}

.gyujtheto-page .tip-row + .tip-row {
  border-top: 1px solid var(--color-rule-tan);
}

.gyujtheto-page .tip-number {
  color: var(--color-seal-red);
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1;
}

.gyujtheto-page .tip-copy {
  min-width: 0;
}

.gyujtheto-page .tip-copy h3 {
  margin-bottom: var(--space-2);
}

.gyujtheto-page .tip-copy p {
  max-width: 820px;
}

.gyujtheto-page .tip-row--final h3 {
  text-decoration: underline 2px var(--color-seal-red);
  text-underline-offset: 5px;
}

.gyujtheto-page .closing-sheet {
  padding: 5px;
  border: var(--border-thin);
  outline: 1px solid var(--color-wax-dark);
  outline-offset: -6px;
  border-radius: var(--radius-sheet);
  background: var(--color-stat-parchment);
  box-shadow: var(--shadow-paper);
}

.gyujtheto-page .closing-inner {
  display: grid;
  width: min(100%, 720px);
  margin: 0 auto;
  padding: clamp(var(--space-5), 5vw, var(--space-7));
  gap: var(--space-4);
}

.gyujtheto-page .closing-inner h2,
.gyujtheto-page .closing-inner p {
  margin: 0;
}

.gyujtheto-page .closing-inner .lead {
  text-align: left;
}

.gyujtheto-page .closing-actions {
  display: grid;
  width: 100%;
  justify-items: center;
  gap: var(--space-3);
  padding-top: var(--space-2);
}

.gyujtheto-page .closing-actions .button {
  min-width: 260px;
}

.gyujtheto-page .independent-note {
  color: var(--color-ink-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 980px) {
  .gyujtheto-page .rules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gyujtheto-page .rule-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .gyujtheto-page .rhythm-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .gyujtheto-page .rhythm-margin {
    display: none;
  }
}

@media (max-width: 860px) {
  .gyujtheto-page .hero-grid,
  .gyujtheto-page .route-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }

  .gyujtheto-page .hero-copy,
  .gyujtheto-page .route-copy {
    max-width: none;
  }

  .gyujtheto-page .hero-figure {
    margin-top: 0;
  }

  .gyujtheto-page .hero-figure,
  .gyujtheto-page .route-figure {
    max-width: none;
  }

  .gyujtheto-page .situation-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gyujtheto-page .legend-grid,
  .gyujtheto-page .growth-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }

  .gyujtheto-page .legend-copy,
  .gyujtheto-page .growth-copy {
    max-width: none;
  }
}

@media (max-width: 820px) {
  .gyujtheto-page .check-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .gyujtheto-page .check-sheet {
    max-width: none;
  }

  .gyujtheto-page .check-margin {
    display: none;
  }
}

@media (max-width: 760px) {
  .gyujtheto-page .rules-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gyujtheto-page .rule-card:last-child {
    grid-column: auto;
  }

  .gyujtheto-page .tips-sheet {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .gyujtheto-page .dossier-section::before,
  .gyujtheto-page .dossier-section::after {
    display: none;
  }

  .gyujtheto-page .hero-copy {
    gap: var(--space-3);
  }

  .gyujtheto-page .hero-copy .display-title {
    font-size: clamp(2.375rem, 11vw, 2.85rem);
  }

  .gyujtheto-page .hero-copy .lead {
    font-size: 1.125rem;
  }

  .gyujtheto-page .play-actions,
  .gyujtheto-page .play-actions .button {
    max-width: none;
    width: 100%;
  }

  .gyujtheto-page .play-actions .button {
    min-height: 3rem;
  }

  .gyujtheto-page .evidence-plate {
    padding: 6px;
  }

  .gyujtheto-page .rule-card,
  .gyujtheto-page .situation-card,
  .gyujtheto-page .field-note {
    padding: var(--space-4);
  }

  .gyujtheto-page .legend-row {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2);
  }

  .gyujtheto-page .legend-row h3 {
    align-items: center;
  }

  .gyujtheto-page .step-card,
  .gyujtheto-page .growth-step,
  .gyujtheto-page .tip-row {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3);
    padding: var(--space-4);
  }

  .gyujtheto-page .step-number {
    width: 48px;
    height: 48px;
    line-height: 44px;
  }

  .gyujtheto-page .growth-step .meta,
  .gyujtheto-page .tip-number {
    width: fit-content;
  }

  .gyujtheto-page .check-sheet {
    padding: var(--space-4);
  }

  .gyujtheto-page .check-item {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .gyujtheto-page .closing-inner {
    width: 100%;
    padding: var(--space-5);
  }

  .gyujtheto-page .closing-actions,
  .gyujtheto-page .closing-actions .button {
    width: 100%;
  }

  .gyujtheto-page .closing-actions .button {
    min-width: 0;
    min-height: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gyujtheto-page .stamp {
    transform: none;
  }
}
