/* トップ: RECRUIT GAME PARK の大きな区画（2026-10-15）
   このファイルは .rgp の中だけに効く。既存の共通CSSは変えない。
   白地・ほぼ黒の文字・赤 #C1121F・細い罫線・角の立った形。 */

.rgp {
    --rgp-ink: #030303;
    --rgp-ink2: #3F434B;
    --rgp-mute: #767B85;
    --rgp-line: #E3E5E9;
    --rgp-bg2: #F4F5F7;
    --rgp-red: #C1121F;
    --rgp-red2: #E63946;
    --rgp-ease: cubic-bezier(.22, .61, .21, 1);
    position: relative;
    padding: 96px 0 88px;
    background: #FFFFFF;
    color: var(--rgp-ink);
    font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    border-top: 1px solid var(--rgp-line);
}
.rgp *, .rgp *::before, .rgp *::after { box-sizing: border-box; }
.rgp img { display: block; max-width: 100%; height: auto; }
.rgp-wrap { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }

/* 見出しの行 */
.rgp-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 0 0 32px; font-size: 17.6px; font-weight: 700; letter-spacing: .12em; color: var(--rgp-red); }
.rgp-kicker::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.rgp-kicker b { padding: 8px 16px; font-size: 20.8px; font-weight: 700; letter-spacing: .12em; line-height: 1.3; color: #fff; background: var(--rgp-red); }

.rgp-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }

/* 左: 文字 */
.rgp-mark { width: min(100%, 460px); margin: 0 0 32px; }
.rgp-title { margin: 0; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.45; letter-spacing: .02em; color: var(--rgp-ink); }
.rgp-title em { font-style: normal; color: var(--rgp-red); }
.rgp-title > span { display: inline-block; }
.rgp-grid > * { min-width: 0; }
.rgp-text, .rgp-note { word-break: auto-phrase; overflow-wrap: anywhere; }
.rgp-text { margin: 20px 0 0; font-size: 16px; line-height: 1.9; color: var(--rgp-ink2); }
.rgp-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 32px 0 0; padding: 0; border-top: 1px solid var(--rgp-ink); border-bottom: 1px solid var(--rgp-line); }
.rgp-stats div { padding: 14px 0 14px 16px; border-left: 1px solid var(--rgp-line); }
.rgp-stats div:first-child { padding-left: 0; border-left: 0; }
.rgp-stats dt { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--rgp-mute); }
.rgp-stats dd { margin: 4px 0 0; font-size: 30px; font-weight: 700; line-height: 1.1; color: var(--rgp-ink); }
.rgp-stats dd small { margin-left: 4px; font-size: 13px; font-weight: 700; }
.rgp-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.rgp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 28px;
    font-size: 16px; font-weight: 700; letter-spacing: .06em; text-decoration: none; border-radius: 4px;
    border: 1px solid transparent; transition: background .2s var(--rgp-ease), color .2s var(--rgp-ease), transform .2s var(--rgp-ease);
}
.rgp-btn span { transition: transform .25s var(--rgp-ease); }
.rgp-btn:hover span { transform: translateX(3px); }
.rgp-btn-pri { background: var(--rgp-red); color: #fff; }
.rgp-btn-pri:hover { background: #9E0E19; color: #fff; }
.rgp-btn-sec { background: #fff; color: var(--rgp-ink); border-color: var(--rgp-ink); }
.rgp-btn-sec:hover { background: var(--rgp-bg2); color: var(--rgp-ink); }
.rgp-note { margin: 14px 0 0; font-size: 12.5px; color: var(--rgp-mute); }

/* 右: キービジュアルのモザイク */
.rgp-mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rgp-tile { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--rgp-bg2); border-radius: 4px; }
.rgp-tile.is-big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.rgp-tile a { position: absolute; inset: 0; display: block; }
.rgp-tile .rgp-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--rgp-ease); }
.rgp-tile .rgp-logo { position: absolute; z-index: 2; left: 3%; bottom: 2%; width: 66%; transition: transform .45s var(--rgp-ease);
    filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 2px #fff) drop-shadow(0 0 6px rgba(255, 255, 255, .95)) drop-shadow(0 0 14px rgba(255, 255, 255, .8)); }
/* 題字の後ろだけに敷く白いやわらかな光（絵全体は暗くしない） */
.rgp-tile a::before { content: ""; position: absolute; z-index: 1; left: -10%; bottom: -22%; width: 82%; height: 78%; pointer-events: none;
    background: radial-gradient(ellipse at 42% 62%, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .7) 34%, rgba(255, 255, 255, .25) 58%, rgba(255, 255, 255, 0) 72%); }
.rgp-tile.is-big a::before { width: 70%; height: 46%; bottom: -10%; }
/* ジャンルの札（右上） */
.rgp-tile-genre { position: absolute; z-index: 3; top: 6px; right: 6px; padding: 2px 7px; font-size: 10.5px; font-weight: 700; line-height: 1.6; letter-spacing: .04em; color: #fff; background: var(--rgp-ink); white-space: nowrap; }
.rgp-tile.is-big .rgp-logo { width: 50%; }
.rgp-tile::after { content: ""; position: absolute; inset: 0; border: 2px solid transparent; border-radius: 4px; transition: border-color .2s var(--rgp-ease); pointer-events: none; }
.rgp-tile:hover .rgp-art { transform: scale(1.05); }
.rgp-tile:hover .rgp-logo { transform: translateY(-3px); }
.rgp-tile:hover::after { border-color: var(--rgp-red); }
.rgp-tile-tag { position: absolute; top: 8px; left: 8px; padding: 3px 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em; color: #fff; background: var(--rgp-ink); }

/* 3つの要点 */
.rgp-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rgp-ink); border-bottom: 1px solid var(--rgp-line); }
.rgp-points li { display: flex; flex-direction: column; gap: 6px; padding: 14px 12px 14px 14px; border-left: 1px solid var(--rgp-line); font-size: 15px; font-weight: 700; line-height: 1.45; color: var(--rgp-ink); word-break: auto-phrase; }
.rgp-points li:first-child { padding-left: 0; border-left: 0; }
.rgp-points span { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--rgp-red); }
.rgp-sub { margin: 10px 0 0; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--rgp-mute); }

/* 題字が流れる帯（選ぶとゲームの紹介が出る） */
.rgp-ticker { position: relative; margin-top: 64px; background: var(--rgp-bg2); border-top: 1px solid var(--rgp-line); border-bottom: 1px solid var(--rgp-line); }
.rgp-ticker-view { overflow: hidden; padding: 14px 0; }
.rgp-ticker-in { display: flex; align-items: center; gap: 28px; width: max-content; animation: rgp-marq 70s linear infinite; }
.rgp-ticker.is-paused .rgp-ticker-in, .rgp-ticker:hover .rgp-ticker-in, .rgp-ticker:focus-within .rgp-ticker-in { animation-play-state: paused; }
.rgp-tk { display: block; padding: 4px 10px; border-radius: 4px; outline-offset: 2px; transition: background .2s var(--rgp-ease), transform .25s var(--rgp-ease); }
.rgp-tk img { height: 64px; width: auto; display: block; }
.rgp-tk:hover, .rgp-tk:focus-visible { background: #fff; transform: translateY(-2px); }
.rgp-tk:focus-visible { outline: 2px solid var(--rgp-red); }
@keyframes rgp-marq { to { transform: translateX(-50%); } }

/* 紹介のポップアップ */
.rgp-pop { position: absolute; z-index: 20; width: 280px; background: #fff; border: 1px solid var(--rgp-ink); border-radius: 6px; box-shadow: 0 18px 40px -18px rgba(3, 3, 3, .3); overflow: hidden; }
.rgp-pop[hidden] { display: none; }
.rgp-pop-art { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--rgp-bg2); border-bottom: 1px solid var(--rgp-line); }
.rgp-pop-body { display: grid; gap: 6px; justify-items: start; padding: 10px 14px 14px; }
.rgp-pop-logo { width: 120px; height: auto; margin: -2px 0 0 -6px; }
.rgp-pop-genre { padding: 2px 8px; font-size: 11px; font-weight: 700; color: #fff; background: var(--rgp-ink); }
.rgp-pop-desc { margin: 0; font-size: 13px; line-height: 1.65; color: var(--rgp-ink2); word-break: auto-phrase;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rgp-pop-go { justify-self: stretch; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin-top: 4px; border-radius: 4px; background: var(--rgp-red); color: #fff; font-size: 14.5px; font-weight: 700; letter-spacing: .06em; text-decoration: none; }
.rgp-pop-go:hover { background: #9E0E19; color: #fff; }

/* 採用ゲーム17本の表 */
.rgp-list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin: 48px 0 0; padding-bottom: 16px; border-bottom: 1px solid var(--rgp-ink); }
.rgp-list-head h3 { margin: 0; font-size: clamp(20px, 2vw, 24px); font-weight: 700; line-height: 1.5; color: var(--rgp-ink); }
.rgp-list-head h3 > span { display: inline-block; }
.rgp-list-count { margin-left: 10px; padding: 2px 10px; font-size: .72em; color: #fff; background: var(--rgp-red); vertical-align: .15em; }
.rgp-list-head p { margin: 8px 0 0; font-size: 14px; line-height: 1.8; color: var(--rgp-ink2); word-break: auto-phrase; }
.rgp-list-head > a { flex: none; font-size: 13px; font-weight: 700; color: var(--rgp-red); text-decoration: none; white-space: nowrap; }
.rgp-tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.rgp-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rgp-table thead th { padding: 12px 8px 8px 0; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-align: left; color: var(--rgp-mute); border-bottom: 1px solid var(--rgp-line); }
.rgp-table thead th:last-child, .rgp-table td.rgp-time { width: 112px; }
.rgp-table thead th:nth-child(2) { width: 168px; }
.rgp-table tbody tr { position: relative; transition: background .2s var(--rgp-ease); }
.rgp-table tbody tr:hover { background: var(--rgp-bg2); }
.rgp-table th[scope="row"], .rgp-table td { padding: 10px 8px 10px 0; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--rgp-line); font-weight: 400; }
.rgp-table th[scope="row"] a { display: block; color: var(--rgp-ink); text-decoration: none; }
.rgp-table th[scope="row"] a::after { content: ""; position: absolute; inset: 0; }
.rgp-table th[scope="row"] b { display: block; font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.rgp-table th[scope="row"] small { display: block; font-size: 11px; color: var(--rgp-mute); }
.rgp-table tbody tr:hover b { color: var(--rgp-red); }
.rgp-table th[scope="row"] a:focus-visible { outline: 2px solid var(--rgp-red); outline-offset: 2px; }
.rgp-tag { display: inline-block; padding: 2px 8px; font-size: 11.5px; font-weight: 700; color: var(--rgp-ink); background: #fff; border: 1px solid var(--rgp-line2, #CDD0D6); border-radius: 3px; white-space: nowrap; }
.rgp-time { font-size: 13px; color: var(--rgp-ink2); white-space: nowrap; }
.rgp-time span { white-space: nowrap; }

@media (max-width: 1000px) {
    .rgp-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .rgp-tables { grid-template-columns: minmax(0, 1fr); }
    .rgp-table-2 thead th { padding: 0; height: 0; font-size: 0; line-height: 0; border: 0; }
}
@media (max-width: 600px) {
    .rgp { padding: 64px 0 56px; }
    .rgp-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 6px; }
    .rgp-tile-genre { top: 5px; right: 5px; padding: 1px 6px; font-size: 10px; }
    .rgp-tile .rgp-logo { width: 58%; }
    .rgp-tile.is-big .rgp-logo { width: 46%; }
    .rgp-tile.is-big { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 9; }
    .rgp-tile:nth-child(n+8) { display: none; }
    .rgp-stats dd { font-size: 24px; }
    .rgp-points li { padding: 12px 6px 12px 10px; font-size: 13.5px; }
    .rgp-btn { width: 100%; }
    .rgp-ticker { margin-top: 48px; }
    .rgp-tk img { height: 48px; }
    .rgp-ticker-in { gap: 14px; }
    .rgp-list-head { flex-direction: column; align-items: flex-start; }
    .rgp-list-count { display: inline-block; margin: 4px 0 0; }
    .rgp-table thead th:nth-child(2) { width: auto; }
    .rgp-table thead th:last-child, .rgp-table td.rgp-time { width: 78px; }
    .rgp-table { table-layout: fixed; }
    .rgp-table thead th:nth-child(2) { width: 124px; }
    .rgp-table th[scope="row"] b { font-size: 13px; white-space: nowrap; }
    .rgp-table th[scope="row"] small { font-size: 10px; white-space: nowrap; }
    .rgp-time { font-size: 11px; white-space: normal; word-break: keep-all; line-height: 1.5; }
    .rgp-table th[scope="row"], .rgp-table td { padding-right: 6px; }
    .rgp-tag { font-size: 10px; padding: 1px 5px; white-space: normal; word-break: keep-all; }
    .rgp-pop { width: min(280px, calc(100vw - 24px)); }
    .rgp-pop-art { aspect-ratio: 16 / 6; }
}
/* PC: 右のモザイクを左の列と同じ高さいっぱいに広げ、上下の空きをなくす */
@media (min-width: 1001px) {
    .rgp-grid { align-items: stretch; }
    .rgp-mosaic { height: 100%; grid-template-rows: repeat(3, minmax(0, 1fr)); }
    .rgp-tile { aspect-ratio: auto; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .rgp-ticker-in { animation: none; }
    .rgp-tile .rgp-art, .rgp-tile .rgp-logo, .rgp-btn span { transition: none; }
}
