/* style-modern-jp.css */

/* Basic Reset & Modern Defaults */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #00796b; /* Teal */
  --primary-dark: #004d40;
  --light-gray: #f8f9fa;
  --medium-gray: #e9ecef;
  --dark-gray: #495057;
  --text-color: #343a40;
  --heading-color: #212529;
  --white: #ffffff;
  --font-family-base: "Noto Sans JP", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --border-radius: 8px; /* Slightly more rounded corners */
}

/* Import Font */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap");

body {
  font-family: var(--font-family-base);
  line-height: 1.7; /* Increased line height for JP */
  color: var(--text-color);
  background-color: var(--white); /* Default background */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex; /* Use flexbox for sticky footer */
  flex-direction: column; /* Stack header, content, footer */
  min-height: 100vh; /* Ensure body takes full height */
  margin: 0; /* Remove default body margin */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700; /* Bolder headings */
  line-height: 1.4;
  margin-bottom: 1.5rem;
  color: var(--heading-color);
}

h1 {
  font-size: 2.6rem;
  letter-spacing: 0.02em;
}
h2 {
  font-size: 2.1rem;
  letter-spacing: 0.01em;
}
h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-color); /* Ensure paragraphs use text color */
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s ease;
}
a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius); /* Apply border-radius to images */
}

/* Utilities */
.container {
  max-width: 1140px; /* Slightly wider */
  margin: 0 auto;
  padding: 0 25px;
}

.narrow-container {
  max-width: 800px; /* For text-heavy centered sections */
  margin-left: auto;
  margin-right: auto;
}

.text-center {
  text-align: center;
}
.bg-light {
  background-color: var(--light-gray);
}
.bg-gradient {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
}
.section-headline {
  margin-bottom: 3rem;
} /* More space below section titles */

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px; /* Slightly larger padding */
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500; /* Medium weight */
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin: 5px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}
.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary-color);
  border: 1px solid var(--medium-gray);
}
.btn-secondary:hover {
  background-color: var(--light-gray);
  border-color: #adb5bd;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.btn-light {
  background-color: var(--white);
  color: var(--primary-dark); /* Use dark primary on light button */
}
.btn-light:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-small {
  padding: 8px 20px;
  font-size: 0.9rem;
}

/* Header & Navigation */
header {
  background-color: var(--white);
  padding: 1rem 0;
  border-bottom: 1px solid var(--medium-gray);
  /* position: sticky; */ /* Uncomment for sticky header */
  /* top: 0; */
  /* z-index: 1000; */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  width: 100%; /* Ensure header spans full width */
  flex-shrink: 0; /* Prevent header from shrinking */
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  /* Make logo a link */
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--heading-color);
  text-decoration: none; /* Remove underline */
}

header nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0; /* Remove default padding */
}

header nav ul li {
  margin-left: 25px;
}

/* Style for active nav link */
header nav ul li.active a {
  color: var(--primary-color);
  font-weight: 700; /* Make active link bold */
  border-bottom-color: var(--primary-color); /* Keep underline style */
}

header nav ul li a {
  color: var(--text-color);
  font-weight: 500;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
}
header nav ul li a:not(.btn):hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.nav-actions {
  /* Style the right-side action links/buttons */
  margin-left: auto; /* Push actions to the right */
}
.nav-actions li:first-child {
  margin-left: 0; /* Remove left margin for first action item */
}

header nav ul li a.nav-link {
  /* Specific class for text links like login */
  color: var(--dark-gray);
}
header nav ul li a.nav-link:hover {
  color: var(--primary-color);
  border-bottom-color: transparent; /* No underline for login maybe */
}

/* Main Content Wrapper */
.main-content {
  flex-grow: 1; /* Allows content to take up available space */
  width: 100%; /* Ensure it spans width */
}

/* Footer */
footer {
  background-color: var(--heading-color);
  color: #adb5bd;
  padding: 2rem 0;
  margin-top: auto; /* Push footer to bottom with flexbox */
  width: 100%; /* Ensure footer spans full width */
  flex-shrink: 0; /* Prevent footer from shrinking */
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
footer p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: #adb5bd;
} /* Ensure color */

footer ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}
footer ul li {
  margin-left: 20px;
}
footer a {
  color: #adb5bd;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: none;
} /* Remove underlines */
footer a:hover {
  color: var(--white);
}

/* Sections General Padding (for index.html mainly) */
section {
  padding: 80px 0; /* More vertical padding */
}

/* --- Landing Page Specific Styles (from previous iteration) --- */

/* Hero Section */
#hero {
  background: linear-gradient(135deg, #e0f7fa 0%, #e8f5e9 100%);
  padding: 100px 0 80px 0;
  text-align: center;
  overflow: hidden;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
}
.hero-content h1 br {
  display: none;
} /* Hide manual break by default */
@media (min-width: 576px) {
  /* Show break only on larger screens */
  .hero-content h1 br {
    display: inline;
  }
}

.sub-headline {
  font-size: 1.2rem;
  color: var(--dark-gray);
  max-width: 750px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.8;
}

.hero-cta {
  margin-bottom: 2rem; /* Add space below buttons */
}
.hero-cta .btn {
  margin: 0 10px;
}

.hero-visual {
  margin: 3.5rem auto 0 auto;
  max-width: 700px;
  box-shadow: 0 10px 30px rgba(0, 77, 64, 0.1);
  border-radius: var(--border-radius);
}

/* Problem Section */
#problem .transition {
  margin-top: 2rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--dark-gray);
}

/* Solution Section */
#solution {
  border-top: 1px solid var(--medium-gray);
  border-bottom: 1px solid var(--medium-gray);
}

.solution-content {
  display: flex;
  align-items: center;
  gap: 4rem; /* Increased gap */
}
.solution-text {
  flex: 1.2;
}
.solution-visual {
  flex: 1;
  text-align: center;
}
.solution-visual img {
  max-width: 480px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
}

.benefits-list {
  margin-top: 2rem;
  padding-left: 0;
}
.benefits-list li {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: var(--text-color);
  display: flex;
  align-items: flex-start;
}
.benefits-list .icon-placeholder {
  color: var(--primary-color);
  margin-right: 10px;
  font-weight: bold;
  margin-top: 2px;
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.feature-item {
  background-color: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--medium-gray);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  width: 60px;
  height: 60px;
  line-height: 60px;
  background-color: #e0f2f7;
  border-radius: 50%;
  margin: 0 auto 1.5rem auto;
  font-weight: bold;
}
.feature-item h3 {
  margin-bottom: 0.8rem;
}

/* How It Works Section */
.steps-container {
  display: flex;
  justify-content: space-around;
  gap: 2.5rem;
  margin-top: 3rem;
  text-align: center;
}

.step-item {
  flex: 1;
  max-width: 320px;
  padding: 1.5rem;
}

.step-number {
  width: 55px;
  height: 55px;
  line-height: 55px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 2px 5px rgba(0, 121, 107, 0.3);
}
.step-item h3 {
  margin-bottom: 0.8rem;
}

/* Testimonials Section */
.testimonials-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-item {
  background-color: var(--light-gray);
  padding: 2rem;
  border-radius: var(--border-radius);
  border-left: 6px solid var(--primary-color);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.testimonial-item blockquote {
  font-style: normal;
  font-size: 1.05rem;
  color: var(--dark-gray);
  margin-bottom: 1.5rem;
  border-left: none;
  padding-left: 0;
  position: relative;
}
.testimonial-item blockquote::before {
  content: "“";
  font-size: 3rem;
  color: var(--medium-gray);
  position: absolute;
  left: -10px;
  top: -15px;
  opacity: 0.8;
}

.testimonial-item .attribution {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-color);
  text-align: right;
  margin-bottom: 0;
}

/* CTA Section */
#cta {
  padding: 70px 0;
  color: var(--white);
}
#cta h2 {
  margin-bottom: 1rem;
  color: var(--white);
  font-size: 2.3rem;
}
#cta p {
  margin-bottom: 2rem; /* Adjusted margin */
  font-size: 1.15rem;
  opacity: 0.95;
  color: var(--white);
}
#cta .btn {
  margin-bottom: 2.5rem; /* Space below button before badges */
}

/* --- App Store Badges --- */
.app-badges {
  display: flex;
  justify-content: center; /* Center badges horizontally */
  align-items: center;
  gap: 15px; /* Space between badges */
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.hero-badges {
  margin-top: 2rem; /* Space above badges in hero */
}

.cta-badges {
  margin-top: 0; /* Removed top margin as space is now on button above */
}

.app-badges a {
  display: inline-block;
  border-bottom: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.app-badges a:hover {
  opacity: 0.85;
  transform: scale(1.03);
}

.store-badge {
  height: 50px; /* Control badge height */
  width: auto;
  display: block;
  border-radius: 6px;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  h1 {
    font-size: 2.3rem;
  }
  h2 {
    font-size: 1.9rem;
  }

  .solution-content {
    gap: 2rem;
    flex-direction: column; /* Stack on medium screens too? */
    text-align: center;
  }
  .solution-visual {
    margin-top: 2.5rem;
  }
  .solution-visual img {
    max-width: 380px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.7rem;
  }
  section {
    padding: 60px 0;
  }
  #hero {
    padding: 80px 0 60px 0;
  }

  /* Basic Mobile Nav Toggle (Requires JS for functionality) */
  header nav ul:not(.nav-actions) {
    /* Hide main links */
    display: none;
  }
  /* Add styles for hamburger icon button here */

  .hero-content h1 br {
    display: none;
  }

  .steps-container {
    flex-direction: column;
    align-items: center;
  }
  .step-item {
    margin-bottom: 2rem;
  }

  footer .container {
    flex-direction: column;
    text-align: center;
  }
  footer ul {
    margin-top: 1rem;
    justify-content: center;
    padding-left: 0;
  }
  footer ul li {
    margin: 0 10px;
  }

  /* Responsive badges */
  .store-badge {
    height: 45px;
  }
  .app-badges {
    gap: 10px;
  }
  .hero-badges {
    margin-top: 1.5rem;
  }
}
