:root {
    --primary-blue: #002B5B;
    --accent-red: #E63946;
    --text-dark: #1A1A1A;
    --text-muted: #555555;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb Navigation */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 15px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary-blue);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--accent-red);
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header .container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-blue);
    margin: 5px 0;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.logo img {
    height: 50px;
    /* Reduced for more compact header */
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav ul li a {
    font-size: 0.95rem;
    /* Reduced for more compact header */
    font-weight: 500;
    color: var(--primary-blue);
    position: relative;
    padding-bottom: 4px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-red);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-red);
}

nav ul li a:hover::after {
    width: 100%;
}

.btn-contact {
    background-color: var(--accent-red);
    color: white !important;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.95rem;
    /* Matched to nav font size */
}

.btn-contact:hover {
    background-color: #c92f3b;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 50px 0 180px;
    /* Increased bottom padding to shift content up */
    min-height: 520px;
    /* Reduced by 20% from 650px */
    display: flex;
    align-items: flex-start;
    /* Align content towards top */
    background-color: #000;
    /* Fallback */
    overflow: hidden;
    color: white;
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 12s linear;
    /* Speeded up from 20s */
    transform: scale(1);
    background-color: #000;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1.1);
}

.hero .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 650px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--primary-blue);
    margin-bottom: 24px;
    word-break: keep-all;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
    /* Help legibility as overlay is gone */
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 40px;
    font-weight: 500;
    max-width: 60%;
    /* Expanded from 40% (50% increase) */
    line-height: 1.5;
    text-shadow: 0 1px 5px rgba(255, 255, 255, 0.8);
}

/* Hero Dots */
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
    /* Increased to stay above service cards */
}

.hero-dots {
    position: absolute;
    bottom: 120px;
    /* Moved up above service cards */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 25;
    /* Ensure above dots container and other elements */
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    /* Brighter base */
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent-red);
    transform: scale(1.2);
}

.btn-primary {
    background-color: var(--accent-red);
    color: white;
    padding: 16px 32px;
    border-radius: 4px;
    font-weight: 700;
    text-align: center;
    width: fit-content;
    font-size: 1.1rem;
}

/* Services Section */
.services {
    padding: 0 0 50px;
    /* Doubled from 25px to increase space before trust section */
    background-color: transparent;
    margin-top: -100px;
    /* Overlap hero */
    position: relative;
    z-index: 10;
}

.services .container {
    max-width: var(--container-width);
}

.services h2 {
    display: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background: white;
    padding: 32px 24px;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 15px 12px;
    /* Reduced by 15% more from 20px 15px */
    background-color: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: left;
    height: auto;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    text-align: center;
    margin-bottom: 12px;
    /* Reduced by 15% */
    font-size: 1.2rem;
    /* Reduced by 15% */
    color: var(--primary-blue);
}

.service-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
    outline: 3px solid var(--primary-blue);
    /* Use outline instead of border to prevent layout shift */
    outline-offset: -3px;
    /* Keep outline inside the card */
}

.service-link {
    margin-top: auto;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: var(--transition);
    text-align: center;
    padding-top: 15px;
}

.service-link:hover {
    color: var(--accent-red);
}

.service-link .arrow {
    transition: transform 0.3s ease;
}

.service-link:hover .arrow {
    transform: translateX(5px);
}

.service-card .icon.no-bg {
    background: transparent !important;
    border-radius: 0;
    width: 110px;
    /* Reduced by 15% from 130px */
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    /* Reduced margin by 15% */
}

.service-card .icon.no-bg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card .icon svg,
.service-card .icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* Trust Section */
.trust {
    padding: 40px 0;
    background-color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.trust::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 2px 2px, #eee 1px, transparent 0);
    background-size: 40px 40px;
    opacity: 0.5;
    z-index: 0;
}

.trust .container {
    position: relative;
    z-index: 1;
}

.trust h2.section-title.centered-in-content {
    text-align: center;
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    /* Reduced by 40% */
    width: 100%;
}

.combined-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    /* Reduced by 40% */
    align-items: center;
}

/* News Sidebar Styling - Dark Blue Variation */
.news-sidebar {
    background: var(--primary-blue);
    padding: 18px;
    /* Reduced by 40% */
    border-radius: 8px;
    border: none;
    color: white;
}

.section-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    /* Reduced by 40% */
    padding-bottom: 8px;
    /* Reduced by 40% */
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.sidebar-title {
    font-size: 1.3rem;
    /* Reduced slightly */
    color: white;
    font-weight: 700;
}

.view-all {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.view-all:hover {
    color: white;
}

.news-list {
    list-style: none;
    padding: 0;
}

.news-list li {
    padding: 6px 0;
    /* Reduced to match smaller font */
    border-bottom: 1px dotted rgba(255, 255, 255, 0.15);
}

.news-list li:last-child {
    border-bottom: none;
}

.news-date {
    display: block;
    font-size: 0.7rem;
    /* Reduced proportionally */
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 3px;
    /* Reduced */
    font-weight: 500;
}

.news-title {
    font-size: 0.8rem;
    /* Matched to news.html content size */
    color: white;
    line-height: 1.5;
    transition: var(--transition);
    display: block;
}

.news-title:hover {
    color: #FFD700;
    /* Changed to yellow/gold */
    padding-left: 5px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    /* Reduced by 40% */
}

.trust-card {
    background: transparent;
    text-align: center;
    padding: 10px;
    /* Reduced by 40% */
}

.trust-card .icon {
    width: 70px;
    /* Reduced slightly */
    height: 70px;
    margin: 0 auto 15px;
    /* Reduced by 40% */
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-card h3 {
    margin-bottom: 10px;
    /* Reduced by 40% */
    color: var(--primary-blue);
    font-size: 1.2rem;
    /* Slightly reduced */
}

.trust-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Duplicate services section styles removed */

/* Service card styles consolidated above */

/* Proof Section */
.proof {
    padding: 60px 0;
    margin-top: 20px;
    /* Added space from trust section */
    background-color: var(--bg-light);
}

.proof-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-blue);
    margin-bottom: 40px;
}

/* Auto-scrolling company names */
.logos-scroll-container {
    overflow: hidden;
    width: 100%;
    background: linear-gradient(90deg,
            rgba(248, 249, 250, 1) 0%,
            rgba(248, 249, 250, 0) 5%,
            rgba(248, 249, 250, 0) 95%,
            rgba(248, 249, 250, 1) 100%);
    padding: 20px 0;
}

.logos-scroll {
    display: flex;
    gap: 60px;
    /* Add gap between the two tracks for proper spacing */
    width: fit-content;
    animation: scroll-left 60s linear infinite;
}

.logos-scroll:hover {
    animation-play-state: paused;
}

.logos-track {
    display: flex;
    gap: 60px;
    align-items: center;
    white-space: nowrap;
}

.logos-track span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-blue);
    padding: 10px 20px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.logos-track span:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: var(--accent-red);
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Footer */
footer {
    background-color: white;
    color: var(--primary-blue);
    padding: 40px 0 0;
    border-top: 1px solid #eee;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-info .logo {
    margin: 0;
}

.footer-info .logo img {
    height: 40px;
    width: auto;
}

.footer-info p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

.footer-nav {
    display: flex;
    gap: 30px;
}

.footer-nav a {
    font-size: 0.9rem;
    color: var(--primary-blue);
    font-weight: 500;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--accent-red);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    background-color: #f8f9fa;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* News Page Specific Styles */
.news-page-header {
    padding: 20px 0;
    background: linear-gradient(135deg, var(--primary-blue), #003b7d);
    color: white;
    text-align: center;
    margin-top: 0;
}

.news-container {
    max-width: var(--container-width);
    margin: 40px auto 80px;
    padding: 0 20px;
}

.news-full-list {
    list-style: none;
    padding: 0;
    min-height: 400px;
}

.news-full-item {
    display: flex;
    gap: 40px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}

.news-item-content {
    color: #444;
    font-size: 0.8rem;
    line-height: 1.6;
    margin-top: 10px;
    margin-bottom: 15px;
}

.news-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.news-image-wrapper {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #eee;
}

.news-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-image-wrapper img:hover {
    transform: scale(1.05);
}

.news-full-meta {
    min-width: 120px;
}

.news-full-date {
    font-weight: 700;
    color: var(--primary-blue);
    display: block;
    margin-bottom: 5px;
}

.news-full-tag {
    display: inline-block;
    padding: 2px 10px;
    background: #f0f4f8;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.news-full-content h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.news-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    background: white;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}

.page-btn.active {
    background: var(--primary-blue);
    color: white;
}

.page-btn:hover:not(.active) {
    background: #f0f4f8;
}

@media (max-width: 600px) {
    .news-full-item {
        flex-direction: column;
        gap: 10px;
    }
}

.services-full-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        padding: 100px 40px;
        transition: var(--transition);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    nav ul li a {
        font-size: 1.2rem;
    }

    .hero {
        padding: 80px 0;
        min-height: 500px;
        background-attachment: scroll;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .services {
        margin-top: -50px;
    }

    .combined-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .news-sidebar {
        order: 2;
    }

    .trust-content {
        order: 1;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }
}