/* ===== Font Faces ===== */
@font-face {
  font-family: 'Zen Kaku Gothic New';
  src: url('/fonts/ZenKakuGothicNew-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Zen Kaku Gothic New';
  src: url('/fonts/ZenKakuGothicNew-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Zen Kaku Gothic New';
  src: url('/fonts/ZenKakuGothicNew-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Zen Kaku Gothic New';
  src: url('/fonts/ZenKakuGothicNew-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Zen Kaku Gothic New';
  src: url('/fonts/ZenKakuGothicNew-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

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

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  background-color: #FFFFFC;
  color: #000;
  min-height: 100vh;
  width: 100vw;
  max-width: 100%;
  position: relative;
}

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

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

/* ===== CSS Variables ===== */
:root {
  --primary: #FF3148;
  --white: #ffffff;
  --black: #000000;
  --soft-pink: #FCF5F7;
  --soft-black: #585550;
  --gray-300: #d1d5db;
  --max-width: 1000px;
}

/* ===== Loading Screen ===== */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-in-out;
}

.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-screen picture {
  display: flex;
  justify-content: center;
  align-items: center;
}

.loading-screen img {
  width: 40vw;
  max-width: 300px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

/* ===== Layout Helpers ===== */
.page-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-center {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content-width {
  width: 70%;
  max-width: calc(var(--max-width) * 0.7);
}

/* ===== Top Section ===== */
.top-section {
  width: 100%;
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.top-hero {
  width: 100%;
  max-width: var(--max-width);
  position: relative;
  overflow: hidden;
}

.top-hero img.hero-bg {
  width: 100%;
  display: block;
}

.top-hero .logo-overlay {
  position: absolute;
  top: 2.5%;
  left: 5%;
  width: 40%;
}

.top-hero .menu-btn {
  position: absolute;
  top: 3.7%;
  right: 5%;
  width: 6%;
  cursor: pointer;
}

.top-hero .register-btn {
  position: absolute;
  top: 2.5%;
  right: 15%;
  width: 20%;
  cursor: pointer;
}

.top-hero .title1 {
  position: absolute;
  top: 48%;
  right: -100%;
  transform: translate(0, -50%);
  width: 65%;
  opacity: 0;
  transition: right 1s ease-out, opacity 0.5s ease-out;
}

.top-hero .title1.animate {
  right: 2%;
  opacity: 1;
}

.top-hero .title2 {
  position: absolute;
  top: 68%;
  left: -100%;
  transform: translate(0, -50%);
  width: 50%;
  opacity: 0;
  transition: left 1s ease-out 0.3s, opacity 0.5s ease-out 0.3s;
}

.top-hero .title2.animate {
  left: 9.5%;
  opacity: 1;
}

.top-cta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 20px;
  width: 100%;
  max-width: var(--max-width);
  justify-content: center;
}

.top-cta .begin-btn {
  width: 60%;
  max-width: calc(var(--max-width) * 0.6);
  cursor: pointer;
}

.top-cta .app-icon {
  width: 13%;
  max-width: calc(var(--max-width) * 0.13);
}

.top-cta-text {
  font-size: clamp(8px, 2vw, 20px);
  color: var(--black);
  text-align: center;
  margin-bottom: 4px;
}

/* ===== Highlight Section ===== */
.highlight-section {
  width: 100%;
  background-color: var(--soft-pink);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 10% 0;
}

.highlight-section .highlight-title {
  width: 78%;
  max-width: calc(var(--max-width) * 0.78);
  margin-bottom: 10%;
  transform: scale(0.5);
  opacity: 0;
  transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.highlight-section .highlight-title.visible {
  transform: scale(1);
  opacity: 1;
}

.highlight-section .highlight-thumbnail {
  width: 80%;
  max-width: calc(var(--max-width) * 0.8);
}

/* ===== Section Header ===== */
.section-header {
  width: 100%;
  padding: 7% 0;
  display: flex;
  flex-direction: column;
}

.section-header .section-title {
  font-size: clamp(14px, 4vw, 40px);
  font-weight: bold;
  color: var(--black);
  margin-bottom: 4px;
  text-align: left;
}

.section-header .section-label-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.section-header .section-label {
  font-size: clamp(8px, 2vw, 20px);
  font-weight: bold;
  color: var(--primary);
  white-space: nowrap;
}

.section-header .section-line {
  flex: 1;
  height: 2px;
  background-color: var(--primary);
}

/* ===== Feature Section ===== */
.feature-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-section .content-width {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-node {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 3% 0;
  gap: 12px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.feature-node.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-node img {
  width: 100%;
}

.feature-node .feature-desc {
  font-size: clamp(11px, 3vw, 30px);
  font-weight: bold;
  color: var(--black);
  text-align: left;
}

/* ===== Usage Section ===== */
.usage-section {
  width: 100%;
  background-color: var(--soft-pink);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 3%;
}

.usage-node {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 10%;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.usage-node.visible {
  opacity: 1;
  transform: translateY(0);
}

.usage-node img.usage-thumbnail {
  width: 100%;
}

.usage-node .usage-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.usage-node .usage-label img {
  width: 11%;
  flex-shrink: 0;
}

.usage-node .usage-label span {
  font-size: clamp(12px, 3.2vw, 32px);
  font-weight: bold;
  color: var(--black);
}

/* ===== Manual Section ===== */
.manual-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--white);
  overflow: visible;
}

.manual-section .manual-intro {
  font-size: clamp(11px, 3vw, 30px);
  color: var(--black);
  text-align: left;
}

.manual-carousel-wrapper {
  width: 100%;
  max-width: var(--max-width);
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

.manual-carousel {
  display: flex;
  flex-direction: row;
  transition: transform 0.5s ease-in-out;
  cursor: grab;
  user-select: none;
}

.manual-carousel:active {
  cursor: grabbing;
}

.manual-slide {
  width: 50%;
  min-width: 50%;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  box-sizing: border-box;
  padding: 0 2.5%;
}

.manual-slide.inactive {
  opacity: 0.5;
  transform: scale(0.9);
}

.manual-slide.active {
  opacity: 1;
  transform: scale(1);
}

.manual-node {
  display: flex;
  flex-direction: column;
  padding: 3% 0;
  width: 100%;
  gap: 12px;
  align-items: center;
}

.manual-node img {
  width: 100%;
  user-select: none;
  pointer-events: none;
}

.manual-node .step-badge {
  background-color: var(--primary);
  color: var(--white);
  font-size: clamp(11px, 3vw, 30px);
  font-weight: bold;
  text-align: center;
  padding: 2% 0;
  width: 80%;
  border-radius: 10vw;
}

.manual-node .step-desc {
  font-size: clamp(11px, 3vw, 30px);
  font-weight: bold;
  color: var(--black);
  text-align: center;
}

/* Progress Bar */
.manual-progress {
  display: flex;
  flex-direction: row;
  padding: 3%;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.manual-progress .dot {
  width: 25vw;
  max-width: 250px;
  height: clamp(4px, 1vw, 10px);
  background-color: var(--gray-300);
  transition: background-color 0.3s ease;
}

.manual-progress .dot.active {
  background-color: var(--primary);
}

/* Step Cheer (Step 04) */
.step-cheer {
  display: flex;
  flex-direction: column;
  padding: 3%;
  width: 80%;
  max-width: calc(var(--max-width) * 0.8);
  gap: 12px;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.step-cheer.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-cheer img {
  width: 87.5%;
}

.step-cheer .step-badge {
  background-color: var(--primary);
  color: var(--white);
  font-size: clamp(11px, 3vw, 30px);
  font-weight: bold;
  text-align: center;
  padding: 2% 0;
  width: 40%;
  border-radius: 5vw;
}

.step-cheer .step-desc {
  font-size: clamp(12px, 3.5vw, 35px);
  font-weight: bold;
  color: var(--black);
  text-align: center;
}

.manual-arrow {
  width: 10%;
  max-width: calc(var(--max-width) * 0.1);
  margin: 10% 0 6%;
}

/* ===== Safe Section ===== */
.safe-section {
  width: 100%;
  background-color: var(--soft-pink);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 3%;
}

.safe-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 70%;
  max-width: calc(var(--max-width) * 0.7);
}

.safe-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.safe-node.visible {
  opacity: 1;
  transform: translateY(0);
}

.safe-node .safe-img-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1.6;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.safe-node .safe-img-wrapper img {
  width: 100%;
  margin-bottom: 10%;
}

.safe-node .safe-desc {
  font-size: clamp(9px, 2.7vw, 27px);
  font-weight: bold;
  color: var(--black);
  text-align: center;
  padding: 5% 0;
}

/* ===== Question Section ===== */
.question-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 8%;
  gap: clamp(15px, 4vw, 40px);
}

.faq-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq-header {
  width: 70%;
  max-width: calc(var(--max-width) * 0.7);
  padding: 5% 0;
  border-radius: clamp(3px, 0.5vw, 7px);
  background-color: var(--primary);
  border: clamp(2px, 0.5vw, 8px) solid var(--white);
  box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  position: relative;
  z-index: 10;
}

.faq-header-inner {
  position: relative;
  width: 100%;
  height: clamp(25px, 7vw, 70px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-question-row {
  position: absolute;
  left: 7%;
  display: flex;
  align-items: center;
  gap: 1%;
}

.faq-question-row img {
  width: clamp(25px, 7vw, 70px);
}

.faq-question-row span {
  color: var(--white);
  font-size: clamp(10px, 2.8vw, 28px);
}

.faq-toggle-btn {
  position: absolute;
  right: 5%;
  width: clamp(18px, 4.2vw, 42px);
  height: clamp(18px, 4.2vw, 42px);
  border-radius: 50%;
  background-color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.15s ease;
  font-size: clamp(14px, 3.5vw, 35px);
  font-weight: bold;
  color: var(--primary);
  line-height: 1;
}

.faq-toggle-btn:active {
  transform: scale(0.95);
}

.faq-body {
  width: 70%;
  max-width: calc(var(--max-width) * 0.7);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  margin-top: -1%;
}

.faq-body.open {
  max-height: 500px;
  opacity: 1;
}

.faq-body-inner {
  padding: 5%;
  background-color: var(--white);
  border-right: clamp(1px, 0.35vw, 5px) solid var(--primary);
  border-left: clamp(1px, 0.35vw, 5px) solid var(--primary);
  border-bottom: clamp(1px, 0.35vw, 5px) solid var(--primary);
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
  color: var(--black);
  text-align: left;
  font-size: clamp(9px, 2.5vw, 25px);
  position: relative;
  z-index: 5;
}

/* ===== Footer Section ===== */
.footer-section {
  width: 100%;
  background-color: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 16% 0 8%;
}

.footer-section .footer-icon {
  width: 25%;
  max-width: calc(var(--max-width) * 0.25);
  margin-bottom: 8%;
}

.footer-section .footer-heading {
  font-size: clamp(20px, 6vw, 60px);
  font-weight: bold;
  color: var(--white);
  text-align: center;
  margin-bottom: 6%;
  line-height: 1.4;
}

.footer-stores {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 6%;
}

.footer-stores a img {
  width: clamp(100px, 30vw, 300px);
  cursor: pointer;
}

.footer-sns {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 6%;
  gap: 1vw;
}

.footer-sns a img {
  width: clamp(20px, 6vw, 60px);
}

.footer-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 80%;
  max-width: calc(var(--max-width) * 0.8);
  gap: 5%;
}

.footer-links a {
  font-size: clamp(8px, 2vw, 20px);
  color: var(--white);
}

.footer-legal {
  font-size: clamp(7px, 1.6vw, 16px);
  color: var(--white);
  text-align: center;
  margin-top: 4%;
}

.footer-copyright {
  font-size: clamp(6px, 1.4vw, 14px);
  color: var(--white);
  text-align: center;
  margin-top: 2%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

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

/* ===== Side Menu ===== */
.side-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

.side-menu-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.side-menu {
  position: fixed;
  top: 0;
  right: -45vw;
  width: 45vw;
  max-width: 450px;
  height: 100vh;
  background-color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  padding: 3% 0 5%;
  z-index: 999;
  transition: right 0.3s ease-in-out;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}

.side-menu.open {
  right: 0;
}

.side-menu-top {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.side-menu-close {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding-right: 5%;
  padding-bottom: 1.5%;
  cursor: pointer;
}

.side-menu-close span {
  font-size: clamp(14px, 4vw, 40px);
  font-weight: bold;
  color: var(--black);
  line-height: 1;
}

.side-menu-item {
  width: 80%;
  padding: 4% 0;
  cursor: pointer;
  border-bottom: 2px solid var(--primary);
  font-size: clamp(12px, 3.5vw, 35px);
  font-weight: 500;
  color: var(--black);
  text-align: center;
  transition: background-color 0.2s ease;
}

.side-menu-item:last-child {
  border-bottom: none;
}

.side-menu-item:hover {
  background-color: rgba(255, 49, 72, 0.06);
}

.side-menu-logo {
  width: 80%;
  margin-top: auto;
}

/* ===== Scroll Animation (generic) ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
