/* ===== 変数 ===== */
:root {
  --bg-primary: #0a0e27;
  --bg-secondary: #151935;
  --bg-card: #1e2350;
  --text-primary: #ffffff;
  --text-secondary: #b8b8d1;
  --accent-blue: #4a90e2;
  --accent-green: #00d4aa;
  --accent-orange: #ff9500;
  --accent-purple: #a855f7;
  --accent-gray: #9ca3af;
  --border: #2a3060;
  --gradient: linear-gradient(135deg, #1e2350 0%, #0a0e27 100%);
}

/* ===== 基本設定 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

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

/* ===== ヘッダー ===== */
header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 700;
}

.logo img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.lang-switch {
  display: flex;
  gap: 8px;
}

.lang-switch a {
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  font-weight: 500;
}

.lang-switch a:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.lang-switch a.active {
  background: var(--accent-blue);
  color: white;
}

/* ===== ヒーローセクション ===== */
.hero {
  padding: 80px 0;
  text-align: center;
  background: var(--gradient);
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, #b8b8d1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
}

.app-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  margin-bottom: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--accent-blue);
  color: white;
  box-shadow: 0 8px 24px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(74, 144, 226, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--accent-blue);
}

/* ===== 機能セクション ===== */
.features {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 60px;
}

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

.feature-card {
  background: var(--bg-card);
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 28px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* カテゴリ色 */
.category-bank {
  background: rgba(74, 144, 226, 0.1);
  color: var(--accent-blue);
}
.category-emoney {
  background: rgba(0, 212, 170, 0.1);
  color: var(--accent-green);
}
.category-point {
  background: rgba(255, 149, 0, 0.1);
  color: var(--accent-orange);
}
.category-crypto {
  background: rgba(168, 85, 247, 0.1);
  color: var(--accent-purple);
}
.category-other {
  background: rgba(156, 163, 175, 0.1);
  color: var(--accent-gray);
}

/* ===== カテゴリセクション ===== */
.categories {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.category-item {
  background: var(--bg-card);
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.category-item:hover {
  border-color: var(--accent-blue);
}

.category-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.category-name {
  font-weight: 600;
  color: var(--text-primary);
}

/* ===== 連絡先セクション ===== */
.contact {
  padding: 80px 0;
  text-align: center;
}

.contact-card {
  background: var(--bg-card);
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.contact-card h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  padding: 12px 24px;
  border-radius: 8px;
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
}

.contact-email:hover {
  background: var(--accent-blue);
  color: white;
}

/* ===== フッター ===== */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-blue);
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .app-icon {
    width: 80px;
    height: 80px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .header-content {
    flex-direction: column;
    gap: 16px;
  }

  .section-title {
    font-size: 28px;
  }
}

/* ===== リダイレクトページ ===== */
.redirect-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.redirect-page .logo {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
}

.redirect-page p {
  color: var(--text-secondary);
  font-size: 18px;
}
