/* ==========================================================================
   Base Reset & Fonts
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url('img/bg_body.jpg'); 
    background-size: cover;
    background-attachment: fixed;
    background-color: #b2b4b5; 
    color: #ffffff;
    font-family: 'Noto Sans JP', 'Montserrat', sans-serif;
    line-height: 1.6;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-image: url('img/bg_header.jpg');
    background-repeat: repeat;
    background-size: auto;
    background-color: #000; 
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.logo img { height: 50px; width: auto; display: block; }
nav ul { list-style: none; display: flex; gap: 30px; }
nav a { text-decoration: none; color: #ccc; font-weight: 700; font-size: 0.9rem; transition: color 0.3s; text-shadow: 1px 1px 2px rgba(0,0,0,0.8); }
nav a:hover, nav a.active { color: #fff; border-bottom: 2px solid #fff; }

/* ==========================================================================
   Main Layout Logic
   ========================================================================== */
main { width: 100%; min-height: 100vh; }
.content-section { display: none; padding-bottom: 50px; }
.content-section.active { display: block; animation: fadeIn 0.5s ease; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================================
   HOME SECTION
   ========================================================================== */
.movie-container { width: 100%; max-width: 1184px; margin: 0 auto; background: #000; overflow: hidden; }
.movie-container video { width: 100%; height: auto; max-height: 768px; display: block; }

.features-container, .benefits-container { 
    display: flex; justify-content: center; gap: 20px; max-width: 1184px; 
    margin: 40px auto; padding: 0 20px; 
}

.feature-box, .benefit-box { 
    background-color: #f0f0f0; color: #333; flex: 1; padding: 30px; 
    border-radius: 4px; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.feature-box h3, .benefit-box h3 { 
    margin-bottom: 15px; font-size: 1.2rem; border-bottom: 2px solid #333; 
    padding-bottom: 10px; display: inline-block; 
}

.highlight { color: #d90000; font-weight: bold; }

.cutting-movie-wrapper { max-width: 1184px; margin: 40px auto; display: flex; justify-content: center; }
.cutting-movie-container { position: relative; width: 100%; max-width: 800px; overflow: hidden; border: 4px solid #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.cutting-movie-container video { width: 100%; display: block; }
.hover-message { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); color: #fff; display: flex; justify-content: center; align-items: center; font-size: 2rem; font-weight: bold; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.cutting-movie-container:hover .hover-message { opacity: 1; }

/* ==========================================================================
   PPF / ESTIMATION SECTION
   ========================================================================== */
.estimation-container {
    max-width: 1200px; margin: 40px auto; padding: 20px;
    background: radial-gradient(circle at center, #f9f9f9 0%, #dcdcdc 100%);
    color: #333; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    text-align: center;
}

/* タイトルエリアを横並びに */
.estimation-header-flex {
    display: flex; justify-content: center; align-items: center; gap: 20px;
    background-color: #e0e0e0; margin-bottom: 30px; padding: 10px 30px;
    border-radius: 4px; border: 1px solid #ccc;
}
.estimation-header-flex h2 { margin-bottom: 0 !important; font-size: 1.5rem; font-weight: 700; background: none; border: none; padding: 0; }

.simulator-layout { display: flex; flex-wrap: nowrap; gap: 0; margin-bottom: 40px; text-align: left; }
.sim-step h3 { font-size: 1.1rem; margin-bottom: 15px; border-bottom: 1px solid #999; padding-bottom: 5px; min-height: 2.5em; text-align: center; }
.step-maker { flex: 6; } .sim-spacer { flex: 1; min-width: 20px; } .step-model { flex: 16; } .step-film { flex: 4; }

.grid-maker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grid-maker .select-item { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 5px; }
.grid-model { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.grid-film { display: flex; flex-direction: column; gap: 20px; }

.select-item { cursor: pointer; border: 2px solid transparent; transition: all 0.3s; background: #fff; padding: 5px; border-radius: 4px; text-align: center; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.select-item img { width: 100%; height: auto; object-fit: contain; }
.select-item.selected { border-color: #d90000; box-shadow: 0 0 10px rgba(217, 0, 0, 0.4); }
.select-item.dimmed { opacity: 0.3; pointer-events: none; filter: grayscale(100%); }

.estimation-result { background-color: #ccc; padding: 30px; border-radius: 4px; margin-top: 20px; background-image: linear-gradient(to bottom right, #ddd, #bbb); }
.estimation-result h3 { font-size: 1.8rem; margin-bottom: 20px; text-align: center; border-bottom: 2px solid #fff; padding-bottom: 10px; }

.detail-item { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 15px; border-radius: 4px; margin-bottom: 10px; }
.detail-item .label { font-weight: bold; color: #555; }
.detail-item .value.price { font-size: 1.5rem; color: #d90000; font-weight: 700; }

/* お問い合わせボタンデザイン */
.inquiry-btn {
    background-color: #d90000; color: #fff; border: none;
    padding: 10px 24px; font-size: 1rem; font-weight: 700;
    border-radius: 4px; cursor: pointer; transition: 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2); vertical-align: middle;
}
.inquiry-btn:hover { background-color: #333; transform: translateY(-2px); }

/* ==========================================================================
   SHOP SECTION
   ========================================================================== */
.shop-container {
    max-width: 900px; margin: 40px auto; padding: 40px 20px;
    background: rgba(255, 255, 255, 0.95); color: #000;
    border-radius: 8px; text-align: center; box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.shop-title { font-size: 2rem; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 2px solid #d90000; display: inline-block; color: #000; }
.company-name { font-weight: 700; font-size: 1.3rem; margin-bottom: 15px; }
.tel a { color: #d90000; text-decoration: none; font-size: 1.4rem; font-weight: 700; }
.shop-map-image { max-width: 600px; margin: 20px auto 0; border: 5px solid #fff; box-shadow: 0 0 10px rgba(0,0,0,0.1); }
.shop-map-image img { width: 100%; height: auto; display: block; }

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-container {
    max-width: 800px; margin: 40px auto; padding: 50px 40px;
    background: rgba(255, 255, 255, 0.95); color: #333;
    border-radius: 8px; text-align: center; box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.contact-title { font-size: 2rem; margin-bottom: 10px; color: #333; }
.contact-subtitle { margin-bottom: 40px; font-size: 0.95rem; color: #666; }
#contact-form { display: flex; flex-direction: column; gap: 20px; text-align: left; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-weight: 700; }
.form-group label span { background: #d90000; color: #fff; font-size: 0.7rem; padding: 2px 6px; border-radius: 3px; margin-left: 10px; }
.form-group input, .form-group textarea { padding: 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; }
#submit-btn { background-color: #333; color: #fff; padding: 15px 60px; border: none; border-radius: 4px; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: 0.3s; width: 100%; }
#submit-btn:hover { background-color: #d90000; }

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); display: none;
    justify-content: center; align-items: center; z-index: 2000;
    backdrop-filter: blur(5px);
}
.modal-overlay.active { display: flex; animation: fadeIn 0.3s ease; }
.modal-content { background: #fff; color: #333; padding: 40px; border-radius: 8px; text-align: center; width: 450px; }
#modal-ok-btn { background-color: #333; color: #fff; border: none; padding: 12px 50px; font-size: 1rem; font-weight: 700; cursor: pointer; border-radius: 4px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .simulator-layout, .features-container, .benefits-container { flex-direction: column; }
    .sim-spacer { display: none; }
    header { flex-direction: column; gap: 15px; padding: 20px; }
    nav ul { gap: 15px; }
    .estimation-header-flex { flex-direction: column; gap: 10px; }
}