/* =========================================================
   見積太郎2 ブランディングスプラッシュ
========================================================= */

body.mt2-splash-active {
  overflow: hidden;
}

.mt2-splash {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 30000;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    radial-gradient(circle at 50% 38%,
      rgba(239, 182, 55, 0.14) 0%,
      rgba(239, 182, 55, 0) 38%),
    #ffffff;

  opacity: 1;
  visibility: visible;

  transition:
    opacity 350ms ease,
    visibility 350ms ease;
}

.mt2-splash-inner {
  position: relative;

  display: grid;
  align-items: center;
  justify-items: center;
  place-items: center;

  width: 92vw;
  max-width: 420px;
  min-height: 280px;
  padding: 32px 24px;

  text-align: center;
}

.mt2-splash-loader {
  grid-area: 1 / 1;

  width: 48px;
  height: 48px;

  border: 4px solid rgba(21, 61, 147, 0.14);
  border-top-color: #153d93;
  border-radius: 50%;

  opacity: 1;
  visibility: visible;

  animation:
    mt2SplashLoaderSpin 700ms linear infinite;

  transition:
    opacity 120ms linear,
    visibility 120ms linear;
}

@keyframes mt2SplashLoaderSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.mt2-splash-brand {
  grid-area: 1 / 1;

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 100ms linear,
    visibility 100ms linear;
}

.mt2-splash-picture {
  display: block;
  line-height: 0;
}

body.mt2-splash-ready .mt2-splash-loader {
  opacity: 0;
  visibility: hidden;
}

body.mt2-splash-ready .mt2-splash-brand {
  opacity: 1;
  visibility: visible;
}

.mt2-splash-logo {
  display: block;

  width: 44vw;
  max-width: 170px;
  max-height: 200px;
  height: auto;

  margin: 0 auto;

  object-fit: contain;

  transform: translateY(0) scale(1);
  transform-origin: center bottom;

  backface-visibility: hidden;
  will-change: transform;
}

.mt2-splash-title {
  margin: 16px 0 0;

  color: #153d93;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    Meiryo,
    sans-serif;

  font-size: 2rem;
  font-size: clamp(1.45rem, 5vw, 2rem);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

body.mt2-splash-done .mt2-splash {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 420px) {
  .mt2-splash-inner {
    width: calc(100% - 16px);
    padding-right: 8px;
    padding-left: 8px;
  }

  .mt2-splash-title {
    font-size: 1.45rem;
  }
}