/* -----------------------------------------------------------
   Ryopc Virtual SpaceBrowser - Ultimate Stylesheet
----------------------------------------------------------- */

:root {
  --accent-blue: #2563eb;
  --bg-dark-950: #020617;
  --bg-dark-900: #0f172a;
  --bg-dark-800: #1e293b;
  --text-main: #f8fafc;
  --glass-bg: rgba(30, 41, 59, 0.7);
}

/* 全体リセットと基本設定 */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  touch-action: none; /* ブラウザ標準のジェスチャーを制限してアプリ感を出す */
  background-color: var(--bg-dark-950);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ログイン画面の背景アニメーション */
#login-screen {
  background: radial-gradient(circle at 50% 0%, #1e3a8a 0%, #020617 100%);
}

.drop-shadow-2xl {
  filter: drop-shadow(0 0 25px rgba(37, 99, 235, 0.4));
}

/* PC用：Chrome風タブバー */
#pc-tab-bar {
  background-color: #0b0f1a;
  height: 44px;
}

.tab-btn {
  height: 34px;
  padding: 0 20px;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  background: #1e293b;
  border-radius: 12px 12px 0 0;
  margin-right: -4px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

.tab-btn.active {
  background: #0f172a !important;
  color: #3b82f6 !important;
  z-index: 10;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

/* アドレスバーのフォーカス演出 */
input:focus {
  background: rgba(15, 23, 42, 0.9) !important;
}

/* iframeの表示領域（スマホでは上部を丸める） */
#frames-container {
  border-radius: 0;
}

@media (max-width: 767px) {
  #frames-container {
    border-radius: 2rem 2rem 0 0;
    margin-top: 10px;
  }
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff; /* コンテンツが見やすいように背景は白 */
}

/* スマホメニューのスライド設定 */
#mobile-menu {
  backdrop-filter: blur(20px);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
}

#mobile-menu.translate-y-0 {
  transform: translateY(0);
}

/* 管理画面（Domain Manager） */
#admin-panel {
  scrollbar-width: none; /* Firefox */
}
#admin-panel::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* セーフエリア対応（iPhoneの切り欠きなど） */
.pb-safe {
  padding-bottom: env(safe-area-inset-bottom);
}

.pt-safe {
  padding-top: env(safe-area-inset-top);
}

/* ボタンのアニメーション */
button {
  transition: transform 0.1s ease, background-color 0.2s ease;
}

button:active {
  transform: scale(0.92);
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
