﻿/* Home page styles */
/* ========== Hero ========== */
.hero-section {
    position: relative;
}

.hero-section .carousel,
.hero-section .carousel-inner,
.hero-section .carousel-item {
    height: min(88vh, 720px);
    min-height: 520px;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            rgba(30, 58, 138, 0.45),
            rgba(88, 28, 135, 0.35),
            rgba(31, 31, 84, 0.5)
        ),
        rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-caption {
    inset: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem !important;
    z-index: 2;
    text-align: center;
}

.hero-content {
    max-width: 820px;
    animation: fadeUp 0.8s ease both;
}

.hero-badge {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 1.1rem;
}

.hero-title,
.hero-headline {
    font-weight: 800;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    line-height: 1.15;
    margin-bottom: 0.85rem;
}

.hero-title {
    font-size: clamp(1.85rem, 5vw, 3.4rem);
}

.hero-headline {
    font-size: clamp(1.7rem, 5vw, 3.6rem);
}

.hero-subheadline {
    font-size: clamp(1.05rem, 2.5vw, 1.65rem);
    font-weight: 700;
    color: #dbeafe;
    margin-bottom: 1rem;
}

.hero-lead {
    font-size: clamp(0.95rem, 2vw, 1.25rem);
    font-weight: 600;
    color: #bfdbfe;
    margin-bottom: 0.75rem;
}

.hero-note,
.hero-desc {
    font-size: clamp(0.9rem, 1.6vw, 1.15rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.65;
    max-width: 640px;
    margin: 0 auto 1.5rem;
}

.hero-accent {
    width: 64px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #60a5fa, #a855f7, #8b2555);
    margin: 0 auto 1.25rem;
}

.btn-hero-white {
    background: #fff;
    color: #111827 !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.7rem 1.6rem;
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.btn-hero-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    color: var(--brand-primary) !important;
}

.hero-control {
    width: auto;
    opacity: 1;
    z-index: 5;
}

.hero-control-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.hero-control:hover .hero-control-btn {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.carousel-control-prev {
    left: 1rem;
}

.carousel-control-next {
    right: 1rem;
}

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

.carousel-item.active .hero-content {
    animation: fadeUp 0.85s ease both;
}

/* ========== Shared ========== */
.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-accent {
    width: 72px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        var(--brand-primary),
        var(--brand-navy-bright)
    );
}

/* ========== 1. Business Sectors ========== */
.section-sectors {
    position: relative;
    min-height: 920px;
    overflow: hidden;
    color: #fff;
}

.sectors-bg {
    position: absolute;
    inset: -20px;
    background: url("https://images.unsplash.com/photo-1559136555-9303baea8ebd?auto=format&fit=crop&w=2070&q=80")
        center/cover;
    filter: blur(3px);
    transform: scale(1.05);
}

.sectors-dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(2px);
}

.sectors-inner {
    z-index: 2;
    padding: 4.5rem 1rem 3rem;
}

.sectors-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #fff, #dbeafe, #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sectors-subtitle {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.sectors-book {
    margin-right: 0.35rem;
}

.sectors-text {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.75;
    font-size: 1rem;
}

.sectors-stage {
    position: relative;
    margin-top: 2.5rem;
    height: 560px;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(
        90deg,
        rgba(59, 130, 246, 0.08),
        transparent,
        rgba(168, 85, 247, 0.08)
    );
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.sector-bubble {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    font-weight: 800;
    line-height: 1.25;
    font-size: 0.92rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    padding: 1rem;
    cursor: pointer;
    z-index: 2;
    background: var(--bubble-gradient);
    transform: translate(-50%, -50%);
    transition:
        width 0.35s ease,
        height 0.35s ease,
        filter 0.25s ease,
        box-shadow 0.25s ease;
    will-change: left, top;
}

.sector-bubble:nth-child(1) {
    width: 170px;
    height: 170px;
    font-size: 0.95rem;
}
.sector-bubble:nth-child(2) {
    width: 150px;
    height: 150px;
}
.sector-bubble:nth-child(3) {
    width: 185px;
    height: 185px;
    font-size: 1rem;
}
.sector-bubble:nth-child(4) {
    width: 160px;
    height: 160px;
    font-size: 0.88rem;
}
.sector-bubble:nth-child(5) {
    width: 175px;
    height: 175px;
}

.sector-bubble:hover,
.sector-bubble.is-active {
    filter: brightness(1.08);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
    z-index: 6;
}

.bubble-label {
    pointer-events: none;
    max-width: 90%;
}

.sector-popup {
    position: absolute;
    width: min(380px, calc(100% - 2rem));
    max-height: 320px;
    left: 12%;
    top: 42%;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.25rem 1.15rem 1.15rem;
    border-radius: 1.15rem;
    background: linear-gradient(
        145deg,
        rgba(37, 99, 235, 0.92),
        rgba(67, 56, 202, 0.9)
    );
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        0 0 0 1px rgba(147, 197, 253, 0.25),
        0 24px 50px rgba(0, 0, 0, 0.35);
    color: #fff;
    animation: popupIn 0.28s ease;
}

.sector-popup[hidden] {
    display: none !important;
}

.sector-popup-close {
    position: absolute;
    top: 0.45rem;
    right: 0.65rem;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.sector-popup-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 1.5rem 0 0;
    line-height: 1.3;
}

.sector-popup-scroll {
    overflow-y: auto;
    max-height: 170px;
    padding-right: 0.4rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.75) rgba(255, 255, 255, 0.15);
}

.sector-popup-scroll::-webkit-scrollbar {
    width: 7px;
}

.sector-popup-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}

.sector-popup-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 999px;
}

.sector-popup-desc {
    margin: 0 0 0.75rem;
    font-size: 0.92rem;
    line-height: 1.6;
    opacity: 0.95;
}

.sector-popup-points {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.9rem;
    line-height: 1.55;
}

.sector-popup-points li + li {
    margin-top: 0.35rem;
}

.sector-popup-cta {
    align-self: center;
    margin-top: 0.15rem;
}

@keyframes popupIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========== 2. Major Updates ========== */
.section-updates {
    background: linear-gradient(180deg, #eff6ff, #eef2ff 55%, #f8fafc);
}

.update-card {
    display: flex;
    gap: 1.25rem;
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.update-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.update-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    background: #f3f4f6;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.update-icon-blue {
    background: #eff6ff;
    color: #2563eb;
}

.update-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.update-card p {
    margin: 0;
    color: #6b7280;
    line-height: 1.65;
}

/* ========== 3. News & Notices ========== */
.section-notices {
    background: #fff;
}

.notices-title {
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.75rem;
}

.notices-rule {
    height: 2px;
    background: var(--brand-primary);
    width: 100%;
    margin-bottom: 0.5rem;
}

.notices-scroll {
    max-height: 340px;
    overflow-y: auto;
    padding-right: 0.35rem;
}

.notices-scroll::-webkit-scrollbar {
    width: 6px;
}

.notices-scroll::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 999px;
}

.notice-item {
    padding: 1.15rem 0.25rem 1.25rem;
    border-bottom: 1px solid #ececec;
}

.notice-badge {
    display: inline-block;
    background: #fce7f3;
    color: var(--brand-primary);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.28rem 0.7rem;
    border-radius: 0.4rem;
}

.notice-date {
    color: #9ca3af;
    font-size: 0.85rem;
    white-space: nowrap;
}

.notice-text {
    margin: 0.7rem 0 0;
    color: #111827;
    font-size: 1rem;
    line-height: 1.6;
    font-family: var(--font-jp);
}

/* ========== 4. Access ========== */
.section-access {
    background: #fff;
}

.access-title {
    font-size: clamp(1.7rem, 3vw, 2.1rem);
    font-weight: 800;
    color: #111;
    margin-bottom: 0.75rem;
}

.access-rule {
    height: 2px;
    background: #c62828;
    width: 100%;
    margin-bottom: 1.5rem;
}

.access-company {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.access-info {
    color: #222;
    line-height: 1.7;
}

.map-wrap {
    height: 420px;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.map-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 991.98px) {
    .section-sectors {
        min-height: auto;
    }

    .sectors-stage {
        height: 480px;
    }

    .sector-popup {
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%);
        max-height: min(320px, calc(100% - 2rem));
    }

    .sector-bubble {
        width: 130px !important;
        height: 130px !important;
        font-size: 0.78rem !important;
    }
}

@media (max-width: 575.98px) {
    .hero-section .carousel,
    .hero-section .carousel-inner,
    .hero-section .carousel-item {
        min-height: 560px;
        height: auto;
    }

    .hero-control-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-control-prev {
        left: 0.35rem;
    }

    .carousel-control-next {
        right: 0.35rem;
    }

    .brand-tagline {
        display: none;
    }

    .cta-card {
        padding: 2.75rem 1.25rem 2rem;
    }

    .map-wrap {
        height: 300px;
    }

    .sectors-stage {
        height: 400px;
        margin-top: 1.75rem;
    }

    .sector-bubble {
        width: 104px !important;
        height: 104px !important;
        font-size: 0.68rem !important;
        padding: 0.5rem;
    }

    .sector-popup {
        width: calc(100% - 1.75rem);
        max-height: 75%;
    }

    .sector-popup-scroll {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
    }
}
