@charset "utf8";

/* --------Base Style-------- */

body {
    font-family: 'Noto Sans JP',
                 "Helvetica Neue", 
                 "Helvetica", 
                 "Hiragino Sans", 
                 "Arial", 
                 "Yu Gothic", 
                 "Meiryo", 
                 sans-serif; 
    font-weight: 400; /* Regular */
    font-size: 1rem;
    line-height: 1.6;
    color: #24292e;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
}

*, *::before, *::after {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

label,
input,
textarea,
button {
    cursor: pointer;
}

button {
    border: none;
    background: none;
}

/* ========== sec-title共通 ========== */

.sec-title {
    display: flex;
    text-align: center;
    color: #f8f8ff;
}    

/* ========== header ========== */

.header {
    width: 100%;
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    color: #f8f8ff;
    height: 50px;
}

.header-list {
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.header-list a {
    color: #f8f8ff;
    font-weight: 500;
}

/* ========== hero ========== */

.hero {
    height: 100vh;
    background-image: url("../images/car-maintenance1.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    animation: heroFade 1.5s ease forwards;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #f8f8ff;
    max-width: 1200px;
    padding: 0 20px;
}

.hero p {
    text-align: center;
    font-size: 1.2rem;
    color: #f8f8ff;
}

/* ========== fade-item共通 ========== */

.fade-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-item.is-show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes heroFade {
    to {
        opacity: 1;
    }
}

.fade-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-section.is-show {
    opacity: 1;
    transform: translateY(0);
}

/* ========== 遅延共通 ========== */

.delay-1 { transition-delay: 0.3s; }
.delay-2 { transition-delay: 0.6s; }

/* ========== SP対応：100vh の崩れ対策 ========== */

.hero,
.service-gallery,
.sarvice,
.maintenance,
.usedcar,
.price {
    min-height: 100vh;
    min-height: 100svh; /* 新仕様対応 */
}

/* ========== 文字が背景に負けない調整 ========== */

.hero h2,
.hero p,
.sec-title,
.service-gallery-lead,
.service-lead,
.maintenance-lead,
.usedcar-lead,
.price-lead,
.shop p {
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* ========== service-gallery ========== */

.service-gallery {
    height: 100vh;
    background-image: url(../images/car-maintenance2.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-gallery-lead {
    text-align: center;
    color: #f8f8ff;
    font-size: 1.2rem;
}

.service-gallery::before {
    content: "";
    position: absolute;
    inset: 0;
    background: reba(0, 0, 0, 0.55);
}

.service-gallery > * {
    position: relative;
    z-index: 1;
}

/* ========== service ========== */

.sarvice {
    height: 100vh;
    background-image: url(../images/oil-maintenance.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-lead {
    text-align: center;
    color: #f8f8ff;
    font-size: 1.2rem;
}

.service-lead::before {
    content: "";
    position: absolute;
    inset: 0;
    background: reba(0, 0, 0, 0.55);
}

.service-lead > * {
    position: relative;
    z-index: 1;
}

/* ========== maintenance ========== */

.maintenance {
    height: 100vh;
    background-image: url(../images/tire-maintenance.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.maintenance-lead {
    text-align: center;
    color: #f8f8ff;
    font-size: 1.2rem;
}

.maintenance-lead::before {
    content: "";
    position: absolute;
    inset: 0;
    background: reba(0, 0, 0, 0.55);
}

.maintenance-lead > * {
    position: relative;
    z-index: 1;
}

/* ========== usedcar ========== */

.usedcar {
    height: 100vh;
    background-image: url(../images/car-picture.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.usedcar-lead {
    text-align: center;
    color: #f8f8ff;
    font-size: 1.2rem;
}

.usedcar-lead::before {
    content: "";
    position: absolute;
    inset: 0;
    background: reba(0, 0, 0, 0.55);
}

.usedcar-lead > * {
    position: relative;
    z-index: 1;
}

/* ========== price ========== */

.price {
    height: 100vh;
    background-image: url(../images/under-the-car.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.price-lead {
    text-align: center;
    color: #f8f8ff;
    font-size: 1.2rem;
}

.price-lead::before {
    content: "";
    position: absolute;
    inset: 0;
    background: reba(0, 0, 0, 0.55);
}

.price-lead > * {
    position: relative;
    z-index: 1;
}

/* ========== shop ========== */

.shop {
    background: #00bfff;
    margin: 0;
    padding: 0;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.shop .sec-title {
    margin: 0 0 20px 0;
    display: block;
    color: #f8f8ff;
}

.shop p {
    margin: 0;
    color: #f8f8ff;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ========== footer ========== */

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0000cd;
    text-align: center;
    color: #f8f8ff;
    height: 80px;
}

/* ========== レスポンシブ対応（スマホ） ========== */

@media screen and (max-width: 768px) {

    /* ===== header ===== */

    .header {
        background: transparent;
        backdrop-filter: none;
    }

    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    .header-logo {
        height: auto;
        font-size: 1.4rem;
    }

    .header-list {
        gap: 20px;
        justify-content: center;
        flex-wrap: wrap;
        font-size: 0.9rem;
    }

    /* ===== hero ===== */

    .hero {
        padding-top: 200px;
        box-sizing: border-box;
    }

    .hero h2 {
        font-size: 1.5rem;
        line-height: 1.4;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn-primary {
        margin-top: 20px;
        padding: 12px 24px;
        font-size: 1rem;
    }

    /* ===== section共通 ===== */

    .sec-title {
        font-size: 1.6rem;
        margin-bottom: 16px;
    }

    .service-gallery-lead,
    .service-lead,
    .maintenance-lead,
    .usedcar-lead,
    .price-lead {
        font-size: 1rem;
        line-height: 1.7;
    }

    /* ===== shop ===== */

    .shop {
        padding: 40px 20px;
    }

    .shop p {
        font-size: 1rem;
    }

    /* ===== footer ===== */

    .footer {
        height: 60px;
        font-size: 0.9rem;
    }
}

/* ========== レスポンシブ対応（タブレット） ========== */

@media screen and (max-width: 1024px) {

    .header-inner {
        padding: 16px 20px;
    }

    .header-list {
        gap: 24px;
    }

    .hero-inner {
        max-width: 90%;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .sec-title {
        font-size: 1.8rem;
    }

    .service-gallery-lead,
    .service-lead,
    .maintenance-lead,
    .usedcar-lead,
    .price-lead {
        font-size: 1.1rem;
        padding: 0 20px;
    }
}


    

