/*================================================
    page-mainvisual
================================================*/

.page-mainvisual {
    background-image: url(../../image/in-numbers/pageheader_bg.jpg);
}

.in-numbers {
    background-color: #EEEEEE;
    position: relative;
    padding-bottom: calc(var(--layout-gap) * 2);
}

.in-numbers::before {
    content: '';
    background-image: url(../../image/in-numbers/numbers_bg_top_img.png);
    background-position: center;
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 1920 / 500;
    z-index: 0;
}

.in-numbers::after {
    content: '';
    background-image: url(../../image/in-numbers/numbers_bg_bottom_img.png);
    background-position: center;
    background-size: cover;
    position: absolute;
    bottom: 0;
    right: 0;
    /* width: 8cqb; */
    width: 80%;
    aspect-ratio: 1920 / 500;
    z-index: 0;
}

.in-numbers .container {
    position: relative;
    z-index: 2;
}

.in-numbers .section-bg-title {
    /* font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 0.1em; */
    color: var(--color-text-second);
    position: relative;
    aspect-ratio: 1442 / 336;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.in-numbers .section-bg-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    background-image: url(../../image/in-numbers/in-numbers.png);
    background-size: contain;
    width: 100%;
    aspect-ratio: 1442 / 336;
    z-index: -1;
}

.in-numbers-text {
    text-align: center;
    line-height: 3;
    font-weight: 700;
    margin-bottom: calc(var(--layout-gap) * 1.5);
}


.in-numbers-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: calc(var(--layout-gap) / 2);
    padding-inline: 0;
    position: relative;
}

.in-numbers-item {
    background-color: var(--color-white);
    border-radius: 30px;
    position: relative;
    /* padding: calc(var(--layout-gap)); */
    padding:calc(var(--layout-gap) / 1.25) calc(var(--layout-gap) / 8) ;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.label {
    background-color: var(--color-text-second);
    color: var(--color-white);
    /* padding: calc(var(--layout-gap) / 8) calc(var(--layout-gap) / 2.5); */
    padding: 0.5em 1.25em;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.in-numbers-item img {
    height: 100px;
    object-fit: contain;
    /* margin-bottom: calc(var(--layout-gap) / 1); */
    margin-block:calc(var(--layout-gap) / 2);
}
.in-numbers-item p {
    line-height: 1;
}
.in-numbers-item .sub {
    font-weight: 700;
}
.in-numbers-b {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--color-primary);
    padding-inline: 0.05em;
}

.in-numbers-sub {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-text-second);
}

.grid-full {
    grid-column: 1 / -1;
}

/* .flex-item {
    display: flex;
    flex-direction: column;
    align-items: center;
} */

.in-numbers-sub-text {
    display: flex;
    /* justify-content: space-between; */
    gap: 1em;
    justify-content: space-evenly;
    width: 100%;
}

.in-numbers-sub-text p {
    position: relative;
}

.in-numbers-text-label {
    position: absolute;
    bottom: 100%;
    left: 0;
    font-weight: 700;
    font-size: 80%;
}

.inner-label {
    border: 1px solid #707070;
    white-space: nowrap;
    font-size: 1.4rem;
    line-height: 1;
    padding: 0.5em 1em;
    margin-inline: 1em;
    width: 9em;
    text-align: center;
    /* padding: 5px 20px; */
}

.in-numbers-item-wrapper + .in-numbers-item-wrapper {
    margin-top: 2em;
}

.in-numbers-item-wrapper .in-numbers-b {
    font-size: 4rem;
}

.in-numbers-item-wrapper p {
    /* white-space: nowrap; */
    text-align: center;
}
.in-numbers-item .in-numbers-item-wrapper img {
    margin-block:0;
}

.flex {
    display: flex;
    align-items: center;
}

.flex p {
    white-space: nowrap;
    position: relative;
}

.flex .sub {
    position: absolute;
    top: -25px;
}

.flex img {
    margin-bottom: 0;
}

.flex-full {
    flex-direction: column;
    position: relative;
    z-index: 2;
}
@media print, screen and (min-width: 490px) {
    .in-numbers-list {
        grid-template-columns: 1fr 1fr;
        gap:1em;
    }
    .in-numbers-item-wrapper {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    .in-numbers-item .in-numbers-item-wrapper img {
        width: auto;
    }
    .in-numbers-item-wrapper p {
        margin-inline: 1em;
        width: 22em;
        text-align: right;
    }
    /* .in-numbers-item-wrapper .in-numbers-b {
        font-size: 4rem;
    } */
}

@media print,
screen and (min-width: 690px) {
    .in-numbers-item {
        padding: 2em 1.5em 1.5em;
    }
    .in-numbers-item.flex-row {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        padding: 3em 1.25em 1.5em;
    }
    .in-numbers-item.flex-row img {
        width: 50%;
    }
    .in-numbers-item.flex-row p {
        width: auto;
    }
    .in-numbers-item.flex-row p > .sub {
        width: 100%;
        display: block;
    }
    .in-numbers-item.grid-full.flex-row img {
        width: 20%;
    }
    .in-numbers-item-wrapper {
        justify-content: space-between;
    }
    .in-numbers-item-wrapper p {
        width: auto;
    }
}

@media print,
screen and (min-width: 769px) {
    .label {
        font-size: 1.6rem;
        padding: calc(var(--layout-gap) / 4) calc(var(--layout-gap) / 1.5);
    }

    .in-numbers .section-bg-title {
        font-size: 3rem;
    }

    .in-numbers-b {
        /* font-size:6rem; */
        font-size: clamp(5rem, 1.6594rem + 6.9505vw, 10rem);
    }
    .in-numbers-item.flex-row .in-numbers-b {
        font-size: clamp(3rem, -0.3406rem + 6.9505vw, 8rem);
    }
    .in-numbers-item-wrapper .in-numbers-b {
        /* font-size: 7rem; */
        font-size: clamp(3rem, -0.3406rem + 6.9505vw, 8rem);
    }
    .in-numbers-item.grid-full.flex-row .in-numbers-b {
        font-size: clamp(5rem, 1.6594rem + 6.9505vw, 10rem);
    }

    .in-numbers-sub {
        font-size: 2.4rem;
    }

    .in-numbers-item img {
        /* height: 140px; */
        height: 120px;
    }

    .in-numbers-item-wrapper {
        display: flex;
        align-items: center;
    }

    .inner-label {
        font-size: 1.6rem;
        /* padding: 10px 40px; */
    }

    .flex-full {
        flex-direction: row;
        align-items: center;
    }

}

@media print,
screen and (min-width: 1200px) {
    .in-numbers {
        padding-bottom: calc(var(--layout-gap) * 3);
    }
    .label {
        font-size: 1.8rem;
    }

    .in-numbers .section-bg-title {
        font-size: 4rem;
    }

    .in-numbers-list {
        grid-template-columns: 1fr 1fr;
        gap: var(--layout-gap);
    }
    .in-numbers-item {
        padding: 3.5em 1.5em 3em;
    }
    .in-numbers-item.flex-row {
        padding: 3.5em 1.25em 3em;
    }
    .in-numbers-item img {
        height: 140px;
    }
    .in-numbers-text {
        margin-bottom: calc(var(--layout-gap) * 3);
    }

    .in-numbers-b {
        /* font-size: 10rem; */
        font-size: clamp(5rem, -6.6667rem + 15.5556vw, 12rem);
    }
    .in-numbers-item.flex-row .in-numbers-b {
        font-size: clamp(4rem, -0.0087rem + 8.3406vw, 10rem);
    }
    .in-numbers-item-wrapper .in-numbers-b {
        /* font-size: 7rem; */
        font-size: clamp(4rem, -0.0087rem + 8.3406vw, 10rem);
    }
    .in-numbers-item.grid-full.flex-row .in-numbers-b {
        font-size: clamp(6rem, 1.3232rem + 9.7307vw, 13rem);
    }
    .in-numbers-sub {
        font-size: 3.2rem;
    }
    .in-numbers-text-label {
        font-size: 1em;
    }
    .inner-label {
        font-size: 1.8rem;
    }

}

@media print,
screen and (min-width: 1600px) {
    .in-numbers {
        padding-bottom: calc(var(--layout-gap) * 4);
    }
    .in-numbers-item {
        padding: 4em 2em;
    }
    .in-numbers-item.flex-row {
        padding: 4em 2em;
    }
}
