:root {
  background: black;
  font-family: Arial, Helvetica, sans-serif;
  --main-brand: #f09929;
  display: flex;
  justify-content: center;
  align-items: center;
}

body {
  width: 360px;
  height: 720px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
}

main {
  width: 360px;
  height: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
}

@media screen and (max-width: 420px) {
  body {
    width: 288px;
    height: 576px;
  }
  main {
    transform: scale(0.8);
  }
}

#progress-wrapper {
  position: relative;
  width: 100%;
  height: 8%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

#progress {
  width: 340px;
  height: 40px;
  background: #999;
  clip-path: path(
    "M 40,30 A 15,15 0,1,1 40,10 A 15,15 0,0,0 60,10 A 15,15 0,0,1 80,10 A 15,15 0,0,0 100,10 A 15,15 0,0,1 120,10 A 15,15 0,0,0 140,10 A 15,15 0,0,1 160,10 A 15,15 0,0,0 180,10 A 15,15 0,0,1 200,10 A 15,15 0,0,0 220,10 A 15,15 0,0,1 240,10 A 15,15 0,0,0 260,10 A 15,15 0,0,1 280,10 A 15,15 0,0,0 300,10 A 15,15 0,1,1 300,30 A 15,15 0,0,0 280,30 A 15,15 0,0,1 260,30 A 15,15 0,0,0 240,30 A 15,15 0,0,1 220,30 A 15,15 0,0,0 200,30 A 15,15 0,0,1 180,30 A 15,15 0,0,0 160,30 A 15,15 0,0,1 140,30 A 15,15 0,0,0 120,30 A 15,15 0,0,1 100,30 A 15,15 0,0,0 80,30 A 15,15 0,0,1 60,30 A 15,15 0,0,0 40,30 A 15,15 0,0,1 20,30 z"
  );
  position: relative;
}

#progress-shadow {
  position: absolute;
  bottom: 0;
  width: 340px;
  height: 10px;
}

.prog-shadow {
  width: 0px;
  height: 0px;
  position: absolute;
  background: #daffff33;
  border-radius: 50%;
  top: 10px;
  transform: translate(-50%, -50%);
}

.prog-shadow.active {
  width: 20px;
  height: 8px;
}

#progress > .prog-dot {
  width: 0px;
  height: 0px;
  position: absolute;
  background: #64dfff;
  border-radius: 50%;
  top: 20px;
  transform: translate(-50%, -50%);
  transition: 1s;
}

#progress > .prog-dot.active {
  width: 20px;
  height: 20px;
  position: absolute;
  background: #64dfff;
  box-shadow: 0 0 5px 5px #aceeff;
  border-radius: 50%;
  top: 20px;
  transform: translate(-50%, -50%);
  animation: glow 2s infinite;
}

#progress > .prog-dot.active.override {
  width: 0px;
  height: 0px;
  position: absolute;
  box-shadow: none;
  transition: none;
  animation: none;
}

#progress > .prog-dot.active:hover {
  animation: none;
}

@keyframes glow {
  0% {
    background: #56cffe;
    box-shadow: 0 0 2px 2px #aceeff;
  }
  50% {
    background: #64dfff;
    box-shadow: 0 0 5px 5px #ccffff;
  }
  100% {
    background: #56cffe;
    box-shadow: 0 0 2px 2px #aceeff;
  }
}

#limit-cover {
  display: none;
}

#limit-cover.active {
  position: absolute;
  width: 400px;
  height: 580px;
  z-index: 10000;
  background: black;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#nazo-border {
  position: relative;
  width: 100%;
  height: 500px;
  margin: 10px;
  border: 2px solid lightgray;
  background: white;
}

#nazo-content,
.nazo-single {
  width: 360px;
  height: 500px;
}

.nazo-single {
  display: none;
}

.nazo-single.active {
  display: block;
}

#adn01 img,
#adn02 img,
#adn03 img,
#adn05 img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

/*adn00----------------------------*/

#adn00 {
  position: relative;
  overflow: scroll;
}

#adn00-catch {
  background: #ffcccc;
  padding: 0.2em 0 0.8em;
}

#adn00-catch > p,
#adn00-catch > h2,
#adn00-catch > h3 {
  padding: 0 0.5em;
}

#adn00-catch > h2 {
  color: #ff3366;
}

#campaign {
  background-image: url(./5076353_s.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  color: white;
  padding: 0.5em 2em;
}

#adn00-resume,
#adn00-premium {
  display: inline-block;
  cursor: pointer;
}

#adn00-resume {
  border-bottom: 1px solid #999;
  color: #888;
  font-size: 60%;
}

#adn00-resume:hover {
  border-bottom: 1px solid #777;
  color: #444;
}

#adn00-premium {
  border: 2px solid #f66;
  background-color: #f99;
  color: #fff;
  font-size: 120%;
  font-weight: bold;
  border-radius: 99999px;
  margin: 8px;
  padding: 12px;
}

#adn00-premium:hover {
  background-color: #f66;
  box-shadow: 0 3px 5px 5px #fdd;
  transition: 0.2s;
}

#table-wrapper {
  width: 340px;
  width: -webkit-fill-available;
  position: relative;
  overflow-x: scroll;
}

#table-scroll-limit {
  width: 510px;
  overflow: hidden;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: fixed;
  width: 480px;
  height: 360px;
  margin: 2px;
}

table * {
  white-space: nowrap;
}

table tr:last-child {
  border-bottom: solid 1px #ddd;
}

table th {
  text-align: center;
  padding: 10px 0;
  border-right: solid 1px #ddd;
  border-left: solid 1px #ddd;
  font-size: 80%;
}

table th:nth-child(1) {
  background-color: #dddddd;
}

table th:nth-child(3) {
  background-color: #f5b932;
  color: white;
}

table th:nth-child(4) {
  background-color: #f34955;
  color: white;
}

table tr {
  height: 40px;
}

table tr td:first-child {
  font-size: 80%;
  padding: 7px 0;
}

table td {
  text-align: center;
  padding: 7px 0;
  border-top: 1px solid gold;
  border-right: solid 1px #ddd;
  border-left: solid 1px #ddd;
}

table td a {
  background-color: #25b327;
  color: white;
  padding: 5px 20px;
  border-radius: 30px;
  font-weight: bold;
}

table th.popular span.no1 {
  position: absolute;
  top: -10px;
  left: calc(50% - 30px);
  background: #bdcc28;
  width: 60px;
  font-size: 10px;
  border-radius: 15px;
  line-height: 1;
  padding: 5px;
}

table th.popular span.inner {
  position: absolute;
  color: white;
  background-color: #f34955;
  left: 0;
  bottom: 0;
  display: block;
  width: 180px;
  padding: 10px 0;
}

#drop-area {
  width: 100%;
  height: 100%;
  position: relative;
}

#drop-area .cell {
  width: 50%;
  height: 20%;
  position: absolute;
  box-sizing: border-box;
  border: 1px solid #ddd;
  background: linear-gradient(#fff, #eee);
  display: flex;
  justify-content: center;
  align-items: center;
}

.pin {
  position: absolute;
  left: 360px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: gold;
  transform: translateY(-50%);
}

.pin.pulled {
  transition: 0.5s;
  left: 1200px;
}

.pin::before {
  display: block;
  position: absolute;
  width: 560px;
  height: 2px;
  right: 90%;
  top: calc(50% - 1px);
  background: gold;
  content: "";
}

.pin::after {
  display: block;
  position: absolute;
  width: 10px;
  height: 10px;
  top: 5px;
  left: 5px;
  border-radius: 50%;
  background: white;
  content: "";
}

/*adn04----------------------------*/
#adn04 {
  position: relative;
  overflow: scroll;
}

#adn04-frame-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#adn04-frame {
  position: relative;
  width: 100%;
  height: 720px;
}

img#adn04-goal {
  position: absolute;
  width: 45%;
  top: 560px;
  right: 2%;
  z-index: 1;
}

div.active-bar {
  transition: 0.5s;
  transform: translate(
    calc(-50% + 2px),
    calc(-50% + 2px)
  ); /*
  width: 20%;
  height: 4px;
  background: red;
  transform: scaleX(30%) scaleY(300%);*/
}

div.active-bar.adb1 {
  position: relative;
  display: block;
  width: 72px;
  height: 10px;
  border-radius: 5px;
  background: #aaaaaa66;
}

div.active-bar.adb1::before {
  position: absolute;
  width: 30px;
  height: 30px;
  top: -10px;
  left: -12px;
  border-radius: 99999px;
  background: #cc0000;
  box-shadow: 0 0 5px 5px #aaaaaa66;
  content: "";
  transition: 0.5s;
}

div.active-bar.adb1::after {
  position: absolute;
  top: -12px;
  left: -6px;
  content: "X";
  font-size: 24px;
  color: white;
  transition: 0.5s;
}

div.active-bar.adb1.blocked::before {
  left: 54px;
  border-radius: 99999px;
  background: #00ff99;
}

div.active-bar.adb1.blocked::after {
  left: 60px;
  content: "X";
  font-size: 24px;
  color: white;
}

div.active-bar.adb1.good::after {
  content: "S";
}

div.active-bar.adb1.blocked.good::after {
  content: "S";
}

div.active-bar.adb2 {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 99999px;
  background: linear-gradient(45deg, #999, #ffffff 50%, #999 100%);
  box-shadow: 0 0 2px 2px #aaaaaa66;
  transition: 0.5s;
}

div.active-bar.adb2::before {
  position: absolute;
  top: -16px;
  left: 15px;
  width: 10px;
  height: 72px;
  border-radius: 5px;
  background: linear-gradient(45deg, #999, #ffffff 50%, #999 100%);
  content: "";
  transition: 0.5s;
}

div.active-bar.adb2.good {
  background: linear-gradient(45deg, #cccc00, #ffff66 50%, #cccc00 100%);
}

div.active-bar.adb2.good::before {
  background: linear-gradient(45deg, #cccc00, #ffff66 50%, #cccc00 100%);
}

div.active-bar.adb2.blocked {
  transform: translate(calc(-50% + 2px), calc(-50% + 2px)) rotate(90deg);
}

div.active-bar.adb3 {
  width: 10%;
  aspect-ratio: 5/6;
  background-image: url("./adn04_31.png");
  background-size: contain;
  background-repeat: no-repeat;
}

div.active-bar.adb3.blocked {
  width: 20%;
  aspect-ratio: 5/6;
  background-image: url("./adn04_3f.png");
  background-size: contain;
  background-repeat: no-repeat;
}

div.active-bar.adb3.blocked.good {
  background-image: url("./adn04_3.png");
}

div.active-bar.adb4 {
  width: 72px;
  height: 24px;
  border-radius: 99999px;
  background: #cc6600;
  box-shadow: 0 0 5px 5px #aaaaaa66;
}

div.active-bar.adb4::before {
  content: "INACTIVE";
  color: white;
  font-size: 12px;
  position: absolute;
  top: 3px;
  left: 6px;
  transform: none;
}

div.active-bar.adb4.blocked {
  width: 30px;
  height: 30px;
  border-radius: 99999px;
  background: #0066cc;
  box-shadow: 0 0 5px 5px #aaaaaa66;
}

div.active-bar.adb4.blocked::before {
  content: "L";
  color: white;
  font-size: 24px;
  position: absolute;
  top: -2px;
  left: 8px;
  transform: rotateY(180deg) rotate(-45deg);
}

div.active-bar.adb4.good {
  background: #cc0000;
}

div.active-bar.adb4.blocked.good {
  background: #00cc66;
}

.adn04-char {
  width: 1.5em;
  height: 1.5em;
  background: black;
  color: white;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  transform: translate(calc(-50% + 2px), calc(-50% + 2px));
}

.adn04-char > p {
  margin: 0;
}

#adn04-modal1 {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 500px;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  background: #66666666;
}

#adn04-modal1-main {
  position: absolute;
  top: 0;
  left: 2%;
  bottom: 10%;
  width: 96%;
  height: fit-content;
  border-radius: 4px;
  box-sizing: border-box;
  margin: auto;
  background: white;
}

#adn04-modal2 {
  position: absolute;
  top: 0;
  left: 4%;
  bottom: 10%;
  width: 92%;
  height: fit-content;
  border-radius: 4px;
  box-sizing: border-box;
  margin: auto;
  background: white;
}

#adn04-dispmodal2 {
  color: white;
  background: black;
  font-size: 120%;
  border: none;
}

input[type="radio"] {
  display: none;
}

#adn04-modal1 {
  display: none;
}

#adn04-modal1.active {
  display: block;
  z-index: 100;
  overflow: hidden;
}

#adn04-modal1.active #adn04-modal1-main {
  border: 1px solid gray;
  padding: 8px 24px;
  font-size: 0.8em;
  box-shadow: 0 0 2px 2px #33333399;
}

#adn04-modal2 {
  display: none;
}

#adn04-modal2.active {
  display: flex;
  flex-direction: row;
  border: 1px solid gray;
  z-index: 100;
  font-size: 0.8em;
  background: white;
}

#adn04-back {
  position: absolute;
  top: 1.6em;
  left: 1em;
  width: 1em;
  height: 1em;
  transform: rotate(45deg);
  border-left: 0.4em solid #333;
  border-bottom: 0.4em solid #333;
}

#adn04 label {
  position: relative;
  padding: 0.5em;
  border-top: 1px solid #aaa;
  border-bottom: 1px solid #999;
  background: #eee;
}

#adn04 label > div {
  position: absolute;
  right: 0.6em;
  top: 0;
  bottom: 0;
  margin: auto 0;
  width: 0.5em;
  height: 0.5em;
  transform: rotate(45deg);
  border-top: 0.3em solid #999;
  border-right: 0.3em solid #999;
}

.adb-tab {
  display: none;
}

.adb-tab.active {
  display: block;
}
/*adn04 end------------------------*/

#adn05 {
  position: relative;
  overflow: scroll;
  width: 100%;
  height: 100%;
  background: black;
}

#adn05 img {
  position: absolute;
  object-fit: cover;
}

#adn05 img:hover {
  filter: brightness(1.1);
}

#adn05-1 {
  left: 0;
  top: 30%;
  height: 50%;
  z-index: 100;
}

#adn05-2 {
  bottom: 0;
  left: 5%;
  width: 90%;
  z-index: 102;
}

#adn05-3 {
  right: 0;
  top: 30%;
  height: 70%;
  z-index: 101;
}

#adn05-4 {
  top: 0;
  left: 5%;
  width: 90%;
  z-index: 103;
}

#adn05-5 {
  top: 25%;
  left: 0;
  z-index: 1;
}

/*adn06----------------------------*/
#adn06 {
  overflow: hidden;
}

#adn06-failed {
  display: none;
}

#adn06-failed.active {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 100;
  padding: 1em;
  box-sizing: border-box;
}

#adn06-reset {
  display: flex;
  justify-content: center;
  padding: 0.4em 1.2em;
  background: #1da1f2;
  color: white;
  font-weight: bold;
  border-radius: 9999px;
}

.adn06-reply {
  font-size: 0.9em;
}

.adn06-reply p,
.adn06-user {
  margin: 0.3em 0;
}

.adn06-reply.removed {
  overflow: hidden;
  animation: remove-reply 1s;
  animation-fill-mode: forwards;
}

@keyframes remove-reply {
  0% {
    opacity: 1;
    height: 120px;
  }
  40% {
    opacity: 0;
  }
  60% {
    height: 120px;
  }
  100% {
    opacity: 0;
    height: 0;
  }
}

.adn06-reply .adn06-icon {
  width: 2em;
  height: 2em;
  flex: none;
  background: salmon;
  border-radius: 50%;
  margin: 0.4em;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
}

.adn06-detail {
  display: none;
  position: absolute;
  background-color: white;
  top: -30%;
  left: 3em;
  box-shadow: 0 0 5px 2px #ccc;
  padding: 8px 16px;
  z-index: 100;
}

.detail-user,
.detail-follow,
.detail-follower {
  font-weight: bold;
}

.adn06-user:focus-within + .adn06-detail {
  display: block;
}

.adn06-block {
  display: none;
  cursor: pointer;
}

.adn06-menu {
  color: #999;
  font-size: 0.8em;
}

a.adn06-menu:focus-within > .adn06-block {
  display: block;
  position: absolute;
  white-space: nowrap;
  right: 0;
  background: white;
  padding: 4px 8px;
  box-shadow: 0 0 2px 2px #cccccc66;
  font-size: 0.9em;
  font-weight: bold;
  color: #cc0022;
}

a.adn06-menu:focus-within > .adn06-block:hover {
  background: #aceeff;
}

/*adn06 end------------------------*/

/*adn07*/

div#adn07.active {
  display: flex;
  flex-direction: column;
  align-items: center;
}

div#adn07 > img {
  object-fit: cover;
  width: 100%;
}

div#adn07-grid {
  width: 300px;
  height: 300px;
  display: flex;
  flex-direction: column;
}

div#adn07-grid > div {
  display: flex;
  flex-direction: row;
}

div#adn07-grid label {
  width: 75px;
  height: 75px;
  box-sizing: border-box;
  border: 1px solid #fff;
  transition: 0.5s;
}

div#adn07-grid label:has(input[type="checkbox"]:checked) {
  border: 3px solid red;
}

div#adn07-grid label > input[type="checkbox"] {
  display: none;
}

div#adn07-grid img {
  width: 100%;
  height: 100%;
}

.div-button {
  padding: 0.2em 2em;
  border: 2px solid var(--main-brand);
  background: var(--main-brand);
  border-radius: 6px;
  margin: auto 4px;
  font-weight: bold;
  cursor: pointer;
}

.div-button:hover {
  filter: brightness(1.1);
}

/*onClick event*/
a,
#adn04-back {
  cursor: pointer;
}

#nazo-cover {
  position: absolute;
  width: 100%;
  height: 1px;
  background: white;
  opacity: 0;
  z-index: 1000;
}

#nazo-cover.fade {
  height: 100%;
  animation: fade 2s;
}

@keyframes fade {
  0% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
