/* =========================================
   templates.css
   - Front page / Single / Archives
========================================= */

/* =========================================
   1. HERO（左：メイン / 右：最新4件）
========================================= */

.hero-wrapper {
  max-width: 1120px;
  margin: 2rem auto 3rem;
  padding: 0 1.25rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

/* -----------------------------------------
   LEFT: HERO Main Article
----------------------------------------- */
.hero-main {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background: #0f172a;
}

.hero-main-image {
  width: 100%;
  aspect-ratio: 16 / 5; /* HERO 専用（2000x600クラス） */
  background-size: cover;
  background-position: center;
  filter: brightness(0.78);
}

.hero-main-content {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
  max-width: 70%;
}

.hero-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
  color: #bfdbfe;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.hero-meta {
  font-size: 0.85rem;
  opacity: 0.9;
}

.hero-excerpt {
  margin: 0.7rem 0 1rem;
  font-size: 1rem;
  line-height: 1.5;
}

.hero-btn {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  background: rgba(255,255,255,0.85);
  color: #000;
  border-radius: 0;
  font-weight: bold;
}

/* -----------------------------------------
   RIGHT: Latest 4 Articles
----------------------------------------- */

.hero-right {
  background: #ffffff;
  padding: 1rem 1.2rem;
  border-radius: 0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.hero-right-title {
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.small-card {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.small-card-thumb img {
  width: 90px;
  aspect-ratio: 3 / 2;  /* 300x200 */
  object-fit: cover;
  border-radius: 0;
}

.small-card-info time {
  font-size: 0.75rem;
  color: #6b7280;
}

.small-card-title {
  font-size: 0.9rem;
  margin: 0.2rem 0 0;
  line-height: 1.35;
}

/* =========================================
   1-2. HERO Responsive
========================================= */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-main-content {
    position: static;
    margin-top: 1rem;
    text-shadow: none;
    color: #0f172a;
  }
  .hero-main-image {
    aspect-ratio: 16 / 9;
  }
}

/* =========================================
   2. NEWS Section（2カラム × 6件）
========================================= */

.front-news-section {
  max-width: 1120px;
  margin: 0 auto 3rem;
  padding: 0 1.25rem;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.3rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

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

/* =========================================
   3. Single Page
========================================= */

.single-article {
  max-width: 900px;
  margin: 2.2rem auto 3rem;
  background: #ffffff;
  padding: 1.8rem 1.7rem 2.1rem;
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.single-title {
  font-size: 1.9rem;
  margin-bottom: 0.4rem;
}

.single-meta {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 1.2rem;
}

.single-content {
  font-size: 0.98rem;
  line-height: 1.9;
}

.single-content h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
}

.single-content h3 {
  font-size: 1.1rem;
  margin-top: 1.6rem;
}

.single-content img {
  margin: 1.2rem auto;
  border-radius: 0;
}

/* =========================================
   4. Archive Grid
========================================= */

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 1.2rem;
}


/* HERO を 800×500 固定比率にする */
.fixed-ratio-hero {
  width: 100%;
  aspect-ratio: 16 / 10; /* 800×500 */
  background-size: cover;
  background-position: center;
  border-radius: 0;
}
