/* DocumentFooterCTA custom styles based on user request */

/* Namespace to avoid conflicts */
.DocumentFooterCTA .cta-area {
    width: 100%;
    position: relative;
    background-color: #fff1e5;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centered Layout */
    padding: 40px;
    box-sizing: border-box;
    text-align: left;
    font-size: 32px;
    color: #282828 !important;
    font-family: 'Noto Sans JP', sans-serif !important;
    font-weight: 700 !important;
}

.DocumentFooterCTA .frame-parent {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centered Layout */
    gap: 32px;
}

.DocumentFooterCTA .up-updown-parent {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centered Layout */
    gap: 25.6px;
}

.DocumentFooterCTA .up-updown {
    align-self: stretch;
    position: relative;
    line-height: 140%;
    font-family: 'Noto Sans JP', sans-serif !important;
    font-weight: 700 !important;
    font-size: 32px !important;
    color: #282828 !important;
}

.DocumentFooterCTA .frame-group {
    align-self: stretch;
    height: 240px;
    position: relative;
}

.DocumentFooterCTA .frame-container {
    position: absolute;
    top: 0.61px;
    left: 0.53px;
    width: 478.2px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4.4px;
}

.DocumentFooterCTA .frame-div {
    align-self: stretch;
    display: flex;
    align-items: center;
    gap: 4.4px;
}

.DocumentFooterCTA .frame-child {
    height: 117.3px;
    width: 156.4px;
    position: relative;
    object-fit: cover;
    background-color: #eee;
}

.DocumentFooterCTA .group-507-2 {
    position: absolute;
    top: 10.53px;
    left: 407.9px;
    width: 467.3px;
    height: 220px;
    object-fit: contain;
}

.DocumentFooterCTA .b {
    width: 880px;
    max-width: 100%;
    /* Safety */
    position: relative;
    font-size: 18px !important;
    line-height: 160%;
    display: inline-block;
    font-family: 'Noto Sans JP', sans-serif !important;
    font-weight: 700 !important;
    color: #282828 !important;
}

.DocumentFooterCTA .btn {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    /* Center Buttons */
    flex-wrap: wrap;
    /* Safety */
    gap: 20px;
    text-align: center;
    font-size: 16px;
    color: #ff7500;
}

.DocumentFooterCTA .button {
    height: 66px;
    width: 430px;
    border-radius: 4.15px;
    background-color: #fff;
    border: 1px solid #ff7500;
    box-sizing: border-box;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8.3px 33.2px;
    min-width: 132.83px;
    color: #ff7500 !important;
    font-family: 'Noto Sans JP', sans-serif !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-decoration: none;
}

.DocumentFooterCTA .button .text {
    position: relative;
    line-height: 100%;
    font-family: 'Noto Sans JP', sans-serif !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    color: #ff7500 !important;
}

.DocumentFooterCTA .button2 {
    height: 66px;
    width: 430px;
    border-radius: 4.15px;
    background-color: #ff7500;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8.3px 33.2px;
    box-sizing: border-box;
    min-width: 132.83px;
    color: #fff !important;
    text-decoration: none;
    font-family: 'Noto Sans JP', sans-serif !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    color: #fff !important;
}

.DocumentFooterCTA .button2 .text {
    position: relative;
    line-height: 100%;
    font-family: 'Noto Sans JP', sans-serif !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    color: #fff !important;
}

/* Tablet / Low-Res PC Adjustments (Centered Column + PC-like Composition 720px) */
@media screen and (min-width: 768px) and (max-width: 1140px) {
    .DocumentFooterCTA .cta-area {
        padding: 60px 20px;
        /* Reduced side padding to allow 720px */
    }

    .DocumentFooterCTA .up-updown-parent {
        flex-direction: column;
        /* Stacked Layout */
        flex-wrap: nowrap;
        align-items: center;
        gap: 30px;
    }

    .DocumentFooterCTA .up-updown {
        width: 100%;
        text-align: left;
        /* Left align per request */
        margin-bottom: 0;
        max-width: 720px;
    }

    .DocumentFooterCTA .frame-group {
        /* Centered Image Area - MAX w/ 720px */
        flex: 0 0 auto;
        width: 720px;
        /* Wider */
        height: 185px;
        /* Slightly taller */
        position: relative;
        overflow: hidden;
        margin: 0 auto;
    }

    .DocumentFooterCTA .frame-container {
        /* Scale up to fill 720px (approx 0.82x) */
        transform: scale(0.82);
        transform-origin: top left;
        width: 478.2px;
        height: 240px;
        position: absolute;
        top: 0;
        left: 0;
    }

    .DocumentFooterCTA .group-507-2 {
        display: block;
        position: absolute;
        /* Positioned relative to Grid, scaled similarly to maintain PC ratio for 720px container */
        top: 9px;
        /* 10.53 * 0.82 */
        left: 334px;
        /* 407.9 * 0.82 - Maintains PC-like overlap */
        width: 467.3px;
        height: 220px;
        transform: scale(0.82);
        transform-origin: top left;
        object-fit: contain;
    }

    .DocumentFooterCTA .b {
        /* Text Below Image */
        flex: none;
        width: 100%;
        max-width: 720px;
        font-size: 16px !important;
        line-height: 1.6;
        text-align: left;
        margin-top: 10px;
    }
}


/* SP Media Query Update */
@media screen and (max-width: 767px) {
    .DocumentFooterCTA .cta-area {
        padding: 30px 20px;
        align-items: center;
        text-align: left;
        font-size: 16px !important;
    }

    .DocumentFooterCTA .frame-parent {
        width: 100%;
        align-items: center;
        gap: 12px;
    }

    .DocumentFooterCTA .up-updown-parent {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
        max-width: 100%;
    }

    .DocumentFooterCTA .up-updown {
        align-self: stretch;
        position: relative;
        font-size: 20px !important;
        line-height: 140%;
        font-family: 'Noto Sans JP', sans-serif !important;
        font-weight: 700 !important;
        color: #282828 !important;
        text-align: left;
        /* User requested Left alignment for SP too */
    }

    .DocumentFooterCTA .frame-group {
        align-self: center;
        width: 100%;
        max-width: 311px;
        height: auto;
        aspect-ratio: 311/259;
        position: relative;
        display: block;
        margin: 0 auto;
    }

    .DocumentFooterCTA .frame-container {
        position: absolute;
        /* Keep absolute to fill aspect-ratio box */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1%;
    }

    .DocumentFooterCTA .frame-div {
        align-self: stretch;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1%;
    }

    .DocumentFooterCTA .frame-child {
        height: auto;
        width: 32%;
        aspect-ratio: 4/3;
        position: relative;
        object-fit: cover;
    }

    .DocumentFooterCTA .group-507-2 {
        position: absolute;
        top: 52%;
        left: 50%;
        transform: translateX(-50%);
        width: 84%;
        height: auto;
        aspect-ratio: 2.12;
        object-fit: contain;
    }

    .DocumentFooterCTA .b {
        width: 100%;
        /* FIX: Full width */
        max-width: 100%;
        position: relative;
        line-height: 160%;
        display: block;
        font-family: 'Noto Sans JP', sans-serif !important;
        font-weight: 700 !important;
        color: #282828 !important;
        font-size: 14px !important;
    }

    .DocumentFooterCTA .btn {
        align-self: stretch;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        text-align: center;
        color: #ff7500;
        width: 100%;
    }

    .DocumentFooterCTA .button {
        align-self: stretch;
        height: 52px;
        border-radius: 4px;
        background-color: #fff;
        border: 1px solid #ff7500;
        box-sizing: border-box;
        overflow: hidden;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 103.57px;
        width: 100%;
        font-family: 'Noto Sans JP', sans-serif !important;
        font-weight: 700 !important;
        font-size: 16px !important;
        color: #ff7500 !important;
    }

    .DocumentFooterCTA .button .text {
        font-family: 'Noto Sans JP', sans-serif !important;
        font-weight: 700 !important;
        font-size: 16px !important;
        color: #ff7500 !important;
    }

    .DocumentFooterCTA .button2 {
        align-self: stretch;
        height: 52px;
        border-radius: 4px;
        background-color: #ff7500;
        overflow: hidden;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 103.57px;
        color: #fff;
        width: 100%;
        font-family: 'Noto Sans JP', sans-serif !important;
        font-weight: 700 !important;
        font-size: 16px !important;
        color: #fff !important;
    }

    .DocumentFooterCTA .button2 .text {
        font-family: 'Noto Sans JP', sans-serif !important;
        font-weight: 700 !important;
        font-size: 16px !important;
        color: #fff !important;
    }
}


/* Bottom Section Styles (Retained) */
.DocumentFooterCTA_bottom {
    padding: 80px 0;
    background: #fff;
}

@media screen and (max-width: 767px) {
    .DocumentFooterCTA_bottom {
        padding: 60px 0;
    }
}

.DocumentFooterCTA_bottom .DocumentFooterCTA_inner {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.DocumentFooterCTA_bottomTitle {
    font-size: 24px;
    font-weight: bold;
    text-align: left;
    margin-bottom: 40px;
    position: relative;
    padding-left: 20px;
    display: flex;
    align-items: center;
}

.DocumentFooterCTA_bottomTitle:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: inline-block;
    width: 6px;
    height: 24px;
    background: #333;
}

@media screen and (max-width: 767px) {
    .DocumentFooterCTA_bottomTitle {
        font-size: 18px;
    }
}

.DocumentFooterCTA_card {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
    transition: box-shadow 0.3s;
    color: inherit;
    text-decoration: none;
}

.DocumentFooterCTA_card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 767px) {
    .DocumentFooterCTA_card {
        flex-direction: column;
    }
}

.DocumentFooterCTA_cardImg {
    width: 200px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.DocumentFooterCTA_cardImg img {
    width: 80px;
}

@media screen and (max-width: 767px) {
    .DocumentFooterCTA_cardImg {
        width: 100%;
        height: 150px;
    }
}

.DocumentFooterCTA_cardContent {
    padding: 24px;
    flex-grow: 1;
}

@media screen and (max-width: 767px) {
    .DocumentFooterCTA_cardContent {
        padding: 20px;
    }
}

.DocumentFooterCTA_cardTitle {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
}

.DocumentFooterCTA_cardText {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 16px;
    font-weight: normal;
}

.DocumentFooterCTA_cardMeta {
    display: flex;
    font-size: 12px;
    color: #999;
    align-items: center;
}

.DocumentFooterCTA_cardMeta .material-icons {
    font-size: 14px;
    margin-left: 4px;
}

.DocumentFooterCTA_backBtn {
    display: block;
    width: 240px;
    margin: 0 auto;
    background: #333;
    color: #fff;
    text-align: center;
    padding: 16px 0;
    font-weight: bold;
    border-radius: 4px;
    transition: opacity 0.3s;
    text-decoration: none;
}

.DocumentFooterCTA_backBtn:hover {
    opacity: 0.8;
}

@media screen and (max-width: 767px) {
    .DocumentFooterCTA_backBtn {
        width: 100%;
    }
}