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

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
  min-height: 100vh;
}

h1 {
  color: #1976D2;
  font-size: 2rem;
  margin-bottom: 1rem;
}

h2 {
  color: #1976D2;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #FF6B35;
}

h3 {
  color: #1976D2;
  font-size: 1.3rem;
  margin: 2rem 0 1rem;
}

h4 {
  color: #333;
  font-size: 1.1rem;
  margin: 1.5rem 0 1rem;
}

h5 {
color: #555;
font-size: 1rem;
margin: 1rem 0 0.5rem;
font-weight: bold;
}

p {
  margin-bottom: 1rem;
}

ul, ol {
  margin: 1rem 0 1rem 2rem;
}

li {
  margin: 0.5rem 0;
}
code {
  background: #f5f5f5;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: #d63384;
}
pre {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 1.5rem;
  border-radius: 5px;
  overflow-x: auto;
  margin: 1.5rem 0;
}
pre code {
  background: none;
  color: #f8f8f2;
  padding: 0;
}

/* ヘッダー */
header {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #1976D2;
  text-decoration: none;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

nav a:hover {
  color: #FF6B35;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #FF6B35;
  transition: width 0.3s;
}

nav a:hover::after {
  width: 100%;
}

/* メインコンテンツ */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* ヒーローセクション */
.hero {
  background: linear-gradient(135deg, #1976D2 0%, #2196F3 100%);
  border-radius: 20px;
  padding: 4rem 2rem;
  text-align: center;
  color: white;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(25, 118, 210, 0.3);
}

.hero h1 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
  display: inline-block;
}

.btn-primary {
  background: #FF6B35;
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
  background: #FF8555;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
  background: white;
  color: #1976D2;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: transparent;
  color: white;
  border-color: white;
}

/* セクションタイトル */
.section-title {
  text-align: center;
  font-size: 2rem;
  margin: 3rem 0 2rem;
  color: #1976D2;
}

/* カテゴリカード */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.category-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  text-decoration: none;
  color: #333;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: #FF6B35;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.category-card:hover::before {
  height: 8px;
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.category-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #1976D2;
}

.category-card p {
  color: #666;
  font-size: 0.95rem;
}

/* 人気ページセクション */
.popular-pages {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.popular-pages h2 {
  color: #1976D2;
  margin-bottom: 1.5rem;
  text-align: center;
}

.popular-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.popular-item {
  background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
  padding: 1rem;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-left: 4px solid #FF6B35;
}

.popular-item:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.2);
  background: linear-gradient(135deg, #FFE0B2 0%, #FFCC80 100%);
}

.popular-item span {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.popular-item-title {
  font-weight: bold;
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 0.2rem;
}

.popular-item-desc {
  font-size: 0.8rem;
  color: #888;
  line-height: 1.4;
}

/* 最新情報セクション */
.latest-updates {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.latest-updates h2 {
  color: #1976D2;
  margin-bottom: 1.5rem;
  text-align: center;
}

.update-item {
  padding: 1rem;
  border-left: 4px solid #1976D2;
  margin-bottom: 1rem;
  background: #F5F5F5;
  border-radius: 5px;
  transition: all 0.3s;
}

.update-item:hover {
  background: #E3F2FD;
  transform: translateX(5px);
  border-left-color: #FF6B35;
}

.update-date {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.update-item a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.update-item a:hover {
  color: #1976D2;
}

/* 上へ戻るボタン */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #FF6B35;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
  transition: all 0.3s;
  opacity: 0;
  visibility: hidden;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #FF8555;
  transform: translateY(-5px);
}

/* フッター */
footer {
  background: white;
  margin-top: 3rem;
  padding: 1rem;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  color: #1976D2;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.footer-section a {
  text-decoration: none;
  color: #666;
  display: block;
  padding: 0.3rem 0;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #FF6B35;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #E0E0E0;
  color: #999;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  color: #E3F2FD;
}


/* レスポンシブ対応 */
@media (max-width: 768px) {
  .header-content {
  flex-direction: column;
  gap: 1rem;
  }

  nav ul {
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  }

  .hero h1 {
  font-size: 2rem;
  }

  .hero p {
  font-size: 1rem;
  }

  .category-grid {
  grid-template-columns: 1fr;
  }

  h1 {
  font-size: 1.5rem;
  }
  h2 {
  font-size: 1.3rem;
  }

  .back-to-top {
  bottom: 1rem;
  right: 1rem;
  }
}
