/* ========================================
   求人ページ
   ======================================== */

/* ========================================
   メインコンテンツ
   ======================================== */
/* .page-jobs-index .main-content,
.page-jobs-show .main-content{
    background-color: #f0eff4;
} */
 
.jobs-main {
    padding: 0;
}

.jobs-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ========================================
   2カラムレイアウト
   ======================================== */
.jobs-layout {
    display: grid;
    grid-template-columns: 236px 1fr;
    align-items: flex-start;
    gap: 12px;
}

.jobs-sidebar {
    padding: 16px;
    position: sticky;
    top: 70px;
    z-index: 999;
    background-color: #fff;
    border-radius: 6px;
}

.jobs-content {
    min-width: 0;
    background-color: #fff;
    padding: 12px;
    border-radius: 6px;
}

/* ========================================
   フィルター
   ======================================== */
.jobs-filter {
    background-color: #fff;
    padding: 0;
}

.jobs-filter__field {
    margin-bottom: 10px;
}
.jobs-filter__field p{
    font-size: 13px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--fontcolor2);
}
.jobs-filter__field p img{
    width: 15px;
    height: 16px;
    vertical-align: middle;
    margin-right: 3px;
}
.jobs-filter__input {
    width: 100%;
    height: 34px;
    padding: 6px 8px 7px;
    border: none;
    border-radius: 6px;
    font-family: "Google Sans Flex", 'Noto Sans JP', 'Hiragino Sans', sans-serif;
    font-size: 14px;
    color: var(--fontcolor);
    border:solid 1px #cdcdcd;
    box-sizing: border-box;
    font-weight: 500;
}

.jobs-filter__input::placeholder {
    color: #acacac;
}

.jobs-filter__input:focus {
    outline: none;
    border-color: var(--fontcolor);
}

.jobs-filter__input--amount {
    width: calc(100% - 50px);
}

/* 報酬フィルター */
.jobs-filter__reward {
    margin-bottom: 20px;
}

.jobs-filter__reward-label {
    display: block;
    font-family: "Google Sans Flex", 'Noto Sans JP', 'Hiragino Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--fontcolor);
    margin-bottom: 4px;
}

.jobs-filter__reward-tabs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    margin-bottom: 8px;
}

.jobs-filter__reward-tab {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: "Google Sans Flex", 'Noto Sans JP', 'Hiragino Sans', sans-serif;
    color: var(--fontcolor);
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
}

.jobs-filter__reward-tab input {
    margin: 0;
}

.jobs-filter__reward-tab--active {
    color: var(--fontcolor);
    font-weight: 500;
}

.jobs-filter__reward-amount {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jobs-filter__reward-suffix {
    font-family: "Google Sans Flex", 'Noto Sans JP', 'Hiragino Sans', sans-serif;
    font-size: 12px;
    color: var(--fontgray);
    white-space: nowrap;
}
.jobs-sidebar__submit-btn {
    font-size: 13px;
    height: 36px;
    padding-top: 0;
    background-color: var(--maincolor);
    border-color: var(--maincolor);
}
.jobs-sidebar__submit-btn:hover{
    background-color: #fff;
    border-color: var(--maincolor);
    color:var(--maincolor);
}

/* ========================================
   モバイル用検索バー
   ======================================== */
.jobs-mobile-search {
    display: none;
}

.jobs-mobile-search__input {
    padding-right: 110px;
}

.jobs-mobile-search__detail-toggle {
    position: absolute;
    right: 52px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--btncolor);
    border-radius: 999px;
    padding: 0 14px;
    height: 28px;
    font-family: "Google Sans Flex", 'Noto Sans JP', 'Hiragino Sans', sans-serif;
    font-size: 11px;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
    border: none;
}

.jobs-mobile-search__detail {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

/* ========================================
   リストヘッダー
   ======================================== */
.jobs-list-topheader{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    line-height: 1;
}
.jobs-list-topheader__title {
    font-size: 16px;
    color: var(--fontcolor);
    margin-bottom: 4px;
}

/* ========================================
   FAB投稿ボタン
   ======================================== */
.jobs-fab {
    position: fixed;
    right: 24px;
    bottom: 22px;
    z-index: 100;
    transition: bottom 0.3s ease;
}
.jobs-fab.is-at-bottom {
    bottom: 66px;
}

@media (min-width: 769px) and (max-width: 840px) {
    .jobs-fab {
        bottom: 94px;
    }
}
.jobs-list-topheader__btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    height: auto;
    padding: 14px 28px;
    color: #fff;
    background-color: var(--btncolor);
    border: solid 1px var(--btncolor);
    border-radius: 999px;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.1s ease;
    font-size: 15px;
}
.jobs-list-topheader__btn::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 18px;
    background: url("../images/icons/story_write.svg") no-repeat center center;
    background-size: contain;
    margin-right: 4px;
}
.jobs-list-topheader__btn:hover {
    color: var(--btncolor);
    background-color: #fff;
}
.jobs-list-topheader__btn:hover::before {
    background-image: url("../images/icons/story_write_BK.svg");
}

.jobs-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
}

.jobs-list-header__count {
    font-family: "Google Sans Flex", 'Noto Sans JP', 'Hiragino Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
}
.jobs-list-header__count-number {
    font-size: 17px;
    font-weight: 600;
    margin: 0 2px;
}
.jobs-list-header__sort {
    display: flex;
    gap: 16px;
}

.jobs-list-header__sort-item {
    font-size: 13px;
    color: var(--fontgray);
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
    line-height: 1;
}

.jobs-list-header__sort-item:hover {
    color: var(--fontcolor);
}

.jobs-list-header__sort-item--active {
    color: var(--fontcolor);
    font-weight: 600;
}

/* ========================================
   求人カードリスト
   ======================================== */
.jobs-list {
    display: flex;
    flex-direction: column;
}

.jobs-empty {
    text-align: center;
    padding: 60px 20px;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.jobs-empty p {
    font-family: "Google Sans Flex", 'Noto Sans JP', 'Hiragino Sans', sans-serif;
    font-size: 15px;
    color: #555;
    margin: 0;
}

/* ========================================
   求人カード
   ======================================== */
.job-card {
    border-bottom: solid 1px #f0eff4;
    transition: box-shadow 0.2s;
    padding: 18px 8px;
}

.job-card:hover {
    background-color: #f6f3f6;
}

.job-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.job-card__title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
}

.job-card__reward {
    font-weight: 600;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    font-family: "Helvetica Neue", Helvetica, Arial, "Noto Sans JP", sans-serif;
    font-size: 17px;
}
.job-card__reward-label {
    font-size: 13px;
    margin-right: 2px;
}
.job-card__tag {
    display: inline-block;
    padding: 2px 8px 3px;
    border-radius: 3px;
    font-size: 12px;
    margin-bottom: 8px;
    background-color: #d0a9d82e;
    color: var(--maincolor);
}

.job-card__description {
    font-size: 14px;
    color: var(--fontcolor2);
    line-height: 1.7;
    margin: 0;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

/* ========================================
   ページネーション
   ======================================== */
.jobs-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

/* ========================================
   詳細ページ
   ======================================== */
.job-detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
}
.job-detail-container-inner{
    display: grid;
    grid-template-columns: 1fr 236px;
    align-items: flex-start;
    gap: 12px;
}
.job-detail,
.job-for_action_side {
    background-color: #fff;
    padding: 32px;
    border-radius: 6px;
}
.job-for_action_side{
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
}

.job-detail__title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.5;
}

.job-detail__section {
    margin-bottom: 42px;
}
.job-detail__section.job-detail__section--info{
    margin-bottom: 0;
}
.job-detail__row {
    margin-bottom: 32px;
}

.job-detail__row:last-child {
    margin-bottom: 0;
}

.job-detail__label {
    font-size: 15px;
    line-height: 1;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.job-detail__label::before{
    display: inline-block;
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background-color: var(--maincolor);
}
.job-detail__value {
    font-size: 15px;
    line-height: 1.8;
    color: var(--fontcolor2);
    padding-left: 18px;
}

.job-detail__value--reward {
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
}

.job-detail__value--description {
    margin-top: 12px;
    line-height: 1.8;
    padding-left: 18px;
}

.job-detail__job_type{
    display: inline-block;
    font-size: 12px;
    background-color: #f0eff4;
    border-radius: 3px;
    line-height: 1;
    margin-bottom: 1.2em;
    padding: .6em .8em .4em;
    background-color: #d0a9d82e;
    color: #a93bbf;
}
.job-detail__value-row{
    display: flex;
    gap: 8px;
    align-items: center;
}
.job-detail__value---title{
    background-color: var(--maincolor);
    /* border: solid 1px #ccc; */
    display: inline-block;
    border-radius: 9px;
    padding: .6em .8em;
    font-size: 13px;
    line-height: 1;
    /* margin-bottom: 7px; */
    font-weight: 600;
    color: #fff;
}
.job-detail__skillvalue{
    line-height: 1.5;
}

/* アクション（固定表示） */
.job-detail__actions-fixed {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    z-index: 100;
}

.job-detail__like-btn {
    border: none;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Google Sans Flex", 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
    cursor: pointer;
}
.job-detail__like-btn.is-liked .material-symbols-outlined{
    font-variation-settings: 'FILL' 1;
}
.job-detail__like-btn::after{
    display: block;
    content: "お気に入り";
    font-size: 14px;
}
.job-detail__like-btn.is-liked::after{
    content: "お気に入り済み";
}

.job-detail__apply-btn {
    width: 100%;
    padding: 12px 24px;
    background-color: var(--fontcolor);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.job-detail__apply-btn:hover {
    opacity: 0.8;
}

.job-detail__apply-btn:disabled {
    background-color: var(--fontgray);
    cursor: not-allowed;
        opacity: 1;

}

/* ========================================
   応募確認・完了ダイアログ 共通
   ======================================== */
.job-apply-dialog,
.job-apply-complete-dialog {
    width: 580px;
    max-width: calc(100vw - 40px);
    padding: 32px;
    border: none;
    border-radius: 6px;
    background: #fff;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

.job-apply-dialog::backdrop,
.job-apply-complete-dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.68);
}
.job-apply-dialog__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--fontcolor);
    margin-bottom: 16px;
    text-align: center;
}
.job-apply-dialog__text {
    font-size: 14px;
    line-height: 1.8;
}
.job-apply-dialog__actions {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}
.job-apply-dialog__submit-btn {
    min-width: 140px;
    height: 40px;
    padding: 0 32px;
    background-color: var(--fontcolor);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-family: "Google Sans Flex", 'Noto Sans JP', 'Hiragino Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    line-height: 1;
}

.job-apply-dialog__submit-btn:hover {
    opacity: 0.8;
}

.job-apply-dialog__submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* ========================================
   応募完了ダイアログ
   ======================================== */
.job-apply-complete-dialog__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-apply-complete-dialog__close svg {
    width: 20px;
    height: 20px;
    stroke: var(--fontgray);
}

.job-apply-complete-dialog__body {
    padding: 48px 32px 60px;
    text-align: center;
}

.job-apply-complete-dialog__title {
    font-family: "Google Sans Flex", 'Noto Sans JP', 'Hiragino Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--fontcolor);
    margin: 0 0 24px 0;
}

.job-apply-complete-dialog__text {
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

/* ========================================
   レスポンシブ対応
   ======================================== */
@media (max-width: 768px) {
    .page-jobs-index .main-content, .page-jobs-show .main-content {
        padding-top: 16px;
    }
    .jobs-main{
        padding-top: 0;
    }
    .jobs-container,
    .job-detail-container {
        padding-left: 0;
        padding-right: 0;
    }
    .job-detail-container-inner{
        grid-template-columns: 1fr;
    }
    .jobs-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .jobs-mobile-search {
        display: block;
        position: sticky;
        top: 48px;
        z-index: 999;
        background-color: rgba(255, 255, 255, 0.9);
        padding: 12px 0;
        margin-bottom: 4px;
    }
    .job-detail, .job-for_action_side{
        padding: 20px 0;
    }
    .job-for_action_side{
        padding-top: 0;
    }
    .job-detail__job_type{
        margin-bottom: 8px;
    }
    .job-detail__title{
        font-size: 20px;
        line-height: 1.35;
    }
    .job-detail__value--reward{
        font-size: 18px;
    }
    .job-detail__value---title{
        font-size: 10px;
    }
    .job-detail__section {
        margin-bottom: 20px;
    }
    .job-detail__label{
        font-weight: 600;
    }
    .jobs-sidebar {
        display: none;
    }

    .jobs-list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .job-detail__row {
        margin-bottom: 20px;
    }

    .job-detail__label {
        width: auto;
        margin-bottom: 4px;
    }
    .job-detail__value--description{
        margin-top: 0;
    }
    .job-detail__actions-fixed {
        position: fixed;
        right: 16px;
        top: auto;
        bottom: 90px;
        transform: none;
        flex-direction: row;
        z-index: 100;
    }

    .job-detail__apply-btn {
        width: auto;
    }

    .jobs-fab {
        top: inherit;
        right: 8px;
        bottom: 90px;
    }
    .jobs-fab.is-at-bottom{
        bottom: 86px;
    }
    .jobs-list-topheader__btn {
        width: 56px;
        height: 56px;
        border-radius: 36px;
        padding: 0;
    }
    .jobs-list-topheader__btn::before{
        margin: 0 auto;
    }
    .fab-post-btn__text{
        display: none;
    }
    .jobs-filter__input{
        font-size: 16px;
    }
    .job-card{
        padding: 14px 0;
    }
    .job-card__tag{
        margin-bottom: 6px;
    }
    .job-card__title{
        font-size: 17px;
    }
    .job-card__reward{
        margin-bottom: 4px;
        font-size: 14px;
    }
    .job-card__description{
        font-size: 12px;
    }
}
