@import url('./tokens/fonts.css');
@import url('./tokens/colors.css');
@import url('./tokens/typography.css');
@import url('./tokens/spacing.css');
@import url('./tokens/effects.css');

/* --- Mobile navigation (hamburger) --- */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-heading);
}

/* --- Responsive layout fixes --- */
@media (max-width: 768px) {
  /* Header: switch to hamburger, drop the horizontal nav */
  .site-header { padding: 14px 20px !important; }
  .site-logo { height: 56px !important; }
  .hamburger-btn { display: flex !important; }
  .site-nav { display: none !important; }
  .site-nav.site-nav-open {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-page);
    padding: 12px 20px 20px !important;
    border-bottom: 1px solid var(--border-default);
    box-shadow: 0 8px 16px rgba(43,54,72,0.08);
  }
  .site-nav.site-nav-open span { padding: 12px 0 !important; }

  /* Footer: stack instead of squeezing side by side */
  .site-footer {
    flex-direction: column !important;
    gap: 20px !important;
    padding: 40px 20px !important;
  }

  /* Generic section side padding — was 48px, too tight on narrow screens */
  #root section { padding-left: 20px !important; padding-right: 20px !important; }

  /* Home hero heading: single line on mobile, font scales to fit width */
  .hero-title {
    font-size: clamp(1.375rem, 6vw, 2rem) !important;
    white-space: nowrap !important;
    max-width: 100% !important;
  }

  /* "ご利用の流れ" cards: stack vertically instead of squeezing 3 columns */
  .flow-steps {
    flex-direction: column !important;
  }
}
