@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;
}

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

/* =====================
   KV — Figma 5327:603 PC / 5554:21424 SP
   PC: 1729×550 / SP: 375×580
   ===================== */
.tool-kv {
    position: relative;
    width: 100%;
    background-color: #ffffff;
}

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

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

.tool-kv__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.tool-kv__img--sp {
    display: none;
}

/* CTA lead — 5574:1208 PC / 5554:21466 SP */
.tool-kv__cta-lead {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    color: #003173;
    font-family: Hiragino Sans, sans-serif;
    font-weight: 600;
    white-space: nowrap;
}

.tool-kv__cta-lead-mark {
    font-weight: 700;
    line-height: 1;
}

.tool-kv__cta-lead-lg {
    font-weight: 700;
}

.tool-kv__cta-lead-sm {
    font-weight: 700;
}

/* CTA — 5327:607 PC */
.tool-kv__cta-pc {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 146px;
    padding: 23px 32px;
    background-color: #ffffff;
    box-sizing: border-box;
}

.tool-kv__cta-pc .tool-kv__cta-lead {
    font-size: 18px;
    line-height: 19.2px;
}

.tool-kv__cta-pc .tool-kv__cta-lead-sm {
    font-size: 14px;
}

.tool-kv__cta-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.tool-kv__cta {
    display: none;
}

.tool-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;
}

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

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

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

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

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

.tool-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 #006ec5;
    transform: translateY(-50%);
    z-index: 1;
}

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

.tool-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) {
    .tool-kv__cta-btn:hover {
        opacity: 0.85;
    }
}

/* ----- PC 中間幅 — CTAをビューポートに追従 ----- */
@media (max-width: 1280px) and (min-width: 961px) {
    .tool-kv__cta-pc {
        padding: clamp(16px, 2vw, 23px) clamp(16px, 3vw, 32px);
    }

    .tool-kv__cta-btns {
        flex-wrap: wrap;
        gap: clamp(16px, 2.5vw, 32px);
        justify-content: center;
    }

    .tool-kv__cta-pc .tool-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);
    }

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

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

/* ----- SP 375×580 ----- */
@media (max-width: 960px) {
    .tool-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;
    }

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

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

    .tool-kv__img--pc {
        display: none;
    }

    .tool-kv__img--sp {
        display: block;
    }

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

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

    .tool-kv__cta-btns--sp {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .tool-kv__cta .tool-kv__cta-lead {
        align-self: center;
        width: 100%;
        font-size: 14px;
        line-height: 19.2px;
    }

    .tool-kv__cta .tool-kv__cta-lead-sm {
        font-size: 10px;
    }

    .tool-kv__cta .tool-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;
    }

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

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

    .tool-kv__cta-btns--sp {
        gap: calc(10 / 375 * 100vw);
    }

    .tool-kv__cta .tool-kv__cta-lead {
        font-size: calc(14 / 375 * 100vw);
        line-height: calc(19.2 / 375 * 100vw);
    }

    .tool-kv__cta .tool-kv__cta-lead-sm {
        font-size: calc(10 / 375 * 100vw);
    }

    .tool-kv__cta .tool-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);
    }

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

    .tool-kv__cta .tool-kv__cta-btn--blue::before,
    .tool-kv__cta .tool-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) {
    .tool-kv__cta .tool-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;
    }
}
