:root {
    /* Color Palette */
    --primary-color: #004d40; /* Teal/Agri-Green */
    --secondary-color: #263238; /* Dark Slate/Tech */
    --accent-color: #ffb74d; /* Orange/Warmth */
    --text-color: #333333;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    
    /* Typography */
    --font-body: 'Noto Sans JP', 'Roboto', sans-serif;
    --font-mono: 'Fira Code', 'Courier New', monospace;
    
    /* Spacing */
    --container-width: 1100px;
    --section-padding: 80px 20px;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.sticky-header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 15px 0;
}

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

.logo a {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.nav-links a:hover {
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
}

.github-link {
    display: flex;
    align-items: center;
    color: var(--secondary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--secondary-color);
    color: var(--white);
    overflow: hidden;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    line-height: 1.4;
    font-weight: 700;
}

.hero-sub {
    font-size: 1.1rem;
    opacity: 0.9;
    color: var(--accent-color);
    font-weight: 500;
}

/* Section Common */
.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

.en-title {
    font-size: 1rem;
    font-weight: 400;
    color: #888;
    display: block;
    margin-top: 5px;
}

/* Profile Section */
.profile-section {
    padding: var(--section-padding);
}

.profile-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.profile-text {
    flex: 1 1 400px;
}

.profile-text h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.profile-list {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.profile-list li {
    margin-bottom: 15px;
}

.profile-list ul {
    margin-top: 5px;
    padding-left: 20px;
    list-style: disc;
    font-size: 0.95rem;
    color: #555;
}

.profile-list ul li {
    margin-bottom: 5px;
}

/* AI Wrapping Projects Section */
.ai-projects-section {
    padding: var(--section-padding);
    background-color: var(--white);
    border-top: 1px solid #eee;
}

.section-lead {
    text-align: center;
    max-width: 800px;
    margin: -40px auto 50px;
    color: #666;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.project-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.project-card.highlight {
    border: 2px solid var(--accent-color);
    background-color: #fffbf0;
}

.project-header {
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.project-id {
    display: block;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: #888;
    margin-bottom: 5px;
}

.project-header h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    line-height: 1.4;
}

.project-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-desc {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-stack span {
    background-color: #f0f4f4;
    color: var(--secondary-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    border: 1px solid #dceaea;
}

.project-card.highlight .tech-stack span {
    background-color: rgba(255, 183, 77, 0.15);
    border-color: rgba(255, 183, 77, 0.3);
    color: #d88d00;
}

/* Service Section (SME Support) */
.service-section {
    padding: var(--section-padding);
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Case Studies */
.case-studies {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px dashed #ccc;
}

.case-studies h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.case-group {
    margin-bottom: 50px;
}

.case-group h4, .subsidy-results h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-left: 5px solid var(--accent-color);
    padding-left: 15px;
}

.case-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.case-item {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.case-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.case-loc {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.case-item h4 {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.case-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
}

/* Subsidy Table */
.subsidy-results {
    margin-top: 50px;
}

.subsidy-table-wrapper {
    overflow-x: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.subsidy-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.subsidy-table th, .subsidy-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.subsidy-table th {
    background-color: #f8f9fa;
    color: var(--secondary-color);
    font-weight: 700;
}

.tag-sm {
    background-color: #e0f2f1;
    color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.stats-disclaimer {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #777;
    text-align: center;
}

/* Startup Section */
.startup-section {
    padding: var(--section-padding);
}

.startup-intro {
    max-width: 850px;
    margin: -30px auto 50px;
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    line-height: 1.8;
}

.startup-intro p {
    margin-bottom: 15px;
    color: #444;
}

.startup-intro strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

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

.step {
    position: relative;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.step-num {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(0,0,0,0.05);
    line-height: 1;
    margin-bottom: 10px;
}

.step h4 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
}

/* Contact Section */
.contact-section {
    padding: var(--section-padding);
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
}

.contact-section .section-title {
    color: var(--white);
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s;
}

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

.btn-primary:hover {
    background-color: #ffca28;
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--secondary-color);
}

/* =========================
   Subsidy Page Styles
   ========================= */
.page-header {
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.sub-section {
    padding: 80px 20px;
}

.bg-light {
    background-color: var(--light-bg);
}

.concept-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.concept-box h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    line-height: 1.4;
}

.pain-points {
    text-align: left;
    background: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin: 30px auto;
    display: inline-block;
}

.pain-points li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.pain-points li::before {
    content: '✔';
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    position: relative;
    border-top: 4px solid var(--primary-color);
}

.feature-num {
    font-size: 2rem;
    font-weight: 700;
    color: rgba(0,0,0,0.05);
    position: absolute;
    top: 10px;
    right: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.subsidy-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.subsidy-item-card {
    background: #fff;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
}

.subsidy-item-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.flow-steps {
    max-width: 800px;
    margin: 0 auto;
}

.flow-step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    align-items: flex-start;
}

.flow-icon {
    background: var(--primary-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    white-space: nowrap;
}

.flow-step.option .flow-icon {
    background: #777;
}

.flow-content h4 {
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.faq-q {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.cta-section {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 20px;
}

.cta-section .btn {
    background: var(--accent-color);
    color: var(--secondary-color);
    margin-top: 30px;
}

.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.read-more {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* =========================
   Seminar Page Styles
   ========================= */
.seminar-header {
    background-color: var(--primary-color);
}

.seminar-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.seminar-step {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    border-left: 5px solid var(--accent-color);
}

.step-badge {
    background: var(--accent-color);
    color: var(--secondary-color);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.seminar-step h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.step-desc {
    font-weight: 500;
    margin-bottom: 15px;
    color: #444;
}

.step-details {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    font-size: 0.95rem;
}

.before-after-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.ba-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.ba-card h4 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--secondary-color);
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.ba-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ba-item {
    flex: 1;
    text-align: center;
    font-size: 0.9rem;
}

.ba-label {
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.ba-item.before .ba-label { color: #888; }
.ba-item.after .ba-label { color: var(--primary-color); }
.ba-item.after { font-weight: 700; color: var(--primary-color); }

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

.message-section {
    background-color: var(--white);
    padding: 60px 20px;
}

.message-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
    background-color: #f0f8ff;
    border-radius: 8px;
    border: 1px dashed var(--primary-color);
}

.message-box h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: var(--font-body); /* More readable */
}

/* =========================
   AI Education Page Styles
   ========================= */
.aiedu-header {
    background: linear-gradient(135deg, #1a237e 0%, #004d40 100%);
}

.aiedu-badge-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.aiedu-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    background: #e8f5e9;
    color: #2e7d32;
}

.aiedu-badge.accent {
    background: var(--accent-color);
    color: var(--secondary-color);
}

/* Course Cards Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.course-card {
    background: #fff;
    border-radius: 12px;
    padding: 35px 30px;
    border: 2px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

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

.course-card.highlight {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.course-ume.highlight { border-color: #66bb6a; }
.course-take.highlight { border-color: #42a5f5; }
.course-matsu.highlight { border-color: var(--accent-color); }

.course-recommend {
    position: absolute;
    top: -12px;
    right: 20px;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}

.course-ume .course-recommend { background: #66bb6a; }
.course-take .course-recommend { background: #42a5f5; }
.course-matsu .course-recommend { background: var(--accent-color); color: var(--secondary-color); }

.course-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    color: #888;
}

.course-card h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
    line-height: 1.4;
}

.course-target {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 20px;
}

.course-price {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-amount small {
    font-size: 0.9rem;
    font-weight: 500;
}

.price-note {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
}

.course-features {
    flex-grow: 1;
    margin-bottom: 20px;
    padding-left: 20px;
}

.course-features li {
    list-style: disc;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #555;
}

.course-outcome {
    background: #f0f8f0;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #444;
    margin-bottom: 20px;
}

.btn-course {
    display: block;
    text-align: center;
    padding: 12px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-course:hover {
    background: var(--primary-color);
    color: #fff;
}

.course-ume { border-top: 5px solid #66bb6a; }
.course-take { border-top: 5px solid #42a5f5; }
.course-matsu { border-top: 5px solid var(--accent-color); }

/* Comparison Table */
.aiedu-table .col-ume { background: rgba(102, 187, 106, 0.05); }
.aiedu-table .col-take { background: rgba(66, 165, 245, 0.05); }
.aiedu-table .col-matsu { background: rgba(255, 183, 77, 0.08); }

/* Day Structure */
.day-structure {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.day-block {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    background: #fff;
}

.day-header {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.day-header h3 {
    font-size: 1.2rem;
    color: #fff;
}

.day-header.day1 { background: var(--secondary-color); }
.day-header.day2 { background: var(--primary-color); }

.day-tag {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.day-body {
    padding: 25px 30px;
}

.session-item {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
}

.session-item:last-child { border-bottom: none; }

.session-num {
    background: var(--secondary-color);
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-mono);
    white-space: nowrap;
    margin-top: 2px;
}

.session-item h4 {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.session-item p {
    font-size: 0.85rem;
    color: #777;
}

/* Day 2 Course Tabs */
.day2-courses {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.day2-course {
    background: #fafafa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ccc;
}

.day2-course h4 {
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.course-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}

.course-badge.ume { background: #66bb6a; }
.course-badge.take { background: #42a5f5; }
.course-badge.matsu { background: var(--accent-color); color: var(--secondary-color); }

.session-list {
    padding-left: 20px;
}

.session-list li {
    list-style: decimal;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #555;
}

.session-list li strong {
    font-family: var(--font-mono);
    color: var(--secondary-color);
    margin-right: 5px;
}

/* Dojo Section */
.dojo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.dojo-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    border: 2px solid #e0e0e0;
}

.dojo-card.white-belt { border-top: 5px solid #66bb6a; }
.dojo-card.black-belt { border-top: 5px solid #263238; }

.dojo-icon {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.white-belt .dojo-icon {
    background: #e8f5e9;
    color: #2e7d32;
}

.black-belt .dojo-icon {
    background: var(--secondary-color);
    color: #fff;
}

.dojo-card h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 6px;
}

.dojo-subtitle {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.dojo-card ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.dojo-card ul li {
    list-style: disc;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #555;
}

.dojo-target {
    display: flex;
    gap: 8px;
}

/* Subsidy Info */
.subsidy-info {
    max-width: 800px;
    margin: 0 auto;
}

.subsidy-highlight {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid var(--accent-color);
    margin-bottom: 40px;
    text-align: center;
}

.subsidy-highlight p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.subsidy-flow {
    max-width: 700px;
    margin: 0 auto;
}

/* Step Up Flow */
.stepup-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.stepup-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stepup-desc {
    font-size: 0.8rem;
    color: #777;
}

.stepup-arrow {
    font-size: 1.5rem;
    color: #ccc;
    font-weight: 700;
}

.stepup-goal {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    background: var(--primary-color);
    color: #fff;
}

/* =========================
   Column Page Styles
   ========================= */
.column-section {
    padding: var(--section-padding);
    background-color: var(--white);
    border-top: 1px solid #eee;
}

.column-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.column-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.column-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.column-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.column-category {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}

.column-category.cat-subsidy { background: #4CAF50; }
.column-category.cat-aidx { background: #2196F3; }
.column-category.cat-management { background: #FF9800; }
.column-category.cat-startup { background: #9C27B0; }

.column-date {
    font-size: 0.8rem;
    color: #999;
    font-family: var(--font-mono);
}

.column-card h3 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    line-height: 1.5;
}

.column-card h3 a {
    color: inherit;
}

.column-card h3 a:hover {
    color: var(--primary-color);
}

.column-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
}

.column-more-wrapper {
    text-align: center;
}

.btn-column-more {
    display: inline-block;
    padding: 12px 40px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-column-more:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Column List Page */
.column-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #37474f 100%);
}

.column-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.column-filter-btn {
    padding: 8px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    background: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.column-filter-btn:hover,
.column-filter-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}

.column-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.column-list-item {
    display: flex;
    gap: 25px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
    align-items: flex-start;
}

.column-list-item:hover {
    box-shadow: 0 6px 15px rgba(0,0,0,0.06);
    border-color: var(--primary-color);
}

.column-list-meta {
    flex-shrink: 0;
    text-align: center;
    min-width: 80px;
}

.column-list-date {
    font-size: 0.8rem;
    color: #999;
    font-family: var(--font-mono);
    display: block;
    margin-top: 8px;
}

.column-list-body h3 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
    line-height: 1.4;
}

.column-list-body h3 a:hover {
    color: var(--primary-color);
}

.column-list-body p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* Column Article Page */
.column-article-header {
    background: var(--secondary-color);
    color: #fff;
    text-align: center;
    padding: 60px 20px 40px;
}

.column-article-header h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.column-article-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
}

.column-article-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.column-article-body h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.column-article-body h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 30px 0 15px;
}

.column-article-body p {
    margin-bottom: 20px;
    line-height: 2;
    color: #444;
}

.column-article-body ul,
.column-article-body ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.column-article-body li {
    list-style: disc;
    margin-bottom: 8px;
    line-height: 1.8;
    color: #444;
}

.column-article-body ol li {
    list-style: decimal;
}

.column-article-body blockquote {
    border-left: 4px solid var(--accent-color);
    background: #f9f9f9;
    padding: 20px 25px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    color: #555;
    font-style: italic;
}

.column-article-body strong {
    color: var(--secondary-color);
}

.column-nav-links {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
}

.column-nav-prev,
.column-nav-next {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

.column-nav-prev:hover,
.column-nav-next:hover {
    text-decoration: underline;
}

.column-related-cta {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 30px;
    background: #f0f8f0;
    border-radius: 8px;
    text-align: center;
    border: 1px dashed var(--primary-color);
}

.column-related-cta h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.column-related-cta p {
    margin-bottom: 15px;
    color: #555;
}

/* =========================
   Subsidy Banner (Top Bar)
   ========================= */
.subsidy-banner {
    background: linear-gradient(90deg, #1b5e20 0%, #2e7d32 50%, #388e3c 100%);
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    z-index: 1001;
}

.subsidy-banner a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.subsidy-banner a:hover {
    color: var(--accent-color);
}

.subsidy-banner .banner-new {
    display: inline-block;
    background: var(--accent-color);
    color: var(--secondary-color);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 8px;
    vertical-align: middle;
}

/* =========================
   Subsidy List Page Styles
   ========================= */
.subsidy-list-header {
    background: linear-gradient(135deg, #1b5e20 0%, #004d40 100%);
}

.subsidy-overview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.subsidy-overview-table th {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 700;
    padding: 15px 20px;
    text-align: left;
}

.subsidy-overview-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.subsidy-overview-table tr:last-child td {
    border-bottom: none;
}

.subsidy-overview-table tr:hover {
    background-color: #f0f8f0;
}

.deadline-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.deadline-badge.active {
    background: #e8f5e9;
    color: #2e7d32;
}

.deadline-badge.upcoming {
    background: #fff3e0;
    color: #e65100;
}

.deadline-badge.unknown {
    background: #f5f5f5;
    color: #888;
}

.subsidy-detail-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.subsidy-detail-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.subsidy-detail-header {
    padding: 25px 30px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.subsidy-detail-header.hokkaido {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
}

.subsidy-detail-header.national {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
}

.subsidy-detail-header h3 {
    font-size: 1.3rem;
    color: #fff;
    line-height: 1.4;
}

.subsidy-detail-body {
    padding: 30px;
}

.subsidy-detail-body dl {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0;
}

.subsidy-detail-body dt {
    padding: 12px 15px;
    font-weight: 700;
    color: var(--secondary-color);
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.subsidy-detail-body dd {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    line-height: 1.7;
    color: #444;
    font-size: 0.95rem;
}

.subsidy-detail-body dd:last-child,
.subsidy-detail-body dt:nth-last-child(2) {
    border-bottom: none;
}

.subsidy-source-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.subsidy-source-link:hover {
    background: #00695c;
    color: #fff;
}

.subsidy-disclaimer {
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    padding: 30px 20px;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .subsidy-detail-body dl {
        grid-template-columns: 1fr;
    }

    .subsidy-detail-body dt {
        border-bottom: none;
        padding-bottom: 4px;
    }

    .subsidy-detail-body dd {
        padding-top: 0;
        padding-left: 15px;
    }

    .subsidy-overview-table th:nth-child(3),
    .subsidy-overview-table td:nth-child(3) {
        display: none;
    }
}

/* Nav active state */
.nav-active {
    color: var(--primary-color) !important;
    border-bottom: 2px solid var(--accent-color);
}

/* Footer */
footer {
    background-color: #1a2327;
    color: rgba(255,255,255,0.5);
    text-align: center;
    padding: 30px 20px;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        padding-top: 20px;
        gap: 15px;
    }
    
    .logo {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .hamburger {
        display: block;
        font-size: 1.5rem;
        color: var(--primary-color);
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .profile-content {
        flex-direction: column;
    }
}

/* =========================
   AI Services Page Styles
   ========================= */
.aisvc-header {
    background: linear-gradient(135deg, #1a237e 0%, #004d40 100%);
}

.aisvc-updated {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-top: 10px;
}

/* Category Cards */
.aisvc-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
}

.aisvc-cat-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.aisvc-cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.aisvc-cat-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.aisvc-cat-card h3 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.aisvc-cat-card p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 12px;
}

.aisvc-cat-examples {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Comparison Table */
.aisvc-table-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    vertical-align: middle;
    margin-right: 6px;
}

.aisvc-tag-special {
    background-color: #e3f2fd !important;
    color: #1565c0 !important;
}

.aisvc-tag-search {
    background-color: #fce4ec !important;
    color: #c62828 !important;
}

/* Detail Cards */
.aisvc-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
}

.aisvc-detail-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.aisvc-detail-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.aisvc-detail-card.aisvc-special {
    border-top: 3px solid #1565c0;
}

.aisvc-detail-card.aisvc-search {
    border-top: 3px solid #c62828;
}

.aisvc-detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 25px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.aisvc-detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
}

.aisvc-detail-icon-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--secondary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.aisvc-detail-header h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.aisvc-detail-body {
    padding: 15px 25px;
    flex-grow: 1;
}

.aisvc-detail-body p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.7;
}

.aisvc-detail-body ul {
    padding-left: 20px;
}

.aisvc-detail-body li {
    list-style: disc;
    font-size: 0.88rem;
    color: #555;
    margin-bottom: 6px;
    line-height: 1.6;
}

.aisvc-caution {
    color: #c62828 !important;
    font-weight: 600;
}

.aisvc-detail-footer {
    padding: 15px 25px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.aisvc-price {
    font-size: 0.82rem;
    color: #888;
    font-family: var(--font-mono);
}

.aisvc-link {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}

.aisvc-link:hover {
    text-decoration: underline;
}

/* Recommend Section */
.aisvc-recommend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.aisvc-recommend-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.aisvc-recommend-card h3 {
    font-size: 1.05rem;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.aisvc-recommend-services {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.aisvc-rec-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.aisvc-recommend-card p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .aisvc-detail-grid {
        grid-template-columns: 1fr;
    }

    .aisvc-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
