/* 案件の見た目：北新興業株式会社 採用LP（sp-19）
 * 参考（STAGE Lab）の白い地に合わせる。11/05 りょうさんの修正を反映
 * 決まり：1つの部品は1か所にだけ書く。末尾に足して上書きしない。!important を使わない
 * 動きは transform・opacity だけ
 */

/* ---------- 共通 ---------- */
.logo { font-weight: 700; font-size: 15px; letter-spacing: 0.04em; white-space: nowrap; color: var(--color-main); }
.rail-logo__name { font-weight: 700; font-size: 26px; letter-spacing: 0.06em; line-height: 1.3; color: var(--color-main); }
.page__inner { word-break: keep-all; overflow-wrap: anywhere; }
.g1, .g2, .g3, .g4 { background-color: var(--color-base); }
.page--center .page__inner { text-align: center; align-items: center; }
.en { font-family: var(--font-en); font-weight: 500; font-size: var(--fs-en); line-height: 1; letter-spacing: 0.01em; color: var(--color-main); }
.ttl-h { font-family: var(--font-head); font-weight: var(--fw-head); font-size: var(--fs-head); line-height: var(--lh-head); letter-spacing: var(--ls-head); color: var(--color-main); }
.head-row { display: grid; gap: 0.7em; }
.txt { display: grid; gap: var(--sp-p); }
/* 本文の強調：アクセント（ネイビー）のハイライトに白文字 */
.kw { font-weight: 700; padding: 0.12em 0.3em; color: var(--color-on-dark); -webkit-box-decoration-break: clone; box-decoration-break: clone; background: var(--color-main); }

/* ---------- 文字の表現（ページごとに1つ。柔らかく） ---------- */
/* p1 推される：コーラル→ネイビーの帯に白文字。右上に広がる線 */
.ribbon { position: relative; display: inline-flex; margin-inline: 0.08em; padding: 0.04em 0.4em; font-size: 1.1em; color: var(--color-on-dark); background: var(--color-accent); border-radius: 0.5em; rotate: -2.5deg; white-space: nowrap; }
.ribbon i { display: block; }
.ribbon::after { content: ""; position: absolute; right: -0.5em; top: -0.56em; width: 0.8em; height: 0.8em; background: var(--burst) center / contain no-repeat; transform-origin: 0 100%; animation: burst 1.6s ease-in-out infinite alternate; }
@keyframes burst { from { transform: scale(0.72); opacity: 0.55; } to { transform: scale(1.06); opacity: 1; } }
/* p3 ファン：弾む丸＋上がるハート */
.fan { position: relative; display: inline-flex; margin-inline: 0.14em; vertical-align: -0.12em; white-space: nowrap; }
.fan i { display: grid; place-items: center; width: 2.3em; height: 2.12em; padding-bottom: 0.3em; margin-inline: -0.26em; font-size: 1.1em; font-weight: 800; color: var(--color-main); background: var(--heart-soft) center / contain no-repeat; animation: fan-hop 1.5s ease-in-out infinite; }
.fan i:nth-child(1) { rotate: -7deg; }
.fan i:nth-child(2) { rotate: 5deg; animation-delay: 0.16s; }
.fan i:nth-child(3) { rotate: -3deg; animation-delay: 0.32s; }
@keyframes fan-hop { 0%, 60%, 100% { translate: 0 0; } 30% { translate: 0 -0.2em; } }
.fan::before, .fan::after { content: ""; position: absolute; top: -0.5em; width: 0.62em; height: 0.62em; background: var(--heart-soft) center / contain no-repeat; animation: heart-up 2.4s ease-out infinite; }
.fan::before { left: -0.42em; }
.fan::after { right: -0.46em; animation-delay: 1.1s; }
@keyframes heart-up { 0% { transform: translateY(0.5em) scale(0.5); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-0.5em) scale(1.1); opacity: 0; } }
/* p4 チーム：見出しのハイライト */
.team { display: inline-block; margin-inline: 0.12em; padding: 0 0.3em; color: var(--color-on-dark); background: var(--color-main); white-space: nowrap; }
.dots { white-space: nowrap; }
.dots i { position: relative; display: inline-block; }
.dots i::before { content: ""; position: absolute; left: 50%; top: -0.04em; width: 0.2em; height: 0.2em; margin-left: -0.1em; border-radius: 50%; background: var(--color-accent); }
.wave { position: relative; display: inline-block; white-space: nowrap; }
.wave::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.2em; height: 8px; background: var(--wave-line) repeat-x left center; clip-path: inset(0 100% 0 0); }
.rv.is-on .wave::after { clip-path: inset(0 0 0 0); transition: clip-path 900ms var(--ease-out) 300ms; }
/* p5 あきらめない：手書きの丸で囲む */
.scrawl { position: relative; display: inline-block; padding: 0.45em 0.8em; margin: -0.45em -0.3em -0.45em -0.1em; white-space: nowrap; }
.scrawl__svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.scrawl__svg path { fill: none; stroke: var(--color-accent); stroke-width: 2.4px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
/* p6 ステージ：上から当たる光と、足元の舞台 */
.spotlit { position: relative; display: inline-block; padding-inline: 0.3em; margin-inline: 0; white-space: nowrap; }
.spotlit::before { content: ""; position: absolute; right: 0; top: -0.62em; width: 0.9em; height: 0.9em; background: var(--burst) center / contain no-repeat; transform-origin: 0 100%; animation: burst 1.6s ease-in-out infinite alternate; }
.spotlit::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.16em; height: 0.26em; border-radius: 50%; background: var(--color-accent); }
/* p7 推し：上の札に「あなた」 */
.tagged { position: relative; display: inline-block; padding-inline: 0.2em; margin-inline: -0.2em; margin-top: 0.66em; }
.tagged__tag { position: absolute; left: 50%; bottom: 100%; margin-bottom: 0; transform: translateX(-50%); font-size: var(--fs-min); font-weight: 500; line-height: 1.3; letter-spacing: 0.08em; white-space: nowrap; color: var(--color-main); }
/* p10 またあなたにお願いしたい：吹き出し */
.ask { position: relative; display: inline-block; padding: 0.3em 0.9em; font-size: 1.18em; font-weight: 800; line-height: 1.5; color: var(--color-main); background: var(--color-white); border-radius: 0.8em; }
.ask::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1em; height: 0.6em; margin-left: -0.5em; background: var(--color-white); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.tilt { display: inline-block; rotate: -3deg; transform-origin: 0 100%; }
.sparks { position: relative; display: inline-block; white-space: nowrap; }
.sparks::before, .sparks::after { content: ""; position: absolute; width: 0.55em; height: 0.55em; background: var(--color-accent); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: spark 1.8s ease-in-out infinite; }
.sparks::before { left: 0.1em; top: -0.35em; }
.sparks::after { right: 0.1em; top: -0.3em; animation-delay: 0.7s; }
@keyframes spark { 0%, 100% { transform: scale(0.4); opacity: 0.3; } 50% { transform: scale(1); opacity: 1; } }
/* ---------- 本文の背景（配管の線・薄い方眼・透かし文字・同心円）。疑似要素で本文の後ろに ---------- */
.txt { position: relative; }
.txt--grid::before { content: ""; position: absolute; z-index: -1; inset: -0.6em; background-image: linear-gradient(var(--navy-faint) 1px, transparent 1px), linear-gradient(90deg, var(--navy-faint) 1px, transparent 1px); background-size: 1.5em 1.5em; -webkit-mask-image: linear-gradient(120deg, transparent, var(--color-main) 60%); mask-image: linear-gradient(120deg, transparent, var(--color-main) 60%); pointer-events: none; }
/* p2・p9：本文の左右で揺れ続ける線画 */
.txt--deco::before, .txt--deco::after { content: ""; position: absolute; z-index: -1; bottom: -0.4em; width: 5.4em; height: 9em; background: center bottom / contain no-repeat; opacity: 0.55; pointer-events: none; transform-origin: 50% 100%; animation: deco-sway 2.8s ease-in-out infinite alternate; }
.txt--deco::before { left: -1.3em; }
.txt--deco::after { right: -1.3em; animation-delay: -1.4s; }
.txt--pen::before { background-image: var(--deco-pen-l); }
.txt--pen::after { background-image: var(--deco-pen-r); }
.txt--charm::before { background-image: var(--deco-charm-l); }
.txt--charm::after { background-image: var(--deco-charm-r); }
@keyframes deco-sway { from { transform: translateX(-5px) rotate(-5deg); } to { transform: translateX(5px) rotate(5deg); } }
/* p4：白い箱に罫線と輪／p7：見守るファインダーの四隅 */
.txt--panel { flex: 1 1 auto; align-content: start; z-index: 0; padding: 0.9em var(--gutter) 0.9em 1.1em; margin-right: calc(var(--gutter) * -1); border-top: 1px solid var(--color-main); border-left: 1px solid var(--color-main); background: var(--color-white) linear-gradient(var(--navy-faint) 1px, transparent 1px) 0 0 / 100% 1.5em; }
.txt--panel::after { content: ""; position: absolute; left: -1px; right: 0; top: 100%; height: calc(var(--pad-y) + 4px); border-left: 1px solid var(--color-main); background: var(--color-white); }
.txt--panel::before { content: ""; position: absolute; z-index: -1; right: 0.4em; bottom: 0.3em; width: 12em; height: 8.5em; background: var(--rings) center / contain no-repeat; opacity: 0.3; pointer-events: none; }
.txt--finder::before { content: ""; position: absolute; z-index: -1; inset: -0.75em -0.7em; pointer-events: none; --l: 1.5em; --w: 2px; background:
  linear-gradient(var(--color-accent) 0 0) 0 0 / var(--l) var(--w), linear-gradient(var(--color-accent) 0 0) 0 0 / var(--w) var(--l),
  linear-gradient(var(--color-accent) 0 0) 100% 0 / var(--l) var(--w), linear-gradient(var(--color-accent) 0 0) 100% 0 / var(--w) var(--l),
  linear-gradient(var(--color-main) 0 0) 0 100% / var(--l) var(--w), linear-gradient(var(--color-main) 0 0) 0 100% / var(--w) var(--l),
  linear-gradient(var(--color-main) 0 0) 100% 100% / var(--l) var(--w), linear-gradient(var(--color-main) 0 0) 100% 100% / var(--w) var(--l);
  background-repeat: no-repeat; }
.one { letter-spacing: 0.01em; font-feature-settings: "palt"; }
.kw-on { font-weight: 800; }
.chara { pointer-events: none; }
.chara img { display: block; width: 100%; height: auto; }

/* ---------- 動き（参考：写真は淡く現れる。見えないページの動きは止める） ---------- */
.page:not(.is-now) * { animation-play-state: paused; }
.pf-pop { opacity: 0; transform: scale(0.7); }
.pf-pop.is-on { opacity: 1; transform: none; transition: transform 460ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 220ms ease; }
/* 写真：薄く現れるのと同時に、透明度の高い白い光が一瞬当たってふわっと広がって消える */
.pf-photo { opacity: 0; transform: scale(1.03); }
.pf-photo.is-on { opacity: 1; transform: none; transition: opacity 1500ms ease, transform 2200ms var(--ease-out); }
.shine { position: absolute; left: 50%; top: 50%; z-index: 1; width: 170%; aspect-ratio: 1; margin: -85% 0 0 -85%; border-radius: 50%; background: radial-gradient(circle, var(--light-core) 0, var(--light-mid) 34%, var(--light-end) 68%); opacity: 0; pointer-events: none; }
.pf-photo.is-on + .shine { animation: shine 1700ms ease-out both; }
@keyframes shine { 0% { opacity: 0; transform: scale(0.35); } 20% { opacity: 0.9; } 100% { opacity: 0; transform: scale(1.5); } }
.pf-fade-in { opacity: 0; }
.pf-fade-in.is-on { opacity: 1; transition: opacity 1100ms ease; }
/* 線が一筆ずつ描かれる。path は pathLength="1"、順番は --i */
.pf-draw path, .pf-draw circle, .pf-draw rect { stroke-dasharray: 1; stroke-dashoffset: 1; }
.pf-draw.is-on path, .pf-draw.is-on circle, .pf-draw.is-on rect { stroke-dashoffset: 0; transition: stroke-dashoffset 1100ms ease-in-out; transition-delay: calc(var(--i, 0) * 170ms); }
.pf-slide-l { transform: translateX(-110%); }
.pf-slide-r { transform: translateX(110%); }
.pf-slide-l.is-on, .pf-slide-r.is-on { transform: none; transition: transform 800ms var(--ease-out); }
/* 線画：はっきり左右に揺れる */
.pf-float { transform-origin: 50% 100%; }
.pf-float.is-on { animation: pf-float 2.2s ease-in-out infinite alternate; }
@keyframes pf-float { from { translate: -9px 0; rotate: -3.5deg; } to { translate: 9px 0; rotate: 3.5deg; } }

#p1 .page__inner { padding-top: calc(var(--header-h) + var(--pad-y) + 0.7em); padding-bottom: calc(var(--pad-y) + 0.7em); }
/* ---------- p1 ← R1（参考 390 幅：アーチ 138×296・主写真 336 角） ---------- */
.kv { position: relative; flex: 1 1 0; min-height: 30dvh; margin-inline: calc(var(--gutter) * -1); }
@media (max-height: 600px) { .kv { min-height: 27dvh; } }
.kv__copy { position: relative; z-index: 2; padding: 0.3em 0 0 var(--gutter); letter-spacing: 0.02em; -webkit-text-stroke: 0.4px currentColor; }
.kv__copy .ln { display: block; }
.kv__copy .ln + .ln { margin-top: 0.34em; }
.kv__panel { position: absolute; top: calc((var(--pad-y) + 0.2em) * -1); right: 0; width: 36%; height: 60%; background: var(--color-accent); border-radius: 5.5em 0 0 0 / 7em 0 0 0; }
.kv__arch { position: absolute; top: calc((var(--pad-y) + 0.2em) * -1); right: 0; width: 33%; height: 72%; overflow: hidden; border-radius: 100% 0 0 0 / 30% 0 0 0; }
.kv__arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.kv__poly { position: absolute; left: 0; bottom: 0; width: 7%; height: 40%; background: var(--color-accent); clip-path: polygon(0 0, 100% 16%, 100% 74%, 0 100%); }
.kv__main { position: absolute; left: 11%; right: 24%; top: 8em; bottom: 0; overflow: hidden; }
.kv__main img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 14%; }
.kv__chara { position: absolute; right: 2%; bottom: 8%; width: 22%; height: 52%; }
.kv__chara img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }

/* ---------- p2 ← R2 ---------- */
.plan path, .plan circle, .plan rect { stroke: currentColor; }
.plan { position: absolute; left: calc(var(--gutter) * -1); top: 0; width: calc(100% + var(--gutter) * 2); height: 100%; color: var(--navy-soft); }
.about-fig { position: relative; display: flex; align-items: center; justify-content: center; gap: 1.4em; flex: 1 1 0; min-height: 13dvh; max-height: 40dvh; width: 100%; }
.oval { position: relative; width: min(46%, 30dvh); max-height: 100%; aspect-ratio: 1 / 1.14; overflow: hidden; border-radius: 50%; flex: 0 0 auto; }
.oval img { width: 100%; height: 100%; object-fit: cover; }
.about-chara { position: relative; flex: 0 1 auto; width: 46%; height: 92%; display: flex; align-items: center; justify-content: center; }
.about-chara img { width: 100%; height: 100%; object-fit: contain; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4em; }
.tags li { font-weight: 700; padding: 0.05em 0.7em; border: 1px solid var(--color-line); background: var(--color-white); }

/* ---------- p3 ← R4 ---------- */
.frame { position: relative; flex: 1 1 auto; min-height: 0; background: var(--color-white) linear-gradient(var(--navy-faint) 1px, transparent 1px) 0 0 / 100% 1.5em; display: flex; flex-direction: column; gap: var(--sp-p); padding: 1.1em 0 0 1.1em; margin-right: calc(var(--gutter) * -1); border-top: 1px solid var(--color-main); border-left: 1px solid var(--color-main); }
.frame::after { content: ""; position: absolute; left: -1px; right: 0; top: 100%; height: calc(var(--pad-y) + 4px); border-left: 1px solid var(--color-main); background: var(--color-white); }
.frame__ttl, .frame .txt { padding-right: var(--gutter); }
.frame__art { position: relative; flex: 0 1 30dvh; min-height: 11dvh; display: flex; align-items: flex-end; padding-right: var(--gutter); }
.frame__office { flex: 0 0 68%; min-width: 0; height: 92%; }
.frame__office img { width: 100%; height: 100%; object-fit: contain; object-position: 0 100%; }
.frame__chara { position: absolute; z-index: 2; right: 16px; bottom: 8px; height: max(calc(100% + 8px), 27dvh); }
@media (max-height: 600px) { #p7 .txt br, #p9 .txt br, #p10 .txt br { display: none; } }
@media (max-height: 680px) { .frame__chara { height: max(calc(100% + 8px), 22dvh); } }
@media (max-height: 640px) { .fan i { width: 1.9em; height: 1.76em; padding-bottom: 0.22em; margin-inline: -0.18em; } .frame__art { min-height: 0; flex-basis: 12dvh; } #p3 .txt br { display: none; } #p3 .frame { gap: 0.6em; padding-top: 0.7em; } .frame__chara { height: 100%; } }
.frame__chara img { width: auto; height: 100%; }

/* ---------- p4 ← R3 ---------- */
.strip { --u: 0.86dvh; position: relative; flex: 1 1 auto; height: calc(var(--u) * 25); max-height: calc(var(--u) * 25); min-height: calc(var(--u) * 25); margin-inline: calc(var(--gutter) * -1); overflow: hidden; }
@media (min-height: 760px) { .strip { --u: 1.25dvh; } }
@media (max-height: 600px) { .strip { --u: 0.5dvh; } }
.strip__track { display: flex; align-items: flex-start; width: max-content; height: 100%; }
.strip__track.is-on { animation: strip var(--strip-speed) linear infinite; }
@keyframes strip { to { transform: translateX(-50%); } }
.tile { position: relative; flex: 0 0 auto; margin-right: var(--strip-gap); }
.tile > img:last-child { width: 100%; height: 100%; object-fit: cover; }
.tile--a { width: calc(var(--u) * 19); height: calc(var(--u) * 25); }
.tile--b { width: calc(var(--u) * 22); height: calc(var(--u) * 15); margin-top: calc(var(--u) * 10); }
.tile--c { width: calc(var(--u) * 24); height: calc(var(--u) * 17); margin-top: calc(var(--u) * 3); }
.tile--d { width: calc(var(--u) * 18); height: calc(var(--u) * 21); margin-top: calc(var(--u) * 4); }
.tile--e { width: calc(var(--u) * 24); height: calc(var(--u) * 16); margin-top: calc(var(--u) * 9); }
.tile__chara { position: absolute; left: 22%; bottom: 76%; width: 56%; }

/* ---------- p5 ← R2 下部 ---------- */
.mate-fig { container-type: size; position: relative; flex: 1 1 0; min-height: 13dvh; max-height: 40dvh; display: flex; align-items: flex-end; margin-right: calc(var(--gutter) * -1); }
.mate-chara { position: relative; z-index: 1; flex: 0 0 52%; display: flex; align-items: flex-end; }
.mate-talk { position: relative; width: min(100%, 100cqh); }
.mate-talk > img { width: 100%; height: auto; }
.mate-talk::before { content: ""; position: absolute; z-index: -1; left: -4%; bottom: 58%; width: 84%; aspect-ratio: 240 / 170; background: var(--rings) center / contain no-repeat; opacity: 0.22; }
.mate-talk::after { content: ""; position: absolute; left: 10%; bottom: 84%; width: 1.2em; height: 1.2em; background: var(--heart) center / contain no-repeat; animation: heart-up 2.8s ease-out infinite; }
.mate-bubble { position: absolute; z-index: 1; left: 36%; bottom: 78%; display: flex; gap: 0.32em; padding: 0.7em 1em; background: var(--color-white); border-radius: 1.4em; box-shadow: var(--shadow-soft); animation: pf-float 2.6s ease-in-out infinite alternate; }
.mate-bubble::after { content: ""; position: absolute; left: 30%; top: 100%; width: 0.8em; height: 0.6em; background: var(--color-white); clip-path: polygon(0 0, 100% 0, 30% 100%); }
.mate-bubble b { width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--color-accent); animation: fan-hop 1.2s ease-in-out infinite; }
.mate-bubble b:nth-child(2) { animation-delay: 0.15s; background: var(--color-accent); }
.mate-bubble b:nth-child(3) { animation-delay: 0.3s; background: var(--color-main); }
.poly-back { position: absolute; right: 0; top: -3%; bottom: 8%; width: 62%; background: var(--color-accent); clip-path: polygon(14% 0, 100% 0, 100% 100%, 42% 100%, 0 70%, 0 18%); }
.poly { position: relative; flex: 1 1 0; margin-left: -8%; height: 100%; overflow: hidden; clip-path: polygon(18% 0, 100% 0, 100% 100%, 44% 100%, 0 72%, 0 20%); }
.poly img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }

/* ---------- p6 ← R5 ---------- */
.txt--lead { margin-top: -1em; }
.caro { position: relative; flex: 1 1 0; min-height: 21dvh; max-height: 50dvh; display: flex; flex-direction: column; margin-right: calc(var(--gutter) * -1); }
.caro__list { flex: 1 1 0; min-height: 0; display: flex; gap: 0.8em; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; touch-action: pan-x pan-y; }
.caro__list::-webkit-scrollbar { display: none; }
.caro__card { flex: 0 0 84%; min-height: 0; display: flex; flex-direction: column; gap: 0.35em; padding: 0.6em; scroll-snap-align: start; border: 1px solid var(--color-main); background: var(--color-pale); }
.caro__card img { flex: 1 1 0; min-height: 0; width: 100%; object-fit: cover; }
.caro__cap { display: flex; align-items: center; gap: 0.5em; font-weight: 700; line-height: 1.5; }
.cap-ico { flex: 0 0 auto; width: 2.1em; height: 2.1em; padding: 0.28em; color: var(--color-white); background: var(--color-accent); border-radius: 50%; }
.caro__nav { display: flex; justify-content: center; gap: 0.8em; padding: 0.95em var(--gutter) 0 0; }
.caro__btn { display: grid; place-items: center; width: 2em; height: 1.4em; padding: 0; color: var(--color-main); background: transparent; border: 1px solid var(--color-main); border-radius: 0.35em; cursor: pointer; }
.caro__btn svg { width: 1em; height: 1em; }

/* ---------- p7 ← R6・S-IMG-2 ---------- */
.show-fig { position: relative; flex: 1 1 0; min-height: 17dvh; max-height: 44dvh; width: 100%; }
.show-fig__a { position: absolute; right: calc(var(--gutter) * -1); top: 0; width: 40%; height: 22%; background: var(--color-accent); }
.show-fig__b { position: absolute; left: calc(var(--gutter) * -1); bottom: 8%; width: 50%; height: 16%; background: var(--color-accent); }
.arch { overflow: hidden; border-radius: 999px 999px 0 0; }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 12% 40%; }
.show-fig__main { position: absolute; left: 16%; top: 3%; bottom: 0; width: 54%; }
.show-fig__chara { position: absolute; right: 0; bottom: 0; height: 66%; }
.show-fig__chara img { width: auto; height: 100%; }
/* p8 デビュー：上に括弧つきのふりがな「独立」 */
.rubied { position: relative; display: inline-block; margin-top: 1.05em; }
.rubied__rt { position: absolute; left: 0; right: 0; bottom: 100%; margin-bottom: 0.1em; display: flex; justify-content: space-around; padding-bottom: 0.12em; font-size: var(--fs-min); font-weight: 700; line-height: 1.25; letter-spacing: 0; color: var(--color-main); border: 2px solid var(--color-accent); border-width: 0 2px 2px; border-radius: 0 0 0.4em 0.4em; }

/* ---------- p8 ← R7 ---------- */
.debut-fig { position: relative; flex: 1 1 0; min-height: 14dvh; max-height: 36dvh; margin-inline: calc(var(--gutter) * -1); }
.debut-photo { position: absolute; right: 0; top: 0; bottom: 0; width: 54%; overflow: hidden; border-radius: 100% 0 0 0 / 30% 0 0 0; }
.debut-photo img { width: 100%; height: 100%; object-fit: cover; }
.debut-deco { position: absolute; left: var(--gutter); top: 2%; width: 42%; height: 40%; overflow: visible; }
.debut-deco path, .debut-deco circle { fill: none; stroke: var(--color-accent); stroke-width: 2px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.debut-deco__cloud { animation: deco-sway 3.4s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
.debut-van { position: absolute; left: var(--gutter); bottom: 0; width: 52%; height: 72%; }
.debut-van img { width: 100%; height: 100%; object-fit: contain; object-position: 0 100%; }
.txt--rule { gap: 0; }
.txt--rule .body { padding-block: 0.65em; border-top: 1px solid var(--color-line); }
.txt--rule .body:last-child { padding-bottom: 0; }

/* ---------- p9 ← S-IMG-3 の枠 ---------- */
.charm-fig::before { content: ""; position: absolute; right: 3%; top: -8%; width: 30%; aspect-ratio: 1; border-radius: 50%; background: var(--color-accent); }
.charm-fig { position: relative; flex: 1 1 0; min-height: 14dvh; max-height: 30dvh; width: 100%; }
.charm-photo { position: absolute; left: calc(var(--gutter) * -1); right: 20%; top: 0; bottom: 0; overflow: hidden; border-radius: 0 999px 999px 0; }
.charm-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.charm-chara { position: absolute; right: 0; bottom: 0; height: 88%; }
.charm-chara img { width: auto; height: 100%; }
.box { display: grid; gap: 0.1em; padding: 0.55em 1.1em; font-weight: 700; text-align: left; border: 2px solid var(--color-accent); border-radius: 0.8em; background: var(--color-white); }

/* ---------- p10 ← R8・S-IMG-3 ---------- */
.contact-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.contact-bg::after { content: ""; position: absolute; inset: 0; background: var(--color-shade); }
.page--contact { color: var(--color-on-dark); }
.page--contact .en, .page--contact .ttl-h, .page--foot .en { color: var(--color-on-dark); }
.contact-head { flex: 1 1 0; min-height: 10dvh; max-height: 30dvh; width: 100%; display: flex; align-items: center; justify-content: space-between; text-align: left; }
.contact-door { height: 100%; }
.contact-door img { width: auto; height: 100%; }

/* ---------- 会社概要 ← R9 ---------- */
.page--foot { overflow: hidden; background: var(--color-main); color: var(--color-on-dark); }
.page--foot::before { content: ""; position: absolute; inset: 0; background: var(--foot-rings) center top / cover no-repeat; opacity: 0.16; pointer-events: none; }
.page--foot .page__inner { position: relative; }
.page--foot .page__inner { min-height: 100dvh; justify-content: center; padding-bottom: calc(var(--pad-y) + 11dvh); }
.foot-sub { font-size: 1em; font-weight: 500; margin-top: -0.5em; }
.prof { display: grid; gap: 0.6em; }
.prof__row { display: grid; grid-template-columns: 5em 1fr; gap: 0.8em; padding-bottom: 0.6em; border-bottom: 1px solid var(--color-on-dark-line); }
.prof dt { font-weight: 700; }
.foot-chara { height: 22dvh; display: flex; justify-content: flex-end; }
.foot-chara img { width: auto; height: 100%; }
.foot-marquee { position: absolute; z-index: 2; left: 0; right: 0; bottom: -0.16em; white-space: nowrap; overflow: hidden; font-size: 13.5dvh; line-height: 1; font-weight: 700; color: var(--color-base); }
.foot-marquee .pf-track { display: flex; width: max-content; animation: strip 60s linear infinite; }
.foot-marquee .pf-track > * { flex: 0 0 auto; }

/* ---------- 募集要項・エントリー ---------- */
.req-chara { position: absolute; right: var(--gutter); top: calc(var(--header-h) + 0.8em); width: 22%; }
.sub { font-size: 1em; font-weight: 500; margin-top: -0.5em; }

/* ---------- PC の左右の帯（参考の面と線画だけ） ---------- */
@media (min-width: 960px) {
  .stage { background: var(--color-base); }
  .rail { overflow: hidden; }
  .rail-poly { position: absolute; left: 0; bottom: 0; width: 6%; height: 34%; background: var(--color-accent); clip-path: polygon(0 0, 100% 16%, 100% 74%, 0 100%); }
  .rail-curve { position: absolute; right: 0; top: 0; width: 13%; height: 22%; background: var(--color-accent); border-radius: 100% 0 0 0 / 34% 0 0 0; }
  .rail-logo, .rail-side { position: relative; }
  .rail-chara { position: absolute; }
  .rail-chara--l { left: 8%; bottom: 7%; width: min(42%, 200px); animation: pf-float 2.6s ease-in-out infinite alternate; transform-origin: 50% 100%; }
  .rail-chara--r { right: 8%; bottom: 8%; width: min(32%, 150px); animation: pf-float 3s ease-in-out infinite alternate; transform-origin: 50% 100%; }
}
