/* ==========================================================================
   Home Styles (index.php) - 天王土地課金サイト
   ========================================================================== */

.home-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}

.home-logo-area {
  margin-bottom: 2.5rem;
  text-align: center;
}

.home-logo-sub {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--primary-gold);
  margin-bottom: 0.5rem;
}

.home-logo-main {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(to right, #fff 40%, var(--primary-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-card {
  width: 100%;
  padding: 2.5rem;
  text-align: center;
}

.home-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.home-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.code-input-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.code-input-field {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  background: rgba(255, 255, 255, 0.02);
  transition: var(--transition-smooth);
}

.code-input-field::placeholder {
  font-size: 0.95rem;
  letter-spacing: normal;
  text-transform: none;
  font-weight: 400;
  color: var(--text-muted);
}

.home-submit-btn {
  width: 100%;
  padding: 1rem;
}

.home-error-msg {
  background: var(--error-bg);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--error);
  font-size: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: fadeIn 0.3s ease;
}

/* Typography Line Break Helpers */
.nobr {
  display: inline-block;
  white-space: nowrap;
}

.desktop-br {
  display: block;
}

.mobile-br {
  display: none;
}

/* ==========================================================================
   Responsive adjustments for Mobile Devices (max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
  .desktop-br {
    display: none;
  }

  .mobile-br {
    display: block;
  }

  .home-container {
    padding: 1.5rem 1rem;
  }

  .home-logo-area {
    margin-bottom: 2rem;
  }

  .home-logo-main {
    font-size: min(1.8rem, 8.5vw);
  }

  .home-logo-sub {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
  }

  .home-card {
    padding: 1.75rem 1.25rem;
  }

  .home-title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
  }

  .home-description {
    font-size: 0.8rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: justify;
  }

  .code-input-field {
    font-size: 1.1rem;
    padding: 0.8rem;
  }

  .code-input-field::placeholder {
    font-size: 0.8rem;
  }

  .home-portal-wrapper {
    margin-top: 1.5rem !important;
    padding: 0 0.5rem;
    box-sizing: border-box;
    width: 100%;
  }

  .home-portal-btn {
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 1rem !important;
    font-size: 0.8rem !important;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.5;
    text-align: left;
  }

  .home-portal-btn span {
    text-align: left;
  }

  .home-portal-btn svg {
    flex-shrink: 0;
    margin-top: 0;
  }

  .home-portal-note {
    font-size: 0.7rem !important;
    margin-top: 0.5rem !important;
    line-height: 1.4;
    text-align: center;
  }
}
