:root {
    --bg-dark: #121212;
    --text-light: #ffffff;
    --text-gray: #a3a3a3;
    --accent-red: #e50914; /* Netflix-like accent */
}

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

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
}

.portal-header {
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(18,18,18,1) 100%);
    padding: 60px 20px 40px;
    text-align: center;
}

.header-content h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -0.05em;
    background: linear-gradient(90deg, #fff, #a3a3a3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-content p {
    color: var(--text-gray);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.portal-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    border-left: 4px solid var(--accent-red);
    padding-left: 12px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.tool-card {
    position: relative;
    display: block;
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-light);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s;
    min-height: 240px;
    border: 1px solid rgba(255,255,255,0.05);
}

.tool-card:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    transition: opacity 0.3s;
    z-index: 0;
}

.tool-card:hover .card-bg {
    opacity: 0.3;
}

.card-resident-tax .card-bg {
    background: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%);
}

.card-target-income .card-bg {
    background: linear-gradient(135deg, #e11d48 0%, #f59e0b 100%);
}

.card-content {
    position: relative;
    padding: 24px;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-transform: uppercase;
    align-self: flex-start;
}

.new-badge {
    background-color: var(--accent-red);
    color: white;
}

.hot-badge {
    background: linear-gradient(90deg, #f59e0b, #e11d48);
    color: white;
}

.tool-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.tool-card p {
    font-size: 0.9rem;
    color: #d4d4d8;
    margin-bottom: auto;
}

.features {
    margin-top: 20px;
    list-style: none;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.features li {
    margin-bottom: 4px;
}

.card-coming-soon {
    background: #121212;
    border: 2px dashed #333;
    opacity: 0.6;
    pointer-events: none;
}

.status {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 700;
    color: #555;
}

@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2rem;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
}
