/* =========================================================
   Kokera LP - Main Stylesheet
   アプリのダークテーマに合わせたカラースキーム
   ========================================================= */

:root {
  /* Colors - アプリのトーンと合わせる */
  --bg-base: #0b0b0f;
  --bg-elevated: #17171c;
  --bg-card: #1c1c22;
  --bg-card-hover: #25252d;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #ffffff;
  --text-muted: #b2b2b8;
  --text-dim: #7a7a82;

  --accent: #ffeb3b;       /* アプリのシードカラー */
  --accent-dark: #f5d800;
  --accent-red: #ff2a2a;   /* アプリのアクセントレッド */
  --accent-red-dark: #e21e1e;

  /* Typography */
  --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif;
  --font-display: 'Space Grotesk', 'Noto Sans JP', sans-serif;

  /* Layout */
  --container: 1180px;
  --radius: 14px;
  --radius-lg: 20px;

  /* Shadow */
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(255, 235, 59, 0.25);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.container {
  width: min(var(--container), 100% - 40px);
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0;
  margin: 0 0 16px;
}

.section-lead {
  color: var(--text-muted);
  margin: 0;
  font-size: 15px;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-align: center;
  white-space: nowrap;
}
.btn-sm { padding: 10px 20px; font-size: 13px; }

.btn-primary {
  background: var(--accent);
  color: #1a1a00;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-light {
  background: #fff;
  color: var(--accent-red);
}
.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(11, 11, 15, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(11, 11, 15, 0.85);
}

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

.logo { display: flex; align-items: center; }
.logo-img { height: 34px; width: auto; }

.site-nav {
  display: flex;
  gap: 28px;
  margin-inline-start: auto;
  margin-inline-end: 16px;
  font-size: 14px;
  font-weight: 500;
}
.site-nav a {
  color: var(--text-muted);
  transition: color .15s ease;
}
.site-nav a:hover { color: var(--text); }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  transition: transform .2s ease, opacity .2s ease;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: 140px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255, 235, 59, 0.15), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(255, 42, 42, 0.2), transparent 50%),
    linear-gradient(180deg, rgba(11,11,15,0.4) 0%, rgba(11,11,15,0.95) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: clamp(34px, 5.5vw, 60px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0 0 24px;
}
.hero-title .accent { color: var(--accent); }
.hero-title .accent-red { color: var(--accent-red); }
.catch-line { display: block; }

.hero-lead {
  font-size: 17px;
  color: var(--text-muted);
  margin: 0 0 36px;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.04);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Hero visual - 3 phones */
.hero-visual {
  position: relative;
  height: 540px;
}
.phone {
  position: absolute;
  border-radius: 32px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow-lg);
  background: #000;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone-1 {
  width: 230px;
  height: 460px;
  top: 40px;
  left: 20%;
  transform: rotate(-6deg);
  z-index: 2;
}
.phone-2 {
  width: 250px;
  height: 500px;
  top: 0;
  right: 10%;
  transform: rotate(4deg);
  z-index: 3;
}
.phone-3 {
  width: 200px;
  height: 400px;
  bottom: 30px;
  left: 0;
  transform: rotate(-10deg);
  z-index: 1;
  opacity: 0.85;
}

/* =========================================================
   Features
   ========================================================= */
.features {
  padding: 120px 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 235, 59, 0.08), transparent 60%),
    var(--bg-base);
}

.feature-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
  line-height: 1.75;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 235, 59, 0.2), rgba(255, 42, 42, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon img {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1);
}

/* =========================================================
   Screens
   ========================================================= */
.screens {
  padding: 120px 0;
  background: var(--bg-elevated);
  position: relative;
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.screen-item {
  margin: 0;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform .2s ease;
}
.screen-item:hover {
  transform: translateY(-4px);
}
.screen-item img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}
.screen-item figcaption {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* =========================================================
   Lineup
   ========================================================= */
.lineup {
  padding: 120px 0;
  background: var(--bg-base);
}

.lineup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card,
.upcoming-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.work-card:hover,
.upcoming-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}
.work-card img {
  width: 100%;
  aspect-ratio: 120 / 63;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}
.work-card h3,
.upcoming-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
}
.work-card h3 {
  padding: 18px 20px 20px;
}

.upcoming-card {
  min-height: 100%;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(255, 235, 59, 0.14), rgba(255, 42, 42, 0.13)),
    var(--bg-card);
}
.upcoming-card p:not(.eyebrow) {
  color: var(--text-muted);
  margin: 12px 0 0;
  font-size: 14px;
}

/* =========================================================
   Submission
   ========================================================= */
.submission {
  padding: 120px 0;
  background: var(--bg-elevated);
}

.submission-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 52px;
  align-items: center;
}

.submission-visual {
  position: relative;
  min-height: 300px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 235, 59, 0.22), transparent 34%),
    radial-gradient(circle at 84% 18%, rgba(255, 42, 42, 0.36), transparent 30%),
    linear-gradient(135deg, #2d0c4d 0%, #14142b 52%, #07070c 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.submission-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 11, 15, 0.42) 0%, rgba(11, 11, 15, 0.08) 58%, rgba(11, 11, 15, 0.5) 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 86px);
}
.submission-visual img {
  position: absolute;
  right: 8%;
  bottom: -36%;
  width: min(34%, 180px);
  min-width: 128px;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  transform: rotate(4deg);
}
.submission-visual-copy {
  position: absolute;
  left: 9%;
  top: 50%;
  transform: translateY(-50%);
}
.submission-visual-copy span {
  display: block;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.submission-visual-copy strong {
  display: block;
  color: var(--text);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.22;
  text-shadow: 0 0 28px rgba(255, 42, 42, 0.4);
}

.submission-copy h2 {
  margin: 0 0 20px;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  line-height: 1.4;
}
.submission-copy p:not(.eyebrow) {
  color: var(--text-muted);
  margin: 0 0 30px;
  font-size: 15px;
  line-height: 1.9;
}

/* =========================================================
   Download
   ========================================================= */
.download {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(255, 42, 42, 0.15), transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(255, 235, 59, 0.1), transparent 60%),
    var(--bg-base);
}

.download-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}

.store-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  transition: transform .15s ease, box-shadow .2s ease;
}
.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
/* App Store / Google Play の公式バッジを同じ高さで揃える */
.store-badge {
  height: 52px;
  width: auto;
  display: block;
}

.download-note {
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-dim);
}

.download-visual {
  display: flex;
  justify-content: center;
}
.app-icon-lg {
  width: 260px;
  height: 260px;
  border-radius: 56px;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.1) inset;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq {
  padding: 120px 0;
  background: var(--bg-elevated);
}

.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq-item.open {
  border-color: var(--border-strong);
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform .25s ease;
}
.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.faq-item.open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  padding: 0 24px;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding-bottom: 20px;
}
.faq-a p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* =========================================================
   Company
   ========================================================= */
.company {
  padding: 120px 0;
  background: var(--bg-base);
}

.company-table {
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.company-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  gap: 20px;
}
.company-row:last-child { border-bottom: none; }

.company-row dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
.company-row dd {
  margin: 0;
  font-size: 15px;
}
.company-row a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.company-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.company-links a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
  transition: color .15s ease, border-color .15s ease;
  font-size: 14px;
}
.company-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

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

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.footer-logo { height: 30px; }

.footer-tagline {
  color: var(--text-muted);
  margin: 0;
  font-size: 13px;
}

.footer-social {
  display: flex;
  gap: 14px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, border-color .15s ease;
}
.footer-social a:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}
.footer-social img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .hero {
    padding: 110px 0 60px;
    min-height: auto;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-copy { text-align: center; }
  .hero-ctas { justify-content: center; }
  .hero-badges { justify-content: center; }

  .hero-visual {
    height: 420px;
    max-width: 420px;
    margin-inline: auto;
  }
  .phone-1 { left: 8%; }
  .phone-2 { right: 8%; }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .screens-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lineup-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .submission-card {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .submission-copy {
    text-align: center;
  }
  .download-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .download-visual { order: -1; }
  .app-icon-lg {
    width: 180px;
    height: 180px;
    border-radius: 40px;
  }
  .store-buttons { justify-content: center; }

  .site-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: block; }

  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    padding: 20px;
    gap: 20px;
  }

  .features, .screens, .lineup, .submission, .download, .faq, .company {
    padding: 80px 0;
  }

  .company-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 20px;
  }
}

@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .screens-grid {
    grid-template-columns: 1fr;
  }
  .lineup-grid {
    grid-template-columns: 1fr;
  }
  .submission-visual {
    min-height: 260px;
  }
  .submission-visual img {
    right: 4%;
    width: 36%;
    min-width: 116px;
  }
  .submission-visual-copy {
    left: 7%;
  }
  .hero-visual {
    height: 360px;
  }
  .phone-1 {
    width: 180px; height: 360px;
    left: 4%; top: 30px;
  }
  .phone-2 {
    width: 200px; height: 400px;
    right: 4%;
  }
  .phone-3 {
    display: none;
  }
  .store-btn { flex: 0 0 auto; }
}

/* =========================================================
   Motion: respect reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
