@media (max-width: 980px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-aside {
    max-width: 620px;
  }

  .newcomer-guide {
    grid-template-columns: 1fr;
  }

  .system-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-flow li:nth-child(even) {
    border-right: 0;
  }

  .system-flow li:last-child {
    grid-column: 1 / -1;
  }

  .plan-card-grid {
    grid-template-columns: 1fr;
  }

  .plan-card {
    min-height: 350px;
  }

  .plan-card-role {
    margin-bottom: 40px;
  }

  .questions-section {
    grid-template-columns: 1fr;
  }

  .subject-workbench {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .detail-orientation {
    grid-template-columns: 1fr;
  }

  .map-layout {
    grid-template-columns: 1fr;
  }

  .map-inspector {
    min-height: 160px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 720px) {
  :root {
    --guide-content: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 66px;
    gap: 8px;
  }

  .wordmark > span:last-child {
    display: none;
  }

  .site-nav {
    gap: 0;
  }

  .site-nav a {
    padding: 7px 9px;
    font-size: 0.76rem;
  }

  .hero {
    gap: 40px;
    padding-block: 60px 76px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.7rem);
  }

  .guide-section {
    padding-block: 72px;
  }

  .section-heading-row,
  .site-footer,
  .explorer-header,
  .map-toolbar,
  .raw-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .choice-grid,
  .generation-boundary,
  .plan-part-grid,
  .system-flow,
  .system-terms {
    grid-template-columns: 1fr;
  }

  .system-section {
    gap: 32px;
  }

  .system-flow li,
  .system-flow li:nth-child(even),
  .system-flow li:last-child {
    min-height: auto;
    border-right: 0;
    grid-column: auto;
  }

  .system-flow li > span {
    margin-bottom: 24px;
  }

  .system-terms div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .system-terms div:last-child {
    border-bottom: 0;
  }

  .plan-part-card,
  .plan-part-card:nth-child(even) {
    min-height: auto;
    border-right: 0;
    grid-column: auto;
  }

  .generation-boundary article {
    padding: 24px;
  }

  .explorer-main {
    padding-block: 44px 70px;
  }

  .newcomer-guide {
    padding: 20px;
  }

  .newcomer-guide ol {
    grid-template-columns: 1fr;
  }

  .newcomer-guide li {
    min-height: auto;
    border-top: 0;
    border-left: 1px solid rgb(66 110 126 / 28%);
  }

  .newcomer-guide li + li {
    border-top: 1px solid rgb(66 110 126 / 28%);
  }

  .plan-picker {
    min-width: 0;
  }

  .explorer-tabs {
    overflow-x: visible;
  }

  .explorer-tabs button {
    min-width: 0;
    padding-inline: 5px;
    font-size: 0.7rem;
  }

  .tab-panel {
    min-height: 0;
  }

  .subject-workbench {
    grid-template-columns: 1fr;
  }

  .subject-index {
    max-height: 500px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .subject-list {
    min-height: 260px;
  }

  .subject-detail {
    padding: 30px 20px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-orientation {
    grid-template-columns: 1fr;
  }

  .detail-json-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .map-toolbar,
  .raw-heading {
    padding: 24px 20px;
  }

  .map-controls {
    width: 100%;
    align-items: stretch;
    justify-content: start;
  }

  .map-entity-picker {
    width: 100%;
  }

  .map-actions {
    width: 100%;
  }

  .map-actions .button {
    min-height: 44px;
    flex: 1;
  }

  .relationship-map {
    min-height: 520px;
  }

  .map-gesture-hint {
    width: 100%;
    margin-left: 0;
  }

  .raw-location {
    text-align: left;
  }

  .raw-editor {
    height: 620px;
  }

  .site-footer {
    min-height: 160px;
    justify-content: center;
    padding-block: 30px;
  }
}

@media (max-width: 360px) {
  .explorer-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
