/* ── Diary marketing site palette ─────────────────────────────────────────────
   Mirrors the iOS app's warm paper-feel theme:
   bg     #FAF7F1   card  #FFFFFF   card2 #F7F2E9   pill  #ECE6D8
   ink1   #2D2A24   ink3  #6B6358   ink4  #9A9085   primary #3B6EE0
   tag accents are pulled from AppColors (DEV/READ/MOVE/WALK/EAT/REST/FAM).
*/

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

body {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.7;
  color: #2d2a24;
  background-color: #faf7f1;
}

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

/* Header */
.header {
  background-color: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(45, 42, 36, 0.06);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.lang-btn {
  background: transparent;
  border: none;
  color: #6b6358;
  cursor: pointer;
  font: inherit;
  padding: 4px 10px;
  border-radius: 999px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.lang-btn:hover {
  background-color: rgba(59, 110, 224, 0.1);
  color: #3b6ee0;
}

.lang-btn.active {
  background-color: #3b6ee0;
  color: #fff;
}

.lang-separator {
  color: #cdc3b4;
  font-size: 0.8rem;
}

.nav-logo h1 {
  color: #3b6ee0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.8rem;
}

.nav-menu a {
  text-decoration: none;
  color: #6b6358;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: #3b6ee0;
}

/* Hero Section */
.hero {
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(59, 110, 224, 0.08) 0%,
      transparent 60%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(225, 237, 218, 0.5) 0%,
      transparent 60%
    ),
    linear-gradient(135deg, #faf7f1 0%, #f7f2e9 100%);
  color: #2d2a24;
  padding: 120px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 520px;
  height: 520px;
  background: radial-gradient(
    circle,
    rgba(59, 110, 224, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 380px;
  height: 380px;
  background: radial-gradient(
    circle,
    rgba(242, 223, 218, 0.4) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  color: #2d2a24;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #6b6358;
  line-height: 1.85;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-white {
  background-color: #3b6ee0;
  color: white;
  box-shadow: 0 6px 22px rgba(59, 110, 224, 0.28);
}

.btn-white:hover {
  background-color: #2c5acc;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 110, 224, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: #6b6358;
  border-color: #d6cdb8;
}

.btn-outline:hover {
  border-color: #3b6ee0;
  color: #3b6ee0;
  background-color: rgba(59, 110, 224, 0.06);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-icon-placeholder {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #ffffff 0%, #f7f2e9 100%);
  border-radius: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 18px 50px rgba(45, 42, 36, 0.16),
    0 0 0 1px rgba(45, 42, 36, 0.04);
}

.app-icon-text {
  font-size: 5.5rem;
  line-height: 1;
}

.app-icon-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* Section Styles */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #2d2a24;
}

/* Features Section */
.features {
  background-color: #faf7f1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 22px;
  border: 1px solid #ece6d8;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(45, 42, 36, 0.04);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: #c4d3f4;
  box-shadow: 0 12px 32px rgba(45, 42, 36, 0.1);
}

.feature-icon {
  margin-bottom: 1.2rem;
}

.icon-placeholder {
  font-size: 2.6rem;
  margin-bottom: 0.5rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: #2d2a24;
}

.feature-card p {
  color: #6b6358;
  line-height: 1.75;
  font-size: 0.95rem;
}

/* Screenshots Section */
.screenshots {
  background-color: #f7f2e9;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 2rem;
  justify-content: center;
}

.screenshot-item {
  text-align: center;
}

.screenshot-placeholder {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 19.5;
  background: transparent;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  color: #9a9085;
  font-weight: 500;
}

.screenshot-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.screenshot-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9a9085;
  font-size: 0.95rem;
}

.screenshot-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #2d2a24;
}

.screenshot-item p {
  color: #6b6358;
  font-size: 0.9rem;
}

/* Download Section */
.download {
  background: linear-gradient(135deg, #faf7f1 0%, #ece6d8 100%);
}

.download .section-title {
  color: #2d2a24;
}

.download-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.download-info h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #2d2a24;
}

.download-info p {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  color: #6b6358;
}

.app-store-placeholder {
  display: inline-block;
  height: 52px;
  padding: 0 26px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  background-color: #3b6ee0;
  color: white;
  font-size: 0.95rem;
  line-height: 52px;
  text-align: center;
  box-shadow: 0 6px 22px rgba(59, 110, 224, 0.28);
}

.app-store-placeholder:hover {
  background-color: #2c5acc;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 110, 224, 0.4);
}

.download-requirements {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 18px;
  border: 1px solid #ece6d8;
  box-shadow: 0 4px 14px rgba(45, 42, 36, 0.06);
}

.download-requirements h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #2d2a24;
}

.download-requirements ul {
  list-style: none;
}

.download-requirements li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #f0e9d8;
  color: #6b6358;
  font-size: 0.95rem;
}

.download-requirements li:last-child {
  border-bottom: none;
}

/* Privacy Section */
.privacy {
  background-color: #faf7f1;
}

.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  padding: 3rem;
  border-radius: 22px;
  border: 1px solid #ece6d8;
  box-shadow: 0 4px 14px rgba(45, 42, 36, 0.06);
}

.privacy-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #2d2a24;
}

.privacy-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 2rem 0 0.8rem;
  color: #2d2a24;
}

.privacy-content p {
  margin-bottom: 1rem;
  line-height: 1.85;
  color: #6b6358;
  font-size: 0.95rem;
}

.privacy-content a {
  color: #3b6ee0;
  text-decoration: none;
}

.privacy-content a:hover {
  text-decoration: underline;
}

.privacy-update {
  font-size: 0.85rem;
  color: #9a9085;
  font-style: italic;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #f0e9d8;
}

/* Contact Section */
.contact {
  background-color: #f7f2e9;
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-content > p {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  color: #6b6358;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-method {
  background: #ffffff;
  padding: 2rem;
  border-radius: 22px;
  border: 1px solid #ece6d8;
  transition: all 0.3s ease;
  text-align: left;
  box-shadow: 0 2px 10px rgba(45, 42, 36, 0.04);
}

.contact-method:hover {
  transform: translateY(-4px);
  border-color: #c4d3f4;
  box-shadow: 0 12px 32px rgba(45, 42, 36, 0.1);
}

.contact-method h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: #2d2a24;
}

.contact-method p {
  color: #6b6358;
  line-height: 1.7;
  font-size: 0.95rem;
}

.contact-method a {
  color: #3b6ee0;
  text-decoration: none;
  font-weight: 500;
}

.contact-method a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background-color: #1b1815;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem 0;
}

.footer-bottom {
  text-align: center;
  color: #b8aea0;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .download-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .screenshots-grid {
    grid-template-columns: 1fr;
  }

  .contact-methods {
    grid-template-columns: 1fr;
  }

  .contact-method {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .btn {
    padding: 11px 22px;
    font-size: 0.9rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .privacy-content {
    padding: 2rem;
  }

  .contact-method {
    padding: 1.5rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

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

.app-icon-placeholder {
  animation: float 4s ease-in-out infinite;
}
