/* survival-rope 公開ページ共通スタイル
   原本: 04.project/website/assets/style.css
   公開先: https://smart-expiration.xyz/survival-rope/assets/style.css
   各ページからは ../../assets/style.css で参照する（言語ディレクトリ配下のため2階層上）。 */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Noto Sans JP', 'Noto Sans SC', sans-serif;
  background: #f5f5f7;
  color: #1d1d1f;
  line-height: 1.7;
}

/* ===== ヘッダー ===== */

header {
  background: #1a1a2e;
  color: #fff;
  padding: 40px 24px 32px;
  text-align: center;
}

header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

header p {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #a0aec0;
}

.app-badge {
  display: inline-block;
  margin-top: 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 6px 18px;
  font-size: 0.82rem;
  color: #e2e8f0;
}

/* 言語切替（ヘッダー内） */
.lang-switch {
  margin-top: 18px;
  font-size: 0.82rem;
  color: #a0aec0;
}

.lang-switch a {
  color: #cbd5e0;
  text-decoration: none;
  padding: 0 8px;
}

.lang-switch a:hover { text-decoration: underline; }

.lang-switch .current {
  color: #fff;
  font-weight: 600;
  padding: 0 8px;
}

/* ===== 本文 ===== */

main {
  max-width: 760px;
  margin: 40px auto;
  padding: 0 20px 60px;
}

.toc {
  background: #fff;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 32px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.toc h2 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.toc ol { padding-left: 20px; }

.toc li { margin-bottom: 6px; }

.toc a {
  color: #2563eb;
  text-decoration: none;
  font-size: 0.92rem;
}

.toc a:hover { text-decoration: underline; }

section {
  background: #fff;
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  padding-bottom: 12px;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

section h2 .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #1a1a2e;
  color: #fff;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

section h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 22px 0 8px;
}

section h3:first-of-type { margin-top: 0; }

section p {
  font-size: 0.93rem;
  color: #374151;
  margin-bottom: 12px;
}

section p:last-child { margin-bottom: 0; }

section ul, section ol {
  padding-left: 22px;
  margin-bottom: 12px;
}

section li {
  font-size: 0.93rem;
  color: #374151;
  margin-bottom: 6px;
}

section a {
  color: #2563eb;
  text-decoration: none;
  word-break: break-word;
}

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

.lead {
  font-size: 0.95rem;
  color: #4b5563;
}

/* ===== 各種ボックス ===== */

.highlight-box {
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 16px 0;
}

.highlight-box p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: #1e40af;
}

.warning-box {
  background: #fff7ed;
  border-left: 4px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 16px 0;
}

.warning-box p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: #92400e;
}

.contact-box {
  background: #f0fdf4;
  border-radius: 10px;
  padding: 20px 24px;
  text-align: center;
  margin-top: 8px;
}

.contact-box p { margin-bottom: 6px; }

.contact-box a {
  color: #16a34a;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}

.contact-box a:hover { text-decoration: underline; }

/* ===== 表・リスト ===== */

.third-party-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-top: 12px;
}

.third-party-table th {
  background: #f3f4f6;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 2px solid #e5e7eb;
}

.third-party-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f3f4f6;
  color: #4b5563;
  vertical-align: top;
}

.third-party-table tr:last-child td { border-bottom: none; }

.third-party-table a {
  color: #2563eb;
  text-decoration: none;
  word-break: break-all;
}

.third-party-table a:hover { text-decoration: underline; }

.link-list {
  list-style: none;
  padding-left: 0;
}

.link-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}

.link-list li:last-child { border-bottom: none; }

/* ===== フッター ===== */

.updated {
  text-align: center;
  color: #9ca3af;
  font-size: 0.82rem;
}

footer {
  text-align: center;
  padding: 32px 20px;
  color: #9ca3af;
  font-size: 0.82rem;
}

footer a {
  color: #9ca3af;
  text-decoration: underline;
}

@media (max-width: 600px) {
  section { padding: 22px 20px; }
  header h1 { font-size: 1.3rem; }
  .third-party-table { display: block; overflow-x: auto; }
}
