#top-view::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: url(../images/top/baby-top-image.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px);
    animation: unblurBackground 2.5s 1s forwards;
    border-radius: 0 0 60px 60px;
}

#top-view {
    position: relative;
    width: 100%;
    height: 917px;
    /* background-image is now on ::before pseudo-element */
    overflow-x: hidden;
}

#top-view.blur {
    filter: blur(20px);
}

.pc-break {
    display: block;
}

.glasses-art-img {
    position: absolute;
    left: -8%;
    z-index: 2;
}

.flower-art-img {
    position: absolute;
    left: 32%;
    transform: translateX(-50%);
    top: -18%;
    z-index: 2;
}

.doodle-red-img {
    position: absolute;
    right: -10%;
    top: 40%;
    transform: translateY(-50%);
    z-index: 2;
}


.top-view-middle {
    position: absolute;
    width: 100%;
    bottom: 30%;
    z-index: 2;
    color: #F5F5F5;
    padding: 0 2rem;
    font-weight: 600;
    font-size: 20px;
    line-height: 80%;
    font-style: SemiBold;
}

.top-view-middle-text {
    font-weight: bold;
    font-size: 20px;
    line-height: 80%;
}

.top-view-middle-text-2 {
  margin-top: 20px;  
} 

.top-view-middle>span:nth-child(3) {
    width: 15%;
}

.top-view-bottom>span>a {
    border-bottom: 1px solid #3A3A3A;
}

.top-view-bottom .bold {
    font-weight: bold;
    font-family: 'Chopin-Trial';
    font-size: 15px;
    display: inline-block;
}

.top-view-bottom>span>img {
    transform: translateY(3.5px);
    margin-left: 5px;
}

.top-view-bottom {
    text-align: end;
    z-index: 2;
    position: absolute;
    bottom: 10%;
    right: 2rem;
}

.top-view-bottom span:not(.bold) {
    background-color: #FDF0F2;
    padding: 12px 30px;
    border-radius: 80px;
    color: #3A3A3A;
    font-family: "Noto Sans JP"!important;
    font-weight: 400;
    font-size: 14px;
    line-height: 80%;
    letter-spacing: 0%;
}

/* スクラッチエフェクト */
#scratch-container {
    margin: 48px 40px 0;
    /* height: 100%; */
    overflow: hidden;
}

#scratch-container video {
    width: 100%;
    height: 720px;
    object-fit: cover;
    border-radius: 1rem;
}

.scratch-bg-txt {
    margin-top: 24px;
    margin-left: 32px;
    font-size: 18px;
    line-height: 180%;
    font-weight: 700;
    color: #3A3A3A;
    font-family: "HigureGothic";
}

.scratch-bg-txt>p {
    letter-spacing: -40%;
}

.scratch-video-wrapper {
    position: relative;
}

.play-video-btn {
    position: absolute;
    bottom: 24px;
    right: 24px;
    cursor: pointer;
}

/* about-babyraku */
#about-babyraku {
    background-color: #FDF0F2;
    border-radius: 40px;
    margin: 85px 1rem 0;
    padding: 40px 32px 160px;
    overflow-x: hidden;
}

#about-babyraku>.about-inner {
    display: flex;
    gap: 124px;
    font-size: 0.9rem;
}

.about-inner-left {
    order: 2;
}

.about-inner-right {
    order: 1;
}

#about-babyraku>.about-inner>* {
    flex: 1;
}

#about-babyraku p:not(:first-child) {
    margin-top: 32px;
}

#about-babyraku h2 {
    font-weight: 600;
    font-size: 28px;
    color: #3A3A3A;
}

.about-inner-left .content {
    margin-top: 50px;
}

.about-inner-left .content h4 {
    font-weight: 600;
    font-size: 28px;
    color: #3A3A3A;
}

.about-inner-left .content .indent {
    display: block;
    text-align: end;
    padding-right: 2rem;
}

.about-inner-left .content>p {
    color: #3A3A3A4D;
    font-size: 20px;
    opacity: 0.7;
    line-height: 120%;
    font-weight: 500;
}

.about-inner-right {
    padding-right: 4rem;
    font-family: "HigureGothic";
    margin-top: 60px;
}

.about-inner-right>p {
    font-weight: 700;
    line-height: 180%;
}

.about-inner-right>div {
    margin-top: 85px;
}

.about-babyraku-wrapper {
    position: relative;
    display: inline-block;
    margin-top: 56px;
}

.about-babyraku-img {
    width: 100%;
    position: relative;
    z-index: 2;
}

.doodle-purple-img {
    position: absolute;
    left: -50%;
    top: 10%;
    width: 70%;
    z-index: 1;
    height: auto;
    pointer-events: none;
}

.doodle-circle-yellow-img {
    position: absolute;
    top: 50%;
    width: 40%;
    transform: translateY(-50%);
    right: -20%;
    z-index: 3;
}

/* メッセージセクション */
#message-section {
    height: 100vh;
}

.message-title {
    display: flex;
    gap: 80px;
}

.message-title>* {
    flex: 1;
}

.message-title>.right-block {
    display: inline-block;
    padding-left: 5rem;
    color: #3A3A3A
}

.message-title h2 {
    font-weight: 600;
}

.message-title h3 {
    margin-top: 20px;
    font-size: 32px;
    margin-top: 3rem;
    line-height: 180%;
    font-weight: 700;
    font-family: "HigureGothic";
}

.carousel-area {
    display: flex;
    padding-left: 40px;
}

.carousel-message {
    font-weight: 700;
    margin-right: 2rem;
    margin-left: 2rem;
}

.carousel-message>p {
    line-height: 180%;
}

.carousel-message p:not(:first-child) {
    margin-top: 40px;
}

#carousel-container {
    flex: 3;
    width: 80%;
    padding: 137px 20px 0 0;
    overflow: hidden;
}

#carousel-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

#carousel-track {
    transition: none;
    position: relative;
    height: 100%;
    width: 100%;
    white-space: nowrap;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.carousel-item {
    display: inline-block;
    margin-right: 10px;
    box-sizing: border-box;
    white-space: normal;
}

.carousel-item img {
    max-width: 100%;
    width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-item.stacked {
    box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.2);
}

.message-img-drag {
    display: flex;
    align-items: end;
    justify-content: center;
    padding-right: 24rem;
}

#message-drag {
    cursor: pointer;
    user-select: none;
}

#message-drag:hover {
    opacity: 0.7;
}

/* プロフェッショナルセクション */
#professionals-section {
    background: #F4B0B7;
    border-radius: 40px;
    padding: 1.5rem 85px 1.5rem;
    margin: 160px 1rem 0 1rem;
    box-sizing: border-box;
    color: #C1646F;
}

.professionals-title {
    font-weight: 600;
}

.professionals-inner {
    display: flex;
    align-items: flex-start;
    gap: 80px;
}

.profiles {
    flex: 1;
    display: flex;
    align-items: start;
    flex-direction: column-reverse;
}

.profiles > .profile {
    display: flex;
    margin-top: 32px;
    gap: 32px;
}

#professionals-section .message-area {
    flex: 1;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.profile-info {
    line-height: 1.6rem;
    margin: auto 0;
    padding-bottom: 20px;
}

.profile-role {
    font-size: 0.9rem;
    font-weight: bold;
}

.profile-eg-name {
    font-size: 24px;
    font-weight: 600;
    margin: 10px 0 8px;
}

.profile-name {
    font-size: 12px;
    font-weight: bold;
}

.professionals-message > h4 {
    margin: 20px 0;
    font-size: 18px;
    font-weight: 700;
}

.professionals-message > p {
    font-size: 16px;
    line-height: 180%;
    font-weight: 500;
}

/* プロダクトセクション */
#product-section {
    margin: 1rem 1rem 0;
}

.airseat-area {
    position: relative;
    background-image: url(/images/top/airseat.png);
    background-size: cover;
    height: 510px;
    background-repeat: no-repeat;
    border-radius: 40px;
    background-position: center;
    color: #FFFFFF;
}

.airseat-area,
.murenaine-area {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.airseat-area:hover,
.murenaine-area:hover {
    opacity: 0.7;
    cursor: pointer;
    transform: scale(1.05);
}

.airseat-name-area {
    position: absolute;
    top: 0;
    height: 100%;
    padding: 6rem 0 1rem 0;
    left: 2.5rem;
}

.airseat-name-area>p {
    font-weight: bold;
}

.airseat-name-area>p:last-child {
    margin-top: 10px;
    font-weight: 700;
}

.airseat-name-area>h2 {
    font-size: 3rem;
    font-weight: 600;
    line-height: 80%;
    margin-top: 10px;
}

.airseat-name-area>p:last-child {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.airseat-info-area {
    position: absolute;
    right: 5%;
    padding: 6rem 0 1rem 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.8rem;
}

.airseat-info-area>.hashtag {
    font-weight: bold;
}


.airseat-info-area>.hashtag>li:not(:first-child) {
    margin-top: 0.5rem;
}

.airseat-info-area>div {
    text-align: start;
}

.airseat-info-area>div>p {
    font-weight: 700;
}

.airseat-info-area img {
    height: 120px;
    width: 120px;
    transform: translate(-0.5rem, -1rem);
}

.murenaine-area {
    background-image: url(/images/top/murenaine.png);
    background-size: cover;
    background-position: center;
    height: 510px;
    position: relative;
    background-repeat: no-repeat;
    margin-top: 1rem;
    border-radius: 40px;
}

.murenaine-info-area {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    right: 9%;
    width: 30%;
    height: 100%;
    padding-top: 4rem;
    padding-bottom: 32px;
}

.murenaine-name-area>*:not(:last-child) {
    color: #3A3A3A;
}

.murenaine-name-area p:first-child {
    font-weight: bold;
}

.murenaine-name-area>h2 {
    margin-top: 10px;
    font-size: 56px;
    font-weight: 600;
    line-height: 80%;
}

.murenaine-name-area>.description {
    font-size: 14px;
    margin-top: 16px;
    line-height: 80%;
    font-weight: 700;
}

.murenaine-name-area>img {
    margin: 1rem 0;
    display: block;
    width: 92px;
    height: 24px;
    margin: 32px 0 24px;
}

.murenaine-name-area>span {
    font-weight: 400;
    font-size: 10px;
    letter-spacing: 2%;
    color: #3A3A3A80;
    white-space: nowrap;
}

.murenaine-info-area>.hashtag {
    font-size: 0.7rem;
    line-height: 1.5rem;
    position: relative;
    font-weight: bold;
}

.murenaine-info-area>.hashtag>div {
    position: absolute;
    right: 25%;
    font-weight: 700;
    font-size: 12px;
    color: #3A3A3A;
}

/* ニュースセクション */
#news-section {
    margin: 8rem 1rem;
}

#news-section>h2 {
    font-weight: 600;
    font-size: 28px;
}

.news-card-wrapper {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.news-card {
    display: flex;
    flex-direction: column;
    border-radius: 40px;
    padding: 1.5rem;
    transition: background-color 0.2s;
    cursor: default;
    color: #3A3A3A;
}

.news-card img {
    border-radius: 10px;
}

.news-content>.more img {
    padding-left: 9px;
}

.news-card>a {
    display: contents;
}

/* Hover effect for news-card */
.news-card:hover {
    background-color: #F4B0B7;
    color: #C1646F !important;
    cursor: pointer;
}

.news-card:hover .more img {
    content: url('/images/top/arrow-top-right.svg');
}

.news-card>img {
    border-radius: 10px;
}

.news-content>.more {
    font-weight: 600;
    font-size: 12px;
    line-height: 80%;
    letter-spacing: 0%;
    text-transform: uppercase;
    text-decoration: underline!important;
    text-decoration-style: solid!important;
    text-align: end;
}

.more>img {
    transform: translateY(4px);
}

.news-content {
    padding: 5px 0;
}

.news-content>.day {
    margin-top: 1rem;
    font-weight: 600;
}

.news-content>.title {
    font-size: 1.2rem;
    margin-top: 20px;
    font-weight: bold;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    height: 62px;
    overflow: hidden;
    line-height: 120%;
    font-family: "HigureGothic";
}

.news-content>.description {
    font-size: 0.8rem;
    margin-top: 26px;
    font-weight: 500;
    line-height: 140%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
}


.netshop img:not(:last-child) {
    margin-right: 1rem;
}

@media (max-width: 768px) {
    .pc-break {
        display: inline;
    }

    .sp-break {
        display: block;
    }

    #about-babyraku {
        margin: 0;
        overflow: hidden;
    }

    #about-babyraku>.about-inner {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .about-inner-right {
        order: 1;
    }

    .about-inner-left {
        order: 2;
    }

    #top-view {
        height: 830px;
    }

    .pc-break {
        display: inline;
    }

    .sp-break {
        display: block;
    }

    /* トップビュー */
    #top-view::before {
        background-image: url(/images/top/baby-top-image-sp.png);
        background-position: 100% 100%;
    }

    .top-view-middle {
        bottom: 320px;
        padding: 0 1rem;
        font-size: 12px;
        white-space: nowrap;
    }

    .top-view-middle-text {
        font-size: 15px;
        letter-spacing: -0.8px;
    }

    .top-view-middle-text-2 {
        margin-top: 12px;
    }

    .top-view-bottom {
        bottom: 36px;
        right: 10%;
    }

    .top-view-middle>span:nth-child(3) {
        display: none;
    }


    .glasses-art-img {
        left: -40%;
        top: -2%;
        transform: scale(0.5);
    }

    .flower-art-img {
        left: -12%;
        top: -24%;
        transform: scale(0.5);
    }

    .doodle-red-img {
        right: -40%;
        transform: scale(0.7);
    }


    /* BABY楽について */
    #about-babyraku {
        padding: 40px 1rem 244px;
    }

    #about-babyraku h2 {
        font-size: 16px;
        color: #3A3A3A;
        line-height: 80%;
    }

    #about-babyraku h4 {
        font-size: 28px;
        color: #3A3A3A;
        line-height: 80%;
    }

    #about-babyraku p {
        margin-top: 32px;
    }

    .about-inner-right {
        padding: 0;
        font-size: 14px;
        color: #3A3A3A;
        font-weight: bold;
        margin-top: 24px;
    }

    .about-inner-right>p {
        font-size: 14px;
    }

    .about-inner-right>p:first-child {
        margin-top: 0 !important;
    }

    .about-inner-left .content {
        margin-top: 47px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 9;
        overflow: hidden;
    }

    .about-inner-left .content>p:first-child {
        font-size: 20px;
        color: #D6CCCD;
    }

    .about-babyraku-wrapper {
        margin-top: 20px !important;
    }

    .about-babyraku-img {
        width: 100%;
        border-radius: 24px;
        margin-top: 40px;
    }

    .doodle-circle-yellow-img {
        top: 30%;
        right: -12%;
    }

    .doodle-purple-img {
        top: 55%;
        left: -35%;
        transform: scale(0.7);
    }

    
    #scratch-container video {
        height: 192px;
        border-radius: 20px;
    }

    #scratch-container {
        margin: 48px 16px;
    }

    .scratch-bg-txt {
        font-size: 14px;
        margin: 20px 0; 
    }

    .play-video-btn {
        right: 12px;
        bottom: 12px;
    }

    .close-video-btn {
        width: 60px!important;
        height: 60px!important;
        top: 42%!important;
        transform: translateY(-50%)!important;
        right: 20px!important;
        background-size: contain!important;
        background-repeat: no-repeat!important;
        margin-right: 12px;
    }

    /* メッセージ セクション */
    #message-section {
        height: auto;
    }

    .message-title {
        flex-direction: column;
        gap: 10px;
    }

    .message-title h2 {
        margin-top: 32px;
        font-size: 16px;
        color: #3A3A3A;
    }

    .message-title h3 {
        font-size: 22px;
        font-weight: bold;
        color: #3A3A3A;
        margin-top: 24px;
    }

    .message-title>.right-block {
        padding-left: 1rem;
    }

    .carousel-area {
        flex-direction: column;
        display: flex;
        margin-top: 48px;
        padding-left: 1rem;
    }

    .break {
        display: block;
    }

    .carousel-message {
        font-weight: bold;
        font-size: 14px;
        color: #3A3A3A;
        margin: 0 1rem 0 0;
    }

    .carousel-message>p:first-child {
        margin-top: 0 !important;
    }

    .carousel-message p:not(:first-child) {
        margin-top: 24px;
    }

    .carousel-item img {
        width: 100%;
        height: auto;
        display: block;
        margin-left: 0;
        border-radius: 24px;
    }

    #carousel-container {
        flex: 0;
        padding: 80px 0 160px;
        width: 100%;
    }

    .message-img-drag {
        position: absolute;
        bottom: 5%;
        padding-right: 0;
        right: 10%;
        z-index: 1;
    }

    /* プロフェッショナルセクション */
    .professionals-inner {
        display: block;
    }

    #professionals-section {
        margin: 0;
        border-radius: 24px;
        padding: 24px 1rem 32px;
    }

    #professionals-section .message-area {
        padding-left: 0;
        margin-top: 1rem;
    }

    .professionals-title {
        font-size: 16px;
    }

    .profiles > .profile {
        margin-top: 16px
    }

    .profile-eg-name {
        font-size: 20px;
        margin: 8px 0 12px;
        line-height: 80%;
    }

    .profile-img {
        width: 120px;
        height: 120px;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        image-rendering: pixelated;
    }

    .professionals-message > h4 {
        font-size: 16px;
    }

    .professionals-message > p {
        font-size: 16px;
    }

    .message-block>img {
        transform: scale(0.9);
    }

    .professionals-message {
        font-size: 18px;
        margin: 24px 0;
        font-weight: bold;
    }

    .profiles {
        justify-content: space-between;
    }

    /* プロダクトセクション */
    #product-section {
        overflow: hidden;
        margin: 0;
    }

    .airseat-area {
        margin: 20px 0 0;
        height: 406px;
        background-position: 65% center;
        border-radius: 24px;
        background-image: url(/images/top/airseat-sp.png);
    }

    .airseat-info-area>.hashtag {
        font-size: 10px;
    }

    .airseat-name-area {
        height: auto;
        position: initial;
        padding: 40px 0 0 16px;
    }

    .airseat-name-area>h2 {
        font-size: 48px;
        line-height: 80%;
        margin-top: 10px;
    }

    .airseat-info-area {
        display: flex;
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: space-between;
        align-items: end;
        position: initial;
        padding: 115px 0 0 16px;
    }

    .airseat-info-area>.hashtag>li:not(:first-child) {
        margin-top: 10px;
    }

    .airseat-area,
    .murenaine-area {
        pointer-events: none;
    }

    .airseat-info-area img {
        height: 80px;
        width: 80px;
    }

    .airseat-name-area>p:last-child {
        margin-top: 16px;
        font-size: 12px;
    }

    .airseat-info-area>div {
        padding-right: 1rem;
        text-align: end;
        font-size: 10px;
        font-weight: bold;
    }

    .murenaine-name-area {
        height: 100%;
    }

    .murenaine-name-area>img {
        padding-top: 165px;
        width: 25%;
        margin: 0;
    }

    .murenaine-name-area>span {
        font-size: 10px;
        line-height: 110%!important;
        display: inline-block;
        margin-top: 20px;
    }

    .murenaine-info-area {
        position: initial;
        width: 100%;
        height: 100%;
        padding: 40px 0 0 16px;
    }

    .murenaine-info-area>.hashtag {
        position: absolute;
        bottom: 63px;
        right: 71px;
    }

    .murenaine-info-area>.hashtag>div {
        position: initial;
    }

    .murenaine-area {
        height: 406px;
        margin-top: 20px;
        color: #3A3A3A;
        background-image: url(/images/top/murenaine-sp.svg);
        background-position: 40% 0%;
        background-size: cover;
    }

    .murenaine-name-area>h2 {
        font-size: 48px;
    }
    

    .murenaine-name-area>*:not(:last-child) {
        font-weight: bold;
        height: auto;
    }

    /* ニュースセクション */
    #news-section {
        margin: 72px 1rem;
    }

    #news-section>h2 {
        font-size: 16px;
        color: #3A3A3A;
    }

    .news-card-wrapper {
        display: block;
        padding-left: 0;
    }

    .news-card {
        max-width: 100%;
    }

    .news-card:first-child {
        margin-top: 24px;
    }

    .news-content>.more>a {
        font-weight: 600;
    }

    .news-content>.more img {
        padding-left: 6px;
    }

    .news-content>.more {
        font-weight: 600;
    }

    .news-content>.title {
        margin-top: 16px;
        height: auto;
    }

    .news-content>.description {
        margin-top: 16px;
    }

}

.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center
}

.video-modal.active {
    display: flex;
}

#fullscreen-video {
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.close-video-btn {
    position: absolute;
    top: 40%;
    right: 20%;
    width: 128px;
    height: 128px;
    cursor: pointer;
    border: none;
    background-color: initial;
    background-image: url(/images/top/scratch-cursor-close.png);
}

.close-video-btn:hover {
    opacity: 0.7;
}