@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Kaisei+Decol:wght@700&family=Outfit:wght@700;800&display=swap');

:root {
  --primary: #FFD54F; /* ロゴのイエロー */
  --primary-dark: #FFC107;
  --accent: #F27121; /* ボタンのオレンジ */
  --accent-light: #FF8A4D;
  --bg-dark: #1e1e1e; /* シンプルなダークグレー */
  --bg-light: #f5f5f5;
  --card-bg: #2d2d2d;
  --glass-bg: #2d2d2d;
  --glass-border: #444;
  --text-main: #f0f0f0;
  --text-muted: #aaa;
  --transition: all 0.2s ease-in-out;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 0.6rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(30, 30, 30, 0.95);
  border-bottom: 1px solid var(--glass-border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
}

.logo img {
  height: 32px;
  width: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  display: block;
}

.logo span {
  font-family: 'Kaisei Decol', serif;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* 中央配置から上寄せに変更 */
  padding: 80px 5% 60px;
  background-color: var(--bg-dark);
}

.hero-image-container {
  width: 100%;
  max-width: 1000px;
  position: relative;
  z-index: 1;
}

.hero-banner-img,
.hero-banner-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-banner-video {
  position: absolute;
  top: 0;
  left: 0;
}

.hero-content {
  margin-top: 3rem;
  z-index: 10;
  text-align: center;
}

.hero::after { display: none; } /* 不要なオーバーレイを削除 */

/* Buttons */
.btn {
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

/* Sections */
section {
  padding: 100px 2%; /* 左右の余白を10%から2%に減らし、画面幅を最大限使う */
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem; /* 4remから2remに減らしてタイトルとカードの間隔を詰める */
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--glass-bg);
  padding: 2rem 1.5rem; /* 3.5rem 2.5remから減らしてカードをコンパクトにする */
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  text-align: center;
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* Steps Section */
.steps-container {
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h3 {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  padding: 50px 10%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--text-muted);
}

.footer-links {
  margin-top: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 1rem;
}

.footer-links a:hover {
  color: var(--text-main);
}

/* Screenshots Section */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.screenshot-card {
  background: #222;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  aspect-ratio: 9 / 19.5;
}

.screenshot-card img {
  width: 100%;
  height: 100%; /* 全て同じ高さになるように変更 */
  object-fit: cover; /* 余白なくピッタリとカードサイズにフィットさせる */
  object-position: top; /* 画面の上部が欠けないように基準を上に設定 */
  display: block;
}

.screenshots-gallery {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 2rem 0;
  scrollbar-width: none;
}

.screenshots-gallery::-webkit-scrollbar {
  display: none;
}

.screenshot-item {
  flex: 0 0 300px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border: 4px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}

.screenshot-item img {
  width: 100%;
  display: block;
}

.screenshot-item:hover {
  transform: scale(1.05);
  border-color: var(--primary);
}

.screenshot-label {
  text-align: center;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .nav-links { display: none; }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  
  .hero {
    padding: 100px 5% 40px;
  }
  
  section {
    padding: 60px 5%;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}
