.home-page {
    --slide-height: 100vh;
    --desktop-header-height: 74px;
    --slide-gutter: clamp(28px, 6vw, 112px);
    --desktop-top-space: 14px;
    --desktop-bottom-space: clamp(12px, 3vh, 32px);
    --desktop-content-height: calc(var(--slide-height) - var(--desktop-header-height) - var(--desktop-top-space) - var(--desktop-bottom-space));
}

@supports (height: 100dvh) {
    .home-page {
        --slide-height: 100dvh;
    }
}

.home-page .home,
.home-page .home > .swiper,
.home-page .home > .swiper > .swiper-wrapper > .swiper-slide,
.home-page .home .page,
.home-page .home .page > .pc-box,
.home-page .home .page > .phone-box,
.home-page .home .download-page,
.home-page .home .download-page > img {
    height: var(--slide-height);
}

.home-page .home .page-padding {
    padding: 0;
}

.home-page .down-box-component .app-item {
    width: min(600px, calc(100% - 32px));
    min-width: 0;
    height: auto;
    max-height: calc(var(--slide-height) - 24px);
    padding-bottom: clamp(16px, 5vh, 44px);
    overflow: auto;
}

.home-page .down-box-component .app-item .top {
    padding-bottom: clamp(12px, 5vh, 48px);
}

.home-page .down-box-component .app-item .bottom {
    padding-inline: clamp(12px, 8vw, 90px);
}

.home-page .down-box-component .app-item .bottom a {
    min-height: 44px;
    height: auto;
    padding-block: 6px;
}

@media (min-width: 930.01px) {
    .home-page > .nav.on-pc {
        min-height: var(--desktop-header-height);
        align-items: center;
    }

    .home-page > .nav.on-pc .right {
        padding-right: clamp(6px, 4vw, 50px);
    }

    .home-page > .nav.on-pc .right .list .item {
        margin-left: clamp(20px, 4vw, 50px);
    }

    .home-page .home .page > .pc-box {
        display: grid;
        grid-template-columns: minmax(0, 380px) minmax(0, 600px);
        column-gap: clamp(28px, 7vw, 120px);
        justify-content: center;
        align-content: safe center;
        padding: calc(var(--desktop-header-height) + var(--desktop-top-space)) var(--slide-gutter) var(--desktop-bottom-space);
    }

    .home-page .home .page1 > .pc-box > .left {
        justify-self: center;
        width: min(100%, 310px, calc(var(--desktop-content-height) * .52));
        margin: 0;
    }

    .home-page .home .page1 > .pc-box > .left > img {
        display: block;
        width: 100%;
        max-height: var(--desktop-content-height);
        object-fit: contain;
    }

    .home-page .home .page1 .pc-box .right .rightText h1 {
        margin-block: .14em .24em;
        font-size: clamp(1.75rem, min(3.9vw, calc(var(--slide-height) * .075)), 3.45rem);
        line-height: 1.14;
        overflow-wrap: anywhere;
    }

    .home-page .home .page1 .pc-box .right .rightText p {
        font-size: clamp(1rem, min(2vw, calc(var(--slide-height) * .045)), 1.8rem);
        line-height: 1.25;
    }

    .home-page .home .page1 .pc-box .right .rightText p.p2 {
        font-size: clamp(.9rem, min(1.7vw, calc(var(--slide-height) * .037)), 1.45rem);
    }

    .home-page .home .page1 .pc-box .qr-box {
        --qr-size: clamp(76px, calc(var(--desktop-content-height) * .25), 160px);
        width: var(--qr-size);
        height: var(--qr-size);
        margin-block: clamp(6px, 1.8vh, 20px) clamp(8px, 2.8vh, 28px);
    }

    .home-page .home .page1 .pc-box .btn-box {
        width: 100%;
        justify-content: flex-start;
        gap: clamp(8px, 2vw, 24px);
    }

    .home-page .home .page1 .pc-box .btn-box .item {
        flex: 0 1 290px;
        width: auto;
        min-width: 0;
        height: clamp(42px, calc(var(--slide-height) * .08), 70px);
        margin: 0;
        font-size: clamp(.9rem, 1.55vw, 1.25rem);
    }

    .home-page .home .page1 .pc-box .btn-box .item a {
        width: 100%;
        height: 100%;
        padding-inline: 5px;
        text-align: center;
    }

    .home-page .home .page1 .pc-box .btn-box .item img {
        width: clamp(16px, 2.1vw, 30px);
        flex: 0 0 auto;
        margin-right: clamp(4px, .8vw, 10px);
    }

    .home-page .home .page:not(.page1) > .pc-box {
        grid-template-columns: minmax(0, 380px) minmax(0, 520px);
    }

    .home-page .home .page:not(.page1) > .pc-box > .left {
        justify-self: center;
        top: auto;
        width: min(100%, clamp(128px, 25vw, 320px), calc(var(--desktop-content-height) * .51));
        margin: 0;
    }

    .home-page .home .page:not(.page1) > .pc-box > .right {
        width: 100%;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .home-page .home .page:not(.page1) > .pc-box > .right p {
        font-size: clamp(1.05rem, min(2.6vw, calc(var(--slide-height) * .055)), 2.5rem);
        line-height: 1.25;
    }

    .home-page .home .page:not(.page1) > .pc-box > .right h1 {
        margin-block: .12em .18em;
        font-size: clamp(1.8rem, min(4.5vw, calc(var(--slide-height) * .09)), 4rem);
        line-height: 1.12;
    }

    .home-page .home .page:not(.page1) > .pc-box > .right p.p2 {
        font-size: clamp(.95rem, min(1.55vw, calc(var(--slide-height) * .045)), 1.45rem);
        line-height: 1.4;
    }

    .home-page .home .download-page {
        justify-content: center;
        padding-block: calc(var(--desktop-header-height) + var(--desktop-top-space)) max(64px, var(--desktop-bottom-space));
    }

    .home-page .home .download-page > img {
        object-fit: cover;
    }

    .home-page .home .download-page > .box {
        --download-gap: clamp(8px, calc(var(--slide-height) * .026), 24px);
        --download-button-width: clamp(146px, 17vw, 220px);
        display: grid;
        grid-template-columns: max-content max-content;
        gap: clamp(32px, 10vw, 150px);
        height: auto;
        max-height: none;
        padding: clamp(12px, calc(var(--slide-height) * .06), 52px) var(--slide-gutter);
    }

    .home-page .home .download-page > .box > :is(.left, .right) {
        height: auto;
        margin: 0;
    }

    .home-page .home .download-page > .box > :is(.left, .right) .tit {
        margin-bottom: var(--download-gap);
        font-size: clamp(1.1rem, min(2.3vw, calc(var(--slide-height) * .06)), 2rem);
        line-height: 1.2;
    }

    .home-page .home .download-page .box .left .btm {
        align-items: center;
        gap: clamp(10px, 3.5vw, 50px);
    }

    .home-page .home .download-page .box .left .btm .l {
        margin: 0;
    }

    .home-page .home .download-page .box .left .qr-box {
        --qr-size: clamp(74px, calc(var(--desktop-content-height) * .24), 120px);
        width: var(--qr-size);
        height: var(--qr-size);
        top: auto;
        margin: 0;
    }

    .home-page .home .download-page .box .left .btm .l .item,
    .home-page .home .download-page .box .right .item {
        width: var(--download-button-width);
        height: clamp(42px, calc(var(--slide-height) * .075), 60px);
        margin: 0;
        font-size: clamp(.85rem, 1.4vw, 1.2rem);
    }

    .home-page .home .download-page .box .left .btm .l .item.w,
    .home-page .home .download-page .box .right .item.w {
        margin: 0 0 var(--download-gap);
    }

    .home-page .home .download-page .box .item img {
        width: clamp(18px, 2vw, 30px);
    }
}

@media (min-width: 930.01px) and (max-height: 620px) {
    .home-page {
        --desktop-header-height: 56px;
        --desktop-top-space: 6px;
        --desktop-bottom-space: 12px;
    }

    .home-page > .nav.on-pc {
        padding-block: 8px;
    }

    .home-page > .nav.on-pc .left img {
        display: block;
        max-height: 40px;
        object-fit: contain;
        object-position: left center;
    }
}

@media (max-width: 930px) {
    .home-page {
        --mobile-feature-art-width: min(58vw, 245px, max(90px, calc((var(--slide-height) - 170px) * .48)));
        --mobile-feature-gap: clamp(5px, 1.4vh, 16px);
        --mobile-inline-space: clamp(22px, 7vw, 70px);
    }

    .home-page .home {
        max-width: 680px !important;
    }

    .home-page .home .page1 .phone-box {
        position: relative;
        isolation: isolate;
        width: 100%;
    }

    .home-page .home .page1 .phone-box > img {
        top: 0;
        width: min(100%, 550px);
        max-height: 92%;
        left: 50%;
        transform: translateX(-50%);
        object-fit: contain;
        object-position: top center;
    }

    .home-page .home .page1 .phone-box > .box {
        display: flex;
        height: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: safe center;
        padding: clamp(28px, 12vh, 130px) var(--mobile-inline-space) clamp(20px, 6vh, 60px);
    }

    .home-page .home .page1 .phone-box .box .logo {
        display: block;
        width: clamp(170px, 65vw, 340px);
        max-width: 100%;
        padding: 0;
        margin-bottom: clamp(20px, 7vh, 70px);
    }

    .home-page .home .page1 .phone-box .box h3 {
        font-size: clamp(1.28rem, 5vw, 1.9rem);
        line-height: 1.23;
        overflow-wrap: anywhere;
    }

    .home-page .home .page1 .phone-box .box p {
        padding: 8px 0 clamp(16px, 8vh, 70px);
        line-height: 1.4;
    }

    .home-page .home .page:not(.page1) > .phone-box.on-phone {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: safe center;
        gap: var(--mobile-feature-gap);
        width: 100%;
        padding: var(--mobile-feature-gap) var(--mobile-inline-space);
    }

    .home-page .home .page:not(.page1) > .phone-box > .left {
        flex: 0 0 auto;
        width: var(--mobile-feature-art-width);
        max-width: none;
        margin: 0;
    }

    .home-page .home .page2 > .phone-box.on-phone > .left {
        width: min(72vw, 430px, calc(var(--mobile-feature-art-width) * 1.65));
    }

    .home-page .home .page2 > .phone-box > .left .bg {
        width: 58%;
    }

    .home-page .home .page8 > .phone-box.on-phone > .left {
        width: calc(var(--mobile-feature-art-width) * .92);
    }

    .home-page .home .page:not(.page1) > .phone-box > .right {
        width: 100%;
        min-width: 0;
        margin: 0;
        overflow-wrap: anywhere;
    }

    .home-page .home .page:not(.page1) > .phone-box > .right p {
        margin: 0;
        font-size: clamp(.95rem, 3vw, 1.2rem);
        line-height: 1.25;
        letter-spacing: .18em;
    }

    .home-page .home .page:not(.page1) > .phone-box > .right h1 {
        margin-block: .08em .16em;
        font-size: clamp(1.65rem, min(8.4vw, calc(var(--slide-height) * .085)), 2.75rem);
        line-height: 1.12;
    }

    .home-page .home .page:not(.page1) > .phone-box > .right p.p2 {
        margin: 0;
        font-size: .875rem;
        line-height: 1.25;
        letter-spacing: .14em;
    }

    .home-page .home .phone-box .down-btn {
        flex: 0 0 auto;
        height: max(44px, 2.75rem);
    }

    .home-page .home .page:not(.page1) > .phone-box > .right .down-btn {
        margin: var(--mobile-feature-gap) auto 0;
    }
}

@media (max-width: 930px) and (max-height: 510px) and (orientation: landscape) {
    .home-page {
        --mobile-feature-art-width: min(25vw, 180px, max(74px, calc((var(--slide-height) - 38px) * .52)));
    }

    .home-page .home {
        max-width: 840px !important;
    }

    .home-page .home .page1 .phone-box > img {
        width: min(62vw, 550px);
    }

    .home-page .home .page1 .phone-box > .box {
        padding-block: 18px;
    }

    .home-page .home .page1 .phone-box .box .logo {
        width: clamp(170px, 36vw, 265px);
        margin-bottom: clamp(12px, 5vh, 26px);
    }

    .home-page .home .page1 .phone-box .box p {
        padding-bottom: clamp(12px, 5vh, 26px);
    }

    .home-page .home .page:not(.page1) > .phone-box.on-phone {
        flex-direction: row;
        justify-content: safe center;
        gap: clamp(30px, 8vw, 68px);
    }

    .home-page .home .page2 > .phone-box.on-phone > .left {
        width: calc(var(--mobile-feature-art-width) * 1.5);
    }

    .home-page .home .page:not(.page1) > .phone-box > .right {
        width: min(44vw, 350px);
    }
}

.home-page .swiper-slide img[width][height] {
    height: auto;
}

.home-page > .nav.on-pc {
    transition: opacity 140ms ease-out;
}

.home-page > .nav.on-pc.nav-moving {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: none;
}

.home-page .swiper-slide :is(img, .rightText, .download-page .box) {
    animation: none !important;
}

@media (max-width: 930px) {
    .home-page .home .page9 > .phone-box.on-phone {
        padding-bottom: calc(var(--mobile-feature-gap) + clamp(54px, 14vh, 82px) + env(safe-area-inset-bottom, 0px));
    }

    .home-page .home .page9 > .phone-box.on-phone > .left {
        width: min(var(--mobile-feature-art-width), max(75px, calc((var(--slide-height) - 270px) * .49)));
    }
}

@media (max-width: 930px) and (max-height: 510px) and (orientation: landscape) {
    .home-page .home .page9 > .phone-box.on-phone > .left {
        width: min(var(--mobile-feature-art-width), max(74px, calc((var(--slide-height) - 112px) * .51)));
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page > .nav.on-pc {
        transition: none;
    }
}

.home-page button {
    font-family: inherit;
}

.home-page .nav button.item,
.home-page .db2 .btm button.item,
.home-page .down-box-component .modal-close {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.home-page .phone-box button.down-btn {
    border: 0;
    padding: 0 12px;
    cursor: pointer;
}

.home-page .download-page .right button.item {
    background: transparent;
    padding: 0 8px;
}

.home-page .download-page .right button.item:hover {
    background: #e50112;
}

.home-page button:focus-visible {
    outline: 2px solid #2557ff;
    outline-offset: 4px;
}
