@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600&display=swap");

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

html, body.enter-page {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body.enter-page {
  font-family: Montserrat, "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  color: #f9f1e7;
  background-color: #322d2d;
  background-image:
    linear-gradient(rgba(50, 45, 45, 0.82), rgba(50, 45, 45, 0.9)),
    var(--bg-image, none);
  background-size: auto, cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

html[style*="--bg-image:url"] body.enter-page {
  background-color: transparent;
  background-image: var(--bg-image);
  background-size: var(--bg-size, cover);
  background-position: var(--bg-position, center);
  background-repeat: var(--bg-repeat, no-repeat);
}

.enter {
  height: 100dvh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding:
    max(12px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(10px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
}

.enter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.enter-brand {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  color: rgba(60, 60, 60, 0.78);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.enter-top-link {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 10px;
  border: 1px solid rgba(95, 95, 95, 0.28);
  color: rgba(55, 55, 55, 0.95);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: lowercase;
}

.enter-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  max-width: min(92vw, 720px);
  margin: 16px auto 0;
}

.enter-title {
  margin: 0 0 10px;
  width: 100%;
  font-size: 52px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

html[style*="--bg-image:url"] .enter-title {
  background-image: var(--bg-image-photo, var(--bg-image));
  background-repeat: var(--bg-repeat-photo, no-repeat);
  background-position: var(--bg-position-photo, center);
  background-size: var(--bg-size-photo, cover);
  background-blend-mode: var(--bg-blend-photo, overlay);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.enter-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 14px 14px 16px;
  border: 1px solid rgba(249, 241, 231, 0.14);
  background: rgba(255, 255, 255, 0.58);
  text-align: center;
}

.enter-card p {
  flex: 1;
  min-height: 0;
  margin: 0 0 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  color: rgba(55, 55, 55, 0.95);
  font-size: 12px;
  line-height: 1.6;
}

.enter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin-top: auto;
  margin-bottom: 10px;
  flex-shrink: 0;
  width: 70px;
  height: 50px;
  padding: 4px 8px;
  border: 1px solid #b85a1a;
  background: #b85a1a;
  color: #f9f1e7;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: lowercase;
}

.enter-button:hover {
  background: #f9f1e7;
  border-color: #f9f1e7;
  color: #322d2d;
}

.enter-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding: 10px 8px 0;
  background: transparent;
  color: rgba(45, 45, 45, 0.88);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: rgba(12, 10, 10, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.loading-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.loading-percent {
  font-size: 20px;
  font-weight: 700;
  color: #f9f1e7;
  text-align: center;
}

.loading-label {
  margin-top: 8px;
  font-size: 12px;
  text-transform: lowercase;
  text-align: center;
  color: rgba(249, 241, 231, 0.72);
}

@media (min-width: 741px) {
  .enter {
    position: relative;
    padding-top: 0;
  }

  .enter-header {
    position: absolute;
    top: max(18px, env(safe-area-inset-top));
    left: max(28px, env(safe-area-inset-left));
    right: max(28px, env(safe-area-inset-right));
  }

  .enter-brand {
    font-size: 14px;
  }

  .enter-main {
    margin-top: calc(env(safe-area-inset-top, 0px) + 85px);
  }

  .enter-title {
    margin-bottom: 60px;
  }

  .enter-card p {
    font-size: 13px;
    line-height: 1.65;
  }
}

@media (max-width: 740px) {
  .enter-main {
    margin-top: 50px;

  }

  .enter-title {
    margin-bottom: 50px;
    letter-spacing: 0.04em;
  }

  .enter-card {
    padding: 12px 12px 14px;

  }

  .enter-card p {
    font-size: 11px;
    line-height: 1.5;
  }

.enter-button{
  width: 30px;
  height: 20px;
  padding: 4px 8px;
  font-size: 8px;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: lowercase;
  margin-top: auto;
  margin-bottom: 10px;
}

.enter-button:hover {
  background: #f9f1e7;
  border-color: #f9f1e7;
  color: #322d2d;
}


  .enter-footer {
    padding-top: 8px;
    font-size: 9px;
  }
}
