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

body {
  background: #FFD900;
  font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
  overflow-x: hidden;
}

/* ===== Spacer sections ===== */
.spacer {
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #aaa;
  background: linear-gradient(135deg, #e8e8e8, #f5f5f5);
}

.spacer:nth-child(odd) {
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
}

/* ===== Main visual ===== */
.main-visual {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
}

.main-visual svg {
  width: 100%;
  height: auto;
  display: block;
}


.rocketworld-maincharacter {
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
}

/* ===== headline ===== */
.rocketworld-headline-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto clamp(80px, 11vw, 160px);
  padding: 0 clamp(16px, 4vw, 20px) clamp(30px, 6vw, 70px);
  position: relative;
  text-align: center;
}

.rocketworld-headline-wrapper h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: bold;
  margin-bottom: 1rem;
}

.rocketworld-headline-wrapper h1 span {
  font-size: clamp(1.75rem, 4.2vw, 2.5rem);
}

.rocketworld-headline-wrapper p {
  font-size: clamp(1rem, 2.8vw, 1.5rem);
  line-height: 2;
  font-weight: 700;
}

/* ===== Initial states (opacity:0 for GSAP entrance) ===== */
#title {
  opacity: 0;
}

#utyujin01,
#utyujin02,
#utyujin03,
#utyujin04,
#utyujin05,
#utyujin06,
#utyujin07,
#utyujin08,
#utyujin09,
#utyujin010,
#utyujin011,
#utyujin012,
#utyujin013,
#animal01,
#animal02,
#human01,
#same {
  opacity: 0;
}

#fukidashi01,
#fukidashi02,
#fukidashi03 {
  opacity: 0;
  transform-origin: center center;
}

#text01,
#text02,
#text03,
#text04,
#text05,
#text06,
#text07,
#text08 {
  opacity: 0;
}

/* ===== Responsive ===== */
.sp-only {
  display: none;
}

@media (max-width: 768px) {
  .main-visual {
    padding: 20px 10px;
  }

  .sp-only {
    display: inline;
  }
}

/* ===== Character Slider ===== */
.RocketWorld-firstview {
  position: relative;
  overflow: hidden;
}

.character-slider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding-top: 56px;
  z-index: 10;
  pointer-events: none;
}

.character-slider .slick-list,
.character-slider .slick-track {
  overflow: visible;
}

.character-slider img {
  height: 150px;
  width: auto;
  margin: 0 15px;
}

@media (max-width: 768px) {
  .character-slider img {
    height: 60px;
    margin: 0 10px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .RocketWorld-firstview {
    padding-bottom: 90px;
  }

  .character-slider {
    bottom: 8px;
  }

  .character-slider img {
    height: clamp(80px, 10vw, 105px);
    margin: 0 12px;
  }
}

/* ===== World Section ===== */
.world {
  background-color: #898989;
  color: #fff;
  padding: 80px 20px 100px;
  position: relative;
}

.world-inner {
  --world-text-column: minmax(320px, 400px);
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--world-text-column) minmax(0, 1fr);
  column-gap: 40px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.world-intro-container {
  grid-column: 1 / -1;
  margin-bottom: 60px;
}

.world-header {
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 15px;
}

.world-title-img {
  max-width: 100%;
  width: 250px;
  height: auto;
}

.world-title-ruby {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-weight: bold;
  line-height: 2;
  padding-bottom: 5px;
  margin-left: 10px;
}

.world-catch {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  line-height: 2;
  font-weight: 600;
  text-align: center;
}

.world-content {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: var(--world-text-column) minmax(0, 1fr);
  column-gap: 40px;
  align-items: center;
}

.world-text-container {
  width: 100%;
  max-width: 100%;
}

.world-text-block {
  text-align: center;
  margin-bottom: 30px;
}

.world-text-block h2 {
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: bold;
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.world-text-block p {
  font-size: clamp(0.85rem, 1.6vw, 1.1rem);
  font-weight: 500;
  line-height: 1.6;
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));

}

.world-star-img {
  text-align: center;
  margin-bottom: 30px;
}

.world-star-img img {
  width: 40px;
  height: auto;
}

.world-image-container {
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
}

.world-planet {
  width: 100%;
  max-width: 860px;
  height: auto;
  margin-right: -10%;
}

.world-rocket {
  position: absolute;
  right: 6%;
  bottom: -100px;
  width: clamp(130px, 18vw, 230px);
  height: auto;
  z-index: 10;
}

@media (max-width: 768px) {
  .world {
    padding: 60px 15px 100px;
  }

  .world-inner {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .world-header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }

  .world-title-img {
    max-width: 100%;
    width: 150px;
    height: auto;
  }


  .world-title-ruby {
    margin-left: 0;
  }

  .world-content {
    grid-template-columns: 1fr;
  }

  .world-text-container {
    order: 2;
    padding-left: 0;
    max-width: 100%;
  }

  .world-image-container {
    order: 1;
    margin-bottom: 50px;
    text-align: center;
  }

  .world-planet {
    margin-right: 0;
  }

  .world-rocket {
    right: 2%;
    bottom: -60px;
    width: clamp(110px, 26vw, 170px);
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .world {
    padding: 80px 20px 110px;
  }

  .world-inner {
    --world-text-column: minmax(300px, 360px);
    column-gap: 24px;
  }

  .world-content {
    column-gap: 24px;
  }

  .world-image-container {
    display: flex;
    justify-content: center;
  }

  .world-planet {
    max-width: 980px;
    margin-right: 0;
    transform: translateX(3%);
  }

  .world-rocket {
    right: 3%;
    width: clamp(120px, 16vw, 180px);
  }
}

/* ===== Character Section ===== */
.character {
  background-color: #FFD900;
  padding: 180px 20px 100px;
  position: relative;
  transition: background-color 0.4s ease;
}

.character[data-active-star="tenyawanya"] {
  background-color: #FFD900;
}

.character[data-active-star="shichakamecchaka"] {
  background-color: #00AFEC;
}

.character[data-active-star="okkanabikkuri"] {
  background-color: #E7336E;
}

.character-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.character-header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 40px;
}

.character-catch {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  line-height: 2;
  font-weight: 600;
  text-align: center;
  margin-bottom: 50px;
  color: #333;
}

.character-title-img {
  max-width: 100%;
  width: clamp(220px, 48vw, 450px);
  height: auto;
}

.character-title-ruby {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-weight: bold;
  line-height: 2;
  padding-bottom: 5px;
  color: #333;
  margin-left: 10px;
}

/* Tabs */
.character-tabs {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
}

.character-tab {
  flex: 1;
  max-width: 320px;
  text-align: center;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.character-tab.active {
  opacity: 1;
  transform: scale(1.05);
}

.character-tab:hover {
  opacity: 0.8;
}

.character-tab img {
  width: 100%;
  max-width: 260px;
  height: auto;
  margin-bottom: 20px;
}

.character-tab span {
  display: block;
  font-size: clamp(0.65rem, 2vw, 1.1rem);
  font-weight: bold;
  color: #333;
}

/* Sliders */
.character-slider-container {
  display: none;
  animation: fadeIn 0.5s ease;
}

.character-slider-container.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card */
.character-card {
  padding: 10px 20px;
  outline: none;
}

.character-card-inner {
  background: #fff;
  border-radius: 30px;
  border: 2px solid #333;
  padding: 40px 15px;
  text-align: center;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.15);
  height: 420px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.character-card-inner:hover {
  transform: translateY(-5px);
}

.character-img {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.character-img img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.character-name {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.character-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #555;
  flex-grow: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* Slick Custom Arrows */
.character-slider-container .slick-slider {
  position: relative;
}

.character-slider-container .slick-prev,
.character-slider-container .slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  z-index: 10;
  background: #fff;
  border: 2px solid #333;
  border-radius: 50%;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.15);
}

.character-slider-container .slick-prev {
  left: -50px;
}

.character-slider-container .slick-next {
  right: -50px;
}

.character-slider-container .slick-prev:before,
.character-slider-container .slick-next:before {
  color: #333;
  font-size: 32px;
  opacity: 1;
}

.character-slider-container .slick-prev:hover,
.character-slider-container .slick-prev:focus,
.character-slider-container .slick-next:hover,
.character-slider-container .slick-next:focus {
  background: #fff;
}

@media (max-width: 768px) {
  .character {
    padding: 120px 10px 80px;
  }

  .character-header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 40px;
  }

  .character-title-ruby {
    margin-left: 0;
  }

  .character-tabs {
    gap: 10px;
  }

  .character-slider-container {
    padding: 0 52px;
  }

  .character-slider-container .slick-list {
    margin: 0 -4px;
  }

  .character-card {
    padding: 8px 6px;
  }

  .character-card-inner {
    height: 320px;
    padding: 24px 8px 20px;
    border-radius: 10px;
  }

  .character-img {
    height: 150px;
    margin-bottom: 16px;
  }

  .character-img img {
    max-height: 140px;
    max-width: 88%;
  }

  .character-name {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .character-desc {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .character-slider-container .slick-prev,
  .character-slider-container .slick-next {
    width: 46px;
    height: 46px;
  }

  .character-slider-container .slick-prev {
    left: -20px;
  }

  .character-slider-container .slick-next {
    right: -20px;
  }

  .character-slider-container .slick-prev:before,
  .character-slider-container .slick-next:before {
    font-size: 26px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .character {
    padding: 150px 20px 90px;
  }

  .character-slider-container {
    padding: 0 58px;
  }

  .character-card {
    padding: 8px 10px;
  }

  .character-card-inner {
    height: 400px;
    padding: 28px 10px 18px;
    border-radius: 22px;
  }

  .character-img {
    height: 180px;
    margin-bottom: 18px;
  }

  .character-img img {
    max-height: 170px;
    max-width: 90%;
  }

  .character-name {
    font-size: 1.15rem;
  }

  .character-desc {
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .character-slider-container .slick-prev,
  .character-slider-container .slick-next {
    width: 50px;
    height: 50px;
  }

  .character-slider-container .slick-prev {
    left: 0;
  }

  .character-slider-container .slick-next {
    right: 0;
  }

  .character-slider-container .slick-prev:before,
  .character-slider-container .slick-next:before {
    font-size: 28px;
  }
}

/* ===== Machigaisagashi Section ===== */
.machigaisagashi {
  background-color: #fff;
  padding: 100px 20px 120px;
  position: relative;
  text-align: center;
  overflow: hidden;
  border-bottom: 8px solid #333;
}

.machigaisagashi-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.machigaisagashi-link {
  display: inline-block;
  margin-bottom: 30px;
}

.machigaisagashi-img {
  max-width: 100%;
  width: clamp(280px, 60vw, 550px);
  height: auto;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.1));
}

.machigaisagashi-link:hover .machigaisagashi-img {
  transform: scale(1.05) translateY(-4px);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.15));
}

.machigaisagashi-catch {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  color: #333;
  line-height: 1.6;
  letter-spacing: 0.05em;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .machigaisagashi {
    padding: 70px 15px;
  }

  .machigaisagashi-link {
    margin-bottom: 20px;
  }
}

.machigaisagashi-random-char {
  position: absolute;
  bottom: 0;
  height: 160px;
  width: auto;
  z-index: 10;
  pointer-events: none;
}

@media (max-width: 768px) {
  .machigaisagashi-random-char {
    height: 110px;
  }
}

/* ===== Last Section ===== */
.rocket-last-section {
  text-align: center;
  padding: 80px 20px 100px;
  overflow: hidden;
}

.rocket-last-section img {
  max-width: 100%;
  width: clamp(300px, 80vw, 1000px);
  height: auto;
  opacity: 0;
  /* JS Animation initial state */
}




/* copyright */

.rocket-world-copyright {
  font-size: clamp(0.75rem, 1.5vw, 0.95rem);
  letter-spacing: 0.08em;
  padding-top: 60px;
  padding-bottom: 20px;
  text-align: center;
  color: #fff;
  font-weight: 600;
}

.rocket-world-copyright small {
  display: inline-block;
  padding: 8px 28px;
  border-radius: 30px;
  background: rgba(0, 0, 0, 0.06);
  border: 1.5px solid rgba(0, 0, 0, 0.08);
}