@charset "UTF-8";
/* ==========================================================
   トップページ メインビジュアル スライダー
   株式会社インサイト  2026.11.10
   ※既存 style.css の .top .mv は使わず、.mvs で独立させています
   ========================================================== */

.top .mvs {
    --mvs-accent: #319ED5;
    --mvs-accent-light: #7fd3ff;
    --mvs-navy: #04142b;
    --mvs-duration: 6500ms;      /* 1枚あたりの表示時間（JSと連動） */
    --mvs-fade: 1600ms;          /* 切り替えのフェード時間 */
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 640px;
    max-height: 940px;
    overflow: hidden;
    background: var(--mvs-navy);
    color: #fff;
    isolation: isolate;
}

/* ---------- スライド ---------- */
.mvs__slides {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    inset: 0;
}

.mvs__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--mvs-fade) ease, visibility 0s linear var(--mvs-fade);
}

.mvs__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    transition: opacity var(--mvs-fade) ease, visibility 0s;
}

/* 直前のスライドは少し残してクロスフェードを滑らかに */
.mvs__slide.is-leaving {
    visibility: visible;
    z-index: 1;
}

.mvs__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.mvs__media picture {
    display: block;
    width: 100%;
    height: 100%;
}

.mvs__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--pos, center);
    display: block;
    transform: scale(1.12);
    transform-origin: var(--origin, 60% 50%);
    will-change: transform;
}

/* ゆっくりズームアウト（Ken Burns） */
.mvs__slide.is-active .mvs__media img,
.mvs__slide.is-leaving .mvs__media img {
    animation: mvs-zoom calc(var(--mvs-duration) + var(--mvs-fade) + 800ms) cubic-bezier(.25, .46, .45, .94) forwards;
}

@keyframes mvs-zoom {
    from { transform: scale(1.12); }
    to   { transform: scale(1.0); }
}

/* 文字を読みやすくするための陰影 */
.mvs__slide::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(4, 20, 43, .62) 0%, rgba(4, 20, 43, 0) 26%),
        linear-gradient(90deg, rgba(4, 20, 43, .62) 0%, rgba(4, 20, 43, .25) 42%, rgba(4, 20, 43, 0) 65%),
        linear-gradient(0deg, rgba(4, 20, 43, .55) 0%, rgba(4, 20, 43, 0) 40%);
}

/* ---------- テキストパネル ---------- */
.mvs__content {
    position: absolute;
    left: 6.2%;
    bottom: 13%;
    z-index: 3;
    max-width: 720px;
    padding: 44px 52px 46px 48px;
    background: linear-gradient(135deg, rgba(8, 32, 66, .55), rgba(8, 32, 66, .28));
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    backdrop-filter: blur(14px) saturate(130%);
    border: 1px solid rgba(255, 255, 255, .18);
    border-left: none;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45);
    pointer-events: none;
}

/* 画像に文字が入っているスライド用：パネルを広く・低くして画像内の文字を覆う */
.mvs__slide--wide .mvs__content {
    bottom: 6%;
    width: 50%;
    max-width: 820px;
    padding-bottom: 60px;
}

/* 左端のアクセントライン */
.mvs__content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--mvs-accent-light), var(--mvs-accent) 60%, rgba(49, 158, 213, 0));
    transform: scaleY(0);
    transform-origin: top;
}

.mvs__slide.is-active .mvs__content::before {
    animation: mvs-line 1s cubic-bezier(.77, 0, .18, 1) .3s forwards;
}

@keyframes mvs-line {
    to { transform: scaleY(1); }
}

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

/* 各行のマスク表示（下からスッと出る） */
.mvs__line {
    display: block;
    overflow: hidden;
    padding-bottom: .08em;
}

.mvs__line > span {
    display: block;
    transform: translateY(110%);
    opacity: 0;
}

.mvs__slide.is-active .mvs__line > span {
    animation: mvs-rise 1s cubic-bezier(.19, 1, .22, 1) forwards;
    animation-delay: calc(.45s + var(--d, 0) * .14s);
}

@keyframes mvs-rise {
    to { transform: translateY(0); opacity: 1; }
}

.mvs__eyebrow {
    font-family: "Montserrat", "Noto Sans JP", sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: .32em;
    color: var(--mvs-accent-light);
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.mvs__eyebrow .num {
    font-weight: 700;
    color: #fff;
}

.mvs__eyebrow .bar {
    display: inline-block;
    width: 36px;
    height: 1px;
    background: currentColor;
    vertical-align: middle;
}

/* 既存 .top h2 の装飾をリセット */
.top .mvs h2.mvs__title {
    font-size: 6.4rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: .04em;
    text-align: left;
    text-transform: none;
    color: #fff;
    margin: 0;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .35);
}

.top .mvs h2.mvs__title::after {
    display: none;
}

.mvs__title .latin {
    font-family: "Montserrat", "Noto Sans JP", sans-serif;
    font-weight: 800;
    letter-spacing: .02em;
    background: linear-gradient(100deg, #ffffff 30%, var(--mvs-accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: .08em;
}

.mvs__title .small {
    font-size: .72em;
    font-weight: 700;
}

/* 1枚目：会社ロゴ */
.mvs__title img.mvs__logo {
    width: 420px;
    max-width: 100%;
    height: auto;
    display: block;
}

.mvs__catch {
    font-size: 2.6rem;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: .08em;
    margin: 22px 0 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}

.mvs__more {
    margin-top: 30px;
}

.mvs__more a {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: #fff;
    font-size: 1.4rem;
    letter-spacing: .14em;
    padding: 13px 22px 13px 26px;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: color .4s, border-color .4s;
}

.mvs__more a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #fff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .5s cubic-bezier(.77, 0, .18, 1);
    z-index: -1;
}

.mvs__more a:hover {
    color: var(--mvs-navy);
    border-color: #fff;
    opacity: 1;
}

.mvs__more a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.mvs__more .arrow {
    width: 26px;
    height: 1px;
    background: currentColor;
    position: relative;
    transition: width .4s;
}

.mvs__more .arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 7px;
    height: 7px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: rotate(45deg);
}

.mvs__more a:hover .arrow {
    width: 36px;
}

/* ---------- 切り替え時の光の走査 ---------- */
.mvs__glint {
    position: absolute;
    inset: -20% -40%;
    z-index: 4;
    pointer-events: none;
    background: linear-gradient(115deg,
            rgba(127, 211, 255, 0) 42%,
            rgba(127, 211, 255, .10) 47%,
            rgba(255, 255, 255, .38) 50%,
            rgba(127, 211, 255, .10) 53%,
            rgba(127, 211, 255, 0) 58%);
    transform: translateX(-70%);
    opacity: 0;
    mix-blend-mode: screen;
}

.mvs__glint.is-run {
    animation: mvs-glint 1.6s cubic-bezier(.65, 0, .35, 1) forwards;
}

@keyframes mvs-glint {
    0%   { transform: translateX(-70%); opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { transform: translateX(70%); opacity: 0; }
}

/* ---------- コントロール（右下） ---------- */
.mvs__ctrl {
    position: absolute;
    right: 5%;
    bottom: 5%;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 26px;
    font-family: "Montserrat", "Noto Sans JP", sans-serif;
}

.mvs__count {
    font-size: 1.3rem;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .7);
    min-width: 72px;
}

.mvs__count .cur {
    font-size: 2.6rem;
    font-weight: 600;
    color: #fff;
    margin-right: 6px;
}

.mvs__dots {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
}

.mvs__dots button {
    appearance: none;
    background: none;
    border: 0;
    padding: 14px 0;
    cursor: pointer;
    display: block;
    width: 52px;
    text-align: left;
    color: rgba(255, 255, 255, .75);
    font: inherit;
}

.mvs__dots .label {
    display: none;   /* 5枚になったのでバーのみ表示 */
    font-size: 1.05rem;
    letter-spacing: .14em;
    margin-bottom: 8px;
    white-space: nowrap;
    transition: color .3s;
}

.mvs__dots button.is-active .label,
.mvs__dots button:hover .label {
    color: #fff;
}

.mvs__dots .track {
    display: block;
    height: 2px;
    background: rgba(255, 255, 255, .28);
    position: relative;
    overflow: hidden;
}

.mvs__dots .fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--mvs-accent), var(--mvs-accent-light));
    transform: scaleX(0);
    transform-origin: left;
}

.mvs__dots button.is-done .fill {
    transform: scaleX(1);
    opacity: .55;
}

.mvs__dots button.is-active .fill {
    animation: mvs-progress var(--mvs-duration) linear forwards;
}

.mvs.is-paused .mvs__dots button.is-active .fill {
    animation-play-state: paused;
}

@keyframes mvs-progress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

.mvs__arrows {
    display: flex;
    gap: 10px;
}

.mvs__arrows button {
    appearance: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .04);
    cursor: pointer;
    position: relative;
    transition: background .3s, border-color .3s;
}

.mvs__arrows button:hover {
    background: rgba(255, 255, 255, .16);
    border-color: #fff;
}

.mvs__arrows button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-top: 1.5px solid #fff;
    border-right: 1.5px solid #fff;
    transform: translate(-65%, -50%) rotate(45deg);
}

.mvs__arrows .prev::before {
    transform: translate(-35%, -50%) rotate(-135deg);
}

.mvs button:focus-visible,
.mvs a:focus-visible {
    outline: 2px solid var(--mvs-accent-light);
    outline-offset: 3px;
}

/* ---------- スクロール表示（左端） ---------- */
.mvs__scroll {
    position: absolute;
    left: 2.2%;
    bottom: 0;
    z-index: 5;
    writing-mode: vertical-rl;
    font-family: "Montserrat", sans-serif;
    font-size: 1.05rem;
    letter-spacing: .32em;
    color: rgba(255, 255, 255, .8);
    padding-bottom: 96px;
}

.mvs__scroll::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 1px;
    height: 80px;
    background: rgba(255, 255, 255, .25);
}

.mvs__scroll::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 1px;
    height: 80px;
    background: #fff;
    z-index: 1;
    animation: mvs-scroll 2.2s cubic-bezier(.77, 0, .18, 1) infinite;
}

@keyframes mvs-scroll {
    0%   { transform: scaleY(0); transform-origin: top; }
    45%  { transform: scaleY(1); transform-origin: top; }
    55%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- タブレット ---------- */
@media screen and (max-width: 1200px) {
    .top .mvs h2.mvs__title { font-size: 5.2rem; }
    .mvs__catch { font-size: 2.2rem; }
    .mvs__content { max-width: 560px; padding: 36px 40px 38px 38px; }
    .mvs__dots .label { display: none; }
    .mvs__dots button { width: 44px; }
}

/* ---------- スマートフォン ---------- */
@media screen and (max-width: 767px) {
    .top .mvs {
        height: 100vh;
        height: 100svh;
        min-height: 560px;
        max-height: 820px;
    }

    .mvs__media img {
        object-position: var(--pos-sp, var(--pos, center));
    }

    .mvs__slide::after {
        background:
            linear-gradient(180deg, rgba(4, 20, 43, .55) 0%, rgba(4, 20, 43, 0) 20%),
            linear-gradient(0deg, rgba(4, 20, 43, .85) 0%, rgba(4, 20, 43, .35) 45%, rgba(4, 20, 43, 0) 70%);
    }

    /* スマホでは画面下部のガラスシートにまとめ、操作部もその中に収める */
    .mvs__content,
    .mvs__slide--wide .mvs__content {
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        max-width: none;
        padding: 26px 20px 96px 26px;
        border-right: none;
        border-bottom: none;
        box-shadow: none;
    }

    .mvs__content::before {
        bottom: 80px;
    }

    .mvs__eyebrow {
        font-size: 1.05rem;
        letter-spacing: .24em;
        margin-bottom: 12px;
        gap: 10px;
    }

    .mvs__eyebrow .bar { width: 22px; }

    .top .mvs h2.mvs__title { font-size: 3.6rem; }

    .mvs__title img.mvs__logo { width: 230px; }

    .mvs__catch {
        font-size: 1.5rem;
        letter-spacing: .04em;
        margin-top: 12px;
    }

    .mvs__more { margin-top: 18px; }

    .mvs__more a {
        font-size: 1.2rem;
        padding: 9px 16px 9px 20px;
    }

    .mvs__ctrl {
        left: 26px;
        right: 16px;
        bottom: 28px;
        justify-content: space-between;
        gap: 14px;
    }

    .mvs__count { min-width: 0; font-size: 1.1rem; }
    .mvs__count .cur { font-size: 2rem; }

    .mvs__dots { flex: 1; gap: 6px; }
    .mvs__dots li { flex: 1; }
    .mvs__dots button { width: 100%; }

    .mvs__arrows button { width: 38px; height: 38px; }

    .mvs__scroll { display: none; }
}

/* ---------- 動きを抑える設定の方へ ---------- */
@media (prefers-reduced-motion: reduce) {
    .mvs__media img,
    .mvs__slide.is-active .mvs__media img { animation: none; transform: none; }
    .mvs__line > span,
    .mvs__slide.is-active .mvs__line > span { animation: none; transform: none; opacity: 1; }
    .mvs__content::before,
    .mvs__slide.is-active .mvs__content::before { animation: none; transform: none; }
    .mvs__glint { display: none; }
    .mvs__scroll::before { animation: none; }
}
