.first { position: relative; }

.version-up-badge {
  appearance: none;
  position: absolute;
  top: 12%;
  right: 12%;
  z-index: 12;
  width: clamp(158px, 13.5vw, 220px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  overflow: visible;
  background: transparent;
  isolation: isolate;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .32);
  cursor: pointer;
  font-family: inherit;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
  opacity: 0;
  translate: 0 24px;
  animation: version-up-badge-reveal .9s cubic-bezier(.22, 1, .36, 1) 1.45s forwards;
}
.version-up-badge--editable {
  font-size: clamp(158px, 13.5vw, 220px);
  transition: width .35s cubic-bezier(.22, 1, .36, 1), font-size .35s cubic-bezier(.22, 1, .36, 1), top .35s cubic-bezier(.22, 1, .36, 1), right .35s cubic-bezier(.22, 1, .36, 1), bottom .35s cubic-bezier(.22, 1, .36, 1);
}
body.page-template-template_home .version-up-badge {
  animation-delay: 3.65s;
}
.version-up-badge::before {
  content: "";
  position: absolute;
  inset: -6px;
  z-index: -1;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  pointer-events: none;
}
.version-up-badge__ring {
  position: absolute;
  inset: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  overflow: visible;
  transform: rotate(-90deg);
  pointer-events: none;
}
.version-up-badge__ring circle {
  fill: none;
}
.version-up-badge__ring--base {
  z-index: 2;
}
.version-up-badge__ring--base circle {
  stroke: #777;
  stroke-width: .35;
  stroke-dasharray: 300;
  stroke-dashoffset: 0;
}
.version-up-badge__ring--motion {
  z-index: 3;
}
.version-up-badge__ring--motion circle {
  stroke: rgba(255, 255, 255, .95);
  stroke-width: .35;
  stroke-dasharray: 0 197.92;
  stroke-dashoffset: 0;
  animation: version-up-ring-draw 1.8s linear infinite;
}
.version-up-badge__image { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.version-up-badge__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.version-up-badge__editable {
  box-sizing: border-box;
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: .032em solid rgba(0, 158, 150, .78);
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #000;
  font-family: "Zen Kaku Gothic New", sans-serif;
  line-height: 1;
  text-align: center;
}
.version-up-badge__label {
  position: absolute;
  top: 16%;
  left: 25%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  height: 15%;
  border-radius: .18em;
  background: #0aa69d;
  color: #fff;
  font-size: .08em;
  font-weight: 700;
  white-space: nowrap;
}
.version-up-badge__label-mark {
  margin-left: .28em;
  font-size: .7em;
  font-weight: 400;
  transform: translateY(.32em);
}
.version-up-badge__value {
  position: absolute;
  top: 35%;
  left: 0;
  width: 100%;
  font-family: Arial, sans-serif;
  font-size: .245em;
  font-weight: 700;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.version-up-badge__value strong { font-weight: 700; }
.version-up-badge__unit {
  margin-left: .03em;
  font-size: .48em;
  letter-spacing: -.04em;
}
.version-up-badge__copy {
  position: absolute;
  top: 61.5%;
  left: 5%;
  width: 90%;
  font-size: .061em;
  font-weight: 700;
  line-height: 1.35;
}
.version-up-badge__note {
  position: absolute;
  top: 83%;
  left: 3%;
  width: 94%;
  color: #666;
  font-size: .04em;
  white-space: nowrap;
}
.version-up-badge:hover { transform: scale(1.035); }
.version-up-badge--editable:hover {
  transform: none;
  top: calc(12% - clamp(2.765px, .23625vw, 3.85px));
  right: calc(12% - clamp(2.765px, .23625vw, 3.85px));
  width: clamp(163.53px, 13.9725vw, 227.7px);
  font-size: clamp(163.53px, 13.9725vw, 227.7px);
}
.version-up-badge:focus-visible { outline: 3px solid #70d3ff; outline-offset: 12px; }
#version-up-modal .popup-ttl .popup-parts-text br { display: none; }

@keyframes version-up-badge-reveal {
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes version-up-ring-draw {
  0% {
    stroke-dasharray: 0 197.92;
    stroke-dashoffset: 0;
  }
  10% {
    stroke-dasharray: 3.9 194.02;
    stroke-dashoffset: 0;
  }
  20% {
    stroke-dasharray: 16.16 181.76;
    stroke-dashoffset: 0;
  }
  30% {
    stroke-dasharray: 37.09 160.83;
    stroke-dashoffset: 0;
  }
  40% {
    stroke-dasharray: 49.48 148.44;
    stroke-dashoffset: -24.32;
  }
  50% {
    stroke-dasharray: 49.48 148.44;
    stroke-dashoffset: -74.22;
  }
  60% {
    stroke-dasharray: 49.48 148.44;
    stroke-dashoffset: -124.12;
  }
  70% {
    stroke-dasharray: 37.09 160.83;
    stroke-dashoffset: -160.83;
  }
  80% {
    stroke-dasharray: 16.17 181.75;
    stroke-dashoffset: -181.75;
  }
  90% {
    stroke-dasharray: 3.9 194.02;
    stroke-dashoffset: -194.02;
  }
  100% {
    stroke-dasharray: 0 197.92;
    stroke-dashoffset: -197.92;
  }
}

@media (max-width: 767px) {
  .version-up-badge { top: auto; right: 20px; bottom: 30px; width: 36vw; }
  .version-up-badge--editable { font-size: 36vw; }
  .version-up-badge--editable:hover {
    top: auto;
    right: calc(20px - .63vw);
    bottom: calc(30px - .63vw);
    width: 37.26vw;
    font-size: 37.26vw;
  }
  .version-up-badge::before { inset: -4px; }
  .version-up-badge__ring { inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); }
  #version-up-modal .popup-ttl .popup-parts-text br { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  .version-up-badge { opacity: 1; translate: 0 0; animation: none; transition: none; }
  .version-up-badge__ring--motion circle { animation: none; }
}
