/* ==================================================
   トップページ専用CSS
================================================== */


/* ==================================================
   HERO：共通部分
================================================== */

.hero-overlay {
    background:
        linear-gradient(
            90deg,
            rgba(253, 247, 239, 0.96) 0%,
            rgba(253, 247, 239, 0.82) 42%,
            rgba(253, 247, 239, 0.26) 100%
        );
}

.hero-badge {
    position: absolute;
    right: 7%;
    bottom: 12%;
    width: 200px;
    height: 200px;
    border: 4px solid rgba(124, 198, 68, 0.22);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px rgba(140, 90, 60, 0.18);
    color: #8C5A3C;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.55;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.hero-badge span {
    color: #F7B52C;
    font-size: 28px;
}

.hero-leaf {
    position: absolute;
    left: 5%;
    top: 12%;
    width: 140px;
    height: 140px;
    border-radius: 9999px;
    background: #7CC644;
    filter: blur(1px);
    opacity: 0.16;
    z-index: 2;
}

@media (max-width: 1023px) {
    .hero-overlay {
        background: rgba(253, 247, 239, 0.9);
    }

    .hero-badge {
        display: none;
    }
}


/* ==================================================
   HERO：動画
================================================== */

.hero-video-wrap {
    height: min(620px, calc(100vh - 120px));
    min-height: 460px;
    background: #FDF7EF;
}

.hero-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1023px) {
    .hero-video-wrap {
        height: 680px;
    }
}

@media (max-width: 767px) {
    .hero-video-wrap {
        height: 620px;
        min-height: 620px;
        margin-left: 12px;
        margin-right: 12px;
    }

    .hero-video-wrap video {
        object-position: center;
    }
}


/* ==================================================
   HERO：Swiper
   現在はコメントアウト中だが、再利用できるよう残す
================================================== */

.heroSwiper {
    height: min(620px, calc(100vh - 80px));
    min-height: 460px;
}

.heroSwiper .swiper-slide {
    height: 100%;
}

.heroSwiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #8C5A3C;
    opacity: 0.35;
}

.heroSwiper .swiper-pagination-bullet-active {
    width: 32px !important;
    border-radius: 9999px !important;
    background-color: #F7B52C !important;
    opacity: 1 !important;
}

.heroSwiper .swiper-button-prev,
.heroSwiper .swiper-button-next {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(140, 90, 60, 0.18);
    color: #8C5A3C;
}

.heroSwiper .swiper-button-prev::after,
.heroSwiper .swiper-button-next::after {
    font-size: 18px;
    font-weight: bold;
}

@media (max-width: 1023px) {
    .heroSwiper {
        height: 680px;
    }
}


/* ==================================================
   ユニカレさがとは
================================================== */

.about-photo-main {
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(140, 90, 60, 0.16);
    transform: rotate(-1.5deg);
}

.about-card {
    padding: 42px 44px;
    border: 2px solid rgba(124, 198, 68, 0.24);
    border-radius: 30px;
    background: rgba(240, 250, 234, 0.94);
    box-shadow: 0 22px 48px rgba(140, 90, 60, 0.08);
}

.about-highlight {
    padding: 0 2px;
    background:
        linear-gradient(
            transparent 58%,
            rgba(247, 181, 44, 0.55) 58%
        );
    font-weight: 800;
}


/* ==================================================
   ユニカレさがとは：3つの特徴
================================================== */

.feature-photo-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(140, 90, 60, 0.10);
    border-radius: 24px;
    background: #FFFFFF;
    box-shadow: 0 18px 40px rgba(140, 90, 60, 0.08);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.feature-photo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(140, 90, 60, 0.13);
}

.feature-photo-card > img {
    width: 100%;
    height: 165px;
    object-fit: cover;
    object-position: center;
}

/* 写真下のアイコン・文字エリア */
.feature-photo-card > div {
    border-top: 1px solid rgba(124, 198, 68, 0.18);
    background: #F2F9EC;
}

/* アイコン外枠 */
.feature-icon-wrap {
    position: relative;
    width: 86px;
    height: 86px;
    margin: -43px auto 18px;
    border: 3px solid #7CC644;
    border-radius: 24px;
    background: #FFFFFF;
    box-shadow:
        0 12px 28px rgba(140, 90, 60, 0.16),
        0 0 0 5px rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.feature-icon-wrap img {
    width: 62px;
    height: 62px;
    object-fit: contain;
}


/* ==================================================
   4つの支援プログラム
================================================== */

.program-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(140, 90, 60, 0.10);
    border-radius: 24px;
    background: #FFFFFF;
    box-shadow: 0 20px 40px rgba(140, 90, 60, 0.07);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 54px rgba(140, 90, 60, 0.13);
}

.program-photo {
    position: relative;
    height: 116px;
    margin: 24px -32px -32px;
    overflow: hidden;
    border-radius: 0 0 22px 22px;
}

.program-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.12),
            rgba(255, 255, 255, 0.72)
        );
    z-index: 1;
}

.program-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ==================================================
   「明日から使える」を学ぶ
================================================== */

.learn-photo-tile {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 22px 46px rgba(140, 90, 60, 0.13);
}

.learn-photo-tile img {
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.learn-photo-tile:hover img {
    transform: scale(1.04);
}

.learn-photo-tile img.learn-manner-photo {
    object-fit: cover;
    object-position: 30% center;
    background: #FDF7EF;
}

.learn-photo-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 13px 10px 14px;
    border-radius: 0 0 24px 24px;
    background: #5CBF3A;
    box-shadow: none;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}


/* ==================================================
   ご利用の流れ
================================================== */

.flow-card {
    position: relative;
    height: 100%;
    padding: 32px;
    border: 1px solid rgba(140, 90, 60, 0.10);
    border-radius: 24px;
    background: #FFFFFF;
    box-shadow: 0 18px 40px rgba(140, 90, 60, 0.08);
}

.flow-number {
    width: 46px;
    height: 46px;
    border-radius: 9999px;
    background: #E4F5D8;
    box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.6);
    color: #5E9F32;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-arrow {
    position: absolute;
    right: -22px;
    top: 50%;
    color: #7CC644;
    font-size: 30px;
    transform: translateY(-50%);
    z-index: 3;
}


/* ==================================================
   FAQ・お知らせ
================================================== */

.faq-news-wrap {
    background:
        radial-gradient(
            circle at 8% 88%,
            rgba(124, 198, 68, 0.18),
            transparent 18%
        ),
        radial-gradient(
            circle at 92% 18%,
            rgba(247, 181, 44, 0.18),
            transparent 18%
        ),
        #FDF7EF;
}

.top-news-filter {
    transition: all 0.2s ease;
}


/* ==================================================
   下部エリア背景
   ご利用の流れ～CTA
================================================== */

.bottom-plant-area {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #FFFDF9;
}

.bottom-plant-area::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 450px;
    width: 500px;
    height: 640px;
    background:
        url("/assets/images/top/bg-plant-left.png")
        no-repeat center / contain;
    filter: blur(1px);
    opacity: 0.72;
    pointer-events: none;
    z-index: 0;
}

.bottom-plant-area::after {
    content: "";
    position: absolute;
    right: 0;
    top: 140px;
    width: 460px;
    height: 620px;
    background:
        url("/assets/images/top/bg-plant-right.png")
        no-repeat center / contain;
    filter: blur(1px);
    opacity: 0.68;
    pointer-events: none;
    z-index: 0;
}

.bottom-plant-area > section {
    position: relative;
    z-index: 1;
}

/* 親要素の植物背景を見せるため、中の背景を透明化 */
.bottom-plant-area .faq-news-wrap,
.bottom-plant-area .cta-section {
    background: transparent;
}

.bottom-plant-area .bg-surface-container-lowest {
    background-color: transparent !important;
}

@media (max-width: 767px) {
    .bottom-plant-area::before,
    .bottom-plant-area::after {
        width: 180px;
        opacity: 0.28;
    }

    .bottom-plant-area::before {
        left: -90px;
        top: 320px;
    }

    .bottom-plant-area::after {
        right: -100px;
        top: 160px;
    }
}