* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
    line-height: 1.8;
    color: #333333;
    background: #ffffff;
    overflow-x: hidden;
}

/* ヘッダー */
header {
    background: transparent;
    color: white;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    max-width: 100vw;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden;
}

header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo img {
    height: 40px;
    width: auto;
    filter: brightness(1.2);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.global-nav {
    display: flex;
    gap: 35px;
    list-style: none;
}

.global-nav a {
    color: white;
    text-decoration: none;
    font-weight: 300;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: color 0.3s;
    position: relative;
}

.global-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #dc0013;
    transition: width 0.3s;
}

.global-nav a:hover::after {
    width: 100%;
}

.header-contact {
    display: flex;
    gap: 20px;
    align-items: center;
}

.phone {
    font-size: 1.2rem;
    font-weight: 300;
    text-decoration: none;
    color: white;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.phone:hover {
    color: #dc0013;
}

.instagram-button {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 300;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.instagram-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(225, 48, 108, 0.4);
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: white;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* モバイルメニュー */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(0, 0, 0, 0.98);
    z-index: 999;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu nav {
    list-style: none;
}

.mobile-menu nav a {
    display: block;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s;
}

.mobile-menu nav a:hover {
    color: #dc0013;
}

/* アイコンボタン(モバイル用) */
.icon-button {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    padding: 8px;
    flex-shrink: 0;
}

.icon-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.phone-icon {
    background: rgba(255, 255, 255, 0.1);
}

.phone-icon:hover {
    background: #dc0013;
}

.instagram-icon {
    background: rgba(255, 255, 255, 0.1);
}

.instagram-icon:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* ヒーローセクション */
.hero {
    position: relative;
    color: white;
    padding: 0;
    margin-top: 0;
    overflow: hidden;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333333;
}

.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg-slide.active {
    opacity: 1;
}

.hero-bg-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding-bottom: 80px;
}

.hero .subtitle {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 4px;
    display: inline-block;
    overflow: hidden;
}

.fadeUp {
    display: inline-block;
    transform: translateY(100%);
    animation: fadeUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes fadeUp {
    0% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(0);
    }
}

.hero p {
    font-size: 1rem;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 2px;
    line-height: 2;
}

.hero-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-button {
    padding: 18px 50px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: 2px;
    transition: all 0.3s;
    border: 2px solid white;
}

.instagram-hero {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.instagram-hero:hover {
    background: white;
    color: #333333;
}

/* セクション共通 */
section {
    padding: 120px 40px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 80px;
    color: #333333;
    font-weight: 700;
    letter-spacing: 6px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.section-title-ja {
    font-size: 1rem;
    color: #999;
    font-weight: 500;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, #dc0013 0%, #F7931E 100%);
}

/* サービス内容 */
.services {
    background: #222;
}

.services .container {
    padding: 0;
    max-width: 100%;
}

.service-section {
    display: flex;
    align-items: center;
    min-height: 50vh;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    background: #fafafa;
}

.service-section:last-child {
    margin-bottom: 0;
}

.section-2,
.section-4 {
    flex-direction: row-reverse;
}

.seivice-content {
    width: 40%;
    padding: 50px 70px;
    z-index: 2;
}

.section-2 .seivice-content,
.section-4 .seivice-content {
    text-align: right;
}

.seivice-title {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 5px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #dc0013;
}

.seivice-subtitle {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #333;
}

.seivice-description {
    font-size: 16px;
    line-height: 2;
    margin-bottom: 0;
    color: #333;
    font-weight: 300;
}

.image-container {
    width: 60%;
    position: relative;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.section-1 .image-container,
.section-3 .image-container {
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}

.section-2 .image-container,
.section-4 .image-container {
    clip-path: polygon(0 0, 80% 0, 100% 100%, 0 100%);
}

.car-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.car-image.sales {
    max-width: 100%;
}


/* 注文フローセクション */
.order-flow {
    background: white;
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.flow-item {
    text-align: center;
    padding: 30px 20px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
    position: relative;
}

.flow-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #dc0013;
}

.flow-number {
    position: absolute;
    top: -20px;
    left: -20px;
    font-size: 4rem;
    font-family: "Roboto", sans-serif;
    font-style: italic;
    font-weight: 700;
    color: #ffe1e0;
    line-height: 1;
    margin: 0;
}

.flow-item h3 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #333333;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.flow-item p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    font-weight: 300;
}

.flow-arrow {
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #dc0013;
    z-index: 10;
}

.flow-item:nth-child(3n) .flow-arrow {
    display: none;
}

/* 特徴セクション */
.features {
    background: #222;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.feature-card {
    text-align: center;
    padding: 20px 20px 50px 20px;
    position: relative;
    background: white;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}


.feature-image-wrapper {
    width: 100%;
    max-width: 350px;
    height: 250px;
    margin: 0 auto 30px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.feature-img_01 {
    background-image: url(/img/strength_01.png);
}

.feature-img_02 {
    background-image: url(/img/strength_02.png);
}

.feature-img_03 {
    background-image: url(/img/strength_03.png);
}

.feature-card h3 {
    margin: 25px 0;
    color: #333333;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 1.4rem;
}

.feature-card h3 span {
    color: #dc0013;
}


.feature-card p {
    color: #666;
    line-height: 2;
    font-weight: 300;
}

/* 納車写真ギャラリー */
.gallery {
    background: white;
}

.gallery-intro {
    text-align: center;
    margin-bottom: 60px;
    font-size: 1.1rem;
    color: #666;
    font-weight: 300;
    letter-spacing: 1px;
}

.gallery-cta {
    text-align: center;
    margin-top: 60px;
}

.gallery-cta p {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 30px;
    font-weight: 400;
    letter-spacing: 1px;
}

.slider-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.slider-slide {
    min-width: calc(100% / 3);
    flex-shrink: 0;
    padding: 0 10px;
    box-sizing: border-box;
}

.gallery-item {
    width: 100%;
    padding-bottom: 100%;
    position: relative;
    background: #f0f0f0;
    overflow: hidden;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    font-size: 2rem;
}

.slider-nav:hover {
    background: linear-gradient(135deg, #dc0013 0%, #F7931E 100%);
}

.slider-nav.prev {
    left: 0;
}

.slider-nav.next {
    right: 0;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.dot.active {
    background: linear-gradient(90deg, #dc0013 0%, #F7931E 100%);
    width: 40px;
    border-radius: 6px;
}

/* 在庫車両セクション */
.inventory {
    background-image: url(/img/inventory_bg.webp);
    background-position: bottom center;
    background-size: cover;
    background-repeat: no-repeat;
}

.section-title.white {
    color: white;
}


.inventory-intro {
    text-align: center;
    margin-bottom: 60px;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 300;
}

.inventory-links {
    display: flex;
    gap: 60px;
    justify-content: center;
    flex-wrap: wrap;
}

.inventory-link {
    background: white;
    opacity: 0.95;
    padding: 30px;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 500px;
    border: 1px solid #e0e0e0;
}

.inventory-link:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #dc0013;
}

.inventory-logo {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.goo-logo {
    color: #ff6b00;
    font-weight: 600;
}

.carsensor-logo {
    color: #0066cc;
}

.inventory-text {
    font-size: 1.1rem;
    font-weight: 300;
    color: #333;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.view-button {
    background: transparent;
    color: #333333;
    padding: 15px 40px;
    border: 1px solid #333333;
    font-weight: 300;
    letter-spacing: 2px;
    transition: all 0.3s;
}

.inventory-link:hover .view-button {
    background: linear-gradient(90deg, #dc0013 0%, #F7931E 100%);
    border-color: #dc0013;
    color: #fff;
}

/* 店舗情報 */
.shop-info {
    background: white;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.info-box {
    background: #fafafa;
    padding: 50px;
    border: 1px solid #e0e0e0;
}

.info-box h3 {
    color: #333333;
    margin-bottom: 40px;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 3px;
    border-bottom: 1px solid #dc0013;
    padding-bottom: 20px;
}

.info-item {
    margin-bottom: 25px;
    display: flex;
    gap: 0;
    align-items: flex-start;
}

.info-label {
    font-weight: 300;
    min-width: 100px;
    color: #333333;
    letter-spacing: 1px;
}

.info-value {
    flex: 1;
    color: #666;
    font-weight: 300;
}

.info-value a {
    color: #dc0013;
    text-decoration: none;
    font-weight: 400;
}

.map-container {
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    min-height: 300px;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
}

/* CTAセクション */
.cta-section {
    background: #222;
    color: white;
    text-align: center;
    padding: 120px 40px;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 60px;
    font-weight: 300;
    letter-spacing: 2px;
    line-height: 2;
}

.cta-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 20px 60px;
    text-decoration: none;
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: 2px;
    transition: all 0.3s;
}

.cta-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.cta-instagram:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(225, 48, 108, 0.4);
}

.cta-phone {
    background: transparent;
    color: white;
    border: 2px solid #dc0013;
}

.cta-phone:hover {
    background: linear-gradient(90deg, #dc0013 0%, #F7931E 100%);
    color: #fff;
    border-color: #dc0013;
}

/* フッター */
footer {
    background: #111;
    color: white;
    padding: 60px 40px 30px;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.company-info {
    line-height: 1.8;
    font-weight: 300;
    letter-spacing: 1px;
    justify-content: center;
    display: grid;
}

.company-info_address {
    text-align: left;
    margin-bottom: 40px;
}

.company-info_address_name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #fff;
    text-align: center;
}

.company-name {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.company-name img {
    height: 50px;
    width: auto;
    filter: brightness(1.2);
}

.footer-copyrights {
    font-size: 0.8rem;
}

footer p {
    font-weight: 300;
    letter-spacing: 1px;
    color: #999;
    font-size: 0.9rem;
}

.instagram_container {
    max-width: 90vw;
    margin: 0 auto;
}

.flow-icon img {
    width: 50px;
    margin-top: 0.3rem;
    margin-bottom: 0.8rem;
}

/* レスポンシブ用の改行制御 */
.br-sp {
    display: none;
}

.br-pc {
    display: inline;
}

/* レスポンシブ */
@media (max-width: 1024px) {
    .global-nav {
        gap: 25px;
    }

    .global-nav a {
        font-size: 0.9rem;
    }

    .section {
        flex-direction: column;
        min-height: auto;
    }

    .section-2,
    .section-4 {
        flex-direction: column;
    }

    .content,
    .image-container {
        width: 100%;
    }

    .content {
        padding: 60px 40px;
    }

    .section-2 .content,
    .section-4 .content {
        text-align: left;
    }

    .image-container {
        height: 60vh;
        clip-path: none !important;
    }

    .title {
        font-size: 36px;
    }

    .flow-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .flow-item:nth-child(2n) .flow-arrow {
        display: none;
    }

    .flow-item:nth-child(3n) .flow-arrow {
        display: block;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .map-container {
        min-height: 300px;
    }

    .map-container iframe {
        height: 300px;
    }

    .slider-slide {
        min-width: 100%;
    }
}

@media (max-width: 768px) {

    /* レスポンシブ改行制御 */
    .br-sp {
        display: inline;
    }

    .br-pc {
        display: none;
    }

    .header-content {
        padding: 0 15px;
        justify-content: space-between;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .logo img {
        height: 35px;
    }

    /* デスクトップ要素を非表示 */
    .global-nav,
    .phone,
    .instagram-button {
        display: none !important;
    }

    /* モバイル要素を表示 */
    .hamburger {
        display: flex;
    }

    .icon-button {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .header-right {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    .header-contact {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    .hero {
        height: 70vh;
    }

    .hero .subtitle {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-button {
        width: 100%;
    }

    section {
        padding: 80px 20px;
    }

    .services {
        padding: 50px 20px;
    }

    .service-section {
        flex-direction: column-reverse;
        min-height: auto;
        margin-bottom: 40px;
        border-radius: 10px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .section-2,
    .section-4 {
        flex-direction: column-reverse;
    }

    .seivice-content {
        width: 100%;
        padding: 40px 30px;
        text-align: center;
    }

    .section-2 .seivice-content,
    .section-4 .seivice-content {
        text-align: center;
    }

    .image-container {
        width: 100%;
        height: 200px;
        clip-path: none !important;
    }

    .car-image {
        max-width: 100%;
    }

    .seivice-title {
        font-size: 28px;
        letter-spacing: 4px;
    }

    .seivice-description {
        font-size: 15px;
    }

    .section-title {
        font-size: 1.8rem;
        letter-spacing: 3px;
    }

    .flow-grid {
        grid-template-columns: 1fr;
    }

    .flow-arrow {
        display: none !important;
    }

    .inventory-link {
        width: 100%;
        min-width: auto;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-button {
        width: 100%;
    }

    .slider-slide {
        min-width: 100%;
    }

    .info-item {
        flex-direction: column;
    }
}