@charset "utf-8";

/* ==========================================================================
   Modern Job Detail Page Styles
   ========================================================================== */

:root {
    --color-primary: #ff6500;
    --color-primary-light: #ff8533;
    --color-primary-dark: #e65a00;
    --color-secondary: #f5dd00;
    --color-secondary-dark: #e0ca00;
    --color-text: #333;
    --color-text-light: #666;
    --color-text-lighter: #999;
    --color-bg: #fafafa;
    --color-bg-white: #fff;
    --color-border: #eee;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --transition-base: 0.3s ease;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

.lay_lqd {
    /* max-width: 1000px; */
    margin: 0 auto;
    padding: 0 15px;
}

.lay_lqd #main {
    min-width: 1240px;
}

.modern-detail-container {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
    margin-top: 20px;
}

@media screen and (max-width: 767px) {
    body {
        background-color: #f0f0f0;
        /* Ensure distinctive background */
    }

    .lay_lqd #main {
        min-width: inherit;
    }

    .modern-detail-container {
        margin-bottom: 16px;
        /* Functionally separate blocks */
        border-radius: 8px;
    }

    /* SP: Add space at top of hero card to avoid sticking to header */
    .detail-hero-card {
        margin-top: 20px;
    }
}

/* Header */
.detail_page_head {
    background: linear-gradient(135deg, var(--color-bg-white) 0%, #fff8ee 100%);
    border-bottom: 1px solid var(--color-border);
    padding: 20px 0;
    margin-bottom: 0;
}

@media screen and (max-width: 767px) {

    /* Override global #main background for detail/preview pages */
    #main {
        background: transparent !important;
        box-shadow: none !important;
        padding-top: 0 !important;
    }
}

.detail_page_head h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

/* Grid Layout */
.detail-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
}

@media screen and (min-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .detail-hero {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }
}

/* Hero Section */
.hero-image {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.hero-image img {
    /* max-width: 1000px; */
    width: 100%;
    margin: 0 auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Image Overlay Tags */
.hero-tags-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 5;
}

.hero-tag-overlay {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tag-syokusyu {
    background-color: #ff6500;
    /* Primary color */
}

.tag-koyou {
    background-color: #4caf50;
    /* Green */
}

@media screen and (min-width: 768px) {

    .detail-hero .hero-image img,
    .hero-image img {
        max-width: 750px;
    }

    .hero-image {
        text-align: center;
        background-color: transparent;
        box-shadow: none;
        position: relative;
        /* Ensure relative for absolute children */
        display: block;
        margin: 0 auto;
        width: 100%;
        max-width: 750px;
    }

    /* Wrap hero image to center it but allow absolute positioning relative to image */
    .hero-image-wrapper {
        text-align: center;
    }
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    gap: 8px;
    margin-top: 8px;
    /* space reduced */
}

.job-tag {
    font-size: 0.8rem;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: var(--radius-full);
}

.hero-catch {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    /* space reduced */
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-bg);
    padding-bottom: 6px;
    /* space reduced */
}

/* Image Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
}

@media screen and (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }
}

@media screen and (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
    }
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base);
}

.gallery-item:hover {
    /* transform: translateY(-3px); */
    box-shadow: var(--shadow-md);
    opacity: 0.9;
}

.gallery-item figure {
    margin: 0;
    aspect-ratio: 4 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    /* transform: scale(1.05); */
}

.gallery-caption {
    padding: 8px 10px;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
    background: #fff;
    border-top: 1px solid #eee;
}

/* Data Table */
.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 30px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.modern-table th,
.modern-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

.modern-table tr:last-child th,
.modern-table tr:last-child td {
    border-bottom: none;
}

.modern-table th {
    background: #f9f9f9;
    font-weight: 600;
    width: 25%;
    color: var(--color-text);
}

.modern-table th i {
    color: var(--color-primary);
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

@media screen and (max-width: 767px) {

    .modern-table th,
    .modern-table td {
        display: block;
        width: 100%;
    }

    .modern-table th {
        background: transparent;
        /* Remove gray background for cleaner look */
        padding: 12px 0 4px 0;
        /* Adjust padding to look like label */
        border-bottom: none;
        /* Remove border between label and content */
        color: #ff6500;
        /* Optional: make label colored or just bold #333 */
        font-size: 0.9rem;
    }

    .modern-table td {
        padding: 4px 0 16px 0;
        /* Space below content */
        border-bottom: 1px solid #eee;
    }
}

/* Sticky Action Bar */
.sticky-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    padding: 12px 20px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 12px;
    justify-content: center;
    z-index: 1000;
}

.sticky-action-bar .btn {
    flex: 1;
    max-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    font-weight: 700;
    border-radius: var(--radius-full);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: #fff !important;
}

.btn-secondary {
    background: var(--color-secondary);
    color: var(--color-text) !important;
    border: none;
}

/* Text switching */
.sticky-text-pc {
    display: none;
}

.sticky-text-sp {
    display: inline;
}

@media screen and (min-width: 768px) {
    .sticky-action-bar {
        width: auto;
        top: 70px;
        bottom: inherit;
        /* 引き上げ */
        left: auto;
        right: 20px;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        flex-direction: column;
        padding: 0;
        gap: 12px;
        z-index: 1100;
    }

    .sticky-action-bar .btn {
        /* width: 190px; */
        /* コンパクト化 */
        padding: 10px 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        font-size: 0.9rem;
        font-weight: 700;
    }

    .sticky-text-pc {
        display: inline;
    }

    .sticky-text-sp {
        display: none;
    }
}

/* Recommended Jobs */
.recommend-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 60px;
    /* added footer space */
}

@media screen and (min-width: 600px) {
    .recommend-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 992px) {
    .recommend-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

.recommend-item {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
    border: 1px solid var(--color-border);
}

.recommend-item:hover {
    transform: translateY(-3px);
}

.recommend-item a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.recommend-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.recommend-content {
    padding: 16px;
}

.recommend-title {
    font-weight: 700;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Added for compatibility */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 電話応募ボタン (.btn-tel) */
.btn-tel {
    background: #4caf50;
    color: #fff !important;
    border: none;
}

.page_subhead01 {
    padding-top: 0;
}

@media screen and (max-width: 767px) {

    /* Sticky Action Bar Layout */
    .sticky-action-bar {
        gap: 8px;
        /* ボタン間の隙間を少し狭く */
    }

    /* お気に入りボタン: アイコンのみ表示 */
    .sticky-action-bar .btn-fav {
        flex: 0 0 50px;
        /* 固定幅 */
        width: 50px;
        height: 50px;
        padding: 0;
        font-size: 1.5rem;
        /* Icon size up */
        border-radius: 8px;
        /* 丸み調整 */
        display: flex;
        justify-content: center;
        align-items: center;

        border-radius: 50px;
    }

    .sticky-action-bar .btn-fav i {
        margin-right: 0 !important;
    }

    .sticky-action-bar .btn-fav .btn-text,
    .sticky-action-bar .already .btn-text {
        display: none;
    }

    /* 電話ボタン・応募ボタン */
    .sticky-action-bar .btn-tel,
    .sticky-action-bar .btn-primary,
    .sticky-action-bar .btn-secondary:not(.btn-fav) {
        flex: 1;
        padding: 10px 4px;
        /* パディング調整 */
        font-size: 0.9rem;
        /* フォントサイズ調整 */
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .page_subhead01 {
        margin-top: 10px;
        /* Reduce top margin for headers */
        margin-bottom: 15px;
        font-size: 1.2rem;
        font-weight: bold;
        border-bottom: 1px solid #ddd;
        padding-bottom: 5px;
    }

    /* 電話ボタン内のアイコン調整 */
    .sticky-action-bar .btn-tel i {
        font-size: 1.1em;
    }
}

/* ==========================================================================
   Additional Sections (Migrated from inline)
   ========================================================================== */

/* Hero Elements */
.hero-company-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #666;
}

.hero-syokusyu {
    display: inline-block;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.hero-salary {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ff6500;
    margin-top: 10px;
}

.hero-salary .price {
    font-size: 1.5rem;
}

/* Action Buttons Area (PC/Main) */
.action-buttons-area {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

@media screen and (max-width: 767px) {
    .action-buttons-area.pc {
        display: none;
    }
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 280px;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.3s;
    color: #fff !important;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-action:hover {
    opacity: 0.9;
    text-decoration: none;
    color: #fff;
}

.btn-fav-large {
    background-color: #f5dd00;
    color: #333 !important;
    width: auto;
    min-width: 200px;
}

.btn-fav-large:hover {
    color: #333;
}

.btn-form {
    background-color: #ff6500;
}

.btn-tel-large {
    background-color: #4caf50;
}

.btn-icon {
    margin-right: 8px;
    font-size: 1.2em;
}

/* Modals */
.tel-modal-content {
    text-align: center;
    padding: 20px;
}

.tel-number-disp {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin: 20px 0;
}

/* Company Info Table */
.company-info-table th {
    width: 30%;
    background-color: #f9f9f9;
}

/* --------------------------------------------------- */
/* 2026/01/23 Detail Hero Reformation (Top Page Style) */
/* --------------------------------------------------- */

.detail-hero-card {
    background: #fff;
    border-radius: 8px;
    /* Top rounded 8px, but here we might want all rounded or similar to top */
    /* overflow: hidden; */
    /* Removing overflow hidden to allow shadows if needed, or keep it */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.detail-hero-image-wrap {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    /* PC: Limit width and center */
    max-width: 750px;
    margin: 0 auto;
}

.detail-hero-image {
    width: 100%;
    /* aspect-ratio: 16 / 9; */
    display: block;
    object-fit: cover;
}

@media screen and (max-width: 767px) {
    .detail-hero-image-wrap {
        max-width: 100%;
        width: auto;
        margin: 0;
        border-radius: 0;
    }
}

/* Overlay for Date and New */
.detail-hero-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    z-index: 5;
}

.detail-tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    line-height: 1.2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.detail-tag-date {
    background: #fff;
    color: #333;
}

.detail-tag-new {
    background: #ff6500;
    color: #fff;
}

/* Content below image */
.detail-hero-content {
    padding: 20px;
}

.detail-cat-main {
    font-size: 16px;
    font-weight: bold;
    /* color: #ff6500; */
    margin-bottom: 5px;
}

.detail-cat-sub {
    font-size: 0.9em;
    margin-left: 10px;
    /* color: #666; */
    /* font-weight: normal; */
}

.detail-hero-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: #ff6500;
    margin-top: 10px;
    line-height: 1.4;
    margin-bottom: 10px;
    /* spacing before image */
}

.detail-company-name {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    /* changed from #666 */
    margin-bottom: 8px;
}

.detail-hero-header {
    padding: 20px 20px 10px;
}

.detail-data-list {
    margin-bottom: 15px;
}

.detail-data-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.detail-data-icon {
    width: 24px;
    text-align: center;
    color: #555;
    font-size: 18px;
    margin-right: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.detail-data-text {
    font-size: 15px;
    line-height: 1.4;
    color: #333;
}

.detail-data-text .price {
    font-weight: bold;
    color: #ff6500;
    font-size: 120%;
}

.detail-tags-area {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.detail-tag-item {
    font-size: 12px;
    padding: 3px 10px;
    background: #fff;
    border: 1px solid #ff6500;
    color: #ff6500;
    border-radius: 3px;
}

/* Sections for reordered content */
.detail-section {
    background: #fff;
    padding: 24px;
    margin-bottom: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.detail-section-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ff6500;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.detail-item-title {
    font-weight: bold;
    background: #f5f5f5;
    padding: 8px 12px;
    border-left: 4px solid #ff6500;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1rem;
}

.detail-item-title:first-child {
    margin-top: 0;
}

.detail-text-body {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    white-space: pre-wrap;
    /* Handle newlines */
}

@media screen and (max-width: 767px) {
    .detail-hero-content {
        padding: 15px;
    }

    /* SP Hero Font Adjustments */
    .detail-hero-header {
        padding: 15px 15px 5px;
    }

    .detail-company-name {
        font-size: 13px;
        margin-bottom: 5px;
    }

    .detail-cat-main {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .detail-cat-sub {
        font-size: 0.85em;
        margin-left: 5px;
    }

    .detail-hero-title {
        font-size: 1.3rem;
        margin-top: 5px;
        margin-bottom: 10px;
    }

    .detail-section {
        padding: 15px;
    }

    .detail-section-title {
        font-size: 1.1rem;
    }


    .company-info-table {
        margin-bottom: 0;
    }

    .company-info-table th {
        width: 100%;
        font-size: 1rem;
        text-align: left;
        padding-left: 10px;
    }

    .company-info-table td {
        padding: 8px;
        font-size: 1rem;
    }
}


/* 外側の枠：PCでの最大幅制限と中央寄せ */
.movie_wrap {
    width: 100%;
    /* スマホでは横幅いっぱい */
    max-width: 700px;
    /* PCでは最大600px */
    margin: 0 auto;
    /* 中央寄せ */
}

/* 動画の比率を保つためのラッパー (16:9) */
.movie_tag {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 9 ÷ 16 = 0.5625 (16:9の比率) */
    height: 0;
}

/* iframeをラッパーいっぱいに広げる */
.movie_tag iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* ==========================================================================
   Main Visual Slideshow Styles (Updated 2026/02/17 for Horizontal Slide)
   ========================================================================== */

.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
    background-color: #fff;
    /* 背景を白に変更 */
    aspect-ratio: 16 / 9;
    /* 基本のアスペクト比を固定 */
}

/* Horizontal slide wrapper */
.slideshow-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    /* コンテナいっぱいの高さに */
}

.mySlides {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    /* コンテナいっぱいの高さに */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* キャプションの基準点 */
}

.mySlides img {
    max-width: 100%;
    max-height: 100%;
    /* 高さいっぱいに収める */
    width: 100%;
    /* 枠いっぱいに拡大 */
    height: 100%;
    /* 枠いっぱいに拡大 */
    display: block;
    object-fit: contain;
    /* アスペクト比を維持して枠内に収める */
}

/* Slideshow Navigation Arrows (Adjusted to be less prominent) */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 101, 0, 0.7);
    /* Semitransparent Primary */
    font-weight: bold;
    font-size: 20px;
    transition: all 0.3s ease;
    user-select: none;
    background-color: rgba(255, 255, 255, 0.4);
    /* More transparent */
    border-radius: 50%;
    z-index: 10;
    text-decoration: none;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover,
.next:hover {
    background-color: rgba(255, 101, 0, 0.8);
    color: #fff;
    box-shadow: 0 4px 10px rgba(255, 101, 0, 0.3);
}

@media screen and (max-width: 767px) {

    .prev,
    .next {
        width: 32px;
        height: 32px;
        margin-top: -16px;
        font-size: 16px;
    }

    .prev {
        left: 8px;
    }

    .next {
        right: 8px;
    }
}

/* Removing fade animation as it is now a horizontal slide */

.main-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    box-sizing: border-box;
    backdrop-filter: blur(2px);
}

/* Gallery Grid (Sub Photos) */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media screen and (min-width: 768px) {
    .gallery-grid {
        gap: 20px;
    }

    .gallery-item {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

@media screen and (max-width: 767px) {
    .gallery-item {
        flex: 0 0 calc(50% - 5px);
        max-width: calc(50% - 5px);
    }
}

.gallery-item figure {
    margin: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    /* overflow: hidden; */
    height: auto;
    display: flex;
    flex-direction: column;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.gallery-caption {
    padding: 10px;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    background: #fff;
    flex-grow: 1;
    word-break: break-all;
    overflow-wrap: break-word;
}

.detail-section--end {
    background: #666;
}

.detail-section--end .detail-text-body {
    color: #fff;
}

@media screen and (max-width: 767px) {
    .relative_entry_head {
        font-size: 3.5vw;
        padding: 0 0.25em 0 0.5em;
        margin-bottom: 10px;
    }

    .recommend-list {
        margin-top: 0;
    }
}