/* Homepage and institutional pages: fixed hierarchy, real photographs and concise records. */
.mj-home .mj-home-hero {
  display: block;
  min-height: 0;
  background: #fff;
  color: var(--mj-ink);
  border-bottom: 1px solid var(--mj-line);
}
.mj-home .mj-home-hero::before,
.mj-home .mj-home-hero::after { content: none; }
.mj-home .mj-home-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-top: clamp(44px, 5vw, 76px);
  padding-bottom: clamp(44px, 5vw, 76px);
}
.mj-home .mj-home-hero__since {
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.6;
}
.mj-home .mj-home-hero h1 {
  margin: 0;
  font: 600 clamp(32px, 3.2vw, 48px)/1.3 var(--mj-font-head, var(--mj-font-sans));
  letter-spacing: 0;
  color: var(--mj-navy);
  text-wrap: balance;
}
.mj-home .mj-home-hero__lead {
  margin: 24px 0 0;
  font-size: 17px;
  line-height: 1.85;
  color: #4b5563;
  max-width: 35em;
}
.mj-home .mj-home-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.mj-home .mj-home-hero__actions .mj-btn { min-height: 46px; padding: 12px 22px; box-shadow: none; }
.mj-home .mj-home-hero__note { margin: 24px 0 0; max-width: 42em; color: #4b5563; font-size: 15px; line-height: 1.8; }
.mj-home .mj-home-hero__photo { min-width: 0; margin: 0; }
.mj-home .mj-home-hero__photo img { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; border-radius: 4px; }
.mj-home .mj-home-hero__photo figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-top: 12px; color: #596575; font-size: 15px; line-height: 1.6; }
.mj-home .mj-home-hero__photo a { color: var(--mj-navy); text-underline-offset: 3px; white-space: nowrap; }
.mj-home .mj-home-hero__photo a:hover { text-decoration: underline; }
.mj-home .mj-promisebar__inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 0; padding-top: 24px; padding-bottom: 24px; }
.mj-home .mj-promisebar__inner > div { display: block; min-width: 0; padding: 0 20px; }
.mj-home .mj-promisebar__inner > div:first-child { padding-left: 0; }
.mj-home .mj-promisebar__inner > div b { white-space: normal; font-size: 16px; line-height: 1.7; }
.mj-home .mj-promisebar__inner > div:nth-child(4) > span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.7; color: #596575; }
.mj-home .mj-trust { padding-top: 24px; padding-bottom: 24px; }
.mj-home .mj-trust__line { font-size: 17px; line-height: 1.9; }
.mj-home .mj-home-check { background: var(--mj-ivory, #faf9f6); border-top: 1px solid var(--mj-line); border-bottom: 1px solid var(--mj-line); }
.mj-home .mj-home-check__inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: clamp(32px, 5vw, 72px); }
.mj-home .mj-home-check .mj-h2 { font-size: clamp(26px, 2vw, 32px); }
.mj-home .mj-home-check .mj-lead { font-size: 16px; line-height: 1.85; margin-top: 16px; }
.mj-home .mj-home-check__label { display: block; margin-top: 24px; margin-bottom: 8px; color: #4b5563; font-size: 15px; }
.mj-home .mj-home-check__select { width: 100%; max-width: 360px; min-height: 46px; padding: 10px 36px 10px 12px; font: inherit; font-size: 15px; line-height: 1.5; color: var(--mj-ink); border: 1px solid var(--mj-line); border-radius: 6px; background-color: #fff; }
.mj-home .mj-home-check__select:focus-visible { outline: 2px solid var(--mj-navy); outline-offset: 3px; }
.mj-home .mj-home-check .mj-qc { width: 100%; min-width: 0; margin: 0; padding: 28px; border: 1px solid var(--mj-line); border-radius: 8px; background: #fff; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.mj-home .mj-home-check .mj-qc__title { font-family: var(--mj-font-sans); font-size: 18px; line-height: 1.6; }
.mj-home .mj-home-check .mj-qc__nav .mj-btn { box-shadow: none; }
.mj-home .mj-case__summary { grid-column: 2; grid-row: 2; margin: 12px 0 0; }
.mj-home .mj-case__summary > div { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 12px; margin-top: 6px; font-size: 15px; line-height: 1.8; }
.mj-home .mj-case__summary dt { font-weight: 400; color: #596575; }
.mj-home .mj-case__summary dd { margin: 0; color: #4b5563; }
.mj-home .mj-case--real .mj-case__facts b { font-size: 17px; font-weight: 600; }
.mj-home .mj-case--real .mj-case__facts { gap: 14px; }
.mj-home .mj-case--real .mj-case__facts li { min-width: 0; }
.mj-home .mj-case--real .mj-case__facts span { font-size: 15px; line-height: 1.65; color: #596575; }
.mj-home .mj-case--real .mj-case__facts b span { font-size: inherit; color: inherit; }
.mj-home .mj-case--real::after { content: none; }
.mj-home .mj-cases__note { margin-top: 20px; color: #596575; font-size: 15px; line-height: 1.8; }
.mj-about .mj-about-intro { gap: 40px; }
.mj-about .mj-about-intro figure { border-radius: 0; }
.mj-about .mj-about-intro figcaption { color: #596575; margin-top: 10px; font-size: 15px; line-height: 1.6; }
.mj-about .mj-about-history { display: grid; grid-template-columns: minmax(180px, .42fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.mj-about .mj-about-history .mj-head { margin: 0; }
.mj-about .mj-timeline-h--full { display: block; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--mj-line); }
.mj-about .mj-timeline-h--full::before,
.mj-about .mj-timeline-h--full .mj-tl::before { content: none; }
.mj-about .mj-timeline-h--full .mj-tl { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 24px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--mj-line); }
.mj-about .mj-timeline-h--full .mj-tl b { margin: 0; font-size: 17px; line-height: 1.7; font-weight: 600; }
.mj-about .mj-timeline-h--full .mj-tl span { margin: 0; font-size: 17px; line-height: 1.75; color: #4b5563; }
.mj-about .mj-gallery--deck { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: none; gap: 24px; }
.mj-about .mj-gallery--deck figure { height: auto; margin: 0; border-radius: 0; background: transparent; }
.mj-about .mj-gallery--deck figure.is-big { grid-column: span 3; }
.mj-about .mj-gallery--deck figure:not(.is-big) { grid-column: span 2; }
.mj-about .mj-gallery--deck img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; border-radius: 4px; }
.mj-about .mj-gallery--deck figcaption { padding: 10px 0 0; font-size: 15px; line-height: 1.6; color: #596575; }
.mj-about .mj-team-banner { border-radius: 4px; background: transparent; }
.mj-about .mj-team-banner::after,
.mj-about .mj-culture-wall::after { content: none; }
.mj-about .mj-team-banner figcaption { position: static; background: transparent; padding: 16px 0 4px; color: var(--mj-ink); }
.mj-about .mj-team-banner figcaption b { font-size: 16px; }
.mj-about .mj-team-banner figcaption span { color: #4b5563; font-size: 15px; line-height: 1.8; }
.mj-about .mj-culture-wall { border-radius: 4px; box-shadow: none; }
.mj-about .mj-events figcaption { font-size: 15px; line-height: 1.6; }
.mj-about .mj-culture h3 { font-size: 16px; line-height: 1.6; color: #596575; }
.mj-about .mj-culture small { font-size: 15px; line-height: 1.75; color: #596575; }
.mj-about .mj-partner__inner > div:first-child { flex: 1 1 0; min-width: 0; }
.mj-about .mj-contact-qr { flex: 0 0 auto; width: 320px; max-width: 100%; min-width: 0; flex-direction: column; align-items: flex-start; }
.mj-about .mj-contact-qr > div { width: 100%; min-width: 0; max-width: 100%; }
.mj-about .mj-contact-qr span { font-size: 15px; line-height: 1.65; color: rgba(255,255,255,.9); }
.mj-about .mj-contact-qr .mj-btn { width: 100%; max-width: 100%; height: auto; min-height: 48px; padding: 12px 18px; white-space: normal; text-align: center; }
.mj-about .mj-gallery figure:hover img,
.mj-about .mj-events figure:hover img { transform: none; }
@media (max-width: 1100px) {
  .mj-home .mj-home-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; }
  .mj-home .mj-home-hero__photo img { aspect-ratio: 4/5; object-position: 44% center; }
  .mj-home .mj-promisebar__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; }
  .mj-home .mj-promisebar__inner > div:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 900px) {
  .mj-home .mj-case__summary { grid-column: 1; grid-row: 3; }
  .mj-about .mj-about-history { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  .mj-home .mj-home-hero__inner,
  .mj-home .mj-home-check__inner { grid-template-columns: 1fr; gap: 28px; }
  .mj-home .mj-home-hero__photo img { aspect-ratio: 16/9; object-position: center; }
  .mj-home .mj-home-hero__lead { font-size: 16px; margin-top: 18px; }
  .mj-home .mj-home-hero__note { margin-top: 18px; }
  .mj-home .mj-home-check .mj-qc { padding: 20px; }
  .mj-home .mj-home-check__select { max-width: none; }
  .mj-about .mj-gallery--deck { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .mj-about .mj-gallery--deck figure.is-big { grid-column: span 2; }
  .mj-about .mj-gallery--deck figure:not(.is-big) { grid-column: span 1; }
}
@media (max-width: 420px) {
  .mj-home .mj-home-hero__actions { flex-direction: column; align-items: stretch; }
  .mj-home .mj-promisebar__inner { grid-template-columns: 1fr; gap: 12px; }
  .mj-home .mj-promisebar__inner > div { padding: 0; border: 0; }
  .mj-home .mj-case__summary > div { grid-template-columns: 1fr; gap: 0; }
  .mj-about .mj-timeline-h--full .mj-tl { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; }
}
