/* リセット */
* {
  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: #1f2937;
  background: #f9fafb;
}

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

/* ナビゲーション */
.navbar {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  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.4rem;
  color: #1d4ed8;
  font-weight: 800;
}

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

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

.nav-menu a {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-menu a:hover {
  color: #2563eb;
}

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

.btn-primary {
  background: #2563eb;
  color: #fff;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
  background: #fff;
  color: #374151;
  border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.btn-large {
  padding: 1rem 2.25rem;
  font-size: 1.1rem;
  border-radius: 12px;
}

/* ヒーローセクション */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #2563eb 100%);
  color: #fff;
  padding: 5rem 0 4rem;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero-preview {
    display: none;
  }
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: 0.03em;
}

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

.hero-content h2 .highlight {
  color: #fbbf24;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 1.75rem;
  opacity: 0.9;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fbbf24;
}

.hero-stat-label {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-top: 0.2rem;
}

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

/* ゲームカードプレビュー */
.hero-preview {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.game-card-preview {
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  color: #1f2937;
}

.game-card-result {
  opacity: 0.9;
}

.game-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.game-date {
  font-size: 0.8rem;
  color: #6b7280;
}

.game-status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.game-status.bet-open {
  background: #dcfce7;
  color: #16a34a;
}

.game-status.settled {
  background: #f3f4f6;
  color: #6b7280;
}

.game-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.team {
  flex: 1;
}

.team.home {
  text-align: right;
}

.team.away {
  text-align: left;
}

.team-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
}

.team-odds {
  font-size: 0.75rem;
  color: #2563eb;
  margin-top: 0.15rem;
}

.team-score {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1f2937;
  margin-top: 0.2rem;
}

.team-bet-badge {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.25rem;
}

.vs-divider {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #9ca3af;
}

.game-card-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f3f4f6;
}

.game-card-footer.hit {
  color: #dc2626;
}

.stamp-hit {
  display: inline-block;
  border: 2.5px solid #dc2626;
  color: #dc2626;
  font-weight: 900;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  letter-spacing: 0.1em;
  transform: rotate(-6deg);
}

.bet-info {
  font-size: 0.8rem;
  color: #374151;
  font-weight: 600;
}

/* セクション共通 */
section {
  padding: 4.5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  color: #111827;
  font-weight: 800;
}

.section-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: #6b7280;
  margin-bottom: 3rem;
}

.subtitle {
  text-align: center;
  font-size: 1.15rem;
  color: #6b7280;
  margin-bottom: 3rem;
}

/* 通貨セクション */
.currency-section {
  background: #eff6ff;
  padding: 3rem 0;
}

.currency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 700px) {
  .currency-grid {
    grid-template-columns: 1fr;
  }
}

.currency-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.75rem;
  border: 1px solid #dbeafe;
  box-shadow: 0 2px 8px rgba(37,99,235,0.06);
}

.currency-card-meiyo {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
  border-color: #fde68a;
}

.currency-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.currency-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.5rem;
}

.currency-card p {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.7;
}

/* 機能グリッド */
.features {
  background: #f9fafb;
}

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

.feature-card {
  background: #fff;
  padding: 1.75rem;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(37,99,235,0.1);
  border-color: #bfdbfe;
}

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

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: #111827;
  font-weight: 700;
}

.feature-card p {
  color: #6b7280;
  line-height: 1.75;
  font-size: 0.95rem;
}

/* 遊び方セクション */
.how-to-use {
  background: #fff;
  padding: 5rem 0;
}

.how-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .how-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .how-steps-grid {
    grid-template-columns: 1fr;
  }
}

.how-step-card {
  background: #f8faff;
  border-radius: 14px;
  padding: 1.75rem;
  text-align: center;
  position: relative;
  border: 2px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.how-step-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 6px 16px rgba(37,99,235,0.1);
}

.how-step-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #2563eb;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.how-step-icon {
  font-size: 2.25rem;
  margin: 0.5rem 0 1rem;
}

.how-step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.6rem;
}

.how-step-card p {
  font-size: 0.88rem;
  color: #6b7280;
  line-height: 1.7;
}

.how-to-use-note {
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  padding: 1.15rem 1.5rem;
  margin-top: 1rem;
}

.how-to-use-note p {
  color: #1d4ed8;
  font-size: 0.95rem;
  line-height: 1.7;
}

.btn-medium {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid #2563eb;
  color: #2563eb;
  transition: background 0.2s, color 0.2s;
}

.btn-medium:hover {
  background: #2563eb;
  color: #fff;
}

/* 称号セクション */
.achievements-section {
  background: #f9fafb;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .achievement-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .achievement-grid {
    grid-template-columns: 1fr;
  }
}

.achievement-card {
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  border: 2px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s;
}

.achievement-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.achievement-card.legendary {
  background: linear-gradient(135deg, #fef9c3 0%, #fef3c7 100%);
  border-color: #fde68a;
}

.achievement-card.epic {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border-color: #c4b5fd;
}

.achievement-card.rare {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #93c5fd;
}

.achievement-card.common {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-color: #d1d5db;
}

.achievement-rarity {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legendary .achievement-rarity { background: #fde68a; color: #92400e; }
.epic .achievement-rarity { background: #ddd6fe; color: #5b21b6; }
.rare .achievement-rarity { background: #bfdbfe; color: #1e40af; }
.common .achievement-rarity { background: #e5e7eb; color: #374151; }

.achievement-icon {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.achievement-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.35rem;
}

.achievement-card p {
  font-size: 0.8rem;
  color: #6b7280;
}

/* チームセクション */
.teams-section {
  background: #fff;
  padding: 3.5rem 0;
}

.league-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.league-label {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 1.5px solid;
}

.league-label.central {
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}

.league-label.pacific {
  background: #dbeafe;
  color: #1e40af;
  border-color: #93c5fd;
}

.teams-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.team-badge {
  display: inline-block;
  background: #f3f4f6;
  color: #374151;
  border-radius: 8px;
  padding: 0.3rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid #e5e7eb;
}

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

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

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

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

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

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

.price {
  margin: 2rem 0;
}

.price .amount {
  font-size: 3rem;
  font-weight: 800;
  color: #2563eb;
}

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

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

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

/* ダウンロードページ */
.download-section {
  padding: 4rem 0;
}

.download-card-web {
  border: 2px solid #2563eb;
}

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

.download-card {
  background: #fff;
  padding: 2rem;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
  border: 1px solid #e5e7eb;
  transition: transform 0.2s, box-shadow 0.2s;
}

.download-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(37,99,235,0.1);
}

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

.download-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: #111827;
  font-weight: 700;
}

.download-card p {
  color: #6b7280;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.btn-download {
  width: 100%;
  text-align: center;
  display: block;
  margin-bottom: 0.5rem;
}

.btn-download.btn-active {
  background: #1e3a8a;
  color: white;
  box-shadow: 0 6px 0 #0f1f4d, 0 8px 12px rgba(0,0,0,0.25);
  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.25);
  transform: translateY(2px);
}

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

.version {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

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

.system-requirements h3, .installation-guide h3 {
  margin-bottom: 1.5rem;
  color: #111827;
  font-weight: 700;
}

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

.requirements-grid h4 {
  margin-bottom: 0.5rem;
  color: #2563eb;
}

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

.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: #2563eb;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.step-content h4 {
  margin-bottom: 0.4rem;
  color: #111827;
  font-weight: 700;
}

.step-content p {
  color: #6b7280;
  font-size: 0.95rem;
}

/* ヘルプページ */
.help-card {
  background: #fff;
  padding: 2rem;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  margin-bottom: 1.5rem;
  border: 1px solid #e5e7eb;
}

.help-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: #111827;
  font-weight: 700;
}

.help-card h4 {
  font-size: 1.1rem;
  margin: 1.25rem 0 0.6rem;
  color: #2563eb;
  font-weight: 700;
}

.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: #2563eb;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

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

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

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

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

.faq-item h4 {
  color: #111827;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

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

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

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

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

.footer-section p {
  color: #9ca3af;
  line-height: 1.8;
  font-size: 0.9rem;
}

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

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

.footer-section a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.9rem;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #374151;
  color: #6b7280;
  font-size: 0.9rem;
}

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

.lang-btn {
  background: transparent;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.2s;
}

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

.lang-btn.active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

/* プライバシー・特商法ページ */
.privacy-section, .commercial-law-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 20px;
}

.privacy-section h2, .commercial-law-section h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #111827;
  font-weight: 800;
}

.last-updated {
  color: #9ca3af;
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.privacy-section h3, .commercial-law-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 2rem 0 1rem;
  border-left: 4px solid #2563eb;
  padding-left: 0.75rem;
}

.privacy-section p, .commercial-law-section p {
  color: #374151;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.privacy-section ul {
  list-style: none;
  margin-bottom: 1rem;
}

.privacy-section li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.info-table th {
  background: #eff6ff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  color: #1e40af;
  border: 1px solid #dbeafe;
  width: 30%;
}

.info-table td {
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  color: #374151;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .hero-content h2 {
    font-size: 2.25rem;
  }

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

  .section-title {
    font-size: 1.75rem;
  }

  .nav-menu {
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
  }

  .navbar .container {
    flex-direction: column;
    gap: 0.75rem;
  }

  .feature-grid, .download-grid, .requirements-grid {
    grid-template-columns: 1fr;
  }

  .cta h2 {
    font-size: 1.75rem;
  }

  .hero-stats {
    gap: 1.25rem;
  }
}
