@layer legacy, theme, base, components, utilities;
@layer legacy {
/* ── 業種別施工事例 スタイル ── */
    :root {
        --ns-accent: #ffffff;
        --ns-accent-dim: rgba(255, 255, 255, 0.1);
        --ns-accent-hover: #e0e0e0;
        --ns-bg-card: #181818;
        --ns-bg-elevated: #1e1e1e;
        --ns-border: #2a2a2a;
        --ns-border-light: #333;
        --ns-text-secondary: #888;
        --ns-text-muted: #999;
        --ns-white: #ffffff;
        --ns-radius-lg: 8px;
    }

    .p-newstarted__vision {
        padding: 120px 0;
    }

    .p-newstarted__vision__img {
        margin: 0;
    }

    #works .l-inner {
        max-width: 1500px;
    }

    .p-newstarted__works-industry {
        padding: 80px 0;
        background: #333333;
        color: #ffffff;
    }

    .p-newstarted__works-industry__header {
        text-align: center;
        margin-bottom: 40px;
    }

    .p-newstarted__works-industry__label {
        font-size: 2.0rem;
        font-weight: bold;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: #C3C3C3;
        display: block;
        margin-bottom: 20px;
        text-align: center;
        position: relative;
    }

    @media screen and (max-width: 768px) {
        .p-newstarted__works-industry__label {
            font-size: 1.3rem;
        }
    }

    .p-newstarted__works-industry__label::after {
        content: "";
        width: 60px;
        height: 5px;
        background-color: #C3C3C3;
        position: absolute;
        right: 0;
        bottom: -11px;
        left: 0;
        margin: auto;
    }

    @media screen and (max-width: 768px) {
        .p-newstarted__works-industry__label::after {
            width: 10vw;
            height: 1vw;
            bottom: -2.2vw;
        }
    }

    .p-newstarted__works-industry__title {
        font-size: 3.0rem;
        font-weight: bold;
        color: #ffffff;
        margin-top: 28px;
        margin-bottom: 16px;
    }

    @media screen and (max-width: 768px) {
        .p-newstarted__works-industry__title {
            font-size: 2.5rem;
        }
    }

    .p-newstarted__works-industry__desc {
        font-size: 1.6rem;
        color: #cccccc;
        max-width: 520px;
        margin: 0 auto;
        line-height: 1.9;
    }

    .industry-tabs {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 40px;
    }

    .industry-tab {
        padding: 8px 20px;
        font-family: 'Noto Sans JP', sans-serif;
        font-size: 13px;
        font-weight: 400;
        letter-spacing: 0.04em;
        background: var(--ns-bg-elevated);
        color: var(--ns-text-secondary);
        border: 1px solid var(--ns-border);
        border-radius: 24px;
        cursor: pointer;
        transition: all 0.2s;
        white-space: nowrap;
    }

    .industry-tab:hover {
        border-color: var(--ns-accent);
        color: var(--ns-white);
    }

    .industry-tab.active {
        background: var(--ns-accent-dim);
        border-color: var(--ns-accent);
        color: var(--ns-accent);
    }

    .works-scroll-wrap {
        position: relative;
        margin: 0 -40px;
    }

    .works-scroll {
        display: flex;
        gap: 20px;
        overflow-x: auto;
        padding: 8px 40px 24px;
        scroll-snap-type: none;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--ns-border-light) transparent;
        scrollbar-color: #888 #444;
    }

    .works-scroll::-webkit-scrollbar {
        height: 10px;
    }

    .works-scroll::-webkit-scrollbar-track {
        background: #444;
    }

    .works-scroll::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 2px;
    }

    .work-card {
        flex: 0 0 300px;
        scroll-snap-align: none;
        background: var(--ns-bg-card);
        border: 1px solid var(--ns-border);
        border-radius: var(--ns-radius-lg);
        overflow: hidden;
        cursor: pointer;
        transition: transform 0.3s, border-color 0.3s;
    }

    .work-card:hover {
        transform: translateY(-4px);
        border-color: var(--ns-accent);
    }

    .work-card.hidden {
        display: none;
    }

    .work-card-img {
        width: 100%;
        height: 200px;
        background: var(--ns-bg-elevated);
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .work-card-img-inner {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;

        font-size: 13px;
        color: var(--ns-text-muted);
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .work-badge {
        position: absolute;
        top: 12px;
        left: 12px;
        background: rgba(0, 0, 0, 0.7);
        border: 1px solid var(--ns-accent);
        color: var(--ns-accent);
        font-size: 10px;
        font-family: 'Barlow Condensed', sans-serif;
        letter-spacing: 0.15em;
        padding: 3px 8px;
        border-radius: 2px;
        text-transform: uppercase;
    }

    .work-card-body {
        padding: 20px;
    }

    .work-card-title {
        font-family: 'Noto Sans JP', sans-serif;
        font-size: 1.5rem;
        font-weight: bold;
        color: var(--ns-white);
        margin-bottom: 6px;
    }

    .work-card-meta {
        font-size: 1.3rem;
        color: var(--ns-text-secondary);
        display: flex;
        gap: 16px;
        margin-bottom: 10px;
    }

    .work-card-tag {
        display: inline-block;
        font-size: 1.1rem;
        padding: 3px 10px;
        background: var(--ns-bg-elevated);
        border: 1px solid var(--ns-border-light);
        border-radius: 2px;
        color: var(--ns-text-secondary);
        margin-right: 4px;
        margin-top: 4px;
    }

    /* gradient patterns */
    .grad-cafe {
        background: linear-gradient(135deg, #1a1510 0%, #241e14 50%, #1e1a10 100%);
    }

    .grad-beauty {
        background: linear-gradient(135deg, #111520 0%, #181020 50%, #120e18 100%);
    }

    .grad-nail {
        background: linear-gradient(135deg, #1a1015 0%, #201218 50%, #160e12 100%);
    }

    .grad-restaurant {
        background: linear-gradient(135deg, #0e1510 0%, #111a12 50%, #0e150f 100%);
    }

    .grad-clinic {
        background: linear-gradient(135deg, #0e1418 0%, #111c22 50%, #0d1620 100%);
    }

    .grad-apparel {
        background: linear-gradient(135deg, #111111 0%, #191919 50%, #131313 100%);
    }

    .grad-bar {
        background: linear-gradient(135deg, #100e14 0%, #1a1022 50%, #0e0c10 100%);
    }

    .grad-gym {
        background: linear-gradient(135deg, #100e0e 0%, #1a1010 50%, #130f0e 100%);
    }

    /* ── FAQ スタイル ── */
    .p-newstarted__faq {
        padding: 80px 0;
        background: #333333;
        color: #ffffff;
    }

    .p-newstarted__faq__header {
        text-align: center;
        margin-bottom: 40px;
    }

    .p-newstarted__faq__label {
        font-size: 2.0rem;
        font-weight: bold;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: #C3C3C3;
        display: block;
        margin-bottom: 20px;
        text-align: center;
        position: relative;
    }

    @media screen and (max-width: 768px) {
        .p-newstarted__faq__label {
            font-size: 1.3rem;
        }
    }

    .p-newstarted__faq__label::after {
        content: "";
        width: 60px;
        height: 5px;
        background-color: #C3C3C3;
        position: absolute;
        right: 0;
        bottom: -11px;
        left: 0;
        margin: auto;
    }

    @media screen and (max-width: 768px) {
        .p-newstarted__faq__label::after {
            width: 10vw;
            height: 1vw;
            bottom: -2.2vw;
        }
    }

    .p-newstarted__faq__title {
        font-size: 3.0rem;
        font-weight: bold;
        color: #ffffff;
        margin-top: 28px;
    }

    @media screen and (max-width: 768px) {
        .p-newstarted__faq__title {
            font-size: 2.5rem;
        }
    }

    .faq-list {
        max-width: 800px;
        margin: 0 auto;
    }

    .faq-item {
        border-bottom: 1px solid var(--ns-border);
    }

    .faq-q {
        width: 100%;
        background: none;
        border: none;
        padding: 22px 0;
        display: flex;
        align-items: flex-start;
        gap: 20px;
        cursor: pointer;
        text-align: left;
    }

    .faq-q-mark {
        font-size: 2.2rem;
        color: var(--ns-accent);
        font-weight: bold;
        flex-shrink: 0;
        line-height: 1.3;
    }

    .faq-q-text {
        font-family: 'Noto Sans JP', sans-serif;
        font-size: 1.6rem;
        font-weight: bold;
        color: var(--ns-white);
        flex: 1;
        line-height: 1.6;
        padding-top: 3px;
    }

    .faq-toggle {
        font-size: 2.0rem;
        color: var(--ns-text-muted);
        flex-shrink: 0;
        transition: transform 0.3s;
        line-height: 1.6;
    }

    .faq-item.open .faq-toggle {
        transform: rotate(45deg);
        color: var(--ns-accent);
    }

    .faq-a {
        display: none;
        padding: 0 0 22px 42px;
        font-size: 1.5rem;
        color: var(--ns-text-secondary);
        line-height: 1.9;
    }

    .faq-item.open .faq-a {
        display: block;
    }

    /* ── FAQ CTA ── */
    .faq-cta-wrap {
        max-width: 800px;
        margin: 40px auto 0;
        display: flex;
        gap: 16px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .faq-cta-btn {
        display: inline-block;
        background: transparent;
        color: #ffffff;
        font-family: 'Noto Sans JP', sans-serif;
        font-size: 1.5rem;
        font-weight: 500;
        letter-spacing: 0.05em;
        padding: 14px 32px;
        border-radius: 4px;
        border: 1px solid #888;
        text-decoration: none;
        transition: all 0.2s;
    }

    .faq-cta-btn:hover {
        border-color: #ffffff;
        color: #ffffff;
    }

    .faq-cta-btn:link,
    .faq-cta-btn:visited {
        color: #ffffff;
    }

    @media screen and (max-width: 768px) {
        .faq-cta-btn {
            font-size: 1.4rem;
            padding: 12px 24px;
            width: 100%;
            max-width: 360px;
            text-align: center;
        }

        .faq-cta-wrap {
            flex-direction: column;
            align-items: center;
        }
    }

    /* ── 開業ガイドセクション ── */
    .p-newstarted__guide {
        padding: 80px 0;
        background: #1a1a1a;
        color: #ffffff;
    }

    .p-newstarted__guide__header {
        text-align: center;
        margin-bottom: 40px;
    }

    .p-newstarted__guide__label {
        font-size: 2.0rem;
        font-weight: bold;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: #C3C3C3;
        display: block;
        margin-bottom: 20px;
        text-align: center;
        position: relative;
    }

    @media screen and (max-width: 768px) {
        .p-newstarted__guide__label {
            font-size: 1.3rem;
        }
    }

    .p-newstarted__guide__label::after {
        content: "";
        width: 60px;
        height: 5px;
        background-color: #C3C3C3;
        position: absolute;
        right: 0;
        bottom: -11px;
        left: 0;
        margin: auto;
    }

    @media screen and (max-width: 768px) {
        .p-newstarted__guide__label::after {
            width: 10vw;
            height: 1vw;
            bottom: -2.2vw;
        }
    }

    .p-newstarted__guide__title {
        font-size: 3.0rem;
        font-weight: bold;
        color: #ffffff;
        margin-top: 28px;
        margin-bottom: 16px;
    }

    @media screen and (max-width: 768px) {
        .p-newstarted__guide__title {
            font-size: 2.5rem;
        }
    }

    .p-newstarted__guide__desc {
        font-size: 1.6rem;
        color: #cccccc;
        max-width: 600px;
        margin: 0 auto 40px;
        line-height: 1.9;
        text-align: center;
    }

    .guide-cta-wrap {
        text-align: center;
    }

    .guide-cta-btn {
        display: inline-block;
        background: #707070;
        color: #ffffff;
        font-family: 'Noto Sans JP', sans-serif;
        font-size: 1.7rem;
        font-weight: 500;
        letter-spacing: 0.08em;
        padding: 20px 64px;
        border-radius: 4px;
        text-decoration: none;
        transition: background 0.2s, transform 0.2s;
    }

    .guide-cta-btn:hover {
        background: #555555;
        transform: translateY(-2px);
    }

    .guide-cta-btn:link,
    .guide-cta-btn:visited {
        color: #ffffff;
    }

    @media screen and (max-width: 768px) {
        .guide-cta-btn {
            font-size: 1.5rem;
            padding: 16px 32px;
            width: 90%;
            max-width: 360px;
        }
    }

    /* ── ご依頼の流れ スタイル ── */
    .p-newstarted__flow {
        padding: 80px 0;
        background: #1a1a1a;
        color: #ffffff;
    }

    .p-newstarted__flow__header {
        text-align: center;
        margin-bottom: 60px;
    }

    .p-newstarted__flow__label {
        font-size: 2.0rem;
        font-weight: bold;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: #C3C3C3;
        display: block;
        margin-bottom: 20px;
        text-align: center;
        position: relative;
    }

    @media screen and (max-width: 768px) {
        .p-newstarted__flow__label {
            font-size: 1.3rem;
        }
    }

    .p-newstarted__flow__label::after {
        content: "";
        width: 60px;
        height: 5px;
        background-color: #C3C3C3;
        position: absolute;
        right: 0;
        bottom: -11px;
        left: 0;
        margin: auto;
    }

    @media screen and (max-width: 768px) {
        .p-newstarted__flow__label::after {
            width: 10vw;
            height: 1vw;
            bottom: -2.2vw;
        }
    }

    .p-newstarted__flow__title {
        font-size: 3.0rem;
        font-weight: bold;
        color: #ffffff;
        margin-top: 28px;
    }

    @media screen and (max-width: 768px) {
        .p-newstarted__flow__title {
            font-size: 2.5rem;
        }
    }

    .flow-steps {
        max-width: 800px;
        margin: 0 auto;
        position: relative;
    }

    .flow-step {
        display: grid;
        grid-template-columns: 80px 1fr;
        gap: 32px;
        position: relative;
    }

    .flow-step::before {
        content: '';
        position: absolute;
        left: 39px;
        top: 80px;
        bottom: 0;
        width: 1px;
        background: linear-gradient(to bottom, rgba(195, 195, 195, 0.3), transparent);
    }

    .flow-step:last-child::before {
        display: none;
    }

    .flow-step-num {
        width: 80px;
        height: 80px;
        background: var(--ns-bg-card);
        border: 1px solid var(--ns-border-light);
        border-radius: 50%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: border-color 0.2s;
    }

    .flow-step:hover .flow-step-num {
        border-color: #C3C3C3;
    }

    .flow-step-num .step-n {
        font-family: 'Barlow Condensed', sans-serif;
        font-size: 1.0rem;
        letter-spacing: 0.15em;
        color: #C3C3C3;
        text-transform: uppercase;
    }

    .flow-step-num .step-i {
        font-size: 2.4rem;
        font-weight: bold;
        color: #ffffff;
        line-height: 1;
    }

    .flow-step-body {
        padding: 16px 0 40px;
    }

    .flow-step-body h3 {
        font-family: 'Noto Sans JP', sans-serif;
        font-size: 1.7rem;
        font-weight: 500;
        color: #ffffff;
        margin-bottom: 8px;
    }

    .flow-step-body p {
        font-size: 1.4rem;
        color: var(--ns-text-secondary);
        line-height: 1.9;
        max-width: 560px;
    }

    .flow-step-tag {
        display: inline-block;
        font-family: 'Noto Sans JP', sans-serif;
        font-size: 1.1rem;
        letter-spacing: 0.05em;
        padding: 2px 10px;
        border: 1px solid #C3C3C3;
        color: #C3C3C3;
        border-radius: 2px;
        margin-bottom: 10px;
    }

    .flow-step-tag--paid {}

    .flow-cta-wrap {
        text-align: center;
        margin-top: 56px;
    }

    .flow-cta-btn {
        display: inline-block;
        background: #707070;
        color: #ffffff;
        font-family: 'Noto Sans JP', sans-serif;
        font-size: 1.6rem;
        font-weight: 500;
        letter-spacing: 0.08em;
        padding: 18px 56px;
        border-radius: 4px;
        text-decoration: none;
        transition: background 0.2s, transform 0.2s;
    }

    .flow-cta-btn:hover {
        background: #555555;
        transform: translateY(-2px);
    }

    .flow-cta-btn:link,
    .flow-cta-btn:visited {
        color: #ffffff;
    }

    @media screen and (max-width: 768px) {
        .flow-cta-btn {
            font-size: 1.4rem;
            padding: 16px 32px;
            width: 90%;
            max-width: 360px;
        }
    }

    @media screen and (max-width: 768px) {
        .flow-step {
            grid-template-columns: 60px 1fr;
            gap: 20px;
        }

        .flow-step-num {
            width: 60px;
            height: 60px;
        }

        .flow-step::before {
            left: 29px;
            top: 60px;
        }

        .flow-step-num .step-i {
            font-size: 2.0rem;
        }

        .flow-step-body {
            padding: 12px 0 32px;
        }
    }

    /* ── フローティングCTA スタイル ── */

    @media (max-width: 768px) {
        .works-scroll-wrap {
            margin: 0 -20px;
        }

        .works-scroll {
            padding: 8px 20px 20px;
        }

        .work-card {
            flex: 0 0 280px;
        }
    }


    /* ── Modal Design ── */
    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        inset: 0;
        background: rgba(0, 0, 0, 0.92);
        backdrop-filter: blur(10px);
        padding: 40px 20px;
        overflow-y: auto;
    }

    .modal.active {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-content {
        background: var(--ns-bg-card);
        max-width: 1000px;
        width: 100%;
        border: 1px solid var(--ns-border);
        border-radius: var(--ns-radius-lg);
        position: relative;
        overflow: hidden;
        animation: fadeUp 0.5s ease;
    }

    .modal-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .modal-slider {
        position: relative;
        background: #000;
        overflow: hidden;
        aspect-ratio: 3/2;
    }

    .slides-inner {
        display: flex;
        transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        height: 100%;
    }

    .slides-inner img {
        width: 100%;
        flex-shrink: 0;
        object-fit: cover;
    }

    .slide-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(17, 17, 17, 0.6);
        border: 1px solid var(--ns-border);
        width: 44px;
        height: 44px;
        cursor: pointer;
        transition: background 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .slide-nav:hover {
        background: rgba(80, 80, 80, 0.8);
    }

    .slide-prev::before,
    .slide-next::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 14px;
        height: 14px;
        border-top: 2px solid #ffffff;
    }

    .slide-prev::before {
        border-left: 2px solid #ffffff;
        transform: translate(-35%, -50%) rotate(-45deg);
    }

    .slide-next::before {
        border-right: 2px solid #ffffff;
        transform: translate(-65%, -50%) rotate(45deg);
    }

    .slide-prev {
        left: 10px;
    }

    .slide-next {
        right: 10px;
    }

    .modal-info {
        padding: 24px 20px 28px;
        border-left: none;
        border-top: 1px solid var(--ns-border);
    }

    .modal-headline {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 12px;
    }

    .modal-info .work-badge {
        position: static;
        top: auto;
        left: auto;
        flex-shrink: 0;
        margin-top: 4px;
    }

    .modal-info h3 {
        font-size: 2.1rem;
        color: var(--ns-white);
        margin: 0;
        font-family: 'Noto Sans JP', sans-serif;
        font-weight: 500;
        line-height: 1.45;
        flex: 1;
        min-width: 0;
    }

    .modal-spec {
        list-style: none;
        padding: 0;
        margin: 0 0 16px;
        border: none;
    }

    .modal-spec__row {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        font-size: 13px;
    }

    .modal-spec__row--size {
        display: none;
    }

    .modal-spec__label {
        color: #C3C3C3;
        width: 72px;
        flex-shrink: 0;
    }

    .modal-spec__value {
        margin: 0;
        color: #888;
        flex: 1;
        line-height: 1.65;
    }


    .modal-wrap {
        position: relative;
        max-width: 1000px;
        width: 100%;
        padding-top: 44px;
    }

    .modal-close {
        position: absolute;
        top: 0;
        right: 0;
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        opacity: 0.85;
        transition: opacity 0.2s;
    }

    .modal-close::before,
    .modal-close::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 36px;
        height: 2px;
        background: #ffffff;
        transform-origin: center;
    }

    .modal-close::before {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .modal-close::after {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    .modal-close:hover {
        opacity: 1;
    }

}
