/* 同じ一本の旗を囲み、拡大窓へつなぐ。配色と動きの時間は共通層を使う。 */
.ex-shape--ranges .ex-heading {
  margin-bottom: 48px;
}

.shape-exhibit {
  --shape-figure-height: 740px;

  position: relative;
  width: min(1040px, 94%);
  height: calc(var(--shape-figure-height) + 60px);
  margin-inline: auto;
  isolation: isolate;
}

.shape-exhibit::before {
  position: absolute;
  z-index: -1;
  inset: 5% 28% 3% 5%;
  border-radius: 47% 53% 44% 56% / 42% 48% 52% 58%;
  background: color-mix(in srgb, var(--sb-world-gold) 25%, transparent);
  content: "";
  rotate: -9deg;
}

.shape-exhibit__product {
  position: absolute;
  top: 20px;
  left: 18%;
  z-index: 1;
  width: calc(var(--shape-figure-height) * .33203125);
  height: var(--shape-figure-height);
  overflow: visible;
}

.shape-exhibit__range,
.shape-exhibit__range-cue,
.shape-exhibit__zoom-contour {
  fill: none;
  stroke: var(--sb-world-accent);
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.shape-exhibit__range {
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
  opacity: .65;
}

.shape-exhibit__range-cue {
  stroke-width: 2;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  opacity: 0;
}

.shape-exhibit__anchor {
  opacity: 0;
}

.shape-exhibit__origin circle {
  fill: var(--sb-world-accent);
  stroke: var(--sb-world-paper);
  stroke-width: 6;
}

.shape-exhibit__origin text {
  fill: var(--sb-world-paper);
  font-family: var(--sb-world-font-body);
  font-size: 34px;
  font-weight: 700;
}

.shape-exhibit__origin .shape-exhibit__halo {
  fill: none;
  stroke: var(--sb-world-accent);
  stroke-width: 3;
  opacity: 0;
}

.shape-exhibit__leaders {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  fill: none;
  stroke: var(--sb-world-accent);
  stroke-linecap: round;
  stroke-width: 1.5;
}

.shape-exhibit__leaders > path {
  opacity: .55;
}

.shape-exhibit__leaders > .shape-exhibit__travel {
  stroke-width: 3;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  opacity: 0;
}

.shape-exhibit__detail {
  position: absolute;
  right: 0;
  width: 44%;
  margin: 0;
  text-align: center;
}

.shape-exhibit__detail--curve {
  top: 20px;
}

.shape-exhibit__detail--hem {
  top: calc(20px + var(--shape-figure-height) * .55);
}

.shape-exhibit__window {
  position: relative;
  width: min(392px, 100%);
  margin-inline: auto;
  border: 2px solid var(--sb-world-wood-edge);
  border-radius: 49% 51% 47% 53% / 51% 47% 53% 49%;
  outline: 2px solid transparent;
  outline-offset: 6px;
  background: var(--sb-world-paper);
  box-shadow: 0 0 0 5px var(--sb-world-paper), 3px 7px 0 var(--sb-world-rule);
}

.shape-exhibit__window > svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: inherit;
}

.shape-exhibit__zoom-contour {
  stroke-width: 2;
  opacity: .7;
}

.shape-exhibit__window-number {
  position: absolute;
  top: 4px;
  right: 8px;
  display: grid;
  width: 36px;
  height: 36px;
  border: 3px solid var(--sb-world-paper);
  border-radius: 50%;
  background: var(--sb-world-accent);
  color: var(--sb-world-paper);
  place-items: center;
  font-family: var(--sb-world-font-body);
  font-size: 14px;
  font-weight: 700;
}

.shape-exhibit__detail figcaption {
  margin-top: 18px;
}

.shape-exhibit__detail h3 {
  margin: 0 0 6px;
  color: var(--sb-world-ink);
  font-size: 21px;
  line-height: 1.6;
}

.shape-exhibit__detail h3 > span {
  display: inline-block;
}

.shape-exhibit__detail p {
  margin: 0;
  color: var(--sb-world-muted);
  font-size: 15px;
  line-height: 1.8;
}

.shape-exhibit-note {
  margin-top: 22px;
}

.shape-exhibit-note__break {
  display: none;
}

@media (min-width: 641px) and (max-width: 1000px) {
  .shape-exhibit {
    --shape-figure-height: 650px;
  }

  .shape-exhibit__product {
    left: 10%;
  }

  .shape-exhibit__detail h3 {
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  .ex-shape--ranges .ex-heading {
    margin-bottom: 30px;
  }

  .shape-exhibit {
    --shape-figure-height: clamp(490px, 145vw, 560px);

    width: calc(100% - 12px);
    height: calc(var(--shape-figure-height) + 60px);
  }

  .shape-exhibit::before {
    inset: 3% 10% 5% 0;
  }

  .shape-exhibit__product {
    left: -18px;
  }

  .shape-exhibit__detail {
    width: 50%;
  }

  .shape-exhibit__detail--curve {
    top: 34px;
  }

  .shape-exhibit__detail--hem {
    top: calc(20px + var(--shape-figure-height) * .6);
  }

  .shape-exhibit__window {
    width: min(190px, 100%);
  }

  .shape-exhibit__window-number {
    top: -5px;
    right: -2px;
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .shape-exhibit__detail figcaption {
    margin-top: 14px;
  }

  .shape-exhibit__detail h3 {
    font-size: 15px;
  }

  .shape-exhibit__detail p {
    font-size: 14px;
    line-height: 1.7;
  }

  .shape-exhibit-note {
    padding-inline: 18px;
    line-height: 1.8;
  }

  .shape-exhibit-note__break {
    display: inline;
  }
}

@media (max-width: 360px) {
  .shape-exhibit {
    --shape-figure-height: 450px;
  }

  .shape-exhibit__product {
    left: -16px;
  }

  .shape-exhibit__origin text {
    font-size: 42px;
  }

  .shape-exhibit__detail h3 {
    font-size: 14px;
  }
}
