/* KARWAN.JP 共通スタイル - 黒×金の高級デザイン */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

:root {
    --gold: #D4AF37;
    --gold-light: #F4E4B8;
    --gold-dark: #B8941E;
    --black: #000000;
    --black-light: #1a1a1a;
    --gray: #2a2a2a;
    --white: #ffffff;
}

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.8;
    font-size: 16px;
}

/* ヘッダー */
.header {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--gold);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 2px;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s;
    position: relative;
    padding-bottom: 5px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--gold);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 28px;
    cursor: pointer;
}

/* メインコンテンツ */
main {
    margin-top: 80px;
}

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

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

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--gold-light);
    margin-bottom: 60px;
}

/* カード */
.card {
    background: var(--black-light);
    border: 1px solid var(--gray);
    border-radius: 10px;
    padding: 30px;
    transition: all 0.3s;
}

.card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--black);
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--black);
}

/* グリッドレイアウト */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* バッジ */
.badge {
    display: inline-block;
    padding: 5px 15px;
    background: var(--gold);
    color: var(--black);
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    margin-right: 10px;
}

/* タグ */
.tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--gray);
    color: var(--gold);
    font-size: 13px;
    border-radius: 5px;
    margin: 5px 5px 5px 0;
}

/* フッター */
.footer {
    background: var(--black-light);
    border-top: 1px solid var(--gold);
    padding: 60px 0 30px;
    margin-top: 100px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--gold);
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--gray);
    color: var(--gold-light);
}

/* フォーム */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 10px;
}

.form-control {
    width: 100%;
    padding: 15px;
    background: var(--black-light);
    border: 1px solid var(--gray);
    border-radius: 8px;
    color: var(--white);
    font-size: 16px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

/* アラート */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(46, 160, 67, 0.2);
    border: 1px solid #2ea043;
    color: #7ee787;
}

.alert-error {
    background: rgba(248, 81, 73, 0.2);
    border: 1px solid #f85149;
    color: #ff7b72;
}

.alert-info {
    background: rgba(56, 139, 253, 0.2);
    border: 1px solid #388bfd;
    color: #79c0ff;
}

/* テーブル */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--black-light);
    border-radius: 10px;
    overflow: hidden;
}

.table thead {
    background: var(--gray);
}

.table th,
.table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--gray);
}

.table th {
    color: var(--gold);
    font-weight: 700;
}

.table tbody tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

/* レスポンシブ */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 70px;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        border-top: 1px solid var(--gold);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 28px;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 14px;
    }
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ローディング */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--gold);
}

.loading::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* スライダースタイル */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: var(--black);
}

.slider-container {
    position: relative;
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--black) 0%, var(--black-light) 100%);
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.slide-content h2 {
    font-size: 48px;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.slide-content p {
    font-size: 20px;
    color: var(--gold-light);
    margin-bottom: 30px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.2);
    border: 2px solid var(--gold);
    color: var(--gold);
    width: 50px;
    height: 50px;
    font-size: 30px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: var(--gold);
    color: var(--black);
}

.slider-arrow.prev {
    left: 30px;
}

.slider-arrow.next {
    right: 30px;
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid var(--gold);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active,
.dot:hover {
    background: var(--gold);
    transform: scale(1.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 車両カードスタイル */
.vehicle-card {
    overflow: hidden;
}

.vehicle-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    margin-bottom: 20px;
}

.vehicle-info {
    padding: 0 5px;
}

.vehicle-info h3 {
    color: var(--gold);
    font-size: 20px;
    margin-bottom: 15px;
}

.vehicle-specs {
    margin-bottom: 15px;
}

.vehicle-price {
    font-size: 28px;
    font-weight: 900;
    color: var(--gold);
    margin: 20px 0;
}

/* レスポンシブ - スライダー */
@media (max-width: 768px) {
    .hero-slider {
        height: 500px;
    }
    
    .slide-content h2 {
        font-size: 32px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .slider-arrow.prev {
        left: 15px;
    }
    
    .slider-arrow.next {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 400px;
    }
    
    .slide-content h2 {
        font-size: 24px;
    }
    
    .slide-content p {
        font-size: 14px;
    }
}
