/* 期別フォトアルバム。大きな集合写真＋4枚の受講風景。 */
.cohort-section { background:#081824;border-top:1px solid var(--line); }
.cohort-grid { display:flex;flex-direction:column;gap:64px; }
.cohort-card { margin:0;padding:36px;border:1px solid #d7bc8340;background:#0b1c29;min-width:0; }
.cohort-header { display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:30px;padding-bottom:26px;border-bottom:1px solid var(--line); }
.cohort-heading { display:flex;align-items:baseline;gap:22px; }
.cohort-term-number { font:400 56px/1 var(--serif);color:#d7bc8399;font-variant-numeric:tabular-nums; }
.cohort-label { font:500 32px/1.7 var(--serif);color:var(--gold-light);margin:0; }
.cohort-status { font-size:16px;line-height:1.8;color:var(--muted);margin:0; }
.cohort-main { margin:0; }
.cohort-photo { aspect-ratio:16/9;display:grid;place-items:center;background:#06121c;width:100%;border:1px solid #d7bc8328; }
.cohort-photo img,.cohort-scene-photo img { width:100%;height:100%;object-fit:contain;display:block; }
.cohort-main>figcaption { font-size:16px;line-height:1.8;color:#bccbd4;margin-top:16px; }
.cohort-placeholder { width:100%;height:100%;min-height:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:14px;color:#bccbd4;padding:16px;box-sizing:border-box; }
.cohort-placeholder svg { width:36px;height:27px;color:var(--gold);flex-shrink:0; }
.cohort-placeholder span { font-size:16px;line-height:1.8;text-align:center; }
.cohort-scenes-heading { display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin:36px 0 20px;padding-top:28px;border-top:1px solid var(--line); }
.cohort-scenes-heading p { font-size:20px;line-height:1.8;color:#e0cc9e;margin:0; }
.cohort-scenes-heading>span { font-size:16px;line-height:1.8;color:#bccbd4; }
.cohort-scenes { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px; }
.cohort-scene { min-width:0;margin:0; }
.cohort-scene-photo { width:100%;aspect-ratio:1/1;background:#06121c;border:1px solid #d7bc8336; }
.cohort-scene figcaption { display:flex;align-items:baseline;gap:12px;margin-top:14px;font-size:16px;line-height:1.8; }
.cohort-scene-number { color:var(--gold);font-variant-numeric:tabular-nums; }
.cohort-scene-caption { color:#c7d4dc;overflow-wrap:anywhere; }
@media(max-width:960px) { .cohort-scenes { grid-template-columns:repeat(2,minmax(0,1fr));gap:24px; } .cohort-card { padding:28px; } }
@media(max-width:640px) {
 .cohort-grid { gap:36px; }
 .cohort-card { padding:18px; }
 .cohort-header { gap:16px;align-items:start;flex-direction:column;margin-bottom:20px;padding-bottom:20px; }
 .cohort-heading { gap:18px; }
 .cohort-term-number { font-size:42px; }
 .cohort-label { font-size:28px; }
 .cohort-status,.cohort-main>figcaption { font-size:14px; }
 .cohort-scenes-heading { margin-top:28px;gap:12px;flex-wrap:wrap;padding-top:22px; }
 .cohort-scenes-heading p { font-size:18px; }
 .cohort-scenes-heading>span { font-size:14px; }
 .cohort-scenes { gap:20px 14px; }
 .cohort-placeholder { gap:10px;padding:10px; }
 .cohort-placeholder span { font-size:14px; }
 .cohort-scene figcaption { font-size:14px;gap:8px;margin-top:10px; }
 .cohort-scene-photo .cohort-placeholder svg { width:28px;height:21px; }
}

/* 画像の内在サイズでgridが拡大しないよう全期の外枠を固定する。 */
.cohort-photo {
 grid-template-columns:minmax(0,1fr);
 grid-template-rows:minmax(0,1fr);
 min-width:0;min-height:0;
}
.cohort-photo img,.cohort-scene-photo img { min-width:0;min-height:0;max-width:100%;max-height:100%; }

/* v44: one restrained photographic tone; originals remain unchanged. */
#cohorts .cohort-photo,#cohorts .cohort-scene-photo { position:relative;isolation:isolate; }
#cohorts .cohort-photo img,#cohorts .cohort-scene-photo img {
 filter:brightness(var(--cohort-brightness,1.025)) saturate(.88) contrast(.99);
}
#cohorts .cohort-photo:has(img)::after,#cohorts .cohort-scene-photo:has(img)::after {
 content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:rgba(5,24,37,.055);
}
