:root {
  --bg: var(--light-card);
  --bg-2: var(--surface-light);
  --fg: var(--light-ink);
  --fg-dim: var(--light-dim);
  --accent: #c6ff2e;
  --accent-ink: #0a0a0a;
  --line: var(--light-line);
  --surface: var(--light-card);
  --surface-raised: var(--light-card);
  --surface-light: #f2f2f2;
  --light-card: #ffffff;
  --light-ink: #101010;
  --light-dim: #444444;
  --light-line: #c8c8c8;
  --accent-dark: #405500;
  --header-bg: #0a0a0a;
  /* 2026-09-03 司令塔レビュー：hero-01-jissyu.jpg は画像自体に文字が焼き込まれているため濃くした */
  --overlay: linear-gradient(90deg, rgba(10, 10, 10, 0.96) 0%, rgba(10, 10, 10, 0.89) 46%, rgba(10, 10, 10, 0.48) 100%);
  --overlay-mobile: linear-gradient(180deg, rgba(10, 10, 10, 0.28) 0%, rgba(10, 10, 10, 0.92) 58%, rgba(10, 10, 10, 0.98) 100%);
  --image-overlay: linear-gradient(180deg, rgba(10, 10, 10, 0.02) 25%, rgba(10, 10, 10, 0.92) 100%);
  --accent-soft: rgba(198, 255, 46, 0.12);
  --accent-line: rgba(198, 255, 46, 0.45);
  --accent-shadow: rgba(198, 255, 46, 0.22);
  --line-soft: var(--light-line);
  --shadow: rgba(0, 0, 0, 0.12);
  --accent-text: var(--accent-dark);
  --control-line: var(--accent-dark);
  --word-ink: #c6ff2e;
  --header-h: 72px;
  --container: 1180px;
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", sans-serif;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

html.nav-open,
body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: var(--accent-soft);
}

:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 0.7rem 1rem;
  transform: translateY(-150%);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 900;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  width: min(calc(100% - 32px), 1320px);
  height: 100%;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
  color: var(--fg);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
}

.brand small {
  display: block;
  color: var(--accent-text);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.global-nav a {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  color: var(--fg-dim);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.global-nav a:hover,
.global-nav a[aria-current="page"] {
  background: var(--accent);
  color: var(--accent-ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--fg);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - var(--header-h));
  isolation: isolate;
  align-items: center;
  overflow: hidden;
}

.hero-media,
.hero-scrim {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.js .hero-media img {
  animation: hero-photo-zoom 16s ease-out both;
}

@keyframes hero-photo-zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

@keyframes hero-photo-zoom-mobile {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.03);
  }
}

.hero-scrim {
  z-index: -1;
  background: var(--overlay);
}

.hero-content {
  padding-block: clamp(2rem, 7vh, 5rem);
}

.hero-flash {
  display: grid;
  max-width: 760px;
  margin-bottom: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--accent);
  background: var(--accent);
}

.hero-flash a {
  display: flex;
  min-width: 0;
  min-height: 38px;
  padding: 0.35rem 0.75rem;
  align-items: center;
  gap: 0.2rem;
  color: var(--accent-ink);
  font-size: clamp(0.68rem, 1vw, 0.82rem);
  font-weight: 950;
  line-height: 1.25;
  text-decoration: none;
}

.hero-flash a + a {
  border-left: 1px solid var(--accent-ink);
}

.hero-flash a:hover,
.hero-flash a:focus-visible {
  background: var(--accent-ink);
  color: var(--accent-text);
}

.hero-flash span {
  flex: 0 0 auto;
}

.kicker,
.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent-text);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3.25rem, 8vw, 7.8rem);
  font-weight: 950;
  letter-spacing: -0.07em;
  /* 2026-09-03 司令塔レビュー：0.92 は font-size を下回り、上下の行が約9px食い込んでいた */
  line-height: 1.06;
}

.hero h1 .accent,
.page-hero h1 .accent {
  color: var(--accent-text);
}

.hero-lead {
  margin: 1.1rem 0 1.25rem;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-proof {
  display: grid;
  max-width: 760px;
  margin: 0 0 1.3rem;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line-soft);
}

.hero-proof article {
  padding: 0.8rem 1rem;
  border-right: 1px solid var(--line-soft);
}

.hero-proof article:last-child {
  border-right: 0;
}

.hero-proof span {
  display: block;
  color: var(--fg-dim);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}

.hero-proof strong {
  display: block;
  margin-top: 0.15rem;
  color: var(--accent-text);
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 1;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 0.78rem 1.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 1px solid var(--fg);
  border-radius: 999px;
  color: var(--fg);
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.button::after {
  content: "→";
}

.button.primary {
  border-color: var(--accent-text);
  background: var(--accent);
  color: var(--accent-ink);
}

.button:hover {
  border-color: var(--accent-text);
  background: var(--accent);
  color: var(--accent-ink);
}

.hero-note {
  position: absolute;
  right: 16px;
  bottom: 10px;
  margin: 0;
  color: var(--fg-dim);
  font-size: 0.68rem;
}

.section {
  position: relative;
  min-height: 76svh;
  padding-block: clamp(5rem, 10vw, 9rem);
  overflow: clip;
  background: var(--bg);
}

.section.alt {
  background: var(--bg-2);
}

/* M28: 従来のlightトークンを既定にし、黒い章だけdarkを指定。 */
.dark {
  --bg: #0a0a0a;
  --bg-2: #141414;
  --fg: #f2f2f2;
  --fg-dim: #b9b9b9;
  --line: #2a2a2a;
  --surface: #101010;
  --surface-raised: #1b1b1b;
  --line-soft: rgba(242, 242, 242, 0.13);
  --accent-text: var(--accent);
  --control-line: var(--accent);
  --word-ink: rgba(198, 255, 46, 0.16);
  color: var(--fg);
}

.section.light .card {
  border-color: var(--light-line);
  background: var(--light-card);
}

.section.light .card.accent-card {
  border-color: var(--accent-text);
  background: var(--accent);
}

.section.light .detail-list {
  border-color: var(--light-line);
  background: var(--light-line);
}

.section.light .detail-list article,
.section.light .detail-list details {
  background: var(--light-card);
}

.section.light .detail-list p,
.section.light .detail-list ul {
  color: var(--light-dim);
}

/* M49：英字は独立行。行数に応じた高さを確保し、日本語を下へ送る。 */
.section-word {
  position: static;
  display: block;
  width: min(calc(100% - 40px), var(--container));
  min-width: 0;
  margin: 0 auto clamp(1rem, 2vw, 1.5rem);
  color: var(--word-ink);
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 950;
  letter-spacing: -0.025em;
  line-height: 1.1;
  white-space: normal;
  overflow-wrap: anywhere;
  pointer-events: none;
  user-select: none;
}

.section-inner {
  position: relative;
  z-index: 1;
}

.section-head {
  display: grid;
  max-width: 900px;
  margin-bottom: clamp(2.2rem, 5vw, 4.5rem);
  gap: 0.8rem;
}

.section-head h2,
.feature-copy h2 {
  margin: 0;
  font-size: clamp(2.15rem, 5.4vw, 5.1rem);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.section-lead,
.feature-copy > p {
  max-width: 760px;
  margin: 0;
  color: var(--fg-dim);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.metric {
  min-height: 220px;
  padding: clamp(1rem, 2vw, 1.7rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.metric-label {
  min-height: 3.6em;
  margin: 0;
  color: var(--fg-dim);
  font-size: 0.78rem;
  font-weight: 800;
}

.metric-figure {
  display: grid;
  min-height: 116px;
  margin-top: 1.3rem;
  grid-template-rows: 1fr 2.8em;
  align-items: end;
}

.metric-number {
  display: block;
  color: var(--accent-text);
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  font-weight: 950;
  letter-spacing: -0.08em;
  line-height: 0.82;
}

.metric-unit {
  display: block;
  align-self: start;
  font-size: 0.85rem;
  font-weight: 900;
  line-height: 1.25;
  white-space: nowrap;
}

.metric-note,
.section-note {
  margin: 1rem 0 0;
  color: var(--fg-dim);
  font-size: 0.8rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.timeline article {
  position: relative;
  min-height: 360px;
  padding: clamp(1.4rem, 4vw, 3rem);
  background: var(--bg-2);
}

.timeline-year {
  display: block;
  color: var(--accent-text);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 950;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.timeline h3,
.card h3,
.feature-copy h3 {
  margin: 1.2rem 0 0.65rem;
  font-size: clamp(1.25rem, 2.3vw, 1.7rem);
  line-height: 1.35;
}

.timeline p,
.card p {
  margin: 0;
  color: var(--fg-dim);
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 110px;
  gap: 12px;
}

.photo-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.photo-card:nth-child(1) {
  grid-column: span 7;
  grid-row: span 4;
}

.photo-card:nth-child(2) {
  grid-column: span 5;
  grid-row: span 2;
}

.photo-card:nth-child(3) {
  grid-column: span 5;
  grid-row: span 2;
}

.photo-card:nth-child(4),
.photo-card:nth-child(5) {
  grid-column: span 6;
  grid-row: span 3;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}

.photo-card figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 3.4rem 1.15rem 1rem;
  background: var(--image-overlay);
  color: var(--fg);
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  font-weight: 900;
}

.reel-heading {
  display: flex;
  margin-top: clamp(3rem, 7vw, 6rem);
  margin-bottom: 1.2rem;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.reel-heading .eyebrow {
  margin-bottom: 0.35rem;
}

.reel-heading h3 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  line-height: 1.15;
}

.reel-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 0.5rem;
}

.reel-controls button {
  width: 46px;
  height: 46px;
  border: 1px solid var(--control-line);
  border-radius: 50%;
  background: transparent;
  color: var(--accent-text);
  font: inherit;
  font-size: 1.2rem;
  font-weight: 900;
  cursor: pointer;
}

.reel-controls button:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.reel-controls button:focus-visible,
.photo-reel:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 3px;
}

.reel-controls .reel-autoplay-toggle {
  width: auto;
  min-width: 70px;
  padding-inline: 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
}

.reel-autoplay-panel {
  display: grid;
  flex: 0 0 auto;
  justify-items: end;
  gap: 0.45rem;
}

.reel-autoplay-state {
  display: inline-flex;
  min-height: 1.4rem;
  align-items: center;
  gap: 0.45rem;
  color: var(--fg-dim);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
}

.reel-autoplay-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--fg-dim);
  opacity: 1;
}

.reel-autoplay-state[data-playing="true"] {
  color: var(--accent-text);
}

.reel-autoplay-state[data-playing="true"] .reel-autoplay-dot {
  background: var(--accent-text);
  box-shadow: 0 0 0 4px var(--accent-soft);
  opacity: 1;
}

.reel-reduced-note {
  max-width: 760px;
  margin: -0.35rem 0 1.2rem;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--fg);
  font-size: 0.82rem;
  line-height: 1.65;
}

.photo-reel {
  display: flex;
  width: calc(100% + (100vw - 100%) / 2);
  padding: 0.25rem max(20px, calc((100vw - var(--container)) / 2)) 1.2rem 0;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-padding-inline: 0;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--accent-text) var(--surface);
  touch-action: pan-x;
  cursor: grab;
}

.photo-reel.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}

.reel-card {
  position: relative;
  flex: 0 0 clamp(270px, 34vw, 430px);
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.reel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-card figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 3.5rem 1rem 1rem;
  background: var(--image-overlay);
  color: var(--fg);
  font-size: clamp(0.92rem, 1.5vw, 1.15rem);
  font-weight: 900;
  line-height: 1.35;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  position: relative;
  min-height: 230px;
  padding: clamp(1.35rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
}

.card.accent-card {
  border-color: var(--accent-line);
  background: var(--accent);
  color: var(--accent-ink);
}

.card.accent-card p,
.card.accent-card .eyebrow {
  color: var(--accent-ink);
}

.card-index {
  color: var(--accent-text);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.card.accent-card .card-index {
  color: var(--accent-ink);
}

.card-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--fg-dim);
}

.card-list li + li {
  margin-top: 0.35rem;
}

.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
}

.feature-media {
  position: relative;
  min-height: 360px;
  padding: 10px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}

.feature-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  /* 2026-09-03 司令塔レビュー：ai-value-shift.jpg は文字入りの図解。
     cover だと 1600x900 を 423x360 に切り抜き、左右の約34%＝図中の文字が読めなくなる */
  object-fit: contain;
}

.feature-copy .button-row {
  margin-top: 1.8rem;
}

.section-actions {
  margin-top: 2rem;
}

.visitor-counter {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(280px, 1.2fr);
  align-items: center;
  margin: 0 0 clamp(2rem, 5vw, 4rem);
  padding: clamp(1.4rem, 3.5vw, 2.7rem);
  gap: clamp(1.2rem, 4vw, 3.5rem);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
}

.visitor-counter-main {
  display: grid;
  gap: 0.25rem;
}

.visitor-counter-label {
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.visitor-counter-value {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: clamp(4.8rem, 10vw, 8rem);
  font-weight: 950;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.visitor-counter-value[hidden] {
  display: none;
}

.visitor-counter-unit {
  font-size: clamp(1rem, 2vw, 1.35rem);
  letter-spacing: 0;
}

.visitor-counter p {
  margin: 0;
  max-width: 36rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 850;
  line-height: 1.65;
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
  align-items: start;
  gap: 14px;
}

.experience-campus,
.portal-side {
  display: grid;
  gap: 14px;
}

.portal {
  display: flex;
  min-height: 250px;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
  text-decoration: none;
}

.portal:hover {
  border-color: var(--accent-text);
  box-shadow: 0 0 0 1px var(--accent), 0 20px 50px var(--shadow);
}

.portal strong {
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  line-height: 1.15;
}

.portal-action {
  color: var(--accent-text);
  font-weight: 900;
}

.portal--campus {
  padding: 0;
  overflow: hidden;
}

.portal--campus .reel-heading {
  padding: clamp(1.1rem, 2.5vw, 1.8rem);
}

.reel-heading--portal,
.reel-heading--compact {
  margin-top: 0;
}

.reel-heading--portal h3,
.reel-heading--compact h3 {
  font-size: clamp(1.35rem, 2.3vw, 2rem);
}

.campus-preview-grid {
  display: flex;
  width: 100%;
  padding: 0 0 0.35rem;
  gap: 3px;
  background: var(--line);
}

.campus-preview-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.campus-preview-grid .campus-slide {
  flex: 0 0 78%;
  min-width: 0;
  scroll-snap-align: start;
}

.js .reveal .campus-preview-grid img {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.16s ease-out, transform 0.16s ease-out;
}

.js .reveal.is-visible .campus-preview-grid img {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal.is-visible .campus-preview-grid img:nth-child(1) {
  transition-delay: 0ms;
}

.js .reveal.is-visible .campus-preview-grid img:nth-child(2) {
  transition-delay: 80ms;
}

.js .reveal.is-visible .campus-preview-grid img:nth-child(3) {
  transition-delay: 160ms;
}

.js .reveal.is-visible .campus-preview-grid img:nth-child(4) {
  transition-delay: 240ms;
}

.portal-content {
  display: grid;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  gap: 1.1rem;
}

.campus-portal-link {
  color: var(--fg);
  text-decoration: none;
}

.campus-portal-link:hover .portal-action {
  text-decoration: underline;
}

.portal-disclaimer {
  margin: 0;
  color: var(--fg-dim);
  font-size: 0.78rem;
  line-height: 1.65;
}

/* M52：画像も本文もカード内の通常フローへ。上へのはみ出しを解除。 */
.portal--elec {
  --elec-padding: 20px;
  --elec-size: clamp(240px, 18vw, 280px);
  align-items: flex-start;
  min-height: 330px;
  margin-top: 0;
  padding: var(--elec-padding);
  gap: 0.9rem;
}

/* 画像の親を動かさず、既存Observerの入場・96px退出判定の基準にする。 */
.portal-elec-frame {
  display: block;
  flex: none;
  align-self: center;
  width: var(--elec-size);
  max-width: 100%;
  aspect-ratio: 1;
  margin-top: 0;
}

.portal-elec-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 14px 28px rgb(0 0 0 / 22%);
  object-fit: contain;
}

.portal-description {
  color: var(--fg-dim);
  font-size: 0.9rem;
  line-height: 1.65;
}

.portal--video {
  min-height: 220px;
}

.video-grid {
  display: flex;
  gap: 14px;
}

.video-card {
  display: block;
  flex: 0 0 clamp(280px, 25vw, 350px);
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
  color: var(--fg);
  text-decoration: none;
}

a.video-card:hover {
  border-color: var(--accent-text);
  box-shadow: 0 0 0 1px var(--accent);
}

.video-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--surface);
}

.video-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.video-badge {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.72rem;
  font-weight: 950;
}

.video-copy {
  display: grid;
  min-height: 126px;
  padding: 1.2rem;
  align-content: space-between;
  gap: 0.8rem;
}

.video-copy strong {
  font-size: clamp(1.08rem, 2vw, 1.4rem);
  line-height: 1.4;
}

.video-copy > span {
  color: var(--accent-text);
  font-size: 0.84rem;
  font-weight: 900;
}

.video-card.is-coming-soon {
  opacity: 1;
}

.event-section {
  min-height: 62svh;
  background: var(--bg-2);
}

.event-section h2 {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(2.7rem, 7.5vw, 7rem);
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.event-deadline {
  display: inline-flex;
  margin: 1.6rem 0 0;
  padding: 0.5rem 0.8rem;
  gap: 0.4rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 800;
}

.event-copy {
  max-width: 760px;
  margin: 1.4rem 0 0;
  color: var(--fg-dim);
}

.cta {
  min-height: 70svh;
  background: var(--bg);
  color: var(--fg);
}

.site-footer {
  padding-block: 3rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.footer-inner p {
  margin: 0.25rem 0 0;
  color: var(--fg-dim);
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.footer-links a {
  color: var(--fg-dim);
  font-size: 0.82rem;
}

.page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: end;
  min-height: min(74svh, 780px);
  padding-block: clamp(2rem, 4vw, 4rem);
  align-items: end;
  overflow: hidden;
  background: var(--bg-2);
}

.page-hero .hero-lead {
  max-width: 760px;
  color: var(--fg-dim);
}

.page-number {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--accent-text);
  font-size: clamp(5rem, 18vw, 13rem);
  font-weight: 950;
  letter-spacing: -0.09em;
  line-height: 0.74;
}

.page-number small {
  font-size: 0.22em;
  letter-spacing: 0;
}

.breadcrumb {
  margin: 0 0 1rem;
  color: var(--fg-dim);
  font-size: 0.8rem;
}

.breadcrumb a:hover {
  color: var(--accent-text);
}

.detail-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.detail-list article,
.detail-list details {
  padding: clamp(1.25rem, 3vw, 2.1rem);
  background: var(--bg-2);
}

.detail-list h3,
.detail-list summary {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 900;
}

.detail-list summary {
  cursor: pointer;
}

.detail-list p {
  margin: 0.7rem 0 0;
  color: var(--fg-dim);
}

.detail-list ul {
  columns: 2;
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--fg-dim);
}

.detail-list li {
  break-inside: avoid;
  margin-bottom: 0.35rem;
}

.achievement-gallery,
.practice-grid,
.learning-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.achievement-gallery figure,
.practice-grid figure,
.learning-grid article {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
}

.achievement-gallery img,
.practice-grid img,
.learning-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.achievement-gallery figcaption,
.practice-grid figcaption,
.learning-grid .learning-copy {
  padding: 1rem 1.2rem 1.3rem;
  color: var(--fg-dim);
}

.learning-grid h3 {
  margin: 0 0 0.35rem;
  color: var(--fg);
}

.achievement-gallery.people img {
  aspect-ratio: 4 / 3;
  object-position: center 22%;
}

.notice {
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  color: var(--fg-dim);
  font-size: 0.85rem;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.photo-card,
.reel-card,
.feature-media,
.learning-grid article,
.practice-grid figure,
.achievement-gallery figure,
.portal--campus,
.portal--elec {
  transition: transform 0.25s ease;
}

@media (hover: hover) {
  .photo-card:hover,
  .reel-card:hover,
  .feature-media:hover,
  .learning-grid article:hover,
  .practice-grid figure:hover,
  .achievement-gallery figure:hover,
  .portal--campus:hover,
  .portal--elec:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 52px var(--shadow);
  }

  .photo-card:hover img {
    transform: scale(1.035);
  }

  a.video-card:hover .video-thumb img {
    transform: scale(1.025);
  }
}

@media (max-width: 900px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric:last-child {
    grid-column: 1 / -1;
  }

  .portal-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .portal-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-split {
    grid-template-columns: 1fr;
  }

  .feature-media {
    order: -1;
  }

}

@media (max-width: 720px) {
  :root {
    --header-h: 58px;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .site-header {
    position: fixed;
    right: 0;
    left: 0;
    /* 固定メニューの基準をヘッダーではなく画面全体にする。 */
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .brand {
    font-size: 0.84rem;
  }

  .brand img {
    width: 39px;
    height: 26px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .global-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    padding: 1.5rem 1rem;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #0a0a0a;
    color: #f2f2f2;
  }

  .nav-open .global-nav {
    display: flex;
  }

  .global-nav a {
    flex-shrink: 0;
    color: #f2f2f2;
    padding: 1rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 1rem;
  }

  .global-nav a[aria-current="page"],
  .global-nav a:hover,
  .global-nav a:focus-visible {
    background: var(--accent);
    color: #0a0a0a;
  }

  main {
    padding-top: var(--header-h);
  }

  .hero {
    min-height: calc(100svh - var(--header-h));
    align-items: end;
  }

  .hero-scrim {
    background: var(--overlay-mobile);
  }

  .hero-media img {
    object-position: 58% center;
  }

  .js .hero-media img {
    animation-name: hero-photo-zoom-mobile;
  }

  .js .reveal .campus-preview-grid img {
    transform: translateY(12px);
  }

  .hero-content {
    padding-block: 1.25rem 1.1rem;
  }

  .hero-flash {
    margin-bottom: 0.45rem;
    grid-template-columns: 1fr;
  }

  .hero-flash a {
    min-height: 26px;
    padding: 0.18rem 0.5rem;
    font-size: 0.64rem;
  }

  .hero-flash a + a {
    border-top: 1px solid var(--accent-ink);
    border-left: 0;
  }

  .kicker {
    margin-bottom: 0.4rem;
    font-size: 0.62rem;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 13.5vw, 3.4rem);
    /* 2026-09-03 司令塔レビュー：0.9 は font-size を下回り行が食い込む。1.02 に */
    line-height: 1.02;
  }

  .hero-lead {
    margin: 0.65rem 0;
    font-size: 0.9rem;
  }

  .hero-proof {
    margin-bottom: 0.75rem;
  }

  .hero-proof article {
    min-width: 0;
    padding: 0.55rem 0.4rem;
  }

  .hero-proof span {
    font-size: 0.58rem;
  }

  .hero-proof strong {
    font-size: clamp(1.25rem, 7vw, 1.65rem);
  }

  .hero .button-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .hero .button {
    min-height: 43px;
    padding: 0.55rem 0.9rem;
    font-size: 0.82rem;
  }

  .hero-note {
    display: none;
  }

  .section {
    min-height: 0;
    padding-block: 5rem;
  }

  .section-word {
    width: min(calc(100% - 28px), var(--container));
  }

  .section-head h2,
  .feature-copy h2 {
    font-size: clamp(2rem, 11vw, 3.15rem);
  }

  .metric-grid,
  .timeline,
  .card-grid,
  .portal-grid,
  .portal-side,
  .achievement-gallery,
  .practice-grid,
  .learning-grid {
    grid-template-columns: 1fr;
  }

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

  .metric:last-child {
    grid-column: 1 / -1;
  }

  .visitor-counter {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .visitor-counter-value {
    font-size: clamp(4.2rem, 24vw, 6rem);
  }

  .campus-preview-grid {
    gap: 2px;
  }

  .metric {
    min-height: 190px;
    padding: 1rem;
  }

  .metric-label {
    min-height: 4.7em;
    font-size: 0.7rem;
  }

  .metric-figure {
    min-height: 100px;
    margin-top: 0.8rem;
  }

  .metric-number {
    font-size: clamp(3.3rem, 16vw, 5rem);
  }

  .metric-unit {
    font-size: 0.76rem;
  }

  .timeline {
    gap: 0;
  }

  .timeline article {
    min-height: 280px;
  }

  .mosaic {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .photo-card:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .reel-heading {
    align-items: center;
  }

  .reel-heading h3 {
    font-size: 1.55rem;
  }

  .reel-controls button {
    width: 42px;
    height: 42px;
  }

  .reel-controls .reel-autoplay-toggle {
    width: auto;
    min-width: 64px;
  }

  .reel-autoplay-panel {
    justify-items: end;
  }

  .reel-autoplay-state {
    max-width: 165px;
    justify-content: flex-end;
    text-align: right;
  }

  .photo-reel {
    width: calc(100vw - 14px);
    padding-right: 14px;
  }

  .reel-card,
  .video-reel .video-card,
  .campus-reel .campus-slide {
    flex-basis: 82vw;
  }

  .portal--campus .reel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .campus-reel {
    width: 100%;
    padding-right: 14px;
  }

  .event-section h2 {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .event-deadline {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal {
    min-height: 220px;
  }

  .portal--elec {
    --elec-size: clamp(176px, 50vw, 208px);
    min-height: 300px;
  }

  .page-hero {
    min-height: 72svh;
    padding-block: 2rem 3rem;
  }

  .page-number {
    font-size: clamp(5rem, 27vw, 8rem);
  }

  .detail-list ul {
    columns: 1;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 390px) and (max-height: 700px) {
  .hero-content {
    padding-bottom: 0.7rem;
  }

  .hero h1 {
    font-size: 2.42rem;
  }

  .hero .kicker {
    display: none;
  }

  .hero-flash {
    margin-bottom: 0.35rem;
  }

  .hero-flash a {
    min-height: 23px;
    padding-block: 0.12rem;
    font-size: 0.6rem;
  }

  .hero-lead {
    margin-block: 0.5rem;
  }

  .hero-proof article {
    padding-block: 0.38rem;
  }

  .hero .button {
    min-height: 40px;
    padding-block: 0.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal,
  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js .hero-media img {
    animation: none;
    transform: none;
  }

  .js .reveal .campus-preview-grid img,
  .js .reveal.is-visible .campus-preview-grid img {
    opacity: 1;
    transform: none;
    transition: none;
    transition-delay: 0ms;
  }
}


/* M27: 写真・見出し・背景英字を独立して再登場させる。 */
.motion-enabled .reveal,
.motion-enabled .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: none;
}
.motion-enabled .motion-item {
  opacity: 0;
  transform: translateY(32px);
  transition: none;
}
.motion-enabled .motion-item.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease-out var(--motion-delay, 0ms),
    transform .6s cubic-bezier(.16, 1, .3, 1) var(--motion-delay, 0ms);
}
.motion-enabled .motion-photo,
.motion-enabled .reveal .campus-preview-grid .motion-photo {
  opacity: 0;
  transform: translateY(60px) scale(1.04);
  clip-path: inset(100% 0 0 0);
  transition: none;
}
.motion-enabled .motion-photo.is-visible,
.motion-enabled .reveal .campus-preview-grid .motion-photo.is-visible {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0);
  transition: opacity .6s ease-out var(--motion-delay, 0ms),
    transform .6s cubic-bezier(.16, 1, .3, 1) var(--motion-delay, 0ms),
    clip-path .6s cubic-bezier(.16, 1, .3, 1) var(--motion-delay, 0ms);
}
/* M52：画像は枠内の位置を保ち、フェードだけで出現する。 */
.motion-enabled .portal-elec-image.motion-item {
  opacity: 0;
  transform: none;
  transition: none;
}
.motion-enabled .portal-elec-image.motion-item.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .55s ease-out;
}
.motion-enabled .section-word.motion-item {
  transform: translateX(64px);
}
.motion-enabled .section-word.motion-item.is-visible {
  transform: none;
}
.section-head h2 {
  position: relative;
}
.section-head h2::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -.18em;
  width: min(160px, 28%);
  height: 5px;
  background: currentColor;
  opacity: .75;
  transform-origin: left;
}
.motion-enabled .section-head h2::after {
  transform: scaleX(0);
  transition: none;
}
.motion-enabled .section-head h2.is-visible::after {
  transform: scaleX(1);
  transition: transform .55s cubic-bezier(.16, 1, .3, 1) .18s;
}
@media (max-width: 720px) {
  .motion-enabled .motion-photo,
  .motion-enabled .reveal .campus-preview-grid .motion-photo {
    transform: translateY(48px) scale(1.04);
  }
  .motion-enabled .motion-photo.is-visible,
  .motion-enabled .reveal .campus-preview-grid .motion-photo.is-visible {
    transform: none;
  }
  .reel-heading:has(.reel-autoplay-panel) {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .motion-enabled .motion-item,
  .motion-enabled .motion-item.is-visible,
  .motion-enabled .reveal .campus-preview-grid .motion-photo,
  .motion-enabled .portal-elec-image.motion-item,
  .motion-enabled .portal-elec-image.motion-item.is-visible {
    opacity: 1;
    transform: none;
    clip-path: none;
    transition: none;
  }
  .motion-enabled .section-head h2::after {
    transform: none;
    transition: none;
  }
}

/* 写真列の連続送り中はスナップ・smoothとの競合をなくす。 */
.continuous-reel { scroll-snap-type: none; scroll-behavior: auto; }
.continuous-reel > [data-reel-clone] { pointer-events: none; }

/* M28: 白地の操作部と写真上の文字を背景から分離。寸法は変えない。 */
.site-header {
  --bg: #0a0a0a;
  --bg-2: #141414;
  --fg: #f2f2f2;
  --fg-dim: #f2f2f2;
  --accent-text: var(--accent);
  --line: #2a2a2a;
  box-shadow: 0 1px 0 var(--line);
}
.global-nav a[aria-current="page"], .global-nav a:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.nav-toggle { border-color: var(--accent); }
.photo-card figcaption, .reel-card figcaption { color: #ffffff; background: linear-gradient(180deg, transparent 0%, rgba(10,10,10,.86) 35%); }
.hero-flash a:hover, .hero-flash a:focus-visible { color: var(--accent); }
.card.accent-card { --accent-text: var(--accent-ink); --fg: var(--accent-ink); --fg-dim: var(--accent-ink); }

/* M28 A': 蛍光の面だけを追加。余白・寸法・章構成・演出には触れない。 */
.section:not(.dark) { box-shadow: inset 0 4px 0 var(--accent); }
.section h2 {
  background-color: var(--accent);
  color: var(--accent-ink);
}
.button.primary, .button.primary:hover {
  border-color: var(--accent-ink);
}

/* M30 D-1: 中間の見せ場を蛍光の章へ。寸法・並びは維持。 */
.section.accent {
  --bg: var(--accent);
  --bg-2: var(--accent);
  --fg: #0a0a0a;
  --fg-dim: #0a0a0a;
  --light-ink: #0a0a0a;
  --light-dim: #0a0a0a;
  --accent-text: #0a0a0a;
  --control-line: #0a0a0a;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --line: #0a0a0a;
  --word-ink: #ffffff;
  color: var(--fg);
}

/* M30 D-3: 見出し本文はそのまま、各ページ2か所を強調。 */
.hl {
  background: #0a0a0a;
  color: #ffffff;
  box-shadow: 0.08em 0 0 #0a0a0a, -0.08em 0 0 #0a0a0a;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* M30 D-4: 装飾を絶対配置のクリップ内に隔離し、レイアウトには参加させない。 */
.marquee-clip {
  position: absolute;
  z-index: 0;
  inset: 32px 0 32px auto;
  width: clamp(52px, 8vw, 116px);
  overflow: hidden;
  color: var(--word-ink);
  pointer-events: none;
  user-select: none;
}
/* M44: 選択外は即時に隠し、境界で二つの文字が重なるフェードを避ける。 */
.marquee-managed .marquee-clip { opacity: 0; }
.marquee-managed .marquee-clip.is-selected { opacity: 1; }
.marquee-track {
  height: 200%;
  display: flex;
  flex-direction: column;
  width: 100%;
  animation: marquee-rise 24s linear infinite;
  animation-play-state: paused;
}
.marquee-track > span {
  height: 50%;
  display: block;
  flex: none;
  width: 100%;
  padding-bottom: 1em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
  font-size: clamp(68px, 9vw, 132px);
  font-weight: 950;
  line-height: 0.88;
  letter-spacing: -0.05em;
}
.marquee-clip.is-running .marquee-track { animation-play-state: running; }
@keyframes marquee-rise { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.marquee-controls {
  position: absolute;
  z-index: 2;
  top: 20px;
  right: max(20px, calc((100% - var(--container)) / 2));
}
.marquee-controls[hidden] { display: none; }
.marquee-controls button { background: var(--bg); color: var(--accent-ink); }
.marquee-controls button:disabled { cursor: default; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; transform: translateY(0); }
}

/* M30 D-5/D-6：見出しの箱を変えず文字だけに帯を付ける。英字配置はM49へ統合。 */
.section h2 { background-color: transparent; }
.section h2 > .heading-band {
  background-color: var(--accent);
  color: var(--accent-ink);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.section h2.heading-highlight { background-color: transparent; }

/* 2026-09-08: 写真・実績・操作を主役にした表示の仕上げ。動作と内容は維持。 */
.section h2 { text-wrap: balance; }
.global-nav a { white-space: nowrap; }
.section { --reading-surface: var(--bg); }
.section.alt { --reading-surface: var(--bg-2); }
.section-head > .eyebrow {
  justify-self: start;
  background: var(--reading-surface);
  box-shadow: 0 0 0 5px var(--reading-surface);
}
.metric {
  box-shadow: inset 0 4px 0 var(--accent);
}
.metric-number, .timeline-year { color: var(--fg); }
.metric-unit { color: var(--fg); }
.timeline article { background: var(--surface); }
.photo-card { margin-inline: 0; }
.photo-card, .reel-card, .card, .feature-media {
  border-radius: 12px;
}
.photo-card, .reel-card, .feature-media {
  box-shadow: 0 12px 32px rgba(10, 10, 10, 0.08);
}
.card { box-shadow: 0 8px 24px rgba(10, 10, 10, 0.04); }
.card.accent-card { box-shadow: inset 0 0 0 1px var(--accent-ink); }
.button.primary { box-shadow: 0 4px 0 var(--accent-ink); }
.button::after { transition: transform 0.2s ease; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .button:hover::after { transform: translateX(3px); }
}
@media (max-width: 720px) {
  /* 読む面を装飾の前に置く。縦文字の速度・位置・停止処理は変えない。 */
  .section .section-head,
  .section .reel-heading,
  .section .feature-copy {
    background: var(--reading-surface);
    box-shadow: 6px 0 0 var(--reading-surface), -6px 0 0 var(--reading-surface);
  }
}
@media (prefers-reduced-motion: reduce) {
  .button::after { transition: none; }
}

/* 2026-09-08: 読む文字の明暗差と意味のまとまりを優先。 */
.section:not(.dark):not(.accent) > .section-word { color: var(--accent-dark); }
.phrase { display: inline-block; white-space: nowrap; }
.text-tail { white-space: nowrap; }
.section h2, h3, .portal strong { text-wrap: initial; }
p, li, figcaption { text-wrap: pretty; overflow-wrap: break-word; }
.ai-explainer { gap: clamp(2rem, 5vw, 4rem); }
.ai-explainer .feature-copy { min-width: 0; }
.ai-explainer .ai-intro { margin-top: 1.5rem; font-size: 1.125rem; line-height: 1.85; }
.ai-summary { min-width: 0; padding: clamp(1.25rem, 3vw, 2.25rem); border: 2px solid #0a0a0a; border-radius: 12px; background: #fff; color: #0a0a0a; box-shadow: 6px 6px 0 #0a0a0a; }
.ai-summary-label { margin: 0 0 1rem; font-size: 1rem; font-weight: 850; }
.ai-pillars { margin: 0; padding: 0; list-style: none; }
.ai-pillars > li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 1rem; padding: 1.2rem 0; border-top: 1px solid #c8c8c8; }
.ai-step { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; background: var(--accent); border-radius: 50%; font-size: 0.875rem; font-weight: 900; }
.ai-pillars h3 { margin: 0 0 0.4rem; font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.3; }
.ai-pillars p { margin: 0; font-size: 1rem; line-height: 1.75; }
.ai-summary-end { margin: 0.4rem 0 0; padding-top: 1rem; border-top: 2px solid #0a0a0a; font-size: 1rem; font-weight: 850; }
.page-hero h1 { font-size: clamp(3.25rem, 8vw, 7rem); }
@media (max-width: 720px) {
  .page-hero h1 { font-size: clamp(2rem, 8.8vw, 3.8rem); }
  .ai-explainer .ai-intro { font-size: 1rem; }
}

.ai-explainer .feature-copy h2 { font-size: clamp(2rem, 4vw, 3.5rem); }

/* 2026-09-09: トップの編集的な強弱。既存の動き・下層の構成は維持。 */
.editorial-home .results-section .metric-grid {
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 12px;
  border: 0;
}
.editorial-home .results-section .metric {
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--line);
  padding: clamp(1.2rem, 2vw, 1.8rem);
  box-shadow: none;
}
.editorial-home .results-section .metric:first-child {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent-ink);
}
.editorial-home .results-section .metric-label { min-height: 0; font-size: .875rem; line-height: 1.6; }
.editorial-home .results-section .metric-figure { min-height: 0; margin: 1.5rem 0 0; grid-template-rows: auto auto; gap: .6rem; }
.editorial-home .results-section .metric-number { font-size: clamp(3.5rem, 6vw, 5.5rem); }
.editorial-home .results-section .metric-unit { font-size: 1rem; }
.editorial-home .results-section .metric:first-child .metric-label,
.editorial-home .results-section .metric:first-child .metric-number,
.editorial-home .results-section .metric:first-child .metric-unit { color: var(--accent-ink); }
.editorial-home .results-section .metric:first-child .metric-number { font-size: clamp(7rem, 15vw, 13rem); }
.editorial-home .results-section .metric:first-child .metric-unit { font-size: 1.6rem; }
.editorial-home .results-section .metric:first-child { justify-content: center; gap: 1.5rem; }
.editorial-home .results-section .metric:first-child .metric-label { font-size: 1rem; }
.editorial-home .results-section .metric:last-child { grid-column: auto; }

.editorial-home .learning-story {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  margin-bottom: clamp(2rem, 4vw, 4rem);
}
.editorial-home .learning-story .section-head { margin-bottom: 0; }
.editorial-home .learning-story h2 { font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1.15; }
.editorial-home .learning-story .photo-card {
  grid-column: auto;
  grid-row: auto;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
}
.editorial-home .learning-story-photo figcaption { font-size: clamp(1rem, 1.4vw, 1.25rem); }
.editorial-home .learning-story-section .timeline { gap: 2rem; border: 0; background: transparent; }
.editorial-home .learning-story-section .timeline article { min-height: 0; padding: 1.5rem 0 0; border-top: 4px solid var(--accent); }
.editorial-home .learning-story-section .timeline-year { font-size: 3.5rem; }
.editorial-home .learning-story-section .timeline h3 { margin-top: 1rem; }

.editorial-home .quiet-section { min-height: 0; }
.editorial-home .quiet-section .section-head h2 { font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.15; }
.editorial-home .quiet-section h2 > .heading-band { background: transparent; color: var(--fg); }
.editorial-home .quiet-section .section-head { margin-bottom: 2.5rem; }
.editorial-home .career-overview .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; row-gap: 0; }
.editorial-home .career-overview .card {
  min-height: 0;
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  column-gap: 1rem;
  align-content: start;
  padding: 1.5rem 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.editorial-home .career-overview .card-index { grid-row: span 2; padding-top: .2rem; font-size: 1rem; letter-spacing: 0; }
.editorial-home .career-overview .card h3 { margin: 0 0 .65rem; font-size: clamp(1.25rem, 2vw, 1.6rem); }
.editorial-home .career-overview .card p { grid-column: 2; }
.editorial-home .career-overview .card.accent-card { border-top: 4px solid var(--accent-dark); padding-inline: 1.25rem; }

.editorial-home .closing-section { min-height: 0; padding-bottom: clamp(4rem, 7vw, 7rem); }
.editorial-home .closing-section .section-head { max-width: 1080px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.editorial-home .closing-section h2 { font-size: clamp(3rem, 5.8vw, 5.6rem); line-height: 1.13; text-wrap: balance; }
.editorial-home .closing-section h2 .phrase { display: inline; white-space: normal; }

@media (max-width: 900px) {
  .editorial-home .learning-story { grid-template-columns: 1fr; }
  .editorial-home .learning-story h2 { font-size: clamp(2rem, 5vw, 3.7rem); }
  .editorial-home .learning-story-photo { max-width: 100%; }
}
@media (max-width: 720px) {
  .editorial-home .results-section .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .editorial-home .results-section .metric:first-child { grid-column: 1 / -1; grid-row: auto; flex-direction: row; align-items: center; gap: 1rem; }
  .editorial-home .results-section .metric { padding: 1rem; }
  .editorial-home .results-section .metric-label { font-size: .8125rem; }
  .editorial-home .results-section .metric:first-child .metric-label { font-size: .8125rem; }
  .editorial-home .results-section .metric-unit { font-size: .875rem; }
  .editorial-home .results-section .metric-number { font-size: 3.5rem; }
  .editorial-home .results-section .metric:first-child .metric-figure { flex: none; margin: 0; text-align: center; }
  .editorial-home .results-section .metric:first-child .metric-number { font-size: 6.5rem; }
  .editorial-home .results-section .metric:first-child .metric-unit { font-size: 1.1rem; }
  .editorial-home .learning-story-section .timeline { gap: 1.75rem; }
  .editorial-home .learning-story-section .timeline article { display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: 1rem; padding-top: 1.25rem; }
  .editorial-home .learning-story-section .timeline-year { grid-row: span 2; font-size: 3rem; }
  .editorial-home .learning-story-section .timeline h3 { margin: 0 0 .65rem; }
  .editorial-home .learning-story-section .timeline p { grid-column: 2; }
  .editorial-home .career-overview .card-grid { grid-template-columns: 1fr; }
  .editorial-home .closing-section h2 { font-size: clamp(2rem, 9.6vw, 3.4rem); line-height: 1.22; text-wrap: initial; }
  .editorial-home .closing-section h2 .phrase { display: inline-block; white-space: nowrap; }
}

/* 2026-09-09: 章をつなぐ右端の流れ。情報は手前の読書面に置く。 */
.edge-flow .section-inner { background: var(--reading-surface); }
/* M64: 可変フォント（Macのsystem-ui等）は文字内部で線が重なるため、輪郭線が内側にも引かれて線・三角が出た。
   塗りを線の上に描き、内側の線を隠す。見た目の縁の太さを保つため線幅は2倍。 */
.edge-flow .marquee-track { color: var(--accent); -webkit-text-stroke: 1.6px var(--accent-dark); paint-order: stroke fill; }
.edge-flow.accent .marquee-track { color: #fff; -webkit-text-stroke: 1.3px rgba(10,10,10,.45); paint-order: stroke fill; }
.site-header .version-switch { border: 1px solid var(--accent); border-radius: 999px; }
/* 2026-09-09: 右端に文字1列分の余白が取れない画面では装飾を省く。 */
@media (max-width: 1439px) {
  .marquee-clip, .marquee-controls { display: none; }
  .marquee-track { animation: none; }
}
/* マイスター写真は中央の小さな状態から自然な大きさへ。 */
.motion-enabled .learning-story-photo img.motion-photo {
  opacity: 0;
  transform: scale(.35);
  transform-origin: 50% 50%;
  clip-path: none;
  transition: none;
}
.motion-enabled .learning-story-photo img.motion-photo.is-visible {
  opacity: 1;
  transform: scale(1);
  transition: transform .85s cubic-bezier(.22, 1, .36, 1) .08s, opacity .35s ease .08s;
}
.motion-enabled .learning-story-photo img.motion-photo + figcaption {
  opacity: 0;
  transform: translateY(12px);
  transition: none;
}
.motion-enabled .learning-story-photo img.motion-photo.is-visible + figcaption {
  opacity: 1;
  transform: none;
  transition: opacity .4s ease .4s, transform .4s ease .4s;
}
@media (prefers-reduced-motion: reduce) {
  .motion-enabled .learning-story-photo img.motion-photo,
  .motion-enabled .learning-story-photo img.motion-photo.is-visible,
  .motion-enabled .learning-story-photo img.motion-photo.is-visible + figcaption,
  .motion-enabled .learning-story-photo img.motion-photo + figcaption {
    opacity: 1; transform: none; clip-path: none; transition: none;
  }
}

/* 実写の学科紹介：写真を「学べること」と対で読む。 */
.lab-overview, .lab-story, .qualification-feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.lab-overview { margin-bottom: 3rem; }
.lab-photo { margin: 0; min-width: 0; }
.lab-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 12px; background: #fff; }
.lab-photo figcaption { margin-top: .75rem; color: #444; font-size: .875rem; line-height: 1.6; }
.lab-copy { min-width: 0; }
.lab-copy h3 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.4; margin: .5rem 0 1rem; color: #0a0a0a; }
.lab-copy p { font-size: 1rem; line-height: 1.85; color: #101010; margin: .65rem 0; }
.lab-copy .lab-number { display: inline-block; font-size: .875rem; font-weight: 850; color: #405500; letter-spacing: .08em; }
.lab-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; gap: .65rem; margin: 1.5rem 0; }
.lab-flow li { background: var(--accent); color: #0a0a0a; padding: .8rem .5rem; text-align: center; font-weight: 800; border-radius: 6px; }
.lab-flow small { display: block; font-size: .75rem; font-weight: 650; }
.lab-link { display: inline-block; color: #0a0a0a; text-decoration: underline; text-underline-offset: .3em; font-weight: 800; padding: .6rem 0; }
.lab-stories { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.lab-story { background: #fff; color: #0a0a0a; padding: clamp(1rem, 2.7vw, 2rem); border-radius: 14px; }
.lab-story:nth-child(even) .lab-photo { order: 2; }
.lab-outcome { border-top: 2px solid #0a0a0a; padding-top: .85rem; }
.lab-outcome strong { display: block; }
.qualification-workshop { margin-top: clamp(2rem, 5vw, 4rem); border-top: 4px solid var(--accent); padding-top: 2rem; }
.qualification-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; list-style: none; counter-reset: training-step; margin: 2rem 0; padding: 0; }
.qualification-steps li { counter-increment: training-step; border-top: 1px solid #c8c8c8; padding-top: 1rem; min-width: 0; }
.qualification-steps li::before { content: '0' counter(training-step); font-size: 1.25rem; font-weight: 850; color: #405500; }
.qualification-steps strong { display: block; font-size: 1.2rem; margin: .5rem 0; }
.qualification-steps p { font-size: 1rem; color: #444; line-height: 1.85; }
.training-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.training-details strong { display: block; font-size: 1.1rem; color: #101010; margin-bottom: .45rem; }
.training-details figcaption { font-size: 1rem; }
@media (max-width: 700px) {
  .lab-overview, .lab-story, .qualification-feature { grid-template-columns: minmax(0, 1fr); }
  .lab-story:nth-child(even) .lab-photo { order: initial; }
  .lab-copy h3 { font-size: clamp(1.45rem, 5.7vw, 1.85rem); }
  .qualification-steps, .training-details { grid-template-columns: minmax(0, 1fr); }
  .qualification-steps { gap: .5rem; }
  .qualification-steps li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: .5rem; }
  .qualification-steps li::before { grid-row: span 2; }
  .qualification-steps strong { margin-top: 0; }
  .qualification-steps p { grid-column: 2; margin-top: 0; }
}

/* 補足写真は縦位置も含め全体を見せ、説明を写真と分離する。 */
.reel-card.facility-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: auto;
  background: #fff;
}
.reel-card.facility-card img {
  min-height: 0;
  object-fit: contain;
}
/* 横送り自体で動かす。画像の拡大・出現を重ねず、全体を保つ。 */
.motion-enabled .reel-card.facility-card img.motion-photo {
  opacity: 1;
  transform: none;
  clip-path: none;
  transition: none;
}
.reel-card.facility-card figcaption {
  position: static;
  padding: 0.65rem 0.75rem;
  background: #fff;
  color: #0a0a0a;
  font-size: 0.9rem;
  text-align: center;
}

/* 複数行の見出しは、帯と次の文字の間にも読める余白を確保。 */
.section .section-head h2,
.section .feature-copy h2,
.editorial-home .quiet-section .section-head h2,
.event-section h2 {
  line-height: 1.32;
}
.reel-heading h3 {
  line-height: 1.4;
}

/* M47：トップだけを写真と短い入口へ。下層ページの組版は維持する。 */
.editorial-home .section { min-height: 0; padding-block: clamp(3.5rem, 6vw, 6rem); }
.editorial-home .section-head { margin-bottom: 2rem; }
.editorial-home .hero-content { padding-top: clamp(3rem, 7vh, 5rem); padding-bottom: clamp(6rem, 12vh, 8rem); }
.editorial-home .hero-lead { line-height: 1.65; }
.editorial-home .section h2 .phrase,
.editorial-home .section h3 .phrase,
.editorial-home .section .hl { white-space: normal; }
.editorial-home .section h2 .phrase,
.editorial-home .section h3 .phrase { display: inline; }
.editorial-home .timeline-year small { display: block; font-size: 1rem; line-height: 1.5; }
.editorial-home .timeline h3 { font-size: clamp(1.2rem, 2vw, 1.65rem); line-height: 1.6; }
.editorial-home .timeline p,
.editorial-home .career-overview .card p { font-size: 1rem; line-height: 1.8; }
.editorial-home .career-overview .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.editorial-home .career-overview .card { display: block; padding: 20px 0; }
.editorial-home .career-overview .card p { margin: 0; }
.editorial-home .home-next-note { margin-top: 1.5rem; font-size: 1rem; }
.editorial-home .home-license-focus { padding: 24px; border-left: 5px solid var(--accent-dark); background: var(--surface-raised); }
.editorial-home .home-license-focus strong { display: block; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.5; }
.editorial-home .home-license-focus p { margin: .75rem 0 0; font-size: 1rem; line-height: 1.8; }
.editorial-home .ai-explainer { display: block; }
.editorial-home .ai-explainer .feature-copy { max-width: 960px; }
.editorial-home .ai-explainer .ai-intro { margin-bottom: 0; }
.editorial-home .home-more-photos { margin-top: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.editorial-home .home-more-photos > summary { padding: 20px 8px; font-size: 1.05rem; font-weight: 800; line-height: 1.7; cursor: pointer; }
.editorial-home .home-more-photos > summary:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; }
.editorial-home .home-more-photos > .reel-region { padding-block: 8px 24px; }
.editorial-home .home-more-photos .reel-heading { margin-top: 0; }
.editorial-home .video-reel { margin-top: 0; }
.editorial-home #videos .reel-heading { justify-content: flex-end; margin-block: 0 12px; }
@media (max-width: 900px) {
  .editorial-home .career-overview .card-grid { grid-template-columns: 1fr; gap: 0; }
}

/* M49：英字の高さを通常フローで確保するため、旧来の大きな上余白だけを縮める。 */
.section:has(> .section-word),
.editorial-home .section:has(> .section-word) {
  padding-block-start: clamp(1.5rem, 3vw, 3rem);
}

/* M62：4ページ共通のスマホ最終指定。既存PCのルールは全文保持。 */
.mobile-location { display: none; }
@media (max-width: 900px) {
  body { min-width: 0; padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .container { width: calc(100% - 32px); }
  .site-header { position: relative; inset: auto; height: auto; min-height: 0; }
  .header-inner { width: calc(100% - 32px); min-height: 68px; height: auto; padding-block: 12px; flex-wrap: wrap; gap: 8px; }
  .brand { font-size: 1rem; min-height: 44px; }
  .brand img { width: 48px; height: auto; object-fit: contain; }
  .brand small { font-size: .65rem; letter-spacing: .1em; }
  .mobile-location { display: block; flex: 1 0 100%; margin: 0; color: #c6ff2e; font-size: .875rem; line-height: 1.6; }
  .site-header .global-nav { position: static; inset: auto; display: flex; flex: 1 0 100%; flex-direction: row; flex-wrap: wrap; padding: 0; gap: 4px; overflow: visible; }
  .site-header .global-nav a { min-height: 44px; padding: 10px 12px; font-size: 1rem; white-space: normal; }
  .mobile-nav-ready .site-header .global-nav { display: none; }
  main { padding-top: 0; }
  .editorial-home .hero { display: flex; flex-direction: column; min-height: 0; overflow: visible; --bg: #fff; --fg: #101010; --fg-dim: #444; --accent-text: #405500; background: #fff; color: #101010; }
  .editorial-home .hero-media { display: block; position: relative; inset: auto; z-index: auto; width: 100%; height: auto; }
  .editorial-home .hero-media img { display: block; width: 100%; height: auto; object-fit: contain; object-position: center; animation: none; transform: none; }
  .editorial-home .hero-scrim { display: none; }
  .editorial-home .hero-content { padding: 24px 0; }
  /* M63：写真から分けた本文には、白地で読める色を明示する。 */
  .editorial-home .hero h1 { color: #101010; }
  .editorial-home .hero h1 .accent { color: #101010; background: #c6ff2e; padding-inline: .1em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
  .editorial-home .hero .kicker { color: #405500; }
  .editorial-home .hero .hero-lead, .editorial-home .hero .hero-note { color: #444; }
  .editorial-home .hero .button { color: #101010; background: #fff; border-color: #101010; }
  .editorial-home .hero .button.primary, .editorial-home .hero .button:hover { color: #101010; background: #c6ff2e; border-color: #101010; }
  .editorial-home .hero a:focus-visible { outline: 3px solid #405500; outline-offset: 4px; }
  .editorial-home .hero h1, .page-hero h1 { font-size: clamp(2rem, 8vw, 3rem); line-height: 1.25; letter-spacing: -.025em; }
  .editorial-home .hero .kicker { margin-bottom: 12px; font-size: .875rem; }
  .hero .hero-lead, .page-hero .hero-lead { margin: 16px 0; font-size: 1rem; line-height: 1.8; }
  .editorial-home .hero-note { display: block; position: static; width: calc(100% - 32px); margin: 0 auto 20px; font-size: .8rem; line-height: 1.7; }
  .page-hero { min-height: 0; padding-block: 24px 32px; gap: 0; }
  .page-number { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; font-size: 4rem; line-height: 1.1; margin-bottom: 20px; }
  .page-number small { font-size: 1rem; }
  .breadcrumb { font-size: .875rem; margin-bottom: 16px; }
  .breadcrumb a { display: inline-block; min-height: 44px; padding-block: 10px; }
  .section, .editorial-home .section, .editorial-home .closing-section { min-height: 0; padding-block: 36px; }
  .section:has(> .section-word), .editorial-home .section:has(> .section-word) { padding-top: 28px; }
  .section-word, .section > .section-word { width: calc(100% - 32px); margin-bottom: 16px; font-size: 1rem; letter-spacing: .08em; line-height: 1.5; }
  .section-head, .editorial-home .section-head, .editorial-home .closing-section .section-head { gap: 12px; margin-bottom: 24px; }
  .section .section-head h2, .section .feature-copy h2, .editorial-home .quiet-section .section-head h2, .editorial-home .learning-story h2, .editorial-home .closing-section h2, .event-section h2 { font-size: clamp(1.6rem, 5.8vw, 2.25rem); line-height: 1.5; letter-spacing: -.02em; }
  .section h2 > .heading-band { padding: .12em .25em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
  .phrase, .text-tail, .editorial-home .closing-section h2 .phrase { display: inline; white-space: normal; }
  .section .hl, .heading-band { white-space: normal; overflow-wrap: anywhere; }
  .section :is(.section-lead, .card p, .timeline p, .detail-list p, .detail-list li, .portal-description, .feature-copy > p) { font-size: 1rem; line-height: 1.8; }
  .eyebrow, .card-index { font-size: .8rem; letter-spacing: .08em; }
  .button-row, .hero .button-row { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .button, .hero .button { justify-content: center; min-width: 0; min-height: 48px; padding: 12px 16px; font-size: 1rem; line-height: 1.6; white-space: normal; }
  .section-actions { margin-top: 24px; }
  .card-grid, .portal-grid, .portal-side, .timeline, .achievement-gallery, .practice-grid, .learning-grid, .lab-overview, .lab-story, .qualification-feature, .qualification-steps, .training-details { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .card, .detail-list article, .detail-list details { min-width: 0; min-height: 0; padding: 20px; }
  .detail-list :is(h3, summary), .card h3 { font-size: 1.25rem; line-height: 1.6; }
  .detail-list summary { min-height: 44px; }
  .detail-list ul { columns: 1; margin-top: 12px; }
  .detail-list li { margin-bottom: 8px; overflow-wrap: anywhere; }
  .timeline article, .editorial-home .learning-story-section .timeline article { display: block; min-height: 0; padding: 20px; }
  .timeline-year, .editorial-home .learning-story-section .timeline-year { font-size: 2.5rem; line-height: 1.2; }
  .timeline h3, .editorial-home .learning-story-section .timeline h3 { font-size: 1.25rem; margin: 12px 0; }
  .editorial-home .learning-story { gap: 20px; margin-bottom: 24px; }
  .lab-story:nth-child(even) .lab-photo { order: 0; }
  .lab-photo img, .achievement-gallery img, .achievement-gallery.people img, .practice-grid img { aspect-ratio: auto; height: auto; object-fit: contain; }
  .lab-photo figcaption, .achievement-gallery figcaption, .practice-grid figcaption { font-size: .9375rem; line-height: 1.8; }
  .lab-stories { gap: 24px; }
  .lab-overview { margin-bottom: 24px; }
  .lab-flow { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .lab-flow li { padding: 12px; }
  .lab-flow small { font-size: .875rem; }
  .qualification-steps li { display: block; }
  .qualification-steps strong { font-size: 1.15rem; }
  .lab-link, .drawing-open, .drawing-entry a { min-height: 44px; padding-block: 10px; }
  main .drawing-compare, main .drawing-entry { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  main .drawing-work { padding-block: 32px; }
  main .drawing-work h2 { font-size: 1.75rem; }
  main .drawing-view { padding: 14px; }
  main .drawing-choices { min-height: 0; margin-bottom: 16px; }
  .metric-grid, .editorial-home .results-section .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .metric, .editorial-home .results-section .metric { min-height: 0; padding: 16px; }
  .metric .metric-label, .editorial-home .results-section .metric-label, .editorial-home .results-section .metric:first-child .metric-label { min-height: 0; font-size: 1rem; line-height: 1.65; }
  .metric .metric-figure, .editorial-home .results-section .metric-figure, .editorial-home .results-section .metric:first-child .metric-figure { min-height: 0; margin: 12px 0 0; }
  .metric .metric-number, .editorial-home .results-section .metric-number, .editorial-home .results-section .metric:first-child .metric-number { font-size: 3.25rem; line-height: 1.15; }
  .metric .metric-unit, .editorial-home .results-section .metric:first-child .metric-unit { font-size: 1rem; }
  .editorial-home .results-section .metric:first-child { display: block; grid-column: auto; grid-row: auto; }
  .metric-note, .notice { font-size: .875rem; line-height: 1.8; }
  .reel-heading, .portal--campus .reel-heading { flex-wrap: wrap; gap: 12px; align-items: flex-start; }
  .reel-heading h3 { font-size: 1.25rem; line-height: 1.6; }
  .reel-controls { flex-wrap: wrap; gap: 8px; }
  .reel-controls button { min-width: 48px; min-height: 48px; height: auto; font-size: 1rem; }
  .reel-autoplay-panel { justify-items: start; }
  .reel-autoplay-state { max-width: none; text-align: left; justify-content: flex-start; font-size: .875rem; }
  .photo-reel, .campus-reel { width: 100%; max-width: 100%; padding: 4px 12px 16px 0; gap: 12px; touch-action: pan-x pan-y pinch-zoom; }
  .reel-card, .video-reel .video-card, .campus-reel .campus-slide { flex-basis: 88%; min-width: 0; }
  .photo-reel.continuous-reel:not(.is-autoplay-requested) { scroll-snap-type: x proximity; }
  .photo-reel:not(.is-autoplay-requested) > [data-reel-clone] { display: none; }
  .reel-card, .reel-card.facility-card { display: flex; flex-direction: column; aspect-ratio: auto; height: auto; }
  .reel-card img, .reel-card.facility-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
  .reel-card figcaption, .reel-card.facility-card figcaption { position: static; inset: auto; padding: 12px; color: #101010; background: #fff; font-size: 1rem; line-height: 1.7; }
  .editorial-home .learning-story .photo-card { aspect-ratio: auto; }
  .editorial-home .learning-story-photo img { height: auto; object-fit: contain; }
  .editorial-home .learning-story-photo figcaption { position: static; padding: 12px; background: #fff; color: #101010; font-size: 1rem; line-height: 1.7; }
  .portal--elec { --elec-size: 144px; min-height: 0; padding: 20px; }
  .portal--elec .portal-elec-frame { margin-top: 0; }
  .portal strong { font-size: 1.5rem; line-height: 1.5; white-space: normal; }
  .portal-content { padding: 20px; gap: 16px; }
  .portal-disclaimer { font-size: .875rem; }
  .portal-action { min-height: 48px; padding-block: 10px; }
  .editorial-home .home-license-focus { padding: 20px; }
  .editorial-home .home-more-photos > summary { padding: 16px 4px; font-size: 1rem; }
  .event-section { padding-block: 32px; }
  .event-deadline { white-space: normal; }
  .site-footer { padding-block: 32px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .site-footer a { display: inline-block; min-height: 44px; padding-block: 8px; }
  /* Observerの演出状態に関係なく小画面では読める最終状態。カウント機能は保持。 */
  .js .reveal, .js .reveal-group > *, .motion-enabled .motion-item, .motion-enabled .motion-photo,
  .motion-enabled .learning-story-photo img.motion-photo, .motion-enabled .learning-story-photo img.motion-photo + figcaption,
  .motion-enabled .portal-elec-image.motion-item, .motion-enabled .section-word.motion-item,
  .motion-enabled .motion-item.is-visible, .motion-enabled .motion-photo.is-visible,
  .motion-enabled .learning-story-photo img.motion-photo.is-visible, .motion-enabled .learning-story-photo img.motion-photo.is-visible + figcaption,
  .motion-enabled .portal-elec-image.motion-item.is-visible,
  .motion-enabled .reveal .campus-preview-grid .motion-photo, .motion-enabled .reveal .campus-preview-grid .motion-photo.is-visible { opacity: 1; transform: none; clip-path: none; animation: none; transition: none; }
}
@media (max-width: 430px) {
  .metric-grid, .editorial-home .results-section .metric-grid { grid-template-columns: minmax(0, 1fr); }
  .metric:last-child { grid-column: auto; }
  .reel-card, .video-reel .video-card, .campus-reel .campus-slide { flex-basis: 90%; }
}
@media (max-width: 900px) {
  /* 共通メニュー/資料拡大も、visualだけは白黒と蛍光色に揃える。 */
  [data-mobile-theme="visual"] .mobile-menu-toggle { color: #fff; background: #0a0a0a; border-color: #c6ff2e; }
  [data-mobile-theme="visual"] .mobile-menu-dialog { background: #fff; color: #101010; border-color: #101010; }
  [data-mobile-theme="visual"] .mobile-menu-dialog::backdrop { background: #0a0a0acc; }
  [data-mobile-theme="visual"] .mobile-menu-dialog a, [data-mobile-theme="visual"] .mobile-menu-dialog button { color: #101010; background: #f2f2f2; border-color: #b8b8b8; }
  [data-mobile-theme="visual"] .mobile-menu-dialog .mobile-menu-close { background: #101010; color: #fff; }
  [data-mobile-theme="visual"] .mobile-menu-dialog a[aria-current="page"] { color: #101010; background: #c6ff2e; border-color: #101010; }
  [data-mobile-theme="visual"] .mobile-menu-dialog :focus-visible, [data-mobile-theme="visual"] .mobile-menu-toggle:focus-visible { outline-color: #405500; }
  [data-mobile-theme="visual"] .ai-doc-zoom, [data-mobile-theme="visual"] .ai-doc-zoom-toolbar { background: #fff; color: #101010; }
  [data-mobile-theme="visual"] .ai-doc-zoom-toolbar button, [data-mobile-theme="visual"] .ai-doc-zoom-toolbar a { background: #f2f2f2; color: #101010; border-color: #101010; }
  [data-mobile-theme="visual"] .ai-doc-zoom-toolbar button:first-child { background: #101010; color: #fff; }
  [data-mobile-theme="visual"] .ai-doc-zoom-toolbar button[aria-pressed="true"] { background: #c6ff2e; color: #101010; }
  [data-mobile-theme="visual"] .ai-doc-zoom-scroll { background: #e8e8e8; }
  [data-mobile-theme="visual"] .ai-doc-zoom :focus-visible { outline-color: #405500; }
}

/* M65：1439px以下は章頭の英字（.section-word）を横に流す。複製はJSが作る。
   広い画面・動きを減らす設定では1語だけを従来どおり静止表示する。 */
.word-flow-group:not(:first-child), .word-flow-group > span:not(:first-child) { display: none; }
@media (max-width: 1439px) and (prefers-reduced-motion: no-preference) {
  .section > .section-word.word-flow {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-inline-start: max(20px, calc((100% - var(--container)) / 2));
    overflow: hidden;
    white-space: nowrap;
    overflow-wrap: normal;
  }
  .word-flow .word-flow-group, .word-flow .word-flow-group > span { display: inline-block; }
  .word-flow-track {
    display: inline-flex;
    width: max-content;
    animation: word-flow-x var(--word-flow-duration, 40s) linear infinite;
    animation-play-state: paused;
  }
  .word-flow-group { flex: none; }
  .word-flow-group > span { padding-inline-end: .5em; }
  .word-flow.is-running .word-flow-track { animation-play-state: running; }
  .word-flow-ready .marquee-controls:not([hidden]) { display: flex; }
}
@keyframes word-flow-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* スマホは小さなラベルを細い帯にする（小見出しの英字と同じ行が二つ並ぶのを避ける）。 */
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  .section > .section-word.word-flow {
    width: calc(100% - 118px); /* 右の停止ボタン（右20px・幅約90px）に文字を重ねない */
    padding-inline-start: 16px;
    font-size: 1.75rem;
    line-height: 1.4;
    letter-spacing: .01em;
  }
}

/* M67：トップの写真列を折りたたみから常時表示へ。見出しの上に余白を取る。 */
.editorial-home div.home-more-photos > .reel-region { padding-top: clamp(20px, 3vw, 32px); }

/* M68：資格実績の数値カード。電験3種・第一種電気工事士に「上級資格」ラベル、第一種（と実績ページの電験）は黒地に蛍光の数字。資格名の文字を大きく（第二種も）。 */
body .metric-grid .metric .upper-badge { display: inline-block; align-self: flex-start; width: max-content; margin-bottom: .75rem; padding: 3px 12px; border-radius: 999px; background: var(--accent-ink); color: var(--accent); font-size: .8125rem; font-weight: 900; letter-spacing: .08em; line-height: 1.6; }
body .metric-grid .metric.is-upper-dark { background: #0a0a0a; border-color: #0a0a0a; color: #fff; }
body .metric-grid .metric.is-upper-dark .metric-label, body .metric-grid .metric.is-upper-dark .metric-unit { color: #fff; }
body .metric-grid .metric.is-upper-dark .metric-number { color: var(--accent); }
body .metric-grid .metric.is-upper-dark .upper-badge { background: var(--accent); color: var(--accent-ink); }
body .metric-grid .metric.is-license .metric-label { font-size: 1.0625rem; line-height: 1.5; }
body .editorial-home .results-section .metric.is-license:first-child .metric-label, body.editorial-home .results-section .metric.is-license:first-child .metric-label { font-size: 1.25rem; }
@media (max-width: 900px) {
  body .metric-grid .metric.is-license .metric-label, body.editorial-home .results-section .metric.is-license:first-child .metric-label { font-size: 1.125rem; line-height: 1.5; }
}
body .metric-grid .metric.is-upper-dark + .metric.is-upper-dark { border-left: 1px solid #3a3a3a; } /* 隙間のない並び（実績ページ）で黒いカード同士を区切る */

/* M70：資格名を言葉のまとまりで折り返す（「輩出」「主任技術者」の途中で切らない）。スマホ2列（431〜900px）では少し小さく。 */
.metric-label .label-phrase { display: inline-block; }
@media (min-width: 431px) and (max-width: 900px) {
  body .metric-grid .metric.is-license .metric-label, body.editorial-home .results-section .metric.is-license:first-child .metric-label { font-size: 1rem; line-height: 1.5; }
}
/* M71：資格カードが2列（431〜900px）のときだけ、5枚目を横いっぱいに広げて右の空白をなくす。1列・PCは変えない。 */
@media (min-width: 431px) and (max-width: 900px) {
  .metric-grid > .metric:last-child:nth-child(odd), .editorial-home .results-section .metric-grid > .metric:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* M72：全体見直しの見た目の修正（スマホ）。 */
@media (max-width: 900px) {
  /* 黒い章（NEXT STEP）の英字帯が黒地に濃い緑でほぼ見えなかった。 */
  .section.dark > .section-word { color: var(--accent); }
  /* 体験学習の締切が「参加申込は／9月11日（金）／で／締め切りました。」と4行に割れていた。 */
  .event-deadline { display: block; line-height: 1.7; }
  /* 「動画で見てみよう」カードの大きな空白をなくす。 */
  .portal--video { min-height: 0; }
  /* 「つくる・変える…」の6つを縦6段から2列3段へ。 */
  .lab-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: center; }
}

/* M74：スマホでは長い写真・資料のまとまりを「押すと開く」形にする（details.m-fold）。
   PC（901px以上）は直後の1行のインラインscriptが最初から開き、ボタンは隠す。PCの見た目は変えない。 */
.m-fold > summary { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px 16px; border: 1px solid #0a0a0a; border-radius: 10px; background: #fff; color: #0a0a0a; font-size: 1rem; font-weight: 800; line-height: 1.5; cursor: pointer; list-style: none; }
.m-fold > summary::-webkit-details-marker { display: none; }
.m-fold > summary::after { content: "＋"; margin-left: auto; font-weight: 900; }
.m-fold[open] > summary::after { content: "－"; }
.m-fold > summary:focus-visible { outline: 3px solid #405500; outline-offset: 3px; }
@media (min-width: 901px) { .m-fold[open] > summary { display: none; } }
@media (max-width: 900px) { .m-fold { margin-block: 20px; } .m-fold[open] > summary { margin-bottom: 16px; } }
@media (max-width: 900px) {
  /* M74：スマホの文字は最低14px。 */
  .site-header .brand small, .video-card .video-badge, .visitor-counter .visitor-counter-label, .reel-controls .reel-autoplay-toggle,
  .hero .hero-note, .editorial-home .hero-note, .drawing-entry small, .drawing-entry .drawing-eyebrow, .drawing-eyebrow, .eyebrow, .section-head .eyebrow, .reel-heading .eyebrow,
  .site-footer p, .footer-inner p, .footer-links a, .site-footer a, body .metric-grid .metric .upper-badge, .reel-reduced-note, .video-card .video-copy span, .card .card-index { font-size: .875rem; }
  /* M74：押しにくい場所を44px以上に。 */
  html body .power-future-source a, html body dt > a { display: inline-block; padding-block: 10px; }
  html body .drawing-entry small, html body .drawing-entry .drawing-eyebrow, html body .drawing-work .drawing-eyebrow { font-size: .875rem; }
  .footer-links a, .breadcrumb a { min-width: 44px; text-align: center; }
}

/* M75：スマホ1列（430px以下）でも数字のカードを2列に。1枚目は横いっぱい、残り4枚は2×2。5つの数字が2画面ぶん早く見える。 */
@media (max-width: 430px) {
  .metric-grid, .editorial-home .results-section .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .metric-grid > .metric:first-child, .editorial-home .results-section .metric-grid > .metric:first-child { grid-column: 1 / -1; }
  .metric-grid > .metric:not(:first-child), .editorial-home .results-section .metric-grid > .metric:not(:first-child) { padding: 14px 12px; }
  body .metric-grid .metric:not(:first-child) .metric-label, body .metric-grid .metric.is-license:not(:first-child) .metric-label { font-size: .9375rem; line-height: 1.45; }
}

/* M76：スマホの「1年生・2年生・3年生」は、数字を左・説明を右に並べて短くする。 */
@media (max-width: 900px) {
  .timeline article, .editorial-home .learning-story-section .timeline article { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); column-gap: 12px; align-items: start; padding: 16px; }
  .timeline .timeline-year, .editorial-home .learning-story-section .timeline-year { grid-row: 1 / span 2; }
  .timeline h3, .editorial-home .learning-story-section .timeline h3 { grid-column: 2; margin: 0 0 6px; }
  .timeline p, .editorial-home .learning-story-section .timeline p { grid-column: 2; margin: 0; }
}
