:root {
    --main-img-width: 100vw;
    --main-img-height: calc(var(--main-img-width) / 2.5);
}
.main-img-wrapper {
    text-align: center;
}
.main-img {
    max-width: 1000px;
    max-height: 400px;
    width: var(--main-img-width);
    height: var(--main-img-height);
    object-fit: cover;
}
.main {
    width: 90%;
    margin: auto;
    padding: 24px 0;
    line-height: 1.7;
}
.main-message {
    width: 100%;
}
.main-message-title {
    font-size: 24px;
    font-weight: bold;
    margin-top: 24px;
}
.main-message-occupation {
    align-items: center;
    background-color: #fff;
    border-radius: 0;
    color: #4a4a4a;
    display: inline-flex;
    font-size: 16px;
    height: 2em;
    justify-content: center;
    line-height: 1.5;
    padding-left: .75em;
    padding-right: .75em;
    white-space: nowrap;
    border: 1px solid #65DFE1;
}
.main-message-company_name {
    font-size: 18px;
    font-weight: bold;
}
.company-main-info {
    background-color: #F4F5F6;
    padding: 16px;
    margin-top: 24px;
}
.item-wrapper {
    display: flex;
}
.work-type {
    margin-left: 16px;
}
.main-container {
    display: flex;
    justify-content: center;
    opacity: 1;
    transition: 1s;
}
.work-content {
    margin-bottom: 64px;
}
.work-content > p {
    padding-top: 16px;
    white-space: pre-wrap;
    color: #24282A;

}
.section-title {
    font-size: 24px;
    font-weight: bold;
    color: #C82E42;
}
.info-container {
    max-width: 760px;
    width: 100%;
}
.title-article {
    margin-bottom: 56px;
}
.side-container {
    width : 400px;
    padding-right: 24px;
    margin-top: -128px;
}
.page-official-img-wrapper {
    width: 100%;
    margin: auto;
}
.page-official-img-wrapper > img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: top;
    border: 1px solid #EDEDED;
    border-radius: 6px;
    background-color: #F4F5F6;
    margin-bottom: 14px;
}
/* aspect-ratio 未対応ブラウザで画像の元比率になりカードが縦に伸びるのを防ぐ保険。
   手本: front/src/pages/BookingPage.vue の `@supports not (aspect-ratio: 16 / 9)`。
   対応ブラウザでの高さは枠幅 x 9/16 で、PC（.side-container 400px - padding 24px
   - カード padding 40px = 336px）で 189px、SP（.official-page-section の
   max-width 480px - padding 40px = 440px）で 247.5px。その中間の 200px を採る。
   改修前は height:150px 固定でこの失敗モードが無かったため、本改修で新たに必要になった。 */
@supports not (aspect-ratio: 16 / 9) {
    .page-official-img-wrapper > img {
        height: 200px;
    }
}
.page-official-img-wrapper > portal {
    width: 300px;
    height:200px;
    object-fit: cover;
}
.job-page-link {
    display: flex;
    margin-bottom: 24px;
}
.job-page-link-message {
    width: calc(100% - 256px);
    margin-left: 16px;
    color: #2c3e50;
}
.job-page-link-message > p {
    margin-bottom: 8px;
    word-break: break-word;
}
.recommend-company-section {
    top: 0;
    z-index: 5;
}
.official-page-section {
    padding: 20px;
    background: #ffffff;
    border: 1px solid #E9EAEB;
    text-align: left;
    border-radius: 8px 8px 0 0;
    max-width: 480px;
}
.official-page-section >h2,
.same-company-info-section > h2,
.recommend-company-section > h2 {
    margin-bottom: 16px;
}
.same-company-info-section > a,
.recommend-company-section > a {
    cursor: pointer;
} 
.page-img-wrapper {
    width: 30%;
    background-color: rgba(0, 0, 0, 0);
}
.page-img-wrapper > img{
    width: 240px;
    height: 160px;
    object-fit: cover;
}
.link-message-occupation {
    align-items: center;
    background-color: #fff;
    border-radius: 0;
    color: #4a4a4a;
    display: inline-flex;
    font-size: 12px;
    height: 2em;
    justify-content: center;
    line-height: 1.5;
    padding-left: .75em;
    padding-right: .75em;
    white-space: nowrap;
    border: 1px solid #65DFE1;
}
.company-name {
    font-weight: bold;
    color: #C82E42;
}
.apply-btn {
    max-width: 600px;
    width: 240px;
    border-radius: 4px;
    height: 48px;
    /* 企業カードの「簡単エントリーはこちら」がジャンプしてくる着地点。
       旧: #65DFE1 + #fefefe = 1.58:1（ほぼ判読限界）。導線の色を最初から最後まで
       ブランド赤で揃える（要件書 §4.9-c）。 */
    background-color: #C82E42;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 22px;
    font-weight: bold;
}
.apply-btn-wrapper {
    text-align: center;
    margin-bottom: 40px;
}

/* 応募フォーム */
table{
    width: 100%;
}
.apply-for {
    width: 100%;
    max-width: 800px;
    margin: 40px 0px;
    position: relative;
}
.apply-for input:not(.apply-btn), select {
    border: solid 1px #D8D9DA !important;
    border-radius: 6px;
}
.apply-for > form {
    background-color: #FDF8F9;
    padding: 32px;
    border-radius: 6px;
}
.apply-for > h2 {
    font-size: x-large;
    font-weight: 600;
    margin: 16px 0;
}
.errorlist {
    display: none;
}
.apply-for th > label {
    height: 48px;
    text-align: left;
    display: flex;
    align-items: center;
    margin: 8px 0;
    padding-right: 8px;
}
.prapoli {
    padding: 16px;
    text-align: end;
}
.prapoli > a {
    font-size: 12px;
    color: #EE2C98;
}
.apply {
    text-align: center;
}
input, textarea {
    padding: 5px;
    font-size: medium;
    border: none;
    width: -webkit-fill-available;
    background: #ffffff;
    height: 48px;
    margin: 8px 0 !important;
}
select {
    width: 33%;
    background: #ffffff;
    border: none;
    border-radius: 0;
    height: 48px;
}
select[name="birth_year"] {
    width: calc(33% - 8px);
    margin-right: 12px !important;
}
select[name="birth_month"] {
    width: calc(33% - 8px);
    margin-right: 12px !important;
}
select[name="birth_day"] {
    width: calc(33% - 8px);
}
#id_sessionid, label[for="id_sessionid"] {
    display: none !important;
}
.post {
    height: 100%;
    width: 100%;
    position: fixed;
    left: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.7);
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: auto;
    z-index: 1000000000;
}
.post-card {
    height: 50%;
    width: 50%;
    position: fixed;
    left: 25%;
    top: 25%;
    font-size: 20px;
    background:white;
    color: black;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: auto;
    padding: 16px;
    line-height: 2;
    z-index: 1000000000;
}
.icon-red {
    color: #C82E42;
}
.job-title {
    font-size: 18px;
    font-weight: bold;
}
.job-location {
    font-size: 12px;
}
.sticky-box {
    position: sticky;
    top: 88px;
    overflow-y: scroll;
    height: calc(100vh - 96px);
    width: calc(100% - 7.5px);
}
.sticky-box:hover {
    width: 100%;
}
.sticky-box::-webkit-scrollbar {
    width:  15px;
    height: 15px;
    border-radius: 4px;
    display: none;
}
.sticky-box:hover::-webkit-scrollbar {
    display: block;
}
.sticky-box::-webkit-scrollbar-track {
    border: none;
    border-radius: 4px;
}
.sticky-box::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
}
.official-page-section .company-name {
    color: #24282A;
    margin-top: 4px;
    font-size: 15px;
    line-height: 1.6;
}
.official-page-section .company-url {
    color: #4A4A4A;
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.6;
    word-break: break-all;
}
/* bulma の a 既定色（#3273dc）を打ち消し、カード内の色を CTA だけに保つ。
   色を使わない代わりに、リンクであることは下線で示す。 */
.official-page-section .company-url > a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.jump-entry {
    width: 100%;
    height: 48px;
    font-size: inherit;
    margin: auto;
    background-color: #C82E42;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    margin-top: 18px;
}
.jump-entry > .jump-btn {
    color: #ffffff;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    line-height: 24px;
}
.jump-entry > a:hover {
    color: #ffffff;
}
.follow-btn-wrapper {
    width: 100%;
    height: 44px;
    margin: auto;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}
.follow-btn-wrapper > .follow-btn {
    font-weight: bold;
    border-radius: 8px;
    background-color: #ffffff;
    border: 1px solid #DBDBDB;
    color: #24282A;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    line-height: 24px;
    font-size: inherit;
    cursor: pointer;
}
.follow-btn-wrapper > .follow-cancell-btn {
    font-weight: bold;
    border-radius: 8px;
    background-color: #E8FAFB;
    border: 1px solid #65DFE1;
    color: #24282A;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    line-height: 24px;
    font-size: inherit;
    cursor: pointer;
}
.novel-title-img {
    padding: 0 24px;
    max-width: 360px;
    margin: auto;
}
.this-company-novel-container {
    background-color: #F4F5F6;
    border-radius: 0 0 8px 8px;
    padding: 24px;
    max-width: 480px;
}
.this-company-novel-container > article {
    margin-top: 24px;
}
.this-novels-info {
    margin-top: 24px;
}
.this-novel-img-wrapper {
    width: 100%;
    height: 144px;
}
.this-novel-company-name {
    color: #C82E42;
    font-size: 14px;
    margin-top: 8px;
}
.this-novel-name {
    font-weight: bold;
    color: #24282A;
}
.this-novel-description {
    font-size: 12px;
    color: #24282A;
    line-height: 1.7;
}
.work-content iframe {
    margin: 16px 0;
    width: 100%;
}
.this-novel-img-wrapper > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.apply-link {
    position: absolute; top: -96px;
}
.responsive-side-container {
    display: none;
}
.modal-container {
    height: 100%;
    width: 100vw;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    background-color: rgba(10, 10, 10, 0.76);
    display: flex;
}
.card-wrapper {
    max-width: 680px;
    width: 100%;
}
.m-card {
    background-color: white;
    -webkit-box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1);
    box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1);
    color: #4a4a4a;
    position: fixed;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    width: 70%;
}
.modal-register-btn {
    color: #C82E42;
    border: solid 1px#F4B8C5;
    cursor: pointer;
    border-radius: 24px;
    background-color: #ffffff;
    font-size: 20px;
    padding: 16px;
    margin: 40px 0 16px 0;
    font-weight: bold;
    cursor: pointer;
}
.modal-register-btn:hover {
    background-color: #C82E42;
    color: #ffffff;
}
.login-link {
    color: #C82E42;
    cursor: pointer;
}
.display-none {
    display: none;
}
/* アニメーション */
.robo-form {
    position: fixed;
    width: 100vw;
    height: calc(100vh - 80px);
    top: 0;
    background-color: #feeeff;
    background-image: url(
        data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAHElEQVQYV2P8f/7/f0ZDRkYGKIAzMARgKjFUAABjXQgF7J+YcQAAAABJRU5ErkJggg==
    ) repeat;
    opacity: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}
.image-filter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(
        data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAKUlEQVQYV2NkYGBgCAkJ+b9mzRpGEBsEGNEFwIIwWWQaQxCkE0UQZhQAAR8OAaJiR6AAAAAASUVORK5CYII=
    ) repeat;
    z-index: 500001;
}
.robo-form-main {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 100%;
    max-width: 800px;
    height: 100%;
    background-color: #fffffff9;
    z-index: 500002;
}
.slide-up{
    opacity: 0;
    transition: 1s;
    transform: translateY(100vh);
}
.is-show {
    top: 80px;
    left: 0;
    opacity: 1 !important;
    transform: translateY(0);
}
.is-off {
    opacity: 0;
    transform: translateY(-100vh);
}
/* 表示タグ表示用 */
.recruitpage-tag {
    display: inline-block;
    font-size: 14px !important;
    border-radius: 0 !important;
    background-color: #C82E42 !important;
    color: #fff !important;
    cursor: pointer;
    padding: 5px 10px;
    margin: 0;
    margin-top: 2px;
}

@media screen and (max-width: 1024px) {
    .main-container {
        display: block;
    }
    .side-container {
        padding-bottom: 40px;
    }
    .apply-btn-wrapper {
        margin-bottom: 120px;
    }
    .side-container {
        width: 100%;
        padding-left: 0;
    }
    .page-official-img-wrapper {
        margin: auto;
        margin-bottom: 40px;
    }
    .job-page-link {
        width: 100%;
    }
    .job-page-link-message > p {
        font-size: 14px;
    }
    .job-page-link-message {
        width: 70%;
    }
    .same-company-info-section {
        margin-bottom: 40px;
    }
    .page-img-wrapper {
        width: 240px;
        height: 160px;
        border-radius: 0;
    }
    .side-container {
        display: none;
    }
    .responsive-side-container {
        display: block;
    }
    .official-page-section .company-name {
        font-size: 16px;
    }
}
/* スマホ */
@media screen and (max-width: 500px) {
    .main {
        width: 95%;
    }
    .main-container {
        display: block;
        width: 95vw;
    }
    .job-page-link-message {
        width: 180px;
    }
    .page-img-wrapper {
        width: 120px;
        height: 100%;
        border-radius: 100px;
    }
    .apply-for > form {
        padding: 16px;
    }
    .this-company-novel-container {
        padding: 16px;
    }
    .m-card {
        width: 90%;
    }
    .robo-form{
        height: calc(100vh - 50px);
    }
    .is-show {
        top: 50px;
    }

}
/* 要件 FR-11（求人の Google 露出 B-1）: スマホ幅の応募バー。
   1024px 以下ではサイド欄（簡単エントリー）が本文の後ろへ回るため、入口を画面下部に常時出す。
   PC 幅はサイド欄に入口があるので出さない。 */
.sp-entry-bar {
    display: none;
}
@media screen and (max-width: 1024px) {
    .sp-entry-bar {
        display: flex;
        align-items: center;
        gap: 10px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 20;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
    }
    .sp-entry-bar-note {
        flex: 1 1 auto;
        font-size: 12px;
        color: #64748b;
    }
    .sp-entry-bar-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        padding: 0 22px;
        border-radius: 4px;
        background: #0e7c7e;
        color: #ffffff;
        font-size: 16px;
        font-weight: bold;
        text-decoration: none;
    }
    /* バーに最下部の本文が隠れないよう、同じ高さぶん余白を足す */
    .main {
        padding-bottom: 80px;
    }
    /* 既存の「ページの先頭へ」（common.css の .jump-to-top: fixed / bottom 12px / z-index 9999）が
       バーの左端に重なり案内文を隠すため、バーがあるページではバーの上へ逃がす（実画面 390px で確認）。 */
    body:has(.sp-entry-bar) .jump-to-top {
        bottom: 92px;
    }
}

/* B案: 本文項目へ直接移動。固定ヘッダーを避ける。 */
.job-detail-toc, .job-detail-consult { margin: 20px 0; padding: 16px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; }
.job-detail-toc[hidden], .job-detail-consult[hidden], .job-detail-consult a[hidden] { display: none; }
.job-detail-toc h2, .job-detail-consult h2 { margin: 0 0 12px; font-size: 16px; font-weight: bold; }
.job-detail-toc > div { display: flex; flex-wrap: wrap; gap: 8px; }
.job-detail-toc a, .job-detail-consult a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; max-width: 100%; padding: 8px 12px; box-sizing: border-box; border: 1px solid #df2842; border-radius: 4px; color: #C82E42; text-decoration: underline; overflow-wrap: anywhere; }
.job-detail-consult p { margin-bottom: 12px; line-height: 1.7; }
.job-detail-anchor { scroll-margin-top: 100px; }
.job-detail-toc a:focus-visible, .job-detail-consult a:focus-visible, .job-detail-anchor:focus { outline: 2px solid #0e7c7e; outline-offset: 3px; }
