/* TOP-only components; shared Banner, Sidebar and other pages stay intact. */
/* Below 1024px the page ground (--page-bg-mobile on body, the current edition's tint) shows through main, as on every other page. */
@media (min-width: 1024px) { .home-main { background: var(--paper); } }
.home-rolling { position: relative; margin: 0 0 48px; }
.home-rolling-viewport { width: 100%; overflow: hidden; background: #fff; }
.home-rolling-track { display: flex; width: max-content; animation: home-roll 40s linear infinite; }
.home-rolling-set { display: flex; flex: none; }
.home-rolling-link { display: block; flex: 0 0 220px; width: 220px; padding-right: 20px; }
.home-rolling-link img { display: block; width: 200px; height: 200px; max-width: none; object-fit: contain; }
.home-rolling.is-paused .home-rolling-track { animation-play-state: paused; }
.home-rolling:has(.home-rolling-link:focus-visible) .home-rolling-track { animation: none; }
.home-rolling:has(.home-rolling-link:focus-visible) .home-rolling-viewport { overflow-x: auto; }
.home-rolling:has(.home-rolling-link:focus-visible) .home-rolling-set[aria-hidden] { display: none; }
.home-rolling-link:focus-visible { outline-offset: -4px; }
@keyframes home-roll { to { transform: translateX(-50%); } }
/* A short invitation, independent News, then vertically accumulating editions. */
/* Section rhythm (large sections are further apart than anything inside them): tagline → recruitment → news → history. */
.home-about { padding: 24px clamp(16px,2vw,28px) 0; margin: 0 0 80px; }
.home-about-content { width: 100%; margin-inline: auto; text-align: center; }
.sp-br { display: none; }
.home-about p { font-family: var(--font); font-size: 28px; font-weight: 600; letter-spacing: normal; line-height: 1.65; color: #222; margin: 0; }
/* One quiet, flat frame groups the information and its action: a hairline border, no radius, shadow or tint. */
.home-recruitment { width:min(calc(100% - 2 * clamp(16px,2vw,28px)),40rem); margin:0 auto 96px; padding:36px 40px; border:1px solid var(--line); background:var(--paper); }
/* Center the copy within its own lane. */
.home-recruitment-inner { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:32px; max-width:34rem; margin-inline:auto; }
.home-recruitment-info { min-width:0; max-width:100%; justify-self:center; text-align:center; }
.home-recruitment h2 { margin:0; font-size:30px; line-height:1.5; letter-spacing:.03em; }
.home-recruitment-edition { display:block; margin-bottom:4px; font-size:17px; font-weight:600; letter-spacing:normal; color:var(--edition-color); }
.home-recruitment-deadline { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:center; gap:4px 16px; margin:12px 0 0; }
.home-recruitment-deadline > span { font-size:13px; }
.home-recruitment-deadline time { font-size:18px; font-weight:500; white-space:nowrap; }
.home-recruitment-cta { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:12px 20px; border:1px solid var(--edition-color); background:var(--edition-color); color:#fff; font-size:16px; font-weight:600; text-decoration:none; }
.home-recruitment-cta:focus-visible { outline:3px solid var(--ink); outline-offset:4px; }
/* Hover stays in the edition's own hue: the same color, darkened (white text keeps a higher contrast than at rest). */
@media (hover:hover) and (pointer:fine) { .home-recruitment-cta:hover { border-color:#5a1a2b; background:#5a1a2b; border-color:color-mix(in srgb,var(--edition-color) 75%,#000); background:color-mix(in srgb,var(--edition-color) 75%,#000); color:#fff; } }
.home-news, .home-history { padding-inline: clamp(16px,2vw,28px); }
.home-news { margin-bottom: 128px; }
.home-news-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 5px; margin-bottom: 35px; }
.home-news-header h2 { font-size: 24px; font-weight: 700; line-height: 1.5; letter-spacing: normal; color: #000; margin: 0; }
.home-news-content, .home-story-content { min-width: 0; }
.home-news-cta { display: flex; flex-shrink: 0; width: max-content; min-height: 32px; align-items: center; margin: 0; padding: 0; font-size: 18px; }
/* Match the publisher's heading/list rhythm, without a category column. */
.home-news .news-list li { border: 0; }
.home-news .news-list li + li { margin-top: 23px; }
.home-news .news-list a { width: 100%; grid-template-columns: 108px minmax(0,1fr); column-gap: 0; padding: 0; }
.home-news .news-list a span { text-wrap: wrap; }
.home-year-story { display: grid; grid-template-columns: 160px minmax(0,1fr); gap: 32px; align-items: start; }
.home-year-story + .home-year-story { margin-top: 72px; }
.home-story-year { width: max-content; margin: 0; font-family: var(--font); font-size: clamp(48px,3.9vw,56px); font-weight: 400; line-height: 1; letter-spacing: normal; color: var(--edition-color); }
.home-story-content h2 { font-size: 20px; font-weight: 500; line-height: 1.6; letter-spacing: normal; margin: 0 0 12px; color: var(--ink); text-wrap: balance; }
.home-story-content > p { max-width: 46rem; margin: 0; font-size: 16px; line-height: 1.85; text-wrap: pretty; color: #333; }
.home-story-link { margin-top: 16px; font-size: 13px; font-weight: 400; color: var(--muted); text-decoration: none; }
.home-story-link:focus-visible { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .home-story-link:hover { color: var(--ink); } }
@media (min-width: 1024px) {
  .home-main { container-type: inline-size; }
  /* Beyond its 1140px cap, .main-inner is right-aligned. Center this
     message on the full main column without moving News or the archive. */
  .home-about-content { position: relative; inset-inline-start: min(0px,calc((1140px - 100cqw) / 2)); }
}
@media (max-width: 640px) { .sp-br { display: inline; } }
@media (max-width: 1023px) {
  .home-rolling { margin-bottom: 36px; }
  .home-about { padding-top: 20px; margin-bottom: 64px; }
  .home-recruitment { margin-bottom: 80px; }
  .home-about p { font-size: 22px; }
  .home-news { margin-bottom: 104px; }
  .home-news-header { padding-block: 0; margin-bottom: 13px; }
  .home-news-header h2 { font-size: 17px; margin-block: 5.5px; }
  .home-history { padding-bottom: 40px; }
  .home-news-cta { font-size: 13.5px; }
  .home-news .news-list a { grid-template-columns: 95px minmax(0,1fr); }
  .home-news .news-list li + li { margin-top: 17.25px; }
  .home-year-story { display: block; }
  .home-year-story + .home-year-story { margin-top: 64px; }
  .home-story-year { font-size: 38px; margin-bottom: 24px; }
}
/* Phones: the longest of the four lines (14 characters, 「好きなことも、考えたことも、」) must always fit its line. The text column is 88vw - 32px
   wide, so the size follows it (22px from 390px up, smaller below, never under 17px) rather than letting that line break inside. */
@media (max-width: 640px) {
  .home-about p { font-size: clamp(17px, calc((88vw - 32px) / 14.1), 22px); }
  .home-about { margin-bottom: 48px; }
  .home-recruitment { margin-bottom:64px; padding:28px 20px; }
  .home-news { margin-bottom: 88px; }
  .home-recruitment-inner { grid-template-columns:minmax(0,1fr); gap:20px; }
  .home-recruitment h2 { font-size:28px; }
  .home-recruitment-edition { font-size:16px; }
  .home-recruitment-cta { width:100%; }
}
@media (prefers-reduced-motion: reduce) {
  .home-rolling-track { animation: none; }
  .home-rolling-viewport { overflow-x: auto; }
  .home-rolling-set[aria-hidden] { display: none; }
}
