/* 活動実績の詳細ページだけで使うスタイル。共通部分は style.css */

/* 読みやすい幅にそろえる */
.entry-container {
  max-width: calc(896px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 見出し */
.entry-hero { background: #f8eaf2; }
.entry-hero__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 56px);
  padding-block: clamp(56px, 7vw, 72px) 72px;
}
.entry-hero__text { display: flex; flex-direction: column; gap: 22px; }
.entry-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.entry-hero__tag {
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--white);
  color: var(--green-deep);
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.5;
}
.entry-hero__meta time {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}
.entry-hero__title {
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 2.875rem);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: .03em;
  font-feature-settings: "palt";
  word-break: auto-phrase;
}
.entry-hero__text > p:last-child { color: var(--ink-soft); font-size: 1rem; line-height: 2; }

/* 本文の周り */
.entry {
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding-block: 56px var(--section-space);
}
.entry__photo { aspect-ratio: 16 / 9; min-height: 0; border-radius: 28px; }

/* 開催日などの概要 */
/* 縦に並べ、両端そろえにしない（2026-11-24 ユーザー指定） */
.entry-facts {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.5vw, 12px);
  text-align: start;
}
.entry-facts div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(16px, 3vw, 22px) clamp(18px, 3vw, 24px);
  border-radius: 20px;
  background: var(--mist-gray);
}
.entry-facts dt { color: var(--green-deep); font-size: .75rem; font-weight: 700; line-height: 1.5; }
.entry-facts dd { font-size: .9375rem; font-weight: 700; line-height: 1.7; text-align: start; }

/* 投稿の本文。見出しの線の色は、緑・中間色・ピンクの順に変わる */
.entry-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-size: 1rem;
  line-height: 2.05;
}
.entry-content h2 {
  margin-top: 16px;
  padding-left: 18px;
  border-left: 4px solid var(--green);
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.6vw, 1.625rem);
  font-weight: 800;
  line-height: 1.5;
}
.entry-content h2:first-child { margin-top: 0; }
.entry-content h2:nth-of-type(3n+2) { border-color: var(--gradient-mid); }
.entry-content h2:nth-of-type(3n) { border-color: var(--pink); }

/* 発表されたサービス。印の色は緑から順に変わる */
.service-list { display: flex; flex-direction: column; gap: 14px; }
.service-list li {
  --dot: var(--green);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px 22px 52px;
  border: 1px solid #e3eae7;
  border-radius: 20px;
  background: var(--white);
}
.service-list li:nth-child(3n+2) { --dot: var(--gradient-mid); }
.service-list li:nth-child(3n) { --dot: var(--pink); }
.service-list li::before {
  content: "";
  position: absolute;
  top: 33px;
  left: 24px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot);
}
.service-list__name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.6;
}
.service-list li > p:not([class]) { color: var(--ink-soft); font-size: .875rem; line-height: 1.85; }
.service-list__group { display: flex; gap: 8px; margin-top: 4px; color: var(--muted); font-size: .8125rem; line-height: 1.7; }
.service-list__group span { color: var(--green-deep); font-weight: 700; }

/* 写真を並べる */
.entry-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}
.entry-gallery figure { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.entry-gallery .placeholder { aspect-ratio: 4 / 3; min-height: 0; border-radius: 20px; }
.placeholder--mid { background: repeating-linear-gradient(135deg, #eeedf6 0 12px, #f5f4fa 12px 24px); }
.entry-gallery figcaption { color: var(--muted); font-size: .8125rem; line-height: 1.7; }

/* 参加者の声 */
.entry-voice {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: clamp(24px, 4vw, 32px) clamp(24px, 4vw, 36px);
  border-radius: 24px;
  background: #f8eaf2;
}
.entry-voice p { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 500; line-height: 2; }
.entry-voice cite { color: var(--muted); font-size: .8125rem; font-style: normal; }

/* 前後の実績と一覧への戻り */
.entry-footer {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 40px;
  border-top: 1px solid #e3eae7;
}
.entry-pager {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}
.entry-pager a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
  border: 1px solid #e3eae7;
  border-radius: 20px;
  font-size: .875rem;
  line-height: 1.7;
  text-decoration: none;
}
.entry-pager a:hover { border-color: var(--green-dark); }
.entry-pager span { color: var(--green-deep); font-size: .75rem; font-weight: 700; }
.entry-pager__next { text-align: right; }

/* 関連する活動 */
.entry-related { padding-block: clamp(72px, 9vw, 100px); background: var(--mist-gray); }

/* 管理画面で登録した画像（仮画像の代わりに入る） */
img.entry__photo { display: block; width: 100%; height: auto; object-fit: cover; }
.entry-figure { margin: 32px 0; }
.entry-figure img { display: block; width: 100%; height: auto; border-radius: 20px; }
.entry-figure figcaption { margin-top: 10px; color: var(--muted); font-size: .8125rem; line-height: 1.7; }

/* スマホでは、文節で折り返さず横幅いっぱいまで続ける（2026-11-23） */
@media (max-width: 600px) {
  .entry-hero__title { word-break: normal; text-wrap: wrap; }
}
