/* 商品紹介V4。写真の中の尺度と、街の案内板。 */
.cw-product-intro .cw-eyebrow {
  margin-bottom: 10px;
}
.cw-product .cw-product-intro h2 {
  font-size: clamp(34px, 4.5vw, 62px);
  line-height: 1.25;
}
.cw-product-measure {
  width: min(1180px, 94%);
  margin: 24px auto 0;
}
@media (min-width: 761px) {
  /* 人の足元からGタイプの札までを、見出しと一緒に一画面へ収める。図の縦横比は約3:2。 */
  .cw-product-measure {
    width: min(1180px, 94%, max(760px, calc((100svh - 205px) * 1.5)));
  }
}
.cw-product-measure__view {
  position: relative;
}
.cw-product-measure__scene {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 110px 110px 14px 14px;
  mask-image: linear-gradient(transparent, #000 4%, #000 98%, transparent);
}
.cw-product-measure__ruler {
  fill: none;
  stroke: #fff9e8;
  stroke-width: 1.75;
  stroke-linecap: round;
  filter: drop-shadow(0 1px 1px #143848);
}
.cw-product-measure__ruler--person {
  stroke: #eaf3ce;
}
.cw-product-measure__person {
  position: absolute;
  top: calc(var(--scene-ground) + clamp(4px, .7vw, 9px));
  left: max(8px, calc(var(--person-x) - clamp(10px, 1.6vw, 22px)));
  padding: 2px clamp(5px, .7vw, 10px);
  border-radius: 4px;
  background: #eff3d4;
  color: #294940;
  font-size: clamp(10px, 1vw, 13px);
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  box-shadow: 0 2px 7px rgb(14 43 57 / 22%);
}
.cw-product-measure__person strong {
  font-size: 1.25em;
  font-variant-numeric: tabular-nums;
}
.cw-product-measure__label {
  position: absolute;
  top: max(8px, calc(var(--ruler-y) - clamp(34px, 6vw, 76px)));
  left: var(--ruler-x);
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: clamp(4px, .7vw, 9px) clamp(7px, 1.05vw, 14px);
  border-radius: 5px;
  background: #fff8e6;
  color: #163c4a;
  font-size: clamp(9px, 1.05vw, 14px);
  font-weight: 700;
  line-height: 1.1;
  box-shadow: 0 2px 7px rgb(14 43 57 / 25%);
  transform: translateX(calc(-100% - 5px));
}
.cw-product-measure__label strong {
  font-family: system-ui, sans-serif;
  font-size: clamp(17px, 3.2vw, 40px);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.cw-product-measure__label strong span {
  margin-inline-start: .1em;
  font-size: .62em;
}
.cw-product-measure .cw-caption {
  width: min(92%, 620px);
  margin: 10px auto 0;
  text-align: center;
}
.cw-product-measure .cw-caption span {
  display: inline-block;
}
.cw-product-guide {
  --guide-edge: #b69c66;
  --guide-ink: #234945;
  width: min(92%, 830px);
  margin: clamp(20px, 3.2vw, 44px) auto 0;
  padding: clamp(15px, 3vw, 35px);
  border: 1px solid var(--guide-edge);
  border-radius: 30px 30px 16px 16px;
  color: var(--guide-ink);
  background: linear-gradient(142deg, #fff8df 12%, #fcf0cf 100%);
  box-shadow: 0 4px 0 #c8ae73, 0 14px 36px rgb(104 84 40 / 13%);
}
.cw-product-guide__body {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 3vw, 38px);
}
.cw-product-guide__lead {
  margin: 0;
  font-family: var(--cw-serif, serif);
  font-size: clamp(22px, 3.2vw, 39px);
  font-weight: 700;
  line-height: 1.32;
}
.cw-product-guide__detail {
  margin: 8px 0 0;
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 600;
  line-height: 1.5;
}
.cw-product-guide__town {
  display: block;
  width: min(100%, 390px);
  height: auto;
  justify-self: end;
}
.cw-product-guide__routes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin-top: clamp(14px, 2.6vw, 28px);
  padding-top: clamp(12px, 2vw, 20px);
  border-top: 1px dashed var(--guide-edge);
}
.cw-product-guide__route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 48px;
  padding: 8px clamp(10px, 2vw, 22px);
  border-radius: 5px 15px 15px 5px;
  box-shadow: 0 3px 0 rgb(86 64 24 / 21%);
  font-size: clamp(13px, 1.55vw, 18px);
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
}
.cw-product-guide__route span {
  display: inline-grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid currentcolor;
  border-radius: 50%;
  font-size: 13px;
}
.cw-product-guide .cw-product-guide__route--features {
  color: #fff8e3;
  background: #245b55;
}
.cw-product-guide .cw-product-guide__route--sizes {
  color: #4d3b24;
  background: #f0d285;
}
.cw-product-guide__route:hover,
.cw-product-guide__route:focus-visible {
  text-decoration: underline;
  text-underline-offset: .2em;
}
.cw-product-guide__route:focus-visible {
  outline: 2px solid var(--guide-ink);
  outline-offset: 4px;
}
@media (width <= 760px) {
  .cw-product:has(.cw-product-intro) {
    padding-top: 55px;
  }
  .cw-product .cw-product-intro h2 {
    font-size: clamp(27px, 7.6vw, 42px);
  }
  .cw-product-intro h2 span {
    display: block;
  }
  .cw-product-measure {
    width: 100%;
    margin-top: 16px;
  }
  .cw-product-measure__scene {
    border-radius: 35px 35px 9px 9px;
  }
  .cw-product-measure__ruler {
    stroke-width: 1.3;
  }
}
@media (width <= 570px) {
  .cw-product-guide__body {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    text-align: center;
  }
  .cw-product-guide__town {
    width: min(100%, 320px);
    justify-self: center;
  }
  .cw-product-guide__routes {
    margin-top: 3px;
  }
}
@media (width <= 380px) {
  .cw-product-guide__routes {
    grid-template-columns: minmax(0, 1fr);
  }
}
