*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #4a72b8;
    --accent: #cc2200;
    --text: #333;
    --muted: #666;
    --light: #f8f9fa;
    --border: #e0e0e0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic', sans-serif;
    color: var(--text);
    line-height: 1.7;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Header ---- */

.header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 44px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    color: #444;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.2s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #444;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

/* ---- Hero ---- */

.hero {
    background:
        linear-gradient(135deg, rgba(74, 114, 184, 0.88) 0%, rgba(90, 136, 204, 0.88) 100%),
        url('../images/hero-bg.png') center / cover no-repeat;
    color: #fff;
    padding: 120px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-mark {
    height: 140px;
    width: auto;
    margin-bottom: 32px;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
}

.hero h1 {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 24px;
    line-height: 1.25;
}

.hero-desc {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 40px;
    line-height: 1.9;
}

/* ---- Buttons ---- */

.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 14px 40px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 14px rgba(204, 34, 0, 0.35);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn:hover {
    background: #a81b00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 34, 0, 0.45);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(204, 34, 0, 0.35);
}

/* ---- Sections ---- */

.section {
    padding: 96px 0;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 56px;
    letter-spacing: 0.04em;
}

.section-title::before {
    content: attr(data-en);
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--accent);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--accent);
    margin: 14px auto 0;
    border-radius: 2px;
}

/* ---- About ---- */

.about {
    background: var(--light);
}

.table-wrap {
    overflow-x: auto;
}

.company-table {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    border-collapse: collapse;
}

.company-table tbody tr {
    transition: background 0.15s;
}

.company-table tbody tr:hover {
    background: rgba(74, 114, 184, 0.05);
}

.company-table th,
.company-table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 0.95rem;
}

.company-table th {
    width: 150px;
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap;
}

.company-table tr:first-child th,
.company-table tr:first-child td {
    border-top: 2px solid var(--accent);
}

/* ---- Services ---- */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-top: 4px solid var(--accent);
    border-radius: 0 0 8px 8px;
    padding: 0 0 36px;
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s;
}

.card-img-wrap {
    height: 200px;
    overflow: hidden;
    margin-bottom: 28px;
}

.card-img {
    width: 100%;
    height: 110%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transform: scale(1.06);
    transform-origin: center top;
    transition: transform 0.4s ease;
}

.card:hover .card-img {
    transform: scale(1.1);
}

.card-num {
    margin-left: 28px;
}

.card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.card-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.5;
    padding: 0 28px;
}

.card small {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--muted);
}

.card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.8;
    padding: 0 28px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 20px;
    margin-left: 28px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s, opacity 0.2s;
}

.card-link:hover {
    gap: 10px;
    opacity: 0.8;
}

/* ---- Contact ---- */

.contact {
    background: var(--primary);
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact .section-title {
    color: #fff;
}

.contact .section-title::before {
    color: rgba(255, 255, 255, 0.5);
}

.contact .section-title::after {
    background: rgba(255, 255, 255, 0.35);
}

.contact-desc {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    font-size: 0.95rem;
}

.contact .btn-outline {
    border-color: rgba(255, 255, 255, 0.65);
    color: #fff;
    box-shadow: none;
}

.contact .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
    box-shadow: none;
    transform: translateY(-2px);
}

/* ---- Footer ---- */

.footer {
    background: #111827;
    color: rgba(255, 255, 255, 0.5);
    padding: 44px 0;
    text-align: center;
}

.footer-logo-img {
    height: 36px;
    width: auto;
    margin-bottom: 12px;
    opacity: 0.75;
    filter: brightness(0) invert(1);
}

.footer-copy {
    font-size: 0.78rem;
}

/* ---- Scroll Animations ---- */

.fade-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: none;
}

.fade-up:nth-child(2) { transition-delay: 0.12s; }
.fade-up:nth-child(3) { transition-delay: 0.24s; }

/* ---- Mobile ---- */

@media (max-width: 640px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 8px 0 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a {
        display: block;
        padding: 12px 24px;
    }

    .hero {
        padding: 80px 0 80px;
    }

    .section {
        padding: 64px 0;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .company-table th {
        width: 110px;
    }
}
