/* ===========================================
   Logly - Common Styles
   =========================================== */

:root {
  /* Primary Colors */
  --primary: #A3EAD3;
  --primary-dark: #2A6F5A;
  --primary-light: #D4F5EB;
  --revenue-button: #4FBFA3;

  /* Neutral Colors */
  --white: #FFFFFF;
  --black: #333333;
  --black-thin: rgba(51, 51, 51, 0.53);
  --shadow: rgba(0, 0, 0, 0.26);
  --divider: rgba(0, 0, 0, 0.13);
  --bg-light: #F9FDFB;

  /* Report Card Colors */
  --overview-bg: #EDE7F6;
  --good-bg: #E8F5E9;
  --bad-bg: #FFF3E0;
  --advice-bg: #E3F2FD;

  /* Accent Colors */
  --error: #D51611;

  /* Typography */
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans JP", sans-serif;

  /* Spacing */
  --section-padding: 80px 20px;
  --container-max: 1100px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  color: var(--black);
  background-color: var(--white);
}

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

a:hover {
  opacity: 0.7;
}

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

ul {
  list-style: none;
}

/* ===========================================
   Layout
   =========================================== */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--section-padding);
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: var(--black);
}

.section-title span {
  color: var(--primary-dark);
}

/* ===========================================
   Buttons
   =========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--black);
  box-shadow: 0 4px 12px rgba(163, 234, 211, 0.4);
}

.btn-primary:hover {
  background-color: var(--revenue-button);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 191, 163, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary-dark);
}

.btn-outline:hover {
  background-color: var(--primary-dark);
  color: var(--white);
}

.btn-dark {
  background-color: var(--black);
  color: var(--white);
}

.btn-dark:hover {
  background-color: #555;
}

/* ===========================================
   Header
   =========================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-dark);
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
}

.nav-links a:hover {
  color: var(--primary-dark);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--black);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 20px;
    gap: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 16px;
    padding: 10px 0;
  }

  .mobile-menu-btn {
    display: flex;
  }
}

/* ===========================================
   Hero Section
   =========================================== */

.hero {
  padding: 140px 20px 80px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 50%, var(--bg-light) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.hero-content {
  flex: 1;
  max-width: 500px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--primary);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.hero-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--black);
}

.hero-title .highlight {
  color: var(--primary-dark);
}

.hero-description {
  font-size: 18px;
  color: var(--black-thin);
  margin-bottom: 30px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background-color: var(--black);
  color: var(--white);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.store-btn:hover {
  background-color: #555;
  transform: translateY(-2px);
}

.store-btn img {
  width: 24px;
  height: 24px;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.store-btn-text small {
  font-size: 10px;
  opacity: 0.8;
}

.store-btn-text span {
  font-size: 16px;
  font-weight: 600;
}

.store-badge {
  display: inline-block;
  transition: all 0.3s ease;
}

.store-badge img {
  height: 140px;
  width: 470px;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .store-badge img {
    height: auto;
    width: 100%;
    max-width: 200px;
  }
}

.store-badge:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

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

.hero-image img {
  max-width: 350px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

.hero-image-sp {
  display: none;
}

@media (max-width: 768px) {
  .hero {
    padding: 120px 20px 60px;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    font-size: 32px;
  }

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

  .hero-image {
    display: none;
  }

  .hero-image-sp {
    display: block;
    margin: 15px 0;
  }

  .hero-image-sp img {
    max-width: 180px;
  }
}

/* ===========================================
   Problems & Solution Section
   =========================================== */

.problems {
  background-color: var(--bg-light);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.problem-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: var(--white);
  padding: 20px 25px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--error);
}

.problem-icon {
  flex-shrink: 0;
  opacity: 0.8;
}

.problem-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--black);
}

.problem-text strong {
  color: var(--error);
}

.solution-arrow {
  text-align: center;
  margin: 40px 0;
}

.solution-arrow svg {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(10px); }
  60% { transform: translateY(5px); }
}

.solution {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  max-width: 700px;
  margin: 0 auto;
  border: 2px solid var(--primary);
}

.solution-main {
  display: flex;
  align-items: center;
  gap: 30px;
}

.solution-content {
  flex: 1;
}

.solution-image {
  flex-shrink: 0;
}

.solution-image img {
  width: 100%;
  max-width: 280px;
  height: auto;
}

.solution-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--black);
}

.solution-title span {
  color: var(--primary-dark);
}

.solution-flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.solution-step {
  display: flex;
  align-items: center;
  gap: 12px;
}

.solution-step-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  border-radius: 50%;
}

.solution-step-icon svg {
  width: 32px;
  height: 32px;
}

.solution-step p {
  font-size: 24px;
  font-weight: 600;
  color: var(--black);
}

.solution-step-arrow {
  text-align: center;
}

.solution-step-arrow svg {
  transform: rotate(90deg);
  width: 32px;
  height: 32px;
  fill: var(--primary-dark);
}

@media (max-width: 768px) {
  .problems-grid {
    grid-template-columns: 1fr;
  }

  .solution-main {
    flex-direction: column;
  }

  .solution-title {
    font-size: 20px;
  }

  .solution-step-icon {
    width: 40px;
    height: 40px;
  }

  .solution-step-icon svg {
    width: 24px;
    height: 24px;
  }

  .solution-step p {
    font-size: 18px;
  }

  .solution-arrow {
    text-align: center;
  }

  .solution-step {
    justify-content: flex-start;
  }

  .solution-step-arrow {
    padding-left: 0;
    text-align: center;
    width: 100%;
  }

  .solution-image img {
    max-width: 200px;
    margin: 0 auto;
    display: block;
  }
}

/* ===========================================
   Features Section
   =========================================== */

.features {
  background-color: var(--white);
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
  max-width: 900px;
  margin: 0 auto;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 50px;
}

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

.feature-text {
  flex: 1;
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.feature-row:nth-child(1) .feature-icon {
  background-color: var(--good-bg);
}

.feature-row:nth-child(2) .feature-icon {
  background-color: var(--overview-bg);
}

.feature-row:nth-child(3) .feature-icon {
  background-color: var(--advice-bg);
}

.feature-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--black);
}

.feature-description {
  font-size: 15px;
  color: var(--black-thin);
  line-height: 1.8;
}

.feature-images {
  flex-shrink: 0;
  display: flex;
  gap: 12px;
}

.feature-images img {
  width: 180px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.feature-images.two img {
  width: 150px;
}

@media (max-width: 768px) {
  .features-list {
    gap: 40px;
  }

  .feature-row,
  .feature-row.reverse {
    flex-direction: column;
    text-align: center;
  }

  .feature-icon {
    margin: 0 auto 15px;
  }

  .feature-images img {
    width: 150px;
  }

  .feature-images.two img {
    width: 130px;
  }
}

/* ===========================================
   Character CTA Section
   =========================================== */

.character-cta {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--revenue-button) 100%);
  color: var(--white);
}

.character-cta-inner {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.character-cta-content {
  text-align: center;
}

.character-cta-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
}

.character-cta-title span {
  color: var(--primary);
}

.character-cta-description {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 25px;
  line-height: 1.8;
}

.character-cta-image {
  display: flex;
  align-items: flex-end;
}

.character-cta-image img {
  width: 320px;
  height: auto;
}

@media (max-width: 768px) {
  .character-cta-inner {
    flex-direction: column;
    gap: 20px;
  }

  .character-cta-inner {
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
  }

  .character-cta-content {
    order: -1;
    width: 100%;
  }

  .character-cta-title {
    font-size: 22px;
  }

  .character-cta-image img {
    width: 140px;
  }
}

/* ===========================================
   Pricing Section
   =========================================== */

.pricing {
  background-color: var(--bg-light);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card.popular {
  border: 3px solid var(--primary);
  transform: scale(1.05);
}

.pricing-card.popular::before {
  content: "おすすめ";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-dark);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: var(--radius-full);
}

.pricing-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--black);
}

.pricing-price {
  font-size: 42px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 5px;
}

.pricing-price small {
  font-size: 16px;
  font-weight: 400;
  color: var(--black-thin);
}

.pricing-period {
  font-size: 14px;
  color: var(--black-thin);
  margin-bottom: 30px;
}

.pricing-features {
  text-align: left;
  margin-bottom: 30px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--divider);
  font-size: 14px;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features .check {
  color: var(--revenue-button);
  font-weight: 700;
}

.pricing-features .cross {
  color: var(--black-thin);
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pricing-card.popular {
    transform: scale(1);
  }
}

/* ===========================================
   How It Works Section
   =========================================== */

.how-it-works {
  background-color: var(--white);
}

.steps {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 35px;
  right: -15px;
  width: 30px;
  height: 2px;
  background-color: var(--primary);
}

.step-number {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: var(--primary-dark);
  font-size: 28px;
  font-weight: 700;
  border-radius: 50%;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--black);
}

.step-description {
  font-size: 14px;
  color: var(--black-thin);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .steps {
    flex-direction: column;
    gap: 40px;
  }

  .step:not(:last-child)::after {
    display: none;
  }
}

/* ===========================================
   FAQ Section
   =========================================== */

.faq {
  background-color: var(--bg-light);
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  color: var(--black);
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: var(--bg-light);
}

.faq-question::after {
  content: "+";
  font-size: 24px;
  color: var(--primary-dark);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 25px 20px;
  max-height: 200px;
}

.faq-answer p {
  color: var(--black-thin);
  line-height: 1.8;
}

/* ===========================================
   CTA Section
   =========================================== */

.cta {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--revenue-button) 100%);
  color: var(--white);
  text-align: center;
}

.cta-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
}

.cta-description {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 30px;
}

.cta .store-btn {
  background-color: var(--white);
  color: var(--black);
}

.cta .store-btn:hover {
  background-color: var(--primary-light);
}

/* ===========================================
   Footer
   =========================================== */

.footer {
  background-color: var(--black);
  color: var(--white);
  padding: 60px 20px 30px;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-links-column h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary);
}

.footer-links-column ul li {
  margin-bottom: 10px;
}

.footer-links-column ul li a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-links-column ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
}

.footer-copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 30px;
  }
}

/* ===========================================
   Legal Pages
   =========================================== */

.legal-page {
  padding: 120px 20px 80px;
  min-height: 100vh;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--black);
}

.legal-content .last-updated {
  font-size: 14px;
  color: var(--black-thin);
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.legal-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 25px;
  margin-bottom: 10px;
  color: var(--black);
}

.legal-content p {
  margin-bottom: 15px;
  color: var(--black);
  line-height: 1.8;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 15px;
  padding-left: 25px;
}

.legal-content ul {
  list-style: disc;
}

.legal-content ol {
  list-style: decimal;
}

.legal-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.legal-content a {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ===========================================
   Contact Page
   =========================================== */

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--black);
}

.form-group label .required {
  color: var(--error);
  margin-left: 4px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 2px solid var(--divider);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s ease;
  font-family: var(--font-main);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-submit {
  text-align: center;
}

/* ===========================================
   Utilities
   =========================================== */

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

.mb-0 {
  margin-bottom: 0;
}

.mt-30 {
  margin-top: 30px;
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .section-title {
    font-size: 24px;
  }

  .pricing-price {
    font-size: 36px;
  }
}
