/* 求人ページ専用スタイル */

/* ========================================
   サブビジュアルセクション
======================================== */
.sub-visual {
    background: rgba(0, 0, 0, 0.4);
    background-size: cover;
    background-position: center center;
    background-blend-mode: overlay;
}

/* 求人ページ用の背景画像 */
body.recruit .sub-visual {
    background-image: url('../../contact/images/recruit.jpg');
}


/* ========================================
   求人紹介セクション（lead-section）
======================================== */
body.recruit .lead-section {
    min-width: auto;
}

body.recruit .lead-section .container {
    background-image: none;
}

.lead-header {
    width: 100%;
}

.lead-header p {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    display: block;
}

/* タブレット時のlead-header左右余白 */
@media (min-width: 769px) and (max-width: 1024px) {
    .lead-header {
        padding-left: 1em;
        padding-right: 1em;
        box-sizing: border-box;
    }
}

/* ========================================
   求人内容セクション（recruit-info-section）
======================================== */
.recruit-info-section {
    background-image: url('../../recruit/images/recruit_bg.jpg');
}

.recruit-info-section .container {
    position: relative;
    z-index: 2;
}

.recruit-layout {
    max-width: 1000px;
    margin: 0 auto;
}

#recruit-heading {
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 30px;
    font-weight: 400;
    color: #fff;
}

#recruit-heading:not(.english-text) {
    font-size: 1em;
    font-family: 'Noto Sans JP', sans-serif;
}

#recruit-heading .english-text {
    font-family: 'Quattrocento', serif;
    font-size: 2.8125em;
    display: block;
}

/* フォトギャラリー幅調整（求人ページ専用） */
.recruit-layout .photo-gallery {
    max-width: 900px;
    margin: 0 auto 3em;
}

/* 求人詳細の情報レイアウト（求人ページ専用） */
.recruit-info {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.recruit-info.recruit-info-layout {
    /* PC幅でも縦積みにする（求人ページのみ） */
    flex-direction: column;
    gap: 2em;
    align-items: flex-start;
}

.recruit-info-left {
    flex: 1;
    box-sizing: border-box;
    background-color: #fff;
}

.recruit-info-left-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* 1/3 text, 2/3 images */
    gap: 1.5em;
    align-items: start;
}

.recruit-info-left-text {
    display: flex;
    flex-direction: column;
    gap: 0; /* トップページのrecruit-infoと同じ余白運用（各要素のmarginに委ねる） */
}

.recruit-info-left-text h3 {
    border-bottom: none; /* content-boxの下線を打ち消し */
    padding-bottom: 0;
}

.recruit-info-left-text p:not(.recruit-details) {
    margin: 0;
}

.recruit-info h3 {
    font-size: 16px;
    margin: 0 0 10px 0; /* 上下マージンを明示してトップページと揃える */
    color: #757575;
    line-height: 1;
}

.recruit-info h3 .english-text {
    font-size: 30px;
    display: block;
    margin-bottom: 2px;
    padding-bottom: 0;
}

.recruit-info .english-text {
    font-family: 'Quattrocento', serif;
    font-weight: 400;
    font-size: 1.3em;
    margin-bottom: 8px;
    display: block;
}

.recruit-info .recruit-details {
    background: none;
    padding: 4px 0 0;
    margin: 0 0 26px 0; /* 上下の余白を統一 */
    font-weight: 400;
    border-top: 1px solid #ddd;
    font-size: 0.75em;
    color: #474747;
}


.recruit-info-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.recruit-info-slide-wrapper {
    position: relative;
}

.recruit-info-slider .slide-frame {
    display: none;
}

.recruit-info-slider .slide-frame.active {
    display: block;
}

.recruit-info-slider .slide-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.recruit-info-right {
    flex: 2;
}

.recruit-info-right h4 {
    font-size: 1.17em;
    font-weight: 400;
    margin: 2em 0 1em 0;
    padding-bottom: 0.6em;
    border-bottom: 1px solid #a3a3a3;
}

.recruit-info-right h4:first-child {
    margin-top: 0;
}

.recruit-info h4 {
    font-size: 1.17em;           /* content-box h3 に合わせる */
    font-weight: 400;
    margin: 2em 0 1em 0;
    padding-bottom: 0.6em;
    border-bottom: 1px solid #a3a3a3;
}

.recruit-info h4:first-child {
    margin-top: 0;
}

.recruit-info p {
    font-size: 0.875em;
    margin-bottom: 0;
    text-align: left;
}

/* 求人インフォメーション定義リスト */
.recruit-info .recruit-information {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #ffffff;
}

.recruit-info .recruit-information tbody tr {
    background-color: #ffffff;
}

.recruit-info .recruit-information tbody tr:first-child td {
    border-top: 1px solid #f0f0f0;
}

.recruit-info .recruit-information tbody tr:last-child td {
    border-bottom: 1px solid #f0f0f0;
}

.recruit-info .recruit-information th {
    padding: 0.8em 1.5em;
    vertical-align: middle;
    font-weight: bold;
    color: #474747;
    font-size: 0.9em;
    text-align: center;
    white-space: nowrap;
    background-color: #eceae9;
    line-height: 1.2;
    border-bottom: 1px solid #ffffff;
    box-sizing: border-box;
}

.recruit-info .recruit-information td {
    padding: 0.5em 1em;
    text-align: left;
    color: #474747;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    font-size: 0.9em;
}

/* 応募方法セクション */
.application-methods-wrapper {
    margin: 2em auto;
    width: fit-content;
    max-width: 100%;
}

body.recruit .recruit-info .application-methods-wrapper {
    margin-top: 1em;
}

.application-methods {
    display: flex;
    gap: 2em;
    margin: 0;
    flex-wrap: wrap;
    width: 100%;
}

.application-methods dd {
    margin: 0;
    text-align: center;
}

.application-methods dd p {
    margin: 0 0 0.5em 0;
    font-weight: bold;
    text-align: center;
}

.application-methods dd img {
    display: block;
    margin: 0 auto;
}

.application-methods-wrapper .btn-more {
    display: block;
    width: 100%;
    margin: 1em auto 0;
    text-decoration: none;
    text-align: center;
}

.application-methods-wrapper .btn-more:hover {
    background: #ffffff;
    color: #1e3c72;
    border: 1px solid #1e3c72;
}

.application-methods-wrapper .btn-more:hover::after {
    border-top-color: #1e3c72;
    border-right-color: #1e3c72;
}

/* ========================================
   レスポンシブ対応
======================================== */
@media (max-width: 768px) {
    .lead-header p {
        text-align: left;
    }
    
    .recruit-info-section .container {
        padding-left: 1em;
        padding-right: 1em;
    }
    
    .recruit-info-left-grid {
        grid-template-columns: 1fr;
    }
    
    .application-methods {
        flex-direction: column;
        gap: 1.5em;
    }
    
    .application-methods div {
        width: 100%;
    }
    
    .application-methods-wrapper .btn-more {
        width: 100%;
        margin: 4em auto 0;
    }
}

@media (max-width: 480px) {
    .recruit-info.recruit-info-layout .recruit-info-left h3 {
        font-size: 1em;
    }
}
