﻿@charset "UTF-8";

/* =========================================================
   Base & Reset Settings
========================================================= */
html {
    overflow-x: hidden;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #1a1a1a;
    background-color: #fafafa;
    /* Fallback color */
    line-height: 1.8;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

/* Stylish Body Background Image Layer */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../img/11.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08;
    /* Very subtle and non-intrusive */
    z-index: -100;
    pointer-events: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* 遖∵ｭ｢莠矩・ｼ壼承繧ｯ繝ｪ繝・け遖∵ｭ｢逕ｨ */
.no-context {
    -webkit-touch-callout: none;
}

/* =========================================================
   Typography & Utilities
========================================================= */
.section-gap {
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .section-gap {
        margin-bottom: 0px;
    }

    .md\:py-12 {
        padding-top: 70px !important;
        padding-bottom: 70px !important;
    }
}

/* Mobile specific overlap prevention and spacing */
@media (max-width: 767px) {
    .section-gap {
        margin-bottom: 10px;
    }

    section[id],
    section {
        padding-bottom: 40px !important;
    }

    .fv-section {
        margin-top: 80px;
        padding-top: 0 !important;
        /* FV doesn't need extra top padding */
    }
}

/* Stylish Section Titles */
.section-title-wrapper {
    position: relative;
    text-align: center;
    padding-top: 1rem;
    margin-bottom: 2rem;
    overflow: hidden;
    /* Prevent decorative text from causing horizontal scroll */
}

@media (min-width: 768px) {
    .section-title-wrapper {
        margin-bottom: 3rem;
    }
}

.section-title {
    position: relative;
    display: inline-block;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #1a1a1a;
    z-index: 1;
}

.section-title::before {
    content: attr(data-en);
    position: absolute;
    top: -3rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 900;
    color: rgba(26, 26, 26, 0.04);
    white-space: nowrap;
    z-index: -1;
    letter-spacing: 0.15em;
}

@media (max-width: 767px) {
    .section-title::before {
        font-size: 3.5rem;
        top: -1.8rem;
        opacity: 0.5;
        /* Slight adjustment for mobile clarity */
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: #E60012;
}

.section-title.text-white {
    color: #fff;
}

.section-title.text-white::before {
    color: rgba(255, 255, 255, 0.08);
}

/* =========================================================
   Header & Navigation
========================================================= */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

/* Hamburger Overlay Menu */
.sp-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(26, 26, 26, 0.98);
    color: #fff;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.sp-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sp-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
}

.hamburger {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: #1a1a1a;
    transition: 0.3s;
}

/* =========================================================
   First View (FV)
========================================================= */
.fv-section {
    position: relative;
    width: 100%;
    margin-top: 80px;
    /* offset for fixed header */
    overflow: hidden;
}

/* No height fixed to support standard image aspect ratio scaling */
.fv-swiper {
    width: 100%;
}

.fv-swiper img {
    width: 100%;
    height: auto;
    vertical-align: bottom;
    /* 逕ｻ蜒丈ｸ九・髫咎俣髦ｲ豁｢ */
}

.scroll-indicator {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 2px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.4);
}

.scroll-indicator::after {
    content: '';
    display: block;
    width: 100%;
    height: 15px;
    background-color: #fff;
    animation: scroll-line 2s infinite ease-in-out;
}

@keyframes scroll-line {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    50.1% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* =========================================================
   Design Components
========================================================= */
/* Broken Grid for About */
.broken-grid-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 768px) {
    .broken-grid-wrap {
        flex-direction: row;
        align-items: stretch;
    }

    .broken-grid-text {
        width: 60%;
        margin-right: -10%;
        margin-top: 5%;
        z-index: 2;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        /* Very subtle, requested no shadow on images, text shadow is usually okay for text panel but we'll keep it clean */
    }

    .broken-grid-img {
        width: 50%;
        z-index: 1;
    }
}

/* Service Alternating Customization */
.service-row:nth-child(even) {
    flex-direction: row-reverse;
}

/* Parallax Background */
.parallax-bg {
    background-attachment: scroll;
    /* fallback */
    background-size: cover;
    background-position: center;
}

@media (min-width: 768px) {
    .parallax-bg {
        background-attachment: fixed;
    }
}

/* CTA Buttons */
.btn-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    font-weight: 700;
    color: #fff;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.4;
}

@media (max-width: 767px) {
    .btn-cta {
        margin-bottom: 12px;
    }

    .btn-cta:last-child {
        margin-bottom: 0;
    }
}

.btn-carview {
    background-color: #E60012;
}

.btn-carsensor {
    background-color: #F39C12;
}

.btn-tel {
    background-color: #27ae60;
}

.btn-cta:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
}

/* SP Fixed Bottom CTA */
.sp-fixed-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 990;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
    .sp-fixed-cta {
        display: flex;
    }
}

.sp-fixed-cta a {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

/* Page Top Button */
#page-top {
    position: fixed;
    bottom: 80px;
    /* Above fixed CTA on SP */
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #1a1a1a;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 995;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

@media (min-width: 768px) {
    #page-top {
        bottom: 30px;
        right: 30px;
    }
}

#page-top.show {
    opacity: 1;
    visibility: visible;
}

/* Gallery Slider Adjustments */
.gallery-swiper .swiper-slide {
    width: 100%;
    max-width: 400px;
    transition: transform 0.3s ease;
}

.gallery-swiper .swiper-slide:hover {
    transform: scale(1.03);
}

/* Base structural layout for asymmetrical lists */
.asym-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.asym-left {
    width: 100%;
}

.asym-right {
    width: 100%;
}

@media (min-width: 768px) {
    .asym-left {
        width: 45%;
    }

    .asym-right {
        width: 50%;
    }

    /* Slight asymmetry 45% vs 50% vs 5% gap */
}

@media screen and (max-width: 781px) {
    .p-6 {
        padding: 40px 10px !important;
    }

    .service-row {
        flex-direction: column-reverse !important;
    }

    section[id],
    section {
        padding-top: 0px !important;
        padding-bottom: 40px !important;
    }

    #cta-block-2 {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
}