:root {
  --brand: #0a84ff;
  --ink: #1c1c1e;
  --gray: #6e6e73;
  --line: #e5e5ea;
  --bg-soft: #fffaf5;
  font-family: -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
}
h1,
h2,
h3 {
  line-height: 1.35;
}
section,
footer,
header.hero {
  padding: 40px 20px;
}
section > h2 {
  text-align: center;
  font-size: 24px;
  margin: 0 0 20px;
}
.what-is p,
.ai-notice p {
  max-width: 640px;
  margin: 8px auto;
  white-space: pre-line;
}

/* Hero: 純CSSクロスフェード(5枚×5秒、1秒フェード)。レイヤー: 画像 < オーバーレイ < コンテンツ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  margin: 16px;
  border-radius: 16px;
}
.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: hero-xfade 25s linear infinite;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgb(255 255 255 / 0%), rgb(255 255 255 / 45%));
}
.hero-content {
  position: relative;
}
.hero h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: -10px;
  color: #fff;
  font-size: 32px;
}
.hero h1 .logo {
  height: 84px;
}
.hero-content span {
  font-size: 16px;
  color: #fff;
}
@keyframes hero-xfade {
  0% {
    opacity: 0;
  }
  4% {
    opacity: 1;
  }
  24% {
    opacity: 1;
  }
  28% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slides img {
    animation: none;
  }
  .hero-slides img:first-child {
    opacity: 1;
  }
}

/* Movie: サムネイル→dialogモーダル再生(video直置きしない) */
.movie {
  padding: 0 0 20px;
  margin: -90px 0 0;
  text-align: center;
}
.movie-thumb {
  position: relative;
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: #fff;
  cursor: pointer;
  border: 20px solid #fff;
  border-radius: 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

@media (max-width: 640px) {
  .hero {
    margin: 8px;
  }

  .movie {
    margin: -90px 16px auto;
  }

  .movie-thumb {
    border-radius: 24px;
    border-width: 12px;
  }
}

.movie-thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgb(0 0 0 / 55%);
}
.play-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent #fff;
}
.movie-modal {
  border: 0;
  padding: 0;
  background: #000;
  border-radius: 12px;
  width: min(90vw, 960px);
}
.movie-modal::backdrop {
  background: rgb(0 0 0 / 70%);
}
.movie-modal video {
  display: block;
  width: 100%;
  height: auto;
}
.movie-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 60%);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

/* CTA: 左=アイコン、右=バッジ+商標(cta_layout.png準拠。モバイルは縦積み) */
.cta {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  background: var(--bg-soft);
}
.cta-icon {
  width: 120px;
  height: 120px;
  border-radius: 22%;
  flex: none;
}
.cta .badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.badge img {
  height: 54px;
  width: auto;
  display: block;
}
.badge-soon {
  opacity: 0.7;
}
.badge small {
  font-size: 11px;
  color: var(--gray);
}
.cta .trademarks {
  margin-top: 12px;
}
.trademark-note {
  font-size: 11px;
  color: var(--gray);
  margin: 2px 0 0;
  text-align: left;
}

.features ul {
  list-style: none;
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}
.features li {
  width: 220px;
  text-align: center;
}
.feature-shot {
  margin: 0 0 8px;
}
.feature-shot img,
.feature-shot .ph {
  width: 200px;
  height: 433px;
  border-radius: 14px;
  border: 1px solid var(--line);
  object-fit: cover;
}
.feature-shot .ph {
  display: grid;
  place-items: center;
  color: var(--gray);
  font-size: 13px;
  background: repeating-linear-gradient(
    45deg,
    #fafafa,
    #fafafa 10px,
    #f0f0f5 10px,
    #f0f0f5 20px
  );
}
.features h3 {
  margin: 4px 0;
  font-size: 16px;
}
.features p {
  margin: 0;
  font-size: 14px;
  color: var(--gray);
}

.ai-notice {
  background: var(--bg-soft);
  text-align: center;
}
.roadmap p {
  max-width: 640px;
  margin: 8px auto;
  color: var(--gray);
}

.site-footer {
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
  color: var(--gray);
}
.site-footer nav {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.site-footer a {
  color: var(--gray);
}

/* Markdownページ(法務・AI Disclosure) */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}
.doc h1 {
  font-size: 24px;
}
.doc h2 {
  font-size: 18px;
  margin-top: 32px;
}
.doc .back {
  font-size: 13px;
}
.doc .copyright {
  margin-top: 48px;
  font-size: 12px;
  color: var(--gray);
  text-align: center;
}
.doc p {
  white-space: pre-line;
}

/* 同意バナー */
#consent-banner {
  position: fixed;
  inset: auto 12px 12px;
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgb(0 0 0 / 12%);
  padding: 16px;
  font-size: 13px;
  z-index: 100;
}
#consent-banner p {
  margin: 0 0 12px;
}
.consent-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.consent-actions button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 16px;
  background: #fff;
  cursor: pointer;
}
.consent-actions button[data-consent="accept"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
