@charset "UTF-8";

/* Basic Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Container */
.nentry-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 0px;
}

/* ... skipped ... */

.hero-title-img {
    width: 471px !important;
    height: auto !important;
    /* Preserve aspect ratio, assuming 302px is the natural height for this width */
    max-width: 100% !important;
    margin: 0 auto;
    display: block;
}

/* Tabs */
.recruit-tabs {
    /* margin-bottom: 40px; Moved to .intro-text for sticky calc correction */
    /* position: sticky removed */
    background: #fff;
    /* High enough but below header (10000) */
    background: #fff;
    /* Ensure opacity */
    padding-top: 10px;
}

.recruit-tabs ul {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #ccc;
    position: relative;
    padding: 0 5% 20px;
    /* Added 20px bottom padding */
}

.tab-item {
    cursor: pointer;
    margin: 0 10px;
    padding: 10px 0;
    /* Minimal padding */
    position: relative;
    transition: opacity 0.3s, transform 0.3s, filter 0.3s;
}

/* Hide mobile-only text on PC */
.tab-text {
    display: none;
}

/* Hide close button on PC */
.close-btn {
    display: none;
}

.tab-item img {
    height: 70px;
    /* Increased from 50px */
    /* Fixed height for consistency */
    width: auto !important;
    /* Override global width:100% from index.css */
    max-width: none !important;
    /* Prevent constraints */
    object-fit: contain;
    /* Ensure aspect ratio is preserved */
    display: block;
    /* Default inactive state: smaller, gray */
    transform: scale(0.9);
    transition: transform 0.3s, opacity 0.3s;
}

.tab-item:hover {
    /* Slightly less gray on hover? Optional */
    opacity: 0.9;
}

/* Active State: Normal size and color */
.tab-item.active img {
    transform: scale(1);
    filter: none;
    opacity: 1;
    display: block;
    /* Show if img */
}

/* Inactive State CSS implementation */
/* Image-based tabs scaling */
.tab-item img {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block;
}

.tab-item.active img {
    transform: scale(1);
    opacity: 1;
}

.tab-item:not(.active) img {
    transform: scale(0.9);
    opacity: 0.5;
}

.tab-item:not(.active):hover img {
    transform: scale(0.95);
    opacity: 1;
}


/* Red Corner Fold (Matched to Original) */








/* Play Arrow */


/* Responsive Tabs */
@media screen and (max-width: 768px) {
    .recruit-tabs ul {
        flex-direction: column;
        padding: 0;
        margin-bottom: 30px;
    }

    .tab-item {
        background: transparent;
        border: none;
        border-radius: 0;
        margin: 0 0 15px 0;
        padding: 0;
        position: relative;
        overflow: hidden;
        /* Contain the sliding pane */
        display: block;
        box-shadow: none;
        height: auto;
    }

    /* Show images on mobile and preserve aspect ratio */
    .tab-item img {
        display: block !important;
        width: auto !important;
        max-width: 85% !important;
        height: auto !important;
        margin: 0 auto !important;
        position: relative;
        z-index: 10;
        /* Ensure button stays on top or visible part */
        opacity: 1 !important;
        /* No Grayout on Mobile */
        transform: none !important;
        /* No scale change */
    }

    /* Force opaque even when not active */
    .tab-item:not(.active) img {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Hide text on mobile */
    .tab-item .tab-text {
        display: none;
    }

    /* Remove CSS-only Red Corner Fold for images */
    .tab-item::before {
        display: none;
    }

    .tab-item::after {
        display: none;
    }

    /* Accordion Pane Styles - Card Look */
    .tab-pane {
        background: #fff;
        padding: 20px 15px;
        /* Added padding for card look */
        border-radius: 8px;
        /* Rounded corners */
        border: 1px solid #ccc;
        /* Card border */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        /* Subtle shadow */
        display: none;
        opacity: 0;
        /* Default opacity 0 */
        margin-top: 15px;
        /* Space between image and card */
        width: 100%;
        border-top: 1px solid #ccc;
        /* Restore full border */
        position: relative;
        /* Context for close button */
        overflow: hidden;
        /* Ensure content clips */
        transition: height 0.3s ease, padding 0.3s ease, margin 0.3s ease, opacity 0.3s ease;
    }

    .tab-pane.active {
        display: block;
        /* Animation handled by JS slideDown */
    }

    .tab-content {
        /* On mobile, this container is empty as panes moved to tabs */
        /* Hide it to prevent white space if padding exists */
        display: none;
    }

    /* Close button inside accordion card */
    .close-btn {
        display: block;
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 24px;
        color: #DD1719;
        /* Updated to red */
        cursor: pointer;
        z-index: 20;
        line-height: 1;
    }

    /* Ensure content inside pane is visible */
    .tab-pane .mobile-intro-text {
        display: block !important;
        margin-bottom: 20px;
        padding: 0 10px 20px;
        margin-top: 20px;
        /* Push text down below close button */
        /* border-bottom removed as requested */
    }

    /* Specific adjustments for content width inside accordion */
    .requirements-list {
        padding: 0 5px;
    }
}

/* Tab Content */
.tab-content {
    margin-bottom: 60px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Mobile Intro Text (Hidden on PC by default, strictly) */
.mobile-intro-text {
    display: none !important;
}


/* Global Intro Text (PC Only) */
.intro-text-global {
    font-size: 16px;
    line-height: 2;
    margin-bottom: 50px;
    margin-top: 40px;
}

/* 
   View Switch Logic for Mobile Detail View 
   (Must be defined before media query or inside it, handled in media query below)
*/

/* Mobile font adjustment & Intro Text Handling */
@media screen and (max-width: 768px) {

    /* Hide Global Intro Text on Mobile, strictly */
    .intro-text-global {
        display: none !important;
    }

    /* Show Mobile Intro Text inside Slide */
    .mobile-intro-text {
        display: block !important;
        /* ... styling ... */
        margin-bottom: 30px;
        padding-bottom: 20px;
        /* border-bottom removed */
    }

    /* Adjust font size for mobile intro */
    .mobile-intro-text p {
        font-size: 14px;
        line-height: 1.8;
    }

    .mobile-intro-text .intro-title {
        font-size: 20px;
        margin-bottom: 15px;
        display: block;
        font-weight: bold;
        text-align: center;
    }

    /* Original .intro-text override (just in case) */
    /* Removed previous .intro-text adjustments as it is now hidden */
}

/* PC/Global Intro Title Styling */
.intro-title {
    font-size: 22px;
    /* Large font for PC */
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    display: block;
    width: 100%;
    /* Ensure full width for centering */
}

/* Requirements List (DL style) */
.requirements-list {
    border-top: 1px solid #eee;
}

.req-row {
    display: flex;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

.req-row dt {
    width: 200px;
    font-weight: bold;
    color: #de1414;
    /* Red labels */
    flex-shrink: 0;
}

.req-row dd {
    flex-grow: 1;
    font-size: 16px;
}

.req-row dd ul li {
    list-style: none;
}

/* Selection Process Steps */
.process-steps {
    position: relative;
    padding: 10px 0;
}

/* Default Visibility (PC) */
.sp-process {
    display: none;
}

.desktop-process {
    display: block;
}

.process-steps .step {
    display: flex;
    margin-bottom: 0;
    /* Remove margin, handle spacing via padding/height */
    padding-bottom: 40px;
    /* Space for the line */
    align-items: flex-start;
    /* Align top */
    position: relative;
}

.process-steps .step:last-child {
    padding-bottom: 0;
}

.process-steps .step dt {
    width: 120px;
    /* Fixed width for labels */
    flex-shrink: 0;
    margin-right: 30px;
    position: relative;
    z-index: 2;
    /* Above the line */
    font-size: 14px;
    font-weight: bold;
}

.step-label {
    background-color: #ff6b6b;
    /* Soft red/pink to match image */
    padding: 8px 10px;
    border-radius: 4px;
    display: block;
    /* Full width of dt */
    text-align: center;
    color: #fff;
    font-weight: bold;
    position: relative;
}

/* Dotted Line connector */
.process-steps .step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 30px;
    /* Start below the label (approx height) */
    left: 60px;
    /* Center of 120px label */
    height: 100%;
    width: 2px;
    border-left: 2px dotted #ff6b6b;
    z-index: 1;
}

/* Specific colors if requested, otherwise uniform red as per latest large layout */
.step:nth-child(n) .step-label {
    background-color: #ff6b6b;
}

/* Final step highlighting if desired, but image shows uniform style */
.step:last-child .step-label {
    background-color: #ff6b6b;
}

.process-steps .step dd {
    font-size: 14px;
    line-height: 1.8;
    padding-top: 5px;
    /* Visual alignment with label text */
}

.process-note {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
}

/* Entry Button */
.entry-btn-container {
    text-align: center;
    margin: 40px 0;
    /* Reduced bottom margin */
    display: flex;
    /* Always visible */
    justify-content: center;
    align-items: center;
}


.btn-entry-img {
    position: relative;
    left: 0;
}

.btn-entry-img img {
    width: 300px;
    max-width: 90%;
    height: auto;
    transition: transform 0.2s;
}

.btn-entry-img:hover img {
    transform: scale(1.05);
}

/* FAQ Section */
.faq {
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px 150px;
    margin-bottom: 0;
    scroll-margin-top: 150px;
}

.faq-header {
    text-align: center;
    margin-bottom: 40px;
}

.faq-logo {
    width: 471px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.faq-list {
    border-top: none;
    /* Remove top border */
}

.faq-item {
    border: 1px solid #ccc;
    /* Box border */
    border-radius: 8px;
    /* Rounded corners */
    margin-bottom: 15px;
    /* Spacing between boxes */
    background: #fff;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 20px 50px 20px 20px;
    /* Right padding for icon */
    cursor: pointer;
    font-weight: bold;
    position: relative;
    display: flex;
    align-items: center;
}

.faq-question::before {
    content: "Q.";
    color: #de1414;
    font-weight: bold;
    margin-right: 10px;
    font-size: 18px;
}

/* Toggle Icon as + */
.toggle-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.toggle-icon::before,
.toggle-icon::after {
    content: "";
    position: absolute;
    background-color: #666;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Horizontal line */
.toggle-icon::before {
    width: 100%;
    height: 2px;
}

/* Vertical line */
.toggle-icon::after {
    width: 2px;
    height: 100%;
}

/* Rotate to X when active */
.faq-item.active .toggle-icon {
    transform: translateY(-50%) rotate(45deg);
    /* + becomes x */
}

.faq-answer {
    display: block;
    /* Revert grid */
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: height 0.3s ease, opacity 0.3s ease;
    padding: 0;
    margin: 0;
    /* Strict reset */
    border-top: none;
    color: #555;
    font-size: 14px;
}

.answer-content {
    padding: 20px;
    border-top: 1px solid #eee;
}

.faq-item.active .faq-answer {
    opacity: 1;
    /* Height handled by JS */
}

.answer-content::before {
    content: "A. ";
    color: #de1414;
    font-weight: bold;
    margin-right: 5px;
    font-size: 16px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .nentry-container {
        padding: 40px 15px 80px;
    }

    .hero-title-img {
        width: 80% !important;
        margin: 0 auto;
    }

    .tab-item {
        padding: 10px 15px;
        font-size: 14px;
        margin: 0 5px;
    }

    .req-row {
        display: block;
        /* Stack on mobile */
        padding: 20px 0;
    }

    /* Remove border from list if present (Fix for upper line issue) */
    .req-row dd ul {
        border: none !important;
    }

    .req-row dt {
        width: 100%;
        margin-bottom: 10px;
    }

    .process-steps .step {
        display: block;
        padding-bottom: 30px;
        /* Space between steps */
        position: relative;
    }

    .process-steps .step dt {
        margin-bottom: 5px;
    }

    /* Process Split Visibility for Mobile */
    .desktop-process {
        display: none !important;
    }

    .sp-process {
        display: block !important;
    }

    /* Mask the dotted line behind the text */
    .process-steps .step dd {
        background: #fff !important;
        position: relative !important;
        z-index: 5 !important;
        /* Sit on top of the line */
        padding: 20px 0 0 0;
        /* Visual 10px Gap + 10px Pad = 20px, covered by white BG */
        margin-top: 0;
        /* Remove transparent gap */
        width: 100%;
    }

    /* adjust dotted line position for mobile block layout */
    .process-steps .step:not(:last-child)::before {
        top: 0;
        left: 60px;
        /* Center of 120px label (if min-width is 120) */
        /* If label is not fixed width, this is tricky. */
        /* But we set min-width: 120px above. Let's stick to that. */
        height: 100%;
    }

    .process-steps .step dt {
        margin-bottom: 0;
        /* Line up */
    }

    .step-label {
        display: inline-block;
        width: 120px;
        /* Fixed width for alignment */
        text-align: center;
        margin-bottom: 0;
    }

    .btn-entry {
        width: 80%;
        padding: 15px 0;
    }

    .entry-btn-container {
        margin: 40px 0 80px;
    }

    /* Remove top margin for FAQ on mobile */
    .faq {
        margin-top: 0;
    }
}