@charset "UTF-8";
#appwrapper {
  width: 100%;
  color: #333;
  font-family: serif;
  writing-mode: vertical-rl;
  background-size: cover;
  background-position: top left;
  margin: 0 0 5rem;
  height: 100vh;
  font-size: 18px;
  font-feature-settings: "palt";
  overflow: hidden;
}
@media (max-width: 600px) {
  #appwrapper {
    font-size: 14px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  }
}
@media (max-width: 420px) {
  #appwrapper {
    font-size: 12px;
  }
}
#appwrapper.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
}
#appwrapper.fade-in {
  opacity: 1;
  transition: opacity 0.5s ease;
}
#appwrapper.fade-to-black::after {
  content: "";
  position: fixed;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 999;
}
#appwrapper.fade-to-black.black-fading::after {
  opacity: 1;
}
#appwrapper #app {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 50%;
  max-height: 90vh;
  height: 33em;
  overflow-y: auto;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 760px;
  background: rgba(255, 255, 255, 0.9333333333);
  padding: 2em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
}
#appwrapper #app.view-app {
  transition: ease opacity 0.5s;
  opacity: 1;
}
#appwrapper #app.zetsubou, #appwrapper #app.kurayami {
  background-color: rgba(0, 0, 0, 0.9333333333);
  color: white;
}
#appwrapper #app.zetsubou .choice-desc, #appwrapper #app.kurayami .choice-desc {
  color: #999;
}
@media (max-width: 600px) {
  #appwrapper #app.zetsubou .choice-desc, #appwrapper #app.kurayami .choice-desc {
    color: white !important;
  }
}
#appwrapper #app.zetsubou .choice-desc::before, #appwrapper #app.kurayami .choice-desc::before {
  color: white;
}
#appwrapper #app.zetsubou .choice-desc.select, #appwrapper #app.kurayami .choice-desc.select {
  color: white;
}
@media (max-width: 600px) {
  #appwrapper #app {
    padding: 1.4em;
    width: calc(100% - 3.5rem);
    margin: 0 auto;
    height: 32em;
  }
}
@media (max-width: 420px) {
  #appwrapper #app {
    padding: 1.2em;
    height: 36em;
  }
}
#appwrapper .intro p {
  text-indent: 1em !important;
}
#appwrapper .intro h2 {
  font-size: 1.75em !important;
}
#appwrapper h2.chapter {
  margin: 0 1rem;
  font-size: 1.4em;
  font-weight: bold;
  letter-spacing: 0.05em;
  opacity: 0;
}
@media (max-width: 600px) {
  #appwrapper h2.chapter {
    margin: 0 0 0 0.2rem;
  }
}
#appwrapper h2 span {
  margin: 0;
  writing-mode: rl;
}
#appwrapper #text {
  padding-left: 1rem;
  margin-left: 2rem;
  border-left: 4px solid #ccc;
  line-height: 1.8;
}
@media (max-width: 600px) {
  #appwrapper #text {
    margin-left: 1rem;
  }
}
#appwrapper #text p {
  margin: 0;
}
#appwrapper #text span.char {
  opacity: 0;
  font-feature-settings: normal;
  display: inline-block;
  will-change: opacity;
  backface-visibility: hidden;
  height: 1.2em;
}
@media (max-width: 600px) {
  #appwrapper #text span.char {
    height: 1em;
  }
}
#appwrapper #text span.char:first-child {
  margin-top: 1.2em;
}
#appwrapper #text span.char.intro {
  opacity: 1;
}
#appwrapper #app.result #text {
  border: none;
  padding-left: 0;
  margin-left: 1rem;
}
#appwrapper #app.result #text hgroup {
  margin-left: 1rem;
}
#appwrapper #app.result #text hgroup h3.personality {
  font-size: 1.2em;
  font-weight: normal;
  padding: 1rem;
  margin-left: 1rem;
  border: 1px solid;
  box-sizing: border-box;
  text-indent: 1rem;
  margin-bottom: 1rem;
  opacity: 0;
  visibility: hidden;
  text-indent: 0;
  letter-spacing: 0.05em;
  line-height: 1;
}
#appwrapper #app.result #text hgroup h3.personality + p.meaning {
  font-size: 1em;
  background-color: white;
  font-weight: normal;
  margin-bottom: 1rem !important;
  padding: 1rem;
  border: 1px solid #333;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  line-height: 1;
}
#appwrapper .choice-desc {
  margin-top: 1.5rem;
  font-weight: bold;
  padding: 1rem;
  opacity: 0;
  position: relative;
  cursor: pointer;
  transition: 0.2s;
  color: #999;
  letter-spacing: 0.2em;
}
@media (max-width: 600px) {
  #appwrapper .choice-desc {
    color: #333;
    padding: 0.5rem;
    margin-right: 0.25rem;
  }
}
#appwrapper .choice-desc::before {
  opacity: 0;
  content: "▼";
  display: inline-block;
  position: absolute;
  top: -2rem;
  width: 100%;
}
@media (max-width: 600px) {
  #appwrapper .choice-desc::before {
    top: -1rem;
    opacity: 1 !important;
  }
}
#appwrapper .choice-desc.select {
  color: #333;
}
#appwrapper .choice-desc.select::before {
  opacity: 1;
}
#appwrapper button.choice {
  display: block;
  cursor: pointer;
  padding: 1.2rem;
  background: #fff;
  border: 2px solid #333;
  letter-spacing: 0.2em;
  transition: background-color 0.3s, transform 0.2s;
  opacity: 0;
  margin-right: 1rem;
}
#appwrapper button.choice.help-button {
  background-color: #333;
  color: white;
  margin-right: 2rem;
}
#appwrapper button.choice.help-button:hover {
  background: #303030;
}
@media (max-width: 600px) {
  #appwrapper button.choice {
    display: inline-block;
  }
  #appwrapper button.choice.help-button {
    margin: 1rem 1rem 0 0;
  }
}
#appwrapper button.choice:hover {
  background: #f0f0f0;
  transform: translateX(2px) translateY(-2px);
}

#bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform-origin: center;
  backface-visibility: hidden;
  /* GPU レイヤ化でカクつき防止 */
  will-change: transform;
  /* 事前に GPU バッファ確保 */
  z-index: -1;
  /* 文字より奥に配置 */
}

@keyframes bgZoomOut {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.4);
  }
  100% {
    transform: scale(1);
  }
}
#bg.bg-zoomout {
  animation: bgZoomOut 1.5s ease forwards;
}/*# sourceMappingURL=appma.css.map */