/* 実証授業レポート（jissho-jugyo-report-ai.php / jissho-jugyo-report-game.php 共用）
   配色・書体はサイト共通（css/style.css、特に expand.php）に合わせています。 */
:root {
  --jr-navy: #1a294a;
  --jr-navy-hover: #416bba;
  --jr-text: #000;
  --jr-muted: #4a4c70;
  --jr-tint: #f7fbfd;
  --jr-card: #eefbf4;
  --jr-line: rgba(26, 41, 74, 0.15);
}

/* タイトル帯（.page-header）の直後に置く */
.jr-report {
  padding: 60px 0 80px;
  overflow-x: hidden;
  color: var(--jr-text);
  background: #fff;
  line-height: 1.9;
}

.jr-report *,
.jr-report *::before,
.jr-report *::after {
  box-sizing: border-box;
}

/* サイト共通のホバー色（ミント）は白背景で読めないため、記事内は紺系にする */
.jr-report a:hover,
.jr-report a:focus {
  color: var(--jr-navy-hover);
}

.jr-article-header {
  margin-bottom: 42px;
}

.jr-article-header h1 {
  max-width: 920px;
  margin: 0;
  color: var(--jr-text);
  font-size: 34px; /* expand.php のリード見出し（.ex-lead__title）に合わせる */
  font-weight: 700;
  line-height: 1.35;
}

.jr-title-phrase {
  display: inline-block;
}

.jr-main-image {
  margin: 0 0 48px;
}

.jr-main-image img,
.jr-main-image .jr-media-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 10px;
}

.jr-media-placeholder {
  display: grid;
  place-items: center;
  min-height: 200px;
  padding: 24px;
  color: var(--jr-muted);
  background:
    linear-gradient(to top right, transparent 49.7%, #aeb7c5 50%, transparent 50.3%),
    linear-gradient(to bottom right, transparent 49.7%, #aeb7c5 50%, transparent 50.3%),
    #f4f5f7;
  border: 1px solid #aeb7c5;
  text-align: center;
}

.jr-media-placeholder span {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.9);
}

/* 実施概要：紺の帯＋罫線なしの2列（expand.php のメンバー表に合わせる） */
.jr-overview {
  margin-bottom: 54px;
  overflow: hidden;
  background: var(--jr-tint);
  border-radius: 12px;
}

.jr-overview > h2 {
  margin: 0;
  padding: 10px 24px;
  color: #fff;
  background: var(--jr-navy);
  font-size: 20px;
  font-weight: 700;
}

.jr-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  margin: 0;
  padding: 20px 24px;
}

.jr-facts dt {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.jr-facts dd {
  margin: 0;
  color: var(--jr-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* 写真と実施概要の組：992px 以上は横並び、それ以下は縦積み。
   写真は元画像より大きく引き伸ばさないよう、幅を 500px までに抑える */
.jr-intro {
  margin-bottom: 54px;
}

.jr-intro .jr-main-image {
  max-width: 500px;
  margin: 0 auto 36px;
}

.jr-intro .jr-main-image img,
.jr-intro .jr-main-image .jr-media-placeholder {
  aspect-ratio: 16 / 9;
}

.jr-intro .jr-overview {
  margin-bottom: 0;
}

@media (min-width: 992px) {
  .jr-intro {
    display: grid;
    grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }

  .jr-intro .jr-main-image {
    margin: 0;
  }

  .jr-intro .jr-facts {
    grid-template-columns: 1fr;
  }
}

/* メイン写真が 4:3 の記事用。992px 以上では写真の高さを右の実施概要に合わせる */
.jr-intro--photo-4x3 .jr-main-image img,
.jr-intro--photo-4x3 .jr-main-image .jr-media-placeholder {
  aspect-ratio: 4 / 3;
}

@media (min-width: 992px) {
  .jr-intro--photo-4x3 {
    align-items: stretch;
  }

  .jr-intro--photo-4x3 .jr-main-image img,
  .jr-intro--photo-4x3 .jr-main-image .jr-media-placeholder {
    height: 100%;
    aspect-ratio: auto;
  }
}

.jr-section {
  margin-bottom: 56px;
}

.jr-section > h2 {
  margin: 0 0 22px;
  color: var(--jr-text);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
}

/* 番号付き見出し（expand.php の 01 / 02 / 03 に合わせる） */
.jr-section > h2.jr-heading--num {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 28px;
}

.jr-heading__num {
  flex: none;
  color: var(--jr-navy);
  font-size: 64px;
  line-height: 1;
}

.jr-section > p {
  max-width: 760px;
  margin: 0 0 28px;
}

.jr-section > p:last-child {
  margin-bottom: 0;
}

.jr-subheading {
  margin: 0 0 10px;
  color: var(--jr-text);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.jr-flow {
  max-width: 760px;
}

.jr-flow-item {
  position: relative;
  padding-left: 1.3em;
}

.jr-flow-item + .jr-flow-item {
  margin-top: 4px;
}

.jr-flow-item::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 0.25em;
  width: 7px;
  height: 7px;
  background: var(--jr-navy);
  border-radius: 50%;
}

.jr-gallery figure {
  margin: 0;
}

.jr-gallery figcaption {
  margin-top: 8px;
  color: var(--jr-muted);
  font-size: 13px;
}

.jr-gallery {
  display: grid;
  gap: 24px;
}

.jr-gallery--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jr-gallery--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jr-gallery img,
.jr-gallery .jr-media-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

/* 画面キャプチャ用：切らずに全体を表示し、白い画面の境目が分かるよう薄い枠線を付ける。
   高さが違う画像は揃えずにそのまま並べる */
.jr-gallery--screens {
  align-items: start;
}

.jr-gallery--screens img {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border: 1px solid var(--jr-line);
}

/* 画像用の display: block がプレースホルダーにも当たり、ラベルが中央に来ないため上書き */
.jr-main-image .jr-media-placeholder,
.jr-gallery .jr-media-placeholder {
  display: grid;
}

.jr-section > .jr-voices-note {
  margin: -12px 0 18px;
  color: var(--jr-muted);
  font-size: 13px;
}

.jr-voices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* 生徒の声：expand.php のチームカードに合わせる */
.jr-voice {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 34px 26px 22px;
  background: var(--jr-card);
  border-radius: 12px;
}

/* 全幅のカード（講師の声など）。1列表示のときは他のカードと同じ幅になる */
.jr-voice--wide {
  grid-column: 1 / -1;
}

.jr-voice::before {
  content: "“";
  position: absolute;
  top: 8px;
  left: 20px;
  color: var(--jr-navy);
  font-family: Georgia, serif;
  font-size: 38px;
  line-height: 1;
  opacity: 0.35;
}

.jr-voice p {
  margin: 0 0 20px;
}

/* 学年・立場の表記（cite）がないカードは、下の余白を残さない */
.jr-voice p:last-child {
  margin-bottom: 0;
}

.jr-voice cite {
  display: block;
  margin-top: auto;
  padding-top: 12px;
  color: var(--jr-muted);
  border-top: 1px solid var(--jr-line);
  font-size: 13px;
  font-style: normal;
}

.jr-future {
  margin-bottom: 42px;
}

/* 関連リンク：サイト共通の .nextbtn を横に並べる */
.jr-related-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 20px;
}

.jr-related-buttons .nextbtn {
  margin-top: 0;
}

/* 991.98px 以下はナビが通常配置になるため、ナビ分の上余白を取らない */
@media (max-width: 991.98px) {
  .jr-report {
    padding-top: 50px;
  }

  .jr-section > h2 {
    font-size: 25px;
  }

  .jr-heading__num {
    font-size: 56px;
  }

  .jr-gallery {
    gap: 16px;
  }

  .jr-voices {
    gap: 16px;
  }
}

@media (max-width: 767.98px) {
  .jr-report {
    padding-block: 42px 60px;
  }

  .jr-article-header {
    margin-bottom: 30px;
  }

  .jr-article-header h1 {
    font-size: clamp(22px, 6.3vw, 26px);
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .jr-main-image {
    margin-bottom: 36px;
  }

  .jr-main-image img,
  .jr-main-image .jr-media-placeholder {
    aspect-ratio: 4 / 3;
  }

  .jr-overview > h2 {
    padding-inline: 18px;
    font-size: 17px;
  }

  .jr-facts {
    padding: 16px 18px;
  }

  .jr-section {
    margin-bottom: 46px;
  }

  .jr-section > h2 {
    font-size: 22px;
  }

  .jr-section > h2.jr-heading--num {
    gap: 14px;
    margin-bottom: 20px;
  }

  .jr-heading__num {
    font-size: 48px;
  }

  .jr-subheading {
    font-size: 19px;
  }

  .jr-gallery {
    gap: 12px;
  }

  .jr-gallery--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jr-gallery--three figure:first-child {
    grid-column: 1 / -1;
  }

  .jr-gallery--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* スマホで1列に縦積みするギャラリー */
  .jr-gallery--stack {
    grid-template-columns: 1fr;
  }

  .jr-gallery figcaption {
    font-size: 11px;
  }

  .jr-voices {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .jr-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .jr-report {
    padding-top: 34px;
  }

  .jr-gallery {
    gap: 10px;
  }

  .jr-gallery figcaption {
    line-height: 1.5;
  }

  .jr-voice {
    padding-inline: 20px;
  }
}
