:root {
    --font-main: 'Manrope', sans-serif;
    --font-sub: 'Noto Sans JP', sans-serif;
    --color-bg-light: #ffffff;
    --color-bg-dark: #1a1a1a;
    --color-text-main: #111111;
    --color-text-inv: #ffffff;
    --color-text-sub: #888888;

    --spacing-section: 15vh;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    /* Disable tap highlight on mobile */
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-light);
    color: var(--color-text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    cursor: none;
    /* Hide default cursor */
}

/* Custom Cursor */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1px solid #fff;
    /* Changed to White */
    background-color: #fff;
    /* Filled White for better visibility */
    border-radius: 50%;
    z-index: 9999;
    transform: translate(-50%, -50%);
    /* transition: transform 0.1s ease; Removed for GSAP control */
    pointer-events: none;
    mix-blend-mode: difference;
}

/* Mobile Cursor Fix */
/* Mobile Cursor Fix - Force hide on screens smaller than 1024px */
@media (max-width: 1024px) {
    .cursor {
        display: none !important;
    }

    body {
        cursor: auto !important;
    }
}

.cursor.hovered {
    transform: translate(-50%, -50%) scale(2.5);
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0 5vw;
}

.logo-container {
    position: absolute;
    top: 40px;
    left: 5vw;
}

.logo-img {
    width: 140px;
    height: auto;
    filter: brightness(0);
    /* Ensure black logo initially */
    transition: filter 0.5s ease;
}

.logo-img-mobile {
    display: none;
    /* Hidden on desktop */
}

.logo-img.invert {
    filter: brightness(0) invert(1);
}

/* Make logo clickable - Handled by .hero-main-logo now */
/* .hero .logo-img rule removed */

.insta-logo {
    width: 22px;
    height: auto;
    vertical-align: text-bottom;
    margin-bottom: 0px;
    transition: transform 0.3s ease;
}

.secret-link:hover .insta-logo {
    transform: scale(1.2);
}

.hero-main-logo {
    width: clamp(300px, 60vw, 800px);
    height: auto;
    margin-bottom: 2rem;
    filter: brightness(0);
    /* Start black */
    cursor: pointer;
    /* Clickable */
}

.hero-sub {
    font-family: var(--font-sub);
    font-weight: 300;
    font-size: clamp(1.2rem, 3vw, 2rem);
    /* Significantly larger */
    letter-spacing: 0.15em;
    margin-top: 1rem;
    opacity: 0.8;
    /* Width fit-content allows centering but text-align:center ensures lines inside are centered */
    text-align: center;
    margin-inline: auto;
    padding-left: 0;
    /* Removing optical padding now that it's centered multi-line */
}



/* Philosophy Section */
.philosophy {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-section) 5vw;
    background-color: transparent;
    /* Changed from bg-light to transparent to see body changes */
    /* color: #4a4a4a; Removed to allow inheritance */
}

.philosophy-container {
    max-width: 800px;
    width: fit-content;
    margin-inline: auto;
}

.philosophy-title {
    font-family: var(--font-sub);
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 5rem;
    letter-spacing: 0.1em;
    text-align: center;
}

.philosophy-text {
    font-family: var(--font-sub);
    font-size: 1.1rem;
    line-height: 2.2;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: 0.08em;
}

/* Signature Styles */
.philosophy-sign {
    margin-top: 4rem;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.sign-jp {
    font-family: var(--font-sub);
    /* Keeping simple as requested, or use Mincho if preferred later */
    font-size: 1.125rem;
    letter-spacing: 0.1em;
}

/* Services Section (Minimal Cards) */
.services {
    padding: var(--spacing-section) 5vw;
    background-color: var(--color-bg-dark);
    /* Ensure background is dark */
    color: var(--color-text-inv);
}

/* ... existing services styles ... */

/* Company Section (The Spec Sheet) */
.company {
    padding-top: var(--spacing-section);
    padding-bottom: var(--spacing-section);
    background-color: var(--color-bg-dark);
    color: var(--color-text-inv);
}

.spec-sheet {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center everything */
    margin-top: 2rem;
}

.spec-row {
    display: flex;
    flex-direction: column;
    /* Stack label and value vertically */
    align-items: center;
    text-align: center;
    padding: 1.5rem 0;
    width: 100%;
    opacity: 0;
    /* Initial state for animation */
    transition: transform 0.3s ease;
    /* Smooth hover movement */
}

/* Hover effect similar to Services */
.spec-row:hover {
    transform: translateY(-5px);
}

.spec-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    /* Invisible border initially */
    transition: border-bottom 0.3s ease, opacity 0.3s ease;
    display: block;
    /* Ensure it takes up space */
    position: relative;
    /* Setup for z-index */
    z-index: 10;
    /* Ensure it is above other elements */
    cursor: pointer;
    /* Force pointer cursor */
}

.spec-link:hover {
    border-bottom: 1px solid #fff;
    /* Show underline on hover */
    opacity: 0.8;
}

.secret-trigger {
    cursor: pointer;
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 10;
    /* Ensure clickable */
    display: inline-block;
    /* Allows transform if needed */
}

.secret-trigger:hover {
    opacity: 0.7;
}

.spec-label {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.8rem;
    color: #666;
    /* Subtle label */
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.spec-value {
    font-family: var(--font-sub);
    font-weight: 300;
    font-size: 1.2rem;
    /* Slightly bigger */
    color: #fff;
    letter-spacing: 0.05em;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.service-item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    /* Ensure it fills the grid cell height */
    padding: 4rem 2rem;
    text-align: center;
    color: var(--color-text-inv);
    transition: transform 0.4s ease;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-bg-num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    z-index: 0;
}

.service-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    /* Alignment fix */
    min-height: 2.5em;
    /* Reserve space for 2 lines */
    display: flex;
    align-items: flex-end;
    /* Align text to bottom of title area so it's closer to jp text */
    justify-content: center;
    line-height: 1.1;
}

.service-cat {
    font-family: var(--font-sub);
    font-weight: 300;
    opacity: 0.6;
    letter-spacing: 0.05em;
}

/* Cursor Visibility Override Removed */

.signature-area {
    margin-bottom: 4rem;
}

.rep-title {
    font-family: var(--font-en);
    font-size: 0.8rem;
    color: var(--color-text-sub);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.signature-text {
    font-family: 'Mrs Saint Delafield', cursive;
    /* Fallback or load a cursive font if wanted, otherwise elegant serif */
    font-family: var(--font-main);
    /* Using main font but thin styling for now as requested signature style might need specific font */
    font-weight: 200;
    font-size: 3rem;
    letter-spacing: 0.05em;
    font-style: italic;
}

.footer {
    background-color: var(--color-bg-dark);
    padding: 8rem 5vw 4rem;
    /* Top padding larger for separation */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-logo-img {
    width: 50px;
    /* Slightly smaller for elegance */
    opacity: 0.6;
    margin-bottom: 2.5rem;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
}

.footer-logo-img:hover {
    opacity: 1;
}

.copyright {
    font-family: var(--font-main);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.3);
}

.footer-link,
.footer-link:visited,
.footer-link:active {
    font-family: var(--font-en);
    /* Check if main font fits better, using EN for "Privacy Policy" consistency */
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3) !important;
    /* Force override mobile default blue */
    text-decoration: none;
    margin-top: 1rem;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.footer-link:hover {
    color: #fff;
    border-bottom-color: #fff;
}

/* Privacy Modal Styles */
.modal-privacy-content {
    text-align: left;
    /* Privacy policy usually reads better left-aligned */
    background-color: #fff;
    /* White background as requested */
    color: #333;
    /* Dark text */
    max-width: 800px;
    width: 90%;
    /* Wider for text readability */
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-privacy-content .modal-close {
    color: #333;
    /* Dark close button for white bg */
}

.modal-privacy-content .modal-bottom-close {
    border-color: #333;
    color: #333;
}

.modal-privacy-content .modal-bottom-close::before {
    background-color: #333;
}

.modal-privacy-content .modal-bottom-close:hover {
    color: #fff;
}

.privacy-body {
    padding: 1rem 0;
    font-size: 0.9rem;
    line-height: 1.8;
}

.privacy-intro {
    margin-bottom: 2rem;
}

.privacy-section {
    margin-bottom: 2rem;
}

.privacy-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    border-left: 3px solid #333;
    padding-left: 0.8rem;
}

.privacy-list {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.privacy-list li {
    margin-bottom: 0.5rem;
}

.privacy-contact p {
    margin-bottom: 0.2rem;
}

/* Utilities */
.loading {
    overflow: hidden;
    /* Prevent scrolling during load if needed, handled by JS usually */
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #1a1a1a;
    color: #fff;
    padding: 4rem;
    max-width: 600px;
    width: 90%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

.modal-overlay.is-open .modal-content {
    transform: translateY(0);
}


.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    font-weight: 300;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    opacity: 0.6;
}

/* New Close Button for Mobile (Styled like LINE button) */
/* New Close Button for Mobile (Styled like LINE button) */
.modal-bottom-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.8rem 2rem;
    margin-top: 2rem;
    background-color: transparent;
    border: 1px solid #fff;
    /* White border */
    border-radius: 50px;
    /* Match pill shape */
    color: #fff;
    font-family: var(--font-main);
    /* Changed to Match LINE button */
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    /* Ensure no underline if it becomes a link */
}

.modal-bottom-close::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #fff;
    z-index: -1;
    transition: width 0.3s ease;
}

.modal-bottom-close:active,
.modal-bottom-close:hover {
    color: #000;
    /* Text becomes black on white fill */
    width: 100%;
    /* Ensure fill effect works if hover logic applies on mobile tap */
}

.modal-bottom-close:hover::before {
    width: 100%;
}

.modal-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.modal-subtitle {
    font-family: var(--font-sub);
    font-size: 1rem;
    opacity: 0.6;
    margin-bottom: 2rem;
}

.modal-body {
    font-family: var(--font-sub);
    line-height: 2;
    text-align: center;
}

.modal-contact-text {
    text-align: center;
    margin-top: 2rem;
}

.modal-action {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.modal-line-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border: 1px solid #06C755;
    /* LINE Green */
    border-radius: 50px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    background-color: transparent;
    position: relative;
    overflow: hidden;
}

.modal-line-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #06C755;
    z-index: -1;
    transition: width 0.3s ease;
}

.modal-line-btn:hover::before {
    width: 100%;
}

.modal-line-btn:hover {
    color: #fff;
    /* Optional: box-shadow for glow */
    box-shadow: 0 0 15px rgba(6, 199, 85, 0.4);
}

.line-icon-text {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Optional: Add a simple CSS icon if no image is used, or just text for now as requested "minimal" */
.line-icon-text::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background-color: #06C755;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-line-btn:hover .line-icon-text::before {
    background-color: #fff;
}

/* Phone Button Styles */
.modal-phone-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border: 1px solid #fff;
    border-radius: 50px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    background-color: transparent;
    position: relative;
    overflow: hidden;
}

.modal-phone-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #fff;
    z-index: -1;
    transition: width 0.3s ease;
}

.modal-phone-btn:hover::before {
    width: 100%;
}

.modal-phone-btn:hover {
    color: #000;
    font-weight: 700;
}

.btn-icon-text {
    position: relative;
    z-index: 1;
}

/* Recruit Section (Invitation) */
.recruit {
    padding: var(--spacing-section) 5vw;
    background-color: var(--color-bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    overflow: hidden;
    /* Hide sliding elements */
}

.recruit-container {
    width: 100%;
    max-width: 600px;
    position: relative;
    display: flex;
    /* Centering content */
    justify-content: center;
}

.envelope {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    /* Clickable */
    transition: transform 0.3s ease;
}

.envelope:hover {
    transform: scale(1.02);
}

/* Flap Visual (Simple V shape line) */
.envelope-flap {
    width: 100px;
    height: 100px;
    border-left: 1px solid #fff;
    border-bottom: 1px solid #fff;
    transform: rotate(-45deg);
    transform-origin: center;
    margin-bottom: 1rem;
    z-index: 10;
}

.invite-label {
    font-family: var(--font-main);
    color: #fff;
    letter-spacing: 0.2em;
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
    z-index: 10;
    text-transform: uppercase;
}

.envelope-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* Recruit Overlay */
.recruit-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    /* Centered content */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    /* Create a high z-index to be on top of everything */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 2rem;
}

.recruit-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.message-card {
    background-color: #fff;
    color: #111;
    padding: 4rem 3rem;
    text-align: center;
    width: 100%;
    max-width: 500px;
    position: relative;
    /* Not absolute inside overlay */
    border-radius: 4px;
    /* Slight radius */
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    margin: 0;
    /* Reset margins */
    top: auto;
    left: auto;
    overflow: hidden;
    /* Ensure watermark doesn't spill */
}

/* Background Watermark */
.message-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background-image: url('../images/invitation_bg.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.1;
    /* Visible adjustment */
    pointer-events: none;
    z-index: 0;
}

.recruit-overlay.is-open .message-card {
    transform: scale(1) translateY(0);
}

.recruit-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #111;
    font-size: 2rem;
    cursor: pointer;
    font-weight: 300;
    transition: opacity 0.3s ease;
    line-height: 1;
}

.recruit-close:hover {
    opacity: 0.6;
}

@media (max-width: 768px) {

    /* Hero Section */
    .logo-container {
        left: 0;
        top: 2rem;
        width: 100%;
        text-align: center;
        transform: none;
        /* Reset transform */
    }

    .logo-img {
        display: none !important;
        /* Force hide desktop logo */
    }

    .logo-img-mobile {
        display: inline-block !important;
        width: 60px !important;
        /* Force small size */
        max-width: 60px !important;
        height: auto !important;
    }

    .hero-sub {
        font-size: 1.2rem;
        /* Smaller subtitle */
    }

    /* Recruit / Invitation Fixes */
    .recruit-container {
        width: 100%;
        padding: 0 1rem;
        /* Ensure padding from edges */
    }

    .envelope {
        width: 100%;
        max-width: 300px;
        /* Limit width on mobile */
    }

    .message-card {
        width: 90%;
        max-width: 90vw;
        /* Ensure it doesn't overflow viewport */
        margin-left: auto;
        /* Center it */
        margin-right: auto;
        /* Center it */
        padding: 2rem 1rem;
        /* Reduced padding */
        left: 0;
        right: 0;
    }

    /* Hide custom cursor on mobile */
    .cursor {
        display: none !important;
    }

    body {
        cursor: auto !important;
    }
}

.message-title {
    font-family: var(--font-en);
    font-size: 3rem;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

.message-text {
    font-size: 1rem;
    line-height: 2;
    margin-bottom: 3rem;
    font-family: var(--font-sub);
    position: relative;
    z-index: 1;
}

.recruit-btn {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.recruit-btn:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.sp-text {
    display: none;
}

.pc-text {
    display: inline;
}

/* Secret Modal Styles */
.modal-secret {
    font-family: 'Courier New', Courier, monospace;
    /* Typewriter style */
    text-align: center;
    /* Center align body as requested */
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: #0f0f0f;
    /* Slightly darker */
}

.secret-title {
    text-align: center;
    /* Center title */
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.8rem;
    margin-bottom: 3rem;
    letter-spacing: 0.1em;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
    padding-bottom: 1rem;
}

.secret-body {
    text-align: center;
    /* Ensure center alignment */
    font-size: 0.95rem;
    line-height: 1.8;
}

.secret-section {
    margin-bottom: 2rem;
}

.secret-label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #bbb;
}

.secret-link {
    color: #fff;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.secret-link:hover {
    opacity: 0.7;
}

/* Utilities for white link if needed specifically, though inherited is white in modal */
.white-link {
    color: #fff;
}

/* Utility: Mobile Line Break */
.sp-br {
    display: none;
}

.pc-space {
    display: inline;
}

@media screen and (max-width: 768px) {
    .pc-space {
        display: none;
        /* Hide the extra space on mobile if line break is handling it */
    }
}

/* Mobile Optimization */
@media screen and (max-width: 768px) {
    :root {
        --spacing-section: 10vh;
        /* Reduce spacing */
    }

    .sp-br {
        display: inline;
        /* Enable break on mobile */
    }

    /* Hero Section */
    /* logo-img logic handled in the upper media query */

    .hero-main-logo {
        width: 80vw;
        /* Fix huge main logo */
    }

    .hero-sub {
        font-size: 1.2rem;
    }

    /* Philosophy Section */
    .philosophy-title {
        font-size: 1.5rem;
        margin-bottom: 3rem;
    }

    .philosophy-text {
        font-size: 0.95rem;
        line-height: 1.8;
        margin-bottom: 2rem;
    }

    .philosophy-container {
        width: 100%;
        padding: 0 1rem;
    }

    .philosophy-sign {
        margin-top: 3rem;
        align-items: flex-end;
        text-align: right;
    }

    /* Services Section */
    .service-list {
        gap: 2rem;
    }

    .service-item {
        padding: 3rem 1.5rem;
    }

    .service-bg-num {
        font-size: 10rem;
    }

    .service-title {
        font-size: 1.5rem;
    }

    /* Company Section */
    .spec-sheet {
        width: 100%;
    }

    .spec-row {
        padding: 1rem 0;
    }

    .spec-label {
        font-size: 0.7rem;
    }

    .spec-value {
        font-size: 1rem;
        word-break: break-all;
    }

    /* Footer */
    .footer {
        padding: 5rem 5vw 3rem;
    }

    /* Modals */
    .modal-content {
        padding: 3rem 1.5rem;
        width: 95%;
        max-height: 85vh;
        /* Limit height */
        overflow-y: auto;
        /* Enable scroll */
        -webkit-overflow-scrolling: touch;
        /* Smooth scroll on iOS */
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-close {
        top: 0.5rem;
        right: 1rem;
        font-size: 1.8rem;
    }

    /* Secret Modal */
    .secret-title {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }

    .secret-body {
        font-size: 0.85rem;
    }

    /* Recruit Overlay */
    .message-card {
        padding: 3rem 1.5rem;
        width: 90%;
        max-height: 85vh;
        /* Limit height */
        overflow-y: auto;
        /* Enable scroll */
        -webkit-overflow-scrolling: touch;
        /* Smooth scroll on iOS */
    }

    .message-title {
        font-size: 2rem;
    }

    /* Recruit Overlay Background (J Logo) */
    .message-card::before {
        background-image: url("../images/J's ロゴ.png");
        background-size: 50%;
        width: 100%;
        height: 100%;
        opacity: 0.1;
    }

    /* Recruit Button Text Switch */
    /* Global Text Switch for Mobile */
    .pc-text {
        display: none !important;
    }

    .sp-text {
        display: block !important;
    }

    /* Override for button to keep inline flow */
    .recruit-btn .sp-text {
        display: inline !important;
    }

    .recruit-btn {
        font-size: 0.8rem;
        /* Minimize font size */
        padding: 1rem 1.5rem;
        /* Adjust padding to fit */
        white-space: nowrap;
        /* Prevent line break */
    }
}

/* Hide bottom close button on desktop */
@media screen and (min-width: 769px) {
    .modal-bottom-close {
        display: none;
    }
}

/* Ensure mobile modal scrolling works up to 1024px */
@media screen and (max-width: 1024px) {

    .modal-content,
    .message-card {
        max-height: 85vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        /* Prevent background scroll chaining */
    }
}

     