/*
 * K's Comparison Table - Custom Styles v4.0.0
 */

/* --- Web Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@700&display=swap');

.k-comparison-wrapper {
    margin: 2em 0;
    /* This container ensures no layout shifts during initialization. */
}

/* --- MOBILE STYLES (Splide Slider) --- */
@media (max-width: 768px) {
    .k-comparison-slider .splide__slide {
        /* Add horizontal padding to show a glimpse of adjacent slides */
        padding: 0 5px;
    }
}

/* --- GENERAL CARD STYLES (Common for both Desktop and Mobile) --- */

.plan-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px; /* Reduced padding */
    display: flex;
    flex-direction: column;
    text-align: center;
    background-color: #fff;
    position: relative;
    overflow: hidden;
    height: 100%;
    box-sizing: border-box;
    transition: transform 0.3s, box-shadow 0.3s;
}

.plan-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.plan-item.is-featured {
    border: 2px solid #4CAF50;
}

.plan-title {
    font-family: 'Noto Sans JP', sans-serif !important; /* Apply web font */
    font-size: 1.4em !important; /* Adjusted font size */
    font-weight: 700;
    margin-bottom: 15px;
}

.plan-price-wrap {
    background-color: #f7f7f7;
    padding: 15px; /* Reduced padding */
    margin: 0 -20px 15px -20px; /* Adjusted margin */
    border-bottom: 1px solid #ddd;
    border-top: 1px solid #ddd;
}

.plan-price {
    /* font-size: 2em;  */
    font-weight: bold;
    color: #D32F2F;
}

.plan-price-desc {
    font-size: 0.85em; /* Reduced font size */
    color: #666;
    margin-top: 5px;
}

.plan-features {
    margin-bottom: 20px; /* Reduced margin */
    text-align: left;
    flex-grow: 1; /* Pushes the button to the bottom */
    font-size: 0.5rem !important; /* Reduced font size for the list */
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features ul li {
    padding: 8px 0; /* Reduced padding */
    border-bottom: 1px dashed #eee;
    list-style: none !important;
    font-size: 1rem !important;
}

.plan-features ul li:before {
    content: '✓';
    color: #4CAF50;
    margin-right: 5px;
    font-weight: bold;
}

.plan-button-wrap {
    margin-top: auto; /* Aligns button to the bottom */
}

.plan-button {
    display: inline-block;
    background-color: #FF9800;
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.plan-button:hover {
    background-color: #F57C00;
}
