@charset "UTF-8";

/* ==========================================================================
   Sound of Eiga - Common Styles
   ========================================================================== */

/* 1. Base Variables & Reset
   ========================================================================== */
:root {
  --primary-color: #2196F3;
  --secondary-color: #f5f5f5;
  --text-color: #333333;
  --bg-color: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.95);
  --header-height: 60px;
  --bottom-nav-height: 60px;
  --tap-target: 48px;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  /* padding-bottom will be applied via inline/JS or media query for bottom nav */
}

/* 2. Global Navigation & Sticky Header
   ========================================================================== */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  height: var(--header-height);
}

.site-logo-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.site-logo {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: #0033aa;
  letter-spacing: 0.02em;
}

/* 3. Mobile Bottom Navigation
   ========================================================================== */
.bottom-nav {
  display: none; /* Hidden on Desktop */
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--bottom-nav-height);
  background-color: #ffffff;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
  z-index: 999;
}

.bottom-nav-list {
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}

.bottom-nav-item {
  flex: 1;
  text-align: center;
}

.bottom-nav-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: #666;
  text-decoration: none;
  font-size: 0.75rem;
}

.bottom-nav-icon {
  font-size: 1.2rem;
  margin-bottom: 2px;
}

/* 4. UI Accessibility (Tap Targets & Touch Feedback)
   ========================================================================== */
/* Ensure tap targets are at least 48x48 */
button, 
.btn,
a.tap-target-link,
.bottom-nav-link {
  min-height: var(--tap-target);
  min-width: var(--tap-target);
  box-sizing: border-box;
}

/* Touch feedback */
a:active, 
button:active, 
.btn:active {
  opacity: 0.7;
  transition: opacity 0.1s ease;
}

/* 5. Responsive Styles
   ========================================================================== */
@media screen and (max-width: 768px) {
  body {
    padding-bottom: var(--bottom-nav-height);
  }
  
  .bottom-nav {
    display: block;
  }
}

/* 6. Typography & Hero Styles (Added in Phase 1 Issue Fix)
   ========================================================================== */
.hero-h1 {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  font-weight: 800;
  color: #1a2b3c;
  margin: 0;
  letter-spacing: -0.05em;
  text-align: center;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 255, 255, 1), 0 0 20px rgba(255, 255, 255, 1), 0 0 30px rgba(255, 255, 255, 0.9), 0 4px 10px rgba(0, 0, 0, 0.1);
}

.hero-h1.long {
  font-size: clamp(1.4rem, 5vw, 2.8rem);
}
