@charset "UTF-8";

/* Modern Search Form Design - Based on Kentaku Leasing Style */

/* Banner Section */
.banner.main-banner {
    position: relative;
    width: 100%;
    /* background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); */
}

.banner-img {
    position: relative;
    width: 100%;
    /* min-height: 800px; */
    overflow: visible;
}

.banner-img img.pc_img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    z-index: 1;
}

.banner-img img.sp_img {
    display: none;
}

.index-title {
    position: absolute;
    top: 200px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 90%;
    max-width: 800px;
    z-index: 5;
}

.index-title span {
    color: #ffffff;
    font-size: 48px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
    display: block;
}

/* Search Form Container - Original positioning */
.search-condition {
    position: relative;
    background: rgba(76, 76, 76, 0.7);
    padding: 20px 30px;
    width: 90%;
    max-width: 1000px;
    z-index: 10;
    border-radius: 8px;
}

#inv-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

/* Form Elements Styling */
#inv-search-form select {
    flex: 1;
    min-width: 150px;
    padding: 6px 40px 6px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    appearance: none;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Hover and focus states - Colors are set dynamically via theme settings */
#inv-search-form select:hover {
    /* border-color is set via theme */
}

#inv-search-form select:focus {
    outline: none;
    /* border-color and box-shadow are set via theme */
}

/* Required field styling */
#inv-search-form select[required] {
    /* border-color is set via theme */
    border-width: 2px;
}

/* Submit Button - Background color is set dynamically via theme settings */
#seach-new {
    padding: 14px 40px;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

#seach-new:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

#seach-new:active {
    transform: translateY(0);
}

/* Result Count - Color is set dynamically via theme settings */
#result-count {
    font-size: 16px;
    font-weight: 600;
    /* color is set via theme */
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .banner-img {
        height: 400px;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .checkbox-item {
        padding: 10px 15px;
    }

    .banner-img img.pc_img {
        display: none;
    }

    .banner-img img.sp_img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .index-title span {
        font-size: 32px;
    }

    .search-condition {
        position: relative;
        transform: none;
        left: 0;
        padding: 20px;
        border-radius: 0;
    }

    #inv-search-form {
        flex-direction: column;
    }

    #inv-search-form select,
    #seach-new {
        width: 100%;
    }
}

/* Form Label Style (if needed) */
.search-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 5px;
}

/* Modern Card Style Alternative */
.search-modern-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin: -50px auto 50px;
    position: relative;
    z-index: 10;
}

/* Floating Labels Effect */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    background: #ffffff;
    padding: 0 5px;
    font-size: 14px;
    color: #999;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group select:focus + label,
.form-group select:not(:placeholder-shown) + label {
    top: -10px;
    font-size: 12px;
    /* color is set via theme */
}

/* Yield Styles from Kentaku Leasing */
.yield__section {
    background-color: #fff;
    border: 4px solid;
    /* border-color is set via theme */
    border-radius: 8px;
    padding: 30px 40px;
    max-width: 100%;
    margin: 0 auto;
}

.yield__ttl {
    margin: 0 0 30px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: #333;
}

.yield__list {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.yield__list.is-first-item {
    margin-bottom: 20px;
}

.yield__sub-ttl {
    width: 100px;
    font-weight: 700;
    color: #333;
    font-size: 14px;
}

.yield__list dd {
    flex: 1;
}

.yield__list select {
    width: 100%;
    max-width: 220px;
    height: 44px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
}

/* チェックボックスグループのスタイル */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.checkbox-item:hover {
    background-color: #f5f5f5;
    /* border-color is set via theme */
}

.checkbox-item input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    /* accent-color is set via theme */
}

.checkbox-item span {
    font-size: 14px;
    color: #333;
}

.checkbox-item:has(input:checked) {
    background-color: #fff5f0;
    /* border-color is set via theme */
}

.checkbox-item:has(input:checked) span {
    font-weight: 600;
    /* color is set via theme */
}

.yield__list.is-first-item select {
    border: 2px solid;
    /* border-color is set via theme */
}

.yield__body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    border-top: 1px solid #ddd;
    margin: 16px 0 24px;
    padding: 16px 0 0;
}

.yield__body .yield__list {
    width: 100%;
}

.yield__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
}

.yield__cnt {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.bknCnt {
    /* color is set via theme */
    font-size: 20px;
    font-weight: 700;
    margin: 0 5px;
}

.yield__btn {
    /* background-color is set via theme */
    color: #fff !important;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure button is always visible */
.incomeproperty_search_submit {
    visibility: visible !important;
    opacity: 1 !important;
    display: inline-block !important;
}

.ui-btn--flat {
    visibility: visible !important;
    opacity: 1 !important;
    display: inline-block !important;
}

.yield__btn:hover {
    /* background-color is set via theme */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ui-centering {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Loading Animation */
.search-loading {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
}

.search-loading::after {
    content: "";
    display: block;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    /* border-top-color is set via theme */
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error State */
.form-error {
    border-color: #dc3545 !important;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

/* Success State */
.form-success {
    border-color: #28a745 !important;
}

/* Tooltip for help */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Focus Within Effect */
.search-condition:focus-within {
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.15);
}

/* Disabled State */
#inv-search-form select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Custom Scrollbar for Select Options */
select::-webkit-scrollbar {
    width: 8px;
}

select::-webkit-scrollbar-track {
    background: #f1f1f1;
}

select::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

select::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Large screens optimization */
@media (min-width: 1200px) {
    .search-condition {
        max-width: 900px;
    }
    
    .yield__section {
        padding: 35px 50px;
    }
}

/* Extra large screens */
@media (min-width: 1600px) {
    .banner.main-banner {
        min-height: 640px;
    }
    
    .search-condition {
        max-width: 1000px;
    }
}