/* 街の展示場の道、遠景、各章の基本配置。 */
body:has(.ex-world) {
  background: var(--sb-world-ground);
}
body:has(.ex-world) #main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.ex-world {
  /* 共通の用途色と書体を、各章のスタイルへ渡す。 */
  --ex-ground: var(--sb-world-ground);
  --ex-paper: var(--sb-world-paper);
  --ex-ink: var(--sb-world-ink);
  --ex-teal: var(--sb-world-accent);
  --ex-muted: var(--sb-world-muted);
  --ex-wood: var(--sb-world-wood);
  --ex-wood-edge: var(--sb-world-wood-edge);
  --ex-rule: var(--sb-world-rule);
  --ex-serif: var(--sb-world-font-heading);
  --ex-heading-gap: clamp(22px, 3vw, 44px);
  --ex-section-gap: clamp(80px, 9vw, 150px);
  --ex-gutter: 5%;
  --cw-ink: var(--ex-ink);
  --cw-serif: var(--ex-serif);
  --cw-teal: var(--ex-teal);
  --sb-control-shadow: #dfc58a;
  --sb-button-radius: 50px;
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--ex-ground);
  color: var(--ex-ink);
  font-family: var(--sb-world-font-body);
  line-height: 1.85;
}
.ex-world :where(h1, h2, h3, h4, p, figure) {
  margin-top: 0;
}
.ex-world h1,
.ex-world h2 {
  font-family: var(--ex-serif);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.45;
}
.ex-world h1 span,
.ex-world h2 span {
  color: var(--ex-teal);
}
.ex-world a {
  color: inherit;
}
.ex-world a:focus-visible,
.ex-world button:focus-visible {
  outline: var(--sb-control-focus-width) solid var(--sb-control-focus);
  outline-offset: var(--sb-control-focus-offset);
}
.ex-far {
  position: sticky;
  z-index: 0;
  top: 0;
  height: 100svh;
  margin-bottom: -100svh;
  pointer-events: none;
}
.ex-far img {
  position: absolute;
  bottom: 4vh;
  left: 0;
  width: 100%;
  max-width: none;
  opacity: .32;
}
.ex-ground {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.ex-section {
  position: relative;
  z-index: 1;
  padding-block: var(--ex-section-gap);
  scroll-margin-top: 105px;
}
.ex-heading {
  width: min(1080px, 90%);
  margin: 0 auto var(--ex-heading-gap);
  text-align: center;
}
.ex-heading h2,
.ex-next h2 {
  margin-bottom: 0;
  font-size: clamp(38px, 4.5vw, 65px);
}
.ex-eyebrow {
  margin-bottom: 15px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
}
.ex-lead {
  margin: 20px 0 0;
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.9;
}
.ex-note {
  margin: 16px auto 0;
  padding-inline: 15px;
  color: var(--ex-muted);
  font-size: 12px;
  line-height: 1.8;
}
.ex-center {
  text-align: center;
}
.ex-world .ex-action {
  --sb-button-padding: 15px 28px;
  --sb-button-weight: 700;
  gap: 20px;
  color: var(--sb-control-primary-ink);
}
.ex-action svg,
.ex-text-link svg,
.ex-guide svg,
.ex-next-signs svg {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ex-text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-top: 20px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}
.ex-link-tail {
  white-space: nowrap;
}
.ex-intro {
  display: grid;
  grid-template-columns: 46% 54%;
  align-items: center;
  width: min(1240px, 90%);
  margin-inline: auto;
  padding-top: 36px;
  padding-bottom: 50px;
}
.ex-intro h1 {
  margin-bottom: 0;
  font-size: clamp(46px, 5.1vw, 76px);
  line-height: 1.5;
}
.ex-intro-lead {
  margin: 24px 0 0;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 2;
}
.ex-intro-stage {
  position: relative;
  width: 100%;
  height: clamp(510px, 44vw, 650px);
  margin: 0;
}
.ex-intro-orbit {
  position: absolute;
  inset: 6% 0 3% -4%;
  border-radius: 49% 51% 43% 57%;
  background: rgb(241 204 98 / 25%);
  transform: rotate(-12deg);
}
.ex-intro-picture {
  position: absolute;
  top: 14%;
  right: -1%;
  width: 79%;
  transform: rotate(5deg);
}
.ex-intro-flag {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: -4%;
  width: 47%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(8px 12px 8px rgb(58 59 44 / 13%));
}
.ex-intro-tag {
  position: absolute;
  right: 0;
  bottom: 13%;
  padding: 8px 22px;
  border: 1px solid var(--ex-wood-edge);
  border-radius: 3px 18px 18px 3px;
  background: var(--ex-paper);
  box-shadow: 0 3px 0 #d5bb8a;
  font-size: 14px;
  font-weight: 700;
  transform: rotate(-3deg);
}
.ex-guide {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 25px;
}
.ex-guide > span {
  color: var(--ex-muted);
  font-size: 12px;
}
.ex-guide a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 8px 18px;
  border: 1px solid rgb(137 128 86 / 20%);
  border-radius: 4px 22px 22px 4px;
  background: #f5e3b4;
  box-shadow: 0 3px 0 rgb(143 123 74 / 16%);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.ex-guide a:nth-of-type(2n) {
  background: #cde0ca;
}
.ex-guide a:hover {
  background: var(--ex-paper);
}
.ex-shape {
  padding-top: 90px;
}
.ex-shape-board {
  position: relative;
  width: min(1000px, 92%);
  height: 650px;
  margin-inline: auto;
}
.ex-shape-board::before {
  position: absolute;
  top: 6%;
  left: 8%;
  width: 59%;
  height: 89%;
  border-radius: 50% 44% 55% 45%;
  background: rgb(246 212 119 / 28%);
  content: "";
  transform: rotate(-10deg);
}
.ex-shape-whole {
  position: absolute;
  bottom: 0;
  left: 18%;
  width: 28%;
  height: 100%;
  overflow: visible;
}
.ex-shape-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #91a499;
  stroke-width: 1.5;
}
.ex-detail {
  position: absolute;
  right: 0;
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
  gap: 24px;
  width: 46%;
  margin: 0;
}
.ex-detail--curve {
  top: 45px;
}
.ex-detail--hem {
  top: 355px;
}
.ex-detail-image {
  position: relative;
  overflow: hidden;
  border: 1px solid #b8b38c;
  border-radius: 50%;
  background: var(--ex-paper);
}
.ex-detail-image svg {
  display: block;
  width: 100%;
  height: auto;
}
.ex-number {
  display: inline-grid;
  width: 28px;
  height: 28px;
  margin-bottom: 5px;
  border-radius: 50%;
  background: var(--ex-teal);
  color: var(--ex-paper);
  place-items: center;
  font-family: system-ui, sans-serif;
  font-size: 11px;
}
.ex-detail h3 {
  margin: 0 0 6px;
  font-size: 20px;
}
.ex-detail p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
}
.ex-scenes-grid {
  display: grid;
  grid-template-columns: 1.9fr 1fr 1fr;
  align-items: end;
  gap: clamp(20px, 3vw, 45px);
  width: min(1340px, 94%);
  margin: 55px auto 0;
}
.ex-scene {
  min-width: 0;
  margin: 0;
}
.ex-scene--shop {
  margin-bottom: 95px;
}
.ex-photo {
  text-decoration: none;
}
.ex-photo::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(70 69 44 / 20%);
  content: "";
  pointer-events: none;
}
.ex-photo img {
  transition: filter var(--sb-control-motion) ease;
}
.ex-photo:hover img {
  filter: brightness(1.04);
}
.ex-photo-hint {
  position: absolute;
  z-index: 1;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 3px 10px;
  border-radius: 25px;
  background: rgb(255 251 236 / 94%);
  font-size: 11px;
  font-weight: 700;
}
.ex-photo-hint span {
  font-size: 19px;
}
.ex-scene figcaption {
  padding: 24px 8px 0;
}
.ex-scene .ex-eyebrow {
  margin-bottom: 8px;
  color: var(--ex-teal);
  font-size: 11px;
}
.ex-scene h3 {
  margin-bottom: 8px;
  font-family: var(--ex-serif);
  font-size: clamp(19px, 2.2vw, 30px);
  line-height: 1.5;
}
.ex-scene figcaption > p:last-child {
  margin-bottom: 0;
  font-size: 13px;
}
.ex-scene-route {
  margin-top: 48px;
}
.ex-world .ex-size-figure {
  width: min(1180px, 94%);
  margin-top: 30px;
}
.ex-world .cw-product-measure__scene {
  border-radius: 65px 65px 18px 18px;
  mask-image: none;
}
.ex-size-flag {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.ex-size-route {
  margin-top: 30px;
}
.ex-build {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 36px;
  width: min(1100px, 90%);
  margin: 95px auto 0;
  padding-top: 44px;
  border-top: 1px solid var(--ex-rule);
}
.ex-build h3 {
  margin-bottom: 0;
  font-family: var(--ex-serif);
  font-size: 31px;
  line-height: 1.5;
}
.ex-build article > svg {
  display: block;
  width: 120px;
  height: 105px;
  margin-bottom: 18px;
}
.ex-build h4 {
  margin-bottom: 10px;
  font-size: 18px;
}
.ex-build p {
  margin-bottom: 0;
  font-size: 14px;
}
.ex-expression-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 35px;
  width: min(950px, 90%);
  margin: 70px auto 0;
}
.ex-expression {
  min-width: 0;
  margin: 0;
  text-align: center;
}
.ex-expression:nth-child(2) {
  transform: translateY(-27px);
}
.ex-expression > svg {
  display: block;
  width: 100%;
  height: 490px;
  overflow: visible;
  transform-origin: 50% 100%;
}
.ex-expression h3 {
  margin: 15px 0 6px;
  font-size: 21px;
}
.ex-expression p {
  margin-bottom: 0;
  font-size: 13px;
}
.ex-design-routes {
  display: grid;
  grid-template-columns: 42% 58%;
  align-items: center;
  gap: 20px;
  width: min(1100px, 90%);
  margin: 80px auto 0;
  padding: 44px;
  border: 1px solid rgb(185 148 83 / 35%);
  border-radius: 75px 75px 12px 12px;
  background: rgb(255 251 236 / 82%);
}
.ex-gallery-copy h3 {
  margin-bottom: 16px;
  font-family: var(--ex-serif);
  font-size: clamp(29px, 3.2vw, 44px);
  line-height: 1.5;
}
.ex-gallery-copy > p:not(.ex-eyebrow) {
  font-size: 14px;
}
.ex-gallery-copy .ex-action {
  margin-top: 10px;
}
.ex-sample-shelf {
  display: flex;
  align-items: end;
  gap: 7px;
  min-width: 0;
  padding: 18px 10px 28px;
  border-bottom: 7px solid #c9a570;
  border-radius: 0 0 8px 8px;
}
.ex-sample-shelf a {
  display: block;
  width: 20%;
  transition: translate var(--sb-control-motion) ease;
}
.ex-sample-shelf a:nth-child(2n) {
  translate: 0 -16px;
}
.ex-sample-shelf a:hover {
  translate: 0 -8px;
}
.ex-sample-shelf img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: contain;
  mask: var(--ex-sample-mask) center / contain no-repeat;
}
.ex-data-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1030px, 86%);
  margin: 35px auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--ex-rule);
}
.ex-data-route h3 {
  margin-bottom: 5px;
  font-size: 17px;
}
.ex-data-route p {
  margin-bottom: 0;
  font-size: 13px;
}
.ex-data-route .ex-text-link {
  flex-shrink: 0;
  margin-top: 0;
}
.ex-next {
  display: grid;
  grid-template-columns: 30% 65%;
  align-items: center;
  gap: 5%;
  width: min(1100px, 90%);
  margin: 0 auto 40px;
}
.ex-next-guide {
  position: relative;
  text-align: center;
}
.ex-next-guide img {
  display: block;
  width: 100%;
  height: 430px;
  object-fit: contain;
}
.ex-next-guide p {
  position: relative;
  width: fit-content;
  margin: 0 auto 10px;
  padding: 12px 22px;
  border: 1px solid #b1a17d;
  border-radius: 45% 42% 35% 35%;
  background: var(--ex-paper);
  font-size: 14px;
  font-weight: 700;
}
.ex-next-body > .ex-action {
  margin-top: 26px;
}
.ex-next-signs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}
.ex-next-signs a {
  position: relative;
  padding: 16px 20px 16px 14px;
  border-radius: 4px 20px 20px 4px;
  background: #e2d8ac;
  box-shadow: 0 3px 0 #baac81;
  text-decoration: none;
}
.ex-next-signs a:nth-child(2) {
  background: #cfe0cd;
  box-shadow: 0 3px 0 #9caf99;
}
.ex-next-signs a:nth-child(3) {
  background: #eec9b3;
  box-shadow: 0 3px 0 #c9a28e;
}
.ex-next-signs small,
.ex-next-signs strong {
  display: block;
}
.ex-next-signs small {
  margin-bottom: 5px;
  font-size: 10px;
}
.ex-next-signs strong {
  font-size: 15px;
}
.ex-next-signs svg {
  width: 18px;
  height: 18px;
  margin-top: 12px;
}
.ex-next-signs a:hover strong {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.ex-world .cw-plaza h2 {
  margin-bottom: 0;
  color: var(--ex-ink);
}
.ex-world .cw-plaza a {
  text-underline-offset: 6px;
}
.ex-photo-dialog {
  width: min(1200px, 94vw);
  max-height: 94svh;
  padding: 22px;
  border: 1px solid var(--ex-wood-edge);
  border-radius: 20px;
  background: var(--ex-paper);
  color: var(--ex-ink);
}
.ex-photo-dialog::backdrop {
  background: rgb(14 36 42 / 78%);
}
.ex-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}
.ex-dialog-head h2 {
  margin-bottom: 0;
  font-family: var(--sb-world-font-body);
  font-size: 18px;
}
.ex-photo-dialog > img {
  display: block;
  width: 100%;
  max-height: 77svh;
  object-fit: contain;
}
@media (max-width: 900px) {
  .ex-guide {
    flex-wrap: wrap;
  }
  .ex-guide > span {
    flex-basis: 100%;
    text-align: center;
  }
  .ex-detail {
    grid-template-columns: 130px 1fr;
    gap: 15px;
  }
  .ex-detail h3 {
    font-size: 17px;
  }
  .ex-scenes-grid {
    gap: 20px;
  }
  .ex-scene--shop {
    margin-bottom: 40px;
  }
  .ex-next {
    grid-template-columns: 25% 70%;
  }
}
@media (max-width: 640px) {
  .ex-world {
    --ex-section-gap: 72px;
    --ex-heading-gap: 25px;
  }
  .ex-far img {
    left: -50%;
    width: 200%;
    opacity: .25;
  }
  .ex-section {
    scroll-margin-top: 90px;
  }
  .ex-heading {
    width: 92%;
  }
  .ex-heading h2,
  .ex-next h2 {
    font-size: clamp(29px, 8.7vw, 39px);
    line-height: 1.5;
  }
  .ex-eyebrow {
    margin-bottom: 12px;
    font-size: 11px;
    letter-spacing: .08em;
  }
  .ex-lead {
    margin-top: 14px;
    font-size: 14px;
  }
  .ex-intro {
    display: block;
    width: 90%;
    padding-top: 24px;
    padding-bottom: 22px;
  }
  .ex-intro-copy {
    text-align: center;
  }
  .ex-intro h1 {
    font-size: clamp(33px, 9.6vw, 43px);
    line-height: 1.55;
  }
  .ex-intro-lead {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.85;
  }
  .ex-intro-copy .ex-text-link {
    display: none;
  }
  .ex-intro-stage {
    width: min(100%, 390px);
    height: 350px;
    margin: 18px auto 0;
  }
  .ex-intro-picture {
    top: 12%;
    right: -2%;
    width: 78%;
    border-width: 6px;
  }
  .ex-intro-flag {
    left: 1%;
    width: 44%;
  }
  .ex-intro-tag {
    right: 0;
    bottom: 10%;
    padding: 6px 12px;
    font-size: 11px;
  }
  .ex-guide {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 28px;
  }
  .ex-guide > span {
    grid-column: 1 / -1;
    margin-bottom: 4px;
  }
  .ex-guide a {
    padding: 8px 12px;
    font-size: 12px;
  }
  .ex-shape-board {
    width: 94%;
    height: 430px;
  }
  .ex-shape-board::before {
    inset: 5% 19% 1% 1%;
    width: auto;
    height: auto;
  }
  .ex-shape-whole {
    left: 2%;
    width: 45%;
    height: 100%;
  }
  .ex-shape-lines {
    display: none;
  }
  .ex-detail {
    right: 0;
    display: block;
    width: 48%;
  }
  .ex-detail--curve {
    top: 0;
  }
  .ex-detail--hem {
    top: 235px;
  }
  .ex-detail-image {
    width: 105px;
    margin: 0 auto 8px;
  }
  .ex-detail figcaption {
    text-align: center;
  }
  .ex-number {
    width: 21px;
    height: 21px;
    margin: 0 auto 4px;
    font-size: 9px;
  }
  .ex-detail h3 {
    display: block;
    font-size: clamp(12px, 3.6vw, 14px);
    white-space: nowrap;
  }
  .ex-detail p {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.65;
  }
  .ex-world .ex-action {
    --sb-button-padding: 13px 20px;
    gap: 12px;
    font-size: 14px;
  }
  .ex-scenes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 30px 18px;
    width: 90%;
    margin-top: 30px;
  }
  .ex-scene--outdoor {
    grid-column: 1 / -1;
  }
  .ex-scene--shop {
    margin-top: 45px;
    margin-bottom: 0;
  }
  .ex-scene figcaption {
    padding: 16px 0 0;
  }
  .ex-scene h3 {
    font-size: 18px;
  }
  .ex-scene--outdoor h3 {
    font-size: 25px;
  }
  .ex-scene figcaption > p:last-child {
    font-size: 12px;
  }
  .ex-photo-hint {
    right: 4px;
    bottom: 5px;
    gap: 4px;
    padding: 1px 6px;
    font-size: 10px;
  }
  .ex-photo-hint span {
    font-size: 16px;
  }
  .ex-scene-route {
    margin-top: 30px;
  }
  .ex-world .cw-product-measure__scene {
    border-radius: 28px 28px 8px 8px;
  }
  .ex-world .cw-product-measure__person {
    font-size: 10px;
  }
  .ex-build {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 55px;
    padding-top: 28px;
  }
  .ex-build > header {
    text-align: center;
  }
  .ex-build h3 {
    font-size: 28px;
  }
  .ex-build article {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
  }
  .ex-build article > svg {
    width: 82px;
    height: 82px;
    margin: 0;
  }
  .ex-build h4 {
    margin-bottom: 6px;
    font-size: 16px;
  }
  .ex-build p {
    font-size: 13px;
  }
  .ex-expression-row {
    gap: 2px;
    width: 98%;
    margin-top: 45px;
  }
  .ex-expression > svg {
    height: 275px;
  }
  .ex-expression:nth-child(2) {
    transform: translateY(-14px);
  }
  .ex-expression h3 {
    margin-top: 10px;
    font-size: 15px;
  }
  .ex-expression p {
    padding-inline: 4px;
    font-size: 11px;
  }
  .ex-design-routes {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 45px;
    padding: 30px 20px;
    border-radius: 45px 45px 10px 10px;
  }
  .ex-gallery-copy {
    text-align: center;
  }
  .ex-gallery-copy h3 {
    font-size: 32px;
  }
  .ex-sample-shelf {
    gap: 5px;
    padding: 0 0 15px;
    border-width: 5px;
  }
  .ex-sample-shelf img {
    height: 160px;
  }
  .ex-data-route {
    display: block;
    width: 88%;
    margin-top: 25px;
    padding-top: 22px;
  }
  .ex-data-route h3 {
    font-size: 15px;
  }
  .ex-data-route .ex-text-link {
    margin-top: 12px;
    font-size: 14px;
  }
  .ex-next {
    display: flex;
    flex-direction: column-reverse;
    gap: 30px;
    width: 90%;
    margin-bottom: 0;
    text-align: center;
  }
  .ex-next-guide {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 0;
  }
  .ex-next-guide img {
    width: 130px;
    height: 195px;
  }
  .ex-next-guide p {
    padding: 12px 18px;
    font-size: 12px;
  }
  .ex-next-signs {
    gap: 8px;
    margin-top: 27px;
    text-align: left;
  }
  .ex-next-signs a {
    padding: 12px 9px;
  }
  .ex-next-signs small {
    font-size: 9px;
  }
  .ex-next-signs strong {
    font-size: 12px;
  }
  .ex-dialog-head h2 {
    font-size: 14px;
  }
  .ex-photo-dialog {
    padding: 12px;
    border-radius: 12px;
  }
  .ex-dialog-head .sb-button {
    min-height: 44px;
    padding: 6px 10px;
    font-size: 12px;
  }
}
