:root {
    --primary-color: #FF7F00;
    --secondary-color: #FFA500;
    --accent-color: #FFD700;
    --dark-color: #333;
    --light-color: #FFF8F0;
    --text-color: #444;
    --white: #fff;
    --black: #000;
    --gray: #eee;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

.container {
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

header h1 i {
    margin-right: 10px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--accent-color);
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1489824904134-891ab64532f1?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 80px 0;
    margin-bottom: 40px;
}

.hero h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    width: 100%;
    text-align: center;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.cta-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

section {
    margin-bottom: 50px;
    padding: 30px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-section {
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.feature-card {
    padding: 25px 20px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1rem;
}

.filter-btn {
    padding: 8px 15px;
    background-color: var(--light-color);
    border: 1px solid var(--gray);
    border-radius: 20px;
    margin-right: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.car-card {
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.car-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.car-info {
    padding: 20px;
}

.car-info h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.car-info p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.car-info p i {
    width: 20px;
    color: var(--primary-color);
}

.price {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.description {
    color: var(--text-color);
    margin: 15px 0;
    font-size: 0.9rem;
}

.select-btn {
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.select-btn:hover {
    background-color: var(--accent-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.options-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.primary-btn {
    flex: 1;
    padding: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.primary-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.secondary-btn {
    flex: 1;
    padding: 15px;
    background-color: var(--light-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.estimate-result {
    margin-top: 25px;
    padding: 20px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.estimate-result h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.estimate-result p {
    margin-bottom: 8px;
}

.estimate-result ul {
    margin: 10px 0 15px 20px;
}

.estimate-result strong {
    color: var(--primary-color);
}

footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-info h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-info p {
    margin-bottom: 8px;
}

.footer-links {
    display: flex;
    gap: 15px;
    font-size: 1.5rem;
}

.footer-links a {
    color: var(--white);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.wechat-qr {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    text-align: center;
    z-index: 1000;
}

.wechat-qr img {
    width: 120px;
    height: 120px;
    display: block;
    margin: 0 auto 5px;
}

.wechat-qr p {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: bold;
}

.qa-section {
    margin-top: 40px;
}



.accordion {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--gray);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-btn {
    width: 100%;
    padding: 15px 20px;
    text-align: left;
    background-color: var(--light-color);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
}

.accordion-btn i {
    transition: transform 0.3s;
}

.accordion-btn.active i {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: white;
}

.accordion-content p {
    padding: 15px 0;
}



/* コンパクト車種グリッド - 修正版 */
.compact-car-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* PCでは4列 */
    gap: 10px;
    margin-top: 15px;
    padding: 0;
}


.compact-car-option {
    display: block;
    cursor: pointer;
    border: 2px solid var(--gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
}

.compact-car-option:hover {
    border-color: var(--primary-color);
}

.compact-car-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.compact-car-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;

}

.compact-car-option img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.compact-car-info {
    padding: 10px;
    background: var(--light-color);
    flex-grow: 1;
}

.compact-car-info h4 {
    margin: 0 0 5px;
    color: var(--primary-color);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-car-info p {
    margin: 3px 0;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.compact-car-option input[type="radio"]:checked + .compact-car-content {
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 0 2px var(--accent-color);
}

@media (max-width: 768px) {
    .compact-car-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        flex-direction: column;
        gap: 15px;
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .compact-car-grid {
        /* grid-template-columns: 1fr; */
        grid-template-columns: repeat(2, 1fr); /* 2列に変更 */
    }

}

/* 追加修正 */

/* オプション選択の左揃え修正 */
.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
    padding-left: 0; /* 左余白を削除 */
}

.options-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    text-align: left;
    margin: 5px 0; /* 上下の余白のみ保持 */
    padding: 5px 0; /* 上下の余白のみ保持 */
    justify-content: flex-start; /* 左揃えに */
}

.options-grid input[type="checkbox"] {
    margin: 0 8px 0 0; /* 右側のみ余白を設定 */
    width: auto;
    transform: none;
    position: static;
    flex-shrink: 0; /* チェックボックスのサイズを固定 */
}
