/* =============================================================================
   recruit.css — the Recruit page
   Built on the TOP's tokens (css/tokens.css), roles (css/type.css) and shared parts
   (css/components.css, header.css, footer.css, motion.css). This file lays the page out
   and defines the page's own text roles (rc-t-*, directly below): the data cards, charts
   and member cards are things the TOP never had, so they get a small set of steps of their
   own. Apart from that block, no rule here sets a font-size / weight / family — text takes
   a role class in the HTML, the site's (t-*) or the page's (rc-t-*). When a piece of text
   looks wrong, move it to the role above or below; do not give it a value of its own.
   The written-down exceptions: the Hero's SVG chapter lockup (its text scales with the
   viewBox, like the TOP's hero lockup in journey.css); the proportions inside the Hero catch
   (ワクワク larger, する smaller, in em of the catch); the curriculum chevron (1.25em, the
   t-icon step); and the phone steps of the growth-chart labels and the assignment diagram,
   written in role tokens because their columns are only ~90px wide; and the Entry statement and
   the Hero's closing statement on a phone, sized from the viewport so their first lines fit.

   The page is warmer than the TOP on purpose. The copy sits on cream and sand so the
   photographs and the orange read warm; the brand blue is kept for the opening and the
   close, where the page speaks loudest.

   Sections do not share one template. The amount of content decides the form:
     numbers      → a 2 × 2 of cards with charts drawn in HTML
     members      → a deck of four pinned and pulled sideways by the scroll
     voices       → a marquee, two rows running opposite ways
     values       → three cards that stack as they arrive
     office       → one wide photograph
     system       → three chapters, each laid out for its own material
     culture      → four cards, then a river of photographs
     benefits     → six quiet tiles
     work / jobs  → tags, three cases, five doors
     message      → portrait and letter
     entry        → the blue returns, with the statement running across the screen
     faq          → plain, open-and-close
   ============================================================================= */

/* ===== the page's own text roles ===========================================================
   Six steps for the cards and data zones, worn as classes in the HTML like any site role:
     rc-t-figure   the big figure on a data card
     rc-t-number   an emphasised number in a chart, a legend or a member card
     rc-t-card     the title of a card (size and bold; the line-height comes from the context)
     rc-t-head     the heading of a data card (rc-t-card with the page's heading line-height)
     rc-t-note     a card's supporting copy, legends, units
     rc-t-label    the smallest text: chart axes, metas, card links
   Weight comes from w-*, except the two card-title roles, which are always bold (w-strong) —
   a card title on a card whose title is the larger t-title (Values, Culture) wears w-strong
   in the HTML for the same reason. rc-t-number deliberately sets no family: the 「：」 between
   78 and 22 inherits the figure's serif, while the same role in a legend stays sans. */
.rc-t-number { font-size: var(--t-subhead); line-height: 1.3; }
.rc-t-card   { font-size: var(--t-card);    font-family: var(--f-sans); font-weight: var(--w-strong); }
.rc-t-head   { font-size: var(--t-card);    line-height: 1.5; font-family: var(--f-sans); font-weight: var(--w-strong); }
.rc-t-note   { font-size: var(--t-body);    line-height: 1.95; font-family: var(--f-sans); }
.rc-t-label  { font-size: var(--t-caption); line-height: 1.7; font-family: var(--f-sans); }

/* The one step this page adds. The site's scale jumps from --t-statement to --t-display
   with nothing between, and a card figure needs to be bigger than a heading and smaller
   than a page title — so this is the only size on the page that is not a site step. */
.rc-t-figure {
  font-size: clamp(48px, calc(6.2vw * var(--rc-k)), calc(104px * var(--rc-c)));
  line-height: 1.02;
  letter-spacing: -.01em;
  font-family: var(--f-serif);
}

/* ----- the document ------------------------------------------------------------------------
   What page.css gives the TOP (html / body basics, the skip link). The TOP's field is not
   loaded here — the Recruit page draws its own, fixed behind everything (.rc-field below). */
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
  scrollbar-gutter: stable;
}

body.recruit {
  isolation: isolate;
  overflow-x: clip;   /* for the full-bleed river; clip, not hidden, so sticky keeps working */
  margin: 0;
  background: #fff;
  color: var(--text);
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: fixed;
  left: 20px;
  top: -100px;
  background: #fff;
  padding: 12px;
  z-index: 100;
}

.skip:focus {
  top: 20px;
}

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


/* ----- the field and the theme ----------------------------------------------------------
   The page alternates deep and pale surfaces, as the reference design does: the Hero and
   People on blue, Work on white, Jobs on blue, Message on pale blue, Entry on blue with
   the orange light, FAQ on white. A panel never carries its own text colours — it takes
   .rc-on-blue, which flips the theme, so every component inside adapts without a variant. */
.recruit {
  /* The blue panel of Jobs sits in the lighter half of the brand ramp, well clear of the
     navy that belongs to the TOP's Hero. */
  --g-panel-jobs: linear-gradient(115deg, #247ac9, #2698cf);
  --c-panel: #f2f6fb;        /* the pale panels: People, Message, Work, FAQ */
  --c-surface: #f8fbff;      /* a card standing on a blue panel */

  /* white on the blue fields, in the three strengths the page uses */
  --c-on-blue-soft: rgb(255 255 255 / .82);   /* secondary copy */
  --c-on-blue-hair: rgb(255 255 255 / .5);    /* outlines of the cards on blue */
}

#jobs.rc-on-blue {
  background-image: var(--g-panel-jobs);
}

/* A card on a blue panel is a pale surface, so it turns the theme back to the light one and
   every component inside it — headings, copy, hairlines, text links — reads correctly.
   :where() and not :is(), so this rule carries only .rc-on-blue's specificity: :is() would
   take the weight of its heaviest argument and then outrank a card that sets its own theme
   later in this file (the third value card, which is deliberately blue). */
.rc-on-blue :where(.rc-card, .rc-member, .rc-culture-card,
  .rc-curriculum > div, .rc-office-address, .rc-river figcaption) {
  --accent: var(--c-blue);
  --accent-deep: var(--c-deep);
  --text: var(--c-ink);
  --text-muted: var(--c-muted);
  --rule: var(--c-line);
  color: var(--text);
}

/* On the blue fields the theme flips to white, so the shared parts adapt. */
.rc-on-blue {
  --accent: #fff;
  --accent-deep: #fff;
  --text: #fff;
  --text-muted: rgb(255 255 255 / .72);
  --rule: rgb(255 255 255 / .28);
  color: #fff;
}

/* The headings and emphasised words that take the theme's deep accent: deep blue on the
   pale surfaces, white on the blue fields — one place, never a colour per element. */
:is(.rc-member-meta b, .rc-legend b, .rc-benefit h4,
  .rc-office-addr b, .rc-chapter-sub, .rc-chip b, .rc-eval-row b) {
  color: var(--accent-deep);
}

/* ===== layout: one reading column for the whole page =======================================
   Every section resolves to the same column — no maximum width, just the viewport minus a
   --gutter margin on each side, centred on the page. That holds whether the section runs the
   full width (Work, Jobs, FAQ) or sits inside an inset panel (People, Message): a panel
   declares how far it has already moved in as --panel-give, and the column gives exactly
   that back, so `100% + give*2` is the page's own width seen from inside the panel. The
   panels are centred on the page, so `auto` here centres on the page and not on the panel.

   NOTHING BELOW THIS BLOCK MAY SET A CONTENT WIDTH. Four rules used to, each with its own
   inset (one of them 8vw rather than the gutter), which is what pulled the sections' left
   edges apart. To change how much margin the page keeps, change --gutter, here, once.

   Exempt by design, because they are not reading columns: the Hero's pinned stage, the
   members' deck track (its slides are centred by recruit.js) and the river of photographs
   (deliberately full-bleed). */
.recruit {
  /* ===== Recruit's own type scale — deliberately NOT the shared TOP tokens =================
     Recruit reads bigger and more dynamic than the rest of the site: a steeper vw growth and
     a higher ceiling on the display roles, with the body held near 15–16px so the gap between
     a heading and its copy is wide (the SP-first, big-statement feel). Redefining the site's
     --t-* here, on the page root, re-scales every role at once without touching :root/TOP.
     caption/micro keep the shared values. To re-tune the whole page's loudness, change the
     ceilings and vw terms here, once.

     --rc-k is how fast the sizes grow with the screen, below their ceilings, and --rc-c scales
     the ceilings themselves. On a phone/tablet (900px and under) k is .88 and the ceilings stand,
     so the floors and the narrow composition read as before. From 901px up both follow the
     TOP's --ui-scale (css/tokens.css: the desktop was taken down a step because a laptop read a
     touch large), so the TOP and this page move together — change that one value to re-tune
     both. The reading sizes (title/card/intro) keep their floors, which --ui-scale cannot pull
     them under, same as on the TOP. */
  --rc-k: .88;
  --rc-c: 1;
  --t-display:   clamp(52px, calc(9.2vw * var(--rc-k)), calc(150px * var(--rc-c)));  /* hero catch */
  --t-statement: clamp(38px, calc(6vw * var(--rc-k)), calc(92px * var(--rc-c)));     /* section English heads, hero's closing line */
  --t-headline:  clamp(27px, calc(3.3vw * var(--rc-k)), calc(50px * var(--rc-c)));   /* hero message, member copy */
  --t-subhead:   clamp(22px, calc(2.5vw * var(--rc-k)), calc(38px * var(--rc-c)));   /* emphasised numbers, member meta */
  --t-title:     clamp(19px, calc(1.9vw * var(--rc-k)), calc(30px * var(--rc-c)));   /* small headings */
  --t-card:      clamp(16px, calc(1.65vw * var(--rc-k)), calc(26px * var(--rc-c)));  /* the title of a card — one step under t-title */
  --t-intro:     clamp(16px, calc(1.5vw * var(--rc-k)), calc(23px * var(--rc-c)));   /* lead paragraphs */
  /* --t-body / --t-caption / --t-micro: left on the shared scale on purpose */
}

/* Desktop: follow the TOP's --ui-scale (slope and ceilings both). */
@media (min-width: 901px) {
  .recruit {
    --rc-k: var(--ui-scale);
    --rc-c: var(--ui-scale);
  }
}

.recruit .wrap,
.recruit .rc-deck-head,
.recruit .rc-voices-head {
  /* `auto` cannot centre this: inside a panel the column is wider than the panel's own
     content box, and auto margins collapse to zero the moment a box overflows its parent.
     The centring is therefore written out — 50% is half the containing block, and the
     containing block's centre is the page's centre, because every panel is itself centred. */
  --rc-col: calc(100% - var(--gutter) * 2 + var(--panel-give, 0px) * 2);
  width: var(--rc-col);
  max-width: none;
  margin-inline: calc(50% - var(--rc-col) / 2);
  padding-inline: 0;
}

@media (min-width: 761px) {
  .recruit {
    /* doubled from 5.2vw: the full-width column read cramped against the panel edges */
    --gutter: 10.4vw;
  }
}

/* Phone: the page's side margin is 8px wider than the shared 6vw, so text and cards sit a
   little further in; the inset panels below drop their own inset and run edge to edge. */
@media (max-width: 760px) {
  .recruit {
    --gutter: calc(6vw + 8px);
  }
}

/* ----- header: the TOP's header, over a Hero whose top edge is blue ---------------------- */
.recruit .header:not(.scrolled):not(.menu-open) {
  background: linear-gradient(180deg, rgb(10 28 74 / .45), rgb(10 28 74 / .18) 70%, transparent);
}

/* the page marker beside the logo — tells this header apart from the TOP's at a glance.
   It follows the logo's two states: white over the Hero, brand blue once scrolled. */
.recruit .header .rc-site-tag {
  margin-right: auto;
  padding-left: 18px;
  border-left: 1px solid currentColor;
  line-height: 1.3;
  letter-spacing: .05em;
  white-space: nowrap;
  color: var(--c-blue);
}

.recruit .header:not(.scrolled):not(.menu-open) .rc-site-tag {
  color: #fff;
}

/* ----- 00 HERO ---------------------------------------------------------------------------
   The section is tall; the stage inside it is pinned for its whole length, so the background
   stays anchored while the page scrolls past. The blue/cyan field flows independently,
   with an orange lower edge and the existing arch above it. The copy and veil are driven by
   --hero (0 → 1), which recruit.js scrubs from the scroll position:

     (the same --hero is also advanced by a clock; the larger of the two wins — see recruit.js)
     --hero 0.00 → 0.22   the catch copy fades
     --hero 0.085 → 0.29  brand blue gathers over the photograph and field, up to 82%
     --hero 0.26 → 0.92   the large white message travels up until the actions fit on screen
     --hero 0.92 → 1.00   the closing statement and actions remain in place
     --hero 1.00         the stage stays pinned while the next section covers it

   Pausing freezes the field's current frame; reduced motion renders a still frame.
   Without WebGL the complete CSS gradient remains visible. */
/* The Hero's field. The flat brand values are too dark to carry a whole screen — a screen
   of #e65100 reads as burnt, and a blue running straight into it crosses through grey — so
   the field is built from them brightened, and carried from the blue into the orange
   through light rather than through grey. These three are the field's own colours; they do
   not belong to the brand, which is why they live here beside the gradient and nowhere
   else. The radial gradients on top are only the four corners, saturated. */
.recruit {
  --f-orange: #ff6a00;    /* --c-orange,   brightened */
  --f-sky:    #7ebee8;    /* --c-blue-mid, lifted */
  --f-cream:  #ffd6b0;    /* --c-orange-lt, lifted */

  /* the ground the waves roll over: blue above, orange below */
  --g-ground: linear-gradient(168deg,
    var(--c-cyan) 0%,
    var(--c-blue-mid) 20%,
    var(--f-sky) 38%,
    var(--f-cream) 54%,
    var(--c-orange-lt) 72%,
    var(--f-orange) 100%);

  /* the whole field in one value, for the section behind the stage and for anything that
     never animates: the same picture the four layers make when they are all at rest */
  --g-hero:
    radial-gradient(120% 34% at 70% 6%, rgb(22 68 175 / .9), rgb(22 68 175 / 0) 68%),
    radial-gradient(130% 38% at 25% 22%, rgb(64 183 233 / .95), rgb(64 183 233 / 0) 68%),
    radial-gradient(110% 30% at 75% 38%, rgb(64 183 233 / .55), rgb(64 183 233 / 0) 68%),
    radial-gradient(120% 32% at 30% 54%, rgb(255 214 176 / .85), rgb(255 214 176 / 0) 68%),
    radial-gradient(130% 36% at 80% 70%, rgb(255 138 60 / .9), rgb(255 138 60 / 0) 68%),
    radial-gradient(140% 40% at 35% 88%, rgb(255 106 0 / .95), rgb(255 106 0 / 0) 68%),
    var(--g-ground);

  /* The Japanese-led sans the Hero lines are set in (--f-sans leads with the latin face,
     which renders the Hero's Japanese more loosely). */
  --rc-f-ja: "Noto Sans JP", sans-serif;
}

.rc-hero {
  position: relative;
  /* The scroll length of the opening. The message now plays on its own clock (recruit.js,
     HERO_AUTO); scrolling only carries it forward faster, so one screen and a bit of scroll
     (this height minus the pinned stage, the closing hold and the cover) is enough to reach
     the end — it was 650svh when the scroll alone drove the message. */
  height: 380svh;
}

.rc-hero-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  height: 100lvh;   /* スマホでアドレスバーが縮んでも、画面の下に白い帯を残さない */
  overflow: hidden;
  isolation: isolate;
}

/* ----- the field ---------------------------------------------------------------------------
   A continuously warped colour field, fixed behind the whole page. The canvas draws only the
   background; the arches, opening copy and scroll message keep their own layers. CSS supplies
   the palette and a complete still fallback when WebGL is unavailable. */
.rc-field {
  --flow-blue: var(--c-blue);
  --flow-cyan: var(--c-cyan);
  --flow-sky: var(--f-sky);
  --flow-cream: var(--f-cream);
  --flow-orange: var(--f-orange);
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100svh;
  height: 100lvh;
  overflow: hidden;
  background: var(--g-hero);
  pointer-events: none;
}

.rc-field-canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .65s ease;
}

.rc-field.is-flow-ready .rc-field-canvas { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .rc-field-canvas { transition: none; }
}

/* ----- the arches --------------------------------------------------------------------------
   Three broad strokes cross the field and draw themselves on once, on arrival (blue, then
   cyan, then orange), independent of the scroll. Their paths run off the viewBox on both
   ends, so neither cut shows; the svg scales uniformly and is cropped to a desktop stage's
   proportions, which keeps every band an even width. */
.rc-arches {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.rc-arches svg {
  display: block;
  width: 100%;
  height: 100%;
}

.rc-flow-line {
  fill: none;
  stroke-width: 72;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1 2;
  stroke-dashoffset: 0;
  animation: flow-arrive .75s cubic-bezier(.22, .55, .35, 1) .2s both;
}

.rc-flow-line--blue { stroke: url(#flow-blue-glass); }
.rc-flow-line--cyan { stroke: url(#flow-cyan-glass); animation-delay: .75s; }
.rc-flow-line--orange { stroke: url(#flow-orange-glass); animation-delay: 1.3s; }

@keyframes flow-arrive {
  from { stroke-dashoffset: 1.035; }
  to { stroke-dashoffset: 0; }
}

.motion-paused .rc-flow-line { animation-play-state: paused; }

.motion-reduced .rc-flow-line { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .rc-flow-line { animation: none; }
}

/* ----- the line the page opens on ---------------------------------------------------------
   Both lines sit on one axis. ワクワク carries the first line in bold gothic and する steps
   down so the line closes at the same width as the serif second line. */
.rc-hero-catch {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  z-index: 5;
  display: grid;
  justify-items: center;
  width: calc(100% - var(--gutter) * 2);
  margin: 0;
  text-indent: 0;
  text-align: center;
  line-height: 1.25;
  letter-spacing: -.05em;
  font-family: var(--rc-f-ja);
  font-style: normal;
  color: #fff;
  opacity: clamp(0, calc(1 - var(--hero, 0) / .22), 1);
  pointer-events: none;
}

.rc-hero-catch > span {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  text-align: center;
}

/* Optically centre the final line: its full-width stop has trailing empty space. */
.rc-hero-catch > span:last-child {
  translate: .25em 0;
}

.rc-hero-catch b {
  font-size: 1.19em;   /* sized with the tighter tracking so the line's letters span the same
                          width as the serif second line (measured on the glyph outlines) */
  letter-spacing: -.12em;
}

/* Each line is centred by its advance width, not by its ink: the katakana ワ carries a wide left
   bearing the line below does not, so the first line sat ~0.11em to the right. This brings both
   lines' left and right edges onto the same two vertical lines. */
.rc-hero-catch > span:first-child {
  translate: -.114em 0;
}

.rc-hero-catch small {
  font-size: .55em;
}

/* The opening: the line arrives first, the arches are drawn after it. Each ends where it
   rests, so a still frame of the page is complete, and none of it happens twice. */
@media (prefers-reduced-motion: no-preference) {
  .rc-hero-catch {
    animation: rc-catch-in 1.1s cubic-bezier(.22, 1, .36, 1) both;
  }
}

@keyframes rc-catch-in {
  from { opacity: 0; translate: -50% calc(-50% + 26px); }
}

/* ----- the blue layer behind the white message ------------------------------------------- */
.rc-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: var(--c-blue);
  opacity: calc(clamp(0, (var(--hero, 0) - .085) / .205 * .82, .82) * (1 - var(--hero-exit, 0)));
  pointer-events: none;
}

/* A persistent signature at the foot of the pinned hero, behind the scrolling message. */
.rc-hero-chapter {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  z-index: 5;
  pointer-events: none;
  color: rgb(255 255 255 / .12);
}

.rc-hero-chapter svg { display: block; width: 100%; height: auto; overflow: visible; }

.rc-hero-chapter text {
  /* a written-down exception: SVG text scales with its viewBox, so these are lockup
     coordinates, not a type size — the same licence journey.css has for the TOP's hero */
  fill: currentColor;
  font-family: var(--f-sans);
  font-size: 120px;
  font-weight: 400;
  letter-spacing: -.04em;
}

.rc-hero-chapter tspan { font-family: var(--f-serif); font-style: italic; }

/* ----- and the message that rises through it --------------------------------------------- */
.rc-hero-lift {
  --message-progress: clamp(0, (var(--hero, 0) - .26) / .66, 1);
  /* the message travels its own height plus the room the chapter signature needs */
  --chapter-clearance: max(12svh, calc(14.5vw + 40px));
  position: absolute;
  inset: 100% 0 auto;
  z-index: 6;
  color: #fff;
  opacity: clamp(0, (var(--hero, 0) - .22) / .05, 1);
  translate: 0 calc(-1 * var(--message-progress) * (100% + var(--chapter-clearance)));
}

.rc-hero-lift .wrap {
  display: grid;
  gap: clamp(24px, 4vh, 40px);
  justify-items: center;
  text-align: center;
}

/* The long message is allowed to exceed one screen; its full height decides the travel. */
.rc-hero-message {
  max-width: 34em;
  line-height: 1.85;
}

.rc-hero-message > span,
.rc-hero-message strong > span {
  display: block;
  text-wrap: balance;
}

/* Each line enters independently, driven by its position in the pinned viewport. */
@media (prefers-reduced-motion: no-preference) {
  .rc-hero-message > span,
  .rc-hero-message strong > span {
    position: relative;
    isolation: isolate;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    --line-wipe: clamp(0, calc(var(--line-reveal, 1) / .75), 1);
    --line-band-opacity: clamp(0, calc((1 - var(--line-reveal, 1)) / .25), 1);
  }
  .rc-hero-message > span::before,
  .rc-hero-message strong > span::before {
    content: "";
    position: absolute;
    inset: .12em -.16em;
    z-index: -1;
    background: var(--f-orange);
    transform-origin: left center;
    scale: var(--line-wipe) 1;
    opacity: var(--line-band-opacity);
    pointer-events: none;
  }
  .rc-hero-line-text {
    display: block;
    clip-path: inset(0 calc((1 - var(--line-wipe)) * 100%) 0 0);
  }
}

.rc-hero-message > span + span {
  margin-top: .45em;
}

/* the message body is set in the Japanese-led sans; the closing statement keeps its own */
.rc-hero-message > span {
  font-family: var(--rc-f-ja);
  font-style: normal;
}


/* Keep the closing statement highlighted after its entrance. */
.rc-hero-message strong > span {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: .08em .22em;
  background: var(--f-orange);
  color: #fff;
}

@media (prefers-reduced-motion: no-preference) {
  .rc-hero-message strong > span {
    background: transparent;
    --line-wipe: var(--line-reveal, 1);
    --line-band-opacity: 1;
  }
  .rc-hero-message strong > span::before { inset: 0; }
}

.rc-hero-message strong > span + span {
  margin-top: .16em;
}

.rc-hero-message strong {
  display: block;
  margin-block: clamp(96px, 14svh, 180px) 0;   /* nothing under it: the chapter signature closes the stage */
  line-height: 1.3;   /* the orange bands are as tall as their lines: 1.5 left them looking padded */
  /* The band keeps the same share of the reading column on every screen: ~5.35% of the column's
     width per character, so it neither shrinks on a tablet nor outgrows 0.7 × the statement's
     ceiling (64.4px) on a wide screen; on a phone it falls back to 0.7 × the statement, and the
     last term keeps a twelve-character first line on one line inside the two page gutters
     (a written-down exception). */
  font-size: min(
    clamp(calc(var(--t-statement) * .7), calc((100vw - 2 * var(--gutter)) * .0535), calc(64.4px * var(--rc-c))),
    calc((100vw - 2 * var(--gutter)) / 12.6));
  color: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .rc-hero { height: auto; }
  .rc-hero-stage { position: relative; height: auto; }
  .rc-arches { height: 100svh; }
  .rc-hero-catch {
    position: relative;
    inset: auto;
    translate: none;
    display: grid;
    align-content: center;
    min-height: 100svh;
    margin-inline: auto;
    opacity: 1;
  }
  .rc-hero-veil { display: none; }
  .rc-hero-lift {
    position: relative;
    inset: auto;
    translate: none;
    padding-block: clamp(80px, 12vh, 160px);
    background: var(--c-blue);
    opacity: 1;
  }
}

.rc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* Text links take the theme's deep accent, so the same markup reads on cream and, inside
   .rc-on-blue where --accent-deep is white, on the blue fields. Never a colour per link. */
.recruit .text-link {
  color: var(--accent-deep);
}

/* ----- the section head pattern --------------------------------------------------------- */
.rc-section {
  position: relative;
  padding-block: clamp(96px, 13vh, 170px);
}


.rc-section-head {
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
  margin-bottom: clamp(48px, 7vh, 88px);
}

/* The title block is .section-title (components.css). On this page it is set lighter, with
   more line and less tracking than the TOP's, and held to a narrow measure so a long title
   breaks onto a second line — the display moment the reference design builds each section on. */
.recruit .section-title h2 {
  font-weight: var(--w-body);
  line-height: 1.12;
  letter-spacing: -.035em;
  max-width: 6.2em;
  margin-inline: auto;
}

.rc-section-head .rc-lead {
  /* The copy carries its own <br>, so the measure is not what decides the line length —
     it only forced a third, ragged line. Full width; the writing controls the breaks. */
  max-width: none;
  line-height: 2.05;
}

/* On a phone the lead wraps several times, and centring leaves every line a different
   length with a ragged left edge. The title stays centred; the sentences read from the
   same margin. justify-self undoes the head's justify-items so the text has the full
   column to align within. */
@media (max-width: 760px) {
  .rc-section-head .rc-lead {
    justify-self: stretch;
    text-align: left;
  }
}

/* A sub-section inside People & Environment. */
.rc-part {
  position: relative;
  padding-block: clamp(64px, 9vh, 120px);
}

/* The title block every topic opens with: the English title, its Japanese supplement, and
   (where there is one) the lead — one component, one set of margins, so every section opens
   the same way down the page. The title takes a title's line-height: left to inherit the
   body's 1.95 it carried ~40px of air above and below the word. Members (.rc-deck-head) and
   Voices (.rc-voices-head) wear it too. */
.rc-part-head {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-bottom: clamp(16px, 2.5vh, 28px);
}

.rc-part-head > h3 + p {
  margin-top: -4px;
}

/* The sub (the Japanese line under an English title) is set in mincho, so it reads apart from
   the gothic lead below it, including on the blue and photo backgrounds where both are white. */
.rc-part-head > h3 + p,
.rc-section-head .section-title > p {
  font-family: var(--f-serif);
}

.rc-part-head .rc-part-lead {
  margin-top: 6px;
}

.rc-part-head h3 {
  color: var(--accent-deep);
  letter-spacing: -.02em;
  line-height: 1.15;
}

.rc-part-head .rc-part-lead {
  flex-basis: 100%;
  max-width: none;   /* no width cap: the lead runs its natural width, breaks controlled by <br> */
  line-height: 2;
}

/* Every photograph fills its frame (the frame sets the shape and the radius). */
:is(.rc-member-photo, .rc-voice-thumb, .rc-culture-photo, .rc-case-photo, .rc-portrait,
  .rc-river figure, .rc-office-main) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----- 1-1 NUMBERS: 2 × 2 cards ---------------------------------------------------------- */
.rc-numbers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.rc-card {
  background: #fff;
  border-radius: var(--photo-radius);
  padding: clamp(24px, 3vw, 40px);   /* the page's card padding, as the culture cards use */
  display: grid;
  gap: 18px;
  align-content: start;
}

/* the employee-growth card leads, on navy */
.rc-card:first-child {
  background: var(--c-deep);
  color: #fff;
  --accent-deep: #fff;
  --text-muted: var(--c-on-blue-soft);
}

.rc-growth-summary { color: #fff; }

.rc-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.rc-figure {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--accent-deep);
  letter-spacing: -.03em;
  line-height: 1;
}

.rc-figure small {
  letter-spacing: 0;
  color: var(--text-muted);
}

.rc-card .rc-figure { flex-wrap: wrap; }

.rc-card-note {
  color: var(--text-muted);
  line-height: 1.95;   /* the page's copy line, so the cards do not read tighter */
}

/* the growth bars: six columns, the latest year in orange */
.rc-bars {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 18px);
  align-items: end;
  height: clamp(170px, 17vw, 240px);
  padding-top: 32px;
}

.rc-bar {
  position: relative;
  display: grid;
  align-items: end;
  height: 100%;
}

.rc-bar > i {
  display: block;
  height: calc(var(--v) * 1%);
  min-height: 3px;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--c-blue-mid), var(--c-blue));
  transform-origin: bottom;
  transform: scaleY(var(--grow, 0));
  transition: transform 1.1s var(--motion-ease);
}

.rc-bar.is-latest > i {
  background: linear-gradient(180deg, var(--c-orange-lt), var(--c-orange));
}

/* on the navy card the bars are lighter, and the latest year stays orange */
.rc-card:first-child .rc-bar > i {
  background: linear-gradient(180deg, #8DD8F7, var(--c-cyan));
}

.rc-card:first-child .rc-bar.is-latest > i {
  background: linear-gradient(180deg, #FFAA65, #FF6A13);
}

.rc-card:first-child .rc-bar.is-latest > b { color: #FFD0A6; }

.rc-bar > b {
  position: absolute;
  left: 50%;
  bottom: calc(var(--v) * 1% + 8px);
  translate: -50% 0;
  color: var(--accent-deep);
  opacity: var(--grow, 0);
  transition: opacity .6s ease .5s;
}

.rc-bar.is-latest > b {
  color: var(--c-orange);
}

.rc-bar > span {
  position: absolute;
  top: 100%;
  left: 50%;
  translate: -50% 10px;
  white-space: nowrap;
  color: var(--text-muted);
  line-height: 1.3;
  text-align: center;
}

.rc-bars + .rc-card-note {
  margin-top: 50px;
}

/* the pie: a conic gradient; the legend sits beside it */
.rc-donut-row {
  display: grid;
  grid-template-columns: minmax(100px, 150px) 1fr;
  align-items: center;
  gap: 24px;
}

.rc-donut {
  /* a solid pie, not a ring — the centre stays filled */
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--c-blue) 0 calc(var(--a) * 1%), var(--c-blue-mid) 0 calc((var(--a) + var(--b)) * 1%), #B7E4F6 0);
  transform: rotate(calc((1 - var(--grow, 0)) * -90deg)) scale(calc(.9 + var(--grow, 0) * .1));
  opacity: var(--grow, 0);
  transition: transform 1s var(--motion-ease), opacity .6s ease;
}

.rc-legend {
  display: grid;
  gap: 10px;
}

.rc-legend > div {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 12px;
}

.rc-legend i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--sw);
}

/* the gender split: one bar in two colours */
.rc-split {
  display: grid;
  gap: 12px;
}

.rc-split-bar {
  display: flex;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
}

.rc-split-bar > i {
  display: grid;
  place-items: center;
  flex: 0 0 calc(var(--v) * 1%);
  background: var(--c-blue);
  color: #fff;
  transform-origin: left;
  transform: scaleX(var(--grow, 0));
  transition: transform 1s var(--motion-ease);
}

.rc-split-bar > i + i {
  background: var(--c-cyan);
  color: #14386B;
  transform-origin: right;
}

.rc-split-legend {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

/* the age bands: four horizontal bars */
.rc-bands {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.rc-band {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 4px;
}

.rc-band > i {
  display: block;
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg, var(--c-blue), var(--c-blue-mid));
  width: calc(var(--v) * 1%);
  transform-origin: left;
  transform: scaleX(var(--grow, 0));
  transition: transform 1s var(--motion-ease);
}

.rc-band > b {
  text-align: left;
  color: var(--accent-deep);
}

.rc-band > span {
  color: var(--text-muted);
}

/* ----- 1-2 MEMBERS: the deck -------------------------------------------------------------
   A carousel that turns on its own clock (recruit.js): the featured member stands at full
   size in the middle, the neighbours wait small at either side, and the section is the
   height of what it shows. The track holds every card in one row (recruit.js triples it so
   it can be walked for ever) and is slid sideways with --deck-x. */
.rc-deck {
  position: relative;
  margin-top: clamp(-16px, -1vh, -8px);
}

.rc-deck-stage {
  display: grid;
  /* minmax(0,1fr): the track is wider than the screen on purpose, and without this the grid
     column would grow to its width. The clip lives on .rc-deck-window, NOT here — the head
     uses the reading column, which is wider than the panel's content box on a phone, and an
     overflow clip on the stage cut its first glyphs. */
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
}

/* the window around the track: it clips the row and dissolves whatever crosses its edges
   into the panel, so a neighbour never ends in a hard cut. The head stays outside it.
   Only where neighbours actually peek — on a phone the front card reaches the gutter and
   the fade would eat its own left edge. */
.rc-deck-window {
  overflow: hidden;
}

@media (min-width: 761px) {
  .rc-deck-window {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  }
}

.rc-deck-track {
  display: flex;
  gap: clamp(48px, 6vw, 112px);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  width: max-content;
  translate: var(--deck-x, 0px) 0;
  transition: translate .65s var(--motion-ease);
  will-change: translate;
}

.rc-member {
  /* one person at a time: the photograph beside the words, the neighbours peeking in at
     the edges. No card — the slide sits straight on the panel's photograph backdrop. */
  --w: min(76vw, 960px);
  flex: 0 0 var(--w);
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  color: inherit;
}

/* On the pinned deck the featured member stands at full size and the neighbours wait
   small and quiet at the edges (recruit.js marks the featured one .is-front). A waiting
   neighbour folds its words away and lets the photograph take the card's full width, so
   whatever sliver peeks past the stage edge is always picture, never cut-off text. Gated
   on .scroll-choreography so a page without its script shows everyone at full size. */
@media (min-width: 761px) {
  .scroll-choreography .rc-member {
    scale: .55;
    opacity: .55;
    transition: scale .65s var(--motion-ease), opacity .65s ease,
      grid-template-columns .65s var(--motion-ease), gap .65s var(--motion-ease);
  }

  .scroll-choreography .rc-member:not(.is-front) {
    grid-template-columns: minmax(0, 2fr) minmax(0, 0fr);
    gap: 0;
  }

  .scroll-choreography .rc-member:not(.is-front) .rc-member-copy {
    opacity: 0;
    max-height: 0;   /* folded into a zero-width column its words stack ~750px tall and set the
                        row's height, pushing the buttons far below the photograph */
    transition: opacity .3s ease;
  }

  .scroll-choreography .rc-member.is-front {
    scale: 1;
    opacity: 1;
  }
}

.rc-member-photo {
  /* a set height rather than a ratio: the box keeps it while its width morphs between the
     front card's column and a waiting card's full width */
  height: min(58svh, 540px);
  width: 100%;
  border-radius: var(--photo-radius);
  overflow: hidden;
  background: var(--c-surface);
  rotate: -2deg;
}

.rc-member-copy {
  display: grid;
  gap: clamp(14px, 2.4vh, 24px);
  justify-items: start;
  min-width: 0;
  overflow: hidden;   /* the words clip cleanly while the column folds shut */
  transition: opacity .4s ease .3s;   /* back in only once the column has mostly reopened */
}

.rc-member-meta {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-muted);
}

.rc-member h4 {
  color: var(--accent-deep);
  line-height: 1.5;
  letter-spacing: -.01em;
}

.rc-member .btn {
  margin-top: 6px;
}

/* the ghost button is drawn for navy; before the photograph arrives it borrows the ink */
.rc-member .btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--accent-deep);
}

/* On the orange ground the deck's ink turns white (see the People backdrops, below). Without
   JS the flag never comes, the ground stays away, and the ink above holds. */

/* the two buttons that turn the deck by hand */
.rc-deck-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: clamp(16px, 2.5vh, 32px);
}

.rc-deck-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: var(--accent-deep);
  cursor: pointer;
  transition: background .3s ease, color .3s ease, translate .3s var(--motion-ease);
}

.rc-deck-btn:hover {
  background: var(--accent-deep);
  color: #fff;
}

.rc-deck-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* ----- VOICES: the marquee and the full-bleed band ----------------------------------------------------------------
   A lane of moving pictures is not reading matter, so it does not sit in the reading column:
   it runs the whole width of the screen, out of whatever inset panel it lives in, pulled to
   the viewport's left edge and given the viewport's width. 100vw ignores the scrollbar, so
   the page clips sideways overflow once, on the body. The clip belongs HERE, on the band —
   putting it on the section instead also cut the section's own heading, which starts further
   left than the section's content box does (the reading column reaches past the panel inset). */
.rc-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
}

.rc-voices {
  /* Voices used to be pulled up by a negative margin, to close the stretch of empty air the
     pinned deck left below its last slide. The deck is no longer pinned — it is the height of
     what it shows — so that air is gone and the pull only drove Voices into the slides. It
     keeps the panel's own section rhythm instead, the same one every topic above it uses. */
  padding-block: clamp(64px, 9vh, 120px) clamp(72px, 10vh, 130px);
}

.rc-voices-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(16px, 2.5vh, 28px);   /* the same gap under the title block as every topic */
}

.rc-voices-head .rc-part-head {
  margin-bottom: 0;   /* the row carries the gap */
}

.rc-voices-actions {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

/* The brand mark hugs its label; the link's own 30px gap keeps the arrow apart. Same inline
   SVGs as the TOP page's official-channel row, reused as-is. */
.rc-voice-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.channel-icon {
  width: 21px;
  height: 21px;
  flex: none;
}

/* ten cards in the one band: twice the distance of the old five, so twice the clock,
   and the pace over the ground stays what it was */
.rc-voices .rc-marquee {
  --duration: 120s;
}

.rc-marquee {
  --duration: 60s;
  display: flex;
  gap: 20px;
  width: max-content;
  padding-block: 10px;
  animation: rc-marquee var(--duration) linear infinite;
}

.rc-marquee:hover,
.motion-paused .rc-marquee,
.motion-reduced .rc-marquee {
  animation-play-state: paused;
}

.rc-voice {
  --w: clamp(260px, 24vw, 340px);
  flex: 0 0 var(--w);
  display: block;
  color: inherit;
}

.rc-voice-thumb {
  aspect-ratio: 16 / 10;
  border-radius: var(--photo-radius);
  overflow: hidden;
  background: var(--c-surface);
}

/* The caption rides under each thumbnail in the band. The band flows over the dark navy
   members backdrop, so the text is light — the same ink the rest of that panel uses — rather
   than the ink that sank into the blue before. */
.rc-voice-cap {
  display: grid;
  gap: 4px;
  margin-top: 12px;
}

.rc-voice-meta {
  color: var(--c-light-dim, rgba(255, 255, 255, .72));
  letter-spacing: .06em;
}

.rc-voice-title {
  color: #fff;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@keyframes rc-marquee {
  to { translate: -50% 0; }
}

/* ----- 1-3 VALUES: three columns ----------------------------------------------------------
   A small picture, the line and its copy, side by side, top-aligned. The picture is an aside
   here, not the subject, so it is kept to a modest band. */
.rc-values-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));   /* the three side by side */
  gap: clamp(20px, 2.5vw, 32px);
}

.rc-value {
  /* a white card, kept short: the art beside the title, and the copy under both at the
     card's full width */
  display: grid;
  grid-template-columns: clamp(72px, 26%, 120px) minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: clamp(14px, 1.4vw, 22px);
  align-items: center;   /* the title sits level with the middle of the picture */
  background: #fff;
  border-radius: 20px;
  padding: clamp(16px, 1.6vw, 26px);
  box-shadow: 0 12px 34px rgb(10 39 94 / .10);
}

.rc-value-art {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0;
}

.rc-value-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* the body's title and copy go into the card's own grid */
.rc-value-body { display: contents; }

.rc-value-art { grid-column: 1; grid-row: 1; }

.rc-value h4 {
  grid-column: 2;
  grid-row: 1;
  color: var(--accent-deep);
  letter-spacing: -.02em;
  line-height: 1.5;
  text-wrap: balance;   /* a short title breaks evenly ("自己研鑽が／できる"), never one stray character */
}

.rc-value p {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: start;
  margin-top: 14px;
  line-height: 1.95;
}

@media (max-width: 900px) {
  .rc-values-row { grid-template-columns: 1fr; }
}

/* ----- 1-4 OFFICE: a main photo on the left, a 2×2 of smaller ones on the right ---------- */
.rc-office-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: stretch;   /* the main column stretches to the height the 2×2 sets */
}

.rc-office-main {
  position: relative;
  isolation: isolate;   /* keeps the light's blend inside the figure */
  margin: 0;
  border-radius: calc(var(--photo-radius) + 8px);
  overflow: hidden;
  background: var(--c-surface);
}

.rc-office-main img {
  /* laid over the figure, so a tall photo never sets the row's height: the 2×2 does */
  position: absolute;
  inset: 0;
  object-position: center 10%;   /* a little sky over the crown, the tower running down from it */
  filter: brightness(.95) saturate(.88) contrast(1.02);
}

/* The coloured light the TOP lays over its photographs (css/recruit.css, #recruit
   .company-gallery): two lamps — warm at the lower left, violet-blue at the upper right —
   blended in `screen`, so they only ever lift the picture, never darken it. The drift is
   the shared `duo-light` from css/motion.css; the layer is oversized so the turn in that
   keyframe never brings an edge into view. The isolate keeps the blend inside the figure.
   Screen only ever adds, and it adds least where the picture is already bright: on this
   aerial shot — pale sky, pale towers — the light at the TOP's full strength washed sky and
   towers to the same white. Darkening the picture to make room for the light worked, but it
   read as a dim photograph, which is the opposite of what light should do. So the picture
   stays bright and the light is kept low: it tints the mid-tones of the towers and leaves
   the sky alone, which is what keeps the whole frame light. */
.rc-office-main::before {
  content: '';
  position: absolute;
  inset: -20%;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: .8;
  background:
    radial-gradient(46% 52% at 18% 82%, rgba(255, 150, 40, 1), rgba(230, 81, 0, .7) 42%, transparent 74%),
    radial-gradient(44% 50% at 84% 16%, rgba(120, 85, 240, 1), rgba(14, 47, 142, .6) 44%, transparent 74%),
    radial-gradient(32% 38% at 60% 58%, rgba(255, 179, 0, .55), transparent 70%);
  animation: duo-light 7s ease-in-out infinite alternate;
}

.motion-paused .rc-office-main::before { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .rc-office-main::before { animation: none; }
}

/* the address sits on its own line below the gallery: label + address on the left, the map
   link pushed to the right, the way the wireframe lays it out */
.rc-office-address {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 40px;
  flex-wrap: wrap;
  margin-top: clamp(20px, 2.4vw, 36px);
}

.rc-office-addr {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  min-width: 0;
}

.rc-office-address .text-link {
  color: var(--accent-deep);
  flex: none;
}

.rc-office-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.rc-office-tiles > figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--photo-radius);
  overflow: hidden;
  background: var(--c-surface);
  display: grid;
  place-items: center;
  padding: 16px 18px;
  text-align: center;
  color: var(--text-muted);
}

.rc-office-tiles > figure img {
  position: absolute;
}

.rc-office-tiles > figure.has-photo {
  position: relative;
  place-items: end start;   /* the room's name sits in the lower left, clear of what the photo shows */
  text-align: left;
  color: #fff;
}

/* a soft shade along the bottom so the name reads on any photo */
.rc-office-tiles > figure.has-photo::after {
  content: '';
  position: absolute;
  inset: 60% 0 0;
  background: linear-gradient(to top, rgb(5 12 40 / .38), transparent);
  pointer-events: none;
}

.rc-office-tiles > figure.has-photo img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rc-office-tiles > figure.has-photo figcaption {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 12px rgb(0 0 0 / .4);
}

/* ----- 1-5 SYSTEM: three chapters --------------------------------------------------------
   The chapters swap rather than scroll past: each one pins in the middle of the viewport
   (recruit.js sets --chapter-stick: centred when the chapter fits, bottom flush when it is
   taller, so its foot stays reachable) and the next chapter rides over it carrying the field's
   own blue, so the pinned one reads as replaced. The space between chapters is each card's
   own margin, not the grid's gap. */
.rc-chapters {
  display: grid;
}

.rc-chapter {
  position: sticky;
  top: var(--chapter-stick, 0px);
  display: grid;
  /* a narrower side column and a tighter corridor — the old 40% + 72px gap left a hole
     between the chapter text and its diagram */
  grid-template-columns: minmax(260px, 32%) minmax(0, 1fr);
  gap: clamp(24px, 2.6vw, 44px);
  align-items: start;
}

.rc-chapter + .rc-chapter {
  margin-top: clamp(48px, 7vh, 88px);
  /* no divider border here: with the swap choreography a chapter covers the one before it,
     so a top border never reads as a divider — only as a stray white line sweeping the blue */
  padding-block: clamp(40px, 6vh, 72px);
  background: var(--c-blue);   /* the .rc-panel-blue field itself, so the cover is seamless */
  min-height: 100svh;   /* a covering card must blanket the whole viewport when it pins, or
                           the pinned chapter's foot stays visible under a shorter one */
  align-content: center;   /* its content sits at the card's vertical middle, where the first
                              chapter is pinned too, so the three swap on one centre line */
}

/* nothing replaces the last chapter, so it only rides over the stack and scrolls on normally
   (relative, not static: it must still paint above the pinned chapters beneath it) */
.rc-chapter:last-child {
  position: relative;
  top: auto;
}

/* chapter 03: the heading block on top, the curriculum table full width below it */
.rc-chapter.is-wide {
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vh, 40px);
}

.rc-chapter-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
}

.rc-chapter.is-wide .rc-chapter-side {
  position: static;
}

/* The chapter numerals sit straight on the blue panel, so they take the theme rather than
   the orange — the accent would not hold against that field. */
.rc-chapter-no {
  color: var(--text-muted);
  letter-spacing: -.03em;
  line-height: 1;
}

.rc-chapter-side h4 {
  color: var(--accent-deep);
  line-height: 1.35;
  letter-spacing: -.02em;
}

.rc-chapter-side > p {
  line-height: 1.9;
  max-width: 34ch;
}

.rc-chapter.is-wide .rc-chapter-side > p {
  max-width: 60ch;
}

/* Projects follows the Fields block in the same section; give its heading the page's usual
   gap between major blocks instead of butting up under the tag list. */
#work .rc-areas + .rc-part-head {
  margin-top: clamp(56px, 8vh, 110px);
}

.rc-chapter-body {
  display: grid;
  gap: 24px;
}

.rc-chapter .rc-statement {
  color: var(--accent-deep);
  line-height: 1.8;
  letter-spacing: -.01em;
}

/* 02 — the big figure, the four chips, the two rows */
.rc-eval {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

/* the WF arrangement: the figure block on the left, the four points in a 2×2 beside it */
.rc-eval-top {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(250px, 34%) minmax(0, 1fr);
  gap: clamp(20px, 2vw, 32px);
  align-items: stretch;
}

.rc-eval-figure {
  display: grid;
  gap: 10px;
  justify-items: start;
  align-content: center;
  padding: clamp(24px, 2.5vw, 40px);
  border-radius: var(--photo-radius);
  background: var(--c-orange);
  color: #fff;
}

.rc-eval-figure .rc-figure {
  color: #fff;
  white-space: nowrap;   /* 「10%超」 stays one line inside the narrow box */
}

.rc-eval-figure .rc-figure small,
.rc-eval-figure > small {
  color: rgb(255 255 255 / .8);
}

.rc-eval-badge {
  padding: 5px 16px;
  border: 1px solid rgb(255 255 255 / .7);
  border-radius: 999px;
  line-height: 1.4;
}

.rc-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* On the blue Programs panel the chips and the two rows are outlined, not filled: a white
   hairline on the blue, with the text inverted to white. */
.rc-chip,
.rc-eval-row {
  display: grid;
  gap: 6px;
  border-radius: var(--photo-radius);
  border: 1px solid var(--c-on-blue-hair);
}

.rc-chip span,
.rc-eval-row span { color: var(--c-on-blue-soft); }

.rc-chip { padding: 18px 20px; }
.rc-chip span { line-height: 1.6; }

.rc-eval-row { padding: 22px 24px; }
.rc-eval-row span { line-height: 1.7; }

/* 03 — the curriculum columns and the two training cards */
/* The curriculum table (WF): three graded header bands — Logical thinking (light), Consulting
   work (grey), IT／Others (black) — over four body cells, with a chevron marking the step from
   one group to the next. A white table laid on the blue Programs panel. */
.rc-curriculum-scroll {
  overflow-x: auto;        /* on a narrow screen the table scrolls sideways in its own box */
}

/* Twelve tracks: the four body cells take three each, and the three header bands take 5 / 4 / 3,
   so the bands break at their own places (Logical thinking reaches into the second cell) rather
   than on the cells' edges — as in the reference table. */
.rc-curriculum {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  background: #fff;
  border: 1px solid #ffd9b8;
  border-radius: 8px;
  overflow: hidden;
}

/* the header bands grade in the brand orange: a pale tint, a mid tone, then the full colour.
   The tints stay on the brand hue at full chroma — a greyer mix reads brown, not orange. */
.rc-curriculum .rc-curriculum-band {
  padding: 14px 18px;
  text-align: center;
  color: #c24e00;
  border-bottom: 1px solid #ffd9b8;
}

.rc-curriculum .rc-curriculum-band--1 { grid-column: span 5; background: #fff2e5; }
.rc-curriculum .rc-curriculum-band--2 { grid-column: span 4; background: #ffc077; }
.rc-curriculum .rc-curriculum-band--3 { grid-column: span 3; background: var(--c-orange); color: #fff; }

.rc-curriculum-cell {
  position: relative;
  grid-column: span 3;
  margin: 0;
  padding: clamp(20px, 2vw, 28px) clamp(18px, 1.8vw, 24px);
  list-style: none;
  display: grid;
  align-content: start;   /* every cell packs its items from the top, so the bullets line up across cells */
  gap: 8px;
  color: #16213a;
  border-left: 1px solid #ffe6cc;
}

.rc-curriculum-cell:first-of-type { border-left: 0; }

/* each skill gets a 中黒; wrapped lines hang under the text, not the dot */
.rc-curriculum-cell li {
  padding-left: 1em;
  text-indent: -1em;
}

.rc-curriculum-cell li::before { content: '・'; }

/* the chevron sits on the divider, marking the progression between groups */
.rc-curriculum-cell.has-step::before {
  content: '›';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ffd9b8;
  color: var(--c-orange);
  font-size: 1.25em;   /* the t-icon step: a glyph a step above the text it sits in */
  line-height: 1;
}

.rc-training {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.rc-training > article {
  /* same treatment as the chips above: no white card, a white hairline with the type
     reversed out; rows packed from the top so the cards stay short */
  display: grid;
  gap: 12px;
  align-content: start;
  padding: clamp(18px, 2vw, 28px) clamp(20px, 2.4vw, 32px);
  border: 1px solid var(--c-on-blue-hair);
  border-radius: var(--photo-radius);
}

.rc-training .rc-training-kind {
  color: #fff;
  letter-spacing: .06em;
}

.rc-training h5 {
  margin-block: 0;   /* the heading's default margins doubled every row gap */
  color: #fff;
  line-height: 1.5;
}

.rc-training p {
  color: var(--c-on-blue-soft);
  line-height: 1.9;
}


/* ----- 1-6 CULTURE: four cards, then the river of photographs --------------------------- */
/* Culture's photograph is a panel-level backdrop that crossfades in when the section is
   reached, the same mechanism as Members/Office (see .rc-panel-culture). The heading and the
   flat cards sit white on top. */
#culture .rc-part-head h3,
#culture .rc-part-head p {
  color: #fff;
}

.rc-culture-grid {
  /* the grid runs the full content width; the hairline borders carry the card shape, so the
     readable line length comes from each card's own box, not a capped grid */
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
}

.rc-culture-card {
  /* the reference card: a white ground on the orange field, orange ink, and the photograph
     filling the right half for the card's full height */
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(180px, 46%, 360px);
  grid-template-rows: auto 1fr;
  gap: clamp(14px, 1.8vh, 22px) clamp(20px, 2.4vw, 36px);
  align-items: start;
  padding: clamp(20px, 2.2vw, 32px);
  border-radius: var(--photo-radius);
  background: #fff;
}

/* the old heading row dissolves: the title, body and photo sit on the card's own grid */
.rc-culture-top {
  display: contents;
}

.rc-culture-photo {
  grid-column: 2;
  grid-row: 1 / 3;
  height: 100%;
  min-height: 220px;
  border-radius: var(--photo-radius);
  overflow: hidden;
  background: #f8f1e9;
}

.rc-culture-card h4 {
  grid-column: 1;
  margin-top: clamp(8px, 2vh, 28px);
  color: var(--c-orange);
}

.rc-culture-card p {
  grid-column: 1;
  color: var(--c-ink);   /* the regular reading colour — only the title keeps the orange */
  line-height: 1.95;
}

.rc-culture-card .text-link {
  grid-column: 1;
  color: var(--c-orange);
}

/* Up to tablet width the grid stays 2×2, so each card is narrow: it stacks inside —
   title, photograph, body — because the two-column split leaves no line length. */
@media (max-width: 900px) {
  .rc-culture-card {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .rc-culture-photo {
    grid-column: auto;
    grid-row: auto;
    height: clamp(170px, 24vw, 230px);
    min-height: 0;
  }

  .rc-culture-card h4 {
    margin-top: 0;
  }
}

/* the phone: the grid itself goes single column, the photo band a little taller again */
@media (max-width: 600px) {
  .rc-culture-grid {
    grid-template-columns: 1fr;
  }

  .rc-culture-photo {
    height: clamp(170px, 46vw, 230px);
  }
}

.rc-river {
  margin-top: clamp(40px, 6vh, 72px);
}

.rc-river .rc-marquee {
  --duration: 130s;   /* scales with the photo width, so the pace over the ground stays the same */
  gap: 20px;
}

/* about four fifths of the earlier size on PC (2026-10-29 review) */
.rc-river figure {
  --w: clamp(300px, 36vw, 560px);
  flex: 0 0 var(--w);
  position: relative;
  aspect-ratio: 56 / 37;
  border-radius: var(--photo-radius);
  overflow: hidden;
  background: var(--c-surface);
}

.rc-river figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgb(248 251 255 / .88);
  color: var(--accent-deep);
}

/* the statement under the photo river: the serif headline role, centred on the orange field.
   White only while the orange ground is up — at the panel's foot the ground fades to the pale
   surface and the words follow it to orange, or they would disappear. */
.rc-river-note {
  margin-top: clamp(32px, 5vh, 56px);
  text-align: center;
  color: var(--c-orange);
  line-height: 1.7;
  transition: color .6s ease;
}

#people.is-culture-background .rc-river-note {
  color: #fff;
}

/* ----- 1-7 BENEFITS: nine tiles ----------------------------------------------------------- */
.rc-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px) clamp(32px, 4vw, 72px);
}

/* No cards: an icon, then the item beside it, straight on the blue. */
.rc-benefit {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
  align-content: start;   /* a tile shorter than its neighbour keeps its rows packed to the top */
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.rc-benefit-icon {
  width: clamp(40px, 4vw, 56px);
  height: auto;
  aspect-ratio: 1;
  color: var(--accent);   /* the symbols draw with fill="currentColor" (client's icon set) */
}

.rc-benefit-copy {
  display: grid;
  gap: 8px;
}

/* Tablet and phone keep two columns (set at 900px above); on a phone each tile stacks the
   drawing over its text, because a half-width tile has no room for them side by side. */
@media (max-width: 760px) {
  /* Nine tiles in a half-width grid read as one block of text, so each row gets a hairline
     (the page's own white rule) and the two columns a vertical one. The column gap moves into the
     tiles' padding so the lines run unbroken, through an empty last cell too. */
  .rc-benefits-grid { gap: 0; }
  .rc-benefit {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-block: 24px;
    border-top: 1px solid var(--rule);
  }
  .rc-benefit:nth-child(odd)  { padding-right: 12px; }
  .rc-benefit:nth-child(even) {
    padding-left: 12px;
    border-left: 1px solid var(--rule);   /* the column divider, drawn once on the right-hand tiles */
  }
  /* An odd last tile keeps the same one-column width as the others: it spans the row only so the
     hairlines run across, and the padding holds its text to the left half. */
  .rc-benefit:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    padding-right: calc(50% + 12px);
    /* the column divider through the empty cell, and the closing line under this tile only */
    background:
      linear-gradient(var(--rule), var(--rule)) 50% 0 / 1px 100% no-repeat,
      linear-gradient(var(--rule), var(--rule)) 0 100% / 50% 1px no-repeat;
  }
  /* the closing line, when the last row is full */
  .rc-benefit:last-child:nth-child(even),
  .rc-benefit:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--rule); }
}
/* ----- 02 WORK: tags and three cases ----------------------------------------------------- */
.rc-areas {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.rc-areas > div {
  display: grid;
  grid-template-columns: minmax(180px, 24%) 1fr;
  gap: 16px 32px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

.rc-areas dt {
  display: grid;
  gap: 2px;
  color: var(--accent-deep);
}

.rc-areas dt span {
  color: var(--text-muted);
  letter-spacing: .06em;
}

.rc-areas dd {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rc-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--rule);
  color: var(--text);
  line-height: 1.3;
}

.rc-cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(40px, 6vh, 72px);
}

.rc-case {
  /* the photo is a small square beside the tags and the title; the bullet list runs the
     card's full width below (the full-width 3:2 picture on top made the cards tall and
     picture-heavy) */
  display: grid;
  grid-template-columns: clamp(84px, 24%, 120px) minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  gap: 10px clamp(14px, 1.5vw, 20px);
  align-items: start;
  padding: clamp(18px, 1.8vw, 26px);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--photo-radius);
  overflow: hidden;
}

.rc-case-photo {
  grid-row: 1 / 3;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: calc(var(--photo-radius) - 8px);
  background: var(--c-surface);
}

/* the copy wrapper dissolves so the tags, the title and the list place on the card's grid */
.rc-case-copy {
  display: contents;
}

.rc-case-tags,
.rc-case h4 {
  grid-column: 2;
}

.rc-case ul {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.rc-case-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-muted);
}

.rc-case h4 {
  color: var(--accent-deep);
  line-height: 1.6;
}

.rc-case ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  line-height: 1.8;
}

.rc-case li {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 10px;
  align-items: baseline;
}

.rc-case li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-orange);
  translate: 0 -1px;
}

/* Cards side by side share their rows. Where a row of cards reads across (desktop, 901px up),
   each card takes the parent grid's rows as a subgrid, so the title, heading and body of one card
   start level with the same parts of its neighbours however many lines a title wraps to. Below
   that the cards stack one under another and each keeps its own rows. */
@media (min-width: 901px) {
  /* Values: the picture and the title, then the copy */
  .rc-value {
    grid-row: span 2;
    grid-template-rows: subgrid;
    row-gap: 0;
  }

  /* Projects: tags, title, bullets */
  .rc-case {
    grid-row: span 3;
    grid-template-rows: subgrid;
  }

  /* Training and the coaching/MVP pair: kind, heading, copy */
  .rc-training > article {
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 12px;
  }
}

.rc-section-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: clamp(32px, 5vh, 56px);
}

/* ----- 03 JOBS: full-width linked rows, matching the FAQ's ruled layout ------------------- */
.rc-jobs-row {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid rgb(255 255 255 / .35);
}

/* The two families of posts, each list under its name. */
.rc-jobs-group {
  margin: 0 0 14px;
  color: #fff;
  letter-spacing: .08em;
  opacity: .9;
}

.rc-jobs-row + .rc-jobs-group {
  margin-top: 56px;
}

.rc-job {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: clamp(24px, 3vw, 40px) 8px;
  border-bottom: 1px solid rgb(255 255 255 / .35);
  color: #fff;
  transition: background-color .35s;
}

.rc-job:hover { background: rgb(255 255 255 / .08); }

.rc-job:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

.rc-job h4 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 28px;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.rc-job .rc-job-jp { color: rgb(255 255 255 / .8); }

.rc-job .arrow {
  display: grid;
  place-items: center;
  justify-self: end;
  width: 40px;
  height: 40px;
  border: 1px solid rgb(255 255 255 / .4);
  border-radius: 50%;
}

@media (max-width: 600px) {
  .rc-job h4 { flex-direction: column; }
}

/* ----- 04 MESSAGE: portrait and letter --------------------------------------------------- */
.rc-message-grid {
  /* the wireframe arrangement: the portrait on the left, the letter beside it — the pair
     centred on the panel rather than pinned to the left edge */
  display: grid;
  grid-template-columns: clamp(300px, 34%, 450px) minmax(0, 720px);
  justify-content: center;
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}

.rc-portrait {
  width: 100%;   /* the column sets the size — 1.4× the old centred 320px cap */
  border-radius: calc(var(--photo-radius) + 8px);
  overflow: hidden;
  aspect-ratio: 876 / 1050;
  background: var(--c-surface);
}

.rc-letter {
  display: grid;
  gap: 22px;
  justify-items: start;
  text-align: left;
  /* one measure for the whole letter, so the serif lead and the body paragraphs below it line
     up to the same width (a per-paragraph 48ch made the larger lead wider than the body). */
  max-width: 720px;
}

.rc-letter > p {
  line-height: 2.15;
  width: 100%;
}

/* 明朝の見出しと結びは、小見出し（t-title）より 1 段上のサイズ（t-subhead）で置く
   （2026-10-29 レビュー、PC・スマホとも）。 */
.rc-letter .rc-letter-lead,
.rc-letter .rc-letter-close {
  font-size: var(--t-subhead);
}

.rc-letter-lead {
  line-height: 1.75;
}

/* The letter's last line, its invitation: the headlines' size, in the brand orange. */
.rc-letter-close {
  line-height: 1.75;
  color: var(--c-orange);
}

.rc-signature {
  /* the wireframe signs off on the right: title and name on one baseline */
  display: flex;
  align-items: baseline;
  gap: 12px;
  justify-self: end;
  margin-top: 8px;
  color: var(--accent-deep);
}

.rc-signature span {
  color: var(--text-muted);
}

/* With the company name in front, the line can outrun a phone: the name drops under the
   title as a whole, never split. */
.rc-signature {
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 2px;
}

.rc-signature b {
  white-space: nowrap;
}

.rc-letter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-self: end;
  margin-top: 8px;
  color: var(--accent-deep);
}

/* ----- 05 ENTRY: the blue returns -------------------------------------------------------- */
.rc-entry {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* the closing call fills the screen: on arrival the whole viewport is this one section */
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding-block: clamp(96px, 14vh, 180px);
}

.rc-entry-run {
  margin-bottom: clamp(32px, 5vh, 56px);
  overflow: hidden;
  white-space: nowrap;
  /* the same ghost the Hero lays its chapter lockup in */
  color: rgb(255 255 255 / .12);
}

.rc-entry-run .rc-marquee {
  --duration: 36s;
  gap: 0;
  padding: 0;
}

.rc-entry-run .rc-marquee > span {
  padding-right: .5em;
  line-height: 1;
  letter-spacing: -.03em;
}

.rc-entry-copy {
  display: grid;
  gap: 24px;
  justify-items: center;
  text-align: center;
}

.rc-entry-copy h2 {
  line-height: 1.3;
  letter-spacing: -.02em;
  max-width: 20em;
  /* A written-down exception to the type roles: on a phone the statement's first line (eleven
     characters) has to fit the column — (100vw − the two page gutters) ÷ 11 — or "き放ち" and
     "を" break off onto lines of their own. Above ~500px the role's own size is the smaller. */
  font-size: min(var(--t-statement), calc(8vw - 2px));
}

/* when the second line no longer fits, it breaks between these phrases, never mid-word */
.rc-phrase {
  display: inline-block;
}

.rc-entry-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

/* ----- 06 FAQ: open and close ------------------------------------------------------------ */
.rc-faq-list {
  display: grid;
  border-top: 1px solid var(--rule);
}

.rc-faq-list details {
  border-bottom: 1px solid var(--rule);
}

.rc-faq-list summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 2.4em 1fr 32px;
  gap: 16px;
  align-items: center;
  padding: 26px 0;
  color: var(--accent-deep);
}

.rc-faq-list summary::-webkit-details-marker {
  display: none;
}

.rc-faq-list summary > span:first-child {
  color: var(--c-orange);
}

.rc-faq-list summary > i {
  position: relative;
  width: 32px;
  height: 32px;
  border: 1px solid var(--rule);
  border-radius: 50%;
}

.rc-faq-list summary > i::before,
.rc-faq-list summary > i::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--c-deep);
  translate: -50% -50%;
  transition: rotate .3s var(--motion-ease);
}

.rc-faq-list summary > i::after {
  rotate: 90deg;
}

.rc-faq-list details[open] summary > i::after {
  rotate: 0deg;
}

.rc-faq-list details > div {
  display: grid;
  grid-template-columns: 2.4em 1fr;
  gap: 16px;
  padding: 0 0 28px;
}

.rc-faq-list details > div > span:first-child {
  color: var(--text-muted);
}

.rc-faq-list details > div p {
  max-width: 62ch;
  line-height: 2;
}

/* ----- footer band ----------------------------------------------------------------------- */
.rc-foot {
  background: var(--c-deep);
}

/* the floating Entry exists for phones only (see the phone block below) */
.rc-entry-float {
  display: none;
}

/* ----- the pause control, as on the TOP ------------------------------------------------- */
.rc-pause {
  position: fixed;
  left: 18px;    /* the footer's back-to-top sits bottom right */
  bottom: 18px;
  z-index: 45;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  background: rgb(255 255 255 / .9);
  color: var(--accent-deep);
}

/* Phone: the panels run edge to edge, so there is no moving field beside the content to pause. */
@media (max-width: 760px) {
  .rc-pause { display: none; }
}

/* ----- entrance: the role each unit plays in the scroll (see motion.css) ---------------- */
.recruit [data-motion="rise"] {
  opacity: var(--enter);
  transform: translate3d(0, calc((1 - var(--enter)) * 28px), 0);
  transition: opacity .12s linear, transform .16s var(--motion-ease);
}

.recruit .motion-paused [data-motion="rise"],
.recruit.motion-reduced [data-motion="rise"] {
  opacity: 1;
  transform: none;
}

/* Values: the three cards flip up one after another — each next card joins once the one
   before it is partway in. A stagger on the shared scroll progress, not a separate timer. */
.recruit .rc-values-row [data-motion="rise"] {
  --stagger: 0;
  --enter-s: clamp(0, calc((var(--enter, 1) - var(--stagger)) / (1 - var(--stagger))), 1);
  opacity: var(--enter-s);
  transform: translate3d(0, calc((1 - var(--enter-s)) * 28px), 0);
}

.recruit .rc-values-row [data-motion="rise"]:nth-child(2) { --stagger: .28; }
.recruit .rc-values-row [data-motion="rise"]:nth-child(3) { --stagger: .56; }

.recruit .motion-paused .rc-values-row [data-motion="rise"],
.recruit.motion-reduced .rc-values-row [data-motion="rise"] {
  opacity: 1;
  transform: none;
}

/* ----- phones and narrow screens --------------------------------------------------------- */
@media (max-width: 1100px) {
  .rc-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  /* .rc-culture-grid is NOT in this list: on a tablet it keeps its 2×2 (the cards stack
     inside instead, below); it goes single-column only with the phone block at 600px */
  .rc-numbers-grid,
  .rc-training,
  .rc-eval,
  .rc-eval-top {
    grid-template-columns: 1fr;
  }

  .rc-eval-figure,
  .rc-chips {
    grid-column: auto;
  }

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

  .rc-curriculum {
    min-width: 640px;   /* keep the table's shape; the wrapper scrolls it on small screens */
  }

  .rc-chapter {
    grid-template-columns: 1fr;
  }

  .rc-chapter-side {
    position: static;
  }

  /* one column: the chapter's text runs the full width instead of keeping its side-column measure */
  .rc-chapter-side > p,
  .rc-chapter.is-wide .rc-chapter-side > p {
    max-width: none;
  }

  /* the gallery stacks: the main photo on top, the 2×2 below it */
  .rc-office-gallery {
    grid-template-columns: 1fr;
  }

  .rc-office-main {
    aspect-ratio: 16 / 9;
  }

  .rc-message-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .rc-portrait {
    max-width: 280px;
  }

}

@media (max-width: 760px) {
  /* the Entry door floats within the thumb's reach as its own element */
  .rc-entry-float {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 45;
    display: inline-flex;
    box-shadow: 0 12px 30px -10px rgb(14 47 142 / .5);
  }

  /* the desktop line breaks in the Hero message would leave single words on a line */
  .rc-hero-message br,
  .pc-only {
    display: none;
  }

  .rc-member {
    --w: 84vw;
    grid-template-columns: 1fr;
  }

  .rc-member-photo {
    height: 42svh;
  }

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

  .rc-cases {
    grid-template-columns: 1fr;
  }

  .rc-areas > div {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .rc-faq-list summary {
    grid-template-columns: 2em 1fr 28px;
  }

  .rc-faq-list details > div {
    grid-template-columns: 2em 1fr;
  }
}

/* ----- the interview dialogs ----------------------------------------------------------- */
.rc-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: calc(var(--photo-radius) + 8px);
  background: #fff;
  color: var(--text);
  box-shadow: 0 40px 80px -30px rgb(5 8 28 / .5);
}

.rc-dialog::backdrop {
  background: rgb(5 8 28 / .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.rc-dialog-inner {
  position: relative;
  display: grid;
  gap: 28px;
  padding: clamp(28px, 4vw, 48px);
}

.rc-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--rule);
  color: var(--accent-deep);
  background: #fff;
}

/* The member's photo, whole and landscape, over their name. The close button floats on its
   corner. The name in the heading says who it is, so the image itself is unlabelled. */
.rc-dialog-photo {
  margin: 0 0 -4px;
  aspect-ratio: 3 / 2;
  border-radius: var(--photo-radius);
  overflow: hidden;
  background: var(--c-surface);
}

.rc-dialog-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rc-dialog-close {
  z-index: 1;
}

.rc-dialog-head {
  display: grid;
  gap: 8px;
}

.rc-dialog-head > span {
  color: var(--c-orange);
  letter-spacing: .12em;
}

.rc-dialog-head h2 {
  display: flex;
  align-items: baseline;
  gap: 16px;
  color: var(--accent-deep);
}

.rc-dialog-head h2 small {
  color: var(--text-muted);
}

/* the interview's own headline, under the name */
.rc-dialog-lead {
  color: var(--accent-deep);
  line-height: 1.6;
}

.rc-qa {
  margin: 0;
  display: grid;
  gap: 8px 0;
}

.rc-qa dt {
  color: var(--accent-deep);
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.rc-qa dd {
  margin: 0 0 18px;
  line-height: 2;
}

.rc-dialog-source {
  color: var(--text-muted);
  line-height: 1.8;
}

.rc-dialog-source .text-link {
  gap: 6px;
  color: var(--accent-deep);
}




/* ===== the page frame ====================================================================
   People and Message float as inset panels on the field, Work and the FAQ run the full width
   to the footer, and Entry rests directly on the field. */
#people,
#message {
  --panel-inset: clamp(16px, 3.2vw, 64px);
  position: relative;
  isolation: isolate;
  width: calc(100% - 2 * var(--panel-inset));
  margin-inline: auto;
  border-radius: clamp(24px, 3vw, 48px);
  background: var(--c-panel);
}

/* how far each panel has already moved in; the layout block at the top gives it back */
#people {
  --panel-give: calc(var(--panel-inset) * 2);   /* inset + its own padding */
  --people-card-gap: clamp(24px, 3vw, 48px);
  padding-inline: var(--panel-inset);
}

#message {
  --panel-give: var(--panel-inset);   /* inset only */
  margin-block: clamp(24px, 3vw, 48px);
}

/* Phone: the panels are the full width of the screen (the field behind no longer shows at
   their sides); the content keeps its place from the page gutter above. */
@media (max-width: 760px) {
  #people,
  #message {
    --panel-inset: 0px;
  }
}

/* Let People cover the resting hero while its stage remains pinned. */
@media (prefers-reduced-motion: no-preference) {
  #people {
    margin-top: -100svh;
    margin-top: -100lvh;   /* ピン留めしたステージと同じ高さ */
    z-index: 1;
  }
}

/* the People topics sit directly on the shared panel surface, one topic's gap apart */
#people > .rc-part {
  margin-top: var(--people-card-gap);
}

/* the intro leads straight into the first topic: its own bottom margin and the topic's top
   margin together made a gap that read as empty, so the first topic carries only its padding */
#people > .wrap {
  margin-bottom: clamp(16px, 2vw, 32px);
}

#people > .wrap .rc-section-head {
  margin-bottom: 0;   /* otherwise its own margin collapses through and sets the gap */
}

#people > .wrap + .rc-part {
  margin-top: 0;
}

/* Numbers follows the intro directly, so it opens with less top padding than the topics
   that follow one another. (Its title block is the shared .rc-part-head.) */
#people > #numbers {
  padding-top: clamp(24px, 3.5vh, 40px);
}

@media (max-width: 760px) {
  #people > .rc-part, #people > .rc-voices { padding-block: 40px; }
}

#work,
#faq {
  background: var(--c-panel);
}

/* air between the People panel's foot and Work — the same step the Message panel keeps */
#work {
  margin-top: clamp(24px, 3vw, 48px);
}

/* ===== the backdrops behind People ==========================================================
   Five layers sit behind the panel's content and crossfade as recruit.js flags #people:
     .is-members-background    orange ground, from 働く人 to 共通点        (#people::before)
     .is-office-background     the office photograph                         (#people::after)
     .is-programs-background   brand blue, Programs through Benefits         (.rc-panel-blue)
     .is-culture-background    the Members orange ground again               (.rc-panel-culture)
   plus the orange arcs (.rc-field-arcs) that ride over the two orange grounds.
   The two pseudo-elements are taken by the Members gradient and the photograph, so the blue
   and the Culture orange are real layers. background-attachment: fixed holds the Members
   gradient and the photograph still while the panel scrolls — iOS Safari ignores it (the
   layer simply scrolls along; nothing breaks). */
.recruit {
  /* a lighter orange in the upper left landing on the brand orange in the lower right —
     toned down from a near-yellow start, which read too bright */
  --g-members: linear-gradient(135deg, #ffa43f 0%, var(--c-orange-lt) 42%, var(--c-orange) 100%);
}

.rc-panel-blue,
.rc-panel-culture,
.rc-field-arcs,
#people::before,
#people::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s ease;
}

#people::before,
#people::after {
  content: '';
  background-size: cover;
  background-attachment: fixed;
}

#people::before { background-image: var(--g-members); }

#people::after {
  /* the photograph as supplied, lifted by a white translucent layer heavy enough that the Office
     title and lead read over it (client's call; .3 → .72 on 2026-10-28) */
  background-image: linear-gradient(rgb(255 255 255 / .72), rgb(255 255 255 / .72)), url('assets/office-tower.webp');
  background-position: center;
}

/* iPhone / iPad の Safari は background-attachment: fixed を無視するので、上の 2 枚は panel の
   高さいっぱいに引き伸ばされて流れる（オフィス写真は大きく拡大された一部だけが見えていた）。
   iOS だけ、同じ 2 枚を実際の要素（.rc-ground。オフィスは ::after と同じく panel の最後の子）に移し、その ::before をビューポートに固定して
   clip-path で panel の角丸に切り抜く（固定の子も切り抜かれる）。表示の切り替えは同じフラグ。 */
.rc-ground { display: none; }

@supports (-webkit-touch-callout: none) {
  #people::before,
  #people::after { content: none; }

  .rc-ground {
    display: block;
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    clip-path: inset(0 round clamp(24px, 3vw, 48px));
    opacity: 0;
    transition: opacity .6s ease;
  }

  .rc-ground::before {
    content: '';
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
  }

  .rc-ground--members::before { background-image: var(--g-members); }
  .rc-ground--office::before { background-image: linear-gradient(rgb(255 255 255 / .72), rgb(255 255 255 / .72)), url('assets/office-tower.webp'); }

  #people.is-members-background .rc-ground--members,
  #people.is-office-background .rc-ground--office { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .rc-ground { transition: none; }
}

.rc-panel-blue { background: var(--c-blue); }
.rc-panel-culture { background: var(--g-members); }

#people.is-members-background::before { opacity: 1; }
#people.is-office-background::after { opacity: 1; }
#people.is-programs-background .rc-panel-blue { opacity: 1; }
#people.is-culture-background .rc-panel-culture { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .rc-panel-blue,
  .rc-panel-culture,
  .rc-field-arcs,
  #people::before,
  #people::after { transition: none; }
}

/* Arcs over the orange grounds, one step deeper than the brand orange: two broad curves that
   cross the field from the left edge to the right. The outer layer clips to the panel (no
   bleeding past its corners), the sticky stage holds the viewport like the fixed-attachment
   gradient behind it, and the draw runs again each time an orange ground returns (the
   animation is keyed to the flags, not .is-drawn). */
.rc-field-arcs {
  overflow: clip;   /* clips like hidden, but makes no scroll container, so the stage sticks */
}

.rc-field-arcs-stage {
  position: sticky;
  top: 0;
  height: 100svh;
}

.rc-field-arcs svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(to right, #000 55%, transparent 96%);
  mask-image: linear-gradient(to right, #000 55%, transparent 96%);
}

.rc-field-arcs .rc-panel-line {
  stroke: #c74400;
  opacity: .3;
}

#people:is(.is-members-background, .is-culture-background) .rc-field-arcs {
  opacity: 1;
}

#people:is(.is-members-background, .is-culture-background) .rc-field-arcs .rc-panel-line {
  animation: panel-line-draw .9s cubic-bezier(.22, .55, .35, 1) both;
}

#people:is(.is-members-background, .is-culture-background) .rc-field-arcs .rc-panel-line + .rc-panel-line {
  animation-delay: .35s;
}

/* White ink on the orange ground: the Members head, the deck and the Voices head, and the
   Values head. (The cards inside Values keep their own ink — only the head sits on the
   ground.) */
#people.is-members-background .rc-deck-head p,
#people.is-members-background .rc-deck-head h3,
#people.is-members-background .rc-member,
#people.is-members-background .rc-member-meta,
#people.is-members-background .rc-member-meta b,
#people.is-members-background .rc-member h4,
#people.is-members-background .rc-deck-btn,
#people.is-members-background .rc-voices-head h3,
#people.is-members-background .rc-voices-head p,
#people.is-members-background .rc-voices .text-link,
#people.is-members-background #values > .wrap > .rc-part-head h3,
#people.is-members-background #values > .wrap > .rc-part-head p {
  color: #fff;
}

#people.is-members-background .rc-member .btn--ghost {
  background: rgb(255 255 255 / .08);
  color: #fff;
}

#people.is-members-background .rc-member .btn--ghost:hover {
  background: rgb(255 255 255 / .2);
}

#people.is-members-background .rc-deck-btn:hover {
  background: rgb(255 255 255 / .18);
}

/* The office backdrop is a bright photograph, so its heading and lead keep the panel's dark
   ink instead of flipping to white — dark reads on the light sky, white washes out. */
#people.is-office-background #office-title,
#people.is-office-background #office > .wrap > .rc-part-head p {
  color: var(--accent-deep);
  text-shadow: 0 1px 10px rgb(255 255 255 / .55);
}

/* ----- the corner arcs on the panels' upper right ----------------------------------------- */
/* a section with its own opaque fill must isolate, or that fill paints over the z-index:-1
   arcs (without a stacking context the arcs fall behind the section's background) */
#work,
#message,
#faq,
#jobs {
  isolation: isolate;
}

.rc-panel-lines {
  position: absolute;
  inset: 0 0 auto;
  height: clamp(400px, 54vw, 780px);
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 65%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 65%, transparent 100%);
}

.rc-panel-lines svg {
  position: absolute;
  right: 0;
  top: 0;
  width: min(80%, 1120px);
  height: 100%;
  transform: translateX(18%);
  overflow: visible;   /* the broad strokes run past the viewBox; the default clip cut them
                          mid-field — the outer layer still clips to the panel */
}

@media (max-width: 1000px) {
  .rc-panel-lines svg { width: 74%; transform: translateX(28%); }
}

/* Phone: the drawing scales down with the screen but the layer used to keep a 400px floor,
   so the arcs ended inside it, above the bottom fade, with their round tips showing. The layer
   is shorter than the arcs now: they run out through the fade and are cut where it is clear. */
@media (max-width: 760px) {
  .rc-panel-lines { height: 50vw; }
}

/* the mirrored placement: the arcs loop in from the panel's upper LEFT (Programs, Jobs).
   No negative offset here — with the broad strokes it left only slivers of the arcs inside
   the panel; the paths themselves run off the viewBox edges instead. */
.rc-panel-lines--left svg {
  right: auto;
  left: 0;
  transform: none;
}

.rc-panel-line {
  fill: none;
  stroke-width: 70;
  stroke-linecap: round;
  stroke-dasharray: 1 2;
  stroke-dashoffset: 1.06;
}

.rc-panel-line--blue { stroke: #5BC1EC; opacity: .75; }
.rc-panel-line--orange { stroke: #FF5D06; opacity: .68; }

/* Programs sits on the blue field itself, so its arcs go tone on tone: one step deeper than
   the ground, slightly translucent, both strokes alike */
#system .rc-panel-line {
  stroke: var(--c-deep);
  opacity: .6;
}

/* #system's article is inset from the panel edge by #people's padding, so the layer's own
   left edge would cut the arcs mid-field — run the clip box out to the blue panel's visible
   left edge (the rounded card's rim), where a cut is natural. --panel-inset equals that
   padding and inherits from #people. */
#system .rc-panel-lines {
  left: calc(-1 * var(--panel-inset, 0px));
  /* fade the TOP as well as the bottom: the first arc sweeps in from above the section's
     top seam, so it has to materialise out of the blue instead of being cut square there */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 65%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 65%, transparent 100%);
}

/* drawn on once, when the panel first reaches the viewport (recruit.js adds .is-drawn) */
.rc-panel-lines.is-drawn .rc-panel-line {
  animation: panel-line-draw .75s cubic-bezier(.22, .55, .35, 1) both;
}

/* whichever arc is written second trails the first — the lead colour varies per section */
.rc-panel-lines.is-drawn .rc-panel-line + .rc-panel-line { animation-delay: .3s; }

@keyframes panel-line-draw {
  to { stroke-dashoffset: 0; }
}

.motion-paused .rc-panel-line { animation-play-state: paused !important; }

.motion-reduced .rc-panel-line { animation: none !important; stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce) {
  .rc-panel-line { animation: none !important; stroke-dashoffset: 0; }
}

/* ----- the data cards on a phone and on a wide screen ----------------------------------- */
@media (max-width: 480px) {
  .rc-donut-row { grid-template-columns: 100px 1fr; gap: 16px; }
  .rc-bands { gap: 8px; }
  /* six years across a phone: the axis labels need their own line, tighter than the copy */
  .rc-bar > span { font-size: var(--t-micro); line-height: 1.35; }
  .rc-bar > b { font-size: var(--t-micro); }
  .rc-bars { gap: 6px; }
}

/* The wide-screen arrangement: the growth card takes three columns of four, industry keeps
   a narrow one beside it, and the last two share the row below. Only the shape of the grid
   belongs here — the paddings, gaps and line-heights are the page's, the same as every
   other section, so this block does not read smaller than its neighbours. */
@media (min-width: 1001px) {
  .rc-numbers-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
  }
  .rc-card:first-child { grid-column: span 3; }
  .rc-card:nth-child(2) { grid-column: span 1; }
  .rc-card:nth-child(n+3) { grid-column: span 2; }
  .rc-card:nth-child(2) .rc-donut-row { grid-template-columns: 1fr; gap: 20px; }
  .rc-card:nth-child(2) .rc-donut { width: 128px; justify-self: center; }
  .rc-bars { padding-top: 22px; }
}

/* ----- 01 — the assignment diagram ----------------------------------------------------------
   One white card, two rows. Other companies split the work between two people and information
   is lost between them (grey, small); at Activarch one partner stands in the middle (orange,
   larger). The text takes its roles from the HTML; the only sizes set here are the phone
   step at the foot, written in role tokens, because the columns are ~90px wide there. */
.rc-assignment-compare {
  --c-assign-ink: #143369;
  --c-assign-line: #e2e8f0;
  color: var(--c-assign-ink);
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  padding: clamp(20px, 2.4vw, 32px);
}

.rc-assignment-row--others {
  color: #596575;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--c-assign-line);
}

.rc-assignment-row--ours {
  padding-block: 20px;
}

.rc-assignment-label {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.rc-assignment-label small {
  line-height: 1.3;
  letter-spacing: .13em;
}

.rc-assignment-row--ours .rc-assignment-label {
  display: block;
  margin-bottom: 18px;
}

.rc-assignment-row--ours .rc-assignment-label small {
  display: block;
  margin-bottom: 8px;
}

.rc-assignment-row--ours .rc-assignment-label b {
  letter-spacing: .02em;
  color: var(--c-orange);
}

.rc-assignment-route {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(30px, .7fr) minmax(200px, max-content) minmax(30px, .7fr) minmax(115px, 1fr);
  align-items: center;
}

.rc-assignment-person {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.rc-assignment-person b {
  white-space: nowrap;
}

.rc-assignment-person img {
  display: block;
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.rc-assignment-row--others .rc-assignment-person img {
  width: 58px;
  height: 58px;
  filter: grayscale(1);
}

/* the dashed line between the two people, and the arrowed one that replaces it */
.rc-assignment-link {
  position: relative;
  margin: 0 10px;
  border-top: 1px dashed #8995a5;
}

.rc-assignment-row--ours .rc-assignment-link {
  height: 16px;
  margin: 0 6px;
  border: 0;
  color: #e86b22;
}

.rc-assignment-link svg {
  display: block;
  width: 100%;
  height: 16px;
  overflow: visible;
}

.rc-assignment-link small {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  letter-spacing: .02em;
  color: var(--c-assign-ink);
}

/* others: sales and HR as two separate boxes */
.rc-assignment-separated {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.rc-assignment-separated > span {
  padding: 10px 16px;
  border: 1px solid #aab3c0;
  border-radius: 5px;
}

.rc-assignment-separated i {
  color: #697789;
}

/* ours: the one partner is a person too (an orange figure, not a box), centred on the row and level
   with the arrows beside it; its label is the orange of the figure */
.rc-assignment-person--hub {
  justify-self: center;
}

.rc-assignment-person--hub b {
  color: var(--c-orange);
  letter-spacing: .04em;
}

/* the hub figure is still being drawn: greyed out, with the words over it. Remove .is-wip from the
   HTML (and the .rc-wip span) when the artwork is final. */
.rc-assignment-person--hub.is-wip {
  position: relative;
}

.rc-assignment-person--hub.is-wip img {
  filter: grayscale(1);
  opacity: .45;
}

.rc-assignment-person--hub.is-wip b {
  color: #8995a5;
}

.rc-wip {
  position: absolute;
  top: 56px;   /* over the middle of the figure (112px high) */
  left: 50%;
  translate: -50% -50%;
  padding: 3px 12px;
  border: 1px solid #697789;
  border-radius: 999px;
  background: rgb(255 255 255 / .92);
  color: #4a5565;
  letter-spacing: .1em;
  white-space: nowrap;
}

.rc-assignment-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 4px 0 0;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid var(--c-assign-line);
}

.rc-assignment-benefits li {
  display: grid;
  gap: 10px;
}

.rc-assignment-benefits li + li {
  padding-left: 20px;
  border-left: 1px solid var(--c-assign-line);
}

.rc-assignment-benefits span {
  letter-spacing: .1em;
  color: #e65d10;
}

.rc-assignment-benefits b {
  line-height: 1.65;
}

@media (max-width: 600px) {
  .rc-assignment-compare { padding: 22px 14px; border-radius: 16px; }
  .rc-assignment-label { flex-wrap: wrap; gap: 10px; }
  .rc-assignment-row--others .rc-assignment-label b { font-size: var(--t-caption); }
  .rc-assignment-route { grid-template-columns: minmax(0, 1fr) 12px 120px 12px minmax(0, 1fr); }
  .rc-assignment-person img { width: 70px; max-width: 100%; height: 82px; }
  .rc-wip { top: 41px; padding: 2px 8px; font-size: var(--t-micro); }
  .rc-assignment-row--others .rc-assignment-person img { width: 44px; height: 44px; }
  .rc-assignment-person b { font-size: var(--t-micro); white-space: normal; }
  .rc-assignment-link small { display: none; }
  .rc-assignment-separated { gap: 5px; font-size: var(--t-micro); }
  .rc-assignment-separated > span { padding: 8px; }
  .rc-assignment-benefits { grid-template-columns: 1fr; gap: 18px; }
  .rc-assignment-benefits li { gap: 4px; }   /* the label on its own line, the two-line text under it */
  .rc-assignment-benefits li + li { padding: 0; border: 0; }
}

/* スマホの代表メッセージ：明朝の見出し 2 行と結びの 1 文は中央に置く（本文は左揃えのまま）。 */
@media (max-width: 760px) {
  .rc-letter .rc-letter-lead,
  .rc-letter .rc-letter-close {
    text-align: center;
  }
}

/* インタビューのダイアログ：枠は画面に収め（上下に余白）、中身だけを枠の中でスクロールする。
   閉じるボタンはスクロールする中身ではなく枠に付けるので、右上に出たまま動かない
   （2026-10-29 実機レビュー）。 */
.rc-dialog[open] {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 64px);
  max-height: calc(100dvh - 64px);
  overflow: hidden;
}

.rc-dialog-inner {
  position: static;
  min-height: 0;
  /* 高さの決まった枠の中のグリッドは、行を枠に合わせて縮めようとする。はみ出しを切る写真は
     ほぼ 0 まで縮んでしまうので、どの行も中身の高さを保ち、はみ出した分はスクロールに回す。 */
  grid-auto-rows: max-content;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.rc-dialog-close {
  z-index: 2;
  box-shadow: 0 6px 18px -6px rgb(5 8 28 / .35);
}

.rc-dialog-close:focus-visible {
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .rc-dialog[open] {
    max-height: calc(100vh - 96px);
    max-height: calc(100dvh - 96px);
  }

  .rc-dialog-close {
    top: 12px;
    right: 12px;
  }
}

/* スマホの Voices：自動で流れる帯をやめ、指で横にスワイプして送るレールにする（2026-10-29
   実機レビュー）。帯を途切れなく回すための複製（11 枚目以降）は出さない。 */
@media (max-width: 760px) {
  .rc-voices .rc-bleed {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .rc-voices .rc-bleed::-webkit-scrollbar {
    display: none;
  }

  .rc-voices .rc-marquee {
    width: auto;
    animation: none;
    gap: 14px;
    padding-left: var(--gutter);
  }

  /* 最後のカードの後ろにも左と同じ余白を残す（はみ出したフレックスでは右の padding が
     スクロール幅に入らないため、空の要素で取る）。 */
  .rc-voices .rc-marquee::after {
    content: '';
    flex: 0 0 calc(var(--gutter) - 14px);
  }

  .rc-voices .rc-voice {
    --w: 74vw;
    scroll-snap-align: start;
  }

  .rc-voices .rc-marquee > .rc-voice:nth-child(n + 11) {
    display: none;
  }
}

/* 縦積み（1100px 以下）のオフィスのメイン写真：枠の高さを aspect-ratio だけに任せると、
   iPhone の Safari では中身（絶対配置の写真）のない枠が 0 の高さに潰れて写真が消えていた
   （2026-10-29 実機）。写真そのものを流れに戻し、写真の高さで枠を決める。 */
@media (max-width: 1100px) {
  .rc-office-main {
    align-self: start;
    aspect-ratio: auto;
  }

  .rc-office-main img {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
}

@media (max-width: 760px) {
  .rc-office-main img {
    height: calc((100vw - 2 * var(--gutter)) * 9 / 16);
  }
}

/* 横にスクロールできる表のヒント（recruit.js が .rc-scroll-frame で包む）。はみ出している間は
   右端をフェードさせ、右端の丸い矢印が小さく揺れて横に送れることを示す。一度送ると揺れは
   止まり、端まで送るとフェードも矢印も消える。 */
.rc-scroll-frame {
  position: relative;
  min-width: 0;   /* グリッドの中で表の幅（640px）に押し広げられないように */
}

.rc-scroll-frame.is-scrollable:not(.is-end) .rc-curriculum-scroll {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), rgb(0 0 0 / .25));
  mask-image: linear-gradient(to right, #000 calc(100% - 56px), rgb(0 0 0 / .25));
}

.rc-scroll-hint {
  position: absolute;
  top: 58%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 84px;
  height: 64px;
  border-radius: 20px;
  background: rgb(14 30 80 / .7);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #fff;
  pointer-events: none;   /* 指の操作はそのまま下の表に届き、横にスワイプできる */
  opacity: 0;
  translate: -50% -50%;
  transition: opacity .3s;
}

.rc-scroll-hint svg {
  width: 52px;
  height: 44px;
}

.rc-scroll-frame.is-scrollable:not(.is-scrolled) .rc-scroll-hint {
  opacity: 1;
}

.rc-scroll-frame.is-scrollable:not(.is-scrolled) .rc-scroll-hint svg {
  animation: rc-scroll-nudge 1.8s ease-in-out infinite;
}

@keyframes rc-scroll-nudge {
  0%, 100% { translate: 5px 0; }
  50% { translate: -5px 0; }
}


@media (prefers-reduced-motion: reduce) {
  .rc-scroll-frame .rc-scroll-hint svg { animation: none !important; }
}

/* カルチャーの写真の帯：枠の高さを aspect-ratio だけに任せると、iPhone の Safari では
   横並びのフレックスの中で 0 の高さに潰れ、帯がまるごと消えて大きな空きに見えていた
   （2026-10-29 実機。オフィスのメイン写真と同じ症状）。高さを幅から直接決める。 */
.rc-river .rc-marquee {
  align-items: flex-start;
}

.rc-river figure {
  height: calc(var(--w) * 37 / 56);
  aspect-ratio: auto;
}

/* スマホのカルチャーのカード：スクロールすると次のカードが前のカードの上に重なっていく
   （2026-10-29 実機レビュー）。各カードはヘッダーの下に少しずつずらして留まる。 */
@media (max-width: 760px) {
  .rc-culture-grid {
    display: block;
  }

  .rc-culture-card {
    position: sticky;
    top: calc(84px + var(--stack, 0) * 14px);
    margin-bottom: 20px;
    box-shadow: 0 -12px 32px -14px rgb(90 30 0 / .35);
  }

  .rc-culture-card:nth-child(2) { --stack: 1; }
  .rc-culture-card:nth-child(3) { --stack: 2; }
  .rc-culture-card:nth-child(4) { --stack: 3; margin-bottom: 0; }
}

/* スマホの福利厚生：アイコンと見出しは中央、説明文は左揃えのまま（2026-10-29 実機レビュー）。 */
@media (max-width: 760px) {
  .rc-benefit-icon {
    justify-self: center;
  }

  .rc-benefit-copy h4 {
    text-align: center;
    text-wrap: balance;   /* 2 行になる見出し（選択制確定拠出年金）で 1 字だけ落ちないように */
  }
}

/* スマホの冒頭メッセージ：ゴシックの本文が締めの明朝の 2 行より大きく見えていたので、
   本文を一段小さくして、締めの 2 行を主役に戻す（2026-10-29 実機レビュー）。 */
@media (max-width: 760px) {
  .rc-hero-message > span {
    font-size: min(var(--t-headline), 5.4vw);
  }
}

/* インタビューのダイアログの写真：枠の高さを aspect-ratio に任せると、iPhone の Safari では
   スクロールする中身の中で枠が潰れ、名前と見出しが写真の上に重なっていた。写真そのもの
   （1620×1080 の width/height 属性を持つ）の縦横比で高さを決める。 */
.rc-dialog-photo {
  aspect-ratio: auto;
  height: auto;
}

.rc-dialog-photo img {
  height: auto;
}

/* スマホの「案件とキャリアを、ひとつにつなぐ。」の図：矢印の列が 12px しかなく、矢印の SVG が
   幅を失って既定の大きさで描かれ、人物の絵に被っていた。矢印に 28px の列を確保し、
   SVG の幅もその列に固定する。 */
@media (max-width: 600px) {
  .rc-assignment-route {
    grid-template-columns: minmax(0, 1fr) 28px 92px 28px minmax(0, 1fr);
  }

  .rc-assignment-row--ours .rc-assignment-link {
    margin: 0;
    width: 28px;
  }

  .rc-assignment-link svg {
    width: 28px;
  }

  .rc-assignment-person img {
    width: 64px;
    height: 76px;
  }

  /* 列が細くなった分、名前は 1 行に収める（「コンサルタン／ト」と割れないように）。 */
  .rc-assignment-person b,
  .rc-assignment-separated > span {
    font-size: var(--t-micro);
    white-space: nowrap;
  }

  .rc-assignment-separated > span {
    padding: 6px;
  }
}

/* スマホの Programs（01〜03）は重ねて入れ替える演出をやめ、普通に縦に流す。01 は画面より
   背が高く、下端（03 / CHALLENGE）が見えた瞬間に 02 がかぶさって読めなかった（2026-10-29
   実機レビュー）。 */
@media (max-width: 760px) {
  .rc-chapter,
  .rc-chapter + .rc-chapter {
    position: relative;
    top: auto;
    min-height: 0;
    align-content: start;
  }
}

/* スマホのカルチャーの写真の帯：1 枚が画面より広く（360px）、遅延読み込みも重なって、帯が
   出るまで大きな空きに見えていた（2026-10-29 実機レビュー）。画面に 2 枚強が収まる大きさに
   し、写真は最初から読み込む（index.html で loading="lazy" を外した）。 */
@media (max-width: 760px) {
  .rc-river {
    margin-top: 28px;
  }

  .rc-river .rc-marquee {
    gap: 10px;
    --duration: 90s;
  }

  .rc-river figure {
    --w: 46vw;
  }

  .rc-river figcaption {
    left: 8px;
    bottom: 8px;
    padding: 2px 8px;
  }

  .rc-river-note {
    margin-top: 28px;
  }
}

/* スマホの Career Development：リードの下と「01」の間を広げる（約 22px → 56px。2026-10-29 実機レビュー）。 */
@media (max-width: 760px) {
  #system .rc-chapters {
    margin-top: 56px;   /* リードの下の余白（22.5px）と重なって相殺されるので、この値がそのまま間隔になる */
  }
}

/* スマホの「01 / CONNECT」〜「03 / CHALLENGE」：縦積みをやめて 3 つを横に並べる。文字は小さめに
   し、ラベルは番号と英字で 2 行に分けて幅に収める（2026-10-29 実機レビュー）。 */
@media (max-width: 600px) {
  .rc-assignment-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .rc-assignment-benefits li {
    align-content: start;
    gap: 6px;
  }

  .rc-assignment-benefits li:first-child {
    padding-right: 10px;
  }

  .rc-assignment-benefits li:last-child {
    padding-right: 0;
  }

  /* 上の 600px 以下のブロックの li + li { padding: 0 } より強くして、縦線の左右に余白を取る。 */
  .rc-assignment-benefits li + li {
    padding: 0 10px;
    border-left: 1px solid var(--c-assign-line);
  }

  .rc-assignment-benefits span {
    font-size: var(--t-micro);
    letter-spacing: .04em;
    line-height: 1.4;
  }

  .rc-assignment-benefits b {
    font-size: 12px;
    line-height: 1.6;
  }

  .rc-assignment-benefits b br {
    display: none;
  }
}

/* スマホのカルチャーの写真の帯：帯全体（写真 20 枚・約 3800px 幅）を 1 枚の層として流すと、実機の
   iPhone では描ける大きさの上限（画面の画素で約 8000px）を超え、帯が空白になっていた（シミュレーター
   では Mac の GPU で描けるので出る。2026-10-29 実機レビュー）。帯は止め、写真 1 枚ずつを同じ距離
   （1 周分 = 10 枚 × (幅 + 間隔)）だけ流す。見た目は帯ごと流すのと同じで、層は写真 1 枚の大きさで済む。 */
@media (max-width: 760px) {
  .rc-river .rc-marquee {
    animation: none;
  }

  .rc-river .rc-marquee > figure {
    animation: rc-river-step var(--duration) linear infinite;
  }

  .motion-paused .rc-river .rc-marquee > figure,
  .motion-reduced .rc-river .rc-marquee > figure {
    animation-play-state: paused;
  }
}

@keyframes rc-river-step {
  to { translate: calc(-10 * (46vw + 10px)) 0; }
}

/* スマホの Values：3 枚のカードを横に並べ、指で横にスワイプして送るレールにする（Voices と同じ送り方）。
   説明文は 1 段下のキャプション（14px）にする（2026-10-29 実機レビュー）。 */
@media (max-width: 760px) {
  .rc-values-row {
    display: flex;
    gap: 14px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 20px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .rc-values-row::-webkit-scrollbar {
    display: none;
  }

  /* 最後のカードの後ろにも左と同じ余白を残す（はみ出したフレックスでは右の padding がスクロール幅に入らない）。 */
  .rc-values-row::after {
    content: '';
    flex: 0 0 calc(var(--gutter) - 14px);
  }

  /* 縦型のカード：幅を狭め、絵 → 見出し → 説明 の順に縦に積む。 */
  .rc-value {
    flex: 0 0 60vw;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    align-content: start;
    row-gap: 12px;
    padding: 22px 20px 24px;
    scroll-snap-align: start;
  }

  .rc-value-art {
    grid-column: 1;
    grid-row: auto;
    width: 84px;
    margin: 0 auto;
  }

  .rc-value h4 {
    grid-column: 1;
    grid-row: auto;
    text-align: center;
  }

  .rc-value p {
    grid-column: 1;
    grid-row: auto;
    margin-top: 0;
    font-size: var(--t-caption);
    line-height: 1.85;
  }
}

/* スマホのメンバー紹介：インタビューの見出しを 1 段下のサイズ（見出し → 小見出し、27px → 22px）に
   する（2026-10-29 実機レビュー）。 */
@media (max-width: 760px) {
  .rc-member-copy > h4.t-headline {
    font-size: var(--t-subhead);
    line-height: 1.55;
  }
}

/* スマホのメンバー紹介：見出し・名前・ボタンの間を詰め（約 22px → 12px）、「詳しく見る」は中央に置く
   （2026-10-30 実機レビュー）。 */
@media (max-width: 760px) {
  .rc-member-copy {
    row-gap: 12px;
  }

  .rc-member-copy > .btn {
    justify-self: center;
    margin-top: 8px;
  }
}

/* スマホの絶対評価制度のカード：間延びして見えたので詰める（2026-10-30 実機レビュー）。
   4 つの小さなカード（定量評価など）の説明はすでにキャプション（14px）なので大きさはそのまま、
   下の横長のカード（年2回の昇給・昇格など）の説明を本文 → キャプション（14px）にする。
   どちらも上下の余白と行間を詰め、中身は上に寄せる。 */
@media (max-width: 760px) {
  .rc-chip {
    align-content: start;
    row-gap: 4px;
    padding: 14px 16px;
  }

  .rc-chip > b {
    line-height: 1.5;
  }

  .rc-chip > .t-caption {
    line-height: 1.6;
  }

  .rc-eval-row {
    align-content: start;
    row-gap: 4px;
    padding: 16px 20px;
  }

  .rc-eval-row > b {
    line-height: 1.5;
  }

  .rc-eval-row > .t-body {
    font-size: var(--t-caption);
    line-height: 1.65;
  }
}

/* スマホのカルチャーのカード（懇親会・部活動・社員旅行・全社総会）：説明を本文 → キャプション（14px）に
   （2026-10-30 実機レビュー）。 */
@media (max-width: 760px) {
  .rc-culture-card p {
    font-size: var(--t-caption);
    line-height: 1.8;
  }
}
