/*
 * VEXY case CTAs: shared parts (case banners, LINE button, microcopy, button note).
 * Loaded once whenever any of the three CTA blocks renders (listed in each block.json "style").
 * No thick coloured line on a box's left or top edge: only 1px borders and pale fills.
 */

/* ------------------------------------------------------------------ fallback face while Outfit loads
 * Arial Bold scaled to Outfit Bold's average width, ASCII only. Keeps the server-side name fit
 * close to reality before the web font swaps in (Google Fonts uses display=swap). */
@font-face {
    font-family: "Vexy Outfit Fallback";
    src: local("Arial Bold"), local("Arial-BoldMT");
    font-weight: 700;
    size-adjust: 95%;
    unicode-range: U+0020-007E;
}

/* ------------------------------------------------------------------ case banner (1080-unit square)
 * All inner lengths are N * --vcb-u, where --vcb-u = (banner width) / 1080. */
.vexy-case-banner {
    --vexy-case-banner-w: min(calc(100vw - 32px), 480px);
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0;
    padding: 0;
    overflow: hidden;
    container-type: inline-size;
    border-radius: 6px;
    background: #eef8f3;
    color: #1f3d2b;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none !important;
}

.vexy-case-banner.stepper,
.vexy-case-banner.stepper:hover,
.vexy-case-banner.stepper:focus,
.vexy-case-banner.stepper:active {
    color: #1f3d2b;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
}

.vexy-case-banner * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    letter-spacing: 0;
    text-decoration: none !important;
}

.vexy-case-banner__cv {
    --vcb-u: calc(100cqw / 1080);
    --vcb-bg: #eef8f3;
    --vcb-ink: #1f3d2b;
    --vcb-mark: #037d38;
    --vcb-sub: #4d6a5a;
    --vcb-arrow: #06c755;
    --vcb-card: #ffffff;
    --vcb-line: #cfe3d7;
    --vcb-band: #037d38;
    --vcb-band-ink: #ffffff;
    --vcb-strip: #ffffff;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--vcb-bg);
    color: var(--vcb-ink);
    font-family: "Outfit", "Vexy Outfit Fallback", "Noto Sans JP", sans-serif;
    font-size: calc(16 * var(--vcb-u));
    font-style: normal;
    font-weight: 700;
    font-kerning: normal;
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
}

/* Browsers without container query units: approximate the banner width per context. */
@supports not (width: 1cqw) {
    .vexy-case-banner {
        width: var(--vexy-case-banner-w);
        height: var(--vexy-case-banner-w);
        margin-left: auto;
        margin-right: auto;
    }

    .vexy-case-banner__cv {
        --vcb-u: calc(var(--vexy-case-banner-w) / 1080);
    }
}

.vexy-case-banner__cv img {
    display: block;
    max-width: none !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.vexy-case-banner__cv svg {
    display: block;
    flex: none;
    overflow: visible;
}

.vexy-case-banner__mk,
.vexy-case-banner__q,
.vexy-case-banner__nm {
    color: var(--vcb-mark);
}

.vexy-case-banner__q {
    font-style: normal;
}

.vexy-case-banner__nmbox {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: calc(936 * var(--vcb-u));
    line-height: 1.14;
    text-align: center;
}

.vexy-case-banner__ln {
    display: block;
    white-space: nowrap;
}

.vexy-case-banner__lw {
    display: inline-block;
    white-space: nowrap;
}

.vexy-case-banner__sx {
    color: var(--vcb-ink);
}

.vexy-case-banner__arrow {
    color: var(--vcb-arrow);
}

.vexy-case-banner__logo-row {
    --vcb-f: calc(42 * var(--vcb-u));
    flex: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: calc(var(--vcb-f) * 0.3);
}

.vexy-case-banner__cv .vexy-case-banner__logo-row .vexy-case-banner__logo {
    width: calc(var(--vcb-f) * 9.6);
    height: auto;
}

.vexy-case-banner__ga {
    display: block;
    font-size: var(--vcb-f);
    line-height: 1;
    white-space: nowrap;
    transform: translateY(-0.39em);
}

.vexy-case-banner__head {
    flex: none;
    line-height: 1.15;
    white-space: nowrap;
    text-align: center;
}

/* ---------- b: case name and question ---------- */
.vexy-case-banner--b .vexy-case-banner__nmbox {
    line-height: 1;
}

.vexy-case-banner--b .vexy-case-banner__big {
    display: block;
}

.vexy-case-banner--b .vexy-case-banner__big .vexy-case-banner__ln {
    line-height: 1.02;
}

.vexy-case-banner--b .vexy-case-banner__dom {
    display: block;
    margin-top: calc(10 * var(--vcb-u));
    line-height: 1.15;
    white-space: nowrap;
    color: var(--vcb-mark);
}

.vexy-case-banner--b .vexy-case-banner__of {
    flex: none;
    margin-top: calc(60 * var(--vcb-u));
    font-size: calc(64 * var(--vcb-u));
    line-height: 1.2;
}

.vexy-case-banner--b .vexy-case-banner__small {
    font-size: calc(46 * var(--vcb-u));
}

.vexy-case-banner--b .vexy-case-banner__chips {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(12 * var(--vcb-u));
    margin-top: calc(54 * var(--vcb-u));
}

.vexy-case-banner--b .vexy-case-banner__row {
    display: flex;
    justify-content: center;
    gap: calc(14 * var(--vcb-u));
}

.vexy-case-banner--b .vexy-case-banner__chip {
    display: inline-flex;
    align-items: center;
    gap: calc(10 * var(--vcb-u));
    height: calc(68 * var(--vcb-u));
    padding: 0 calc(24 * var(--vcb-u)) 0 calc(20 * var(--vcb-u));
    border-radius: 999px;
    background: var(--vcb-card);
    font-size: calc(42 * var(--vcb-u));
    line-height: 1;
    white-space: nowrap;
}

.vexy-case-banner--b .vexy-case-banner__chip .vexy-case-banner__ic {
    width: calc(42 * var(--vcb-u));
    height: calc(42 * var(--vcb-u));
}

.vexy-case-banner--b .vexy-case-banner__arrow {
    width: calc(92 * var(--vcb-u));
    height: calc(48 * var(--vcb-u));
    margin-top: calc(64 * var(--vcb-u));
}

.vexy-case-banner--b .vexy-case-banner__logo-row {
    margin-top: calc(18 * var(--vcb-u));
}

.vexy-case-banner--b .vexy-case-banner__head {
    margin-top: calc(8 * var(--vcb-u));
    font-size: calc(64 * var(--vcb-u));
}

/* ---------- d: 0 yen ---------- */
.vexy-case-banner--d .vexy-case-banner__cv {
    padding-bottom: calc(136 * var(--vcb-u));
}

.vexy-case-banner--d .vexy-case-banner__tagbox {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(936 * var(--vcb-u));
    height: calc(146 * var(--vcb-u));
}

.vexy-case-banner--d .vexy-case-banner__tag {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: calc(14 * var(--vcb-u)) calc(34 * var(--vcb-u));
    border-radius: calc(22 * var(--vcb-u));
    background: var(--vcb-card);
    line-height: 1.2;
    text-align: center;
}

.vexy-case-banner--d .vexy-case-banner__q1 {
    flex: none;
    margin-top: calc(40 * var(--vcb-u));
    font-size: calc(62 * var(--vcb-u));
    line-height: 1.2;
}

.vexy-case-banner--d .vexy-case-banner__price {
    flex: none;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: calc(14 * var(--vcb-u));
    line-height: 1;
    white-space: nowrap;
    /* Google Fonts' Outfit puts the baseline of this 330-unit line 19 units higher than the
       font files the approved banner was drawn with; move the row back to the approved position. */
    transform: translateY(calc(19 * var(--vcb-u)));
}

.vexy-case-banner--d .vexy-case-banner__l {
    font-size: calc(54 * var(--vcb-u));
}

.vexy-case-banner--d .vexy-case-banner__n {
    color: var(--vcb-mark);
    font-size: calc(330 * var(--vcb-u));
    letter-spacing: -0.02em;
}

.vexy-case-banner--d .vexy-case-banner__yen {
    margin-left: calc(4 * var(--vcb-u));
    font-size: calc(180 * var(--vcb-u));
    letter-spacing: -0.02em;
}

.vexy-case-banner--d .vexy-case-banner__r {
    font-size: calc(62 * var(--vcb-u));
}

.vexy-case-banner--d .vexy-case-banner__rule {
    flex: none;
    display: block;
    width: calc(640 * var(--vcb-u));
    height: max(1px, calc(1 * var(--vcb-u)));
    margin-top: calc(26 * var(--vcb-u));
    background: var(--vcb-line);
}

.vexy-case-banner--d .vexy-case-banner__note {
    flex: none;
    margin-top: calc(30 * var(--vcb-u));
    color: var(--vcb-sub);
    font-size: calc(44 * var(--vcb-u));
    font-weight: 500;
    line-height: 1.36;
    white-space: nowrap;
}

.vexy-case-banner--d .vexy-case-banner__strip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(44 * var(--vcb-u));
    height: calc(136 * var(--vcb-u));
    background: var(--vcb-strip);
}

.vexy-case-banner__cv .vexy-case-banner__strip .vexy-case-banner__logo {
    width: calc(400 * var(--vcb-u));
    height: auto;
}

.vexy-case-banner--d .vexy-case-banner__lineb {
    display: flex;
    align-items: center;
    gap: calc(16 * var(--vcb-u));
    color: var(--vcb-mark);
    font-size: calc(48 * var(--vcb-u));
    white-space: nowrap;
}

.vexy-case-banner__cv .vexy-case-banner__lineb img {
    width: calc(66 * var(--vcb-u));
    height: calc(66 * var(--vcb-u));
}

/* ---------- e: situation check ---------- */
.vexy-case-banner--e .vexy-case-banner__sx {
    color: var(--vcb-mark);
}

.vexy-case-banner--e .vexy-case-banner__box {
    flex: none;
    display: flex;
    flex-direction: column;
    gap: calc(38 * var(--vcb-u));
    margin-top: calc(88 * var(--vcb-u));
    padding: calc(46 * var(--vcb-u)) calc(48 * var(--vcb-u));
    border-radius: calc(24 * var(--vcb-u));
    background: var(--vcb-card);
}

.vexy-case-banner--e .vexy-case-banner__li {
    display: flex;
    align-items: center;
    gap: calc(20 * var(--vcb-u));
    font-size: calc(48 * var(--vcb-u));
    line-height: 1.1;
    white-space: nowrap;
    text-align: left;
}

.vexy-case-banner--e .vexy-case-banner__chk {
    width: calc(54 * var(--vcb-u));
    height: calc(54 * var(--vcb-u));
    color: var(--vcb-mark);
}

.vexy-case-banner--e .vexy-case-banner__arrow {
    width: calc(100 * var(--vcb-u));
    height: calc(52 * var(--vcb-u));
    margin-top: calc(88 * var(--vcb-u));
}

.vexy-case-banner--e .vexy-case-banner__logo-row {
    --vcb-f: calc(48 * var(--vcb-u));
    margin-top: calc(40 * var(--vcb-u));
}

.vexy-case-banner--e .vexy-case-banner__head {
    margin-top: calc(12 * var(--vcb-u));
    font-size: calc(76 * var(--vcb-u));
}

/* ---------- a1: question panel and answer band ---------- */
.vexy-case-banner--a1 .vexy-case-banner__cv {
    justify-content: flex-start;
}

.vexy-case-banner--a1 .vexy-case-banner__top {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(760 * var(--vcb-u));
}

.vexy-case-banner--a1 .vexy-case-banner__ask {
    flex: none;
    margin-top: calc(24 * var(--vcb-u));
    font-size: calc(78 * var(--vcb-u));
    line-height: 1.2;
}

.vexy-case-banner--a1 .vexy-case-banner__tiles {
    flex: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: calc(12 * var(--vcb-u));
    width: calc(936 * var(--vcb-u));
    margin-top: calc(56 * var(--vcb-u));
}

.vexy-case-banner--a1 .vexy-case-banner__tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: calc(12 * var(--vcb-u));
    height: calc(160 * var(--vcb-u));
    border-radius: calc(18 * var(--vcb-u));
    background: var(--vcb-card);
}

.vexy-case-banner--a1 .vexy-case-banner__tile .vexy-case-banner__ic {
    width: calc(60 * var(--vcb-u));
    height: calc(60 * var(--vcb-u));
}

.vexy-case-banner--a1 .vexy-case-banner__tl {
    font-size: calc(46 * var(--vcb-u));
    line-height: 1;
    white-space: nowrap;
    text-align: center;
}

.vexy-case-banner--a1 .vexy-case-banner__tile--two {
    gap: calc(6 * var(--vcb-u));
}

.vexy-case-banner--a1 .vexy-case-banner__tile--two .vexy-case-banner__ic {
    width: calc(42 * var(--vcb-u));
    height: calc(42 * var(--vcb-u));
}

.vexy-case-banner--a1 .vexy-case-banner__tile--two .vexy-case-banner__tl {
    line-height: 1.06;
}

.vexy-case-banner--a1 .vexy-case-banner__tile--more {
    color: var(--vcb-sub);
}

.vexy-case-banner--a1 .vexy-case-banner__tile--more .vexy-case-banner__ic {
    width: calc(60 * var(--vcb-u));
    height: calc(24 * var(--vcb-u));
}

.vexy-case-banner--a1 .vexy-case-banner__band {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: calc(760 * var(--vcb-u));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: calc(34 * var(--vcb-u));
    background: var(--vcb-band);
    color: var(--vcb-band-ink);
}

.vexy-case-banner--a1 .vexy-case-banner__notch {
    position: absolute;
    top: -1px;
    left: 50%;
    width: 0;
    height: 0;
    transform: translateX(-50%);
    border-left: calc(70 * var(--vcb-u)) solid transparent;
    border-right: calc(70 * var(--vcb-u)) solid transparent;
    border-top: calc(48 * var(--vcb-u)) solid var(--vcb-bg);
}

.vexy-case-banner__cv .vexy-case-banner__band .vexy-case-banner__logo {
    filter: brightness(0) invert(1);
}

.vexy-case-banner--a1 .vexy-case-banner__head {
    margin-top: calc(12 * var(--vcb-u));
    font-size: calc(78 * var(--vcb-u));
}

.vexy-case-banner--a1 .vexy-case-banner__band .vexy-case-banner__mk {
    color: inherit;
}

/* ------------------------------------------------------------------ green LINE button (lead) */
.vexy-cta-button,
.vexy-cta-button.stepper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    width: 100%;
    max-width: 480px;
    height: 58px;
    margin: 0 auto;
    padding: 0 44px 0 20px;
    border: 0;
    border-radius: 12px;
    background: #06c755;
    box-shadow: 0 4px 14px rgba(6, 199, 85, 0.28);
    color: #fff;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: filter 0.15s, transform 0.15s;
}

.vexy-cta-button:hover {
    filter: brightness(1.05);
}

.vexy-cta-button:active {
    transform: translateY(1px);
}

.vexy-cta-button:focus-visible {
    outline: 3px solid #037d38;
    outline-offset: 3px;
}

.vexy-cta-button * {
    text-decoration: none !important;
}

.vexy-cta-button img.vexy-cta-button__icon {
    display: block;
    flex: none;
    width: 30px;
    height: 30px;
    margin: 0 !important;
    border-radius: 7px;
    box-shadow: none;
}

.vexy-cta-button__label {
    color: #fff;
    white-space: nowrap;
}

.vexy-cta-button__arrow {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    color: #fff;
}

/* ------------------------------------------------------------------ microcopy around buttons
 * Both lines always stay on one line: the line before the button shrinks with the viewport. */
p.vexy-cta-micro {
    box-sizing: border-box;
    padding: 0;
    text-align: center;
    white-space: nowrap;
    line-break: strict;
    text-decoration: none !important;
}

p.vexy-cta-micro.vexy-cta-micro--before {
    margin: 0 0 9px !important;
    color: #111;
    font-size: min(15px, calc((100vw - 32px) / 21.9));
    font-weight: 700;
    line-height: 1.5;
}

.vexy-cta-micro__text {
    display: inline-block;
}

.vexy-cta-micro__text::before,
.vexy-cta-micro__text::after {
    color: #037d38;
    font-weight: 400;
}

.vexy-cta-micro__text::before {
    content: "＼";
    margin-right: 0.3em;
}

.vexy-cta-micro__text::after {
    content: "／";
    margin-left: 0.3em;
}

p.vexy-cta-micro.vexy-cta-micro--after {
    margin: 11px 0 0 !important;
    color: #555;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
}

/* Line under the green button of the checklist boxes (mid general and article end). */
p.vexy-cta-btnnote {
    box-sizing: border-box;
    margin: 11px 0 0 !important;
    padding: 0;
    color: #555;
    font-size: min(13px, calc((100vw - 66px) / 21.3)) !important;
    font-weight: 400;
    line-height: 1.6 !important;
    text-align: center;
    white-space: nowrap;
    text-decoration: none !important;
}

@media (min-width: 769px) {
    p.vexy-cta-micro.vexy-cta-micro--before {
        font-size: 16px;
    }

    p.vexy-cta-micro.vexy-cta-micro--after,
    p.vexy-cta-btnnote {
        font-size: 14px !important;
    }
}
