:root {
    --primary-color: #333333;
    /* Slate 900 */
    --secondary-color: #555555;
    /* Slate 700 */
    --accent-color: #d97706;
    /* Amber 600 */
    --bg-color: #fbfbfb;
    /* Slate 50 */
    --text-color: #626262;
    /* Slate 800 */
    --light-text: #f1f5f9;
    /* Slate 100 */
    --card-bg: #ffffff;
    --font-main: 'Yusei Magic', sans-serif;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 36px;
}

.logo img {
    height: 24px;
    width: auto;
    margin-top: 8px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--secondary-color);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width var(--transition-speed);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 300px;
    background: url('../images/cc_obi.png') no-repeat center center;
    background-size: cover;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 36px;
    /* Push down to account for fixed header */
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.00) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
    font-family: "Yusei Magic";
}

.hero h1 {
    font-size: 4.0rem;
    margin-bottom: 0;
    font-weight: 400;
    letter-spacing: 0.2px;
}

/* Sections General */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.0rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title .line {
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about {
    background-color: white;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: left;
    text-align: left;
    max-width: 1000px;
    margin: 0 auto;
    padding-left: 120px;
    padding-right: 40px;
}

.about p {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Works Section */
.works {
    background-color: var(--bg-color);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.work-card {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed);
    overflow: hidden;
}

.work-card:hover {
    transform: translateY(-10px);
}

.work-thumbnail {
    width: 100%;
    height: 200px;
    background-image: url('../images/waiting.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin-top: 20px;
}

.work-thumbnail.dq11s {
    background-image: url('../images/works/dragonquest11s_logo_registered.png');
    background-size: contain;
    margin-top: 20px;
}

.work-thumbnail.dq11 {
    background-image: url('../images/works/dragonquest11_logo_registered.png');
    background-size: contain;
    margin-top: 20px;
}

.work-card h3 {
    padding-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
    font-size: 0.9rem;
    margin: 0;
}

.work-subtext {
    font-size: 0.8em;
    font-weight: 200;
}

.work-copyright {
    display: block;
    font-size: 0.6em;
    font-weight: 200;
    margin-top: 5px;
    line-height: 1.2;
}

/* Company Profile */
.company {
    background-color: white;
    font-size: 15px;
}

.company-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
}

.company-table th,
.company-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.company-table th {
    width: 30%;
    color: var(--primary-color);
    font-weight: 600;
}

.company-table td {
    color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 4px 0;
    text-align: center;
    font-size: 10px;
}

.footer-content p {
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        /* Simple mobile menu handling for now */
    }

    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
    }

    .company-table th {
        padding-bottom: 5px;
        color: var(--accent-color);
    }

    .company-table td {
        padding-top: 5px;
        padding-bottom: 25px;
    }
}

/* Indentation for Case 2: Large font, 2 lines */
@media (min-width: 769px) and (max-width: 910px) {
    .hero-text-2 {
        margin-left: 1.5em;
    }
}

/* Indentation for Case 4: Small font, 2 lines */
@media (max-width: 615px) {
    .hero-text-2 {
        margin-left: 1.5em;
    }
}

/* Indentation for Case 2 3 4 */
@media (max-width: 910px) {
    .about-content {
        padding-left: 60px;
    }
}

/* Utility classes */
.ib {
    display: inline-block;
}

.text-accent {
    color: var(--accent-color);
}