@font-face {
  font-family: "Cafe24SsurroundAirWeb";
  src: url("/fonts/Cafe24SsurroundAir-v1.1.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cafe24SsurroundWeb";
  src: url("/fonts/Cafe24Ssurround-v2.0.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fff8fb;
  --surface: #fffefd;
  --plum: #5a496f;
  --plum-dark: #403451;
  --plum-light: #947ea8;
  --mint: #e0f6ef;
  --pink: #fbe0e8;
  --peach: #ffebd9;
  --line: #d1c1d8;
  --shadow-color: rgba(90, 73, 111, 0.15);
  
  --font-base: "Cafe24SsurroundAirWeb", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", sans-serif;
  --font-bold: "Cafe24SsurroundWeb", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  background-color: var(--bg);
  color: var(--plum-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}

html[lang="ja"] body {
  word-break: normal;
  overflow-wrap: anywhere;
}

/* Background Blurs */
.bg-blur {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.6;
}
.pink-blur {
  width: 50vw;
  height: 50vw;
  background-color: var(--pink);
  top: -10vw;
  left: -10vw;
}
.mint-blur {
  width: 40vw;
  height: 40vw;
  background-color: var(--mint);
  bottom: 10vw;
  right: -5vw;
}
.peach-blur {
  width: 30vw;
  height: 30vw;
  background-color: var(--peach);
  top: 40vh;
  left: 20vw;
}

/* Container */
.landing-container {
  max-width: 900px;
  margin: 40px auto;
  background: var(--surface);
  border: 3px solid var(--plum);
  border-radius: 20px;
  box-shadow: 0 12px 0 var(--shadow-color);
  overflow: hidden;
  position: relative;
}

/* Browser Bar */
.browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background-color: #fcf9fa;
  border-bottom: 3px solid var(--plum);
}
.dots {
  display: flex;
  gap: 8px;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--plum);
}
.dot.red { background-color: #ffb4a2; }
.dot.yellow { background-color: #ffd166; }
.dot.green { background-color: #9bd7cc; }
.title {
  font-family: var(--font-bold);
  font-size: 14px;
  letter-spacing: 0.5px;
  color: var(--plum);
}
.locale-switcher a {
  text-decoration: none;
  font-size: 12px;
  font-family: var(--font-bold);
  color: var(--plum-light);
  margin-left: 8px;
  transition: color 0.2s;
}
.locale-switcher a.active, .locale-switcher a:hover {
  color: var(--plum-dark);
}

.content-wrapper {
  padding: 0 40px 60px;
}

/* Typography */
h1 {
  font-family: var(--font-bold);
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 24px;
}
h2.section-title {
  font-family: var(--font-bold);
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 16px;
}
.highlight {
  position: relative;
  display: inline-block;
}
.highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 14px;
  background-color: var(--peach);
  z-index: -1;
  border-radius: 4px;
}

.lead-text {
  font-size: 1.1rem;
  margin-bottom: 32px;
  color: var(--plum-dark);
}
.section-desc {
  font-size: 1.1rem;
  color: var(--plum-dark);
}

.pill-badge {
  display: inline-block;
  padding: 6px 16px;
  border: 2px solid var(--plum);
  border-radius: 30px;
  font-size: 0.9rem;
  font-family: var(--font-bold);
  margin-bottom: 20px;
  background-color: var(--mint);
}

/* Buttons */
.cta-group {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}
.btn {
  display: inline-block;
  padding: 14px 28px;
  border: 3px solid var(--plum);
  border-radius: 30px;
  text-decoration: none;
  font-family: var(--font-bold);
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 0 var(--plum);
}
.btn:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--plum);
}
.btn:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--plum);
}
.btn-primary {
  background-color: var(--peach);
  color: var(--plum-dark);
}
.btn-secondary {
  background-color: transparent;
  color: var(--plum-dark);
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 60px 0;
  align-items: center;
}
.hero-visual {
  position: relative;
  height: 450px;
}
.phone-frame {
  border: 3px solid var(--plum);
  border-radius: 24px;
  overflow: hidden;
  background: white;
  box-shadow: 0 8px 0 var(--shadow-color);
}
.phone-frame img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-main {
  position: absolute;
  width: 70%;
  right: 0;
  top: 0;
  z-index: 2;
  transform: rotate(3deg);
  animation: float 6s ease-in-out infinite;
}
.hero-side {
  position: absolute;
  width: 60%;
  left: 0;
  bottom: 20px;
  z-index: 1;
  transform: rotate(-5deg);
  animation: float 7s ease-in-out infinite reverse;
}

@keyframes float {
  0% { transform: translateY(0px) rotate(auto); }
  50% { transform: translateY(-10px) rotate(auto); }
  100% { transform: translateY(0px) rotate(auto); }
}

/* Divider */
.divider {
  text-align: center;
  padding: 40px 0;
  opacity: 0.5;
}

/* Features */
.features-wrapper {
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding: 40px 0;
}
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.feature-block.reverse {
  grid-template-columns: 1fr 1fr;
  direction: rtl;
}
.feature-block.reverse > * {
  direction: ltr; /* Reset direction */
}
.feature-image .phone-frame {
  width: 80%;
  margin: 0 auto;
  transform: rotate(-2deg);
}
.feature-block.reverse .feature-image .phone-frame {
  transform: rotate(2deg);
}

/* Footer */
.closing-section {
  text-align: center;
  padding: 80px 0 20px;
  border-top: 2px dashed var(--line);
  margin-top: 60px;
}
.closing-section h2 {
  font-family: var(--font-bold);
  font-size: 2rem;
  margin-bottom: 30px;
}
.footer-links {
  margin-bottom: 40px;
}
.legal-links {
  margin-bottom: 20px;
}
.legal-links a {
  color: var(--plum-light);
  text-decoration: none;
  font-size: 0.9rem;
  margin: 0 8px;
}
.legal-links a:hover {
  text-decoration: underline;
}
.copyright {
  color: var(--plum-light);
  font-size: 0.85rem;
}

/* Animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .landing-container {
    margin: 20px 16px;
  }
  .content-wrapper {
    padding: 0 20px 40px;
  }
  .hero-section {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 0 10px;
    text-align: left;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
  }
  .hero-visual {
    height: auto !important;
    margin-top: 40px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
  }
  .hero-main, .hero-side {
    position: relative !important;
    width: 90% !important;
    transform: none !important;
    animation: none !important;
    z-index: 1 !important;
    box-shadow: 0 8px 0 var(--shadow-color) !important;
    margin-bottom: 20px !important;
  }
  h1 {
    font-size: 2.2rem;
  }
  .feature-block, .feature-block.reverse {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .feature-image .phone-frame {
    width: 80%;
    transform: none !important;
  }
  .cta-group {
    flex-direction: column;
    align-items: stretch;
    margin-top: 20px;
    gap: 12px;
  }
  .btn {
    text-align: center;
    width: 100%;
    display: block;
    color: var(--plum-dark) !important;
  }
  .btn-secondary {
    background-color: var(--mint) !important;
  }
}
