/*
 * 応募者側の文書の画面（プライバシーポリシー・利用規約・WORKL トライアル申込みの完了）。方向 1（ブランド帯 × 白カード）。
 * base.css の後に読む。部品の名前は docs/design/applicant-redesign/01-job-pages.md の「3-3（求人側）の設計」。
 */

/* 短い画面（完了の画面）でも、フッターを画面の下端に置く */
.ap-doc-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.ap-doc-page > main {
    flex: 1 0 auto;
}

/* ---- 帯（ページの題） ---- */
.ap-doc-hero {
    padding: 24px 0 22px;
}

.ap-doc-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

/* 見出しの飾りの線（文字ではないので、地とのコントラストの基準は 3:1） */
.ap-doc-hero__eyebrow::before {
    content: "";
    width: 18px;
    height: 3px;
    border-radius: 2px;
    background: var(--brand-marker);
}

.ap-doc-hero__title {
    margin: 4px 0 0;
    color: #ffffff;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: 0.02em;
}

/* ---- 本文のカード ---- */
.ap-doc {
    max-width: 880px;
    padding-top: 20px;
}

.ap-doc__card {
    padding: 22px 18px;
}

.ap-doc__card > :first-child {
    margin-top: 0;
}

.ap-doc__card > :last-child {
    margin-bottom: 0;
}

.ap-doc p {
    margin: 0 0 12px;
    overflow-wrap: anywhere;
}

/* ポリシーの番号付きの項目（番号は丸い印で出す。読み上げは ol の番号） */
.ap-doc__items {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: ap-doc-item;
}

.ap-doc__items > li {
    position: relative;
    margin: 0;
    padding: 18px 0 0 40px;
    border-top: 1px solid #eceee9;
    counter-increment: ap-doc-item;
}

.ap-doc__items > li + li {
    margin-top: 18px;
}

.ap-doc__items > li::before {
    content: counter(ap-doc-item);
    position: absolute;
    left: 0;
    top: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand-deep);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.ap-doc__item-title {
    margin: 2px 0 6px;
    color: var(--brand-ink);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.6;
}

/* 箇条書き（印は黒丸） */
.ap-doc__bullets {
    margin: 8px 0 0;
    padding: 0 0 0 1.4em;
    list-style: disc;
}

.ap-doc__bullets > li {
    margin: 2px 0;
    list-style: disc;
}

.ap-doc__bullets > li::marker {
    color: var(--brand-deep);
}

/* 利用規約の条（見出しの左に帯の色の線。項目の番号は本文の文字にあるので、印は付けない） */
.ap-doc__article-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 30px 0 10px;
    padding: 0 0 8px;
    border-bottom: 1px solid #eceee9;
    color: var(--brand-ink);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.6;
}

.ap-doc__article-title::before {
    content: "";
    flex: none;
    align-self: stretch;
    width: 4px;
    border-radius: 2px;
    background: var(--brand-base);
}

.ap-doc__clauses {
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

.ap-doc__clauses > li {
    margin: 4px 0;
    list-style: none;
    overflow-wrap: anywhere;
}

/* 条項の中の (1)〜(n) は、1 字下げて階層を見せる（旧画面は親の条項と同じ位置だった） */
.ap-doc__clauses .ap-doc__clauses {
    margin: 4px 0 8px;
    padding-left: 1em;
}

/* 完了の画面（印と文言） */
.ap-doc__done {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.ap-doc__done-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brand-tint);
    color: var(--brand-deep);
}

.ap-doc__done-mark .ap-icon {
    width: 30px;
    height: 30px;
    stroke-width: 2.4;
}

.ap-doc__done p {
    margin: 0;
    text-align: left;
}

@media (min-width: 768px) {
    .ap-doc-hero {
        padding: 40px 0 32px;
    }

    .ap-doc-hero__title {
        font-size: 32px;
    }

    .ap-doc {
        padding-top: 28px;
    }

    .ap-doc__card {
        padding: 36px 44px;
    }
}
