/**
 * @fileoverview メインスタイルシート
 * @description 基本レイアウトとリセットCSS
 */

/* リセット */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Meiryo', sans-serif;
  line-height: 1.6;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
}

/* アプリコンテナ */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 768px;
  margin: 0 auto;
}

/* ヘッダー */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.header__menu {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
}

/* メインコンテンツ */
.main {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

/* ナビゲーション */
.nav {
  display: flex;
  justify-content: space-around;
  background-color: var(--bg-nav);
  border-top: 1px solid var(--border-color);
  padding: 0.5rem 0;
  position: sticky;
  bottom: 0;
}

.nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.2s;
  min-width: 60px;
  min-height: 44px;
}

.nav__item--active {
  color: var(--accent-color);
}

.nav__icon {
  font-size: 1.5rem;
}

.nav__label {
  font-size: 0.75rem;
}

/* ユーティリティ */
.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
