/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #00D9FF;
  --secondary-color: #0066FF;
  --accent-color: #FF00A5;
  --dark-bg: #0A0E27;
  --light-bg: #F7F9FC;
  --text-dark: #1A1A2E;
  --text-light: #FFFFFF;
  --text-gray: #6C7293;
  --border-color: #E5E8EF;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --gradient-primary: linear-gradient(135deg, #00D9FF 0%, #0066FF 100%);
  --gradient-accent: linear-gradient(135deg, #FF00A5 0%, #FF5757 100%);
  --gradient-dark: linear-gradient(180deg, #0A0E27 0%, #1A1A2E 100%);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--light-bg);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-light);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.logo-accent {
  color: var(--accent-color);
  -webkit-text-fill-color: var(--accent-color);
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 20px;
  flex-wrap: nowrap;
}

.nav-list a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 8px 10px;
  border-radius: 6px;
  position: relative;
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--primary-color);
  background: rgba(0, 217, 255, 0.1);
}

.nav-list a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--gradient-primary);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background: var(--primary-color);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--dark-bg);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  padding: 20px;
}

.mobile-nav-list li {
  margin-bottom: 10px;
}

.mobile-nav-list a {
  display: block;
  color: var(--text-light);
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.mobile-nav-list a:hover,
.mobile-nav-list a.active {
  background: rgba(0, 217, 255, 0.1);
  color: var(--primary-color);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 70px;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, 
    rgba(10, 14, 39, 0.3) 0%,
    rgba(10, 14, 39, 0.7) 50%,
    rgba(10, 14, 39, 0.95) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--text-light);
  max-width: 900px;
  padding: 0 20px;
}

.hero-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  margin-bottom: 20px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 400;
  margin-bottom: 40px;
  color: #E0E0E0;
  line-height: 1.4;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.stat-label {
  font-size: 14px;
  color: #B0B0B0;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Main Content */
.main-content {
  position: relative;
  background: var(--light-bg);
}

/* Article Layout - 2 Column */
.article-content {
  padding: 60px 0;
  background: white;
}

.article-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.article-main {
  min-width: 0;
}

.content-section {
  margin-bottom: 50px;
}

.content-section h2 {
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--primary-color);
}

.content-section h3 {
  font-size: clamp(22px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 30px;
  margin-bottom: 15px;
}

.content-section p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-gray);
  margin-bottom: 20px;
}

.content-section ul, .content-section ol {
  margin: 20px 0;
  padding-left: 30px;
}

.content-section li {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-gray);
  margin-bottom: 10px;
}

.article-sidebar {
  position: sticky;
  top: 100px;
}

.toc-widget {
  background: linear-gradient(135deg, #F7F9FC 0%, #FFFFFF 100%);
  padding: 30px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border-color);
  margin-bottom: 30px;
}

.toc-widget h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

.toc-widget ul {
  list-style: none;
  padding: 0;
}

.toc-widget li {
  margin-bottom: 12px;
}

.toc-widget a {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 15px;
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.toc-widget a:hover {
  color: var(--primary-color);
  background: rgba(0, 217, 255, 0.1);
  transform: translateX(5px);
}

.pr-widget {
  background: linear-gradient(135deg, #FFE5E5 0%, #FFF5F5 100%);
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border: 2px solid #FFB3B3;
  margin-bottom: 30px;
  text-align: center;
}

.pr-widget a {
  color: #CC0000;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  display: block;
  transition: all 0.3s ease;
}

.pr-widget a:hover {
  color: #FF0000;
  transform: scale(1.02);
}

.related-sites-widget {
  background: linear-gradient(135deg, #F7F9FC 0%, #FFFFFF 100%);
  padding: 30px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border-color);
  margin-bottom: 30px;
}

.related-sites-widget h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

.related-sites-widget ul {
  list-style: none;
  padding: 0;
}

.related-sites-widget li {
  margin-bottom: 12px;
}

.related-sites-widget a {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 15px;
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.related-sites-widget a:hover {
  color: var(--primary-color);
  background: rgba(0, 217, 255, 0.1);
  transform: translateX(5px);
}

.ad-banner-widget {
  background: linear-gradient(135deg, #F7F9FC 0%, #FFFFFF 100%);
  padding: 20px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border-color);
  text-align: center;
  margin-bottom: 30px;
}

.ad-banner-widget img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.key-stats-widget {
  background: linear-gradient(135deg, #F7F9FC 0%, #FFFFFF 100%);
  padding: 30px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border-color);
  margin-bottom: 30px;
}

.key-stats-widget h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

.stat-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.stat-item-small {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.stat-item-small .label {
  font-size: 14px;
  color: var(--text-gray);
  font-weight: 500;
}

.stat-item-small .value {
  font-size: 18px;
  color: var(--primary-color);
  font-weight: 700;
}

.ad-widget {
  background: linear-gradient(135deg, #F7F9FC 0%, #FFFFFF 100%);
  padding: 30px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border-color);
  text-align: center;
  margin-bottom: 30px;
}

.ad-widget p {
  color: var(--text-gray);
  font-size: 14px;
  margin: 0;
}

.related-widget {
  background: linear-gradient(135deg, #F7F9FC 0%, #FFFFFF 100%);
  padding: 30px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border-color);
}

.related-widget h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

.related-widget ul {
  list-style: none;
  padding: 0;
}

.related-widget li {
  margin-bottom: 15px;
}

.related-widget a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  display: block;
  padding: 12px;
  border-radius: 8px;
  background: white;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.related-widget a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Overview Section */
.overview-section {
  padding: 80px 0;
  background: white;
}

.section-title {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 50px;
  color: var(--text-dark);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.overview-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.overview-main p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-gray);
}

.overview-sidebar {
  position: sticky;
  top: 100px;
}

.key-points {
  background: var(--gradient-primary);
  padding: 30px;
  border-radius: 16px;
  color: white;
  box-shadow: var(--shadow-md);
}

.key-points h3 {
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 700;
}

.key-points ul {
  list-style: none;
}

.key-points li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 15px;
  display: flex;
  align-items: center;
}

.key-points li:last-child {
  border-bottom: none;
}

.key-points li::before {
  content: '→';
  margin-right: 10px;
  color: var(--accent-color);
  font-weight: bold;
}

/* News Section */
.news-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #F7F9FC 0%, #FFFFFF 100%);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.news-card {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.news-date {
  font-size: 13px;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.news-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--text-dark);
  line-height: 1.4;
}

.news-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-gray);
  margin-bottom: 20px;
}

.news-link {
  display: inline-flex;
  align-items: center;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.news-link:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

/* Category Section */
.category-section {
  padding: 80px 0;
  background: white;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.category-card {
  text-decoration: none;
  background: linear-gradient(135deg, #F7F9FC 0%, #FFFFFF 100%);
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.category-card:hover::before {
  opacity: 0.05;
}

.category-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: inline-block;
  filter: drop-shadow(0 4px 8px rgba(0, 217, 255, 0.3));
  position: relative;
  z-index: 2;
}

.category-card h3 {
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.category-card p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.5;
  position: relative;
  z-index: 2;
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: radial-gradient(circle at center, 
    rgba(0, 217, 255, 0.1) 0%, 
    transparent 70%);
  animation: pulse 10s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-size: clamp(32px, 4vw, 48px);
  color: var(--text-light);
  margin-bottom: 20px;
  font-weight: 800;
}

.cta-content p {
  font-size: 18px;
  color: #B0B0B0;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  padding: 16px 40px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 217, 255, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 30px rgba(0, 217, 255, 0.5);
}

/* Footer */
.site-footer {
  background: var(--dark-bg);
  color: var(--text-light);
  padding: 60px 0 30px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-weight: 700;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  color: #B0B0B0;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.footer-column a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
  display: inline-block;
}

.footer-column p {
  color: #B0B0B0;
  font-size: 14px;
  line-height: 1.6;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

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

.footer-links a {
  color: #B0B0B0;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  padding: 5px 10px;
  border-radius: 4px;
}

.footer-links a:hover {
  color: var(--primary-color);
  background: rgba(0, 217, 255, 0.1);
}

.footer-links .separator {
  color: #606060;
  font-size: 14px;
}

.footer-bottom p {
  color: #808080;
  font-size: 13px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .article-layout {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
  }

  .article-sidebar {
    position: static;
    order: -1; /* サイドナビを本文の前に表示 */
  }

  .article-main {
    order: 0;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .hero-stats {
    gap: 20px;
  }
  
  .stat-item {
    flex: 1 1 100%;
  }
  
  .news-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 15px;
  }
  
  .logo h1 {
    font-size: 24px;
  }
  
  .hero-title {
    letter-spacing: -1px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .container {
    padding: 0 15px;
  }
}