:root { --key: #1953D4; --key-ink: #fff; --key-pale: color-mix(in srgb, var(--key) 20%, #fff); --key-soft: color-mix(in srgb, var(--key) 60%, #fff); }
@supports (color: oklch(from red l c h)) { :root { --key-soft: oklch(from var(--key) calc(l + (1 - l) * .5) calc(c * .75) calc(h - 28)); } }
/* Mirror-only: lets the block live inside an iframe on the job top page.
   On the source the photo strip is position:fixed under a fixed 6rem header and the page
   scrolls over it. Inside an iframe nothing scrolls, so frame.js moves the strip with the
   parent page's scroll instead (same visual result). */
html, body { margin: 0; overflow: hidden; background: transparent; }
.l-index { position: relative; overflow: hidden; }
.p-mv { position: relative; top: 0; height: var(--mv-h, 100vh); }
.p-mv-img, .p-mv-bg { position: absolute; top: 0; left: 0; will-change: transform; }
.p-mv-bg { height: var(--strip-h, 100vh); }

/* collage pattern: mosaic of pictures, the gaps show the key colour (both set in site_config.json) */
.p-mv-collage { display: grid; box-sizing: border-box; width: 100%; height: 100%; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(6, 1fr); gap: 6px; padding: 6px 6px 6px 0; background: var(--key); }
.p-mv-collage .tile { min-width: 0; min-height: 0; overflow: hidden; }
.p-mv-collage .tile img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* slideshow pattern: pictures stacked, cross-fading */
.p-mv-img.is-fade { width: 100%; overflow: hidden; }
.p-mv-img.is-fade .slider-wrapper { position: relative; width: 100%; height: 100%; }
.p-mv-img.is-fade .slide { position: absolute; inset: 0; opacity: 0; transition: opacity var(--fade, 1.2s) ease; }
.p-mv-img.is-fade .slide.is-on { opacity: 1; }
.p-mv-img.is-fade .slide img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* about block layout (requested 2026-11-24): headline on the left, text on the right;
   on phones headline above text, both centred. (Source: one left column, figures on the right.) */
@media screen and (min-width: 768px) {
  .p-about-wrap { display: block; }
  .p-about-txt { display: flex; align-items: center; justify-content: space-between; gap: 7rem; }
  .p-about-txt .-headline { flex: none; }
  .p-about-txt .-detail { flex: 1 1 0; min-width: 0; margin-top: 0; }
  .p-about-txt .-detail br.pc_br { display: none; }   /* the source's line breaks were set for a wider column */
}
@media screen and (max-width: 767px) {
  .p-about-wrap { align-items: stretch; }
  .p-about-txt { text-align: center; }
}
/* height of the block (requested 2026-11-24: "縦幅を最初の時くらいの幅に"): with the source's long text it was
   about 703px tall at 1440px wide; a short text made it 252px. Keep that height as a minimum, text centred. */
.p-about { display: flex; flex-direction: column; justify-content: center; box-sizing: border-box; }
@media screen and (min-width: 768px) { .p-about { min-height: 74.7rem; } }
@media screen and (max-width: 767px) { .p-about { min-height: 54rem; } }
