/* =========================
   キヲクノカケラ
   ========================= */
.memory-list {
  max-width: 760px;
  margin: 0 auto;
}

:root {
  --background: #f7f7f5;
  --text: #222222;
  --accent: #dc4813;
  --line: #d8d8d3;
  --subtle: #777777;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family:
    "Yu Mincho",
    "YuMincho",
    "Hiragino Mincho ProN",
    "Hiragino Mincho Pro",
    serif;
  line-height: 1.9;
}

.memory-heading {
  display: flex;
  align-items: baseline;
  gap: 1.5em;
  margin-bottom: 3em;
}

.memory-heading h1 {
  margin-top: 1.5em;
}

.memory-heading p {
  margin: 0;
}


/* 日付・タイトル */
.memory-date {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  margin-bottom: 1.2em;
  color: #222;
  font-size: 1.5rem;
  line-height: 1.6;
}

.memory-dot {
  width: 0.55em;
  height: 0.55em;
  flex: 0 0 0.55em;
  display: inline-block;
  border-radius: 50%;
  background: #dc4813;
}

.memory-title {
  font-weight: 500;
}


/* 写真の「コマ」
   3:2の枠を作る */
.memory-photo {
    width: 300px;
    max-width: 100%;
    aspect-ratio: 3 / 2;
    margin-bottom: 1.5em;

    display: flex;
    align-items: center;
    justify-content: center;
}




/* 元画像の比率を維持して枠内に収める */
.memory-photo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;

    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

/* マウスオンでカラー */
.memory-photo:hover img {
    filter: grayscale(0) !important;
}

/* 本文 */
.memory-text {
  color: #222;
  font-size: 1.2rem;
  line-height: 2;
}

.memory-text p {
  margin: 0;
}


/* 記憶と記憶の間 */
.memory-divider {
  text-align: center;
  margin: 4em 0;
  color: #222;
  font-size: 1rem;
}


/* スマホ */
@media (max-width: 767px) {

  .memory-list {
    width: 100%;
  }

  .memory-date {
    font-size: 0.9rem;
    flex-wrap: wrap;
  }

  .memory-photo {
    margin-bottom: 1.2em;
  }

  .memory-text {
    font-size: 0.9rem;
    line-height: 1.9;
  }

  .memory-divider {
    margin: 3em 0;
  }
}

/* 左上の矢印 */

.back-to-library {
  position: absolute;
  top: 24px;
  left: 28px;

  color: #222222;
  text-decoration: none;
  font-size: 1.2rem;

  transition: color 0.18s ease;
}

.back-to-library:hover {
  color: #dc4813;
}