:root {
    --primary-color: #00a86b; /* サステナブルなグリーン */
    --secondary-color: #00bfff; /* レーザー感のあるブルー */
    --dark-bg: #1a1a1a;
    --light-bg: #f4f7f6;
    --text-color: #333;
    --light-text-color: #f0f0f0;
    --white-color: #ffffff;
    --border-radius: 8px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body {
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white-color);
}

h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 3rem; margin-bottom: 0.5rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--dark-bg); color: var(--light-text-color); }
.bg-dark h2 { color: var(--white-color); }

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
    color: #555;
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.site-header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}

.site-header nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    transition: color 0.3s;
}

.site-header nav a:hover {
    color: var(--primary-color);
}

/* Hero Section */
#hero {
    color: var(--white-color);
    text-align: center;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明の黒 */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}


#hero .subtitle { font-size: 1.2rem; opacity: 0.9; }

/* CTA Buttons */
.cta-button, .cta-button-small {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--primary-color);
    color: var(--white-color);
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: transform 0.3s, background-color 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cta-button:hover { transform: translateY(-3px); background-color: #008a59; }

.cta-button.secondary {
    background-color: transparent;
    border: 2px solid var(--white-color);
}
.cta-button.secondary:hover { background-color: rgba(255,255,255,0.1); }

.cta-button-small { padding: 8px 20px; font-size: 0.9rem; }

.cta-group { margin-top: 30px; display: flex; justify-content: center; gap: 20px; }

/* Card */
.card {
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    transition: transform 0.3s;
}
.card:hover { transform: translateY(-5px); }

#service .service-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.manufacturer-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
    margin-top: 60px;
}

.logo-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}

.logo-image:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

/* Comparison Table */
.comparison-table-wrapper { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 40px;
}

table th, table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

table th { background-color: var(--light-bg); font-size: 1.1rem; }

table .highlight-col {
    background-color: #e6f6f1;
}

table .highlight-col strong { color: var(--primary-color); }

.guarantee-info {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
}

/* Technology */
#technology .tech-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

#technology .tech-point {
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    background-color: rgba(18, 18, 18, 0.35);
    backdrop-filter: none;
    transition: background-color 0.3s, border-color 0.3s, transform 0.3s, backdrop-filter 0.3s;
}

#technology .tech-point:hover {
    background-color: rgba(18, 18, 18, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    transform: translateY(-6px);
}

/* FAQ */
.faq-item { 
    border-bottom: 1px solid #e0e0e0;
}
.faq-item details {
    padding: 20px 0;
}
.faq-item summary {
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    list-style: none; /* Safari */
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: transform 0.3s;
}
.faq-item details[open] summary::after {
    transform: rotate(45deg);
}
.faq-item p {
    margin-top: 15px;
    padding-left: 10px;
    border-left: 3px solid var(--primary-color);
}

/* Contact Form */
.contact-form {
    max-width: 700px;
    margin: 40px auto 0 auto;
    background: var(--white-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 168, 107, 0.3);
}
.contact-form .cta-button { width: 100%; border: none; font-size: 1.2rem; }

/* Footer */
.site-footer-bottom {
    background-color: var(--dark-bg);
    color: var(--light-text-color);
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .site-header .container { flex-direction: column; gap: 10px; }
    .site-header nav ul { flex-wrap: wrap; justify-content: center; gap: 15px; }

    .cta-group { flex-direction: column; }
}

/* Full Width Video Section */
.video-section {
    width: 100%;
    height: 450px; /* 高さを指定 */
    overflow: hidden;
    position: relative;
    background-color: #000; /* 動画読み込み中の背景色 */
}

.full-width-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* コンテナに合わせて動画をトリミング */
}

/* --- Process Flowchart --- */
.process-flowchart {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2px;
    margin-top: 3rem;
    overflow-x: auto;
    padding-bottom: 1rem; /* for scrollbar */
}

.step-flow {
    position: relative;
    padding: 1.5rem 2.5rem 1.5rem 1.5rem; /* Right padding for arrow */
    color: white;
    text-align: center;
    clip-path: polygon(0% 0%, 88% 0%, 100% 50%, 88% 100%, 0% 100%);
    transition: transform 0.3s ease;
}

.step-flow:hover {
    transform: scale(1.05);
    z-index: 10;
}

.step-flow:last-child {
    clip-path: none;
    padding-right: 1.5rem;
}

.step-flow img {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
}

.step-flow h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 700;
}

.step-flow p {
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

/* Step Colors */
.step-1 { background-color: #1E3A8A; }
.step-2 { background-color: #2563EB; }
.step-3 { background-color: #059669; }
.step-4 { background-color: #10B981; }
.step-5 { background-color: #F59E0B; }
.step-6 { background-color: #374151; }


/* Responsive adjustments for flowchart */
@media (max-width: 1024px) {
    .process-flowchart {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    .step-flow, .step-flow:last-child {
        clip-path: none; /* Remove arrow shape */
        border-radius: var(--border-radius);
        padding: 2rem;
    }
    .step-flow:hover {
        transform: translateY(-5px);
    }
}

/* Video Container for Cropping */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.video-container .hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
}

/* Responsive video cropping for mobile */
@media (max-width: 768px) {
    #hero {
        padding: 0; /* Remove padding to make video container full width/height */
        height: 100vw; /* Make hero section square */
    }

    .video-container {
        /* The container is already full size of #hero, which is now square */
    }

    .video-container .hero-video {
        /* The video is 1920x1080 (16:9). The container is square (1:1). */
        /* To fill the height of the square, video height must be 100%. */
        /* Its width will then be 100% * (16/9) = 177.77% of the container's width. */
        height: 100%;
        width: auto; /* Let browser calculate width based on aspect ratio */
        
        /* Reposition the video. */
        /* 'left: 0' will align the video's left edge with the container's left edge. */
        /* 'transform' will center it vertically. */
        left: 0;
        transform: translateY(-50%);
    }
}
