@layer legacy, theme, base, components, utilities;
@layer legacy {
:root {
        --ns-accent: #ffffff;
        --ns-accent-dim: rgba(255, 255, 255, 0.1);
        --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;
    }

    /* ── ページヘッダー ── */
    .ns-page-hero {
        padding: 80px 0 60px;
        background: #1a1a1a;
        color: #ffffff;
        text-align: center;
    }

    .ns-page-hero__breadcrumb {
        font-size: 1.3rem;
        color: var(--ns-text-secondary);
        margin-bottom: 20px;
        text-align: left;
    }

    .ns-page-hero__breadcrumb a {
        color: var(--ns-text-secondary);
        text-decoration: none;
    }

    .ns-page-hero__breadcrumb a:hover {
        color: #ffffff;
    }

    .ns-page-hero__breadcrumb span {
        margin: 0 8px;
    }

    .ns-page-hero__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;
    }

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

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

    .ns-page-hero__desc {
        font-size: 1.5rem;
        color: #cccccc;
        line-height: 1.9;
    }

    @media screen and (max-width: 768px) {
        .ns-page-hero {
            padding: 60px 0 40px;
        }

        .ns-page-hero__label {
            font-size: 1.3rem;
        }

        .ns-page-hero__label::after {
            width: 10vw;
            height: 1vw;
            bottom: -2.2vw;
        }

        .ns-page-hero__title {
            font-size: 2.5rem;
        }
    }

    /* ── セクション共通 ── */
    .ns-guide-section {
        padding: 80px 0;
        color: #ffffff;
    }

    .ns-guide-section--dark {
        background: #333333;
    }

    .ns-guide-section--deeper {
        background: #222222;
    }

    .ns-guide-section--industry {
        background: #2a2a2a;
    }

    .ns-guide-section__header {
        max-width: 800px;
        margin: 0 auto 40px;
    }

    .ns-guide-section__label {
        font-size: 1.3rem;
        font-weight: bold;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: #C3C3C3;
        display: block;
        margin-bottom: 16px;
        position: relative;
    }

    .ns-guide-section__label::after {
        content: "";
        width: 40px;
        height: 3px;
        background-color: #C3C3C3;
        position: absolute;
        bottom: -8px;
        left: 0;
    }

    .ns-guide-section__title {
        font-size: 2.6rem;
        font-weight: bold;
        color: #ffffff;
        margin-top: 24px;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .ns-guide-section__desc {
        font-size: 1.5rem;
        color: #cccccc;
        line-height: 1.9;
    }

    @media screen and (max-width: 768px) {
        .ns-guide-section__title {
            font-size: 2.0rem;
        }
    }

    /* ── FAQアコーディオン ── */
    .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;
    }

    /* ── 業種別タブ ── */
    .industry-faq-tabs {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-start;
        margin-bottom: 32px;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

    .industry-faq-tab {
        padding: 8px 18px;
        font-family: 'Noto Sans JP', sans-serif;
        font-size: 1.3rem;
        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-faq-tab:hover {
        border-color: var(--ns-accent);
        color: var(--ns-white);
    }

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

    .industry-faq-panel {
        display: none;
    }

    .industry-faq-panel.active {
        display: block;
    }

    .industry-faq-panel__label {
        font-size: 1.5rem;
        font-weight: bold;
        color: #C3C3C3;
        letter-spacing: 0.05em;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--ns-border-light);
        margin-bottom: 4px;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

    @media screen and (max-width: 768px) {
        .industry-faq-tabs {
            gap: 6px;
        }

        .industry-faq-tab {
            font-size: 1.2rem;
            padding: 6px 14px;
        }
    }

    /* ── フローティングCTA ── */

    @media (max-width: 768px) {
    }

    /* ── ページ末尾CTA ── */
    .ns-page-cta {
        padding: 80px 0;
        background: #1a1a1a;
        text-align: center;
        color: #ffffff;
    }

    .ns-page-cta__text {
        font-size: 1.6rem;
        color: #cccccc;
        line-height: 1.9;
        margin-bottom: 32px;
    }

    .ns-page-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;
    }

    .ns-page-cta__btn:hover {
        background: #555555;
        transform: translateY(-2px);
    }

    .ns-page-cta__btn:link,
    .ns-page-cta__btn:visited {
        color: #ffffff;
    }

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

}
