@charset "utf-8";

/*********************************************************************
*
*  For single-job-2nd.php (記事ページ(2nd)) 専用スタイル
*
*  すべてのセレクタを .sec_post_wrap:has(> .job_header) 配下に限定し、
*  .post_content 内を除き HTML タグへの直接スタイルは避けてクラス指定にする
*********************************************************************/

.sec_post_wrap:has(> .job_header) {
    font-family: -apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Helvetica Neue", HelveticaNeue, YuGothic, "Yu Gothic Medium", "Yu Gothic", Verdana, Meiryo, sans-serif;
}

/* --- レイアウト: .job_header / main / aside を縦一列で配置 --- */
@media (min-width: 920px) {
    .sec_post_wrap:has(> .job_header) {
        max-width: 800px;
        margin: 0 auto;
        padding: 50px 40px;
        box-sizing: border-box;
        font-family: -apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Helvetica Neue", HelveticaNeue, YuGothic, "Yu Gothic Medium", "Yu Gothic", Verdana, Meiryo, sans-serif;
    }
}

@media (max-width: 919px) {
    .sec_post_wrap:has(> .job_header) {
        padding: 35px 15px;
    }
}

/* --- 募集終了アラート --- */
.sec_post_wrap:has(> .job_header) .job_ended_alert {
    margin: 0 0 30px;
    padding: 16px 20px;
    background-color: #fdecea;
    border: 1px solid #f5c2c0;
    border-radius: 5px;
    color: #a0332d;
}

.sec_post_wrap:has(> .job_header) .job_ended_alert_text {
    margin: 0;
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1.5;
    text-align: center;
}

/* --- .job_header 全体 --- */
.sec_post_wrap:has(> .job_header) .job_header {
    margin-bottom: 60px;
}

.sec_post_wrap:has(> .job_header) .job_title {
    margin: 8px 0 0;
    color: #231815;
    font-size: 2.4rem;
    font-weight: bold;
    line-height: 1.5;
}

.sec_post_wrap:has(> .job_header) .pr_label {
    margin-top: 8px;
    font-size: 1.2rem;
    color: #898989;
    font-weight: 300;
    line-height: 1.4;
}

.sec_post_wrap:has(> .job_header) .pr_link {
    color: #898989;
    text-decoration: underline;
}

.sec_post_wrap:has(> .job_header) .pr_link:hover {
    opacity: 0.6;
}

.sec_post_wrap:has(> .job_header) .job_cat_badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.sec_post_wrap:has(> .job_header) .job_cat_badge {
    margin: 0;
}

.sec_post_wrap:has(> .job_header) .job_cat_badge_link {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 999px;
    background-color: #fff;
    color: #231815;
    font-size: 1.2rem;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.sec_post_wrap:has(> .job_header) .job_cat_badge_link:hover {
    background-color: #2a2b2b;
    border-color: #2a2b2b;
    color: #fff;
}

.sec_post_wrap:has(> .job_header) .lead {
    margin-top: 25px;
    color: #231815;
    font-size: 1.6rem;
    line-height: 1.8;
}

.sec_post_wrap:has(> .job_header) .client_img {
    margin-top: 40px;
    text-align: center;
}

.sec_post_wrap:has(> .job_header) .client_img_pic {
    display: inline-block;
    max-width: 100%;
    height: auto;
}

.sec_post_wrap:has(> .job_header) .client_projects_swiper {
    overflow: hidden;
    padding-bottom: 20px;
}

.sec_post_wrap:has(> .job_header) .swiper-button-prev,
.sec_post_wrap:has(> .job_header) .swiper-button-next {
    --swiper-navigation-size: 14px;
    --swiper-navigation-color: #231815;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

@media (max-width: 919px) {
    .sec_post_wrap:has(> .job_header) .swiper-button-prev,
    .sec_post_wrap:has(> .job_header) .swiper-button-next {
        display: none;
    }
}

.sec_post_wrap:has(> .job_header) .client_projects_scrollbar {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 6px;
    background-color: #ececec;
    border-radius: 3px;
    z-index: 1;
}

.sec_post_wrap:has(> .job_header) .client_projects {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sec_post_wrap:has(> .job_header) .client_project {
    width: 300px;
    margin: 0;
    flex-shrink: 0;
}

.sec_post_wrap:has(> .job_header) .client_project_pic {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
}

.sec_post_wrap:has(> .job_header) .client_project_btn {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.sec_post_wrap:has(> .job_header) .client_project_caption {
    margin: 8px 0 0;
    font-size: 1.2rem;
    line-height: 1.4;
}

.project_modal {
    width: min(92vw, 1100px);
    max-width: none;
    max-height: 92vh;
    padding: 0;
    border: none;
    border-radius: 10px;
    background-color: #fff;
    overflow: visible;
    /* 閉/開アニメーション: フェードイン＋少し拡大。非対応ブラウザは即時表示に劣化 */
    opacity: 0;
    transform: scale(0.95);
    transition-property: opacity, transform, display, overlay;
    transition-duration: 0.2s;
    transition-timing-function: ease-out;
    transition-behavior: allow-discrete;
}

.project_modal[open] {
    opacity: 1;
    transform: scale(1);
}

@starting-style {
    .project_modal[open] {
        opacity: 0;
        transform: scale(0.95);
    }
}

.project_modal::backdrop {
    background-color: rgba(0, 0, 0, 0);
    transition: display 0.2s allow-discrete, overlay 0.2s allow-discrete, background-color 0.2s ease-out;
}

.project_modal[open]::backdrop {
    background-color: rgba(0, 0, 0, 0.7);
}

@starting-style {
    .project_modal[open]::backdrop {
        background-color: rgba(0, 0, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .project_modal {
        transform: none;
        transition-duration: 0.1s;
    }

    @starting-style {
        .project_modal[open] {
            transform: none;
        }
    }
}

.project_modal_close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.project_modal_close::before,
.project_modal_close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background-color: #333;
}

.project_modal_close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.project_modal_close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.project_modal_figure {
    margin: 0;
    padding: 16px;
}

.project_modal_pic {
    display: block;
    width: 100%;
    max-height: calc(92vh - 32px - 3em);
    object-fit: contain;
}

.project_modal_caption {
    margin: 12px 0 0;
    font-size: 1.4rem;
    line-height: 1.5;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .project_modal_close {
        top: -12px;
        right: -12px;
        width: 36px;
        height: 36px;
    }
}

.sec_post_wrap:has(> .job_header) .related_articles_swiper {
    overflow: hidden;
    padding-bottom: 20px;
}

.sec_post_wrap:has(> .job_header) .related_articles {
    margin: 0;
}

.sec_post_wrap:has(> .job_header) .related_articles.swiper-wrapper {
    display: flex;
}

.sec_post_wrap:has(> .job_header) .related_articles .swiper-slide {
    width: 280px;
    flex-shrink: 0;
}

.sec_post_wrap:has(> .job_header) .related_articles_scrollbar {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 6px;
    background-color: #ececec;
    border-radius: 3px;
    z-index: 1;
}

@media (max-width: 919px) {
    .sec_post_wrap:has(> .job_header) .related_articles .swiper-slide {
        width: 240px;
    }
}

/* --- 汎用: section.job_block + h2.job_block_title + content --- */
.sec_post_wrap:has(> .job_header) .job_block_title {
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #bdbdbe;
    font-size: 1.4rem;
    font-weight: bold;
    color: #231815;
    line-height: 1.4;
}

.sec_post_wrap:has(> .job_header) .job_header .job_block {
    margin-top: 50px;
}

/* --- job_info テーブル --- */
.sec_post_wrap:has(> .job_header) .job_info {
    width: 100%;
    margin-top: 30px;
    border: 1px solid #aeb9c4;
    border-collapse: collapse;
    word-break: break-all;
}

.sec_post_wrap:has(> .job_header) .job_info_label,
.sec_post_wrap:has(> .job_header) .job_info_value {
    padding: 15px 20px;
    border: 1px solid #bdbdbe;
    vertical-align: top;
    text-align: left;
    font-size: 1.4rem;
    line-height: 1.7;
}

.sec_post_wrap:has(> .job_header) .job_info_label {
    width: 160px;
    background-color: #f8f8f8;
    font-weight: bold;
    white-space: nowrap;
}

/* 会社情報セル内の WYSIWYG（.post_content）は文字のベースサイズだけセルに合わせる（リンク下線は .post_content a を流用） */
.sec_post_wrap:has(> .job_header) .job_main .job_info_value .post_content {
    font-size: inherit;
}

@media (max-width: 919px) {
    .sec_post_wrap:has(> .job_header) .job_info {
        border: none;
        border-bottom: 1px solid #bdbdbe;
    }
    .sec_post_wrap:has(> .job_header) .job_info_label,
    .sec_post_wrap:has(> .job_header) .job_info_value {
        display: block;
        width: 100%;
        border-bottom: none;
    }
    .sec_post_wrap:has(> .job_header) .job_info_label {
        padding: 10px 10px;
        white-space: normal;
    }
    .sec_post_wrap:has(> .job_header) .job_info_value {
        padding: 10px 10px 10px 20px;
        font-size: 1.2rem;
    }
}

.sec_post_wrap:has(> .job_header) .job_info_location_item {
    display: block;
}

.sec_post_wrap:has(> .job_header) .job_info_location_item + .job_info_location_item {
    margin-top: 1em;
}

/* --- サマリー募集要項から詳細へのリンク --- */
.sec_post_wrap:has(> .job_header) .job_info_more {
    margin: 15px 0 0;
    text-align: right;
}

.sec_post_wrap:has(> .job_header) .job_info_more_link {
    display: inline-block;
    font-size: 1.3rem;
    color: #231815;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}

.sec_post_wrap:has(> .job_header) .job_info_more_link::after {
    content: " ↓";
}

.sec_post_wrap:has(> .job_header) .job_info_more_link:hover {
    opacity: 0.7;
}

/* --- 応募CTA --- */
.sec_post_wrap:has(> .job_header) .apply_wrap {
    margin-top: 40px;
    text-align: center;
}

.sec_post_wrap:has(> .job_header) .apply_btn {
    display: inline-block;
    min-width: 350px;
    height: 56px;
    padding: 0 30px;
    line-height: 56px;
    border: 1px solid #2a2b2b;
    color: #fff;
    font-size: 1.6rem;
    text-align: center;
    text-decoration: none !important;
    background-color: #2a2b2b;
    border-radius: 5px;
    transition: 0.3s ease-in-out;
}

.sec_post_wrap:has(> .job_header) .apply_btn:hover {
    color: #2a2b2b;
    background-color: #fff;
}

.sec_post_wrap:has(> .job_header) .apply_btn_disabled {
    border-color: #bdbdbe;
    background-color: #bdbdbe;
    color: #fff;
    cursor: not-allowed;
    pointer-events: none;
}

.sec_post_wrap:has(> .job_header) .apply_btn_disabled:hover {
    border-color: #bdbdbe;
    background-color: #bdbdbe;
    color: #fff;
}

.sec_post_wrap:has(> .job_header) .apply_flow {
    margin: 24px auto 0;
    padding: 20px 24px;
    max-width: 480px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background-color: #fafafa;
    text-align: left;
}

.sec_post_wrap:has(> .job_header) .apply_flow_list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sec_post_wrap:has(> .job_header) .apply_flow_step {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 1.3rem;
    line-height: 1.6;
    color: #2a2b2b;
}

.sec_post_wrap:has(> .job_header) .apply_flow_step + .apply_flow_step {
    margin-top: 10px;
}

.sec_post_wrap:has(> .job_header) .apply_flow_step_num {
    flex-shrink: 0;
    font-weight: bold;
}

.sec_post_wrap:has(> .job_header) .apply_flow_note {
    margin: 12px 0 0;
    font-size: 1.1rem;
    color: #898989;
    line-height: 1.5;
}

@media (max-width: 919px) {
    .sec_post_wrap:has(> .job_header) .apply_btn {
        min-width: 0;
        width: 100%;
    }
}

/* --- main 内コンテンツ --- */
.sec_post_wrap:has(> .job_header) .job_main .post_content {
    font-size: 1.6rem;
    line-height: 1.8;
    color: #231815;
}

.sec_post_wrap:has(> .job_header) .job_main .post_content > * + * {
    margin-top: 1em;
}

.sec_post_wrap:has(> .job_header) .job_main .post_content h2 {
    margin-top: 2em;
    padding-bottom: 0.4em;
    border-bottom: 1px solid #bdbdbe;
    font-size: 2.0rem;
    font-weight: bold;
    line-height: 1.5;
}

.sec_post_wrap:has(> .job_header) .job_main .post_content h3 {
    margin-top: 1.8em;
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1.5;
}

.sec_post_wrap:has(> .job_header) .job_main .post_content h4 {
    margin-top: 1.6em;
    font-size: 1.6rem;
    font-weight: bold;
    line-height: 1.5;
}

.sec_post_wrap:has(> .job_header) .job_main .post_content a {
    color: #1f6feb;
    text-decoration: underline;
}

.sec_post_wrap:has(> .job_header) .job_main .post_content a:hover {
    opacity: 0.6;
}

.sec_post_wrap:has(> .job_header) .job_main .post_content ul,
.sec_post_wrap:has(> .job_header) .job_main .post_content ol {
    padding-left: 1.5em;
}

.sec_post_wrap:has(> .job_header) .job_main .post_content ul {
    list-style: disc;
}

.sec_post_wrap:has(> .job_header) .job_main .post_content ol {
    list-style: decimal;
}

.sec_post_wrap:has(> .job_header) .job_main .post_content li + li {
    margin-top: 0.4em;
}

.sec_post_wrap:has(> .job_header) .job_main .post_content blockquote {
    margin-left: 0;
    margin-right: 0;
    padding: 15px 20px;
    border-left: 3px solid #bdbdbe;
    background-color: #f8f8f8;
    color: #555;
    font-size: 1.4rem;
}

.sec_post_wrap:has(> .job_header) .job_main .post_content img {
    max-width: 100%;
    height: auto;
}

.sec_post_wrap:has(> .job_header) .job_main .post_content figure {
    margin-left: 0;
    margin-right: 0;
}

.sec_post_wrap:has(> .job_header) .job_main .post_content figcaption {
    margin-top: 8px;
    font-size: 1.2rem;
    color: #898989;
    line-height: 1.5;
}

.sec_post_wrap:has(> .job_header) .job_main .post_content table {
    width: 100%;
    border-collapse: collapse;
}

.sec_post_wrap:has(> .job_header) .job_main .post_content table th,
.sec_post_wrap:has(> .job_header) .job_main .post_content table td {
    padding: 10px 15px;
    border: 1px solid #bdbdbe;
    font-size: 1.4rem;
    line-height: 1.7;
    text-align: left;
}

.sec_post_wrap:has(> .job_header) .job_main .post_content table th {
    background-color: #f8f8f8;
    font-weight: bold;
}

.sec_post_wrap:has(> .job_header) .job_main .post_content code {
    padding: 2px 6px;
    background-color: #f0f0f0;
    border-radius: 3px;
    font-size: 0.9em;
}

.sec_post_wrap:has(> .job_header) .job_main .post_content pre {
    padding: 15px;
    overflow-x: auto;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-size: 1.3rem;
    line-height: 1.6;
}

.sec_post_wrap:has(> .job_header) .job_main .post_content pre code {
    padding: 0;
    background: none;
}

.sec_post_wrap:has(> .job_header) .job_main .post_content hr {
    margin: 2em 0;
    border: 0;
    border-top: 1px solid #bdbdbe;
}

@media (max-width: 919px) {
    .sec_post_wrap:has(> .job_header) .job_main .post_content {
        font-size: 1.4rem;
    }
    .sec_post_wrap:has(> .job_header) .job_main .post_content h2 {
        font-size: 1.7rem;
    }
    .sec_post_wrap:has(> .job_header) .job_main .post_content h3 {
        font-size: 1.5rem;
    }
    .sec_post_wrap:has(> .job_header) .job_main .post_content h4 {
        font-size: 1.4rem;
    }
}

.sec_post_wrap:has(> .job_header) .ceo {
    display: block;
    margin-top: 60px;
    padding: 30px;
    background-color: #f8f8f8;
    border-radius: 8px;
}

.sec_post_wrap:has(> .job_header) .ceo_img {
    width: 120px;
    margin: 0 auto 20px;
}

.sec_post_wrap:has(> .job_header) .ceo_img_pic {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
}

.sec_post_wrap:has(> .job_header) .ceo_name {
    margin: 0;
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #231815;
    line-height: 1.4;
}

.sec_post_wrap:has(> .job_header) .ceo_profile {
    margin-top: 15px;
    font-size: 1.4rem;
    line-height: 1.7;
    color: #231815;
}

.sec_post_wrap:has(> .job_header) .job_main > .job_info {
    margin-top: 60px;
}

/* --- aside (サイドバー) --- */
.sec_post_wrap:has(> .job_header) .job_aside {
    margin-top: 120px;
    display: grid;
    gap: 32px;
}

@media (max-width: 919px) {
    .sec_post_wrap:has(> .job_header) .job_header {
        margin-bottom: 40px;
    }
    .sec_post_wrap:has(> .job_header) .job_title {
        font-size: 1.8rem;
    }
    .sec_post_wrap:has(> .job_header) .lead {
        margin-top: 20px;
        font-size: 1.4rem;
    }
    .sec_post_wrap:has(> .job_header) .client_project {
        width: 220px;
    }
    .sec_post_wrap:has(> .job_header) .ceo {
        margin-top: 40px;
        padding: 20px;
    }
    .sec_post_wrap:has(> .job_header) .job_main > .job_info {
        margin-top: 40px;
    }
    .sec_post_wrap:has(> .job_header) .job_aside {
        margin-top: 80px;
    }
}
