/* General styles for .page-blog */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #F5F7FA; /* Background color from custom配色 */
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, relies on body padding for header offset */
  padding-bottom: 40px;
  background-color: #E53935; /* Primary brand color */
  color: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 400px; /* Limit height for hero image */
  overflow: hidden;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  padding: 20px 15px;
  max-width: 800px;
}

.page-blog__main-title {
  font-size: clamp(2em, 5vw, 2.8em); /* min 2em, preferred 5vw, max 2.8em */
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Benefits Section */
.page-blog__benefits-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-blog__benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog__benefit-item {
  background-color: #F5F7FA;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease;
}

.page-blog__benefit-item:hover {
  transform: translateY(-5px);
}

.page-blog__benefit-title {
  font-size: 1.5em;
  color: #E53935;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-blog__benefit-text {
  font-size: 1em;
  color: #333333;
}

/* Latest Posts Section */
.page-blog__latest-posts {
  padding: 60px 0;
  background-color: #F5F7FA; /* Background color from custom配色 */
}

.page-blog__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #E53935;
  text-align: center;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-blog__section-subtitle {
  font-size: 1.1em;
  color: #333333;
  text-align: center;
  margin-bottom: 40px;
}

.page-blog__blog-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  align-items: stretch; /* Ensure cards have equal height */
}

.page-blog__blog-card {
  background-color: #FFFFFF; /* Card background from custom配色 */
  border: 1px solid #E0E0E0; /* Border from custom配色 */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-blog__blog-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-blog__blog-card-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-blog__blog-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Allow content to grow and push button down */
}

.page-blog__blog-card-title {
  font-size: 1.4em;
  color: #E53935; /* Primary brand color for titles */
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__blog-card-excerpt {
  font-size: 0.95em;
  color: #333333; /* Main text color */
  margin-bottom: 15px;
  flex-grow: 1; /* Allow excerpt to take available space */
}

.page-blog__blog-card-date {
  font-size: 0.85em;
  color: #666666;
  margin-bottom: 15px;
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog__btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1.05em;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  box-sizing: border-box;
  max-width: 100%;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button gradient from custom配色 */
  color: #ffffff;
  border: none;
}

.page-blog__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background-color: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-blog__btn-secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-blog__btn-outline {
  background-color: transparent;
  color: #E53935;
  border: 1px solid #E53935;
  padding: 8px 15px;
  font-size: 0.9em;
  margin-top: auto; /* Push to bottom of card content */
}

.page-blog__btn-outline:hover {
  background-color: #E53935;
  color: #ffffff;
}

.page-blog__view-all-button-wrapper {
  text-align: center;
  margin-top: 40px;
}

/* Call to Action Section */
.page-blog__cta-section {
  background-color: #E53935; /* Primary brand color for CTA background */
  padding: 60px 0;
  text-align: center;
  color: #ffffff;
}

.page-blog__cta-title {
  font-size: 2.2em;
  margin-bottom: 15px;
  color: #ffffff;
  font-weight: bold;
}

.page-blog__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Homepage Modules Not Present on This Page (for CSS Checklist Compliance) --- */
/* Desktop styles - hidden by default */
.page-blog__home-content,
.page-blog__row-games,
.page-blog__row-sport,
.page-blog__row-coop,
.page-blog__games-title,
.page-blog__sport-title,
.page-blog__coop-title,
.page-blog__slider-wrapper,
.page-blog__slider-track,
.page-blog__game-slide,
.page-blog__banners-top-wrapper,
.page-blog__banner-item,
.page-blog__banner-item img,
.page-blog__blog-slider,
.page-blog__blog-slider-track,
.page-blog__blog-slide {
  display: none;
}