/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans",
    "Noto Sans CJK JP", "Yu Gothic", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #b8e6d4;
  background-image: url("/images/background_texture.jpg");
  background-size: cover;
  background-position: top;
  background-attachment: fixed;
  min-height: 100vh;
}

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

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 40px;
}

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

.logo-image {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.logo-text {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0b8e81;
  -webkit-text-stroke: 5px white;
  paint-order: stroke fill;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.lang-active {
  color: #888;
}

.lang-link {
  color: #0b8e81;
  text-decoration: none;
  transition: opacity 0.2s;
}

.lang-link:hover {
  opacity: 0.7;
}

.lang-separator {
  color: #888;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 20px 0 60px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 16px;
}

.highlight {
  color: #0b8e81;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 32px;
}

.app-store-badge {
  display: inline-block;
  transition:
    transform 0.2s,
    opacity 0.2s;
}

.app-store-badge:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.app-store-badge img {
  height: 50px;
  width: auto;
}

/* Desktop Features (3-column) */
.features-desktop {
  display: flex;
  justify-content: center;
  gap: 100px;
  padding: 40px;
  align-items: flex-start;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.feature-card-first {
  z-index: 1;
}

.feature-card-first .phone-mockup {
  margin-top: 85px;
}

.feature-card-middle {
  z-index: 2;
  overflow: visible;
}

.speech-bubble-container {
  position: relative;
  height: 80px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 10px;
}

.speech-bubble-container-desktop {
  position: absolute;
  top: -40px;
  left: -30px;
  height: auto;
  margin-bottom: 0;
  z-index: 10;
}

.speech-bubble {
  max-width: 240px;
  height: auto;
}

.speech-bubble-small {
  max-width: 180px;
}

.speech-bubble-with-text {
  position: relative;
  display: inline-block;
}

.speech-bubble-with-text-small {
  display: inline-block;
}

.bubble-text {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -60%);
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
  white-space: nowrap;
}

.bubble-text-small {
  font-weight: normal;
  font-size: 1.5rem;
  top: 49%;
  left: 46%;
  line-height: 1.2;
}

.feature-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  min-height: 85px;
}

.phone-with-bubble {
  position: relative;
  overflow: visible;
}

.speech-bubble-overlay {
  position: absolute;
  top: -20px;
  right: -50px;
  z-index: 20;
}

.phone-mockup {
  width: 280px;
  overflow: hidden;
  filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.25));
}

.phone-mockup img {
  width: 100%;
  height: auto;
  display: block;
}

/* Mobile Features (hidden on desktop) */
.features-mobile {
  display: none;
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #0b8e81;
  text-decoration: none;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.footer-nav a:hover {
  opacity: 0.7;
}

.footer-separator {
  color: #888;
}

.copyright {
  color: #888;
  font-size: 0.85rem;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
  .features-desktop {
    gap: 20px;
  }

  .phone-mockup {
    width: 240px;
  }

  .feature-title {
    font-size: 2rem;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }

  .container {
    padding: 16px;
  }

  .header {
    padding: 10px;
  }

  .logo-image {
    width: 40px;
    height: 40px;
  }

  .logo-text {
    font-size: 1.5rem;
  }

  .hero {
    padding: 10px 0 40px;
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .app-store-badge img {
    height: 44px;
  }

  /* Hide desktop features, show mobile layout */
  .features-desktop {
    display: none;
  }

  .features-mobile {
    display: block;
    padding: 20px 0;
  }

  .hero-phone {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
  }

  .hero-phone .phone-mockup {
    width: 260px;
  }

  .feature-row {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    height: 250px;
    overflow: hidden;
  }

  .feature-row-reverse {
    flex-direction: row-reverse;
  }

  .feature-image-container {
    position: relative;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 60px;
  }

  .speech-bubble {
    max-width: 150px;
  }

  .bubble-text {
    font-size: 1.25rem;
  }

  .bubble-text-small {
    font-size: 1rem;
  }

  .feature-image-container .speech-bubble-container {
    position: absolute;
    top: -80px;
    left: -20px;
    height: auto;
    margin-bottom: 0;
    z-index: 1;
  }

  .feature-row-reverse .feature-image-container .speech-bubble-container,
  .speech-bubble-container-right {
    top: -20px;
    right: -120px;
  }

  .phone-mockup-small {
    width: 160px;
  }

  .feature-text {
    flex: 1;
  }

  .feature-title-mobile {
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.3;
  }

  .feature-row-reverse .feature-title-mobile {
    text-align: right;
  }

  .footer {
    padding: 40px 0 30px;
  }

  .footer-nav {
    gap: 8px;
  }

  .footer-nav a {
    font-size: 0.85rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }
  .feature-title-mobile {
    font-size: 1.25rem;
  }
}
