@charset "UTF-8";

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mousho-lp {
    background-color: #ffffff;
}

/* =====================
   KV — Figma 5327:619 PC / 5553:1253 SP
   PC: 1729×550 / SP: 375×580
   ===================== */
.mousho-kv {
    position: relative;
    width: 100%;
    background-color: #ffffff;
}

.mousho-kv__visual {
    display: flex;
    justify-content: center;
    width: 100%;
    overflow: hidden;
}

.mousho-kv__stage {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    --mousho-w: 1729;
    --mousho-h: 550;
    width: 100%;
    max-width: 1729px;
    aspect-ratio: 1729 / 550;
}

.mousho-kv__bg-stack {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.mousho-kv__bg {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: bottom;
}

.mousho-kv__bg--sp {
    display: none;
}

.mousho-kv__overlay {
    display: none;
    pointer-events: none;
}

.mousho-kv__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.mousho-kv__mockup-img {
    display: block;
    height: 100%;
    width: auto;
    max-width: none;
}

.mousho-kv__copy-img {
    display: block;
    width: 100%;
    height: auto;
}

/* ----- PC elements ----- */
.mousho-kv__copy--sp {
    display: none;
}

/* mockup — 5534:755 PC / 5554:21217 SP（画像は mockup.png 共通） */
.mousho-kv__mockup {
    position: absolute;
    top: calc(50% + 100% * 9.74 / var(--mousho-h));
    left: calc(100% * 324 / var(--mousho-w));
    width: calc(100% * 232.636 / var(--mousho-w));
    height: calc(100% * 477.478 / var(--mousho-h));
    transform: translateY(-50%);
    z-index: 2;
}

.mousho-kv__mockup .mousho-kv__mockup-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* kv.png — 5534:759 表示751px・mockup右端556pxと約25px重なり */
.mousho-kv__copy--pc {
    position: absolute;
    top: calc(100% * 131 / var(--mousho-h));
    left: calc(50% - 100% * 332.5 / var(--mousho-w));
    width: calc(100% * 751 / var(--mousho-w));
    z-index: 3;
    pointer-events: none;
}

/* CTA — 5327:623 */
.mousho-kv__cta-pc {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    height: 110px;
    background-color: #ffffff;
}

.mousho-kv__cta {
    display: none;
}

.mousho-kv__cta-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: Hiragino Sans, sans-serif;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 80.67px;
    box-shadow: 0 0 5px rgba(20, 25, 48, 0.15);
    transition: opacity 0.2s;
}

.mousho-kv__cta-pc .mousho-kv__cta-btn {
    height: 64px;
    padding: 0 87px;
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    letter-spacing: 0.36px;
}

.mousho-kv__cta-pc .mousho-kv__cta-btn--blue {
    width: 457px;
    flex-shrink: 0;
}

.mousho-kv__cta-btn::after {
    content: "";
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ffffff;
}

.mousho-kv__cta-pc .mousho-kv__cta-btn::after {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
}

.mousho-kv__cta-btn--blue {
    background-color: #0076e5;
}

.mousho-kv__cta-btn--blue::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 24px;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid #0076e5;
    transform: translateY(-50%);
    z-index: 1;
}

.mousho-kv__cta-btn--orange {
    background-color: #ff8000;
}

.mousho-kv__cta-btn--orange::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 24px;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid #ff8000;
    transform: translateY(-50%);
    z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
    .mousho-kv__cta-btn:hover {
        opacity: 0.85;
    }
}

/* ----- PC 中間幅 — CTAをビューポートに追従 ----- */
@media (max-width: 1280px) and (min-width: 961px) {
    .mousho-kv__cta-pc {
        flex-wrap: wrap;
        gap: clamp(16px, 2.5vw, 32px);
        padding: clamp(16px, 2vw, 24px) clamp(16px, 3vw, 32px);
        height: auto;
        min-height: 110px;
        box-sizing: border-box;
    }

    .mousho-kv__cta-pc .mousho-kv__cta-btn {
        height: clamp(54px, 5vw, 64px);
        padding: 0 clamp(32px, 5vw, 87px);
        font-size: clamp(14px, 1.4vw, 18px);
        line-height: clamp(24px, 2.2vw, 28px);
    }

    .mousho-kv__cta-pc .mousho-kv__cta-btn--blue {
        width: auto;
        flex: 1 1 220px;
        max-width: 457px;
    }
}

@media (max-width: 1100px) and (min-width: 961px) {
    .mousho-kv__cta-pc .mousho-kv__cta-btn {
        white-space: normal;
        padding: 0 clamp(28px, 4vw, 48px);
    }
}

/* ----- SP 375×580 ----- */
@media (max-width: 960px) {
    .mousho-kv {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin: calc(-1 * var(--header-height, 64px)) 0 0;
        padding-top: var(--header-height, 64px);
        box-sizing: content-box;
    }

    .mousho-kv__visual {
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .mousho-kv__stage {
        --mousho-w: 375;
        --mousho-h: 580;
        width: 100%;
        max-width: none;
        aspect-ratio: 375 / 580;
    }

    .mousho-kv__bg--pc {
        display: none;
    }

    .mousho-kv__bg--sp {
        display: block;
    }

    /* gradient — 5554:21215 h=304 mix-blend-multiply */
    .mousho-kv__overlay--sp {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
        width: 100%;
        height: calc(100% * 304 / var(--mousho-h));
        background: linear-gradient(
            to bottom,
            #7b9fb3 0%,
            rgba(255, 255, 255, 0) 100%
        );
        mix-blend-mode: multiply;
    }

    .mousho-kv__copy--pc {
        display: none;
    }

    .mousho-kv__copy--sp {
        display: block;
    }

    /* kv_sp.png — 5554:21216（下層） */
    .mousho-kv__copy--sp {
        position: absolute;
        top: calc(100% * 31 / var(--mousho-h));
        left: calc(50% - 100% * 167.5 / var(--mousho-w));
        width: calc(100% * 320 / var(--mousho-w));
        height: auto;
        pointer-events: none;
        z-index: 2;
    }

    /* mockup — SP座標のみ変更（mockup.png 共通） */
    .mousho-kv__mockup {
        top: calc(50% + 100% * 152 / var(--mousho-h));
        left: calc(100% * 20 / var(--mousho-w));
        width: calc(100% * 123 / var(--mousho-w));
        height: calc(100% * 252 / var(--mousho-h));
        z-index: 3;
    }

    .mousho-kv__cta-pc {
        display: none;
    }

    .mousho-kv__cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 16px 32px;
        background-color: #ffffff;
        box-sizing: border-box;
    }

    .mousho-kv__cta .mousho-kv__cta-btn {
        width: 310px;
        max-width: 100%;
        height: 54px;
        padding: 0 48px;
        font-size: 16px;
        font-weight: 700;
        line-height: 28px;
        letter-spacing: 0.32px;
    }

    .mousho-kv__cta .mousho-kv__cta-btn::after {
        position: absolute;
        top: 50%;
        right: 18px;
        transform: translateY(-50%);
    }

    .mousho-kv__cta .mousho-kv__cta-btn--blue {
        background-color: #006ec5;
    }

    .mousho-kv__cta .mousho-kv__cta-btn--blue::before {
        border-left-color: #006ec5;
    }
}

@media (max-width: 375px) {
    .mousho-kv__cta {
        gap: calc(10 / 375 * 100vw);
        padding: calc(16 / 375 * 100vw) calc(32 / 375 * 100vw);
    }

    .mousho-kv__cta .mousho-kv__cta-btn {
        width: calc(310 / 375 * 100vw);
        max-width: none;
        height: calc(54 / 375 * 100vw);
        padding: 0 calc(48 / 375 * 100vw);
        font-size: calc(16 / 375 * 100vw);
        line-height: calc(28 / 375 * 100vw);
        border-radius: calc(80.67 / 375 * 100vw);
        border-width: calc(2 / 375 * 100vw);
    }

    .mousho-kv__cta .mousho-kv__cta-btn::after {
        right: calc(18 / 375 * 100vw);
        width: calc(20 / 375 * 100vw);
        height: calc(20 / 375 * 100vw);
    }

    .mousho-kv__cta .mousho-kv__cta-btn--blue::before,
    .mousho-kv__cta .mousho-kv__cta-btn--orange::before {
        right: calc(24 / 375 * 100vw);
        border-top-width: calc(4 / 375 * 100vw);
        border-bottom-width: calc(4 / 375 * 100vw);
        border-left-width: calc(6 / 375 * 100vw);
    }
}

@media (max-width: 360px) {
    .mousho-kv__cta .mousho-kv__cta-btn {
        white-space: normal;
        font-size: 14px;
        line-height: 1.4;
        height: auto;
        min-height: calc(54 / 375 * 100vw);
        padding: 12px 40px 12px 16px;
    }
}
