@charset "utf-8";

/* ============================================================
   Home page project slideshow
   ============================================================ */

.home_proj_slider {
    position: relative;
    max-width: 1180px;
    margin: 40px auto 0;
    padding: 0 60px;
    box-sizing: border-box;
}

.home_proj_slider_track {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 8.4;
    min-height: 420px;
    background: #0a1430;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 22px 60px rgba(15, 29, 74, 0.18);
}

.home_proj_slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.75s ease, transform 0.75s ease;
    transform: scale(1.02);
}

.home_proj_slide.is_active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    z-index: 1;
}

/* ---- Visual side (image) ---- */
.home_proj_slide_visual {
    position: relative;
    overflow: hidden;
}

.home_proj_slide_visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.06);
    transition: transform 6s ease;
}

.home_proj_slide.is_active .home_proj_slide_visual img {
    transform: scale(1);
}

.home_proj_slide_overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 20, 48, 0.45) 0%, rgba(10, 20, 48, 0.15) 50%, rgba(10, 20, 48, 0.55) 100%);
}

.home_proj_slide_num {
    position: absolute;
    bottom: 22px;
    left: 28px;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 6.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1;
    letter-spacing: 0.05em;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

/* ---- Content side ---- */
.home_proj_slide_content {
    padding: 48px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #f5f8fb 100%);
    color: #2a3a55;
}

.home_proj_slide_tag {
    display: inline-block;
    width: max-content;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.home_proj_slide_content h3 {
    font-family: "Noto Sans JP", sans-serif;
    font-size: clamp(2.1rem, 2.6vw, 2.7rem);
    font-weight: 800;
    color: var(--brand-navy, #0f1d4a);
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: 0;
}

.home_proj_slide_sub {
    font-size: 1.55rem;
    font-weight: 600;
    color: #1f3c70;
    margin-bottom: 18px;
    line-height: 1.5;
}

.home_proj_slide_body {
    font-size: 1.45rem;
    line-height: 1.8;
    color: #4a5670;
    margin-bottom: 28px;
}

.home_proj_slide_btn {
    display: inline-block;
    width: max-content;
    padding: 11px 28px;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-radius: 999px;
    border: 2px solid var(--brand-cyan, #00a8d4);
    color: #fff;
    background: var(--brand-cyan, #00a8d4);
    transition: all 0.25s ease;
}

.home_proj_slide_btn:hover {
    background: #fff;
    color: var(--brand-cyan, #00a8d4);
}

/* ---- Per-project themes for tag + button ---- */
.home_proj_slide_at  .home_proj_slide_tag { color: #b56c1e; background: rgba(255, 209, 102, 0.22); }
.home_proj_slide_at  .home_proj_slide_btn { background: linear-gradient(135deg, #ffd166, #ff9f5a); border-color: transparent; color: #fff; }
.home_proj_slide_at  .home_proj_slide_btn:hover { background: #fff; color: #b56c1e; border-color: #ff9f5a; }

.home_proj_slide_mcp .home_proj_slide_tag { color: #00657f; background: rgba(0, 168, 212, 0.14); }
.home_proj_slide_mcp .home_proj_slide_btn { background: var(--brand-cyan, #00a8d4); border-color: var(--brand-cyan, #00a8d4); }

.home_proj_slide_er  .home_proj_slide_tag { color: #c2362a; background: rgba(214, 59, 47, 0.14); }
.home_proj_slide_er  .home_proj_slide_btn { background: #d63b2f; border-color: #d63b2f; }
.home_proj_slide_er  .home_proj_slide_btn:hover { background: #fff; color: #d63b2f; }

.home_proj_slide_li  .home_proj_slide_tag { color: #00657f; background: rgba(96, 215, 255, 0.18); }
.home_proj_slide_li  .home_proj_slide_btn { background: #14213d; border-color: #14213d; color: #60d7ff; }
.home_proj_slide_li  .home_proj_slide_btn:hover { background: #fff; color: #14213d; }

/* ---- Arrows ---- */
.home_proj_arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 18px rgba(15, 29, 74, 0.18);
    color: var(--brand-navy, #0f1d4a);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.home_proj_arrow:hover {
    background: var(--brand-cyan, #00a8d4);
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}

.home_proj_arrow_prev { left: 8px; }
.home_proj_arrow_next { right: 8px; }

/* ---- Dots with progress bar ---- */
.home_proj_dots {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
}

.home_proj_dot {
    position: relative;
    width: 46px;
    height: 5px;
    border: none;
    background: rgba(15, 29, 74, 0.15);
    border-radius: 999px;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    transition: background 0.2s ease;
}

.home_proj_dot:hover {
    background: rgba(15, 29, 74, 0.3);
}

.home_proj_dot_progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--brand-cyan, #00a8d4);
    border-radius: 999px;
}

.home_proj_dot.is_active {
    background: rgba(0, 168, 212, 0.25);
}

.home_proj_dot.is_active .home_proj_dot_progress {
    animation: homeProjDot 6s linear forwards;
}

@keyframes homeProjDot {
    from { width: 0; }
    to   { width: 100%; }
}

/* ---- Mobile ---- */
@media (max-width: 880px) {
    .home_proj_slider {
        padding: 0 36px;
    }
    .home_proj_slider_track {
        aspect-ratio: auto;
        min-height: 0;
    }
    .home_proj_slide {
        position: relative;
        grid-template-columns: 1fr;
        aspect-ratio: auto;
    }
    .home_proj_slide:not(.is_active) {
        display: none;
    }
    .home_proj_slide_visual {
        aspect-ratio: 16 / 9;
    }
    .home_proj_slide_content {
        padding: 30px 24px 34px;
    }
    .home_proj_slide_content h3 { font-size: 1.95rem; }
    .home_proj_slide_sub { font-size: 1.4rem; }
    .home_proj_slide_body { font-size: 1.35rem; }
    .home_proj_slide_num { font-size: 4.5rem; bottom: 14px; left: 18px; }
    .home_proj_arrow {
        width: 38px; height: 38px; font-size: 2rem;
    }
    .home_proj_arrow_prev { left: 2px; }
    .home_proj_arrow_next { right: 2px; }
}

@media (max-width: 520px) {
    .home_proj_slider { padding: 0 16px; }
    .home_proj_arrow {
        width: 32px; height: 32px; font-size: 1.7rem;
    }
}
