/* ================================================
   KO STUDIO — Premium Car Wrapping Theme
   Dark automotive aesthetic with gold accents
   ================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --black:        #0a0a0a;
    --dark:         #111111;
    --dark-card:    #181818;
    --dark-border:  #2a2a2a;
    --dark-hover:   #1f1f1f;
    --white:        #ffffff;
    --gray-light:   #f0f0f0;
    --gray:         #b0b0b0;
    --gray-dark:    #707070;
    --gold:         #c8a84b;
    --gold-light:   #e8c96a;
    --gold-dim:     rgba(200,168,75,0.15);
    --red:          #e63946;
    --red-dim:      rgba(230,57,70,0.15);
    --green:        #52b788;
    --blue:         #4895ef;
    --font-display: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
    --font-body:    'Noto Sans JP', sans-serif;
    --radius:       12px;
    --radius-sm:    8px;
    --radius-lg:    20px;
    --shadow:       0 4px 24px rgba(0,0,0,0.5);
    --shadow-lg:    0 8px 48px rgba(0,0,0,0.6);
    --transition:   all 0.3s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* --- Container --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ================================================
   HEADER / NAVBAR
   ================================================ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    isolation: isolate;
    background: #000000;
    box-shadow: 0 2px 24px rgba(0,0,0,0.8);
    transition: var(--transition);
}
.header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #000000;
    z-index: -1;
    pointer-events: none;
}

.navbar { padding: 0; }
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.nav-logo .logo-link { display: block; }
.nav-logo-image {
    display: block;
    height: 66px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}
.nav-logo h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}
.nav-logo h1 .highlight { color: var(--gold); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    display: inline-block;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.05em;
    white-space: nowrap;
    transition: var(--transition);
    position: relative;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 18px; right: 18px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover { color: var(--white); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link--highlight {
    background: var(--gold-dim);
    border: 1px solid rgba(200,168,75,0.3);
    color: var(--gold-light);
}
.nav-link--highlight:hover {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}
.nav-link--highlight::after { display: none; }

.nav-logo a { text-decoration: none; color: inherit; }

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    cursor: pointer;
    background: none;
    border: none;
}
.bar {
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(-45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(45deg); }

/* ================================================
   BUTTONS
   ================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: var(--font-body);
}
.btn-primary {
    background: var(--gold);
    color: var(--black);
    box-shadow: 0 4px 16px rgba(200,168,75,0.3);
}
.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-12px);
    box-shadow: 0 8px 24px rgba(200,168,75,0.4);
}
.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.5);
}

/* ================================================
   ABOUT PAGE — HERO (shared: used on about, ppf, reservation pages)
   ================================================ */
.about-hero {
    position: relative;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 24px 80px;
}
.about-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(200,168,75,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 60% 80% at 80% 50%, rgba(200,168,75,0.06) 0%, transparent 60%),
        linear-gradient(180deg, #0a0a0a 0%, #111111 100%);
}
.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><rect width="60" height="60" fill="none"/><line x1="0" y1="60" x2="60" y2="0" stroke="rgba(200,168,75,0.04)" stroke-width="1"/></svg>');
}
.about-hero-content {
    position: relative;
    text-align: center;
    z-index: 2;
}
.about-hero-tag {
    display: inline-block;
    padding: 6px 20px;
    background: var(--gold-dim);
    border: 1px solid rgba(200,168,75,0.3);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: 24px;
    text-transform: uppercase;
}
.about-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 24px;
    text-shadow: 0 2px 40px rgba(200,168,75,0.2);
}
.about-hero-sub {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

/* ================================================
   ABOUT CTA SECTION (shared: used on multiple pages)
   ================================================ */
.about-cta {
    position: relative;
    padding: 120px 24px;
    text-align: center;
    overflow: hidden;
}
.about-cta-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 70% at 50% 50%, rgba(200,168,75,0.08) 0%, transparent 70%),
        linear-gradient(180deg, var(--dark) 0%, var(--black) 100%);
}
.about-cta-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><rect width="60" height="60" fill="none"/><line x1="0" y1="60" x2="60" y2="0" stroke="rgba(200,168,75,0.04)" stroke-width="1"/></svg>');
}
.about-cta-content { position: relative; z-index: 2; }
.about-cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 20px;
}
.about-cta-content h2 span { color: var(--gold); }
.about-cta-content p {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}
.about-cta-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: var(--gold);
    color: var(--black);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(200,168,75,0.3);
}
.btn-cta-primary:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(200,168,75,0.4);
}
.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
}
.btn-cta-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-3px);
}

/* ================================================
   MAINTENANCE (shared: used on about.html and ppf.html)
   ================================================ */
.maint-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.maint-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}
.maint-card:hover {
    border-color: rgba(200,168,75,0.2);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.maint-icon {
    width: 56px;
    height: 56px;
    background: var(--gold-dim);
    border: 1px solid rgba(200,168,75,0.2);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 20px;
}
.maint-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 14px;
}
.maint-card > p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    margin-bottom: 16px;
}
.maint-card ul { display: flex; flex-direction: column; gap: 10px; }
.maint-card li {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}
.maint-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

/* ================================================
   FAQ (shared: used on about.html and ppf.html)
   ================================================ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.faq-item.open {
    border-color: rgba(200,168,75,0.25);
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px 28px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    user-select: none;
}
.faq-question:hover { background: rgba(255,255,255,0.03); }
.faq-question i {
    color: var(--gold);
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.faq-item.open .faq-answer { max-height: 600px; }
.faq-answer p {
    padding: 0 28px 22px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.85;
}
.faq-answer p:first-child { padding-top: 4px; }
.faq-answer strong { color: var(--white); font-weight: 600; }
.faq-answer br + strong { display: block; margin-top: 12px; }

/* ================================================
   PAGE HEADER (shared: used on gallery.html and contact.html)
   ================================================ */
.page-header {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, rgba(200,168,75,0.06) 0%, var(--black) 100%);
    text-align: center;
    border-bottom: 1px solid var(--dark-border);
}
.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 16px;
}
.page-header p,
.page-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.55);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    padding: 0 16px;
}

/* ================================================
   TABLE WRAPPER (shared: used on price.html and ppf.html)
   ================================================ */
.table-wrapper { overflow-x: auto; }

/* ================================================
   FOOTER
   ================================================ */
.footer {
    background: #060606;
    border-top: 1px solid var(--dark-border);
    padding: 56px 0 0;
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-section h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 16px;
}
.footer-section > p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.8;
    margin-bottom: 20px;
}
.social-links { display: flex; gap: 12px; }
.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(200,168,75,0.08);
    border: 1px solid rgba(200,168,75,0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 0.95rem;
    transition: var(--transition);
}
.social-links a:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-2px);
}
.footer-brand-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 520px;
    margin: 0 auto;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-brand-text p {
    text-align: center;
}

.footer-logo {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
}
.footer-section h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.footer-section ul li a,
.footer-section ul li span {
    display: inline-block;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
    line-height: 1.7;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.footer-section ul li a:hover { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid var(--dark-border);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
    line-height: 1.7;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.footer-address { text-align: right; }

/* ================================================
   SCROLL TO TOP
   ================================================ */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(200,168,75,0.35);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.scroll-to-top.visible { opacity: 1; visibility: visible; }
.scroll-to-top:hover { transform: translateY(-3px); background: var(--gold-light); }

/* ================================================
   NOTIFICATION
   ================================================ */
.notification {
    position: fixed;
    top: 90px;
    right: 24px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(calc(100% + 24px));
    transition: transform 0.3s ease;
    max-width: 360px;
}
.notification.show { transform: translateX(0); }

/* ================================================
   RESPONSIVE — Shared components
   ================================================ */
@media (max-width: 1024px) {
    .footer-content { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-content > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    body { overflow-x: hidden; }
    .container { padding: 0 20px; }

    .hamburger { display: flex; }
    .nav-logo-image {
        height: 46px;
        max-width: 180px;
    }
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0; right: 0;
        flex-direction: column;
        background: rgba(10,10,10,0.97);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--dark-border);
        padding: 20px 16px 24px;
        gap: 8px;
        transform: translateY(-120%);
        opacity: 0;
        transition: all 0.35s ease;
        pointer-events: none;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .nav-item { width: 100%; }
    .nav-link { width: 100%; text-align: center; padding: 12px 16px; }
    .nav-link--highlight { display: inline-flex; }

    .page-header { padding: 118px 0 56px; }
    .page-header p,
    .page-subtitle { max-width: 100%; padding: 0 4px; }

    .footer {
        padding-top: 40px;
    }
    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        margin-bottom: 32px;
    }
    .footer-content > .footer-brand-section {
        grid-column: 1 / -1;
    }
    .footer-section {
        text-align: center;
    }
    .footer-content > .footer-section:not(.footer-brand-section) {
        text-align: left;
        background: rgba(255,255,255,0.02);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 12px;
        padding: 16px 14px;
    }
    .footer-brand {
        gap: 10px;
    }
    .footer-logo {
        max-width: 220px;
    }
    .footer-section h4 {
        margin-bottom: 12px;
    }
    .footer-section ul {
        gap: 8px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 8px;
        padding: 18px 0 22px;
    }
    .footer-address { text-align: center; }
    .scroll-to-top { bottom: 20px; right: 16px; width: 44px; height: 44px; }

    .about-cta-btns { flex-direction: column; align-items: center; }
    .about-cta-btns .btn-cta-primary,
    .about-cta-btns .btn-cta-secondary { width: 100%; max-width: 320px; justify-content: center; }

    .about-hero { min-height: 52vh; padding: 112px 20px 56px; }
    .about-cta { padding: 88px 20px; }

    .maint-grid { grid-template-columns: 1fr; }
    .maint-card { padding: 24px; }
    .maint-icon { width: 48px; height: 48px; }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    .container { padding: 0 16px; }
    .footer {
        padding-top: 34px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 26px;
    }
    .footer-content > .footer-section:not(.footer-brand-section) {
        padding: 14px 12px;
    }
    .footer-logo {
        max-width: 180px;
    }
    .footer-section h4 {
        font-size: 0.8rem;
    }
    .footer-section ul li a,
    .footer-section ul li span,
    .footer-bottom p {
        font-size: 0.8rem;
        line-height: 1.65;
    }
    .nav-container { padding: 0 16px; height: 68px; }
    .nav-logo-image {
        height: 40px;
        max-width: 150px;
    }
    .nav-menu { top: 68px; }

    .page-header { padding: 108px 0 48px; }
    .page-header p,
    .page-subtitle { font-size: 0.95rem; }

    .about-hero { min-height: 48vh; padding: 104px 16px 48px; }
    .about-hero-sub,
    .about-cta-content p,
    .page-subtitle { font-size: 0.95rem; }
    .about-cta { padding: 72px 16px; }
    .about-cta-content h2 { margin-bottom: 16px; }
}
