/* css/viewer.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Inter', sans-serif;
  overflow: hidden; 
  background-color: #0a0a0a;
}

.tabs-header {
  background-color: #171717;
  color: white;
  border-bottom: 1px solid #333;
  position: relative;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
}

.logo {
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.logo-sub {
  color: #f05f40; /* ブランドカラーのアクセント */
}

.tabs-nav {
  display: flex;
  gap: 8px;
  height: 100%;
}

.tab-btn {
  background: transparent;
  border: none;
  color: #888;
  padding: 0 16px;
  height: 100%;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  white-space: nowrap; /* テキストの折り返しを防ぐ */
}

.tab-btn:hover {
  color: #fff;
}

.tab-btn.active {
  color: #fff;
  border-bottom: 2px solid #f05f40;
}

.viewer-container {
  height: calc(100vh - 60px);
  width: 100%;
  background-color: #fff;
}

iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* =========================================
   レスポンシブ (スマホ向けレイアウトの工夫)
   ========================================= */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    padding: 0;
    height: auto;
  }

  /* ロゴは中央配置で独立させる */
  .logo {
    width: 100%;
    padding: 12px 20px;
    font-size: 1.1rem;
    border-bottom: 1px solid #2a2a2a;
    text-align: center;
  }

  /* タブエリアは横スクロール可能にする */
  .tabs-nav {
    width: 100%;
    height: 48px;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    padding: 0 12px;
    -webkit-overflow-scrolling: touch; /* iOSでの滑らかなスクロール */
    scrollbar-width: none; /* Firefox用スクロールバー非表示 */
  }

  .tabs-nav::-webkit-scrollbar {
    display: none; /* Chrome/Safari用スクロールバー非表示 */
  }

  .tab-btn {
    padding: 0 16px;
    height: 48px;
    font-size: 12px;
  }

  /* iframeの高さをロゴ＋タブの高さに合わせて再計算 */
  .viewer-container {
    height: calc(100vh - (45px + 48px)); 
  }
}