html, body {
  margin: 0;
  padding: 0;
  background: #000;
}

*, *::before, *::after {
  box-sizing: border-box;
}

#solnerion-preview {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: #000;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.solnerion-ui-shell {
  position: relative;
  width: 100%;
  min-height: 100vh;
  opacity: 0;
  animation: solUIScreenFade 2.4s ease 1.2s forwards;
}

#solnerion-preview-inner {
  position: relative;
  z-index: 1;
  width: min(98vw, calc(98vh * 16 / 9));
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
}

#solnerion-preview-inner img.main-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

#solnerion-preview-inner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: #000;
  z-index: 10;
}

.solnerion-footer-mark {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  margin: 34px auto 40px;
  padding: 0 18px;
  font-size: 10px;
  letter-spacing: 0.18em;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.28);
  text-transform: uppercase;
  pointer-events: none;
  word-break: break-word;
}

/* フェード */
#solnerion-preview::before {
  content: "";
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9998;
  animation: solBlackFadeOut 2.8s ease forwards;
}

#solnerion-preview::after {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 0;
  height: 1px;
  transform: translate(-50%, -50%);
  z-index: 9999;
  background: linear-gradient(
    90deg,
    rgba(0, 255, 255, 0) 0%,
    rgba(120, 230, 255, 0.85) 50%,
    rgba(0, 255, 255, 0) 100%
  );
  animation: solCyanLine 1.6s cubic-bezier(.2, .8, .2, 1) 0.15s forwards;
}

@keyframes solBlackFadeOut {
  0% { opacity: 1; visibility: visible; }
  99% { opacity: 0; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

@keyframes solCyanLine {
  0% { width: 0; opacity: 0; }
  50% { width: 50vw; opacity: 1; }
  100% { width: 60vw; opacity: 0; }
}

@keyframes solUIScreenFade {
  from { opacity: 0; transform: scale(1.01); }
  to { opacity: 1; transform: scale(1); }
}

/* 言語 */
.solnerion-language-switcher {
  position: absolute;
  top: 40px;
  right: 20px;
  z-index: 30;
}

.solnerion-language-switcher select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;

  background-color: #000 !important;
  background-image: none !important;
  color-scheme: dark;

  border: 1px solid rgba(150, 220, 255, 0.22) !important;
  color: rgba(245, 250, 255, 0.92) !important;
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.2;
  padding: 8px 28px 8px 10px;
  min-width: 96px;
  border-radius: 0;
  outline: none;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow:
    0 0 8px rgba(80, 180, 255, 0.06),
    inset 0 0 6px rgba(180, 240, 255, 0.03);
}

.solnerion-language-switcher::after {
  content: "▾";
  position: absolute;
  top: 50%;
  right: 9px;
  transform: translateY(-52%);
  color: rgba(220, 240, 255, 0.72);
  font-size: 10px;
  pointer-events: none;
}

.solnerion-language-switcher select option {
  background: #000 !important;
  color: #eef7ff !important;
}

/* ▼▼▼ 修正ここ ▼▼▼ */
@media (max-width: 932px) and (orientation: portrait) {

  .solnerion-language-switcher {
    top: 68px;
    right: 20px;
  }

  .solnerion-language-switcher select {
    font-size: 10px;
    min-width: 92px;
    padding: 5px 14px 5px 7px;
    background-color: #000 !important;
  }

  #solnerion-preview-inner {
    width: 100vw;
    aspect-ratio: 16 / 9;
    margin-top: 15vh; /* ← 下に寄せて上に余白を作る */
  }

  #solnerion-preview-inner img.main-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .solnerion-footer-mark {
    margin: 24px auto 28px;
    font-size: 9px;
  }
}
/* ▲▲▲ 修正ここ ▲▲▲ */

@media (max-width: 932px) and (orientation: landscape) {
  .solnerion-language-switcher {
    top: 12px;
    right: 36px;
  }

  .solnerion-language-switcher select {
    font-size: 10px;
    min-width: 92px;
    padding: 6px 22px 6px 8px;
  }
}