/* ===== Homepage Specific Styles ===== */
.page-index {
  color: #F2FFF6;
  background-color: #08160F;
}

/* 1. Hero Section */
.page-index__hero-section {
  padding-top: 0;
  margin-top: 0;
  width: 100%;
  overflow: hidden;
}

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

.page-index__hero-link {
  display: block;
  text-decoration: none;
}

.page-index__hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 17/5;
  object-fit: cover;
  display: block;
}

/* 2. Logo Grid Section */
.page-index__logo-grid-section {
  max-width: 1200px;
  margin: 16px auto 28px;
  padding: 0 16px;
}

.page-index__logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 16px;
  justify-items: center;
}

.page-index__logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 280px;
  text-align: center;
  background-color: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 12px;
  padding: 20px;
  box-sizing: border-box;
}

.page-index__logo-image {
  width: 100%;
  height: auto;
  aspect-ratio: 2/1;
  object-fit: contain;
  display: block;
}

.page-index__logo-cta {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(18, 168, 78, 0.4);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.2;
}

.page-index__logo-cta:hover {
  filter: brightness(1.1);
}

.page-index__logo-item:nth-child(5) {
  grid-column: 2;
}

.page-index__logo-item:nth-child(6) {
  grid-column: 3;
}

/* 3. Guide Section (SEO Long-form Content) */
.page-index__guide-section {
  background-color: #08160F;
  width: 100%;
}

.page-index__guide-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 16px 48px;
}

.page-index__guide-title {
  text-align: center;
  color: #F2C14E;
  margin: 12px 0 20px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.page-index__guide-section h2 {
  color: #F2C14E;
  font-size: 1.75rem;
  font-weight: bold;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #2E7A4E;
}

.page-index__guide-section h3 {
  color: #57E38D;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

.page-index__guide-section p {
  line-height: 1.75;
  color: #A7D9B8;
  margin-bottom: 1rem;
}

.page-index__guide-section a {
  color: #F2C14E;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-index__guide-section a:hover {
  color: #57E38D;
}

.page-index__guide-figure {
  margin: 24px auto;
  text-align: center;
  max-width: 800px;
}

.page-index__guide-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 2/1;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.page-index__guide-figure figcaption {
  font-size: 0.9rem;
  color: #A7D9B8;
  margin-top: 8px;
}

.page-index__guide-steps ul,
.page-index__notice-list ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 1rem 0;
}

.page-index__guide-steps li,
.page-index__notice-list li {
  background-color: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 8px;
  padding: 16px;
  color: #A7D9B8;
  line-height: 1.7;
}

.page-index__guide-steps strong,
.page-index__notice-list strong {
  color: #F2FFF6;
}

.page-index__promo-list h3,
.page-index__why-list h3 {
  color: #57E38D;
  margin-top: 1.5rem;
}

.page-index__promo-list p,
.page-index__why-list p {
  margin-bottom: 1rem;
}

/* FAQ styles using details/summary */
.page-index__faq-item {
  background-color: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.page-index__faq-item summary {
  cursor: pointer;
  padding: 16px;
  color: #F2FFF6;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #1E3A2A;
}

.page-index__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-index__faq-item summary span {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 22px;
  text-align: center;
  border-radius: 50%;
  background-color: #0A4B2C;
  color: #F2C14E;
  font-weight: bold;
  flex-shrink: 0;
}

.page-index__faq-item[open] summary {
  border-bottom-color: #2E7A4E;
}

.page-index__faq-item p {
  padding: 16px;
  margin: 0;
  color: #A7D9B8;
  line-height: 1.7;
}

.page-index__guide-section blockquote {
  margin: 24px 0;
  padding: 16px 24px;
  background-color: #11271B;
  border-left: 4px solid #F2C14E;
  border-radius: 0 8px 8px 0;
  color: #F2FFF6;
  font-style: italic;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-index__logo-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-image {
    aspect-ratio: 2/1;
  }

  .page-index__logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-index__logo-item:nth-child(5),
  .page-index__logo-item:nth-child(6) {
    grid-column: auto;
  }

  .page-index__guide-title {
    font-size: 1.35rem;
  }

  .page-index__guide-section h2 {
    font-size: 1.5rem;
  }

  .page-index__guide-section h3 {
    font-size: 1.15rem;
  }

  .page-index__guide-figure {
    margin: 16px auto;
  }

  .page-index__guide-figure img {
    max-width: 100%;
    height: auto;
  }

  .page-index__logo-cta {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
  }

  .page-index__logo-item {
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-index img {
    max-width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .page-index__logo-grid {
    gap: 12px;
    padding: 0 4px;
  }

  .page-index__logo-item {
    padding: 12px;
    gap: 8px;
  }

  .page-index__logo-cta {
    padding: 8px 12px;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}