/* Static editorial guide for the public-map product family. */

.map-story {
  --story-ink: #152431;
  --story-blue: #247da6;
  --story-blue-light: #d9edf5;
  --story-paper: #f5f3ed;
  --story-line: #d8d6cf;
  background: #fff;
  color: var(--story-ink);
}

.map-story:lang(ja),
.map-story:lang(ja) * { font-weight: 400 !important; }

.map-story .site-nav .nav-inner { width: 100%; }

.story-shell {
  width: min(1640px, 100%);
  margin: 0 auto;
  padding-inline: var(--page-gutter);
}

.story-kicker,
.graph-meta,
.story-shot figcaption span,
.chapter-products span,
.chapter-feature > span,
.product-table > a > span {
  font-size: .67rem;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.story-kicker { color: var(--accent-dark); }

.story-hero {
  overflow: hidden;
  padding: clamp(4rem, 7vw, 8rem) 0 clamp(4rem, 7vw, 7.5rem);
  border-bottom: 1px solid var(--story-line);
  background: linear-gradient(120deg, #fff 0 56%, #f5f8f8 56% 100%);
}

.story-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(3.5rem, 6vw, 7rem);
}

.story-hero-copy h1 {
  margin: 1.2rem 0 1.7rem;
  font-size: clamp(3.7rem, 4.6vw, 6.3rem);
  line-height: .94;
  letter-spacing: -.065em;
}

.story-lede {
  max-width: 37rem;
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  line-height: 1.8;
}

.story-actions,
.story-final .final-grid > div:last-child {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem 1.7rem;
  margin-top: 2rem;
}

.story-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .8rem 1.25rem;
  color: #fff;
  background: var(--story-ink);
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.story-button::after { content: "↗"; margin-left: .65rem; }
.story-button:hover { background: var(--accent-dark); transform: translateY(-2px); }

.story-text-link {
  color: var(--story-ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.story-text-link::after { content: " →"; }

.story-figure { margin: 0; }

.story-graph {
  position: relative;
  padding: 1.1rem 1.1rem .8rem;
  border: 1px solid #c8d5d9;
  background: rgba(255,255,255,.76);
  box-shadow: 0 35px 90px rgba(32, 68, 82, .11);
}

.graph-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .2rem .3rem .8rem;
  color: #65747b;
  border-bottom: 1px solid #dbe2e4;
}

.story-graph svg { display: block; width: 100%; height: auto; }
.graph-grid path { fill: none; stroke: #dbe3e5; stroke-width: 1; }
.graph-lines path { fill: none; stroke-width: 5; stroke-linecap: round; }
.graph-lines .line-a { stroke: #2b83ac; }
.graph-lines .line-b { stroke: #60aebd; }
.graph-lines .line-c { stroke: #a8cfd3; }
.graph-labels { fill: #64777e; font-family: inherit; font-size: 13px; letter-spacing: .08em; }

.story-graph figcaption {
  padding: .75rem .3rem .1rem;
  color: #6d787d;
  font-size: .72rem;
  border-top: 1px solid #dbe2e4;
}

.story-thesis {
  padding: clamp(5rem, 10vw, 10rem) 0;
  background: var(--story-paper);
}

.thesis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 7rem);
}

.thesis-heading .story-kicker { margin-bottom: 1.5rem; }

.thesis-grid h2,
.chapter-copy h2,
.index-head h2,
.story-final h2 {
  letter-spacing: -.045em;
  text-wrap: balance;
}

.thesis-grid h2 {
  margin-top: -.15em;
  font-size: clamp(2.2rem, 4.2vw, 5rem);
  line-height: 1.08;
}

.thesis-grid > p:last-child {
  color: var(--muted-strong);
  font-size: 1.02rem;
  line-height: 1.85;
}

.story-chapter {
  padding: clamp(5rem, 10vw, 10rem) 0;
  border-top: 1px solid var(--story-line);
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(3.5rem, 7vw, 8rem);
}

.chapter-grid-reverse .chapter-copy { order: 2; }
.chapter-grid-reverse .story-shot { order: 1; }

.chapter-copy h2 {
  margin: 1rem 0 1.6rem;
  font-size: clamp(2.5rem, 4.2vw, 5.2rem);
  line-height: 1;
}

.chapter-copy > p:not(.story-kicker) {
  max-width: 36rem;
  color: var(--muted-strong);
  font-size: 1rem;
  line-height: 1.85;
}

.story-shot {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--story-line);
  background: #fff;
  box-shadow: 0 28px 80px rgba(17, 42, 54, .09);
}

.story-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
}

.story-shot-clean img { object-position: top left; }

.story-shot figcaption {
  padding: .9rem 1rem;
  color: #667079;
  font-size: .76rem;
  line-height: 1.5;
  border-top: 1px solid var(--story-line);
}

.story-shot figcaption span { margin-right: .8rem; color: var(--accent-dark); }

.chapter-products {
  margin-top: 2.4rem;
  border-top: 1px solid var(--story-line);
}

.chapter-products a {
  display: grid;
  grid-template-columns: 2rem minmax(5rem, .65fr) 1fr;
  gap: .75rem;
  align-items: baseline;
  padding: 1rem 0;
  color: inherit;
  border-bottom: 1px solid var(--story-line);
  text-decoration: none;
}

.chapter-products span { color: var(--accent-dark); }
.chapter-products strong { font-size: .94rem; }
.chapter-products small { color: #6c757b; font-size: .78rem; }
.chapter-products a:hover strong { color: var(--accent-dark); }

.story-chapter-dark {
  color: #f4f7f8;
  background: var(--story-ink);
  border-top: 0;
}

.story-chapter-dark .story-kicker { color: #7fc2dd; }
.story-chapter-dark h2 { color: #f4f7f8; }
.story-chapter-dark .chapter-copy > p:not(.story-kicker) { color: #becbd0; }
.story-chapter-dark .story-shot { border-color: #364754; box-shadow: 0 30px 85px rgba(0,0,0,.24); }

.chapter-feature {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: .75rem;
  align-items: center;
  margin-top: 2.5rem;
  padding: 1.2rem 0;
  border-block: 1px solid #485863;
}

.chapter-feature > span { color: #7fc2dd; }
.chapter-feature strong { display: block; margin-bottom: .3rem; }
.chapter-feature p { color: #9fb0b8; font-size: .78rem; }
.chapter-feature a { color: #fff; font-size: .8rem; text-decoration: none; }
.chapter-feature a::after { content: " ↗"; }

.product-index {
  padding: clamp(5rem, 10vw, 10rem) 0;
  background: var(--story-paper);
  border-top: 1px solid var(--story-line);
}

.index-head {
  display: grid;
  grid-template-columns: .45fr 1.55fr;
  gap: clamp(2rem, 6vw, 7rem);
  margin-bottom: clamp(3rem, 6vw, 6rem);
}

.index-head h2 {
  margin-top: -.15em;
  font-size: clamp(2.7rem, 5vw, 6.2rem);
  line-height: .98;
}

.product-table { border-top: 1px solid #aeb2af; }

.product-table > a {
  display: grid;
  grid-template-columns: 3.2rem minmax(8rem, .7fr) minmax(14rem, 1.4fr) minmax(12rem, 1fr) 4.5rem;
  gap: 1.5rem;
  align-items: center;
  min-height: 84px;
  color: inherit;
  border-bottom: 1px solid #bfc1bd;
  text-decoration: none;
  transition: padding .2s ease, background .2s ease;
}

.product-table > a:hover { padding-inline: .8rem; background: rgba(255,255,255,.65); }
.product-table > a > span { color: var(--accent-dark); }
.product-table strong { font-size: 1.05rem; }
.product-table p { font-size: .92rem; }
.product-table small { color: #6d7475; font-size: .8rem; }
.product-table b { color: var(--accent-dark); font-size: .72rem; text-align: right; }

.story-final {
  padding: clamp(5rem, 9vw, 9rem) 0;
  color: #f5f7f8;
  background: #0e1c27;
}

.final-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  align-items: end;
  gap: 3rem;
}

.story-final .story-kicker { color: #7fc2dd; }

.story-final h2 {
  margin-top: 1rem;
  font-size: clamp(3rem, 5.5vw, 6.7rem);
  line-height: .98;
  color: #f5f7f8;
}

.story-final .final-grid > div:last-child { justify-content: flex-end; }
.story-final .story-button { color: var(--story-ink); background: #fff; }
.story-final .story-button:hover { background: var(--story-blue-light); }
.story-final .story-text-link { color: #d9e1e4; }

@media (max-width: 1100px) {
  .story-hero-grid,
  .chapter-grid { gap: 3.5rem; }
  .story-hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-table > a { grid-template-columns: 2.5rem minmax(7rem,.6fr) minmax(12rem,1.3fr) 1fr 4rem; gap: 1rem; }
}

@media (max-width: 820px) {
  .story-hero { background: linear-gradient(180deg, #fff 0 48%, #f5f8f8 48% 100%); }
  .story-hero-grid,
  .thesis-grid,
  .chapter-grid,
  .index-head,
  .final-grid { grid-template-columns: 1fr; }
  .story-hero-grid { gap: 3.5rem; }
  .thesis-grid { gap: 1.5rem; }
  .thesis-grid > p:last-child { max-width: 42rem; }
  .chapter-copy { width: 100%; }
  .chapter-grid-reverse .chapter-copy,
  .chapter-grid-reverse .story-shot { order: initial; }
  .story-shot { width: 100%; }
  .index-head { gap: 1.5rem; }
  .product-table > a { grid-template-columns: 2.5rem minmax(7rem, .7fr) 1.5fr 4rem; padding-block: 1rem; }
  .product-table small { display: none; }
  .story-final .final-grid > div:last-child { justify-content: flex-start; margin-top: 0; }
}

@media (max-width: 640px) {
  .map-story .site-nav:not(:has(.nav-toggle:checked)) .nav-links { pointer-events: none; }
  .story-shell { padding-inline: 1.25rem; }
  .story-hero { padding: 3.5rem 0 4.5rem; }
  .story-hero-copy h1 { font-size: clamp(3.15rem, 16vw, 5rem); }
  .story-graph { margin-inline: -.45rem; padding: .7rem .7rem .6rem; }
  .graph-meta { font-size: .57rem; }
  .graph-labels { font-size: 17px; }
  .story-thesis,
  .story-chapter,
  .product-index,
  .story-final { padding-block: 4.5rem; }
  .thesis-grid h2,
  .chapter-copy h2 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .chapter-grid { gap: 2.7rem; }
  .chapter-products a { grid-template-columns: 1.8rem 6.2rem 1fr; gap: .45rem; }
  .chapter-feature { grid-template-columns: 1.7rem 1fr; }
  .chapter-feature a { grid-column: 2; }
  .story-shot { margin-inline: -.45rem; width: calc(100% + .9rem); }
  .story-shot figcaption { min-height: 62px; }
  .index-head h2 { font-size: clamp(2.8rem, 13vw, 4.4rem); }
  .product-table > a { grid-template-columns: 2rem 1fr auto; gap: .6rem; min-height: 74px; }
  .product-table p,
  .product-table small { display: none; }
  .product-table b { white-space: nowrap; }
  .story-final h2 { font-size: clamp(3rem, 14vw, 5rem); }
}

@media (prefers-reduced-motion: reduce) {
  .story-button,
  .product-table > a { transition: none; }
}
