@charset "UTF-8";

/* =====================
   Blog – Section Title
===================== */
#blog .sectionTitle {
  background: none !important;
}
#blog .sectionTitle::before {
  content: 'BLOG';
}

/* =====================
   Blog – Archive Grid
===================== */
#archive .flex-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 24px;
  margin-bottom: 56px;
}

#archive .flex-wrap > div {
  width: auto;
  margin: 0;
}

#archive .flex-wrap > div a {
  display: block;
}
#archive .flex-wrap > div a:hover {
  opacity: 1;
}

#archive figure p {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: #eee;
  position: relative;
}
#archive figure p img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease-out);
}
#archive a:hover figure p img {
  transform: scale(1.08);
}

#archive figcaption {
  padding: 12px 2px 0;
}
#archive figcaption h3 {
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 6px;
  transition: color 0.2s ease;
}
#archive a:hover figcaption h3 {
  color: #555;
}
#archive figcaption time {
  font-family: 'Spartan', sans-serif;
  font-weight: 500;
  color: var(--clr-faint);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

@media screen and (max-width: 1024px) {
  #archive .flex-wrap {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 767px) {
  #archive .flex-wrap {
    grid-template-columns: 1fr 1fr;
    gap: 20px 14px;
    margin-bottom: 36px;
  }
  #archive figcaption h3 {
    font-size: 1.2rem;
  }
  #archive figcaption time {
    font-size: 1.0rem;
  }
}

@media screen and (max-width: 420px) {
  #archive .flex-wrap {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  /* 1列時は横並びカード */
  #archive .flex-wrap > div a {
    display: flex;
    gap: 14px;
    align-items: flex-start;
  }
  #archive figure p {
    width: 40%;
    aspect-ratio: 1;
    flex-shrink: 0;
  }
  #archive figcaption {
    flex: 1;
    padding-top: 4px;
  }
}

/* =====================
   Post Detail
   (共通: news.css と同じスタイル)
===================== */
#postTitle {
  width: 100%;
  padding: 24px 0;
  align-items: center;
  border-bottom: solid 3px #E6E6E6;
  position: relative;
}
#postTitle::after {
  position: absolute;
  content: " ";
  display: block;
  border-bottom: solid 3px var(--clr-yellow);
  bottom: -3px;
  width: 18%;
  min-width: 80px;
}
#postTitle dt {
  width: 82%;
  font-size: 2.0rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.5;
  border-right: solid 1px #E0E0E0;
  padding-right: 24px;
}
#postTitle dd {
  width: 18%;
  text-align: center;
  font-size: 1.2rem;
  font-family: 'Spartan', sans-serif;
  font-weight: 600;
  color: var(--clr-faint);
  letter-spacing: 0.06em;
}
#postBlock {
  padding: 56px 0;
  font-size: 1.5rem;
  line-height: 1.95;
}

@media screen and (max-width: 767px) {
  #postTitle { flex-wrap: wrap; }
  #postTitle dt,
  #postTitle dd { width: 100%; }
  #postTitle dt {
    font-size: 1.7rem;
    line-height: 1.5;
    margin-bottom: 14px;
    border: none;
    padding-right: 0;
  }
  #postTitle dd {
    text-align: left;
    font-size: 1.1rem;
  }
  #postBlock {
    padding-top: 28px;
    font-size: 1.4rem;
  }
}
