/* ========================================
   Pit-Mark Corporate Site - Custom Styles
   ======================================== */

/* CSS Variables */
:root {
    --primary: #D32F2F;
    --primary-dark: #B71C1C;
    --navy: #001F3F;
    --navy-light: #003366;
    --white: #FFFFFF;
    --gray-50: #F8F9FA;
    --gray-100: #F1F3F5;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-500: #6C757D;
    --gray-600: #495057;
    --gray-800: #343A40;
    --font-jp: 'Noto Sans JP', sans-serif;
    --font-en: 'Montserrat', sans-serif;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
    --radius: 0.75rem;
    --radius-lg: 1rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-jp);
    color: var(--gray-800);
    line-height: 1.8;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-en);
    font-weight: 700;
    color: var(--navy);
}

.font-en {
    font-family: var(--font-en);
}

/* Selection */
::selection {
    background-color: var(--primary);
    color: var(--white);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow);
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.nav-link {
    font-family: var(--font-en);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--navy) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline-navy {
    border: 2px solid var(--navy);
    color: var(--navy);
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-navy:hover {
    background-color: var(--navy);
    color: var(--white);
}

.btn-outline-white {
    border: 2px solid var(--white);
    color: var(--white);
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--navy);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 31, 63, 0.05);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(0) translateX(20px); }
    75% { transform: translateY(20px) translateX(10px); }
}

.hero-shape {
    position: absolute;
    opacity: 0.1;
    animation: spin 60s linear infinite;
}

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

.hero-content {
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.3;
}

.text-primary {
    color: var(--primary) !important;
}

.text-navy {
    color: var(--navy) !important;
}

.bg-navy {
    background-color: var(--navy) !important;
}

.bg-gray {
    background-color: var(--gray-50) !important;
}

/* Stats Section */
.stats-section {
    background-color: var(--gray-50);
}

.stat-number {
    font-family: var(--font-en);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--primary);
}

/* Section Headers */
.section-label {
    font-family: var(--font-en);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--navy);
    margin-bottom: 1rem;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-img-top {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.card-title {
    color: var(--navy);
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: rgba(211, 47, 47, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

/* Tech Tags */
.tech-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 31, 63, 0.05);
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 50px;
    margin: 0.25rem;
}

.category-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(211, 47, 47, 0.1);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 50px;
}

/* CTA Section */
.cta-section {
    position: relative;
    background-size: cover;
    background-position: center;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 31, 63, 0.85);
}

.cta-content {
    position: relative;
    z-index: 10;
}

/* Footer */
.footer {
    background-color: var(--navy);
}

/* フッターのロゴはそのまま表示（フィルターなし） */
.logo-footer {
    /* ロゴをそのまま表示 */
}

.hover-white:hover {
    color: var(--white) !important;
}

/* Scroll to Top */
.btn-scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 0;
}

.btn-scroll-top.show {
    display: flex;
}

/* Breadcrumb */
.breadcrumb-nav {
    padding: 1rem 0;
}

.breadcrumb {
    margin-bottom: 0;
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.875rem;
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: var(--navy);
    font-weight: 500;
    font-size: 0.875rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: var(--gray-300);
}

/* Page Hero */
.page-hero {
    position: relative;
    padding: 8rem 0 4rem;
    background-size: cover;
    background-position: center;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.92);
}

.page-hero-content {
    position: relative;
    z-index: 10;
}

/* Company Info */
.info-row {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.info-row:last-child {
    border-bottom: none;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon i {
    font-size: 1.25rem;
    color: var(--navy);
}

/* Form Styles */
.form-control,
.form-select {
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.form-label {
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.required {
    color: var(--primary);
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.step-number.active {
    background: var(--primary);
    color: var(--white);
}

.step-number.completed {
    background: #28a745;
    color: var(--white);
}

.step-number.inactive {
    background: var(--gray-200);
    color: var(--gray-500);
}

.step-label {
    font-size: 0.875rem;
}

.step-line {
    width: 3rem;
    height: 2px;
    background: var(--gray-200);
}

.step-line.completed {
    background: #28a745;
}

/* Services Page */
.service-nav {
    position: sticky;
    top: 72px;
    z-index: 100;
    background: var(--gray-50);
}

.service-nav a {
    color: var(--gray-600);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.service-nav a:hover {
    color: var(--primary);
    background: var(--white);
}

/* News Page */
.news-card {
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
}

.news-date {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Legal Pages */
.legal-content h2 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content h3 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.legal-content ul {
    color: var(--gray-600);
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .particle,
    .hero-shape {
        animation: none !important;
    }
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero {
        min-height: 80vh;
    }
    
    .navbar-collapse {
        background: var(--white);
        padding: 1rem;
        border-radius: var(--radius);
        margin-top: 1rem;
        box-shadow: var(--shadow);
    }
    
    .service-nav {
        top: 64px;
    }
}

@media (max-width: 767.98px) {
    .hero {
        min-height: 70vh;
        padding-top: 60px;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn-scroll-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}
