/* 使い方ガイド — アプリ内ドキュメント (2026-05-20 note 記事①②のオンサイト化) */

.ug-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  background: rgba(23, 23, 36, .55);
  padding: 24px;
  box-sizing: border-box;
}
.ug-modal.show { display: flex; }
body.ug-open { overflow: hidden; }

.ug-card {
  margin: auto;
  width: min(960px, 100%);
  height: min(86vh, 760px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(23, 23, 36, .32);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: "Space Grotesk", "Noto Sans JP", sans-serif;
}

.ug-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e7e8ef;
  flex: 0 0 auto;
}
.ug-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: .02em;
}
.ug-close {
  border: 1px solid #d9dbe6;
  background: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 18px;
  line-height: 1;
  color: #646678;
  cursor: pointer;
}
.ug-close:hover { background: #f1f2f6; }

.ug-nav {
  display: flex;
  gap: 6px;
  padding: 10px 20px;
  border-bottom: 1px solid #e7e8ef;
  overflow-x: auto;
  flex: 0 0 auto;
}
.ug-nav-btn {
  border: 1px solid #d9dbe6;
  background: #fff;
  color: #646678;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 8px;
  white-space: nowrap;
  cursor: pointer;
}
.ug-nav-btn:hover { background: #f1f2f6; }
.ug-nav-btn.is-active {
  background: #1a1a2e;
  border-color: #1a1a2e;
  color: #fff;
}

.ug-content {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 22px 26px 32px;
}

.ug-section { display: none; }
.ug-section.is-active { display: block; }

.ug-section h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 800;
  color: #1a1a2e;
}
.ug-lead {
  margin: 0 0 18px;
  font-size: 12.5px;
  color: #85879a;
  line-height: 1.7;
}
.ug-section h4 {
  margin: 22px 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: #2563eb;
  border-left: 4px solid #2563eb;
  padding-left: 8px;
}
.ug-section p {
  margin: 6px 0;
  font-size: 12.5px;
  color: #374151;
  line-height: 1.8;
}
.ug-section ol,
.ug-section ul {
  margin: 6px 0 6px;
  padding-left: 22px;
}
.ug-section li {
  font-size: 12.5px;
  color: #374151;
  line-height: 1.85;
  margin: 3px 0;
}
.ug-section strong { color: #1a1a2e; font-weight: 800; }

.ug-kbd {
  display: inline-block;
  border: 1px solid #c9ccda;
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #f6f7fb;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 700;
  color: #1a1a2e;
}

.ug-shot {
  display: block;
  max-width: 100%;
  margin: 12px 0 4px;
  border: 1px solid #e7e8ef;
  border-radius: 9px;
}
.ug-shot-cap {
  margin: 0 0 16px;
  font-size: 11px;
  color: #9095a3;
}

.ug-tip {
  margin: 14px 0;
  padding: 11px 13px;
  background: #f6f7fb;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  font-size: 12px;
  color: #374151;
  line-height: 1.75;
}

/* ガイド内から操作チュートリアルを起動するボタン */
.ug-tut-btn {
  display: inline-block;
  margin: 12px 0 2px;
  border: 1px solid #1a1a2e;
  background: #1a1a2e;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
}
.ug-tut-btn:hover { background: #2a2a44; }

/* 計算性能セクションのベンチマーク表 */
.ug-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 14px;
  font-size: 12px;
}
.ug-table th,
.ug-table td {
  border: 1px solid #e7e8ef;
  padding: 7px 10px;
  text-align: center;
}
.ug-table th {
  background: #f6f7fb;
  color: #646678;
  font-weight: 800;
}
.ug-table td { color: #374151; }
.ug-table td:first-child { font-weight: 700; color: #1a1a2e; }

@media (max-width: 640px) {
  .ug-modal { padding: 0; }
  .ug-card { width: 100%; height: 100%; border-radius: 0; }
  .ug-content { padding: 18px 16px 28px; }
}
