@import './variables.css';

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #fff;
  min-height: 100vh;
}

.header {
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 2px solid #e9ecef;
}

h1 {
  font-size: 2.5em;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.last-updated {
  color: #6c757d;
  font-size: 0.95em;
}

.toc {
  background-color: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 40px;
}

.toc h2 {
  font-size: 1.3em;
  margin-bottom: 15px;
  color: #1a1a1a;
}

.toc ul {
  list-style: none;
}

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

.toc a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s;
}

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

section:not(:last-of-type) {
  margin-bottom: 45px;
}

h2 {
  font-size: 1.8em;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 20px;
  margin-top: 10px;
}

h3 {
  font-size: 1.3em;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 15px;
  margin-top: 25px;
}

p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

ul, ol {
  margin-left: 25px;
  margin-bottom: 15px;
}

li {
  margin-bottom: 8px;
  font-size: 1.05em;
}

strong {
  color: #1a1a1a;
  font-weight: 600;
}

.notice {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 20px;
  margin: 25px 0;
  border-radius: 4px;
}

.notice p {
  margin-bottom: 0;
}

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--primary-color);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: background-color 0.3s;
  /* Prevent iOS link preview */
  -webkit-touch-callout: none;
  /* Prevent text selection */
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  /* Remove tap highlight on mobile */
  -webkit-tap-highlight-color: transparent;
  /* Prevent long-press menu */
  pointer-events: auto;
}

.scroll-to-top:hover {
  background-color: var(--secondary-color);
}

@media (max-width: 768px) {
  .container {
    padding: 40px 15px;
  }

  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 1.5em;
  }

  h3 {
    font-size: 1.2em;
  }

  .header {
    margin-bottom: 0;
  }

  .toc {
    display: none;
  }

  .scroll-to-top {
    display: none;
  }
}
