/* ----- MV ----- */
.mv {
    background-color: #F2F1EC;
    padding-top: 25px;
    position: relative;
}

.mv__inner {
    position: relative;
    width: 85.1%;
    margin-left: auto;
}

/* slideshow */
.mv__slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 1838 / 1005;
    margin: 0;
    padding: 0;
    list-style: none;
    border-radius: 25px 0 0 25px;
    overflow: hidden;
}

.mv__slideshow li {
    position: absolute;
    inset: 0;
    display: none;
}

.mv__slideshow li img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mv__slideshow li:first-child {
    display: block;
}

.mv__copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #003570;
    font-weight: 600;
    font-family: "Lora", serif;
    font-size: 3.5vw;
    position: absolute;
    z-index: 2;
    top: 7vw;
    left: -11vw;
}

.mv__copy span {
    display: inline-block;
    background: #ffffff;
    padding: 0 2.1vw;
    margin-bottom: 0.6vw;
}

.mv__wave-right {
    position: absolute;
    top: -4.2vw;
    left: 17.1vw;
    width: 22.9vw;
    z-index: -1;
}

.mv__wave-left {
    position: absolute;
    top: 15.9vw;
    left: -8.1vw;
    width: 22.9vw;
    z-index: -1;
}

.mv__cloud {
    position: absolute;
    top: 22.8vw;
    left: 8.2vw;
    width: 10.3vw;
    z-index: 2;
}

/* ----- about ----- */
.about {
    padding-top: 25px;
}

.about__inner {
    max-width: 1380px;
    width: calc(100% - 60px);
    margin: 0 auto;
    padding: 69px 91px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(30px, 4vw, 60px);

    background-image: url("/image/image_bg-about.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-sizing: border-box;

    border-radius: 30px;
    overflow: hidden;
}

.about__content {
    width: 100%;
    max-width: 650px;
    position: relative;
    z-index: 1;
}

.about__title {
    margin-bottom: clamp(20px, 3vw, 42px);
    color: #003570;
    font-size: clamp(20px, 2.2vw, 32px);
    font-weight: 700;
    font-family: "Lora", serif;
    line-height: 1.64;

    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.about__title.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.about__text {
    margin: 0 0 20px;
}

.about__text:last-child {
    margin-bottom: 0;
}

.about__images {
    width: 100%;
    max-width: clamp(340px, 33vw, 479px);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.about__img-group {
    display: block;
    width: 100%;
    height: auto;
}

.about__deco-janome {
    position: absolute;
    top: 4px;
    left: 15px;
    width: clamp(190px, 19vw, 272px);
    z-index: -1;
}


/* ----- flow ----- */
.flow {
    padding: 50px 0;
    overflow: hidden;
}

.flow__list {
    position: relative;
}

.flow__item {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    position: relative;
    width: 400px;
    height: 400px;
    background-color: #ffffff;
    border-radius: 50%;
    flex-shrink: 0;
}

.flow__row {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 39px;
    flex-wrap: nowrap;
}

.flow__number {
    font-size: 30px;
    font-weight: 500;
    font-family: "Lora", serif;
    color: #003570;
    text-align: center;
    border-bottom: 1.5px solid #003570;
    width: 44px;
    margin: 0 auto;
}

.flow__heading {
    font-size: 20px;
    font-weight: 700;
    font-family: "Lora", serif;
    color: #003570;
    margin: 5px 0 8px;
}

.flow__icon-circle {
    width: 34%;
    margin: 0 auto 8px;
}

/* フローの装飾 */
.flow__deco {
    position: absolute;
    z-index: -1;
}

.flow__deco--cloud1 {
    width: 149px;
    top: 358px;
    left: 6px;
}

.flow__deco--cloud2 {
    width: 184px;
    top: 250px;
    right: -216px;
}

.flow__deco--wave1 {
    width: 432px;
    top: 170px;
    left: -359px;
}

.flow__deco--wave2 {
    width: 290px;
    top: 297px;
    right: -113px;
}

/* フローのボタン */
.flow__button-wrap {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}


/* ----- Features ----- */
.features {
    background-image: url("/image/image_bg-features.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 60px 0;
}

.features__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.features-card {
    text-align: center;
}

.features-card__text {
    text-align: left;
    margin-top: 20px;
}

.features-card__image {
    margin-top: 30px;
    border-radius: 20px;
    overflow: hidden;
}

.features-card__image img {
    width: 100%;
    height: auto;
}

.features-card__title {
    width: 100%;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
    font-family: "Lora", serif;
    color: #ffffff;
    background-color: #003570;
    font-weight: 600;
}


/* ----- Review ----- */
.review {
    padding-top: 50px;
}

.review__list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.review-card {
    display: flex;
    align-items: center;
    min-height: 290px;
    padding: 0 74px;
    background-color: #fff;
    border-radius: 20px;
    gap: 47px;
}

.review-card__title {
    font-family: "Lora", serif;
    color: #003570;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.review-card__icon {
    width: 135px;
    height: auto;
    flex-shrink: 0;
}

.review__button-wrap {
    text-align: center;
    margin-top: 40px;
}

/* ----- gallery ----- */
.gallery {
    overflow: hidden;
    padding: 70px 0;
}

.gallery__track {
    display: flex;
    gap: 10px;
    width: max-content;
    animation: infinity-scroll-left 40s linear infinite;
}

.gallery__track img {
    flex-shrink: 0;
    width: 400px;
    border-radius: 20px;
}

@keyframes infinity-scroll-left {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

}

/* ----- Instagram ----- */

.instagram {
    position: relative;
    padding: 70px 0;
    overflow: hidden;
}

.instagram__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 330px;
    background-color: #ffffff;
    z-index: 0;
}

.instagram .inner--small {
    position: relative;
    z-index: 1;
}

.instagram__body {
    position: relative;
}

.instagram__photos {
    display: flex;
    gap: 30px;
    z-index: 1;
}

.instagram__photo-wrap {
    position: relative;
    flex: 1;
}

.instagram__photo-wrap img:not(.instagram__deco) {
    display: block;
    width: 100%;
    border-radius: 10px;
}

.instagram__deco {
    position: absolute;
    width: 432px;
    z-index: -1;
}

.instagram__deco--left {
    bottom: -78px;
    left: -260px;
}

.instagram__deco--right {
    top: -120px;
    right: -200px;
}

.instagram__button-wrap {
    text-align: center;
    margin-top: 39px;
}



/* ================================================
タブレット（〜1200px）
================================================ */
@media (max-width: 1200px) {

    /* ----- MV ----- */
    .mv__copy {
        font-size: 3.5vw;
        top: 6.9vw;
        left: -11.4vw;
    }

    .mv__wave-left {
        top: 16.2vw;
        left: -8vw;
    }

    .mv__wave-right {
        top: -4.2vw;
        left: 17.2vw;
    }

    .mv__cloud {
        top: 22.8vw;
        left: 7.8vw;
    }

    /* ----- About ----- */

    .about__inner {
        flex-direction: row;
        align-items: center;
        padding: 45px 45px;
        max-width: 1000px;
    }

    .about__title {
        font-size: 25px;
        margin-bottom: clamp(12px, 1.8vw, 20px);
    }

    .about__title br {
        display: none;
    }

    .about__content {
        max-width: 100%;
    }

    .about__images {
        max-width: 340px;
        flex-shrink: 0;
    }

    .about__deco-janome {
        width: 55%;
    }


    /* ----- Flow ----- */

    .flow .inner {
        max-width: 750px;
    }

    /* flow__listをグリッドに、flow__rowを無効化 */
    .flow__list {
        display: grid;
        grid-template-columns: repeat(2, auto);
        justify-content: center;
        gap: 24px;
        position: relative;
    }

    .flow__row {
        display: contents;
    }

    .flow__item--last {
        grid-column: 1 / -1;
        justify-self: center;
        margin-top: -48px;
        /* 見た目の余白が大きいため調節 */
    }

    .flow__button-wrap {
        grid-column: 1 / -1;
        display: flex;
        justify-content: center;
        margin-top: 24px;
    }

    .flow__item {
        position: relative;
        width: min(350px, 44vw);
        height: min(350px, 44vw);
        padding-top: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .flow__number {
        font-size: 24px;
        width: 36px;
    }

    .flow__heading {
        font-size: 18px;
        margin: 4px 0 8px;
    }

    .flow__text {
        font-size: 15px;
        line-height: 1.6;
        padding: 0 16px;
    }

    .flow__deco {
        display: block;
        z-index: -1;
    }

    .flow__deco--cloud1 {
        width: 130px;
        top: 280px;
        left: -50px;

    }

    .flow__deco--cloud2 {
        width: 160px;
        top: -10px;
        right: -240px;
    }

    .flow__deco--wave1 {
        width: 300px;
        top: auto;
        bottom: -150px;
        left: -430px;
    }

    .flow__deco--wave2 {
        width: 220px;
        top: -110px;
        right: -470px;
    }


    /* ----- Features ----- */
    .features {
        overflow: hidden;
    }

    .features__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px 28px;
    }

    .features-card__image {
        margin-top: 20px;
    }


    /* ----- Review ----- */

    .review-card {
        padding: 28px 40px;
        gap: 30px;
    }

    .gallery {
        overflow: hidden;
        padding: 50px 0;
    }


    /* ----- Instagram ----- */

    .instagram__photos {
        gap: 16px;
    }

    .instagram__deco {
        width: 30vw;
    }

    .instagram__deco--left {
        left: -8vw;
        bottom: -8vw;
    }

    .instagram__deco--right {
        right: -8vw;
        top: -8vw;
    }
}



/* ================================================
スマホ（〜730px）
================================================ */
@media (max-width: 730px) {

    html {
        overflow-x: hidden;
    }

    body {
        overflow-x: hidden;
        font-size: 16px;
    }

    /* ----- MV ----- */
    .mv {
        background-color: transparent;
        padding-top: 0px;
    }

    .mv__inner {
        width: 100%;
        margin-left: 0px;
    }

    .mv__slideshow {
        border-radius: 0;
        aspect-ratio: 375 / 408;
    }

    .mv__slideshow li img {
        object-position: center top;
    }

    .mv__copy {
        font-size: 8vw;
        top: 72vw;
        left: 8.3vw;
    }

    .mv__copy span {
        padding: 0 4.8vw;
        margin-bottom: 1.6vw;
    }

    .mv__wave-right {
        width: 53.3vw;
        top: -9.6vw;
        left: 40.8vw;
    }

    .mv__wave-left {
        width: 53.3vw;
        top: 36.5vw;
        left: -20.8vw
    }

    .mv__cloud {
        width: 24vw;
        top: 51.7vw;
        left: 20vw;
    }


    /* ----- About ----- */
    .about {
        padding-top: 0;
    }

    .about__inner {
        flex-direction: column;
        align-items: center;
        padding: 40px 7.3%;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        background-image: url("/image/image_bg-about-sp.webp");
    }

    .about__content {
        width: 100%;
        margin: 0 auto;
        padding-top: 20vw;
    }

    .about__images {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .about__title {
        font-size: clamp(23px, 6.13vw, 25px);
        margin-bottom: 4.5vw;
    }

    .about__text {
        margin-bottom: 4vw;
    }


    /* ----- Flow ----- */

    .flow {
        padding: 35px 0 45px;
    }

    .flow .section-title__icon {
        width: 42px;
    }


    .flow .section-title__text {
        max-width: 8em;
        text-align: center;
        line-height: 1.22;
    }

    .flow__list {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 20px;
    }

    .flow__item {
        width: min(320px, 88vw);
        height: min(320px, 88vw);
    }

    .flow__icon-circle {
        width: 100px;
    }

    .flow__item--last {
        grid-column: 1;
        margin-top: 0;
    }

    .flow__number {
        font-size: 24px;
        margin-top: -15px;
    }

    .flow__heading {
        margin: 4px 0 4px;
    }

    .flow__deco--cloud1 {
        width: 107px;
        top: 280px;
        left: 0px;
    }

    .flow__deco--wave2 {
        width: 206px;
        top: -100px;
        right: -70px;
    }

    .flow__deco--wave1 {
        width: 311px;
        top: -20px;
        bottom: auto;
        left: -155px;
    }

    .flow__deco--cloud2 {
        width: 124px;
        top: -13px;
        left: 190px;

    }

    .flow__button-wrap {
        margin-top: 0;
    }


    /* ----- Features ----- */
    .features {
        background-image: url("/image/image_bg-features-sp.webp");
        padding: 40px 0;
    }

    .features .section-title__icon {
        width: 30px;
    }

    .features__list {
        grid-template-columns: 1fr;
        gap: 33px;
    }

    .features-card__image {
        margin: 10px auto 0;
        border-radius: 10px;
    }

    .features-card__title {
        min-height: 40px;
        margin: 0 auto;
        font-size: clamp(16px, 4.53vw, 18px);
    }

    .features-card__text {
        margin: 5px auto 0;
    }


    /* ----- Review ----- */

    .review {
        padding-top: 35px;
    }

    .review .section-title__icon {
        width: 35px;
    }

    .review-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 23px;
        gap: 15px;
    }

    .review-card__title {
        font-size: 18px;
        text-align: center;
        margin-bottom: 10px;

    }

    .review-card__text {
        text-align: left;
        line-height: 2;
        padding: 0 6px;
    }

    .review__button-wrap {
        margin-top: 30px;
    }

    .review__list {
        gap: 25px;
    }

    .review-card__icon {
        width: 90px;
    }

    .review-card:nth-child(3) {
        display: none;
        /* SPのみ3つ目省略 */
    }


    /* ----- Gallery ----- */
    .gallery__track img {
        width: 64.8vw;
    }

    /* ----- Instagram 消す----- */
    .instagram {
        display: none;
    }

}


@media (max-width: 320px) {
    .flow__text {
        font-size: 14px;
    }

    .flow__icon-circle {
        width: 80px;
    }
}