/* k428 - スタンドアロン スタイルシート */

/* ============================================================
   CSS Variables (inunote ベースの配色)
   ============================================================ */
:root {
  --bg: #282a36;              /* タイトルバーと同じ紺色 */
  --card-bg: #363848;         /* パネル・カード */
  --primary: #6272a4;         /* アクセントカラー（ボタン・アクティブ要素） */
  --primary-hover: #7282b4;
  --secondary: #a8aec8;
  --heading: #f0f2fc;
  --text: #e8ecf8;
  --text-light: #7c829e;
  --border: #44475a;
  --border-light: #383a4e;
  --white: #ffffff;

  --primary-alpha-10: rgba(98, 114, 164, 0.13);
  --primary-alpha-15: rgba(98, 114, 164, 0.20);
  --primary-alpha-20: rgba(98, 114, 164, 0.28);
  --black-alpha-10: rgba(0, 0, 0, 0.10);
  --black-alpha-50: rgba(0, 0, 0, 0.55);

  --hover-bg: rgba(255, 255, 255, 0.06);
  --surface: #363848;
  --surface-hover: rgba(255, 255, 255, 0.08);
  --text-muted: #6272a4;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 50%;
}

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

html, body {
  height: 100%;
  font-size: 17px;
  font-family: 'Zen Maru Gothic', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
}

#app {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.app-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* モバイル専用左レール（PCでは非表示） */
.mobile-nav-rail {
  display: none;
}

/* モバイル専用の下部ステータスバー（PC はナビバー右側に出るので非表示） */
.mobile-statusbar {
  display: none;
}

/* ============================================================
   認証画面
   ============================================================ */
.auth-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  z-index: 1000;
}

.auth-container {
  text-align: center;
  padding: 48px 40px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(74, 85, 104, 0.08);
  max-width: 380px;
  width: 90%;
}

.auth-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-logo-img {
  width: 56px;
  height: 56px;
  color: #6b7b8d;
}

.auth-container h1 {
  font-size: 1.5rem;
  color: var(--heading);
  margin-bottom: 8px;
}

.auth-container p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.google-signin-button {
  display: flex;
  justify-content: center;
}

.auth-error {
  margin-top: 16px;
  padding: 10px 14px;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.35);
  border-radius: var(--radius-sm);
  color: #f87171;
  font-size: 0.85rem;
}

/* ============================================================
   ナビゲーションバー
   ============================================================ */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: #282a36;
  color: var(--white);
  flex-shrink: 0;
  height: 48px;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-kamon-btn {
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  border-radius: var(--radius-sm);
  transition: opacity 0.2s;
}

.navbar-kamon-btn:hover {
  opacity: 0.7;
}

.navbar-icon-img {
  width: 24px;
  height: 24px;
  animation: spin 20s linear infinite;
}

/* ナビバー タブ */
.navbar-tabs {
  display: flex;
  gap: 0;
  margin-left: 16px;
  align-items: center;
}

.navbar-tab {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 4px 12px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  font-size: 0.8rem;
  font-family: inherit;
  transition: color 0.2s;
}

.navbar-tab:hover {
  background: transparent;
  color: rgba(255,255,255,0.9);
}

.navbar-tab.active {
  background: transparent;
  color: white;
}

.navbar-tab .material-symbols-outlined {
  font-size: 16px;
  padding-right: 7px;
  margin-right: 0;
}

/* タブ間の区切り */
.navbar-tab + .navbar-tab {
  border-left: 1px solid rgba(255,255,255,0.15);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

