@charset "UTF-8";

/* ==================================================
  #latest-column
================================================== */
#latest-column {
  padding-bottom: 4rem;
}

#latest-column .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
  margin: 0 auto;
  align-items: start;
}

#latest-column .row::before,
#latest-column .row::after {
  display: none;
}

#latest-column .col {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

/* 並び順: 1=左上大, 2=左下, 3=右上, 4=右中, 5=右下 */
#latest-column .col:first-child  { grid-column: 1; grid-row: 1 / 3; }
#latest-column .col:nth-child(2) { grid-column: 1; grid-row: 3; }
#latest-column .col:nth-child(3) { grid-column: 2; grid-row: 1; }
#latest-column .col:nth-child(4) { grid-column: 2; grid-row: 2; }
#latest-column .col:nth-child(5) { grid-column: 2; grid-row: 3; }

/* 1枚目: 左列2行分を占有 */
#latest-column .col:first-child {
  flex-direction: column;
  align-items: stretch;
  border-bottom: 1px solid #eee;
  padding-top: 14px;
}

#latest-column .col:first-child a {
  flex-direction: column;
  align-items: stretch;
  height: 100%;
}

#latest-column .col:first-child .w-100 {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 10px;
}

#latest-column .col:first-child .excerpt {
  flex: 1;
}

#latest-column .col:first-child .excerpt > p:first-child {
  font-size: 1.5rem;
  font-weight: bold;
}

/* 2枚目: 左下 */
#latest-column .col:nth-child(2) {
  padding-top: 14px;
  border-bottom: none;
}

/* 5枚目: 右下 */
#latest-column .col:nth-child(5) {
  border-bottom: none;
}

#latest-column .col .thumb {
  flex-shrink: 0;
  width: 180px;
  height: 120px;
  object-fit: cover;
}

#latest-column .excerpt {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
  font-size: 1.4rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

#latest-column .col a {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #000;
  text-decoration: none;
  width: 100%;
}

#latest-column .meta {
  text-align: right;
}

#latest-column .date {
  color: #666;
  font-weight: bold;
  font-size: 1.3rem;
}

#latest-column .date:before {
  content: "";
  display: inline-block;
  background-image: url("../img/date.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: contain;
  width: 12px;
  height: 12px;
  margin-right: 5px;
  vertical-align: -1px;
}

#latest-column .btn-primary {
  letter-spacing: 0.56px;
  max-width: 295px;
  width: 100%;
}

/* ==================================================
  responsive
================================================== */
@media screen and (min-width: 768px) {
  #latest-column .row {
    margin-top: 2rem;
  }
}

@media screen and (max-width: 767px) {
  #latest-column .row {
    grid-template-columns: 1fr;
  }

  /* グリッド配置をリセットして1列に */
  #latest-column .col:first-child,
  #latest-column .col:nth-child(2),
  #latest-column .col:nth-child(3),
  #latest-column .col:nth-child(4),
  #latest-column .col:nth-child(5) {
    grid-column: 1;
    grid-row: auto;
  }

  /* 1枚目: SP でも縦レイアウト維持 */
  #latest-column .col:first-child {
    border-right: none;
    border-bottom: 1px solid #eee;
    padding-top: 14px;
    padding-right: 0;
  }

  /* 全件ボーダー復活、最後だけなし */
  #latest-column .col:nth-child(2) {
    border-bottom: 1px solid #eee;
  }

  #latest-column .col:nth-child(5) {
    border-bottom: none;
  }
}
