/**
 * Recruit Page Styles - 採用情報ページ
 */

/* ヒーローセクション */
.recruit-hero {
    position: relative;
    height: 289px;
    background-image: url('../../images/recruit-hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(35, 35, 35, 0.3);
    z-index: 1;
}

.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 39.317px;
    height: 31.899px;
}

.logo-text {
    width: 172.077px;
    height: 20.345px;
}

.hero-nav .nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero-nav .nav-menu a {
    color: white;
    text-decoration: none;
    font-family: 'Toppan Bunkyu Mincho', 'Yu Kyokasho', serif;
    font-size: 15px;
    padding: 15px 25px;
    display: block;
    text-align: center;
    width: 154px;
    transition: background-color 0.3s;
}

.hero-nav .nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hero-nav .nav-menu .contact-btn {
    border: 0.5px solid white;
    width: 137px;
}

/* 募集要項セクション */
.recruit-details {
    padding: 80px 0;
    background-color: white;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.recruit-table {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 100px;
}

table {
    margin: 30px 0;
}

.recruit-table th,
.recruit-table td {
    border: none;
}

tr,
.table-row {
    display: flex;
    align-items: flex-start;
    padding: 35px 0;
    border-bottom: 1px solid #e9ecef;
}

tr:last-child,
.table-row:last-child {
    border-bottom: none;
}

td:first-child,
.table-label {
    width: 216px;
    flex-shrink: 0;
    font-family: 'Toppan Bunkyu Mincho', 'Yu Kyokasho', serif;
    font-size: 18px;
    color: black;
    font-weight: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-right: 80px;
}

td:last-child,
.table-content {
    flex: 1;
    font-family: 'Toppan Bunkyu Mincho', 'Yu Kyokasho', serif;
    font-size: 18px;
    color: black;
    line-height: 1.6;
}

.table-content p {
    margin: 0 0 10px 0;
    line-height: 1.6;
}

.table-content p:last-child {
    margin-bottom: 0;
}

.table-content ul {
    margin: 10px 0;
    padding-left: 27px;
    list-style-type: disc;
}

.table-content li {
    margin-bottom: 5px;
    line-height: 1.6;
}

.table-content li:last-child {
    margin-bottom: 0;
}

.table-content strong {
    font-weight: normal;
}

/* 動的な募集職種（ACF使用時） */
.dynamic-positions {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.dynamic-positions h2 {
    font-family: 'Toppan Bunkyu Midashi Mincho', 'Yu Kyokasho', serif;
    font-size: 28px;
    font-weight: 800;
    color: #232323;
    text-align: center;
    margin: 0 0 40px 0;
}

.positions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.position-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.position-card h3 {
    font-family: 'Toppan Bunkyu Midashi Mincho', 'Yu Kyokasho', serif;
    font-size: 20px;
    font-weight: 800;
    color: #232323;
    margin: 0 0 20px 0;
}

.position-details p {
    font-family: 'Toppan Bunkyu Mincho', 'Yu Kyokasho', serif;
    font-size: 16px;
    color: black;
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.position-details p:last-child {
    margin-bottom: 0;
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 40px;
    }

    .recruit-table {
        padding: 0 40px;
    }

    td:first-child,
    .table-label {
        width: 180px;
        margin-right: 60px;
    }

    .positions-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 968px) {
    .hero-nav .nav-menu {
        flex-wrap: wrap;
        gap: 10px;
    }

    .hero-nav .nav-menu a {
        width: auto;
        padding: 10px 15px;
        font-size: 14px;
    }

    .recruit-details {
        padding: 60px 0;
    }

    .recruit-table {
        padding: 0 30px;
    }

    tr,
    .table-row {
        flex-direction: column;
        padding: 25px 0;
    }

    td:first-child,
    .table-label {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
        justify-content: flex-start;
    }

    td:last-child,
    .table-content {
        font-size: 16px;
    }

    .positions-grid {
        grid-template-columns: 1fr;
    }

    .position-card {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .recruit-hero {
        height: 200px;
    }

    .hero-header {
        flex-direction: column;
        gap: 20px;
    }

    .hero-nav .nav-menu {
        justify-content: center;
    }

    .recruit-details {
        padding: 40px 0;
    }

    .recruit-table {
        padding: 0 20px;
    }

    tr,
    .table-row {
        padding: 20px 0;
    }

    td:first-child,
    .table-label {
        font-size: 16px;
        margin-bottom: 10px;
    }

    td:last-child,
    .table-content {
        font-size: 15px;
    }

    .dynamic-positions {
        padding: 40px 0;
    }

    .dynamic-positions h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .position-card {
        padding: 15px;
    }

    .position-card h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .position-details p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .recruit-hero {
        height: 150px;
    }

    .logo-icon {
        width: 30px;
        height: 24px;
    }

    .logo-text {
        width: 130px;
        height: 15px;
    }

    .hero-nav .nav-menu a {
        padding: 8px 12px;
        font-size: 12px;
    }

    .recruit-table {
        padding: 0 15px;
    }

    tr,
    .table-row {
        padding: 15px 0;
    }

    td:first-child,
    .table-label {
        font-size: 15px;
    }

    td:last-child,
    .table-content {
        font-size: 14px;
    }

    .table-content ul {
        padding-left: 20px;
    }

    .dynamic-positions h2 {
        font-size: 20px;
    }

    .position-card h3 {
        font-size: 16px;
    }

    .position-details p {
        font-size: 13px;
    }
}