@charset "utf-8";

/* !!! НЕ ПРАВИТЬ РУКАМИ: файл сгенерирован из public_html/assets/css/top.css скриптом scratch/build-sustainability-css.py (rem->px, обёртка div.ccm-page) */

div.ccm-page {
.main {
    text-align: center;
    overflow: hidden;
}

.top__visual {
    background-image: url('../images/top.jpeg');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 1130px;
    position: relative;
    padding: 40px 7.7%;
}

.circle {
    position: absolute;
    top: 25px;
    left: -300px;
    width: 600px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: radial-gradient(closest-side,transparent 95%,#ffffff, #B2DBCB);
    filter: blur(8px);
    animation: rotate 40s linear infinite;
    transform-origin: center;
}

.circle1 {
    top: 30px;
    left: -270px;
    transform: translate(0,0);
    animation-duration: 10s;
}

.circle2 {
    top: 50px;
    left: -300px;
    transform: translate(12px,-8px) scale(0.95);
    transform: translateX(100px);
    opacity: 0.7;
    animation-duration: 20s;
}

.circle3 {
    top: 70px;
    left: -330px;
    transform: translate(-10px,10px) scale(1.05);
    transform: translateX(-100px);
    opacity: 0.5;
    animation-duration: 30s;
}

.bubbles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.bubble {
    position: absolute;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 0 30px rgba(255,255,255,0.8);
    background-color: transparent;
}

.b1 {
    top: 0;
    left: 5%;
}

.b2 {
    top: 70px;
    left: 20%;
}

.b3 {
    top: -30%;
    left: 45%;
}

.top__title {
    color: #ffffff;
    font-family: 'Noto Serif JP';
    font-size: 36px;
    font-weight: 500;
    white-space: nowrap;
    position: absolute;
    top: 145px;
    left: 50%;
    transform: translate(-50%,20px);
    text-shadow: 0 4px 4px rgba(0,0,0,0.25);
    z-index: 10;
    opacity: 0;
    animation: fadeup 2s ease-out forwards;
}

.top__declaration {
    position: absolute;
    top: 319px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.7);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px 6.4%;
    font-family: 'Noto Serif JP';
}

.declaration {
    margin-top: 26px;
    font-size: 20px;
}

.declaration__catch {
    color: #006A6C;
    font-size: 20px;
    font-weight: 900;
    text-align: center;
    white-space: nowrap;
}

.declaration__smallcatch {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin-top: 6px;
}

.declaration__item {
    margin-top: 20px;
}

.declaration__item:first-of-type {
    margin-top: 0;
}

.declaration__title {
    font-weight: 700;
    white-space: nowrap;
}

.description__txt {
    font-size: 14px;
}

.effort {
    margin-top: 60px;
    padding: 0 30px;
    margin-inline: auto;
    width: fit-content;
    box-sizing: border-box;
    position: relative;
}

.effort__contents {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    max-width: 330px;
    background-color: #ffffff;
    margin-top: 60px;
    border-radius: 10px;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.25);
    text-align: center;
    overflow: hidden;
}

.effort__contents:first-of-type {
    margin-top: 0;
}

.card-content {
    padding: 15px 40px;
}

.card__title {
    margin-top: 15px;
    font-size: 18px;
    font-weight: 700;
    line-height: 2.0;
}

.card__txt {
    margin-top: 4px;
    line-height: 2.0;
}

.cardbtn {
    display: inline-block;
    justify-content: center;
    align-items: center;
    padding: 4px 33px;
    box-sizing: border-box;
    margin-top: 17px;
    background-color: #006A6C;
    color: #ffffff;
    border: solid 1px;
    border-color: #006A6C;
    font-weight: 700;
    border-radius: 50px;
}

.card-image {
    /* background-size: cover;
    background-position: center; */
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    margin-top: -25%;
    display: block;
}

.closing {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.wave {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('../images/light_line.svg');
    background-size: cover;
    background-position: center;
    margin-top: 10px;
}

.closingwords {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    color: #006A6C;
    font-family: 'Noto Serif JP';
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

@media screen and (min-width: 769px) {
    .top__visual {
        height: 1830px;
        padding: 0;
        position: relative;
    }

    .bubble {
        position: absolute;
        width: 690px;
        height: 690px;
        z-index: 5;
    }

    .b1 {
        top: 118px;
        left: 10%;
    }

    .b2 {
        top: 263px;
        left: 37%;
    }

    .b3 {
        top: 0;
        left: 44%;
    }

    .circle {
        top: 250px;
        left: -300px;
        width: 1500px;
        background: radial-gradient(closest-side,transparent 98%,#ffffff, #B2DBCB);
        }

    .top__title {
        font-size: 150px;
        position: absolute;
        top: 344px;
        margin-top: 36px;

    }

    .top__declaration {
        max-width: 1000px;
        height: 780px;
        position: absolute;
        top: 985px;
        padding: 40px 5.8%;
        white-space: nowrap;
    }

    .declaration {
        padding: 0 12%;
    }

    .declaration__catch {
        font-size: 48px;
        white-space: none;
    }

    .declaration__smallcatch {
        font-size: 20px;
    }

    .declaration__item {
        margin-top: 43px;
    }

    .declaration__title {
        font-size: 32px;
    }

    .description__txt {
        font-size: 16px;
    }

    #effort {
        background-image: url(../images/light_line.svg);
        background-size: cover;
        background-position: center;
    }

    .effort {
        max-width: 1240px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(3,1fr);
        grid-template-rows: auto 1fr auto 195px;
        gap: 20px;
        padding: 0;
        margin-top: 90px;
    }

    .effort__contents {
        max-width: 400px;
        margin: 0;
        display: grid;
        grid-template-rows: subgrid;
        grid-row: span 4;
    }

    .card-content {
        display: contents;
    }

    /* .card-image {
        width: 100%;
    } */

    .card__title {
        font-size: 32px;
        white-space: nowrap;
        grid-row: 1;
        margin: 30px 10% 0;
    }

    .card__txt {
        font-size: 16px;
        grid-row: 2;
        margin: 20px 10% 0;
    }

    .cardbtn {
        grid-row: 3;
        padding: 10px 40px;
        width: fit-content;
        justify-self: center;
        transition: all 0.3s ease;
    }

    .cardbtn:hover {
        background-color: #ffffff;
        color: #006A6C;
    }

    .card-image {
        width: 100%;
        grid-row: 4;
        height: 100%;
        overflow: hidden;
    } 
    .card-image img {
        width: 100%;
        height: 195px;
        margin-top: 0;
    }

    .wave {
        display: none;
    }

    .closingwords {
        font-size: 32px;
    }

    .spbr {
        display: none;
    }

}
}

@keyframes fadeup {
    to {
        opacity: 1;
        transform: translate(-50%,0);
    }
}

@keyframes rotate {
    0% { rotate:(0deg); transform: translate(0,0);}
    50% { rotate:(180deg); transform: translate(5%,5%);}
    100% { rotate:(360deg); transform: translate(0,0);}
}
