@charset "UTF-8";

/* 制作ノート一覧専用。ヘッダー・フッター・記事本文のスタイルは維持する。 */
.note-index {
  --note-rule: #dedfd4;
  --note-surface: #fbfaf6;
  --note-sage: #eff2e8;
  padding-top: 20px;
  font-size: 16px;
}

.note-index .note-pager { margin: 0 0 24px; }
.note-index > .note-pager:last-of-type { margin: 88px 0 0; }
.note-index .note-rss-link { margin-bottom: 30px; }

.note-index .note-section-title {
  margin: 0 0 24px;
  color: var(--green-dark);
  font-size: clamp(23px, 2.3vw, 28px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .09em;
}

.note-index .note-highlights { margin-bottom: 58px; }
.note-index .note-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.note-index .note-highlights[data-count="1"] .note-featured-grid { grid-template-columns: minmax(0, 1fr); }
.note-index .note-highlights[data-count="2"] .note-featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.note-index .note-card {
  min-width: 0;
  border: 1px solid #ddd8c9;
  border-radius: 14px;
  background: var(--note-surface);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(50, 54, 32, .045);
  transition: transform .2s ease, box-shadow .2s ease;
}
.note-index .note-card:hover,
.note-index .note-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(50, 54, 32, .09);
}
.note-index .note-card-link { display: flex; flex-direction: column; height: 100%; }
.note-index .note-card-link:focus-visible { outline: 2px solid var(--green-dark); outline-offset: -4px; }
.note-index .note-card-media {
  position: relative;
  min-width: 0;
  aspect-ratio: 16 / 9;
  background: var(--note-sage);
  border-bottom: 1px solid rgba(91, 113, 31, .10);
}
.note-index .note-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.note-index .note-card-media.is-logo {
  background: linear-gradient(140deg, #f4f5ed, #e5ebdc);
}
.note-index .note-card-media.is-logo img { object-fit: contain; padding: 34px; }
.note-index .note-card-body { display: flex; flex-direction: column; flex: 1; padding: 23px 22px 18px; min-width: 0; }
.note-index .note-card-title {
  margin: 0;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.note-index .note-card-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: 15px 0 0;
  color: var(--sub);
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.note-index .note-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }
.note-index .note-card-bottom time { color: var(--sub); font-size: 14px; font-variant-numeric: tabular-nums; }
.note-index .note-link-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid #dedfcf;
  border-radius: 50%;
  color: var(--green-dark);
  background: rgba(255, 255, 255, .5);
  font-size: 23px;
  line-height: 1;
}
.note-index .note-card-link:hover .note-card-title { color: var(--green-dark); }

.note-index .note-highlights[data-count="1"] .note-card-link { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.note-index .note-highlights[data-count="1"] .note-card-media { aspect-ratio: auto; min-height: 280px; border-bottom: 0; border-right: 1px solid rgba(91, 113, 31, .10); }
.note-index .note-highlights[data-count="1"] .note-card-body { padding: 32px; }
.note-index .note-highlights[data-count="1"] .note-card-title { font-size: clamp(23px, 2.3vw, 29px); }
.note-index .note-highlights[data-count="1"] .note-card-media.is-logo img { padding: clamp(40px, 5vw, 80px); }

.note-index .note-archive .note-list { border-top: 1px solid var(--note-rule); }
.note-index .note-archive .note-item { border-bottom: 1px solid var(--note-rule); }
.note-index .note-archive .note-item:hover,
.note-index .note-archive .note-item:focus-within { transform: none; background: transparent; }
.note-index .note-entry {
  display: grid;
  grid-template-columns: 104px minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-areas: "date title excerpt";
  gap: 22px;
  align-items: center;
  padding: 25px 12px;
  -webkit-tap-highlight-color: transparent;
}
.note-index .note-entry-date {
  grid-area: date;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  padding: 8px 14px;
  border-radius: 3px;
  background: #e3e9d9;
  color: var(--green-dark);
  font-size: 13px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.note-index .note-entry-title { grid-area: title; min-width: 0; margin: 0; font-size: 20px; font-weight: 500; line-height: 1.75; overflow-wrap: anywhere; }
.note-index .note-entry-excerpt { grid-area: excerpt; min-width: 0; margin: 0; color: var(--sub); font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.note-index .note-entry:focus-visible { outline: 2px solid var(--green-dark); outline-offset: -2px; }
.note-index .note-entry:active .note-entry-title,
.note-index .note-entry:focus-visible .note-entry-title {
  color: var(--green-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}
.note-index .note-empty { margin: 0; padding: 28px 0; font-size: 16px; color: var(--sub); }

/* 背景色によるホバー表示は、マウスなどでホバーできる端末だけにする。 */
@media (hover: hover) and (pointer: fine) {
  .note-index .note-archive .note-item:hover { background: var(--note-surface); }
  .note-index .note-entry:hover .note-entry-title { color: var(--green-dark); }
}

@media (max-width: 960px) {
  .note-index .note-featured-grid { gap: 16px; }
  .note-index .note-card-body { padding: 19px 17px 16px; }
  .note-index .note-card-title { font-size: 20px; }
  .note-index .note-entry { grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "date title" "date excerpt"; gap: 9px 20px; }
}

@media (max-width: 860px) {
  .note-index .note-highlights { margin-bottom: 42px; }
  .note-index .note-section-title { margin-bottom: 20px; font-size: 24px; }
  .note-index .note-featured-grid,
  .note-index .note-highlights[data-count="1"] .note-featured-grid,
  .note-index .note-highlights[data-count="2"] .note-featured-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .note-index .note-highlights[data-count="1"] .note-card-link { display: flex; }
  .note-index .note-highlights[data-count="1"] .note-card-media { aspect-ratio: 16 / 9; min-height: 0; border-right: 0; border-bottom: 1px solid rgba(91, 113, 31, .10); }
  .note-index .note-card-body,
  .note-index .note-highlights[data-count="1"] .note-card-body { padding: 22px 20px 18px; }
  .note-index .note-card-title,
  .note-index .note-highlights[data-count="1"] .note-card-title { font-size: 22px; }
  .note-index .note-card-media.is-logo img,
  .note-index .note-highlights[data-count="1"] .note-card-media.is-logo img { padding: 38px; }
  .note-index .note-entry { grid-template-columns: minmax(0, 1fr); grid-template-areas: "date" "title" "excerpt"; padding: 24px 0; gap: 10px; }
  .note-index .note-entry-excerpt { margin-top: 2px; -webkit-line-clamp: 3; }
  .note-index .note-rss-link { margin-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .note-index .note-card { transition: none; }
  .note-index .note-card:hover,
  .note-index .note-card:focus-within { transform: none; }
}
