/* =============================================
   おまえどこのだれやねん — Website Styles
   ============================================= */

:root {
  --primary: #1800AD;
  --primary-light: #3a2fc9;
  --orange: #FF8C00;
  --orange-light: #ffb347;
  --accent: #ff3b7f;
  --bg-light: #fff9f0;
  --text-dark: #1a1a2e;
  --text-mid: #444;
  --radius: 20px;
  --shadow: 0 8px 32px rgba(0,0,0,0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Helvetica Neue', 'Hiragino Kaku Gothic ProN', 'Arial', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.7;
}

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

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(24,0,173,0.1);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.header-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.3px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn {
  background: none;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn.active,
.lang-btn:hover {
  background: var(--primary);
  color: #fff;
}

.lang-sep { color: #ccc; font-size: 0.9rem; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 24px 60px;
  gap: 60px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #ff9a3c 0%, #ff6f61 35%, #c94fff 70%, #1800AD 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* Decorative floating characters */
.deco-chara {
  position: absolute;
  width: 120px;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

.deco-tl { top: 40px;  left:  30px;  transform: rotate(-15deg); }
.deco-tr { top: 40px;  right: 30px;  transform: rotate(15deg);  }
.deco-bl { bottom: 40px; left:  30px; transform: rotate(10deg);  }
.deco-br { bottom: 40px; right: 30px; transform: rotate(-10deg); }

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 560px;
}

.hero-logo {
  width: min(340px, 85vw);
  margin: 0 auto 24px;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.35));
}

.hero-catch {
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-bottom: 10px;
}

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.88);
  margin-bottom: 36px;
}

.cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 800;
  padding: 16px 40px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.3px;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.hero-phone {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero-devices {
  position: relative;
  width: 360px;
  height: 440px;
}

.tablet-frame {
  position: absolute;
  left: 0;
  top: 0;
  width: 230px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 0 0 3px rgba(255,255,255,0.2);
  border: 3px solid rgba(255,255,255,0.3);
  background: #000;
  transform: rotate(-3deg);
  z-index: 0;
}

.tablet-frame img {
  width: 100%;
  display: block;
}

.hero-devices .phone-frame {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  transform: rotate(2deg);
}

.devices-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.5px;
  text-align: center;
}

/* ===================== PHONE FRAME ===================== */
.phone-frame {
  width: 220px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 0 0 3px rgba(255,255,255,0.2);
  border: 3px solid rgba(255,255,255,0.3);
  background: #000;
}

.phone-frame img {
  width: 100%;
  display: block;
}

.phone-frame.small {
  width: 160px;
  border-radius: 24px;
  border-color: rgba(24,0,173,0.2);
  box-shadow: var(--shadow);
}

/* ===================== SECTIONS ===================== */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 900;
  color: var(--primary);
  text-align: center;
  margin-bottom: 48px;
}

.section-title.left {
  text-align: left;
}

.section-note {
  text-align: center;
  font-size: 0.82rem;
  color: #888;
  margin-top: -32px;
  margin-bottom: 32px;
}

/* ===================== CHARACTERS ===================== */
.characters {
  background: var(--bg-light);
}

.chara-desc {
  text-align: center;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-mid);
  margin: -28px auto 40px;
  max-width: 640px;
}

.chara-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.chara-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 12px 16px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.chara-card:hover {
  transform: translateY(-6px);
}

.chara-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.chara-card span {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary);
}

/* ===================== ABOUT ===================== */
.about {
  background: #fff;
}

.about-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-text-block {
  flex: 1;
  min-width: 0;
}

.about-phone {
  flex-shrink: 0;
}

.about-text {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-mid);
  line-height: 1.9;
}

/* ===================== FEATURES ===================== */
.features {
  background: linear-gradient(180deg, var(--bg-light) 0%, #fff 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
  text-align: center;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.feature-chara {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin: 0 auto 8px;
}

.feature-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ===================== HOW TO PLAY ===================== */
.howto {
  background: var(--primary);
}

.howto .section-title {
  color: #fff;
}

.howto-inner {
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

.howto-inner .steps {
  flex: 1;
  margin-bottom: 0;
}

.howto-phone {
  flex-shrink: 0;
  align-self: center;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 680px;
  margin: 0 auto 48px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.2);
}

.step-num {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--orange);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255,140,0,0.4);
}

.step-body h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.step-body p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
}

/* ===================== SCREENSHOTS ===================== */
.screenshots {
  background: #fff;
}

.screenshots .section-inner {
  padding-bottom: 0;
}

.ss-swiper {
  padding: 16px 0 56px;
  overflow: hidden;
}

.ss-swiper .swiper-slide {
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ss-swiper .swiper-slide p {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-mid);
  text-align: center;
}

.ss-swiper .swiper-slide .phone-frame.small {
  width: 200px;
  border-radius: 30px;
}

.ss-swiper .swiper-button-prev,
.ss-swiper .swiper-button-next {
  color: var(--primary);
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(24,0,173,0.15);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  top: calc(50% - 20px);
  transition: background 0.2s, color 0.2s;
}

.ss-swiper .swiper-button-prev::after,
.ss-swiper .swiper-button-next::after {
  font-size: 1.1rem;
  font-weight: 900;
}

.ss-swiper .swiper-button-prev:hover,
.ss-swiper .swiper-button-next:hover {
  background: var(--primary);
  color: #fff;
}

.ss-swiper .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  background: #ddd;
  opacity: 1;
  transition: background 0.2s, transform 0.2s;
}

.ss-swiper .swiper-pagination-bullet-active {
  background: var(--primary);
  transform: scale(1.3);
}

/* ===================== DOWNLOAD ===================== */
.download {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ff9a3c 0%, #ff6f61 50%, var(--primary) 100%);
  text-align: center;
}

.download .section-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.dl-chara {
  position: absolute;
  width: 160px;
  bottom: 0;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

.dl-left  { left:  20px; transform: scaleX(-1); }
.dl-right { right: 20px; }

.dl-icon {
  width: 100px;
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.download h2 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.download p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.88);
}

.appstore-btn {
  display: inline-block;
  transition: transform 0.2s, opacity 0.2s;
}

.appstore-btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.coming-soon {
  font-size: 0.85rem !important;
  color: rgba(255,255,255,0.65) !important;
}

/* ===================== MUSIC ===================== */
.music {
  background: #fff;
}

.music-lead {
  text-align: center;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-mid);
  margin: -28px auto 40px;
  max-width: 640px;
}

.music-overall-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.music-platform-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.music-platform-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}

.music-spotify { background: #1DB954; color: #fff; }
.music-apple   { background: #fc3c44; color: #fff; }

.music-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.music-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 20px 12px 16px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.music-card:hover {
  transform: translateY(-6px);
}

.music-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.music-card > span {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary);
  text-align: center;
}

.music-links {
  display: flex;
  gap: 8px;
}

.music-sm-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.2s, opacity 0.2s;
}

.music-sm-btn:hover {
  transform: scale(1.15);
  opacity: 0.85;
}

.music-song-name {
  font-size: 0.76rem;
  color: var(--text-mid);
  text-align: center;
  opacity: 0.7;
  margin-top: -2px;
  line-height: 1.4;
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 32px 24px;
  font-size: 0.88rem;
}

.footer-hash {
  margin-top: 6px;
  color: rgba(255,255,255,0.3);
}

.sns-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}

.sns-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.sns-link:hover {
  background: rgba(255,255,255,0.22);
  color: #fff;
  transform: translateY(-3px);
}

.sns-link.sns-spotify:hover { background: #1DB954; color: #fff; border-color: #1DB954; }
.sns-link.sns-apple:hover   { background: #fc3c44; color: #fff; border-color: #fc3c44; }

/* ===================== FLOATING CHARACTERS ===================== */
#float-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.float-chara {
  position: absolute;
  bottom: -100px;
  display: block;
  object-fit: contain;
  animation: floatUp linear forwards;
  will-change: transform, opacity;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg) scale(1);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  50% {
    transform: translateY(-50vh) translateX(var(--drift)) rotate(20deg) scale(1.05);
  }
  92% {
    opacity: 1;
  }
  100% {
    transform: translateY(-110vh) translateX(calc(var(--drift) * 1.6)) rotate(40deg) scale(0.9);
    opacity: 0;
  }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .chara-grid,
  .music-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-inner {
    flex-direction: column;
  }

  .about-phone {
    align-self: center;
  }

  .howto-inner {
    flex-direction: column;
  }

  .howto-phone {
    align-self: center;
  }

  .section-title.left {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px 40px;
    gap: 40px;
  }

  .hero-phone { display: none; }

  .deco-chara { width: 70px; }

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

  .ss-swiper .swiper-button-prev,
  .ss-swiper .swiper-button-next { display: none; }

  .chara-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .dl-chara { width: 90px; }
}

@media (max-width: 480px) {
  .chara-grid,
  .music-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .deco-chara { display: none; }
}
