:root {
    --primary: #0056b3;
    /* Tech Blue */
    --secondary: #00a8e8;
    /* Bright Cyan */
    --dark: #1a2b3c;
    --grey: #f4f7f9;
    --text: #333;
    --white: #ffffff;
    --border: #e0e6ed;
}

body {
    font-family: "Inter", "Noto Sans JP", sans-serif;
    color: var(--text);
    background-color: var(--white);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 40px;
}

.logo-text h1 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--dark);
    font-weight: 700;
}

.logo-text .sub {
    font-size: 0.75rem;
    color: #666;
    display: block;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    position: relative;
    transition: color 0.3s;
}

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

/* Hero */
.hero {
    background: #f8fafc;
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h2 {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-content p {
    color: #4a5568;
    /* Darker grey */
    margin-bottom: 30px;
}

.rich-desc {
    font-size: 0.9rem;
    color: #4a5568;
    /* Darker grey for readability */
    line-height: 1.6;
    margin-top: 10px;
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat .num {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat .label {
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}

.hero-visual {
    flex: 0 0 300px;
    height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.data-vis-circle {
    width: 200px;
    height: 200px;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-inner {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-family: "Inter", sans-serif;
    box-shadow: 0 10px 30px rgba(0, 86, 179, 0.3);
}

.orbit {
    position: absolute;
    width: 240px;
    height: 240px;
    border: 1px dashed #ccc;
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Ranking */
.ranking-area {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 5px;
}

.section-header p {
    color: #666;
}

/* Rank Card */
.rank-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.rank-1 {
    border-color: var(--primary);
    border-width: 2px;
}

.rank-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: 5px 20px;
    font-weight: bold;
    font-size: 0.9rem;
    border-bottom-right-radius: 8px;
}

.rank-badge.sec {
    background: #6c757d;
}

.card-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    padding: 40px 30px 30px;
    gap: 30px;
}

.company-info h3 {
    font-size: 1.5rem;
    margin: 0 0 10px;
    color: var(--dark);
}

.company-info .catch {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
}

.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.rich-desc {
    font-size: 0.9rem;
    color: #333;
    /* Dark grey */
    line-height: 1.6;
    margin-top: 10px;
    border-top: 1px solid #2d3748;
    padding-top: 10px;
}

.tag {
    background: #e3f2fd;
    color: #004085;
    /* Darker blue for text contrast */
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.score-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    padding: 0 20px;
}

.total-score {
    text-align: center;
    margin-bottom: 15px;
}

.total-score .label {
    display: block;
    font-size: 0.8rem;
    color: #999;
}

.total-score .val {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark);
}

/* Radar Chart CSS Mock */
.radar-chart-placeholder {
    width: 120px;
    height: 120px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-bg {
    width: 100%;
    height: 100%;
    background:
        repeating-radial-gradient(#fff,
            #fff 18px,
            #eee 19px,
            #fff 20px);
    border-radius: 50%;
    border: 1px solid #ddd;
}

.radar-poly {
    position: absolute;
    width: 60%;
    height: 60%;
    background: rgba(0, 86, 179, 0.2);
    border: 2px solid var(--primary);
    clip-path: polygon(50% 0%, 100% 50%, 80% 100%, 20% 100%, 0% 50%);
    /* Simplified Pentagon - In a real implementation this would be dynamic */
}

.radar-labels {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.lbl {
    position: absolute;
    font-size: 0.7rem;
    color: #666;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 4px;
    border-radius: 4px;
}

.lbl.top {
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.lbl.right {
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
}

.lbl.bottom {
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.lbl.left {
    top: 50%;
    left: -30px;
    transform: translateY(-50%);
}

/* Detail Area */
.spec-list {
    list-style: none;
    padding: 0;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.spec-list li {
    margin-bottom: 8px;
    color: #555;
}

.btn-wrap {
    text-align: right;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: #004494;
}

.btn-secondary {
    background: var(--white);
    border: 1px solid #ccc;
    color: #555;
}

.btn-secondary:hover {
    background: #f8f9fa;
}

/* Matrix */
.bg-grey {
    background: #f8fafc;
    padding: 60px 0;
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tech-table th,
.tech-table td {
    padding: 15px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.tech-table th {
    background: #f1f5f9;
    color: #555;
    font-weight: 600;
}

.tech-table th.highlight {
    background: var(--primary);
    color: var(--white);
    position: relative;
    box-shadow: 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.tech-table td.highlight {
    background: #f0f7ff;
    border-left: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
}

.tech-table .bold {
    font-weight: 700;
    color: var(--primary);
}

.tech-table .feature {
    text-align: left;
    font-weight: 600;
    color: var(--dark);
    background: #fafafa;
}

/* Process */
.process-chart {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.step {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    width: 250px;
    text-align: center;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.02);
}

.step-icon {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 15px;
}

.step h4 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    color: var(--dark);
}

.step p {
    font-size: 0.85rem;
    color: #666;
}

.connector {
    font-size: 1.5rem;
    color: #ccc;
}

/* Footer */
.footer {
    background: var(--dark);
    color: #888;
    text-align: center;
    padding: 30px;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {

    /* Header Fix */
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav a {
        font-size: 0.85rem;
    }

    /* Hero Fix */
    .hero {
        padding: 40px 0;
        /* Reduce vertical padding */
    }

    .hero-inner {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-visual {
        flex: auto;
        height: 220px;
        /* Reduce height from 300px */
        margin-bottom: 20px;
    }

    .data-vis-circle {
        transform: scale(0.85);
        /* Slightly smaller visual */
    }

    .hero-content {
        margin-top: 0;
    }

    .hero-content h2 {
        font-size: 1.6rem;
        /* Smaller title for mobile */
    }

    .hero-stats {
        justify-content: center;
        gap: 20px;
    }

    .card-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .score-area {
        border: none;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        padding: 20px 0;
        margin: 10px 0;
        flex-direction: row;
        justify-content: space-around;
        gap: 20px;
    }

    .process-chart {
        flex-direction: column;
    }

    .connector {
        transform: rotate(90deg);
    }

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

    .tech-table {
        min-width: 600px;
    }
}