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

:root {
  --red:    #CC2200;
  --orange: #FF6B00;
  --cream:  #FFF8EE;
  --brown:  #7A3A00;
  --text:   #2A1A00;
  --white:  #FFFFFF;
  --shadow: 0 4px 24px rgba(0,0,0,0.12);
  --radius: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ========== Navigation ========== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}

.nav-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brown);
  flex: 1;
}

.nav-btn {
  background: var(--red);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.nav-btn:hover {
  background: var(--orange);
  transform: translateY(-1px);
}

/* ========== Hero ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #6B1000 0%, #CC2200 35%, #FF6B00 70%, #FFB347 100%);
  padding: 100px 24px 80px;
  gap: 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 0 0 auto;
}

.hero-img {
  max-width: 300px;
  width: 100%;
  margin: 0 auto 28px;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,0.45));
  animation: float 3.5s ease-in-out infinite;
}

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

.hero-text {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 36px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
  line-height: 1.8;
}

.hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.deco-head {
  position: absolute;
  opacity: 0.18;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.d1 { width: 130px; top: 12%; left: 5%;  animation: float 4s   ease-in-out infinite; }
.d2 { width: 100px; top: 55%; left: 2%;  animation: float 5s   ease-in-out infinite 1s; }
.d3 { width: 150px; top: 10%; right: 4%; animation: float 3.5s ease-in-out infinite 0.5s; }

.deco-hammer {
  position: absolute;
  width: 100px;
  bottom: 15%;
  right: 6%;
  opacity: 0.2;
  transform: rotate(30deg);
  animation: float 4.5s ease-in-out infinite 1.5s;
}

/* ========== App Store Button ========== */
.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  border-radius: 14px;
  padding: 13px 26px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  transition: transform 0.25s, box-shadow 0.25s;
}

.btn-appstore:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

.btn-appstore span {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-align: left;
}

.btn-appstore small {
  font-size: 0.68rem;
  font-weight: 400;
  opacity: 0.85;
}

.btn-appstore strong {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.btn-appstore.large {
  padding: 16px 36px;
  border-radius: 18px;
}

.btn-appstore.large strong {
  font-size: 1.25rem;
}

/* ========== Section Common ========== */
section { padding: 100px 0; }

.section-title {
  font-size: 2rem;
  font-weight: 900;
  text-align: center;
  color: var(--brown);
  margin-bottom: 16px;
}

.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: linear-gradient(to right, var(--red), var(--orange));
  margin: 14px auto 0;
  border-radius: 2px;
}

.section-sub {
  text-align: center;
  color: #777;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 52px;
}

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

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

.feature-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-icon {
  font-size: 3.2rem;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 12px;
}

.feature-card p {
  color: #555;
  line-height: 1.8;
  font-size: 0.92rem;
}

/* ========== How to Play ========== */
.howto {
  background: linear-gradient(160deg, #FFF8EE 0%, #FFE8CC 100%);
}

.howto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 52px;
  align-items: start;
}

.howto-step { text-align: center; }

.step-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: var(--white);
  font-weight: 900;
  font-size: 0.8rem;
  padding: 6px 20px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.12em;
}

.howto-img {
  width: 100%;
  max-width: 300px;
  margin: 0 auto 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.howto-step h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 10px;
}

.howto-step p {
  color: #555;
  line-height: 1.8;
  font-size: 0.92rem;
  max-width: 280px;
  margin: 0 auto;
}

/* ========== Characters ========== */
.characters { background: var(--white); }

.char-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 52px;
}

.char-card {
  text-align: center;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px 12px 20px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.char-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 16px 40px rgba(0,0,0,0.16);
}

.char-img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  margin: 0 auto 14px;
}

.char-name {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--brown);
  margin-bottom: 8px;
  line-height: 1.4;
}

.char-stars { font-size: 0.95rem; margin-bottom: 6px; }
.star     { color: #DDD; }
.star.on  { color: #FFB700; }

.char-diff {
  font-size: 0.72rem;
  color: #999;
}

/* ========== Download ========== */
.download {
  background: linear-gradient(135deg, #6B1000, #CC2200, #FF6B00);
  text-align: center;
  color: var(--white);
}

.dl-icon {
  width: 110px;
  height: 110px;
  border-radius: 22px;
  margin: 0 auto 32px;
  box-shadow: 0 8px 36px rgba(0,0,0,0.35);
}

.download h2 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.download p {
  font-size: 1.05rem;
  margin-bottom: 38px;
  opacity: 0.9;
}

/* ========== Footer ========== */
.footer {
  background: #180A00;
  color: #AAA;
  padding: 52px 0;
  text-align: center;
}

.footer-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  margin: 0 auto 14px;
}

.footer-app {
  font-weight: 700;
  color: var(--white);
  margin-bottom: 22px;
  font-size: 0.95rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #888;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--white); }

.footer-copy {
  font-size: 0.78rem;
  color: #555;
}

/* ========== Scroll Animations ========== */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .char-grid     { grid-template-columns: repeat(3, 1fr); }
  .hero          { flex-direction: column; gap: 0; }
  .deco-head     { display: none; }
  .deco-hammer   { display: none; }
}

@media (max-width: 640px) {
  section { padding: 72px 0; }
  .section-title { font-size: 1.6rem; }
  .howto-grid  { grid-template-columns: 1fr; gap: 36px; }
  .char-grid   { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .char-img    { width: 60px; height: 60px; }
  .hero-text   { font-size: 0.95rem; }
  .download h2 { font-size: 1.7rem; }
  .nav-title   { font-size: 0.8rem; }
}

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