@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@700&family=Roboto:wght@400;700&display=swap');

:root {
    /* 配色をモノトーン＋ティールグリーンに変更 */
    --bs-body-bg: #121212;
    --bs-body-color: #e9ecef;
    --bs-primary: #20c997; /* Teal */
    --bs-primary-rgb: 32, 201, 151;
    --card-bg: #1a1a1a;
}

body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6, .fw-bold, .navbar-brand {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
}

.fw-bold {
    font-weight: 700 !important;
}

/* Navigation */
.navbar {
    transition: background-color 0.3s ease-in-out;
}

.navbar-scrolled {
    background-color: rgba(18, 18, 18, 0.85) !important;
    backdrop-filter: blur(10px);
}

/* Hero Section */
.hero-section {
    background: radial-gradient(ellipse at bottom, rgba(var(--bs-primary-rgb), 0.1) 0%, var(--bs-body-bg) 70%);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden; /* アニメーションのため */
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section .display-3 {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    letter-spacing: -1.5px;
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-section .lead {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0; /* アニメーション開始前に非表示 */
}


/* Mobile view: hamburger menu background fix */
@media (max-width: 991.98px) {
    .navbar {
        /* メニューが開かれたときのために、モバイルでは常に背景色を設定 */
        background-color: rgba(18, 18, 18, 0.9) !important;
        backdrop-filter: blur(10px);
    }
}

/* Services Section */
.card {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.3);
    border-color: rgba(var(--bs-primary-rgb), 0.6);
}

.card .card-text {
    color: #adb5bd;
}

.card a.stretched-link {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card:hover a.stretched-link {
    color: var(--bs-primary);
}

.card a.stretched-link .fa-arrow-right {
    transition: transform 0.2s ease;
}

.card:hover a.stretched-link .fa-arrow-right {
    transform: translateX(4px);
}

/* Call to Action Section */
.bg-primary {
    background-color: var(--bs-primary) !important;
}

.btn-light.text-primary:hover {
    background-color: #fff;
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Footer */
footer {
    background-color: #0c0c0c;
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(18, 18, 18, 0.7), rgba(18, 18, 18, 0.7)), url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?q=80&w=2070&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: #fff;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Custom Logo Style */
.navbar-logo {
    height: 40px;
    width: auto;
    vertical-align: middle;
}

/* Loader Styles */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #121212;
    z-index: 99999 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 1.2s 0.2s ease, visibility 1.2s 0.2s ease; /* 1.2s fade with a 0.2s delay */
}
#loader-wrapper.is-loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 100px;
    animation: pulse 2.5s infinite ease-in-out;
}

.progress-bar-container {
    width: 120px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    margin: 20px auto 0;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background-color: var(--bs-primary);
    border-radius: 2px;
    transition: width 1.0s ease-out; /* The "whoosh" */
}

/* Animate progress bar when loader is loaded */
#loader-wrapper.is-loaded .progress-bar {
    width: 100%;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}
