/* ========================================
   Teiten LP — style.css
   Design System: fryx404 Pop
   ======================================== */

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

:root {
  /* Colors — Light */
  --bg:       #FFFFFF;
  --surface:  #FFFFFF;
  --primary:  #00D1FF;
  --primary-dark: #00A3CC;
  --accent:   #FFD600;
  --text:     #2D3436;
  --text-sub: #636E72;
  --shadow:   0 8px 32px rgba(0, 209, 255, 0.12);
  --shadow-sm: 0 2px 12px rgba(0, 209, 255, 0.08);
  --card-bg:  #F8FAFB;
  --border:   rgba(0,0,0,0.06);

  /* Element Specific Light Variables */
  --header-bg: rgba(255,255,255,0.82);
  --mockup-shadow: 0 20px 60px rgba(0, 209, 255, 0.18);
  --icon-wrap-bg: linear-gradient(135deg, rgba(0,209,255,0.10), rgba(0,209,255,0.04));

  /* Typography */
  --font-en: 'Outfit', 'Inter', sans-serif;
  --font-jp: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  --font: var(--font-jp), var(--font-en);

  /* Spacing */
  --section-y: 120px;
  --max-w: 1120px;
  --radius: 20px;
  --radius-sm: 12px;
}

/* ---------- Dark Mode ---------- */
:root[data-theme="dark"] {
  --bg:       #000000;
  --surface:  #1A1A1A;
  --text:     #F5F5F5;
  --text-sub: #B0B0B0;
  --shadow:   0 8px 32px rgba(0, 209, 255, 0.06);
  --shadow-sm: 0 2px 12px rgba(0, 209, 255, 0.04);
  --card-bg:  #111111;
  --border:   rgba(255,255,255,0.08);

  /* Element Specific Dark Variables */
  --header-bg: rgba(0,0,0,0.82);
  --mockup-shadow: 0 20px 60px rgba(0, 209, 255, 0.10);
  --icon-wrap-bg: linear-gradient(135deg, rgba(0,209,255,0.15), rgba(0,209,255,0.06));
}

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

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

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

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Utilities ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.3s ease;
}
.header__logo:hover {
  opacity: 0.7;
}

.header__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.header__title {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.header__nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.header__link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-sub);
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}
.header__link:hover {
  color: var(--primary);
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-sub);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.3s ease, background 0.3s ease;
}
.theme-toggle:hover {
  color: var(--primary);
  background: rgba(0, 209, 255, 0.08);
}
.theme-toggle__icon {
  width: 18px;
  height: 18px;
}
/* Theme based icon visibility */
:root[data-theme="dark"] .theme-toggle__icon--moon { display: none; }
:root[data-theme="dark"] .theme-toggle__icon--sun { display: block; }
:root[data-theme="light"] .theme-toggle__icon--sun { display: none; }
:root[data-theme="light"] .theme-toggle__icon--moon { display: block; }

/* ---------- Hero ---------- */
.hero {
  padding: var(--section-y) 24px;
  overflow: hidden;
}

.hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero__text {
  flex: 1;
  min-width: 0;
}

.hero__heading {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero__accent {
  color: var(--primary);
  position: relative;
}
.hero__accent::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--accent);
  border-radius: 3px;
  opacity: 0.6;
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero__badge-link {
  display: inline-block;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.hero__badge-link:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.hero__badge {
  height: 60px;
  width: auto;
}

/* Mockup visual */
.hero__visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.hero__mockup-wrapper {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.hero__mockup {
  width: 460px;
  max-width: 100%;
  border-radius: var(--radius);
  filter: drop-shadow(var(--mockup-shadow));
}

/* Floating decorative dots */
.hero__dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero__dot--1 {
  width: 16px;
  height: 16px;
  background: var(--primary);
  top: -20px;
  right: -10px;
  animation: float-dot 4s ease-in-out infinite;
  opacity: 0.7;
}

.hero__dot--2 {
  width: 10px;
  height: 10px;
  background: var(--accent);
  bottom: 40px;
  left: -20px;
  animation: float-dot 5s ease-in-out infinite 0.5s;
  opacity: 0.6;
}

.hero__dot--3 {
  width: 8px;
  height: 8px;
  background: var(--primary);
  top: 50%;
  right: -30px;
  animation: float-dot 3.5s ease-in-out infinite 1s;
  opacity: 0.4;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes float-dot {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-4px, -8px); }
}

/* ---------- Features ---------- */
.features {
  padding: var(--section-y) 24px;
  background: var(--card-bg);
}

.features__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.features__heading {
  text-align: center;
  font-weight: 800;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  margin-bottom: 56px;
  letter-spacing: -0.02em;
}

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

/* Card */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: default;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.card__icon-wrap {
  width: 64px;
  height: 64px;
  background: var(--icon-wrap-bg);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.card__icon {
  width: 36px;
  height: 36px;
  color: var(--text);
}

.card__title {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.card__desc {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.75;
}

/* ---------- Bottom CTA ---------- */
.bottom-cta {
  padding: var(--section-y) 24px;
  background: linear-gradient(135deg, #00D1FF, #0090CC);
  color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative background pattern */
.bottom-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,214,0,0.12) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(255,255,255,0.08) 0%, transparent 40%);
  pointer-events: none;
}

.bottom-cta__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

.bottom-cta__heading {
  font-weight: 800;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.bottom-cta__sub {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 36px;
}

.bottom-cta__badge-link {
  display: inline-block;
  transition: transform 0.3s ease, filter 0.3s ease;
  background: rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 8px 12px;
  backdrop-filter: blur(8px);
}
.bottom-cta__badge-link:hover {
  transform: translateY(-3px) scale(1.02);
  background: rgba(255,255,255,0.25);
}

.bottom-cta__badge {
  height: 64px;
  width: auto;
}

/* ---------- Footer ---------- */
.footer {
  padding: 48px 24px 36px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer__links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer__link {
  font-size: 0.85rem;
  color: var(--text-sub);
  transition: color 0.3s ease;
}
.footer__link:hover {
  color: var(--primary);
}

.footer__sep {
  color: var(--text-sub);
  opacity: 0.4;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.footer__disclaimer {
  font-size: 0.7rem;
  color: var(--text-sub);
  opacity: 0.6;
}

/* ========================================
   Responsive
   ======================================== */

/* Tablet */
@media (max-width: 900px) {
  :root {
    --section-y: 80px;
  }

  .hero__inner {
    flex-direction: column;
    text-align: center;
    gap: 48px;
  }

  .hero__sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__cta {
    justify-content: center;
  }

  .features__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
    gap: 20px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  :root {
    --section-y: 64px;
  }

  .header__inner {
    height: 56px;
    padding: 0 16px;
  }

  .header__nav {
    gap: 14px;
  }

  .header__link {
    font-size: 0.75rem;
  }

  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero__heading {
    font-size: 1.75rem;
  }

  .hero__sub {
    font-size: 0.95rem;
  }

  .hero__mockup {
    width: 320px;
  }

  .hero__badge {
    height: 48px;
  }

  .features {
    padding-left: 16px;
    padding-right: 16px;
  }

  .card {
    padding: 28px 24px;
  }

  .bottom-cta {
    padding-left: 16px;
    padding-right: 16px;
  }

  .bottom-cta__badge {
    height: 52px;
  }

  .footer {
    padding: 36px 16px 28px;
  }
}

/* 機能の下の、使い方ページへの導線 */
.features__more {
  text-align: center;
  margin-top: 40px;
}

.features__more-link {
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.features__more-link:hover {
  text-decoration: underline;
}

/* Promotional media */
section[id] { scroll-margin-top: 88px; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--primary-dark); outline-offset: 6px; }
.eyebrow { font-family: var(--font-en); font-size: .78rem; font-weight: 800; letter-spacing: .18em; margin-bottom: 18px; }
.hero { background: radial-gradient(circle, #00d1ff20 1.5px, transparent 2px) right top / 24px 24px; }
.hero__cta { flex-wrap: wrap; }
.hero__note { color: var(--text-sub); font-size: .75rem; margin-top: 18px; }
.movie-link { display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 700; padding: 12px 16px; border: 1px solid var(--text); border-radius: 100px; background: var(--surface); }
.movie-link span { font-size: .7rem; }
.movie-link:hover { background: var(--accent); color: #20282b; }
.media-inner { max-width: var(--max-w); margin: auto; min-width: 0; }
.media-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 38px; }
.media-heading h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; line-height: 1.45; letter-spacing: -.04em; }
.media-intro { font-size: .95rem; line-height: 1.95; }
.movie { padding: 88px 24px; color: #20282b; background: #FFD600; }
.movie .eyebrow { display: inline-block; padding: 5px 12px; background: #fff; border: 1px solid #20282b; transform: rotate(-3deg); }
.movie__frame { aspect-ratio: 16 / 9; width: 100%; border: 2px solid #20282b; border-radius: 24px; overflow: hidden; background: #00c3e7; box-shadow: 8px 8px 0 #20282b; }
.movie__poster { width: 100%; height: 100%; position: relative; display: grid; place-items: center; }
.movie__poster > img { width: 100%; height: 100%; object-fit: contain; }
.movie__play { position: absolute; bottom: 24px; display: flex; align-items: center; gap: 12px; padding: 8px 22px 8px 8px; border: 2px solid #20282b; border-radius: 100px; background: #fff; color: #20282b; font-size: .9rem; font-weight: 800; box-shadow: 4px 4px 0 #20282b; transition: transform .2s; }
.movie__play-icon { width: 46px; height: 46px; display: grid; place-items: center; padding-left: 3px; background: #FFD600; border-radius: 50%; }
.movie__poster:hover .movie__play { transform: translateY(-4px); }
.movie__poster:focus-visible { outline-offset: -7px; }
.movie__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.movie__foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 24px; font-size: .78rem; }
.movie__foot a { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.gallery { padding: 100px 24px 80px; background: var(--bg); }
.gallery .eyebrow, .gallery .media-intro { color: var(--text-sub); }
.gallery__controls { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }
.gallery__controls[hidden] { display: none; }
.gallery__controls button { font-size: 1.35rem; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--text); color: var(--text); background: var(--surface); cursor: pointer; }
.gallery__controls button:hover:not(:disabled) { background: var(--accent); color: #20282b; }
.gallery__controls button:disabled { opacity: .3; cursor: default; }
.gallery__track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-color: var(--primary) var(--card-bg); padding: 10px 4px 24px; scroll-padding-inline: 4px; }
.gallery__item { flex: 0 0 calc((100% - 48px) / 3); min-width: 0; scroll-snap-align: start; }
.gallery__item a { display: block; overflow: hidden; border-radius: 18px; border: 1px solid var(--border); transition: transform .2s; }
.gallery__item a:hover { transform: translateY(-5px); }
.gallery__item img { width: 100%; aspect-ratio: 9/16; }
.gallery__item figcaption { margin-top: 16px; font-size: .84rem; font-weight: 700; }
.gallery__item figcaption span { font-family: var(--font-en); color: var(--text-sub); margin-right: 8px; font-weight: 400; }
.gallery__hint { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; color: var(--text-sub); font-size: .75rem; }
.gallery__hint > span:last-child { margin-left: auto; }
@media (max-width: 900px) {
  .media-heading { align-items: flex-start; }
  .gallery__item { flex-basis: 42%; }
}
@media (max-width: 600px) {
  .movie, .gallery { padding: 60px 20px; }
  .media-heading { flex-direction: column; gap: 20px; margin-bottom: 28px; }
  .media-heading > div { width: 100%; }
  .media-intro { font-size: .85rem; }
  .gallery__controls { justify-content: flex-start; margin-top: 18px; }
  .gallery__item { flex-basis: 82%; }
  .gallery__track { gap: 16px; }
  .gallery__hint > span:last-child { margin-left: 0; }
  .movie__frame { border-radius: 14px; box-shadow: 5px 5px 0 #20282b; }
  .movie__play { bottom: 10px; font-size: .75rem; gap: 8px; padding: 5px 14px 5px 5px; box-shadow: 2px 2px 0 #20282b; }
  .movie__play-icon { width: 30px; height: 30px; }
  .hero__cta { gap: 12px; }
  .movie-link { font-size: .75rem; padding: 10px 12px; }
  .header__nav { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fade-in { opacity: 1; transform: none; }
}
