/* BPO 正社員の応募ページ（entry）と確認・送信完了だけで使う。色や見出しは bpo.css の .p-bpo を使い、ここではページの頭・職種カード・質問・フォームの見た目だけを持つ */
.p-bpo-entry { --sec: 112px; }
.p-bpo-entry .d-none { display: none !important; }

/* 1. ページの頭：トップのキービジュアルの背景を暗く敷き、下を斜めに切って金の線を入れる */
.p-bpo-entryhero { --slant: clamp(28px, 4vw, 72px); position: relative; overflow: hidden; isolation: isolate; padding: calc(120px + 4vw) 0 calc(72px + var(--slant)); color: var(--bpo-white); background: var(--bpo-dark-2); clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%); }
.p-bpo-entryhero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: var(--slant); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cline x1='0' y1='10' x2='100' y2='0' stroke='%23efc33b' stroke-width='6' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; pointer-events: none; } /* 金の線は SVG で描く（グラデーションだと斜めの縁がギザギザになる）。半分は切り口の外に隠れ、見えるのは3px */
.p-bpo-entryhero__bg { position: absolute; inset: 0; z-index: -1; }
.p-bpo-entryhero__bg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; opacity: .45; }
.p-bpo-entryhero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(26, 26, 26, .92) 0%, rgba(26, 26, 26, .7) 55%, rgba(26, 26, 26, .35) 100%); }
.p-bpo-entryhero .p-bpo__eyebrow { color: var(--bpo-accent); }
.p-bpo-entryhero__ttl { word-break: auto-phrase; font-size: clamp(34px, 5.2vw, 64px); font-weight: 900; line-height: 1.35; letter-spacing: .02em; }
.p-bpo-entryhero__lead { margin-top: 24px; font-size: 16px; line-height: 2; color: var(--bpo-on-dark); }
.p-bpo-entryhero__lead p + p { margin-top: 1em; }
.p-bpo-entryhero__catch { font-size: 18px; font-weight: 800; color: var(--bpo-accent); }
.p-bpo-entryhero__small { font-size: 13px; opacity: .85; }
.p-bpo-entryhero.is-small { padding-top: calc(104px + 2vw); padding-bottom: calc(48px + var(--slant)); }
.p-bpo-entryhero.is-small .p-bpo-entryhero__ttl { font-size: clamp(28px, 3.6vw, 44px); }
.p-bpo-entryhero.is-done { min-height: 78svh; padding-bottom: 120px; clip-path: none; } /* 送信完了は下のフッターへそのままつなぐ（斜めに切らない） */
.p-bpo-entryhero.is-done::after { display: none; }
.p-bpo-entryhero__back { display: inline-flex; align-items: center; gap: 14px; margin-top: 40px; padding: 16px 28px; font-size: 15px; font-weight: 700; color: var(--bpo-accent-ink) !important; text-decoration: none; background: var(--bpo-accent); border-radius: var(--bpo-radius); transition: background-color .2s; }
.p-bpo-entryhero__back::after { content: "→"; }
.p-bpo-entryhero__back:hover { background: var(--bpo-accent-hover); }

/* 2. 職種を選ぶカード：押した職種が金の枠になる */
.p-bpo-entryjobs__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.p-bpo-entryjobs__card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 28px 28px 30px; font: inherit; text-align: left; color: var(--bpo-ink); background: var(--bpo-white); border: 2px solid var(--bpo-line); border-radius: var(--bpo-radius); cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.p-bpo-entryjobs__card:hover { border-color: var(--bpo-ink); transform: translateY(-2px); }
.p-bpo-entryjobs__card:focus-visible { outline: 3px solid var(--bpo-accent); outline-offset: 2px; }
.p-bpo-entryjobs__card.is-active { border-color: var(--bpo-accent); box-shadow: 0 0 0 4px rgba(239, 195, 59, .25), 0 14px 30px rgba(26, 26, 26, .08); }
.p-bpo-entryjobs__en { font-family: var(--bpo-en); font-size: 12px; font-weight: 800; letter-spacing: .18em; color: var(--bpo-accent-deep); }
.p-bpo-entryjobs__ttl { font-size: 21px; font-weight: 900; line-height: 1.4; }
.p-bpo-entryjobs__catch { word-break: auto-phrase; font-size: 14px; line-height: 1.8; color: var(--bpo-muted); }
.p-bpo-entryjobs__mark { position: absolute; top: 22px; right: 22px; width: 24px; height: 24px; border: 2px solid var(--bpo-line); border-radius: 50%; transition: background-color .2s, border-color .2s; }
.p-bpo-entryjobs__card.is-active .p-bpo-entryjobs__mark { border-color: var(--bpo-accent); background: var(--bpo-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231a1a1a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.p-bpo-entryjobs__other { margin-top: 24px; font-size: 14px; color: var(--bpo-muted); }
.p-bpo-entryjobs__other a { font-weight: 700; color: var(--bpo-ink); text-decoration: underline; text-underline-offset: 3px; }

/* 4. よくある質問 */
.p-bpo-entryfaq__list { display: grid; gap: 12px; }
.p-bpo-entryfaq__item { background: var(--bpo-base); border-radius: var(--bpo-radius); }
.p-bpo-entryfaq__q { position: relative; display: flex; align-items: center; gap: 16px; padding: 20px 56px 20px 20px; font-size: 16px; font-weight: 800; line-height: 1.6; list-style: none; cursor: pointer; }
.p-bpo-entryfaq__q::-webkit-details-marker { display: none; }
.p-bpo-entryfaq__q::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--bpo-ink); border-bottom: 2px solid var(--bpo-ink); transform: rotate(45deg); transition: transform .2s; }
.p-bpo-entryfaq__item[open] .p-bpo-entryfaq__q::after { margin-top: -2px; transform: rotate(-135deg); }
.p-bpo-entryfaq__a { display: flex; gap: 16px; padding: 0 20px 22px; font-size: 15px; line-height: 1.9; }
.p-bpo-entryfaq__mk { flex: none; display: grid; place-items: center; width: 32px; height: 32px; font-family: var(--bpo-en); font-size: 14px; font-weight: 900; color: var(--bpo-white); background: var(--bpo-ink); border-radius: 50%; }
.p-bpo-entryfaq__mk.is-a { color: var(--bpo-accent-ink); background: var(--bpo-accent); }

/* 5. フォーム：MW WP Form が出す表（.c-table-contact）を、項目名の下に入力欄が来る縦並びにする */
.p-bpo-form .c-box { padding: 48px 56px; background: var(--bpo-white); border-radius: var(--bpo-radius); box-shadow: 0 18px 40px rgba(26, 26, 26, .06); }
.p-bpo-form table, .p-bpo-form tbody, .p-bpo-form tr, .p-bpo-form th, .p-bpo-form td { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.p-bpo-form tr + tr { margin-top: 28px; }
.p-bpo-form th { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 15px; font-weight: 800; }
.p-bpo-form th .required { font-size: 0; }
.p-bpo-form th .required::after { content: "必須"; padding: 2px 8px; font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--bpo-accent-ink); background: var(--bpo-accent); border-radius: 2px; }
.p-bpo-form input[type="text"], .p-bpo-form input[type="email"], .p-bpo-form input[type="tel"], .p-bpo-form select, .p-bpo-form textarea { display: block; width: 100%; max-width: none; padding: 14px 16px; font: inherit; font-size: 16px; line-height: 1.6; color: var(--bpo-ink); background: var(--bpo-base); border: 1px solid var(--bpo-line); border-radius: var(--bpo-radius); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.p-bpo-form select { appearance: none; padding-right: 44px; background: var(--bpo-base) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%231a1a1a' stroke-width='2'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; cursor: pointer; }
.p-bpo-form textarea { min-height: 200px; resize: vertical; }
.p-bpo-form input:focus, .p-bpo-form select:focus, .p-bpo-form textarea:focus { outline: 0; background-color: var(--bpo-white); border-color: var(--bpo-ink); box-shadow: 0 0 0 3px rgba(239, 195, 59, .35); }
.p-bpo-form ::placeholder { color: #9a9a96; }
.p-bpo-form td small { display: block; margin-top: 6px; font-size: 12px !important; color: var(--bpo-muted); }
.p-bpo-form .error { display: block; margin-top: 6px; font-size: 13px; font-weight: 700; color: #c0392b; }
/* 「＊は入力必須項目です」の注意：赤い文字の指定をやめて、控えめに */
.p-bpo-form .js-hide-confirm > span[style] { display: block; margin-top: 32px; font-size: 13px; color: var(--bpo-muted) !important; }
.p-bpo-form .js-hide-confirm > span[style] strong { font-weight: 700; }
.p-bpo-form h3 { margin: 28px 0 10px; font-size: 15px; font-weight: 800; }
.p-bpo-form .c-scrollbox { max-height: 200px; overflow-y: auto; padding: 18px 20px; font-size: 13px; line-height: 1.9; color: var(--bpo-muted); background: var(--bpo-base); border: 1px solid var(--bpo-line); border-radius: var(--bpo-radius); }
.p-bpo-form .c-scrollbox h3 { margin: 16px 0 4px; font-size: 13px; color: var(--bpo-ink); }
.p-bpo-form .c-scrollbox ul { margin: 4px 0; padding-left: 1.4em; }
.p-bpo-form p[style*="center"] { margin-top: 28px; }
.p-bpo-form .mwform-checkbox-field label { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; cursor: pointer; }
.p-bpo-form input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--bpo-ink); }
/* 送信ボタン（確認画面へ／送信する／戻る） */
.p-bpo-form input[type="submit"], .p-bpo-form button[type="submit"] { display: inline-block; min-width: 240px; margin: 4px 6px; padding: 18px 40px; font: inherit; font-size: 16px; font-weight: 800; letter-spacing: .06em; color: var(--bpo-accent-ink); background: var(--bpo-accent); border: 2px solid var(--bpo-accent); border-radius: var(--bpo-radius); cursor: pointer; transition: background-color .2s, transform .2s; }
.p-bpo-form input[type="submit"]:hover { background: var(--bpo-accent-hover); transform: translateY(-1px); }
.p-bpo-form input[name="submitBack"] { color: var(--bpo-ink); background: var(--bpo-white); border: 2px solid var(--bpo-ink); }
.p-bpo-form input[name="submitBack"]:hover { background: var(--bpo-base); }
/* 確認画面：入力した内容を、項目名と値の2列で見せる */
.p-bpo-form.is-confirm tr { display: grid; grid-template-columns: 11em 1fr; align-items: start; gap: 16px; margin: 0; padding: 18px 0; border-bottom: 1px solid var(--bpo-line); }
.p-bpo-form.is-confirm th, .p-bpo-form.is-confirm td { line-height: 28px; } /* 項目名と値の1行目の高さをそろえる */
.p-bpo-form.is-confirm th { margin: 0; color: var(--bpo-muted); white-space: nowrap; }
.p-bpo-form.is-confirm td { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; } /* 改行は MW WP Form が <br> にするので pre-wrap は使わない（HTMLの空白まで行になり、値が下にずれていた） */
.p-bpo-form.is-confirm td small { display: none; } /* 「ハイフンなしで」などの入力の注意は、確認画面では出さない */
.p-bpo-form th .required::after { white-space: nowrap; } /* 「必須」が縦に割れないように */

@media (max-width: 991px) {
  .p-bpo-entryjobs__list { grid-template-columns: 1fr; gap: 12px; }
  .p-bpo-entryjobs__card { padding: 20px 56px 22px 20px; }
  .p-bpo-entryjobs__ttl { font-size: 18px; }
  .p-bpo-entryjobs__mark { top: 50%; margin-top: -12px; }
}
@media (max-width: 767px) {
  .p-bpo-entry { --sec: 80px; }
  .p-bpo-entry .p-bpo__inner { padding: 0 20px; }
  .p-bpo-entryhero { padding-top: 112px; }
  .p-bpo-entryhero__lead { font-size: 15px; }
  .p-bpo-entryhero__lead br { display: none; }
  .p-bpo-form .c-box { padding: 28px 20px; }
  .p-bpo-form input[type="submit"] { width: 100%; min-width: 0; margin: 6px 0; }
  .p-bpo-form.is-confirm tr { grid-template-columns: 1fr; gap: 4px; }
}
/* 選考の流れとフォームは同じ灰色の地が続くので、間の余白を詰める */
.p-bpo-entryflow + .p-bpo-entryform { padding-top: 0; }
/* コールスタッフ（業務委託）：正社員3枚の下に、横長で小さく置く */
.p-bpo-entryjobs__card.is-partner { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 8px 24px; flex-wrap: wrap; padding: 18px 64px 18px 28px; }
.p-bpo-entryjobs__card.is-partner .p-bpo-entryjobs__ttl { font-size: 18px; }
.p-bpo-entryjobs__card.is-partner .p-bpo-entryjobs__mark { top: 50%; margin-top: -12px; }
/* 選考の流れ：コールスタッフを選んだときの差し替え */
.p-bpo-entryflow__partner[hidden], .p-bpo-entryflow .p-bpo-flow__panel[hidden] { display: none; }
.p-bpo-entryflow__label { display: inline-block; padding: 6px 14px; font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--bpo-accent-ink); background: var(--bpo-accent); border-radius: 99px; }
.p-bpo-entryflow__txt { margin-top: 16px; font-size: 17px; font-weight: 700; line-height: 1.9; }
@media (max-width: 991px) {
  .p-bpo-entryjobs__card.is-partner { padding: 16px 56px 16px 20px; flex-direction: column; align-items: flex-start; gap: 4px; }
}
