/* ================================
   Gazolab Base Styles
   Minimal Reset + Typography
================================ */

/* ================================
   i18n 読み込み中のチラつき対策
================================ */

/* 翻訳ロード中は data-i18n 要素を非表示にする */
html[data-i18n-loading="1"] [data-i18n] {
  visibility: hidden;      /* layoutは保ちつつ文字だけ隠す */
}


/* 日本語 / 中国語は全体的に少し字を小さく */
html[data-lang="ja"],
html[data-lang="zh"] {
  font-size: 15px; /* = 0.9375rem（16pxの約94%） */
}

/* 日本語ナビだけ小さくして詰める */
html[data-lang="ja"] .gz-nav .gz-nav-item {
  font-size: 0.88em;        /* 全体15pxからさらに12〜13px相当 */
  letter-spacing: -0.2px;   /* 日本語は詰めた方が美しい */
}

/* 中国語ナビはさらに詰める（字面が大きいため） */
html[data-lang="zh"] .gz-nav .gz-nav-item {
  font-size: 0.85em;
  letter-spacing: -0.3px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #1c1c1e;
  background-color: #fafafa;
}

/* Links */
a {
  color: #007aff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Containers */
.gz-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Headings */
h1, h2, h3, h4 {
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Buttons */
button {
  cursor: pointer;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  background-color: #007aff;
  color: #fff;
  font-size: 0.95rem;
  transition: 0.2s ease;
  /*margin-top: 20px;*/
}

button:hover {
  /*background-color: #005fd1;*/
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Inputs */
input[type="file"],
input[type="text"],
input[type="number"],
select {
  border: 1px solid #d2d2d7;
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  font-size: 0.95rem;
  width: 100%;
}

/* select */
.gz-select {
  height: 36px;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
}
.gz-input-small {
  width: 120px;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  font-size: 0.85rem;
}
.gz-lang-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
}

.gz-lang-btn {
  border: none;
  background: transparent;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.8rem;
  color: #6b7280;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.gz-lang-btn:hover {
  background: #f3f4f6;
}

.gz-lang-btn.is-active {
  background: #111827;
  color: #fff;
}
