/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9fdf9;
}

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

/* Header and Navigation */
.header {
    background: linear-gradient(135deg, #068200, #0b7c01);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.nav-brand h1 a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-list a:hover {
    color: #c8e6c9;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 4rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.highlight {
    color: #068200;
    background: linear-gradient(45deg, #068200, #0b7c01);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #444;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(45deg, #068200, #0b7c01);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(6, 130, 0, 0.3);
}

.btn-secondary {
    background: white;
    color: #068200;
    border: 2px solid #068200;
}

.btn-secondary:hover {
    background: #068200;
    color: white;
    transform: translateY(-2px);
}

.hero-image {
    font-size: 4rem;
    color: #068200;
    margin-top: 2rem;
    opacity: 0.7;
}

/* Section Styles */
section {
    padding: 3rem 0;
}

/* Override for article sections to reduce spacing */
article section {
    padding: 0.5rem 0;
}

article section:first-of-type {
    padding-top: 0;
}

article section + section {
    margin-top: 1rem;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 3.5rem;
    color: #2c3e50;
    position: relative;
    padding: 0 0 1rem 2rem;
    display: block;
    width: 100%;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 1rem;
    width: 6px;
    background: linear-gradient(135deg, #068200, #0b7c01);
    border-radius: 3px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(45deg, #068200, #0b7c01);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e9ecef;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-icon {
    font-size: 2.5rem;
    color: #068200;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.card p {
    color: #555;
    line-height: 1.6;
}

/* Industry Guide */
.industry-guide {
    background: white;
}

.industry-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.tab-button {
    padding: 12px 24px;
    border: 2px solid #068200;
    background: white;
    color: #068200;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.2;
}

.tab-button.active,
.tab-button:hover {
    background: #068200;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Job Sites */
.job-sites {
    background: #f9fdf9;
}

.job-sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
}

.job-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-align: center;
}

.job-category:first-child h3 {
    margin-top: 0;
}

.job-category p {
    margin-bottom: 2rem;
    text-align: center;
}

.site-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.site-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.site-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.site-info h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.site-info p {
    color: #555;
    font-size: 0.9rem;
}

.site-card i {
    color: #068200;
    font-size: 1.2rem;
}

/* Programming Schools */
.programming-schools {
    background: white;
}

.school-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.school-card {
    background: linear-gradient(135deg, #f0f8f0, #e8f5e8);
    padding: 2rem;
    border-radius: 15px;
    text-decoration: none;
    color: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid #d4e6d4;
}

.school-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.school-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.school-info p {
    color: #555;
}

.school-card i {
    color: #068200;
    font-size: 1.5rem;
}

/* Resources */
.resources {
    background: #f9fdf9;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.resource-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.resource-card i {
    font-size: 2.5rem;
    color: #068200;
    margin-bottom: 1rem;
}

.resource-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.resource-card p {
    color: #555;
}

/* Button Large */
.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Text Center */
.text-center {
    text-align: center;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #068200;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #068200;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Weakness section styles */
.weakness-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.weakness-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.weakness-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.weakness-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.weakness-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.weakness-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(45deg, #068200, #0b7c01);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.weakness-card:hover::before {
    transform: translateX(0);
}

.weakness-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.weakness-icon {
    font-size: 2rem;
    color: #068200;
    margin-bottom: 1rem;
}

.weakness-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #2c3e50;
}

.weakness-card p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        position: relative;
    }

    .nav-brand {
        flex: 1;
        min-width: 0;
    }

    .nav-brand h1 {
        font-size: 1.3rem;
        margin: 0;
    }

    .nav-brand h1 a {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #068200;
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        z-index: 1000;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
        flex-shrink: 0;
        margin-left: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .weakness-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .industry-tabs {
        flex-direction: column;
        align-items: center;
    }

    .job-sites-grid {
        grid-template-columns: 1fr;
    }

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

    .resources-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .section-title {
        font-size: 1.8rem;
        padding: 0 0 1rem 1.5rem;
    }

    .section-title::before {
        left: 0;
        width: 4px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .nav-brand h1 {
        font-size: 1.1rem;
        margin: 0;
    }

    .nav-brand h1 a {
        font-size: 1.1rem;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .nav-toggle {
        margin-left: 0.5rem;
    }

    .nav-toggle span {
        width: 20px;
        height: 2px;
        margin: 2px 0;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.6rem;
        line-height: 1.3;
        word-wrap: break-word;
    }

    .section-title {
        font-size: 1.6rem;
        word-wrap: break-word;
        margin-bottom: 2rem;
        padding: 0 0 1rem 1.2rem;
    }

    .section-title::before {
        left: 0;
        width: 3px;
    }

    .card, .site-card, .school-card {
        padding: 1.2rem;
        margin-bottom: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        word-wrap: break-word;
    }

    /* Ensure proper spacing for mobile cards */
    .weakness-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .weakness-card h4 {
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
        word-wrap: break-word;
    }

    .weakness-card p {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .industry-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tab-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .site-card, .school-card, .resource-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}