:root {
    --color-primary: #0f4788;
    --color-primary-dark: #00447c;
    --color-secondary: #6c757d;
    --color-dark: #343a40;
    --color-light: #f8f9fa;
    --color-white: #ffffff;
    --color-border: #dee2e6;
    --font-main: 'Noto Sans JP', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --container-max-width: 1200px;
}

body {
    font-family: var(--font-main);
    color: var(--color-dark);
    background-color: var(--color-light);
    margin: 0;
}

/* Override generically for all text */
div,
p,
span,
h1,
h2,
h3,
h4,
h5,
h6,
a,
li {
    font-family: var(--font-main);
}

/* Container for corporate content to ensure centering and max-width */
.corporate-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Header Styling */
header.fixed {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
}

header.fixed nav {
    display: flex;
    gap: 30px;
    margin-left: auto;
    margin-right: 30px;
}

header.fixed nav a {
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

header.fixed nav a:hover {
    color: var(--color-primary);
}

.wbs-logo-text {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 24px;
    text-decoration: none;
    letter-spacing: 0.05em;
}

/* Padding for main content to account for fixed header */
.custom-wbs-section {
    padding-top: 0;
    /* Handled by hero section */
}

/* Hero Section */
.hero-container {
    position: relative;
    padding: 120px 0 100px;
    text-align: center;
    background: linear-gradient(to bottom, #ffffff, #f0f4f8);
    margin-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
    /* Prevent illustrations from causing scrollbars */
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 50px;
    /* Extra padding for wave - Reduced to move up */
}

/* Wave Divider */
.custom-shape-divider-bottom-167123 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom-167123 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.custom-shape-divider-bottom-167123 .shape-fill {
    fill: var(--color-primary);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    transform: translateY(-70px);
    /* Adjusted up more per user request */
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    color: var(--color-dark);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.8;
    color: var(--color-primary);
    /* Use the new Navy Blue */
    margin: 0;
}

/* Decorative Floating Images */
.hero-decorations img {
    position: absolute;
    width: 140px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.08));
    z-index: 1;
}

/* Positioning based on "scattered" look */
.hero-float-1 {
    top: 15%;
    left: 5%;
    width: 180px !important;
}



/* Float 3: Big at Bottom Center */
.hero-float-3 {
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 350px !important;
    z-index: 5;
    /* Ensure above wave */
    clip-path: inset(27% 0 0 0);
    /* Crop top blue line and box */
}

/* Float 4: Removed */

/* Float 5: Top Right */
.hero-float-2 {
    top: 90px;
    /* Lowered */
    right: 5%;
    width: 250px !important;
    /* Larger */
    z-index: 1;
}

/* Animations removed by user request */

/* Obsolete Gallery Styles Removed */


/* Contact Form Styles (Vertical / Stacked) */
.contact-form {
    background: transparent;
    /* Or white if card needed, but user said "smaller", maybe minimal */
    padding: 0;
    max-width: 100%;
}

.form-row {
    display: block;
    border-bottom: none;
    margin-bottom: 15px;
    /* Tighter spacing */
}

.form-label {
    width: 100%;
    background-color: transparent;
    padding: 0 0 5px 0;
    font-weight: 700;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    border-right: none;
    font-size: 0.9rem;
    /* Smaller label */
}

.form-content {
    width: 100%;
    padding: 0;
    display: block;
}

.required {
    background: #c62828;
    color: white;
    font-size: 0.65rem;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 8px;
    font-weight: bold;
    display: inline-block;
    white-space: nowrap;
    vertical-align: middle;
}

.form-example {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 4px;
}

/* Split Fields (Name, Furigana) */
.name-group {
    display: flex;
    gap: 10px;
    /* Tighter gap */
}

.name-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.name-label-small {
    display: none;
    /* Hide 'Sei/Mei' sub-labels if main label covers it, or make very subtle. Image usually just shows two boxes. */
}

/* Styling for "Sei" and "Mei" distinction - typically just placeholder is enough */

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 8px 10px;
    /* Distinctly smaller padding */
    border: 1px solid #ccc;
    /* Clean border */
    border-radius: 4px;
    font-size: 0.9rem;
    /* Smaller text */
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-family: var(--font-main);
    background-color: #fff;
    color: var(--color-dark);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    /* Subtle inner shadow */
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(15, 71, 136, 0.1);
    background-color: #fff;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
    /* Smaller textarea */
}

@media (max-width: 768px) {
    .name-group {
        gap: 10px;
    }
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

th,
td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    font-size: 15px;
}

th {
    background-color: var(--color-light);
    font-weight: 700;
    color: var(--color-dark);
    width: 30%;
    border-right: 1px solid var(--color-border);
    white-space: nowrap;
}

tr:last-child td,
tr:last-child th {
    border-bottom: none;
}

/* Button Styling */
.corporate-btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(25, 69, 105, 0.3);
    font-size: 0.9rem;
}

.corporate-btn:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(25, 69, 105, 0.4);
}

/* Section Headings */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 50px;
    margin-top: 100px;
    text-align: center;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* Grid Layout for Business/Location */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-card {
    background: var(--color-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-border);
}

.feature-card h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
    font-size: 1.25rem;
    font-weight: 700;
}

/* News Section */
.news-section {
    background-color: var(--color-primary);
    padding: 10 0 10px;
    /* Top padding handled by wave overlap visual, or just bottom */
    color: var(--color-white);
    margin-top: -2px;
    /* Prevent sub-pixel gaps */
}

.news-list {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding-top: 20px;
}

.news-label {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1;
    color: var(--color-white);
}

.news-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: var(--color-white);
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    opacity: 0.8;
}

.news-date {
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
}

.news-tag {
    background: var(--color-white);
    color: var(--color-primary);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.news-title {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.news-arrow {
    font-size: 1.2rem;
}

/* Footer Styling */
.corporate-footer {
    background-color: #212529;
    color: #adb5bd;
    padding: 60px 0 20px;
    margin-top: 80px;
    font-size: 0.9rem;
}

.corporate-footer a {
    color: var(--color-white);
    text-decoration: none;
    transition: opacity 0.3s;
}

.corporate-footer a:hover {
    opacity: 0.7;
}

.corporate-footer h4 {
    color: var(--color-white);
    margin-bottom: 20px;
}

/* Marquee Animation */
.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.client-logo-item {
    background: var(--color-white);
    padding: 15px 30px;
    border-radius: 50px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--color-dark);
}

/* Pie Chart Styles (Global) */
.pie-chart-section {
    background: var(--color-white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    margin-top: 20px;
}

.pie-chart-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.pie-chart {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient(var(--color-primary-dark) 0% 42%,
            var(--color-primary) 42% 71%,
            var(--color-secondary) 71% 95%,
            #ced4da 95% 100%);
    position: relative;
    box-shadow: var(--shadow-md);
}

.pie-chart::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    background: var(--color-white);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.pie-chart-legend {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 500;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.type-1 {
    background-color: var(--color-primary-dark);
}

.legend-color.type-2 {
    background-color: var(--color-primary);
}

.legend-color.type-3 {
    background-color: var(--color-secondary);
}

.legend-color.type-4 {
    background-color: #ced4da;
}

/* RESPONSIVE MEDIA QUERIES */

@media (max-width: 992px) {
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {

    /* Mobile Header */
    header.fixed {
        height: auto;
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    header.fixed nav {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 10px;
        display: flex;
    }

    .wbs-logo-text {
        align-self: flex-start;
    }

    header.fixed .corporate-btn {
        position: absolute;
        right: 20px;
        top: 15px;
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    /* Mobile Typography */
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    /* Mobile Tables: Stack Key/Value */
    th,
    td {
        display: block;
        width: 100%;
        border-right: none;
        box-sizing: border-box;
    }

    th {
        background-color: #f8f9fa;
        border-bottom: none;
        padding-bottom: 5px;
        color: var(--color-primary-dark);
    }

    td {
        padding-top: 5px;
        padding-bottom: 20px;
    }

    /* Pie Chart Responsive */
    .pie-chart-container {
        flex-direction: column;
        align-items: center;
    }

    .pie-chart-legend {
        width: 100%;
        justify-content: center;
    }


    /* Mobile Grid */
    .feature-grid {
        grid-template-columns: 1fr;
    }

    /* Footer on Mobile */
    .corporate-footer .corporate-container {
        flex-direction: column;
        gap: 30px;
    }

    /* Hero Responsive */
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-decorations img {
        display: none !important;
    }

    .hero-container {
        min-height: auto;
        padding: 80px 20px 60px;
    }

    /* News Responsive */
    .news-list {
        flex-direction: column;
        gap: 20px;
        padding-top: 10px;
    }

    .news-label {
        font-size: 1.8rem;
    }

    .news-item {
        flex-wrap: wrap;
        gap: 10px;
    }

    .news-section {
        padding-bottom: 40px;
    }
}

/* Custom Button for Tech Blog */
.tech-blog-btn {
    background: #6c9bd2;
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 2px solid #6c9bd2;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tech-blog-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(108, 155, 210, 0.4);
    background: #5a8bc0;
    border-color: #5a8bc0;
}

.tech-blog-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(108, 155, 210, 0.4);
}