/* Renewal Design CSS */


@media screen and (max-width: 593px) {
    body,
    html {
        padding: 0;
        overflow-x: hidden;
        width: 100%;
    }
}

.renewal-section {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    overflow-x: hidden;
}

/* Desktop: 700px width container (except footer) */
@media screen and (min-width: 769px) {
    .renewal-main-visual,
    .renewal-compare-section,
    .renewal-recommend-section,
    .renewal-ranking-section,
    .renewal-disclaimer-section {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        width: 700px;
    }

    .compare-item .card-name-btn {
        width: 80%;
        max-width: 140px;
        margin: 10px auto 0;
        text-align: center;
        padding: 10px 15px;
        font-size: 14px;
    }
}

.renewal-main-visual {
    max-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.renewal-main-visual img.main-banner {
    width: 100%;
    max-height: 500px;
    height: auto;
    display: block;
    object-fit: contain;
}

.pr-text {
    position: absolute;
    top: 5px;
    right: 10px;
    text-align: right;
    font-size: 10px;
    color: #666;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    z-index: 10;
}

/* Compare Section */
.renewal-compare-section {
    background-color: #e6f7ea;
    background-image: url('../images/renewal/card_bg_mask.png'), url('../images/renewal/card_bg.png');
    background-size: 80% auto, auto;
    background-position: top center, top left;
    background-repeat: no-repeat, repeat;
    padding: 20px 0px;
    text-align: center;
    position: relative;
}

.compare-title {
    margin-bottom: 5px;
    position: relative;
}

.compare-title h2 {
    font-size: 100px;
    color: #fff;
    font-weight: bold;
    letter-spacing: 5px;
    text-shadow: none;
    line-height: 1;
    margin: 0;
    opacity: 1;
    text-transform: uppercase;
}

.compare-sub-title {
    font-size: 30px;
    color: #444;
    font-weight: bold;
    margin-top: -50px;
    position: relative;
    z-index: 2;
    line-height: 1.5;
    text-shadow: 2px 2px 0 #fff, -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff;
    display: inline-block;
}

.compare-sub-title::before,
.compare-sub-title::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 4px;
    background: #41b649;
    top: 50%;
}

.compare-sub-title::before {
    left: -50px;
    transform: translateY(-50%) rotate(50deg);
}

.compare-sub-title::after {
    right: -40px;
    transform: translateY(-50%) rotate(-50deg);
}

.green {
    color: #41b649 !important;
}

.compare-sub-title .green-text {
    color: #41b649;
    font-size: 18px;
}

.compare-items {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px;
    padding-bottom: 0;
}

.compare-item {
    width: 200px;
    flex-shrink: 0;
}

.rank-icon {
    margin-bottom: 8px;
}

.rank-icon img {
    width: 60px;
    height: auto;
}

.card-image,
a.card-image {
    display: block;
    transition: transform 0.3s;
    width: 200px;
    height: 130px;
    text-decoration: none;
}

.card-image:hover,
a.card-image:hover {
    transform: translateY(-5px);
}

.card-image img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: contain;
}

.card-name-btn {
    background: linear-gradient(to right, #41b649, #7ed957);
    color: #fff;
    padding: 10px 25px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    display: block;
}

/* Recommend Section */
.renewal-recommend-section {
    background: #fff;
    padding: 20px 0px;
    text-align: center;
}

.recommend-title {
    margin-bottom: 40px;
    position: relative;
}

.recommend-title h2 {
    /* font-size: 100px; */
    font-size: clamp(40px, 8vw, 90px);
    color: #e6f7ea;
    font-weight: bold;
    letter-spacing: 5px;
    line-height: 1;
    margin: 0;
    text-transform: uppercase;
    max-width: 100%;
}

.recommend-sub-title {
    font-size: 30px;
    color: #444;
    font-weight: bold;
    margin-top: -50px;
    position: relative;
    z-index: 2;
    line-height: 1.5;
    display: inline-block;
}

.recommend-sub-title::before,
.recommend-sub-title::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 4px;
    background: #41b649;
    top: 50%;
}

.recommend-sub-title::before {
    left: -80px;
    transform: translateY(-50%) rotate(50deg);
}

.recommend-sub-title::after {
    right: -80px;
    transform: translateY(-50%) rotate(-50deg);
}

.recommend-sub-title .green-text {
    color: #41b649;
    font-size: 18px;
}

.recommend-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.recommend-card {
    width: 48%;
    max-width: 500px;
    border: 3px solid #5cd65c;
    border-radius: 15px;
    padding: 20px;
    background: #fff;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.recommend-card .person-icon {
    position: absolute;
    top: -35px;
    right: 15px;
    width: 80px;
    height: auto;
    z-index: 10;
}

.recommend-card-header {
    margin-bottom: 15px;
}

.recommend-card-header .need-text {
    display: block;
    font-size: 16px;
    color: #41b649;
    margin-bottom: 8px;
    font-weight: bold;
}

.recommend-card-header .card-title {
    font-size: 26px;
    font-weight: bold;
    margin: 0;
    line-height: 1.3;
}

.recommend-card-header .card-title.green {
    color: #41b649;
}

.recommend-card-header .card-title.blue {
    color: #3b6fb6;
}

.recommend-card-body {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex: 1;
}

.recommend-card-body .card-img-wrapper {
    flex-shrink: 0;
    width: 120px;
    height: 100px;
}

.recommend-card-body .card-img-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: contain;
}

.recommend-card-body .card-desc {
    flex: 1;
}

.recommend-card-body .card-desc p {
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.recommend-card-footer {
    text-align: center;
    width: 100%;
    margin-top: auto;
}

.recommend-card-footer .detail-btn {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 10px 30px;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.3s;
}

.recommend-card-footer .detail-btn:hover {
    background: #c0392b;
}

.renewal-ranking-section {
    background-color: #e6f7ea;
    background-image: url('../images/renewal/card_bg.png');
    background-size: cover;
    background-position: center;
    padding: 20px;
    text-align: center;
    margin-bottom: 10px;
}

.ranking-title {
    margin-bottom: 20px;
    position: relative;
}

.ranking-title h2 {
    font-size: 100px;
    color: #fff;
    font-weight: bold;
    letter-spacing: 5px;
    line-height: 1;
    margin: 0;
    text-transform: uppercase;
}

.ranking-sub-title {
    font-size: 30px;
    color: #444;
    font-weight: bold;
    margin-top: -50px;
    position: relative;
    z-index: 2;
    line-height: 1.5;
    display: inline-block;
}

.ranking-sub-title::before,
.ranking-sub-title::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 4px;
    background: #41b649;
    top: 50%;
}

.ranking-sub-title::before {
    left: -75px;
    transform: translateY(-50%) rotate(50deg);
}

.ranking-sub-title::after {
    right: -70px;
    transform: translateY(-50%) rotate(-50deg);
}

.ranking-sub-title .green-text {
    color: #41b649;
    font-size: 18px;
}

.ranking-cards {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ranking-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    text-align: left;
}

.ranking-card-header {
    background: #fff;
    padding: 15px 20px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.ranking-card-header::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 20px;
    right: 20px;
    height: 3px;
    background-color: #d4af37;
}

.ranking-card.green-theme .ranking-card-header::after {
    background-color: #41b649;
}

.ranking-card.green-theme .ranking-card-title {
    color: #41b649;
}

.ranking-card.green-theme .feature-th {
    background-color: #41b649;
    color: #fff;
}

.ranking-card.green-theme .feature-td {
    background-color: #d4edda;
    color: #333;
}

.ranking-card-header .rank-badge {
    width: 45px;
    height: auto;
}

.ranking-card-header .ranking-card-title {
    font-size: 24px;
    font-weight: bold;
    color: #d4af37;
    margin: 0;
}

.ranking-card-title-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

.ranking-card-title-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.ranking-card-body {
    padding: 20px;
}

.card-info {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: center;
}

.card-info .card-image-col {
    flex-shrink: 0;
    width: 180px;
    height: 120px;
}

.card-info .card-image-col img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: contain;
}

.card-info .card-highlight {
    flex: 1;
    min-width: 0;
}

.card-info .highlight-title {
    font-size: 16px;
    font-weight: bold;
    color: #e67e22;
    line-height: 1.5;
    margin: 0;
    text-align: left;
}

.card-features-table {
    width: 100%;
    margin-bottom: 25px;
    display: table;
    border-collapse: separate;
    border-spacing: 2px;
}

.feature-row {
    display: table-row;
}

.feature-th,
.feature-td {
    display: table-cell;
    padding: 8px 10px;
    vertical-align: middle;
    font-size: 13px;
    border-radius: 3px;
}

.feature-th {
    background-color: #d4af37;
    color: #fff;
    font-weight: bold;
    width: 15%;
    text-align: center;
    white-space: nowrap;
}

.feature-td {
    background-color: #fef9d9;
    color: #333;
    font-weight: bold;
    width: 35%;
}

.text-red {
    color: #e74c3c !important;
    font-weight: bold;
}

.comment-box {
    background: #fdfbe5;
    border-radius: 8px;
    padding: 20px;
    position: relative;
}

.comment-label-text {
    font-size: 14px;
    color: #d4af37;
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.comment-intro {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.comment-avatar {
    flex-shrink: 0;
    width: 70px;
    text-align: center;
}

.comment-avatar img {
    width: 100%;
    height: auto;
}

.comment-bubble {
    flex: 1;
    background: #fff;
    border: 2px solid #d4af37;
    border-radius: 8px;
    padding: 12px 15px;
    position: relative;
    font-weight: bold;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.comment-bubble::after {
    content: '';
    position: absolute;
    left: -10px;
    top: 15px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 10px solid #d4af37;
}

.comment-bubble::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 15px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 10px solid #fff;
    z-index: 1;
}

.green-theme .comment-box {
    background: #f4faf3;
}

.green-comment-bubble {
    border: 2px solid #41b649;
}

.green-theme .comment-bubble::after {
    border-right: 10px solid #41b649;
}

.comment-details {
    padding-left: 10px;
}

.comment-detail-item {
    margin-bottom: 15px;
}

.comment-detail-item:last-child {
    margin-bottom: 0;
}

.detail-title {
    font-weight: bold;
    color: #aa8f00;
    font-size: 14px;
    margin-bottom: 3px;
}

.detail-desc {
    font-size: 12px;
    color: #333;
    line-height: 1.5;
}

.qa-section {
    padding-top: 5px;
    margin-top: 5px;
}


.qa-item:last-child {
    margin-bottom: 0;
}

.qa-title {
    font-size: 14px;
    font-weight: bold;
    color: #d4af37;
    margin-bottom: 8px;
    line-height: 1.6;
}

.green-theme .qa-title {
    color: #41b649;
}

.qa-icon {
    color: inherit;
    margin-right: 5px;
}

.qa-content {
    font-size: 13px;
    color: #333;
    line-height: 1.6;
    padding-left: 15px;
    margin-bottom: 10px;
}

.ranking-card-footer {
    text-align: center;
    padding: 0 20px 30px;
}

.ranking-card-footer .ranking-detail-btn {
    display: block;
    margin: 0 auto;
    background: #e74c3c;
    color: #fff;
    padding: 12px 0;
    width: 90%;
    max-width: 300px;
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
    box-shadow: 0 3px 0 #c0392b;
    transition: background 0.3s, transform 0.1s;
    min-width: 0;
}

.ranking-card-footer .ranking-detail-btn:hover {
    background: #ff5e4d;
    transform: translateY(1px);
}

/* SP adjustments */
@media screen and (max-width: 768px) {


    .renewal-ranking-section {
        padding: 30px 10px;
    }

    .renewal-compare-section {
        padding: 40px 15px 50px;
        background-size: cover, auto;
    }

    .pr-text {
        position: absolute;
        top: 10px;
        right: 15px;
        text-align: right;
        font-size: 14px;
    }

    .compare-title h2 {
        font-size: 17vw;
        width: 100%;
        letter-spacing: 0px;
        overflow: visible;
        white-space: nowrap;
    }

    .compare-sub-title {
        font-size: 18px;
        margin-top: -25px;
        width: 100%;
        position: relative;
        display: inline-block;
    }

    .compare-sub-title::before,
    .compare-sub-title::after {
        width: 60px;
        height: 3px;
        content: '';
        position: absolute;
        background-color: #41b649;
        top: 50%;
    }

    .compare-sub-title::before {
        left: 25px;
        transform: translateY(-50%) rotate(50deg);
    }

    .compare-sub-title::after {
        right: 30px;
        transform: translateY(-50%) rotate(-50deg);
    }

    .compare-items {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        max-width: 350px;
        margin: 0 auto;
    }

    .compare-item {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        position: relative;
        padding: 0;
    }

    .compare-item .rank-icon {
        width: 70px;
        margin-bottom: 5px;
    }

    .compare-item .rank-icon img {
        width: 100%;
        height: auto;
    }

    .compare-item .card-image {
        width: 100%;
        max-width: 300px;
        margin: 0;
    }

    .compare-item .card-image img {
        width: 100%;
        border-radius: 8px;
    }

    .compare-item .card-name-btn {
        width: 90%;
        max-width: 300px;
        margin: 0 auto;
        padding: 12px 20px;
        font-size: 18px;
        border-radius: 4px;
    }

    .recommend-title h2 {
        font-size: 13vw;
        width: 100%;
        letter-spacing: 0px;
        overflow: visible;
        white-space: nowrap;
        margin: 0;
        text-align: center;
    }

    .recommend-sub-title {
        font-size: 18px;
        margin-top: -25px;
        width: 100%;
        position: relative;
        display: inline-block;
        padding: 0 30px;
    }

    .recommend-sub-title::before,
    .recommend-sub-title::after {
        width: 50px;
        height: 3px;
        content: '';
        position: absolute;
        background-color: #41b649;
        top: 50%;
    }

    .recommend-sub-title::before {
        left: 10px;
        transform: translateY(-50%) rotate(50deg);
    }

    .recommend-sub-title::after {
        right: 10px;
        transform: translateY(-50%) rotate(-50deg);
    }

    .recommend-cards {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 10px;
    }

    .recommend-card {
        width: 100%;
        max-width: none;
        padding: 20px;
        display: flex;
        flex-direction: column;
    }

    .recommend-card-body {
        flex-direction: column;
        flex: 1;
    }

    .recommend-card-body .card-img-wrapper {
        width: 100%;
        max-width: 280px;
        height: 150px;
        margin: 0 auto 15px;
    }

    .recommend-card .person-icon {
        width: 60px;
        top: -25px;
        right: 10px;
    }

    .recommend-card-footer .detail-btn {
        width: 100%;
        max-width: none;
        padding: 15px 0;
        font-size: 16px;
        display: block;
        box-sizing: border-box;
    }

    .ranking-title h2 {
        font-size: 17vw;
        letter-spacing: 0;
        overflow: visible;
        white-space: nowrap;
    }

    .ranking-sub-title {
        font-size: 18px;
        margin-top: -30px;
    }

    .ranking-sub-title::before,
    .ranking-sub-title::after {
        width: 65px;
        height: 3px;
    }

    .ranking-sub-title::before {
        left: -65px;
    }

    .ranking-sub-title::after {
        right: -55px;
    }

    .card-info {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        text-align: left;
        margin-bottom: 15px;
    }

    .card-info .card-image-col {
        width: 35%;
        max-width: none;
        margin: 0;
        height: 80px;
    }

    .card-info .card-highlight {
        width: 65%;
        padding-left: 5px;
    }

    .card-info .highlight-title {
        font-size: 13px;
        line-height: 1.4;
    }

    .card-features-table {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        margin-bottom: 15px;
    }

    .feature-row {
        display: flex;
        width: 100%;
        margin-bottom: 2px;
    }

    .feature-th,
    .feature-td {
        padding: 5px;
        font-size: 11px;
        display: flex;
        align-items: center;
        justify-content: center;
        height: auto;
        margin: 0;
    }

    .feature-th {
        width: 20%;
    }

    .feature-td {
        width: 30%;
    }

    .comment-intro {
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
    }

    .comment-avatar {
        width: 50px;
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .comment-avatar img {
        width: 100%;
    }

    .comment-bubble {
        flex: 1;
        margin-top: 5px;
    }


    .ranking-card.green-theme .comment-bubble::after {
        border-right-color: #41b649;
        border-bottom-color: transparent;
    }
}


.disclaimer-content p {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    margin: 5px 0;
    text-align: left;
}
.renewal-disclaimer-section {
    padding: 10px 0px;
}

@media screen and (max-width: 768px) {
    .renewal-disclaimer-section {
        padding: 20px 15px;
    }

    .disclaimer-content p {
        font-size: 10px;
    }
}

.renewal-footer-section {
    background-color: #2c2c2c;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    position: relative;
    z-index: 2;
    color: white;
}

.footer-bottom {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
}

.footer-company {
    font-size: 12px;
    color: #fff;
    margin: 0;
    margin-left: 25px;
}

.footer-company a {
    color: #fff;
    text-decoration: none;
}

.footer-company a:hover {
    color: #ccc;
}

.footer-copyright {
    font-size: 11px;
    color: #fff;
    margin: 0;
}

@media screen and (max-width: 768px) {
    .renewal-footer-section {
        padding: 30px 5px 30px 0;
    }

    .footer-logo {
        height: 28px;
    }

    .footer-bottom {
        gap: 15px;
    }

    .footer-company {
        font-size: 11px;
    }

    .footer-copyright {
        font-size: 10px;
    }
}