/* TOP HISTORY only. Preserve the five milestones, their stagger, light sweep and final-node pulse. */
.ts50-home .ts50-history--journal {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 82px 40px 58px;
  background: #001040;
  color: #f7f6f2;
  scroll-margin-top: 78px;
}
.ts50-history--journal *,
.ts50-history--journal *::before,
.ts50-history--journal *::after { box-sizing: border-box; }
/* Static activity-photo layer only. Existing animation names, speeds and transforms are unchanged. */
.ts50-history--journal .ts50-history-journal__photo {
  position: absolute;
  inset: 0 auto 0 0;
  width: 78%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.ts50-history--journal .ts50-history-journal__photo-image {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
  filter: grayscale(1) contrast(.95);
  opacity: .22;
}
.ts50-history--journal .ts50-history-journal__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,16,64,.16) 0%, rgba(0,16,64,.08) 38%, rgba(0,16,64,.62) 74%, #001040 100%),
    linear-gradient(180deg, #001040 0%, rgba(0,16,64,.10) 24%, rgba(0,16,64,.08) 54%, rgba(0,16,64,.64) 82%, #001040 100%);
}
.ts50-history--journal .ts50-history__bgword { z-index: 1; }
.ts50-history--journal .ts50-section__inner { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; }
@media (max-width: 860px) {
  .ts50-history--journal .ts50-history-journal__photo { width: 100%; }
  .ts50-history--journal .ts50-history-journal__photo-image { opacity: .16; object-position: 47% 50%; }
  .ts50-history--journal .ts50-history-journal__photo::after {
    background:
      linear-gradient(90deg, rgba(0,16,64,.12), rgba(0,16,64,.08) 45%, rgba(0,16,64,.48)),
      linear-gradient(180deg, #001040 0%, rgba(0,16,64,.18) 22%, rgba(0,16,64,.12) 55%, rgba(0,16,64,.70) 82%, #001040 100%);
  }
}
.ts50-history--journal .ts50-history-journal__chapter {
  margin: 0 0 28px;
  padding: 0;
  color: #bfcada;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: .1em;
}
.ts50-history--journal .ts50-history-journal__introduction {
  display: grid;
  grid-template-columns: minmax(0, 1.26fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(36px, 5vw, 84px);
}
.ts50-history--journal .ts50-history-journal__title {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(30px, 3.15vw, 44px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -.025em;
  text-align: left;
  color: #f7f6f2;
}
.ts50-history--journal .ts50-history-journal__title > span { display: block; }
.ts50-history--journal .ts50-history-journal__text {
  max-width: 28em;
  padding: 0 0 5px;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: .03em;
  color: #c9d2e0;
}
.ts50-history--journal .ts50-history-journal__text p { margin: 0; line-height: inherit; }
.ts50-history--journal .ts50-history-journal__text p + p { margin-top: 10px; }
.ts50-history--journal .ts50-history-journal__timeline { padding: 76px 0 44px; }
/* Only spacing is changed here; existing milestone animation rules remain in toseikyo-50th.css. */
.ts50-history--journal .ts50-historyline { margin: 0; padding: 31px 0 8px; overflow: visible; }
.ts50-history--journal .ts50-history-journal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(219, 225, 234, .24);
}
.ts50-history--journal .ts50-history-journal__footer > p {
  margin: 0;
  color: #bfcada;
  font-family: -apple-system, BlinkMacSystemFont, "Yu Gothic", Meiryo, sans-serif;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: .05em;
}
.ts50-history--journal .ts50-history-journal__read {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 46px;
  min-height: 48px;
  padding: 8px 0;
  border-bottom: 1px solid #8aa5be;
  color: #f7f6f2;
  background: none;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  text-decoration: none;
}
.ts50-history--journal .ts50-history-journal__arrow { display: inline-block; font-family: Arial, sans-serif; font-size: 29px; font-weight: 400; line-height: 1; transition: transform .2s ease; }
.ts50-history--journal .ts50-history-journal__read:focus-visible { outline: 2px solid #8edfff; outline-offset: 7px; }
@media (hover: hover) and (pointer: fine) {
  .ts50-history--journal .ts50-history-journal__read:hover { color: #8edfff; }
  .ts50-history--journal .ts50-history-journal__read:hover .ts50-history-journal__arrow { transform: translateX(5px); }
}
@media (max-width: 1100px) and (min-width: 861px) {
  .ts50-home .ts50-history--journal { padding-left: 30px; padding-right: 70px; }
  .ts50-history--journal .ts50-history-journal__introduction { gap: 32px; }
  .ts50-history--journal .ts50-history-journal__title { font-size: 30px; }
  .ts50-history--journal .ts50-history-journal__text { font-size: 14px; }
}
@media (max-width: 860px) {
  .ts50-home .ts50-history--journal { padding: 52px 24px 42px; scroll-margin-top: 70px; }
  .ts50-history--journal .ts50-history-journal__chapter { margin-bottom: 24px; font-size: 11px; }
  .ts50-history--journal .ts50-history-journal__introduction { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ts50-history--journal .ts50-history-journal__title { font-size: clamp(27px, 4.8vw, 38px); line-height: 1.65; }
  .ts50-history--journal .ts50-history-journal__text { max-width: 38em; padding: 0; font-size: 14px; }
  .ts50-history--journal .ts50-history-journal__timeline { padding: 54px 6px 34px; }
  .ts50-history--journal .ts50-historyline { grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 31px 0 8px; overflow: visible; margin: 0; }
  .ts50-history--journal .ts50-history-journal__footer { align-items: flex-start; flex-direction: column; gap: 12px; padding-top: 22px; }
  .ts50-history--journal .ts50-history-journal__read { width: 100%; font-size: 16px; min-height: 48px; }
}
@media (max-width: 480px) {
  .ts50-home .ts50-history--journal { padding-left: 20px; padding-right: 20px; }
  .ts50-history--journal .ts50-history-journal__title { font-size: clamp(24px, 6.4vw, 29px); }
  .ts50-history--journal .ts50-history-journal__text { line-height: 1.95; }
}
@media (prefers-reduced-motion: reduce) {
  .ts50-history--journal .ts50-historyline > span { opacity: 1; transform: none; transition: none; }
  .ts50-history--journal .ts50-historyline::before,
  .ts50-history--journal .ts50-historyline .is-current::before { animation: none; }
  .ts50-history--journal .ts50-history-journal__arrow { transition: none; }
}
