#before {
  font-family: Noto SansJP, NotoSansCJKjp, Noto Sans JP;
  display: block;
  width: 100%;
  /* 画面幅の50% */
  height: auto;
  /* 高さは自動調整 */
  aspect-ratio: 1668 / 606;
  /* アスペクト比を固定 */
  background-image: url('./画像置き場/before.png');
  /* 710x250の画像パス */
  background-size: cover;
  background-position: center;
  text-decoration: none;
  position: relative;
  border-radius: 0;
  overflow: hidden;
  margin: 0 auto;
}

.before-content {
  font-weight: 500;
  color: #FFFFFF;
  position: absolute;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}


.name {
  position: absolute;
  top: 3%;
  /* 上から5%の位置に配置 */
  left: 3.8%;
  /* 左から10%の位置に配置 */
  font-size: 4.5vw;
  /* 相対的なフォントサイズ */
}

.types {
  position: absolute;
  top: 35%;
  /* 上から22%の位置に配置 */
  left: 21.5%;
  /* 左から10%の位置に配置 */
  font-size: 4.0vw;
  /* 相対的なフォントサイズ */
  font-weight: 600;
}

.refs {
  position: absolute;
  top: 51%;
  /* 上から38%の位置に配置 */
  left: 21.5%;
  /* 左から10%の位置に配置 */
  font-size: 3.2vw;
  /* 相対的なフォントサイズ */
}

.nums {
  position: absolute;
  top: 64%;
  /* 上から55%の位置に配置 */
  left: 21.5%;
  /* 左から10%の位置に配置 */
  font-size: 3.8vw;
  /* 相対的なフォントサイズ */
}

.times {
  font-weight: lighter;
  position: absolute;
  top: 87%;
  /* 上から55%の位置に配置 */
  left: 3%;
  /* 左から10%の位置に配置 */
  font-size: 2.8vw;
  /* 相対的なフォントサイズ */
}



#after {
  font-family: Noto SansJP, NotoSansCJKjp, Noto Sans JP;
  display: block;
  width: 100%;
  /* 画面幅の50% */
  height: auto;
  /* 高さは自動調整 */
  aspect-ratio: 1610 / 626;
  /* アスペクト比を固定 */
  background-image: url('./画像置き場/after.png');
  /* 710x250の画像パス */
  background-size: cover;
  background-position: center;
  text-decoration: none;
  position: relative;
  border-radius: 0;
  overflow: hidden;
  margin: 0 auto;
}

.after-content {
  font-weight: 500;
  color: #FFFFFF;
  position: absolute;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.blacks {
  color: #000000;
}

.types2 {
  position: absolute;
  top: 32%;
  /* 上から22%の位置に配置 */
  left: 21.5%;
  /* 左から10%の位置に配置 */
  font-size: 4.0vw;
  /* 相対的なフォントサイズ */
  font-weight: 600;
}

.refs2 {
  position: absolute;
  top: 48%;
  /* 上から38%の位置に配置 */
  left: 21.5%;
  /* 左から10%の位置に配置 */
  font-size: 3.2vw;
  /* 相対的なフォントサイズ */
}

.nums2 {
  position: absolute;
  top: 60%;
  /* 上から55%の位置に配置 */
  left: 21.5%;
  /* 左から10%の位置に配置 */
  font-size: 3.8vw;
  /* 相対的なフォントサイズ */
}
