/* ===== Homepage Demo ===== */
.page-index__hero-section {
  padding: 0;
  margin: 0;
  width: 100%;
  overflow: hidden;
}

.page-index__hero-link {
  display: block;
  width: 100%;
}

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

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

.page-index__logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 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: #ffffff;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #E0E0E0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform .2s ease;
}

.page-index__logo-item:hover {
  transform: translateY(-3px);
}

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

.page-index__logo-cta {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(229, 57, 53, 0.25);
  text-align: center;
  border: none;
  line-height: 1.2;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__logo-cta:hover {
  opacity: 0.95;
  filter: brightness(0.98);
  box-shadow: 0 6px 18px rgba(229, 57, 53, 0.4);
}

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

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

/* Guide Section */
.page-index__guide-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 16px 48px;
  color: #333333;
}

.page-index__guide-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #E53935;
  margin-bottom: 16px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.page-index__guide-inner p {
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 1em;
  font-weight: 400;
}

.page-index__guide-inner ul,
.page-index__guide-inner ol {
  padding-left: 24px;
  margin: 12px 0 20px;
  line-height: 1.8;
}

.page-index__guide-inner h2 {
  color: #E53935;
  font-size: 26px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 16px;
  border-bottom: 2px solid #E0E0E0;
  padding-bottom: 8px;
}

.page-index__guide-inner h3 {
  color: #333333;
  font-size: 20px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 10px;
}

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

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

.page-index__guide-figure figcaption {
  font-size: 14px;
  color: #666;
  margin-top: 8px;
  font-style: italic;
}

.page-index__btn {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff !important;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  margin: 20px 0 10px;
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.3);
}

.page-index__btn:hover {
  filter: brightness(0.97);
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.page-index__guide-inner details {
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 12px 16px;
  background: #FFFFFF;
}

.page-index__guide-inner details summary {
  cursor: pointer;
  font-weight: 600;
  color: #333;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-index__guide-inner details summary::-webkit-details-marker {
  display: none;
}

.page-index__guide-inner details summary span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #E53935;
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.page-index__guide-inner details p {
  padding: 10px 0 6px 32px;
  margin-bottom: 0;
}

.page-index__guide-inner blockquote {
  border-left: 5px solid #E53935;
  background: #F5F7FA;
  padding: 14px 18px;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: #333;
  margin: 20px 0;
}

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

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

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

  .page-index__logo-cta {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    padding: 10px 16px;
    font-size: 13px;
  }

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

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

  .page-index__guide-inner {
    padding: 12px 16px 32px;
  }

  .page-index__guide-inner h2 {
    font-size: 22px;
  }

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

  .page-index__btn {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    padding: 12px 24px;
  }

  .page-index p,
  .page-index li {
    font-size: 15px;
  }

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

/* Prevent horizontal overflow within content area on phones */
@media (max-width: 768px) {
  .page-index {
    max-width: 100%;
    overflow-x: hidden;
  }
}