:root {
    --primary-color: #2E7D32; /* 濃い緑 */
    --secondary-color: #4CAF50; /* 明るい緑 */
    --accent-color: #81C784; /* アクセントの緑 */
    --text-color: #333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --dark-overlay: rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

nav ul {
    display: flex;
    gap: 20px;
    align-items: center;
}

nav a {
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--secondary-color);
}

.btn-contact {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(var(--dark-overlay), var(--dark-overlay)), url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

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

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

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

/* Sections */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-subtitle {
    text-align: center;
    margin-bottom: 50px;
    color: #666;
}

.bg-light {
    background-color: var(--light-bg);
}

/* About Section */
.about-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Inventory Section */
.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.car-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.car-image {
    height: 200px;
    overflow: hidden;
}

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

.car-info {
    padding: 20px;
}

.car-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-color);
}

.car-specs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.car-details {
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #555;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
}

.car-details div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.car-price {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 15px;
}

.btn-detail {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

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

/* Contact Section */
.contact-box {
    text-align: center;
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
    border-top: 5px solid var(--primary-color);
}

.phone-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 20px 0;
}

.contact-note {
    font-size: 0.9rem;
    color: #666;
}

/* Footer */
footer {
    background-color: #333;
    color: var(--white);
    text-align: center;
    padding: 20px 0;
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); 
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 90%; 
    max-width: 800px;
    border-radius: 8px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-section {
    margin-bottom: 20px;
}

.modal-section h3 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.detail-table th, .detail-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.detail-table th {
    background-color: #f2f2f2;
    width: 30%;
    font-weight: bold;
}

.equipment-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.equipment-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.equipment-item.available {
    color: var(--primary-color);
    font-weight: bold;
}

.equipment-item.unavailable {
    color: #ccc;
    text-decoration: line-through;
}

.btn-show-details {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #fff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 1.8rem;
    }
    
    nav ul {
        display: none; /* 簡易的な対応としてモバイルではメニューを非表示にするか、ハンバーガーメニューが必要ですが、今回はシンプルにします */
    }
    
    .phone-number {
        font-size: 1.8rem;
    }
}