/* ========== fv ========== */
.top__fv {
    position: relative;
    height: 80rem;
}

.top__fv--txt {
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    line-height: 1.5;
    top: 5%;
    left: 5%;
}

.top__fv__img-item {
    position: absolute;
    overflow: hidden;
    border-radius: 10px;
}


/* 各画像ブロック個別設定 */
/* 各画像ブロック個別設定 */
.js-top__fv__img-item-01 {
    width: 39%;
    height: 33%;
    top: 63%;
    left: -1%;
}

.js-top__fv__img-item-02 {
    width: 70%;
    height: 43%;
    top: 18%;
    left: 10%;
}

.js-top__fv__img-item-03 {
    width: 58%;
    height: 24%;
    top: 55%;
    right: -1%;
    z-index: 10;
}

.js-top__fv__img-slide {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.js-top__fv__img-slide.active {
    z-index: 3;
    opacity: 0;
}

.js-top__fv__img-slide.is-ready {
    z-index: 2;
    opacity: 1;
}

.js-top__fv__img-slide img {
    width: 100%;
    height: 100%;
    animation: scaleUp 5s ease forwards;
    object-fit: cover;
    display: block;
    transform: scale(1);
    /* mask */
    mask-image: url(../img/top/top__fv__mask.png);
    mask-size: 300% 10%;
    mask-position: 100% 0%;
    -webkit-mask-image: url(../img/top/top__fv__mask.png);
    -webkit-mask-size: 300% 10%;
    -webkit-mask-position: 100% 0%;
    /* transition */
    transition: 0.8s;
    transition-timing-function: cubic-bezier(.7, 0, .3, 1);
    transition-duration: 1s;
}

.js-top__fv__img-slide.active img {
    mask-position: 0% 0%;
    -webkit-mask-position: 0% 0%;
}

.js-top__fv__img-slide.is-ready img {
    animation: slowScale 4.2s ease-out forwards;
}

@keyframes slowScale {
    0% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}


/* title */
.top__fv__title {
    position: absolute;
    top: 2.5%;
    right: -0.1%;
    display: flex;
    flex-direction: row-reverse;
    width: 33%;
    z-index: 10;
    font-weight: 300;
}

.top__fv__title span {
    display: block;
    margin-bottom: 0.75rem;
}

.top__fv__title span img {
    display: block;
    transform: translateX(-20%);
    clip-path: inset(0 100% 0 0);
    /* 最初は完全にマスク */
    animation: revealChar 0.4s ease forwards,
        unblur 0.6s ease forwards 0.2s;
    filter: blur(4px);
}

.top__fv__title-first span:nth-child(1) img {
    animation-delay: 0.1s;
}

.top__fv__title-first span:nth-child(2) img {
    animation-delay: 0.2s;
}

.top__fv__title-first span:nth-child(3) img {
    animation-delay: 0.3s;
}

.top__fv__title-first span:nth-child(4) img {
    animation-delay: 0.4s;
}

.top__fv__title-first span:nth-child(5) img {
    animation-delay: 0.3s;
}

.top__fv__title-first span:nth-child(6) img {
    animation-delay: 0.2s;
}

.top__fv__title-first span:nth-child(7) img {
    animation-delay: 0.4s;
}

.top__fv__let-and {
    position: relative;
    margin-left: -1rem;
    transform: scale(0.56);
}

.top__fv__let-and img {
    position: relative;
    z-index: 1;
}

.top__fv__let-bluecircle {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 60%;
    left: 50%;
    display: inline-block;
    width: 13.5rem;
    aspect-ratio: 1/1;
    background-color: #1D2088;
    border-radius: 50%;
    transform: scale(0);
    opacity: 0;
    animation: blueCircleIn 0.4s ease-out forwards;
    animation-delay: 0.4s;
}

.top__fv__title-second {
    transform: translateX(-1.75rem);
}

.top__fv__title-second span:nth-child(1) img {
    animation-delay: 0.5s;
}

.top__fv__title-second span:nth-child(2) img {
    animation-delay: 0.4s;
}

.top__fv__title-second span:nth-child(3) img {
    animation-delay: 0.6s;
}

.top__fv__title-second span:nth-child(4) img {
    animation-delay: 0.5s;
}

.top__fv__title-second span:nth-child(5) img {
    animation-delay: 0.6s;
}

.top__fv__title-second span:nth-child(6) img {
    animation-delay: 0.4s;
}

.top__fv__scroll {
    top: 88%;
    right: -2%;
    font-size: 1rem;
    display: flex;
    color: var(--color-main);
    transform: rotate(90deg);
}

.top__fv__scroll span {
    margin-left: 1rem;
}

.top__fv__scroll span svg {
    vertical-align: baseline;
}

.top__fv__draw-line {
    stroke: #1D2088;
    stroke-width: 1;
    fill: none;
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: fvdrawLine 2s ease-in-out infinite;
}

@keyframes fvdrawLine {
    0% {
        stroke-dashoffset: 60;
        /* 線が非表示（始点から） */
    }

    50% {
        stroke-dashoffset: 0;
        /* 線が全て表示 */
    }

    100% {
        stroke-dashoffset: -60;
        /* 線が全て表示 */
    }
}

@keyframes revealChar {
    to {
        transform: translateX(0);
        clip-path: inset(0 0 0 0);
        /* マスク解除して全体表示 */
    }
}

@keyframes unblur {
    to {
        filter: blur(0);
    }
}

@keyframes blueCircleIn {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}


@media screen and (min-width: 767px) {

    .top__fv {
        height: 105.6rem;
    }

    .top__fv__title {
        width: 23%;
        top: 1%;
        right: 5%;
    }

    .top__fv__title-second {
        transform: translateX(-3.75rem);
    }

    .top__fv--txt {
        font-size: 3.8rem;
        font-weight: 300;
        letter-spacing: 0.25em;
        line-height: 1.6;
        top: 15%;
        left: 6%;
    }

    .js-top__fv__img-item-01 {
        width: 30%;
        height: 53%;
        top: 33%;
        left: 2%;
    }

    .js-top__fv__img-item-02 {
        width: 38%;
        height: 73%;
        top: 8%;
        left: 36.4%;
    }

    .js-top__fv__img-item-03 {
        width: 38%;
        height: 33%;
        top: 62.5%;
        right: 15.7%;
        z-index: 15;
    }

    .top__fv__title-first span:nth-of-type(6) {
        margin-bottom: 4rem;
    }

    .top__fv__let-and {
        position: relative;
        transform: scale(0.86);
    }

    .top__fv__let-bluecircle {
        top: 64%;
        left: 33%;
        width: 19rem;
    }

    .top__fv__scroll {
        top: 81%;
        right: 10%;
        font-size: 1.2rem;
    }

}

/* ========== concept ========== */

.top__concept {
    padding: 6.4rem 1.2rem;
    background: var(--color-main);
    color: #fff;
}

.top__concept__ttl {
    position: relative;
    width: 35%;
    z-index: 2;
}

.top__concept__slide {
    margin-top: -3rem;
}

.top__concept__txt--wrap {
    margin-top: 4rem;
    padding: 0 4rem;
}

.top__concept__txt--h3 {
    padding-bottom: 2rem;
}

@media screen and (min-width: 767px) {

    .top__concept__ttl {
        position: absolute;
        top: 12%;
    }

    .top__concept--outer {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        background: #1C208E;
    }

    .top__concept {
        max-width: 1366px;
        margin: 0 auto;
        margin-bottom: 14rem;
        padding: 4.3rem 8.3rem;
        height: initial;
        position: relative;
    }

    .top__concept__inner {
        display: flex;
        align-items: start;
    }

    .top__concept__slide {
        width: 56%;
        transform: translateY(8rem);
    }

    .top__concept__txt--wrap {
        margin-top: 0;
        padding: 0;
        padding-left: 4rem;
    }

    .top__concept__txt--h3 {
        font-size: 3.6rem;
        line-height: 1.3;
    }

    .top__concept__txt--wrap .txt__comp {
        line-height: 2.5;
    }
}

/* ========== about ========== */

.top__about__feature-wrap .button__comp {
    margin-right: -1.5rem;
}

.top__about__title {
    margin: 6rem auto;
    margin-top: 6rem;
    width: fit-content;
}

.top__about__lead {
    margin: auto;
    margin-bottom: 4rem;
    width: fit-content;
}

.top__about__feature {
    padding: 0 1rem;
}

.top__about__feature-wrap {
    padding: 2rem;
    padding-bottom: 4rem;
}

.top__about__feature-img {
    display: block;
    border-radius: 10px;
}

.top__about__feature-ttl {
    margin: 3rem 0;
    margin-top: 2rem;
}

.top__about__images {
    position: relative;
    width: 100%;
    height: 52rem;
}

.top__about__item {
    position: absolute;
    width: 30%;
    filter: blur(8px);
    opacity: 0;
    transform: translateY(20px);
}

.top__about__item-01 {
    width: 30%;
    top: 0%;
    left: 0%;
}

.top__about__item-02 {
    width: 44%;
    top: 36%;
    left: 8%;
    z-index: 1;
}

.top__about__item-03 {
    width: 65%;
    top: 7%;
    right: 0;
}

.top__about__item-04 {
    width: 29%;
    top: 64%;
    left: 0%;
}

.top__about__item-05 {
    width: 65%;
    top: 59%;
    right: 1%;
    border-radius: 10px;
}

/* アニメーション定義 */
@keyframes fadeInBlur {
    from {
        filter: blur(8px);
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        filter: blur(0px);
        opacity: 1;
        transform: translateY(0);
    }
}

/* 発火時にアニメーションを適用（delay含めてクラスにまとめる） */
.top__about__item-01.is-visible {
    animation: fadeInBlur 0.6s ease forwards;
    animation-delay: 0.4s;
}

.top__about__item-02.is-visible {
    animation: fadeInBlur 0.6s ease forwards;
    animation-delay: 0.5s;
}

.top__about__item-03.is-visible {
    animation: fadeInBlur 0.6s ease forwards;
    animation-delay: 0.1s;
}

.top__about__item-04.is-visible {
    animation: fadeInBlur 0.6s ease forwards;
    animation-delay: 0.2s;
}

.top__about__item-05.is-visible {
    animation: fadeInBlur 0.6s ease forwards;
    animation-delay: 0.3s;
}

@media screen and (min-width: 767px) {
    .top__about__feature {
        display: flex;
        justify-content: center;
        padding: 0 10rem;
        column-gap: 1.2rem;
    }

    .top__about__feature--item {
        width: 33%;
    }

    .top__about__feature--item:nth-of-type(2) {
        margin-top: 9rem;
    }

    .top__about__feature--item:nth-of-type(3) {
        margin-top: 18rem;
    }

    .top__about__images {
        height: 74rem;
    }

    .top__about__item-01 {
        width: 20%;
        top: 0%;
        left: 0%;
    }

    .top__about__item-02 {
        width: 25%;
        top: 61%;
        left: 8%;
        z-index: 1;
    }

    .top__about__item-03 {
        width: 48%;
        top: 27%;
        right: 28%;
    }

    .top__about__item-04 {
        width: 16%;
        top: 51%;
        left: initial;
        right: 10%;
    }

    .top__about__item-05 {
        width: 22%;
        top: 17%;
        right: 0%;
        border-radius: 10px;
    }
}


/* ========== news ========== */
.top__news {
    padding: 6rem 1.2rem;
}


/* Grid Container */
.top__news-grid {
    display: grid;
    grid-template-areas:
        "title"
        "list"
        "button";
    gap: 30px;
    max-width: 40rem;
    margin: 0 auto;
}

.top__news-grid .button__comp {
    transform: translateX(1.3rem);
}

/* Grid Items */
.top__news-title {
    grid-area: title;
}

.top__news-title img {
    width: 12rem;
    height: auto;
}

.top__news-list {
    grid-area: list;
    list-style: none;
}

.top__news-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    justify-content: space-between;
    padding: 5rem 0;
    border-top: solid 1px #D2D2E9;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top__news-item:last-child {
    border-bottom: solid 1px #D2D2E9;
}

.top__news-text {
    width: 100%;
    word-break: break-all;
    font-weight: 400;
    /* これを追加 */
    overflow-wrap: break-word;
    /* これを追加 */
    white-space: normal;
    /* これを追加 */
    font-size: 1.2rem;
    /* 既存 */
}

.top__news-image {
    width: 18rem;
    flex-shrink: 0;
}

.top__news-image img {
    width: 100%;
    max-height: 12rem;
    object-fit: cover;
    border-radius: 8px;
}

.top__news-date {
    margin-top: 1rem;
    color: #1C208E;
    font-weight: 300;
}

.news-button {
    grid-area: button;
    justify-self: end;
}

@media (min-width: 768px) {
    .news {
        display: flex;
        /* justify-content: center; /* news 全体を中央寄せにするなら */
    }

    .top__news-grid {
        grid-template-areas:
            "title list"
            "button list";
        grid-template-columns: max-content minmax(0, 100rem);
        grid-template-rows: 5rem;
        max-width: 136.6rem;
        margin: 0 auto;
        padding-left: 4rem;
        gap: 12rem;
        row-gap: 4rem;
        align-items: start;
    }

    .top__news-title {
        width: auto;
        margin-left: unset;
        align-self: start;
    }

    .top__news-title img {
        width: 16.6rem;

    }

    .top__news-list {
        overflow: hidden;
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .top__news-item {
        width: 100%;
        display: flex;
        align-items: flex-start;
        padding: 5rem 0 5rem 3rem;
        border-top: solid 1px #D2D2E9;
        min-width: 0;
        /* flex item の縮小を許可 */
    }

    .top__news-item:last-child {
        border-bottom: solid 1px #D2D2E9;
        /* 既存 */
    }

    .top__news-item .top__news-text-wrap {
        flex-grow: 1;
        min-width: 0;
        /* テキスト側の div の縮小を許可 */
    }

    .top__news-text {
        width: 90%;
        font-size: 1.4rem;
        font-weight: 400;
        word-break: break-all;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .top__news-date {
        font-size: 1.2rem;

    }

    .top__news-image {
        width: 27rem;
        flex-shrink: 0;
    }

    .top__news-image img {
        max-height: 18rem;
        object-fit: cover;
        border-radius: 8px;
        /* 既存 */
    }

    .news-button {
        padding-right: 8rem;
    }
}