/* =============================================
   style.css  —  index.php（外枠）用スタイル
   ============================================= */
:root {
  --primary   : #4f7df7;
  --bg        : #f0f2f5;
  --border    : #e5e7eb;
  --text      : #1f2937;
  --muted     : #6b7280;
  --header-h  : 48px;
  --tab-h     : 42px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Hiragino Sans', sans-serif;
       background: var(--bg); color: var(--text); }

/* ── Header ── */
.app { display: flex; flex-direction: column; height: 100vh; }

.app-header {
  height: var(--header-h);
  background: #1e293b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
}
.app-title  { font-size: 16px; font-weight: 600; letter-spacing: .02em; }
.header-clock { font-size: 13px; opacity: .7; font-variant-numeric: tabular-nums; }

/* ── Tabs ── */
.tab-nav {
  height: var(--tab-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  padding: 0 8px;
  flex-shrink: 0;
  gap: 2px;
}
.tab-btn {
  padding: 8px 16px;
  border: none;
  background: none;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.tab-btn:hover  { color: var(--text); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* ── iframe container ── */
.frame-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.content-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: none;
}
.content-frame.active { display: block; }
