/* General Styling */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    background-color: #f8f8f8;
}

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

.section-padding {
    padding: 80px 0;
}

.bg-light-gray {
    background-color: #f2f2f2;
}

h1, h2, h3 {
    color: #004d99; /* Dark Blue */
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    font-size: 3em;
    margin-bottom: 30px;
}

h2 {
    font-size: 2.5em;
    position: relative;
    padding-bottom: 15px;
}
h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #ff6600; /* Orange */
}

/* Header */
header {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    font-size: 4.0em;
    font-weight: bold;
    color: #004d99; /* Dark Blue */
    text-decoration: none;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 5px 0;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ff6600; /* Orange */
}

.lang-switch {
    border: 1px solid #ff6600;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin-left: 20px;
}

.lang-switch:hover {
    background-color: #ff6600;
    color: #fff;
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 150px 20px;
    position: relative;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay for readability */
    z-index: 1;
}
.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: #fff;
    font-size: 3.5em;
    margin-bottom: 40px;
    line-height: 1.3;
}

.cta-button {
    display: inline-block;
    background: #ff6600; /* Orange */
    color: #fff;
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #e65c00; /* Darker Orange */
}

/* Service & Fuel Grid */
.service-grid, .fuel-grid, .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item, .fuel-item, .blog-post {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
}

.service-item:hover, .fuel-item:hover, .blog-post:hover {
    transform: translateY(-10px);
}

.service-img, .fuel-img, .blog-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-item h3, .fuel-item h3, .blog-post h3 {
    margin: 20px 0 10px;
    font-size: 1.5em;
    color: #004d99;
}

.service-item p, .fuel-item p, .blog-post p {
    padding: 0 20px 20px;
    font-size: 0.95em;
    color: #555;
}

/* Company Section */
.company-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.company-img {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.company-text {
    flex: 2;
    min-width: 300px;
    text-align: left;
}
.company-text p {
    margin-bottom: 10px;
    color: #444;
}
.company-text h3 {
    text-align: left;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.8em;
    color: #004d99;
}
.company-text h3::after {
    content: none; /* Sub-headings don't need the line */
}

/* パートナーセクションのスタイル */
.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* 小さな画面で折り返すように設定 */
    gap: 30px; /* ロゴ間のスペース */
    margin-top: 40px;
}

.partner-item {
    text-align: center;
}

.partner-item img {
    max-width: 150px; /* ロゴの最大幅 */
    height: auto;
    filter: grayscale(100%); /* ロゴをモノクロにする */
    opacity: 0.8;
    transition: all 0.3s ease;
}

.partner-item img:hover {
    filter: grayscale(0%); /* ホバーでカラーに戻す */
    opacity: 1;
}
/* Blog Section */
.blog-post {
    text-align: left;
    text-decoration: none;
    color: #333;
}
.blog-post h3 {
    font-size: 1.3em;
    margin: 15px 20px 5px;
    text-align: left;
    color: #004d99;
}
.blog-post p {
    font-size: 0.85em;
    color: #777;
    text-align: left;
    padding-bottom: 15px;
}


/* Contact Form */
.contact-form {
    max-width: 700px;
    margin: 40px auto 0;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #004d99;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: calc(100% - 20px);
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    color: #333;
}

.form-group textarea {
    resize: vertical;
}

.contact-form .cta-button {
    width: auto;
    display: block;
    margin: 0 auto;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
}

/* Footer */
footer {
    background: #004d99; /* Dark Blue */
    color: #fff;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5em;
    }
    h2 {
        font-size: 2em;
    }
    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }
    nav ul li {
        margin: 10px 0;
    }
    header .container {
        flex-direction: column;
    }
    .company-content {
        flex-direction: column;
    }
    .company-img {
        max-width: 100%;
    }
}