/* guide page common */
.guide-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 16px 50px;
}

.guide-section {
  margin-bottom: 48px;
}

.guide-section h2 {
  margin-bottom: 28px;
}


/* PC card layout */
.guide-card-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.guide-card {
  display: block;
  overflow: hidden;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  background: #fff;
  color: #333;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.12);
  text-decoration: none;
}

.guide-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f5f5f5;
  overflow: hidden;
}

.guide-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: bottom;
}

.guide-card-body {
  padding: 16px 16px 18px;
}

.guide-card-body h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: #222;
}

.guide-card-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: #666;
}

@media screen and (max-width: 599px) {
  .guide-page {
    padding: 20px 12px 35px;
  }

  .guide-section {
    margin-bottom: 34px;
  }

  .guide-section h2 {
    margin-bottom: 18px;
  }

  .guide-card-list {
    display: block;
  }

  .guide-card {
    display: flex;
    align-items: stretch;
    height: 108px;
    margin-bottom: 11px;
    border-radius: 10px;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.06);
  }

  .guide-card:hover {
    transform: none;
  }

  .guide-card-img {
    flex: 0 0 108px;
    width: 108px;
    height: 108px;
    aspect-ratio: 1 / 1;
  }

  .guide-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .guide-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 108px;
    padding: 20px 10px 7px;
    box-sizing: border-box;
  }

  .guide-card-body h3 {
    margin: 0 0 4px !important;
    padding: 0 0 4px;
    border-bottom: 1px solid #e4dc8a;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
  }

  .guide-card-body p {
    margin: 0 !important;
    font-size: 12px;
    line-height: 1.45;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}