/* =========================
   Diary Archive
========================= */

.diary-archive {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 120px;
}

.diary-archive__header {
  text-align: center;
  margin-bottom: 64px;
}

.diary-archive__title {
  font-size: 36px;
  margin-bottom: 16px;
}

.diary-archive__lead {
  font-size: 14px;
  opacity: 0.7;
}

/* =========================
   Grid
========================= */

.diary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 24px;
}

/* =========================
   Item
========================= */

.diary-item__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.diary-item__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4; /* ← 縦長・表紙比率 */
  overflow: hidden;
  background: #111;
}

.diary-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.diary-item__dummy {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    #222,
    #111
  );
}

.diary-item__title {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

/* Hover */
.diary-item__link:hover img {
  transform: scale(1.03);
  opacity: 0.9;
}

/* =========================
   Responsive
========================= */

@media (max-width: 900px) {
  .diary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .diary-grid {
    grid-template-columns: 1fr;
  }
}


.diary-item__thumb {
  aspect-ratio: 3 / 4;
}


/* =========================
   Diary CTA (Parallax)
========================= */

.diary-cta{
  position: relative;
}

.diary-cta__media{
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 70vh;
  background: #111;
}

.diary-cta__img{
  position: absolute;
  left: 0;
  top: -12%;
  width: 100%;
  height: 124%;
  object-fit: cover;

  /* ここが肝：JSで --bgY が更新される */
  transform: translate3d(0, var(--bgY, 0px), 0) scale(1.08);
  will-change: transform;
}

/* 画像を暗くするレイヤー */
.diary-cta__shade{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  pointer-events: none;
}

/* 文字＆ボタン */
.diary-cta__inner{
  position: relative;
  z-index: 2;
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 16px;
  color: #fff;
}

.diary-cta__title{
  font-size: clamp(36px, 6vw, 72px);
  letter-spacing: .08em;
  margin: 0;
}

.diary-cta__lead{
  margin: 10px 0 22px;
  opacity: .85;
  font-size: 14px;
  letter-spacing: .08em;
}

.diary-cta__button{
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid rgba(255,255,255,.9);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .12em;
  transition: background-color .25s ease, color .25s ease;
}
.diary-cta__button:hover{
  background: #fff;
  color: #000;
}

/* SP */
@media (max-width: 768px){
  .diary-cta__media,
  .diary-cta__inner{
    min-height: 60vh;
  }
}


.diary-cta__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.diary-item__meta{
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.7;
  text-align: center;
  line-height: 1.6;
  letter-spacing: .04em;
  white-space: normal;
}

h2 {
  margin-bottom: 0px !important;
}