/* =========================================
   Work Mate — Landing Page Styles
   Color palette synced with app (main.css)
   ========================================= */

:root {
  --color-work: #667eea;
  --color-work-light: #7c8ff0;
  --color-break: #11998e;
  --color-slacking: #f093fb;
  --color-bg: #1a1a2e;
  --color-bg-light: #16213e;
  --color-bg-card: #1f2845;
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.6);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-accent: #667eea;
  --color-accent-hover: #7c8ff0;
  --font-ja: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  --font-en: 'Inter', sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-en), var(--font-ja);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-accent-hover);
}

/* ---- Language Toggle ---- */
[data-lang="ja"] .en { display: none; }
[data-lang="en"] .ja { display: none; }

.lang-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--color-border);
}

.lang-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 10px;
  transition: all 0.2s;
}

.lang-btn.active {
  color: var(--color-text);
  background: rgba(102, 126, 234, 0.25);
}

.lang-btn:hover {
  color: var(--color-text);
}

.lang-divider {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  user-select: none;
}

/* ---- Container ---- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Sections ---- */
.section {
  padding: 100px 0;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 48px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--font-en), var(--font-ja);
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), #764ba2);
  color: #fff;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(102, 126, 234, 0.45);
}

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

.btn-secondary:hover {
  color: var(--color-text);
  border-color: var(--color-accent);
  background: rgba(102, 126, 234, 0.08);
}

.btn-block {
  width: 100%;
}

.btn-icon {
  flex-shrink: 0;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #1a1a2e;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 46, 0) 0%,
    rgba(26, 26, 46, 0) 70%,
    rgba(26, 26, 46, 0.8) 90%,
    rgba(26, 26, 46, 1) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.hero-catchcopy {
  font-size: 2rem;
  font-weight: 500;
  line-height: 2.1;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.06em;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* 12vh base + 2.1em = <br>1行分。emはfont-sizeに連動するため
     レスポンシブでfont-sizeが変わっても<br>と同じスケーリングを維持 */
  padding-top: calc(12vh + 2.1em);
}

.hero-catchcopy em {
  font-style: normal;
  font-weight: 700;
  font-size: 2.3rem;
  color: #fff;
}

.hero-arrow {
  display: block;
  margin-top: 24px;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.5);
  animation: hero-arrow-bounce 2s ease-in-out infinite;
}

@keyframes hero-arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.hero-sub {
  margin-top: auto;
  padding-bottom: 48px;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: #fff;
}

.hero-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 28px;
  line-height: 1.8;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--font-en), var(--font-ja);
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-hero:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ========== Concept ========== */
.concept {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(102, 126, 234, 0.06) 0%, transparent 60%),
    var(--color-bg-light);
}

.concept-content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.concept-lead {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 2;
  margin-bottom: 32px;
  color: var(--color-text);
}

.concept-content .gallery-image-wrapper {
  margin: 32px auto;
  max-width: 520px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.concept-body {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.9;
  margin-top: 32px;
}

/* ========== Features ========== */
.features {
  background: var(--color-bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 36px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
  color: var(--color-accent);
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ========== Gallery ========== */
.gallery {
  background: var(--color-bg-light);
}

.gallery-states {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 72px;
}

.gallery-state {
  text-align: center;
}

.gallery-image-wrapper {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--color-border);
}

.gallery-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-state-label {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* DLC */
.gallery-dlc {
  text-align: center;
}

.gallery-dlc-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.gallery-dlc-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.gallery-dlc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.dlc-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.dlc-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-accent);
}

.dlc-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 1;
}

.dlc-image-placeholder {
  aspect-ratio: 1;
  background: var(--color-bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

/* ========== Video ========== */
.video-section {
  background: var(--color-bg);
}

.video-wrapper {
  max-width: 720px;
  margin: 48px auto 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
}

.video-wrapper iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
}

.video-placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
}

.video-placeholder svg {
  opacity: 0.3;
}

/* ========== Download ========== */
.download {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(102, 126, 234, 0.08) 0%, transparent 60%),
    var(--color-bg-light);
}

.download-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 48px auto 0;
}

.download-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.download-card-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(102, 126, 234, 0.12);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.download-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.download-card-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.download-card-price {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--color-text);
}

/* ========== Footer ========== */
.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 48px 0 32px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
}

.footer-credit {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.2s;
}

.footer-social:hover {
  color: var(--color-text);
  background: rgba(102, 126, 234, 0.15);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.footer-contact {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.footer-copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ========== Scroll Animations ========== */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .hero-catchcopy {
    font-size: 1.5rem;
  }

  .hero-catchcopy em {
    font-size: 1.7rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

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

  .features-grid {
    grid-template-columns: 1fr;
  }

  .gallery-states {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .download-options {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-catchcopy {
    font-size: 1.1rem;
    line-height: 1.9;
  }

  .hero-catchcopy em {
    font-size: 1.25rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-description {
    font-size: 0.85rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.88rem;
  }

  .feature-card {
    padding: 28px 20px;
  }

  .container {
    padding: 0 16px;
  }
}
