 /* 
 * NEOTEC Front Page Stylesheet
 * トップページ専用（KV・BUSINESS・ABOUT・WORKS・PEOPLE・CTA）
 */

/* ===========================
   KV（Figma 60:499 PC / 655:205 SP）
   =========================== */
.kv {
    /*
     * 動画に重ねる黒グラデーション（上が透明、下端がこの透過度。0 = なし / 1 = 真っ黒）
     * 動画の明るさに合わせてここで調整する。SP だけ変える場合は --kv-overlay-sp を指定。
     */
    --kv-overlay: 0.25;
    --kv-overlay-sp: var(--kv-overlay);

    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    color: #fff;
}

.kv-media {
    position: absolute;
    inset: 0;
    background: #111;
}

.kv-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.kv-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, var(--kv-overlay)));
    pointer-events: none;
}

.kv-content {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
}

.kv-content a,
.kv-content button {
    pointer-events: auto;
}

.kv-copy {
    width: 100%;
}

.kv-copy__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--side-padding) 32px;
}

.kv-motion {
    margin: 0;
    min-width: 0;
}

.kv-motion__text {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 80px;
    font-family: var(--font-main-medium);
    font-weight: var(--font-weight-medium);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
    white-space: nowrap;
}

/*
 * タイトル：1文字ずつ下から迫り上がる → 緑地が左から引かれる（1回のみ）
 * 参考：tyo.co.jp/recruit/whatwedo/ の見出し（-splitText）。バウンド・傾きは付けず、迫り上がりのみ
 * 行の下端で文字を切り抜く。左右・上は緑地がはみ出しても切れないよう余白を持たせる
 */
.kv-motion__line {
    position: relative;
    display: block;
    clip-path: inset(-0.2em -0.2em 0 -0.2em);
}

.kv-motion__line > span {
    position: relative;
    z-index: 1;
    display: block;
}

.kv-motion__char {
    display: inline-block;
    translate: 0 100%;
    transition: translate 0.9s cubic-bezier(0.15, 0.85, 0.3, 1);
    transition-delay: calc(var(--line) * 0.02s + var(--i) * 0.02s);
}

.kv.is-ready .kv-motion__char {
    translate: 0 0;
}

/*
 * 緑地（Figma BG：#008f54 / 80% / 角丸6px）
 * 文字幅に追従させるため、行の上下左右からの距離を文字サイズ基準の em で指定
 * （右は「。」の余白分を詰める）
 */
.kv-motion__line--accent::before {
    content: "";
    position: absolute;
    inset: 0.0375em 0.1625em 0.05em -0.04em;
    border-radius: 6px;
    background: #008f54;
    opacity: 0.8;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.18, 1) 0.75s;
}

.kv.is-ready .kv-motion__line--accent::before {
    transform: scaleX(1);
}

.kv-toggle {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 67px;
    height: 35px;
    margin-bottom: 8px;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 40px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.kv-toggle:hover {
    opacity: 0.5;
}

.kv-toggle__pause {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 4px;
    width: 8px;
    height: 10px;
}

.kv-toggle__pause span {
    display: block;
    width: 2px;
    height: 10px;
    background: currentColor;
}

.kv-toggle__play {
    display: none;
    width: 10px;
    height: 12px;
}

.kv-toggle.is-paused .kv-toggle__pause {
    display: none;
}

.kv-toggle.is-paused .kv-toggle__play {
    display: block;
}

.kv-progress {
    position: relative;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
}

.kv-progress__bar {
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    transform-origin: left;
    transform: scaleX(0);
}

.kv-copy__foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 40px var(--side-padding);
}

.kv-sub {
    margin: 0;
    color: #fff;
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: 0.02em;
    font-family: var(--font-main-medium);
    font-weight: var(--font-weight-medium);
    max-width: 672px;
}

.kv-sub .sp-only {
    display: none;
}

.kv-scroll {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    color: #fff;
    font-size: 16px;
    font-weight: var(--font-weight-medium);
    font-family: var(--font-en);
    letter-spacing: 0.01em;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.kv-scroll__arw {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 18px;
    animation: kvScrollBounce 1.5s ease-in-out infinite;
}

.kv-scroll__arw img {
    display: block;
    width: 18px;
    height: 12px;
    transform: rotate(90deg);
}

@media (max-width: 1024px) {
    .kv-motion__text {
        font-size: clamp(40px, 6.25vw, 80px);
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .kv {
        height: 100svh;
    }

    .kv-copy__head {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 20px;
    }

    .kv-motion {
        position: absolute;
        left: 20px;
        right: 20px;
        top: calc(50% - 54px);
        transform: translateY(-50%);
        width: auto;
        pointer-events: none;
    }

    .kv-media::after {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, var(--kv-overlay-sp)));
    }

    .kv-motion__text {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        font-size: 50px;
        letter-spacing: -0.02em;
        white-space: normal;
    }

    /* 1文字ずつ inline-block のため、狭い画面で「、」だけが次の行に落ちないよう行内は折り返さない */
    .kv-motion__line > span {
        white-space: nowrap;
    }

    .kv-toggle {
        width: auto;
        height: auto;
        min-width: 56px;
        margin-bottom: 0;
        padding: 10px 24px;
    }

    .kv-copy__foot {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 32px 20px 24px;
    }

    .kv-sub {
        font-size: 16px;
        max-width: none;
    }

    .kv-sub .sp-only {
        display: inline;
    }

    .kv-scroll {
        gap: 10px;
        font-size: 14px;
    }

    .kv-scroll__arw {
        width: 8px;
        height: 12px;
    }

    .kv-scroll__arw img {
        width: 12px;
        height: 8px;
    }
}

@keyframes kvScrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

@media (prefers-reduced-motion: reduce) {
    .kv-motion__char {
        translate: 0 0;
        transition: none;
    }

    .kv-motion__line--accent::before {
        transform: none;
        transition: none;
    }

    .kv-toggle {
        transition: none;
    }

    .kv-scroll__arw {
        animation: none;
    }
}

/* ===========================
   BUSINESS Section - Sticky Scroll
   =========================== */
.business {
    background: transparent;
}

.business-sticky {
    /* PC: パネルの最小高さ。画面の高さには揃えず中身の高さにする（トップ・事業内容共通）。
       図解の切替をゆっくりにしたい場合は 100dvh などを指定する */
    --business-panel-min-height: auto;
    display: flex;
    margin: 0 auto;
    position: relative;
}

.business-sticky__left {
    --business-left-pad-y: clamp(12px, 2.2vh, 24px);
    --business-left-gap: clamp(8px, 2vh, 24px);
    /* 見出し一式の概算高さ（SOLUTION + タイトル） */
    --business-left-head: 110px;
    position: sticky;
    top: 0;
    width: 50%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--business-left-gap);
    /* fixedヘッダー分を上に足し、可視領域の中央に寄せる */
    padding: calc(var(--header-height) + var(--business-left-pad-y)) 40px var(--business-left-pad-y);
    background: #f1f9f6;
    overflow: hidden;
    box-sizing: border-box;
}

/* SOLUTIONタイトル（PC/SP共通・SVGから分離） */
.business-sticky__solution-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 1.5vh, 16px);
    width: 100%;
    text-align: center;
    flex-shrink: 0;
}

.business-sticky__solution-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 24px 7px;
    border: 1px solid #057e4c;
    border-radius: 50px;
    color: #057e4c;
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.01em;
    line-height: 1;
}

.business-sticky__solution-heading {
    margin: 0;
    color: #057e4c;
    font-size: clamp(16px, 1.2vw + 12px, 24px);
    font-family: var(--font-main-medium);
    font-weight: var(--font-weight-medium);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

/* 図解のみ（背景なしSVG・1:1）
   短いviewportでは max-height 相当で正方形を縮小し、見切れを防ぐ */
.business-sticky__diagram {
    --diagram-max: calc(
        100vh
        - var(--header-height)
        - (var(--business-left-pad-y) * 2)
        - var(--business-left-head)
        - var(--business-left-gap)
    );
    position: relative;
    width: min(100%, 540px, var(--diagram-max));
    max-width: 540px;
    aspect-ratio: 1 / 1;
    flex-shrink: 1;
    min-height: 0;
}

@supports (height: 100dvh) {
    .business-sticky__diagram {
        --diagram-max: calc(
            100dvh
            - var(--header-height)
            - (var(--business-left-pad-y) * 2)
            - var(--business-left-head)
            - var(--business-left-gap)
        );
    }
}

/*
 * 図解（diagram-0〜3 を1枚にまとめたインラインSVG）。状態は .business-sticky__diagram の data-active
 *   0: 初期 / 1: 建物総合管理 / 2: 建物営繕工事 / 3: 不動産運用・バリューアップ
 * 線は pathLength="1" なので stroke-dashoffset 1→0 で描ける。JS: base.js bindDiagramDraw（初回）・front-page.js redrawDiagram（切替）
 */
.business-diagram {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.business-diagram__outer,
.business-diagram__arc {
    stroke-dasharray: 1 1;
}

.business-diagram__arc {
    transition: stroke 0.6s ease;
}

.business-diagram__fill {
    opacity: 0;
    transition: opacity 0.9s ease;
}

.business-diagram__dot {
    transform-box: fill-box;
    transform-origin: center;
}

.business-diagram__dot > * {
    transition: fill 0.6s ease;
}

.business-diagram__grp {
    transition: opacity 0.6s ease;
}

/* 状態ごとの見た目（元の diagram-1〜3.svg と同じ色・透明度） */
.business-sticky__diagram[data-active="1"] .business-diagram__arc--r,
.business-sticky__diagram[data-active="3"] .business-diagram__arc--r {
    stroke: #c3dbd2;
}

.business-sticky__diagram[data-active="2"] .business-diagram__arc--l,
.business-sticky__diagram[data-active="3"] .business-diagram__arc--l {
    stroke: #c2e0d4;
}

.business-sticky__diagram[data-active="1"] .business-diagram__dot--2 > *,
.business-sticky__diagram[data-active="3"] .business-diagram__dot--2 > * {
    fill: #c3dbd2;
}

.business-sticky__diagram[data-active="2"] .business-diagram__dot--1 > *,
.business-sticky__diagram[data-active="3"] .business-diagram__dot--1 > * {
    fill: #c2e0d4;
}

/* 内側の塗りは、描き直した線が引き切るぎりぎり手前で出す */
.business-sticky__diagram[data-active="1"] .business-diagram__fill--l,
.business-sticky__diagram[data-active="2"] .business-diagram__fill--r,
.business-sticky__diagram[data-active="3"] .business-diagram__fill--c {
    opacity: 1;
    transition-delay: 1s;
}

.business-sticky__diagram[data-active="1"] .business-diagram__grp--vc,
.business-sticky__diagram[data-active="1"] .business-diagram__grp--cs,
.business-sticky__diagram[data-active="2"] .business-diagram__grp--vc,
.business-sticky__diagram[data-active="2"] .business-diagram__grp--mg,
.business-sticky__diagram[data-active="3"] .business-diagram__grp--mg,
.business-sticky__diagram[data-active="3"] .business-diagram__grp--cs {
    opacity: 0.2;
}

/* 切替時：その状態の線を描き直す。02 建物営繕工事（右）は逆向きに描く */
.business-diagram__outer.is-redraw,
.business-diagram__arc.is-redraw {
    animation: business-diagram-draw 1.2s cubic-bezier(0.65, 0, 0.35, 1);
}

.business-diagram__arc--r.is-redraw {
    animation-name: business-diagram-draw-reverse;
}

@keyframes business-diagram-draw {
    from { stroke-dashoffset: 1; }
    to { stroke-dashoffset: 0; }
}

@keyframes business-diagram-draw-reverse {
    from { stroke-dashoffset: -1; }
    to { stroke-dashoffset: 0; }
}

/* 初回表示：左右の円弧 → 引き切る手前で外周の大円。ドット・文字は線が描き終わる手前で出す */
.business-sticky__diagram.is-ready .business-diagram__outer,
.business-sticky__diagram.is-ready .business-diagram__arc {
    stroke-dashoffset: 1;
}

.business-sticky__diagram.is-ready .business-diagram__arc--r {
    stroke-dashoffset: -1;
}

.business-sticky__diagram.is-ready .business-diagram__dot {
    transform: scale(0);
}

.business-sticky__diagram.is-ready .business-diagram__labels {
    opacity: 0;
}

.business-sticky__diagram.is-visible .business-diagram__arc {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1.4s cubic-bezier(0.65, 0, 0.35, 1), stroke 0.6s ease;
}

.business-sticky__diagram.is-visible .business-diagram__outer {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1.3s cubic-bezier(0.65, 0, 0.35, 1) 0.7s;
}

.business-sticky__diagram.is-visible .business-diagram__dot {
    transform: scale(1);
    transition: transform 0.55s cubic-bezier(0.22, 0.8, 0.3, 1) 1.15s;
}

.business-sticky__diagram.is-visible .business-diagram__dot--1 {
    transition-delay: 1.3s;
}

.business-sticky__diagram.is-visible .business-diagram__labels {
    opacity: 1;
    transition: opacity 0.8s ease 1.2s;
}

@media (prefers-reduced-motion: reduce) {
    .business-diagram * {
        transition: none !important;
        animation: none !important;
    }
}

/* SP用の図解ラベル（template-parts/business-diagram-labels-sp.php）。PCはSVG内の文字を使う */
.business-diagram-sp {
    display: none;
}

/* 旧テキストハイライト実装は未使用 */
.diagram-circle,
.diagram-highlight,
.business-sticky__diagram::before,
.business-sticky__diagram::after {
    display: none;
}

/* Right scrolling panels */
.business-sticky__right {
    width: 50%;
    display: flex;
    flex-direction: column;
}

.business-sticky__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: var(--business-panel-min-height);
    padding: 80px 40px 80px 80px;
    background: #0c6440;
}

/* Alternating panel backgrounds and colors */
.business-sticky__panel:nth-child(1) {
    background: #0c6440;
}
.business-sticky__panel:nth-child(1) .business-sticky__title,
.business-sticky__panel:nth-child(1) .business-sticky__desc,
.business-sticky__panel:nth-child(1) .business-sticky__btn-label {
    color: #ffffff;
}
.business-sticky__panel:nth-child(1) .business-sticky__en-title {
    color: #08c476;
}
.business-sticky__panel:nth-child(1) .business-sticky__panel-top {
    gap: 32px;
}
.business-sticky__panel:nth-child(1) .business-sticky__panel-bottom {
    gap: 24px;
}
/* Panel1: テキスト＋白ピル矢印 */
.business-sticky__panel:nth-child(1) .business-sticky__btn--text {
    background: transparent;
    color: #ffffff;
    padding: 0;
    gap: 14px;
}
.business-sticky__panel:nth-child(1) .business-sticky__btn--text .business-sticky__btn-arrow {
    background: #ffffff;
    color: #0c6440;
    width: auto;
    height: auto;
    padding: 10px 20px;
    border-radius: 42px;
}

.business-sticky__panel:nth-child(2) {
    background: #ffffff;
}
.business-sticky__panel:nth-child(3) {
    background: #fafafa;
}
.business-sticky__panel:nth-child(4) {
    background: #ffffff;
    padding-bottom: 140px;
}

.business-sticky__panel:nth-child(2) .business-sticky__en-title,
.business-sticky__panel:nth-child(3) .business-sticky__en-title,
.business-sticky__panel:nth-child(4) .business-sticky__en-title,
.business-sticky__panel:nth-child(2) .business-sticky__title,
.business-sticky__panel:nth-child(3) .business-sticky__title,
.business-sticky__panel:nth-child(4) .business-sticky__title {
    color: #0c6440;
}

.business-sticky__panel:nth-child(2) .business-sticky__desc,
.business-sticky__panel:nth-child(3) .business-sticky__desc,
.business-sticky__panel:nth-child(4) .business-sticky__desc {
    color: #2e2e2e;
}

.business-sticky__panel:nth-child(2) .business-sticky__title,
.business-sticky__panel:nth-child(3) .business-sticky__title,
.business-sticky__panel:nth-child(4) .business-sticky__title {
    font-size: 32px;
}

.business-sticky__panel-inner {
    display: flex;
    flex-direction: column;
    gap: 100px;
    max-width: 540px;
    width: 100%;
    margin: 0;
}

.business-sticky__panel:nth-child(2) .business-sticky__panel-inner,
.business-sticky__panel:nth-child(3) .business-sticky__panel-inner,
.business-sticky__panel:nth-child(4) .business-sticky__panel-inner {
    gap: 120px;
}

.business-sticky__panel-top {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.business-sticky__en-title {
    font-family: var(--font-en);
    font-size: 16px;
    font-weight: var(--font-weight-medium);
    color: #08c476;
    letter-spacing: 0.01em;
    line-height: 1;
    display: block;
}

.business-sticky__title {
    font-size: 40px;
    font-family: var(--font-main-medium);
    font-weight: var(--font-weight-medium);
    line-height: 1.2;
    letter-spacing: -0.8px;
    margin: 0;
    color: #ffffff;
}

.business-sticky__panel-bottom {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 100%;
    padding-left: 64px;
    align-self: flex-end;
}

.business-sticky__panel-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.business-sticky__panel-heading {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.business-sticky__panel-subtitle {
    font-size: 24px;
    font-family: var(--font-main-medium);
    font-weight: var(--font-weight-medium);
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #222222;
    margin: 0;
}

.business-sticky__desc {
    font-size: 16px;
    font-weight: var(--font-weight-regular);
    line-height: 1.55;
    letter-spacing: 0.02em;
    margin: 0;
}

.business-sticky__btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 16px;
    font-family: var(--font-main-medium);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.02em;
    text-decoration: none;
    width: fit-content;
    line-height: 1;
}

.business-sticky__btn-label {
    display: inline-block;
    line-height: 1;
    transform-origin: center center;
}

.business-sticky__btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
}

.business-sticky__btn-arrow svg {
    display: block;
}

@media (hover: hover) and (min-width: 769px) {
    .business-sticky__btn-label {
        transition: transform 0.3s ease;
    }

    .business-sticky__btn--text:hover .business-sticky__btn-label {
        transform: scale(var(--hover-label-scale));
    }
}

@media (prefers-reduced-motion: reduce) {
    .business-sticky__btn,
    .business-sticky__btn-label {
        transition: none;
    }

    .business-sticky__btn--text:hover .business-sticky__btn-label {
        transform: none;
    }
}

/* 詳細パネル: 緑ピル＋白矢印のみ */
.business-sticky__btn--arrow-only {
    background: #057e4c;
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 42px;
}

.business-sticky__btn--arrow-only .business-sticky__btn-arrow {
    background: transparent;
    color: #ffffff;
    width: auto;
    height: auto;
    padding: 0;
}

.business-sticky__btn--arrow-only .business-sticky__btn-arrow svg {
    width: 14px;
    height: 9px;
    display: block;
}

.business-sticky__panel:nth-child(1) .business-sticky__btn--text .business-sticky__btn-arrow svg {
    width: 10px;
    height: 7px;
    display: block;
}

.business-sticky__panel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin: 0;
}

.business-sticky__panel-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px 7px;
    background: rgba(0, 143, 84, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 2px;
    font-size: 12px;
    color: #0c6440;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
}

.business-sticky__panel-tag:hover {
    background: rgba(0, 143, 84, 0.2);
    color: #057e4c;
}

/* トップ: 詳細パネル（01〜03）は本文を左インデントで全幅にし「くわしくみる」＋緑ピル矢印 */
.business--top .business-sticky__panel:nth-child(n+2) .business-sticky__panel-inner {
    gap: 80px;
}

.business--top .business-sticky__panel:nth-child(2),
.business--top .business-sticky__panel:nth-child(3) {
    padding-bottom: 100px;
}

.business--top .business-sticky__panel:nth-child(n+2) {
    scroll-margin-top: var(--header-height);
}

.business--top .business-sticky__panel:nth-child(n+2) .business-sticky__panel-bottom {
    max-width: 100%;
    padding-left: 64px;
    align-self: stretch;
}

.business--top .business-sticky__panel:nth-child(n+2) .business-sticky__btn--text {
    background: transparent;
    color: var(--color-primary);
    padding: 0;
    gap: 14px;
}

.business--top .business-sticky__panel:nth-child(n+2) .business-sticky__btn--text .business-sticky__btn-arrow {
    background: var(--color-primary);
    color: #ffffff;
    width: auto;
    height: auto;
    padding: 10px 20px;
    border-radius: 42px;
}

.business--top .business-sticky__panel:nth-child(n+2) .business-sticky__btn--text .business-sticky__btn-arrow svg {
    width: 10px;
    height: 7px;
}

.business-sticky__br-sp {
    display: none;
}

/* SP専用: 詳細パネルのスクロール位置ナビ（画面左・上下中央に固定） */
.business-progress {
    display: none;
}

/* Mobile Adjustments for Business */
@media (max-width: 1024px) {
    .business-sticky {
        flex-direction: column;
    }

    .business-sticky__right {
        display: contents;
    }

    .business-sticky__panel:nth-child(1) {
        order: 0;
    }
    
    .business-sticky__left {
        position: relative;
        width: 100%;
        height: auto;
        padding: 48px 20px 40px;
        order: 1;
        background: #f1f9f6;
        overflow: hidden;
        gap: 24px;
    }

    .business-sticky__panel:nth-child(n+2) {
        order: 2;
    }

    .business-sticky__solution-label {
        padding: 8px 20px 7px;
    }

    /* Figma 679:1066：外周の円が画面幅390pxで350px（左右20px）になるよう、SVGの余白分だけ左右にはみ出させる */
    .business-sticky__diagram {
        max-width: none;
        width: calc(100% + 20px);
        margin: -4px -10px -5px;
        container-type: inline-size;
    }

    /* SPは切り替えないので、SVG内の文字の代わりに Figma の文字サイズのラベルを重ねる */
    .business-diagram__labels {
        display: none;
    }

    .business-diagram-sp {
        display: block;
        position: absolute;
        inset: 0;
        pointer-events: none;
    }

    .business-sticky__diagram.is-ready .business-diagram-sp {
        opacity: 0;
    }

    .business-sticky__diagram.is-visible .business-diagram-sp {
        opacity: 1;
        transition: opacity 0.8s ease 1.2s;
    }

    /* 位置は図解の枠（SVGの540四方）に対する%。文字は枠370pxのとき Figma の 12px / 18px / 16px */
    .business-diagram-sp__item {
        position: absolute;
        top: 44.85%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: clamp(4px, 1.35cqw, 8px);
        margin: 0;
        white-space: nowrap;
        transform: translateX(-50%);
        font-feature-settings: "palt" 1;
    }

    .business-diagram-sp__item--vc {
        top: 9.24%;
        left: 50%;
    }

    .business-diagram-sp__item--mg {
        left: 27.8%;
    }

    .business-diagram-sp__item--cs {
        left: 72%;
    }

    .business-diagram-sp__en {
        color: #a3a3a3;
        font-family: var(--font-en);
        font-size: clamp(10px, 3.24cqw, 16px);
        font-weight: var(--font-weight-medium);
        letter-spacing: 0.01em;
        line-height: 1;
    }

    .business-diagram-sp__ja {
        color: #057e4c;
        font-family: var(--font-main-medium);
        font-size: clamp(14px, 4.86cqw, 24px);
        font-weight: var(--font-weight-medium);
        letter-spacing: -0.02em;
        line-height: 1.3;
    }

    .business-diagram-sp__item--cs .business-diagram-sp__ja {
        color: #0c6440;
    }

    .business-diagram-sp__item--vc .business-diagram-sp__ja {
        color: #112c21;
        font-size: clamp(13px, 4.32cqw, 22px);
    }
    
    .business-sticky__panel {
        min-height: auto;
        padding: 80px 20px;
        width: 100%;
    }

    .business-sticky__panel:nth-child(4) {
        padding-bottom: 64px;
    }

    .business-sticky__panel:nth-child(n+2) {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .business-sticky__panel-inner {
        gap: 64px;
        max-width: 100%;
    }

    .business-sticky__panel:nth-child(2) .business-sticky__panel-inner,
    .business-sticky__panel:nth-child(3) .business-sticky__panel-inner,
    .business-sticky__panel:nth-child(4) .business-sticky__panel-inner {
        gap: 80px;
    }

    .business-sticky__title {
        font-size: 32px;
        letter-spacing: -0.64px;
    }

    .business-sticky__panel:nth-child(2) .business-sticky__title,
    .business-sticky__panel:nth-child(3) .business-sticky__title,
    .business-sticky__panel:nth-child(4) .business-sticky__title {
        font-size: 30px;
    }

    .business-sticky__panel:nth-child(2) .business-sticky__en-title,
    .business-sticky__panel:nth-child(3) .business-sticky__en-title,
    .business-sticky__panel:nth-child(4) .business-sticky__en-title {
        font-size: 14px;
    }

    .business-sticky__panel-bottom {
        align-self: flex-end;
        max-width: 100%;
        gap: 32px;
    }

    .business-sticky__panel:nth-child(1) .business-sticky__panel-bottom {
        gap: 32px;
    }

    .business-sticky__panel-text {
        gap: 24px;
    }

    .business-sticky__desc {
        font-size: 15px;
        text-align: justify;
    }

    .business-sticky__btn {
        font-size: 15px;
    }

    .business-sticky__btn--arrow-only {
        padding: 10px 24px;
    }

    .business--top .business-sticky__panel:nth-child(n+2) .business-sticky__panel-inner {
        gap: 56px;
    }

    .business--top .business-sticky__panel:nth-child(n+2) .business-sticky__panel-top {
        padding-left: 40px;
    }

    .business--top .business-sticky__panel:nth-child(4) {
        padding-bottom: 80px;
    }

    .business-sticky__br-sp {
        display: inline;
    }

    .business--top .business-sticky__panel:nth-child(n+2) .business-sticky__panel-bottom {
        max-width: 100%;
        padding-left: 72px;
    }

    .business-progress {
        display: block;
        position: fixed;
        top: 50%;
        left: 16px;
        z-index: 50;
        opacity: 0;
        visibility: hidden;
        transform: translateY(calc(-50% - 6px));
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
        pointer-events: none;
    }

    .business-progress.is-visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(-50%);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s;
        pointer-events: auto;
    }

    .business-progress__list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .business-progress__item {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* 10pxの枠の中で 6px（未表示）↔ 10px（表示中）を拡縮し、線の位置をずらさない */
    .business-progress__dot {
        position: relative;
        z-index: 1;
        display: block;
        width: 10px;
        height: 10px;
    }

    .business-progress__dot::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: #d4d4d4;
        transform: scale(0.6);
        transition: background-color 0.3s ease, transform 0.3s ease;
    }

    /* タップ範囲の拡張 */
    .business-progress__dot::after {
        content: "";
        position: absolute;
        inset: -8px;
    }

    .business-progress__item.is-reached .business-progress__dot::before {
        background: var(--color-primary);
    }

    .business-progress__item.is-active .business-progress__dot::before {
        transform: none;
    }

    .business-progress__line {
        position: relative;
        display: block;
        width: 1px;
        height: 22px;
        margin: -2px 0;
        background: #d4d4d4;
        overflow: hidden;
    }

    .business-progress__fill {
        position: absolute;
        top: 0;
        left: 0;
        width: 1px;
        height: 0;
        background: var(--color-primary);
    }
}

@media (max-width: 1024px) and (prefers-reduced-motion: reduce) {
    .business-sticky__diagram.is-visible .business-diagram-sp,
    .business-progress,
    .business-progress.is-visible,
    .business-progress__dot::before {
        transition: none;
    }
}

/* ===========================
   NEWS Section（トップ・要件外の先行実装）
   =========================== */
.news {
    background: var(--color-bg);
}

.news-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 40px;
}

.news-head__left .section-label {
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
}

.news-head__left .section-heading {
    margin: 0;
}

.news-head__right {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .news-head {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 32px;
    }
}

/* ===========================
   ABOUT Section
   =========================== */
.about-us {
    background: var(--color-bg);
}

/* PC: 上下の余白 100px（Figma 75:65）。1024px 以下は下のメディアクエリで上書き */
.about-us .section-inner {
    padding: 100px var(--side-padding);
}

.about-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 56px;
}

.about-top__left {
    width: 25%;
}

.about-top__left .section-label {
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
}

/*
 * 右の列は内容幅の 75% − 4px（Figma 230:414：1200px 中 896px）。
 * 見出しの左端が下の数字カードの 2 枚目（4 列グリッドの 2 列目）にそろう
 */
.about-top__right {
    width: calc(75% - 4px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* 見出しの改行: SP のみ「建物の生涯に、/揺るぎない価値を。」 */
.about-top__br-sp {
    display: none;
}

.about-top__right .section-heading {
    font-size: 48px;
    margin-bottom: 60px;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-align: left;
    align-self: flex-start;
    width: 100%;
}

/* 見出しの迫り上がり（.js-heading-fadein）の動きは base.css。トップは語句の途中で改行しない */
.front-page .js-heading-fadein {
    word-break: keep-all;
    /* Safari は keep-all だと「、」でも改行しないため、収まらない行は枠の中で折り返す */
    overflow-wrap: anywhere;
}

/*
 * 本文は内容幅の 50% − 4px で右寄せ＝画面中央 + 4px（グリッドの間隔 8px の半分）から始まる。
 * 親（右の列）の幅 W = 内容幅 × 0.75 − 4px なので、内容幅 × 0.5 − 4px = (W + 4px) × 2/3 − 4px
 */
.about-desc {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: calc((100% + 4px) * 2 / 3 - 4px);
    align-self: flex-end;
}

.about-desc p {
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: 0.32px;
    margin-bottom: 40px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
}

.stat-box {
    position: relative;
    aspect-ratio: 298 / 421;
    background-color: #333;
    background-size: cover;
    background-position: center;
    border-radius: 0;
    overflow: hidden;
    color: #fff;
    container-type: inline-size;
    container-name: stat-box;
}

/* PC: 両端のみ角丸（Figma 283:803 8px） */
.stat-box:first-child {
    border-radius: 8px 0 0 8px;
}

.stat-box:last-child {
    border-radius: 0 8px 8px 0;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.stat-box__inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Figma 274:729：左右と下 32px（ラベルの左位置とそろえる） */
    padding: 32px;
}

.stat-box__label {
    font-size: 18px;
    font-family: var(--font-main-medium);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.02em;
    line-height: 1;
    position: absolute;
    top: 41px;
    left: 32px;
}

/* 数字の上に添える補足（「累計」）。Figma 4864:6598 */
.stat-box__prefix {
    margin-bottom: 8px;
    font-size: 18px;
    font-family: var(--font-main-medium);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.02em;
    line-height: 1;
}

.stat-box__value {
    font-family: var(--font-en);
    /* フォールバック → コンテナ幅連動 */
    font-size: clamp(28px, 5.5vw, 72px);
    font-size: clamp(28px, 24cqi, 72px);
    font-weight: var(--font-weight-medium);
    line-height: 1;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.stat-box__unit {
    font-family: var(--font-main);
    font-size: clamp(14px, 1.8vw, 24px);
    font-size: clamp(14px, 8cqi, 24px);
    margin-left: 4px;
}

/*
 * 「＋」は Figma では線 2 本の図形（PC：単位 24px に対し 20px 角・線 2.5px・間隔 5px）。
 * 単位の文字サイズに比例させ、文字の「＋」は読み上げ・コピー用に残して見えなくする
 */
.stat-box__plus {
    position: relative;
    display: inline-block;
    width: 0.833em;
    height: 0.833em;
    margin-left: 0.2em;
    vertical-align: -0.05em;
    color: transparent;
    overflow: hidden;
}

.stat-box__plus::before,
.stat-box__plus::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 0.104em;
    background: #fff;
    transform: translate(-50%, -50%);
}

.stat-box__plus::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

/* 「%」は Figma で 30px（ほかの単位は 24px）。SP は下のメディアクエリでほかの単位とそろえる */
.stat-box__unit--percent {
    font-family: var(--font-en);
    font-size: clamp(17px, 10cqi, 30px);
}

/* 数値: growin.jp maincopy inner span と同じ、1文字ずつ下から */
.stat-box__value .stat-digit-wrap {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

.stat-box__value .stat-digit {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    transition:
        transform 0.5s cubic-bezier(0.215, 0.61, 0.355, 1),
        opacity 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.about-stats.is-visible .stat-box__value .stat-digit {
    transform: translateY(0);
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .stat-box__value .stat-digit {
        transform: none;
        opacity: 1;
        transition: none;
    }
}

.stat-box__desc {
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    opacity: 0.95;
}

@media (max-width: 1024px) {
    .about-us .section-inner {
        padding: 80px var(--side-padding) 0;
    }
    /* 2列時もフルブリード＋角丸なし */
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1px;
        width: calc(100% + var(--side-padding) * 2);
        margin-left: calc(var(--side-padding) * -1);
        margin-right: calc(var(--side-padding) * -1);
    }

    .stat-box,
    .stat-box:first-child,
    .stat-box:last-child {
        border-radius: 0;
        /* PCと同じ比率（298:421）で高さを担保 */
        aspect-ratio: 298 / 421;
        min-height: 0;
    }
}

@media (max-width: 768px) {
    .about-top {
        flex-direction: column;
        margin-bottom: 64px;
    }

    .about-top__left,
    .about-top__right {
        width: 100%;
    }

    /* Figma SP: ABOUT US と見出しの間は 32px（ラベル共通の下余白 8px を消す） */
    .about-top__left {
        margin-bottom: 32px;
    }

    .about-top__left .section-label {
        margin-bottom: 0;
    }

    .about-top__br-sp {
        display: inline;
    }

    /* Figma SP 36px。行を折り返さない表示のため、狭い端末では画面幅に合わせて縮める */
    .about-top__right .section-heading {
        font-size: clamp(28px, 9.2vw, 36px);
        margin-bottom: 80px;
    }

    /* Figma SP: 本文とボタンは左から 92px（右寄せ・左に 72px 空ける） */
    .about-desc {
        width: auto;
        align-self: stretch;
        margin-left: 72px;
    }

    .about-desc p {
        font-size: 15px;
        letter-spacing: 0.3px;
        text-align: justify;
        margin-bottom: 32px;
    }

    .about-desc .btn-more-circle {
        gap: 14px;
        font-size: 15px;
        letter-spacing: 0.02em;
    }

    .stat-box__inner {
        padding: 24px 20px 20px;
    }

    .stat-box__label {
        top: 24px;
        left: 20px;
        font-size: 15px;
    }

    /* Figma 4864:6599 */
    .stat-box__prefix {
        margin-bottom: 6px;
        font-size: 14px;
        letter-spacing: -0.02em;
        line-height: 1.2;
    }

    /* Figma 667:885：カード幅 195px で数字 40px・単位 20px。カード幅に比例させる */
    .stat-box__value {
        font-size: clamp(28px, 20.5cqi, 40px);
        letter-spacing: -0.01em;
        margin-bottom: 6px;
    }

    .stat-box__unit {
        font-size: clamp(14px, 10.25cqi, 20px);
    }

    .stat-box__desc {
        font-size: 12px;
        line-height: 1.3;
    }
}

/* ===========================
   WORKS Section
   =========================== */
.works {
    background: #112c21;
    color: #ffffff;
}

.works .section-label--white {
    color: #008f54 !important;
    font-weight: var(--font-weight-medium);
}

/* トップのみ PC/SP とも英字「WORKS」表示（管理・工事ページは business.css の出し分けのまま） */
.front-page .works--featured .works-header__label-ja {
    display: none;
}

.front-page .works--featured .works-header__label-en {
    display: block;
    margin-bottom: 0;
    letter-spacing: 0.01em;
}

.works-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    gap: 24px;
}

.works-header__left {
    flex: 0 0 auto;
    padding-top: 0.2em;
}

.works-header__right {
    /* 画像・タブと同じ右75%カラムに揃え */
    width: 75%;
    max-width: 75%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: clamp(24px, 8vw, 156px);
    min-width: 0;
    container-type: inline-size;
    container-name: works-header;
}

.works-heading {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    /* デザイン40px基準。カラム幅が狭いときだけ段階的に縮小 */
    font-size: clamp(30px, 4.6cqi + 0.55rem, 40px);
    font-family: var(--font-main-medium);
    font-weight: var(--font-weight-medium);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.works-heading br {
    display: block;
}

.works .btn-more-circle--white {
    flex: 0 0 auto;
    gap: clamp(10px, 0.8vw, 14px);
    font-size: clamp(12px, 0.35vw + 0.7rem, 14px);
    font-family: var(--font-main-medium);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.works .btn-more-circle--white .circle-arrow {
    width: auto;
    height: auto;
    padding: clamp(8px, 0.5vw + 6px, 10px) clamp(14px, 1vw + 8px, 20px);
    background: #ffffff;
    color: #057e4c;
}

.works .btn-more-circle--white .circle-arrow svg {
    width: clamp(9px, 0.5vw + 6px, 14px);
    height: auto;
    display: block;
}

/* Works Main Area */
.works-main {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

/* Works Viewer (Image + Overlay) */
.works-viewer {
    position: relative;
    width: 75%;
    aspect-ratio: 898 / 505;
    border-radius: 16px;
    overflow: hidden;
    /* メタ欄幅を固定し、切替時の border-left 位置を安定させる */
    --works-meta-col: 258px;
}

.works-viewer__images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.works-viewer__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.works-viewer__image.is-active {
    opacity: 1;
}

.works-viewer__image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.works-viewer__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* アイキャッチ未登録の実績は黒地にする（サンプル画像は出さない） */
.works-viewer__image--empty {
    background: #000000;
}

/* Overlay at bottom of image — 切替後に下部から迫り上がる
   ※ opacity をアニメると backdrop-filter が終端で効き始めるため、移動のみ */
.works-viewer__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    transform: translateY(100%);
    transition: transform 0.7s ease;
    pointer-events: none;
    /* リセット位置（画面外）でもぼかしを常時適用 */
    -webkit-backdrop-filter: blur(3.5px);
    backdrop-filter: blur(3.5px);
    background: rgba(0, 0, 0, 0.3);
}

.works-viewer__overlay.is-visible {
    transform: translateY(0);
    pointer-events: auto;
}

/* 切替直後のリセットはトランジションなし */
.works-viewer__overlay.is-resetting {
    transition: none;
}

@media (prefers-reduced-motion: reduce) {
    .works-viewer__image {
        transition: none;
    }

    .works-viewer__overlay {
        transition: none;
        transform: none;
        pointer-events: auto;
    }
}

.works-viewer__info {
    display: none;
    align-items: stretch;
    width: 100%;
    /* ぼかし・背景は親 overlay 側で常時適用 */
    background: transparent;
}

.works-viewer__info.is-active {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--works-meta-col);
}

.works-viewer__info-main {
    min-width: 0;
    display: flex;
    align-items: flex-end;
    gap: 24px;
    padding: 32px;
    border-top: 1px solid #525252;
}

.works-viewer__info-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.works-viewer__category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border: 1px solid #ffffff;
    border-radius: 42px;
    font-size: 12px;
    font-family: var(--font-main-medium);
    font-weight: var(--font-weight-medium);
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: #ffffff;
    white-space: nowrap;
}

.works-viewer__title {
    margin: 0;
    font-size: 32px;
    font-family: var(--font-main-medium);
    font-weight: var(--font-weight-medium);
    line-height: 1;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.works-viewer__info-right {
    width: 100%;
    box-sizing: border-box;
    padding: 32px 24px;
    border-top: 1px solid #525252;
    border-left: 1px solid #525252;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

/* PC：用途・規模・対応の一覧を上寄せにし、左のカテゴリーの上端とそろえる（左右とも上の余白は 32px） */
@media (min-width: 769px) {
    .works-viewer__info-right {
        align-items: flex-start;
    }
}

.works-viewer__meta {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    width: 100%;
}

.works-viewer__meta div {
    display: grid;
    grid-template-columns: 2em minmax(0, 1fr);
    column-gap: 24px;
    align-items: center;
    font-size: 12px;
    font-family: var(--font-main-medium);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
}

.works-viewer__meta dt {
    color: #2fda93;
    margin: 0;
}

.works-viewer__meta dd {
    margin: 0;
    color: #ffffff;
    min-width: 0;
    white-space: nowrap;
    /* 欄に収まらない長さは右の余白（24px）の手前で「…」にする。全文は title で確認できる */
    overflow: hidden;
    text-overflow: ellipsis;
}

.works-viewer__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    background: #ffffff;
    color: #057e4c;
    border-radius: 42px;
    flex-shrink: 0;
    line-height: 0;
}

.works-viewer__btn svg {
    display: block;
    width: 14px;
    height: 9px;
}

/* Works Tabs */
.works-tabs {
    width: 75%;
}

.works-tabs__inner {
    overflow: visible;
}

.works-tabs__inner .swiper-wrapper {
    display: flex;
    gap: 8px;
}

.works-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 106px;
    background: #112c21;
    border: none;
    cursor: pointer;
    padding: 40px 16px;
    position: relative;
    /* 非アクティブ既定（やや抑えめ）→ ホバーで gray600 */
    color: #3a3a3a;
    transition: color 0.35s ease;
}

.works-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #008f54;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.works-tab.is-active::after {
    transform: scaleX(1);
}

/* ホバー: gray600 */
.works-tab:hover {
    color: #ffffff;
}

/* アクティブ: gray50 */
.works-tab.is-active,
.works-tab.is-active:hover {
    color: #ffffff;
}

.works-tab__logo {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    color: inherit;
    overflow: visible;
}

.works-tab__logo--tokyu-group {
    width: 172px;
    height: 26px;
}

.works-tab__logo--tokyu-fudosan {
    width: 130px;
    height: 26px;
}

.works-tab__logo--nomura {
    width: 166px;
    height: 18px;
}

/* Mobile */
@media (max-width: 1024px) {
    .works-header {
        flex-direction: column;
        margin-bottom: 48px;
        gap: 32px;
    }
    .works-header__left,
    .works-header__right {
        width: 100%;
        max-width: 100%;
    }
    .works-header__left {
        padding-top: 0;
    }
    .works-header__right {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }
    .works-heading {
        font-size: clamp(28px, 5vw + 0.5rem, 32px);
        line-height: 1.2;
    }
    .works-heading br {
        display: none;
    }
    .works .btn-more-circle--white {
        font-size: 15px;
        gap: 14px;
    }
    .works .btn-more-circle--white .circle-arrow {
        padding: 10px 20px;
    }
    .works .btn-more-circle--white .circle-arrow svg {
        width: 10px;
        height: 7px;
    }
    .works-main {
        align-items: stretch;
    }
    .works-viewer {
        width: 100%;
        aspect-ratio: 350 / 525;
    }
    .works-tabs {
        /* section-inner の左右paddingを打ち消し、ブラウザ幅いっぱいへ */
        width: calc(100% + var(--side-padding) * 2);
        max-width: none;
        margin-left: calc(var(--side-padding) * -1);
        margin-right: calc(var(--side-padding) * -1);
        overflow: hidden;
    }
    .works-tabs__inner {
        overflow: hidden;
        width: 100%;
    }
    .works-viewer__info {
        flex-direction: row;
        align-items: flex-end;
        border-top: 1px solid #525252;
        padding: 32px 20px 24px;
        gap: 16px;
    }
    .works-viewer__info.is-active {
        display: flex;
        grid-template-columns: unset;
    }
    .works-viewer__info-main {
        flex: 1;
        min-width: 0;
        padding: 0;
        border-top: none;
        gap: 16px;
        align-items: flex-end;
    }
    .works-viewer__info-text {
        gap: 16px;
    }
    .works-viewer__category {
        padding: 6px 16px;
    }
    .works-viewer__title {
        font-size: 20px;
        line-height: 1.3;
        font-family: var(--font-main-medium);
        font-weight: var(--font-weight-medium);
    }
    .works-viewer__info-right {
        display: none;
    }
    .works-viewer__btn {
        padding: 10px 24px;
        align-self: flex-end;
    }
    .works-tabs__inner .swiper-wrapper {
        gap: 0; /* spaceBetween に任せる */
    }
    /* 全タブ同一幅 + auto → 両端見切れ。Swiper v8 の loop と相性が良い */
    .works-tab {
        flex: none;
        width: 200px;
        min-width: 200px;
        max-width: 200px;
        box-sizing: border-box;
        height: auto;
        padding: 40px 12px;
    }
    .works-tab__logo,
    .works-tab__logo--tokyu-group,
    .works-tab__logo--tokyu-fudosan,
    .works-tab__logo--nomura {
        width: auto !important;
        max-width: 160px;
        height: auto !important;
        max-height: 26px;
    }
}

/* ===========================
   PEOPLE Section
   =========================== */
.people {
    background: #f7f8f7;
}

.people-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 64px;
    gap: 40px;
}

.people-header__left {
    flex: 0 0 auto;
}

.people-header__left .section-label {
    color: #057e4c;
    font-weight: var(--font-weight-medium);
}

/* PC：内容幅の 50% − 4px で右寄せ＝画面中央 + 4px（カード間隔 8px の半分）から始まり、下の社員カード 3 枚目の左端にそろう */
.people-header__right {
    width: calc(50% - 4px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.people-heading {
    margin: 0;
    font-size: 40px;
    font-family: var(--font-main-medium);
    font-weight: var(--font-weight-medium);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #222222;
}

.people-heading br {
    display: none;
}

/* 1行に収まらない幅では、語の途中ではなく「、」の後で折り返す */
@media (max-width: 1279px) {
    .people-heading br {
        display: block;
    }
}

.people-desc {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    width: 100%;
}

.people-desc p {
    margin: 0;
    font-size: 16px;
    font-weight: var(--font-weight-regular);
    line-height: 1.55;
    letter-spacing: 0.02em;
    color: #2e2e2e;
}

.people .btn-more-circle {
    gap: 14px;
    font-size: 16px;
    font-family: var(--font-main-medium);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.02em;
}

.people .btn-more-circle .circle-arrow {
    width: auto;
    height: auto;
    padding: 10px 20px;
    background: #057e4c;
    color: #ffffff;
}

.people .btn-more-circle .circle-arrow svg {
    display: block;
    width: 10px;
    height: 7px;
}

/* People Grid (PC) */
.people-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
}

.people-card {
    display: block;
    position: relative;
    aspect-ratio: 294 / 477;
    /* Figma 153:1624（PC）・688:1526（SP）とも 8px */
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    container-type: inline-size;
    container-name: people-card;
}

.people-card__image {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.people-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.people-card:hover .people-card__image img {
    transform: scale(1.05);
}

/* カード下部オーバーレイ */
.people-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(30, 38, 29, 0) 0%,
        rgba(30, 38, 29, 0.8) 100%
    );
}

.people-card__catch {
    margin: 0;
    padding: 120px 24px 20px;
    border-bottom: 1px solid #525252;
    /* カード幅に応じて縮小し、意図しない折り返しを防ぐ */
    font-size: clamp(14px, 8.2cqi, 24px);
    font-family: var(--font-main-medium);
    font-weight: var(--font-weight-medium);
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #ffffff;
}

/* info帯: Figmaどおり blur + 薄い黒 */
.people-card__info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 20px 24px 24px;
    background: rgba(34, 34, 34, 0.05);
    backdrop-filter: blur(3.5px);
    -webkit-backdrop-filter: blur(3.5px);
    pointer-events: auto;
}

.people-card__info-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
    /* 担当部署が2行になっても帯の高さが揃うよう、2行分の高さを確保する */
    min-height: calc(13px * 1.2 * 2);
}

/* 引き抜き防止のため氏名は出さず、担当部署のみ（Figma 153:2092） */
.people-card__dept {
    margin: 0;
    font-size: 13px;
    font-family: var(--font-main-medium);
    font-weight: var(--font-weight-medium);
    line-height: 1.2;
    letter-spacing: 0.01em;
    color: #ffffff;
}

/* 矢印: 白枠ピル + 半透明 + blur */
.people-card__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: auto;
    height: auto;
    padding: 10px 20px;
    border: 1px solid #ffffff;
    border-radius: 42px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    line-height: 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.people-card__arrow svg {
    display: block;
    width: 10px;
    height: 7px;
}

.people-card:hover .people-card__arrow {
    background: rgba(255, 255, 255, 0.22);
    border-color: #ffffff;
}

/* Pagination: SPのみ（PCは5人以上のとき .is-pc-slider で表示） */
.people-pagination {
    display: none;
    position: relative;
    margin-top: 32px;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.people-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 4px;
    background: #d4d4d4;
    opacity: 1;
    border-radius: 30px;
    transition: width 0.3s ease, background 0.3s ease;
    margin: 0 !important;
}

.people-pagination .swiper-pagination-bullet-active {
    width: 24px;
    background: #057e4c;
}

/* 前後ボタン（見た目は business.css の .business-voice__nav / __btn）。PC スライダーのときだけ出す */
.people-profiles .people-nav {
    display: none;
    margin-top: 32px;
}

/* PC: 5人以上のときはスライダー（4枚表示）＋中央に前後ボタン（事業内容 #voice と同じ） */
.people-profiles.is-pc-slider .people-grid {
    display: flex;
    gap: 0;
}

.people-profiles.is-pc-slider .people-nav {
    display: flex;
}

/* ===========================
   CTA Section
   =========================== */
.cta {
    background: #ffffff;
}

.cta__inner {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.cta-box {
    flex: 1 1 0;
    position: relative;
    /* Figma 393:523（PC）・688:1456（SP）とも 8px */
    border-radius: 8px;
    overflow: hidden;
    color: #ffffff;
    /* タブレット〜PC: 正方形 */
    aspect-ratio: 1 / 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Backgrounds */
.cta-box__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.cta-box__bg picture {
    display: block;
    width: 100%;
    height: 100%;
}

.cta-box__bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* ボタンホバー時に背景画像を拡大 */
.cta-box:has(.cta-box__btns a:hover) .cta-box__bg img,
.cta-box:has(.cta-box__btns button:hover) .cta-box__bg img {
    transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
    .cta-box__bg img {
        transition: none;
        will-change: auto;
    }

    .cta-box:has(.cta-box__btns a:hover) .cta-box__bg img,
    .cta-box:has(.cta-box__btns button:hover) .cta-box__bg img {
        transform: none;
    }

    .btn-cta__label {
        transition: none;
    }

    .btn-cta:hover .btn-cta__label {
        transform: none;
    }
}

.cta-box__bg-overlay {
    position: absolute;
    inset: 0;
}

.cta-recruit .cta-box__bg-overlay {
    background: linear-gradient(
        180deg,
        rgba(5, 126, 76, 0.9) 0%,
        rgba(9, 100, 62, 0.9) 32.3%,
        rgba(17, 44, 33, 0.9) 100%
    );
}

.cta-contact .cta-box__bg-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.9) 100%
    );
}

/* Content: ラベル上 / 本文下 */
.cta-box__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 0;
    padding: 48px 0 0;
}

.cta-box__en-title {
    margin: 0;
    font-family: var(--font-en);
    font-weight: var(--font-weight-medium);
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0.01em;
    padding: 0 40px;
    color: #ffffff;
}

.cta-box__main {
    margin-top: auto;
    width: 100%;
}

.cta-box__title-area {
    padding: 0 40px 24px;
    border-bottom: 1px solid #a3a3a3;
}

.cta-box__title {
    margin: 0;
    font-size: clamp(22px, 1.4vw + 0.6rem, 32px);
    font-family: var(--font-main-medium);
    font-weight: var(--font-weight-medium);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.cta-box__title-break {
    display: none;
}

.cta-box__detail {
    padding: 32px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cta-box__desc {
    margin: 0;
    font-size: clamp(13px, 0.6vw + 0.6rem, 16px);
    font-weight: var(--font-weight-regular);
    line-height: 1.55;
    letter-spacing: 0.02em;
    color: #ffffff;
}

.cta-box__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: clamp(14px, 1vw + 8px, 18px) clamp(18px, 1.5vw + 10px, 35px);
    border-radius: 60px;
    font-size: clamp(12px, 0.5vw + 0.55rem, 14px);
    font-family: var(--font-main-medium);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 0.3s, color 0.3s;
}

.btn-cta__label {
    display: inline-block;
    transform-origin: center center;
}

.btn-cta--outline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
}

.btn-cta--solid {
    background: #ffffff;
    color: #057e4c;
    text-decoration: none;
    border: 1px solid #ffffff;
}

.cta-contact .btn-cta--solid {
    color: #222222;
}

.btn-cta__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
}

.btn-cta__arrow svg {
    display: block;
    width: 18px;
    height: 12px;
}

@media (hover: hover) and (min-width: 769px) {
    .btn-cta__label {
        transition: transform 0.3s ease;
    }

    .btn-cta:hover .btn-cta__label {
        transform: scale(var(--hover-label-scale));
    }
}

/* PEOPLE + CTA Responsive */
@media (max-width: 1024px) {
    .people-header {
        flex-direction: column;
        margin-bottom: 48px;
        gap: 32px;
    }
    .people-header__left,
    .people-header__right {
        width: 100%;
    }
    .people-header__right {
        gap: 16px;
    }
    .people-heading {
        font-size: 32px;
        line-height: 1.2;
    }
    .people-heading br {
        display: block;
    }
    .people-desc {
        width: 100%;
        gap: 32px;
    }
    .people-desc p {
        font-size: 15px;
        text-align: justify;
    }
    .people .btn-more-circle {
        font-size: 15px;
    }

    /* スライダーを section-inner の左右paddingから外してフル幅に */
    .people-profiles {
        width: calc(100% + var(--side-padding) * 2);
        margin-left: calc(var(--side-padding) * -1);
        margin-right: calc(var(--side-padding) * -1);
        overflow: hidden;
    }
    .people-grid {
        display: flex;
        grid-template-columns: none;
        gap: 0;
    }
    .people-card {
        height: auto;
        aspect-ratio: 278 / 451;
    }
    .people-card__catch {
        padding: 120px 20px 20px;
        font-size: clamp(16px, 7.2cqi, 20px);
    }
    .people-card__info {
        padding: 20px 20px 24px;
    }
    .js-people-swiper .swiper-slide {
        width: 278px;
        margin-right: 0;
    }

    /* SPのみページネーション表示 */
    .people-pagination {
        display: flex;
    }

    /* CTA Responsive（〜1024px） */
    .cta__inner {
        flex-direction: column;
        gap: 8px;
    }

    .cta-box {
        width: 100%;
        flex: none;
        /* モバイル: 350 / 525 */
        aspect-ratio: 350 / 525;
    }

    .cta-box__content {
        padding: 40px 0 0;
    }

    .cta-box__en-title {
        padding: 0 24px;
    }

    .cta-box__title-area {
        padding: 0 20px 20px;
    }

    .cta-box__title {
        font-size: 24px;
    }

    .cta-box__title-break {
        display: inline;
    }

    .cta-box__detail {
        padding: 24px 20px 32px;
        gap: 24px;
    }

    .cta-box__desc {
        font-size: 14px;
    }

    .cta-box__btns {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .btn-cta {
        width: auto;
        max-width: 100%;
        padding: 18px 35px;
        font-size: 13px;
        justify-content: center;
    }
}
