/* 開発秘話の5つの吹き出し。
   画像は元の大きさのまま置き、表示枠でトリミングする。 */
.voice__img--01 {
  right: calc(15 * var(--s));
  top: calc(-23.78 * var(--s));
  height: calc(140 * var(--s));
}

.voice__img--01 img,
.voice__img--04 img {
  position: absolute;
  left: -0.14%;
  top: -0.28%;
  width: 100.21%;
  height: 127.7%;
}

.voice__img--02 {
  left: calc(14 * var(--s));
  top: calc(-31.78 * var(--s));
  height: calc(149 * var(--s));
}

.voice__img--02 img {
  /* 画像の縮小（幅85.35%、高さ84.8%）と位置を換算。 */
  left: calc(2.035 * var(--s));
  top: calc(17.112 * var(--s));
  width: calc(148.009 * var(--s));
  height: calc(157.463 * var(--s));
}

/* 入れ子の画像位置を、表示枠からの位置に換算。 */
.voice__img--03 img {
  left: calc(-0.53 * var(--s));
  top: calc(10.855 * var(--s));
  width: calc(128.269 * var(--s));
  height: calc(164.9 * var(--s));
}

.voice__img--04 {
  top: calc(-26.17 * var(--s));
  height: calc(147 * var(--s));
}

.voice__crop {
  position: absolute;
  overflow: hidden;
  left: calc(7 * var(--s));
  top: calc(4 * var(--s));
  width: calc(128 * var(--s));
  height: calc(140 * var(--s));
}

/* しっぽの水平な付け根を枠線の中心に重ねる。別の白マスクは使わない。 */
.voice .tail {
  z-index: 1;
  right: calc(35.04 * var(--s));
  bottom: calc(-20 * var(--s) - var(--voice-border, 3px) / 2);
  width: calc(35 * var(--s));
  height: calc(23 * var(--s));
}

.voice--img-left .tail { right: auto; left: calc(24.84 * var(--s)); }

/* スマホは既存の縦積みを維持し、拡大した人物と本文の重なりを防ぐ。 */
@media (max-width: 767px) {
  .voice__img--01 { top: -12px; right: 8px; }
  .voice__img--02 { top: -8px; left: 8px; }
  .voice__img--04 { top: -12px; left: 8px; }
  .voice--img-left { padding-top: 108px; }
  .voice--img-left .tail { left: 24.84px; transform: none; }
}

/* SVGの線幅も、ブラウザが実際に描く枠線の太さにそろえる。 */
.tail__outline { stroke-width: var(--voice-border, 3px); }

/* 開発秘話のSP専用。PCのレイアウトには適用しない。 */
@media (max-width: 767px) {
  :root { --gutter: 20px; }
  .sub-stack--story h2.heading-xl { font-size: 20px; }
  .story-links--single { width: calc(100% - 40px); margin-inline: auto; }
  .sub-no { width: calc(100% - 40px); margin-inline: auto; }
  .sub-no__text { min-width: 0; }
  .sub-no__label { flex-shrink: 0; }
  .sub-stack--story > .panel,
  .sub-stack--story .white-card,
  .sub-stack--story .flow__card { border-radius: 24px; padding: 48px 16px; }
}

/* SP：人物の配置は吹き出しごとに指定する。 */
@media (max-width: 767px) {
  .voice__img { transform: none; }
  .voice__img--01 { top: -12px; right: 8px; width: 89.6px; height: 98px; }
  .voice__img--01 img { left: -0.176px; top: -0.346px; width: 89.892px; height: 125.3px; }
  .voice__img--02 { top: -8px; left: 8px; width: 121.1px; height: 104.3px; }
  .voice__img--02 img { left: 0.01px; top: -0.2px; width: 116px; height: 122px; }
  .voice__img--03 { top: -25.2px; right: 8px; width: 90px; height: 100px; }
  .voice__img--03 img { left: -10px; top: -0.476px; width: 99.63px; height: 128.085px; }
  .voices .voice__img--03 { top: -18.6px; width: 89.6px; height: 86.8px; }
  .voices .voice__img--03 img { left: -0.28px; top: -0.086px; }
  .voice__img--04 { top: -12px; left: 8px; width: 89.6px; height: 102.9px; }
  .voice__crop { left: 4.89px; top: 2.8px; width: 89.6px; height: 98px; }
  .voice__img--04 img { left: -0.03px; top: -0.35px; width: 89.6px; height: 125.3px; }
  .voice:has(.voice__img--01) { padding-top: 86px; }
  .voice:has(.voice__img--02) { padding-top: 98px; }
  .voice:has(.voice__img--03) { padding-top: 76px; }
  .voices .voice:has(.voice__img--03) { padding-top: 70px; }
  .voice:has(.voice__img--04) { padding-top: 89px; }
}
