/* リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

/* ナビゲーション */
.navbar {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.logo h1 {
  font-size: 1.5rem;
  color: #667eea;
}

.logo a {
  text-decoration: none;
  color: inherit;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #667eea;
}

/* ボタン */
.btn-primary, .btn-secondary, .btn-large, .btn-donate {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  font-weight: 600;
}

.btn-primary {
  background: #667eea;
  color: #fff;
}

.btn-primary:hover {
  background: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: #f8f9fa;
  color: #333;
  border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
  background: #e9ecef;
}

.btn-donate {
  background: #FFDD00;
  color: #000;
  border: 2px solid #FFDD00;
}

.btn-donate:hover {
  background: #FFE84D;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 221, 0, 0.4);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* ヒーローセクション */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 6rem 0;
  text-align: center;
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

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

/* セクション */
section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #2c3e50;
}

.subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 3rem;
}

/* 機能グリッド */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

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

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.feature-card p {
  color: #666;
  line-height: 1.8;
}

/* 料金セクション */
.pricing {
  background: #f8f9fa;
}

.pricing-card {
  max-width: 400px;
  margin: 0 auto;
  background: #fff;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.price {
  margin: 2rem 0;
}

.price .amount {
  font-size: 3rem;
  font-weight: bold;
  color: #667eea;
}

.price .unit {
  font-size: 1.2rem;
  color: #666;
}

.features-list {
  list-style: none;
  text-align: left;
  margin: 2rem 0;
}

.features-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
  color: #666;
}

/* CTAセクション */
.cta {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-align: center;
  padding: 5rem 0;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* ダウンロードページ */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.download-card {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s;
}

.download-card:hover {
  transform: translateY(-5px);
}

.platform-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.download-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.download-card p {
  color: #666;
  margin-bottom: 1.5rem;
}

.btn-download {
  width: 100%;
  text-align: center;
}

.btn-download.btn-active {
  background: #1e3a8a;
  color: white;
  box-shadow: 0 6px 0 #0f1f4d, 0 8px 12px rgba(0,0,0,0.3);
  transform: translateY(0);
  transition: all 0.1s;
}

.btn-download.btn-active:hover {
  background: #2563eb;
  box-shadow: 0 4px 0 #0f1f4d, 0 6px 10px rgba(0,0,0,0.3);
  transform: translateY(2px);
}

.btn-download.btn-active:active {
  background: #1e40af;
  box-shadow: 0 2px 0 #0f1f4d, 0 3px 6px rgba(0,0,0,0.3);
  transform: translateY(4px);
}

.version {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #999;
}

.system-requirements, .installation-guide {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.system-requirements h3, .installation-guide h3 {
  margin-bottom: 1.5rem;
  color: #2c3e50;
}

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

.requirements-grid h4 {
  margin-bottom: 0.5rem;
  color: #667eea;
}

.requirements-grid ul {
  list-style: none;
  color: #666;
}

.requirements-grid li {
  padding: 0.25rem 0;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  background: #667eea;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.step-content h4 {
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.step-content p {
  color: #666;
}

/* ヘルプページ */
.help-card {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

.help-card h3 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: #2c3e50;
}

.help-card h4 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
  color: #667eea;
}

.help-steps {
  list-style: none;
  counter-reset: step-counter;
}

.help-steps li {
  counter-increment: step-counter;
  margin-bottom: 1.5rem;
  padding-left: 3rem;
  position: relative;
}

.help-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background: #667eea;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.help-steps strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.help-steps p {
  color: #666;
  line-height: 1.8;
}

.faq-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h4 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.faq-item p {
  color: #666;
  line-height: 1.8;
}

/* フッター */
footer {
  background: #2c3e50;
  color: #fff;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: #fff;
}

.footer-section p {
  color: #bdc3c7;
  line-height: 1.8;
}

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

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #34495e;
  color: #bdc3c7;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .nav-menu {
    flex-direction: column;
    gap: 1rem;
  }
  
  .feature-grid, .download-grid, .requirements-grid {
    grid-template-columns: 1fr;
  }
}


/* 言語切り替えボタン */
.lang-switcher {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.lang-btn {
  background: transparent;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  border-color: #667eea;
  transform: scale(1.1);
}

.lang-btn.active {
  border-color: #667eea;
  background: #f0f4ff;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

/* スクリーンショットスライダー */
.screenshots-slider {
  background: #f8f9fa;
  padding: 4rem 0;
}

.slider-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.slider-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: #fff;
}

.slider-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
}

.slider-image.active {
  opacity: 1;
  pointer-events: auto;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667eea;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.slider-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.slider-btn.prev {
  left: 20px;
}

.slider-btn.next {
  right: 20px;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.slider-dot.active {
  background: #667eea;
  border-color: #667eea;
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .slider-btn.prev {
    left: 10px;
  }
  
  .slider-btn.next {
    right: 10px;
  }
  
  .slider-dots {
    bottom: 10px;
  }
  
  .slider-dot {
    width: 10px;
    height: 10px;
  }
}

/* お知らせセクション */
.announcements {
  padding: 60px 0;
  background: #f8f9fa;
}

.announcements .section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #333;
}

.announcements-container {
  max-width: 800px;
  margin: 0 auto;
}

.announcement-item {
  background: white;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.announcement-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.announcement-date {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 8px;
}

.announcement-title {
  font-size: 1.25rem;
  color: #333;
  margin-bottom: 12px;
  font-weight: 600;
}

.announcement-content {
  color: #555;
  line-height: 1.8;
  white-space: pre-wrap;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .announcements {
    padding: 40px 0;
  }
  
  .announcements .section-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }
  
  .announcement-item {
    padding: 20px;
  }
  
  .announcement-title {
    font-size: 1.1rem;
  }
}

/* 特定商取引法に基づく表記 */
.commercial-law-section {
  margin: 30px 0;
  padding-top: 20px;
  border-top: 1px solid #34495e;
}

.commercial-law-toggle {
  background: none;
  border: none;
  color: #bdc3c7;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
  width: 100%;
  text-align: left;
}

.commercial-law-toggle:hover {
  color: #fff;
  text-decoration: underline;
}

.commercial-law-content {
  margin-top: 15px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid #34495e;
  font-size: 13px;
  line-height: 1.6;
  max-height: 500px;
  overflow-y: auto;
}

.commercial-law-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #34495e;
}

.commercial-law-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.commercial-law-item strong {
  display: block;
  color: #fff;
  font-size: 14px;
  margin-bottom: 8px;
}

.commercial-law-desc {
  color: #bdc3c7;
  font-size: 12px;
  margin-bottom: 10px;
  font-style: italic;
}

.commercial-law-content p {
  margin: 6px 0;
  color: #bdc3c7;
}

.commercial-law-content ul {
  margin: 10px 0 10px 20px;
  padding: 0;
}

.commercial-law-content li {
  margin-bottom: 6px;
  color: #bdc3c7;
}

/* スクロールバーのスタイル */
.commercial-law-content::-webkit-scrollbar {
  width: 8px;
}

.commercial-law-content::-webkit-scrollbar-track {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.commercial-law-content::-webkit-scrollbar-thumb {
  background-color: #667eea;
  border-radius: 4px;
}

.commercial-law-content::-webkit-scrollbar-thumb:hover {
  background-color: #5568d3;
}

@media (max-width: 768px) {
  .commercial-law-content {
    padding: 15px;
    font-size: 12px;
    max-height: 400px;
  }
  
  .commercial-law-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
  }
}
