:root {
    --color-primary: #0b1c3c;
    /* Deep Navy */
    --color-secondary: #1a2a4a;
    /* Lighter Navy for backgrounds */
    --color-accent: #007bc7;
    /* Blue - was Gold */
    --color-accent-light: #4db3f0;
    --color-text-main: #333333;
    --color-text-light: #666666;
    --color-bg-light: #f9f9f9;
    --color-white: #ffffff;
    --font-base: "Noto Sans JP", sans-serif;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    color: var(--color-text-main);
    line-height: 1.6;
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
}

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

.mobile-padding {
    padding-left: 5%;
    padding-right: 5%;
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-gold {
    color: var(--color-accent);
}

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

.mb-10 {
    margin-bottom: 40px;
}

.pc-only {
    display: block;
}

@media (max-width: 768px) {
    .pc-only {
        display: none;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    border: none;
}

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

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

.btn-lg {
    padding: 16px 48px;
    font-size: 1.25rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 80px;
    display: flex;
    align-items: center;
}

.header-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    line-height: 1;
}

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

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

.nav-list {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-list a {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
}

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

@media (max-width: 900px) {
    .sm-hidden {
        display: none;
    }

    .sm-only {
        display: block;
    }
}

@media (min-width: 901px) {
    .sm-only {
        display: none !important;
    }
}

/* Hero */
/* Hero */
.hero {
    position: relative;
    padding: 120px 0 0;
    /* Removed bottom padding */
    /* Reduced vertical padding since we have a header */
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    /* Align content to bottom */
    background: transparent;
    overflow: hidden;
    color: black;
}

/* Add a subtle geometric pattern overlay if needed, or just keep it clean */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.9), transparent);
    z-index: 0;
    pointer-events: none;
}

@media (min-width: 1200px) {
    /* Reverted scaling */
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Keep bottom 0 to cover full height */
    background: url('images/hero_bg.jpeg') no-repeat center center/cover;
    z-index: 0;
}

.hero-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    /* Align items to bottom */
    gap: 40px;
}

.hero-text-col {
    flex: 6;
    /* 6:4 ratio */
    max-width: none;
    text-align: left;
    padding-bottom: 80px;
    /* Add bottom padding for text */
}

.hero-visual-col {
    flex: 4;
    /* 6:4 ratio */
    display: flex;
    justify-content: center;
    align-items: flex-end;
    /* Align bottom for standing person */
}

/* Visual Image Style */
.hero-visual-img {
    max-width: 100%;
    /* Ensure it fits in the 40% column */
    height: auto;
    transform: scale(1.5);
    transform-origin: bottom center;
}

.hero-label {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    /* Gold tint background */
    border: 1px solid var(--color-accent);
    color: var(--color-accent-light);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 1rem;
    /* Increased size */
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    /* Glow effect */
}

.hero-main-message {
    font-size: 2.2rem;
    margin-bottom: 20px;
    /* Reduced from 30px */
    line-height: 1.5;
    font-weight: 700;
}

.hero-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
    line-height: 1.6;
    font-weight: 500;
}

.hero-achievement-badge {
    border: 3px solid var(--color-primary);
    color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2px 15px;
    display: inline-block;
    font-size: 1.6rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-main-sub {
    font-size: 1.4rem;
    /* Smaller size for the top line */
    display: inline-block;
    margin-bottom: 10px;
}

.hero-main-highlight {
    font-size: 2.8rem;
    /* Larger size for the main highlights */
    line-height: 1.3;
    display: inline-block;
}

.hero-laurel-wrapper {
    margin-bottom: 30px;
    /* Space below laurels before CTA */
    margin-top: 0;
    display: flex;
    gap: 15px;
    /* Space between laurels */
    justify-content: flex-start;
    /* Align left */
}

.hero-laurel-img {
    height: 85px;
    /* Scaled up 1.2x from 70px */
    /* Slightly smaller to fit 3 */
    width: auto;
    opacity: 1;
    /* Fully visible */
    filter: drop-shadow(0 2px 5px rgba(212, 175, 55, 0.3));
}

.hero-achievement {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--color-accent-light);
    font-weight: 700;
    letter-spacing: 0.1em;
}

@media (max-width: 900px) {
    .hero-content-wrapper {
        flex-direction: column-reverse;
        flex-direction: column;
        text-align: center;
        align-items: center;
        /* Reset alignment for mobile */
    }

    .hero-text-col {
        text-align: center;
        margin-bottom: 40px;
        padding-bottom: 0;
        /* Reset padding for mobile */
    }

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

    .hero-lead-new {
        font-size: 1.2rem;
    }

    .visual-placeholder {
        height: 250px;
    }

    .hero-visual-img {
        transform: scale(1.0);
        /* Reset scale for mobile to prevent overlap */
        max-width: 80%;
        /* Reduce width slightly */
    }
}

/* Section Common */
.section {
    padding: 80px 0;
}

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

.section-subtitle {
    display: block;
    color: var(--color-accent);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.section-title {
    font-size: 2.2rem;
    color: var(--color-primary);
}

@media(max-width:768px) {
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* About / Subsidy Detail */
.subsidy-detail-table {
    border-top: 2px solid var(--color-primary);
    margin-bottom: 40px;
    text-align: left;
}

.detail-row {
    display: flex;
    border-bottom: 1px solid #ddd;
}

.detail-row dt {
    width: 25%;
    min-width: 180px;
    background-color: var(--color-bg-light);
    font-weight: 700;
    color: var(--color-primary);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-row dd {
    width: 75%;
    flex: 1;
    padding: 20px;
    font-size: 0.95rem;
}

.highlight-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #e60000;
}

.check-list,
.dot-list {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.check-list li {
    margin-bottom: 5px;
    position: relative;
    padding-left: 20px;
}

.check-list li::before {
    content: '✔';
    color: var(--color-accent);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.dot-list li {
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

.dot-list li::before {
    content: '・';
    position: absolute;
    left: 0;
}

/* Declaration Box */
.declaration-box {
    background-color: #e6f7ff;
    border: 3px solid var(--color-accent);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    position: relative;
}

.declaration-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--color-text-main);
    font-weight: 800;
}

.declaration-text {
    line-height: 1.8;
}

@media (max-width: 768px) {
    .detail-row {
        flex-direction: column;
    }

    .detail-row dt {
        width: 100%;
        justify-content: flex-start;
        padding: 15px;
        border-bottom: 1px dotted #ccc;
    }

    .detail-row dd {
        width: 100%;
        padding: 15px;
    }

    .declaration-box {
        padding: 20px;
    }
}

/* Pain Points */
.pain-content-wrapper {
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
    gap: 40px;
}

.pain-list {
    flex: 1;
    background: var(--color-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.pain-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pain-img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    /* Limit height to prevent it from being too large */
}

@media (max-width: 768px) {
    .pain-content-wrapper {
        flex-direction: column;
    }

    .pain-visual {
        width: 100%;
    }
}

.pain-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 20px;
}

.pain-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.check-icon {
    color: var(--color-accent);
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.pain-item p {
    font-weight: 500;
}

/* Strengths */
.strengths .container {
    max-width: 1280px;
}

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 900px) {
    .strengths-grid {
        grid-template-columns: 1fr;
    }
}

.strength-card {
    position: relative;
    padding: 40px 30px;
    background: var(--color-white);
    border: 1px solid #eee;
    border-radius: 8px;
    transition: 0.3s;
}

.strength-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
    border-color: transparent;
}

.strength-num {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(11, 28, 60, 0.05);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

.strength-card h4 {
    color: var(--color-primary);
    font-size: 1.4rem;
    margin-bottom: 15px;
    position: relative;
}

.strength-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* Flow - Split Card Style */
.flow .container {
    max-width: 800px;
    /* Constrain width for vertical flow */
}

.flow-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 20px 0;
}

.flow-row {
    display: flex;
    border: 2px solid #89cdf0;
    /* Light blue border */
    border-radius: 12px;
    background: var(--color-white);
    overflow: hidden;
    /* For rounded corners */
}

.flow-left {
    background-color: #d8f1ff;
    /* Very light blue bg */
    width: 30%;
    min-width: 200px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-right: 2px solid #89cdf0;
    /* Separator */
}

.flow-step-num {
    color: var(--color-primary);
    /* Blue text */
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
    display: block;
}

.flow-title {
    color: #0088cc;
    /* Vivid blue for title */
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
}

.flow-right {
    width: 70%;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    background-color: var(--color-white);
}

.flow-text {
    font-size: 1rem;
    color: var(--color-text-main);
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

/* Arrow between rows */
.flow-arrow-row {
    text-align: center;
    color: #89cdf0;
    font-size: 1.5rem;
    padding: 10px 0;
    line-height: 1;
}

/* Last arrow hidden */
.flow-arrow-row:last-child {
    display: none;
}

@media (max-width: 768px) {
    .flow-row {
        flex-direction: column;
    }

    .flow-left {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #89cdf0;
        padding: 15px;
        min-width: auto;
    }

    .flow-step-num {
        display: inline-block;
        margin-right: 10px;
        margin-bottom: 0;
    }

    .flow-title {
        display: inline-block;
    }

    .flow-right {
        width: 100%;
        padding: 20px;
    }
}

/* Consultants Carousel */
.consultants {
    background-color: var(--color-bg-light);
}

.carousel-container {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.carousel-track-container {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    list-style: none;
    transition: transform 0.3s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
    /* Add padding for spacing */
}

@media (min-width: 768px) {
    .carousel-slide {
        min-width: 50%;
    }

    .carousel-container[data-visible-desktop="1"] .carousel-slide {
        min-width: 100%;
    }

    .carousel-container[data-visible-desktop="3"] .carousel-slide {
        min-width: calc(100% / 3);
    }
}

/* Consultant Card */
.consultant-card {
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.consultant-img-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: #eee;
}

.consultant-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.consultant-info {
    padding: 30px;
}

.consultant-role {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.consultant-name {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.consultant-bio {
    font-size: 0.95rem;
    color: var(--color-text-main);
    line-height: 1.8;
}

/* Carousel Navigation */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 3rem;
    color: var(--color-accent);
    /* Changed to blue in request reference, but keeping gold or primary as per theme. Let's start with proper chevron styling. Reference had blue arrows. */
    color: #007bff;
    /* Matching the blue in the reference image approximately, or stick to theme */
    color: var(--color-primary);
    /* Sticking to theme for now, or accent? Reference had bright blue. */
    cursor: pointer;
    z-index: 10;
    padding: 10px;
}

/* Let's try to match the reference style "chevron" */
.carousel-arrow {
    font-size: 4rem;
    color: #007bc7;
    /* A nice blue similar to reference */
    font-family: monospace;
    /* For simple chevron character */
    font-weight: bold;
}

.carousel-arrow.prev {
    left: -20px;
}

.carousel-arrow.next {
    right: -20px;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    gap: 10px;
}

.carousel-indicator {
    border: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
}

.carousel-indicator.current-slide {
    background: #007bc7;
    /* Active dot color */
}

@media (max-width: 768px) {
    .consultant-img-wrapper {
        height: 250px;
    }

    .carousel-arrow {
        display: none;
        /* Hide arrows on mobile, maybe rely on swipe or dots? Or make them smaller. */
    }

    .carousel-container {
        padding: 0;
    }
}

.step-item {
    background: var(--color-white);
    padding: 20px;
    width: 200px;
    text-align: center;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.step-label {
    font-size: 0.8rem;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 5px;
}

.step-text {
    font-weight: 700;
    color: var(--color-primary);
}

.step-arrow {
    color: var(--color-accent);
    font-weight: bold;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .flow-steps {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 5px 0;
    }

    .step-item {
        width: 100%;
        max-width: 300px;
    }
}

/* Contact */
.contact {
    /* Background handled by bg-gray class */
    color: var(--color-text-main);
    text-align: center;
}

.contact-box {
    max-width: 800px;
    margin: 0 auto;
}

.contact-title {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.contact-text {
    margin-bottom: 40px;
    color: var(--color-text-light);
}

/* Footer */
.footer {
    background: #050e1f;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    padding: 20px 0;
    font-size: 0.8rem;
}

/* Animations */
.fade-init {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-init.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Case Studies */
.case-studies {
    background-color: var(--color-bg-light);
}

.case-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.case-card {
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (min-width: 900px) {
    .case-card {
        flex-direction: row;
    }

    .case-img-col {
        flex: 4;
        min-height: 300px;
    }

    .case-content-col {
        flex: 6;
        padding: 40px;
    }
}

.case-img-col {
    position: relative;
    height: 250px;
    overflow: hidden;
}

@media (min-width: 900px) {
    .case-img-col {
        height: auto;
    }
}

.case-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-content-col {
    padding: 30px 20px;
}

.case-review-title {
    font-size: 1.2rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.5;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 10px;
    display: inline-block;
}

.case-company-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-text-main);
}

.case-detail-box {
    margin-bottom: 20px;
}

.case-detail-label {
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
}

.case-detail-text {
    font-size: 0.95rem;
    line-height: 1.8;
}

.case-detail-box:last-child {
    margin-bottom: 0;
}