/* 旧サイト（goodplus-service.co.jp）の見た目をそのまま再現するページ用の CSS
   対象: recruit / info / privacy_policy / terms_of_use（先方の要望「既存ページで変えないものは、デザインも内容もそのまま」）
   本文を包む <div class="gp-legacy"><div id="lg-content"> の中だけに効く。common.css・pages.css は触らない。
   旧サイトの CSS（テーマの style.css 相当のインライン分と、各ページの追加CSS）から、本文に必要な指定だけを写してある。
   ・セレクターの頭に付けた :where(.gp-legacy) は詳しさ（優先順位）を増やさないので、旧サイトと同じ優先順位のまま範囲だけが限定される。
   ・旧サイトは html の文字サイズが min(4vw, 14px) で、rem はその値。新サイトの html は 16px のままなので、rem は calc(var(--lg-rem) * N) に直してある。
   ・旧サイトのスクロールで出るアニメーション（.parallax の fade）は再現しない（最初から表示）。
   ・旧サイトのヘッダー（FV の上の 100px の余白）・フッター・浮いている電話/メールの帯は再現しない（新サイト共通のものを使う）。 */

.gp-legacy {
  --lg-rem: min(4vw, 14px);
  --color-primary: #4472C4;
  --color-font: #000;
  --lg-pad-section: calc(var(--lg-rem) * 5) 0;
  --lg-margin-below: 0 0 calc(var(--lg-rem) * 2);
  position: relative;
  background: #FFFFFF;
  color: #000000;
  font-family: "Noto Sans JP", Manrope, sans-serif;
  font-size: var(--lg-rem);
  line-height: 1.5;
  text-wrap: wrap;
  -webkit-font-smoothing: auto;
}

/* ---- 基本（common.css の初期化を、旧サイトの初期値に戻す） ---- */
:where(.gp-legacy) img { max-width: 100%; width: auto; height: auto; }
:where(.gp-legacy) a img { display: inline-block; }
:where(.gp-legacy) section { position: relative; }
:where(.gp-legacy) span { display: inline-block; }
:where(.gp-legacy) p { margin: 0 0 1em; }
:where(.gp-legacy) :is(h1, h2, h3, h4, h5) { margin: 0 0 calc(var(--lg-rem) * 1.5); line-height: 1.5; }
:where(.gp-legacy) :is(ul, ol) { margin: 1em 0; padding: 0 0 0 1.5em; }
:where(.gp-legacy) :is(ul, ol) :is(ul, ol) { margin: 0; }
:where(.gp-legacy) ul { list-style: disc; }
:where(.gp-legacy) ul ul { list-style: circle; }
:where(.gp-legacy) ol { list-style: decimal; }
:where(.gp-legacy) dl { margin: 1em 0; }
:where(.gp-legacy) dd { margin: 0 0 0 40px; }
:where(.gp-legacy) figure { margin: 0; }
:where(.gp-legacy) a { display: inline-block; }
:where(.gp-legacy) :is(a, a:hover) { color: inherit; text-decoration: none; }
/* common.css が 1279px 以下の見出しに掛ける balance・keep-all・wbr による折り返しを、旧サイトと同じ素の折り返しに戻す */
.gp-legacy :is(h1, h2, h3, h4, h5) { text-wrap: wrap !important; word-break: normal; overflow-wrap: normal; }
.gp-legacy wbr { display: none; }

/* ---- 幅・見出し・余白 ---- */
:where(.gp-legacy) div.wrap { position: relative; width: 92%; max-width: 918pt; margin-left: auto; margin-right: auto; }
:where(.gp-legacy) #lg-content { position: relative; }
:where(.gp-legacy) #lg-content .detail { margin: 0 auto; position: relative; }
:where(.gp-legacy) #lg-content section h1 { font-size: min(calc(var(--lg-rem) * 4), 8.8vw); }
:where(.gp-legacy) #lg-content section h2 { font-size: clamp(calc(var(--lg-rem) * 2), 2.6vw, calc(var(--lg-rem) * 3.8)); }
:where(.gp-legacy) #lg-content section h3 { font-size: min(calc(var(--lg-rem) * 1.6), 5vw); }
:where(.gp-legacy) section p { line-height: 200%; }
:where(.gp-legacy) .no-padding { padding: 0; }
:where(.gp-legacy) #lg-content section:not(.no-padding) { padding: var(--lg-pad-section); }
:where(.gp-legacy) #lg-content #secondary section { padding: 0 0 calc(var(--lg-rem) * 2); }
:where(.gp-legacy) .image { position: relative; overflow: hidden; }
:where(.gp-legacy) .image img { display: block; }

/* ---- 並べ方（flex 系のクラス） ---- */
:where(.gp-legacy) :is(.flex, .flex-wrap, .list) { display: flex; position: relative; padding: 0; }
:where(.gp-legacy) :is(.flex-wrap, .list) { flex-wrap: wrap; }
:where(.gp-legacy) :is(ul.flex, ul.flex-wrap, ul.list) { list-style: none; }
:where(.gp-legacy) :is(.flex-wrap, .flex, .list).between { justify-content: space-between; }
:where(.gp-legacy) :is(.flex-wrap, .flex, .list) > * { position: relative; word-break: break-all; }
:where(.gp-legacy) :is(.flex-wrap, .flex, .list) > .full { flex-basis: 100%; }
:where(.gp-legacy) .listNavi .flex { justify-content: center; align-items: center; }
:where(.gp-legacy) .listNavi li a { box-sizing: border-box; height: 100%; width: 100%; }

/* ---- 部品 ---- */
:where(.gp-legacy) .button { border: 1px solid currentColor; display: inline-block; text-align: center; line-height: 1.2em; text-decoration: none; position: relative; z-index: 1; overflow: hidden; box-sizing: border-box; transition: all .3s; }
:where(.gp-legacy) a.button.page { display: inline-block; min-width: 240px; padding: 18px 5%; border-radius: 100px; text-align: center; }
:where(.gp-legacy) .listNavi li a { color: var(--color-primary); border-radius: 50%; }
:where(.gp-legacy) .listNavi li.this a { background-color: var(--color-primary); color: #FFFFFF; }
:where(.gp-legacy) .bg_gray { background-color: #F2F2F2; }
:where(.gp-legacy) .b_shadow { box-shadow: 3px 3px 5px 0 rgba(0, 0, 0, .2); overflow: hidden; }
:where(.gp-legacy) .fw9 { font-weight: 900; }
:where(.gp-legacy) .ft24 { font-size: clamp(calc(var(--lg-rem) * .9), 2.4vw, calc(var(--lg-rem) * 1.4)); }
:where(.gp-legacy) .lh16 { line-height: 160%; }
:where(.gp-legacy) .lh18 { line-height: 180%; }
:where(.gp-legacy) .mb3 { margin-bottom: 3%; }
:where(.gp-legacy) .mb5 { margin-bottom: 5%; }

@media screen and (min-width: 600px) {
  :where(.gp-legacy) .listNavi li { flex-basis: 40px; height: 40px; margin: 0 5px; }
  :where(.gp-legacy) #primary { flex: 1; }
  :where(.gp-legacy) #primary + #secondary { flex-basis: 280px; margin-left: calc(var(--lg-rem) * 2); }
}
@media (min-width: 960px) {
  :where(.gp-legacy) .listNavi li:not(.this) a:hover { background-color: var(--color-primary); color: #FFFFFF; }
}
@media screen and (max-width: 600px) {
  :where(.gp-legacy) #lg-content .detail { width: 98%; }
  :where(.gp-legacy) .listNavi li { flex-basis: 10vw; height: 10vw; margin: 0 .5vw; }
  :where(.gp-legacy) #primary, :where(.gp-legacy) #secondary { flex-basis: 100%; }
}

/* ---- FV（写真つきの見出し） ---- */
:where(.gp-legacy) #lg-main { position: relative; overflow: hidden; color: #FFFFFF; }
:where(.gp-legacy) #lg-main.grad::before {
  content: ""; display: block; width: 100%; height: 100%; position: absolute; top: 0; left: 0; z-index: 3;
  background: linear-gradient(to right, rgba(4, 35, 102, .8) 0%, rgba(0, 113, 188, .5) 13%, rgba(102, 45, 145, .3) 29%, rgba(102, 45, 145, 0) 67%, rgba(102, 45, 145, 0) 100%);
}
/* 旧サイトは画像の自然な幅（最大1920px）のまま中央に置く。1920px を超える画面で左右が空かないよう width:100% にしてある（1920px 以下は同じ見た目） */
/* 現サイトはスマホ幅で写真の高さが枠に届かず上下に帯が出るため、届かないときだけ枠いっぱいに広げる（--up は上に10%ずらすので125%） */
:where(.gp-legacy) .lg-fv-img { position: absolute; top: 50%; left: 50%; width: 100%; min-height: 100%; object-fit: cover; transform: translateX(-50%) translateY(-50%); }
:where(.gp-legacy) .lg-fv-img--up { min-height: 125%; transform: translateX(-50%) translateY(-60%); }
:where(.gp-legacy) #lg-main h1 { position: relative; z-index: 3; }
:where(.gp-legacy) #lg-main h1 span { display: block; }
:where(.gp-legacy) #lg-main h1 .en { font-size: clamp(calc(var(--lg-rem) * 3), 6vw, calc(var(--lg-rem) * 4.5)); }
:where(.gp-legacy) #lg-main h1 .jp { font-size: clamp(calc(var(--lg-rem) * 1.4), 2vw, calc(var(--lg-rem) * 1.8)); }
@media screen and (orientation: landscape) { :where(.gp-legacy) #lg-main h1 { margin: 20vh 0 10vh; } }
@media screen and (orientation: portrait) { :where(.gp-legacy) #lg-main h1 { margin: 8vh 0 2vh; } }

/* ---- 採用情報（recruit） ---- */
/* 旧サイトの「見出しの直後の p」の指定（section h2+p）。このページは見出しを省くので、リード文に直接つけている */
:where(.gp-legacy) .lg-lead { margin-bottom: calc(var(--lg-rem) * 3); }
:where(.gp-legacy) #recruit div.flex-wrap { background-color: #FFFFFF; border-radius: 20px; overflow: hidden; }
:where(.gp-legacy) #recruit div.flex-wrap:not(:last-child) { margin: var(--lg-margin-below); }
:where(.gp-legacy) #recruit .text h3 { margin-bottom: var(--lg-rem); }
:where(.gp-legacy) #recruit dt { width: 6em; margin: 0; padding: calc(var(--lg-rem) * .5) 0; }
:where(.gp-legacy) #recruit dd { width: calc(100% - 7em); margin: 0; padding: calc(var(--lg-rem) * .5) 0; }
@media screen and (min-width: 960px) {
  :where(.gp-legacy) .lg-lead { text-align: center; }
  :where(.gp-legacy) #recruit .flex-wrap > .image { flex-basis: 46%; }
  :where(.gp-legacy) #recruit .flex-wrap > .image + * { flex-basis: 52%; padding: var(--lg-rem) 0 0; }
}
@media screen and (max-width: 960px) {
  :where(.gp-legacy) #recruit div.flex-wrap > * { flex-basis: 100%; }
  :where(.gp-legacy) #recruit .flex-wrap > .text { padding: calc(var(--lg-rem) * 2); }
}

/* ---- お知らせ（info） ---- */
:where(.gp-legacy) #primary .list { overflow: hidden; }
:where(.gp-legacy) #primary .list > * { padding: calc(var(--lg-rem) * 2) var(--lg-rem); margin: 0; }
:where(.gp-legacy) #primary .list > *:nth-child(even) { background-color: #FAFAFA; }
:where(.gp-legacy) #info .list .date { width: 7em; }
:where(.gp-legacy) #info .list .title { flex: 1; }
:where(.gp-legacy) .wp-block-image img { box-sizing: border-box; height: auto; max-width: 100%; vertical-align: bottom; }
:where(.gp-legacy) .lg-banner-norikae { border: 3px solid #E75406; }
@media screen and (min-width: 960px) {
  :where(.gp-legacy) #primary + #secondary { flex-basis: 340px; margin-left: calc(var(--lg-rem) * 4); }
}

/* ---- プライバシーポリシー・利用規約 ---- */
:where(.gp-legacy) .detail h3 { margin-bottom: calc(var(--lg-rem) * .5); }
:where(.gp-legacy) ol.v1 { list-style: none; }
:where(.gp-legacy) ol.v1 > li { text-indent: -1.5em; }
:where(.gp-legacy) ol.v1 > li * { text-indent: 0; }
:where(.gp-legacy) ol.v1 > li:nth-child(1)::before { content: "\02460"; }
:where(.gp-legacy) ol.v1 > li:nth-child(2)::before { content: "\02461"; }
:where(.gp-legacy) ol.v1 > li:nth-child(3)::before { content: "\02462"; }
:where(.gp-legacy) ol.v1 > li:nth-child(4)::before { content: "\02463"; }
:where(.gp-legacy) ol.v1 > li:nth-child(5)::before { content: "\02464"; }
:where(.gp-legacy) ol.v1 > li:nth-child(6)::before { content: "\02465"; }
:where(.gp-legacy) ol.v1 > li:nth-child(7)::before { content: "\02466"; }
:where(.gp-legacy) ol.v1 > li:nth-child(8)::before { content: "\02467"; }
:where(.gp-legacy) ol.v1 > li:nth-child(9)::before { content: "\02468"; }
:where(.gp-legacy) ol.v1 > li:nth-child(10)::before { content: "\02469"; }
:where(.gp-legacy) ol.v1 > li:nth-child(11)::before { content: "\0246a"; }
:where(.gp-legacy) ol.v1 > li:nth-child(12)::before { content: "\0246b"; }
:where(.gp-legacy) ol.v1 > li:nth-child(13)::before { content: "\0246c"; }
:where(.gp-legacy) ol.v1 > li:nth-child(14)::before { content: "\0246d"; }
:where(.gp-legacy) ol.v1 > li:nth-child(15)::before { content: "\0246e"; }
:where(.gp-legacy) ol.v1 > li:nth-child(16)::before { content: "\0246f"; }
:where(.gp-legacy) ol.v1 > li:nth-child(17)::before { content: "\02470"; }
:where(.gp-legacy) ol.v1 > li:nth-child(18)::before { content: "\02471"; }
:where(.gp-legacy) ol.v1 > li:nth-child(19)::before { content: "\02472"; }
:where(.gp-legacy) ol.v1 > li:nth-child(20)::before { content: "\02473"; }
:where(.gp-legacy) ol.v3 { list-style: lower-roman; }
:where(.gp-legacy) .lg-btn-wrap { text-align: center; }
:where(.gp-legacy) .lg-btn-top { margin: calc(var(--lg-rem) * 2) auto; }
@media screen and (min-width: 960px) {
  :where(.gp-legacy) .button.trans:hover { background-color: var(--color-font); color: #FFFFFF; }
}
