@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --primary: #0891b2;
  --primary-dark: #0e7490;
  --primary-light: #e0f2fe;
  --header-bg: #e8f4f8;
  --border: #cbd5e1;
  --text: #1e293b;
  --text-muted: #64748b;
  --accent: #0ea5e9;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
}

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 15px;
}

/* ヘッダー */
header {
  background: var(--header-bg);
  color: var(--text);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  border-bottom: 1px solid var(--border);
}

header .logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--primary-dark);
}

header .logo span { color: var(--accent); }

header nav {
  margin-left: auto;
  display: flex;
  gap: 4px;
}

header nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}

header nav a:hover {
  color: var(--primary-dark);
  background: var(--primary-light);
}

header nav a.active {
  color: var(--primary-dark);
  background: var(--primary-light);
  font-weight: 500;
}

/* フッター */
footer {
  background: #1e293b;
  color: #94a3b8;
  text-align: center;
  padding: 32px 24px;
  font-size: 13px;
  margin-top: 80px;
}

footer a {
  color: #60a5fa;
  text-decoration: none;
}

footer a:hover { text-decoration: underline; }

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

/* 利用規約・プライバシーポリシーのセクション間余白 */
.section {
  margin-bottom: 8px;
  margin-top: 32px;
}

/* コンテナ */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

/* カード */
.card {
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  margin-bottom: 24px;
}

/* セクションヘッダー */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
}

.section-number {
  background: var(--primary);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
}

/* ページヒーロー */
.hero {
  padding: 48px 24px;
  text-align: center;
  color: #fff;
}

.hero h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero p { font-size: 14px; opacity: 0.8; }

/* バッジ */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
}

.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef9c3; color: #854d0e; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-info    { background: #dbeafe; color: #1e40af; }

/* リスト */
.styled-list { list-style: none; padding: 0; }
.styled-list li {
  padding: 6px 0 6px 20px;
  position: relative;
}
.styled-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* コマンドテーブル */
.cmd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.cmd-table th {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 10px 14px;
  text-align: left;
  font-weight: 500;
  border-bottom: 2px solid var(--primary);
}
.cmd-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.cmd-table tr:nth-child(even) td { background: #f8faff; }
.cmd-table code {
  font-family: 'Courier New', monospace;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: #1e40af;
}

/* 情報ボックス */
.info-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 12px 0;
  font-size: 14px;
  color: var(--text-muted);
}

.warn-box {
  background: #fffbeb;
  border-left: 4px solid var(--warning);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 12px 0;
  font-size: 14px;
  color: #78350f;
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  background: none;
  border: none;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
}

/* モバイルナビ：ヘッダーの直下に固定 */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--header-bg);
  padding: 8px 0;
  position: fixed;
  top: 53px;
  left: 0;
  right: 0;
  z-index: 99;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  border-bottom: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 14px 24px;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { background: var(--primary-light); color: var(--primary-dark); }
.mobile-nav a.active { color: var(--primary-dark); background: var(--primary-light); font-weight: 500; }

@media (max-width: 640px) {
  .card { padding: 20px 16px; }
  .hero h1 { font-size: 22px; }
  header nav { display: none; }
  .hamburger { display: flex; }
}
