:root {
    --font-main: 'Jost', sans-serif;
    --color-text-body: #6C757D;
    --color-text-heading: #000000;
    --color-primary: #01A4EF;
    --color-white: #FFFFFF;
    --container-width: 1140px;
    --feature-media-width: min(900px, calc(100vw - 40px));
    --feature-media-max-width: 900px;
    --feature-media-height: 300px;
    --header-height: 90px;
    --header-bg: rgba(0, 0, 0, 0.3);
    --hero-height: 300px;
    --hero-height-mobile: 220px;
}

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

/* Global Responsive Resets */
img,
svg,
video {
    max-width: 100%;
    height: auto;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-body);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

p,
li,
h1,
h2,
h3 {
    overflow-wrap: break-word;
}

h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

/* Fluid Typography */
.hero-title {
    /* Linear interpolation from 32px at 375px to 56px at 1200px */
    font-size: clamp(32px, 21.09px + 2.91vw, 56px);
    color: var(--color-white);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title {
    /* Linear interpolation from 28px at 375px to 40px at 1200px */
    font-size: clamp(28px, 22.55px + 1.45vw, 40px);
    color: var(--color-text-body);
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
}

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

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    /* Increased slightly for mobile comfort */
}

/* Header */
.site-header {
    position: absolute;
    /* Using absolute to overlay hero like original */
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--header-bg);
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

.site-logo img {
    height: auto;
    max-height: 42px;
    /* Estimated, will refine with screenshot */
}

.site-nav ul {
    display: flex;
    gap: 30px;
}

.site-nav a {
    color: var(--color-white);
    font-size: 16px;
    font-weight: 500;
    padding: 6px 10px;
}

/* Hamburger Base Style */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2000;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: #fff;
    border-radius: 10px;
    transition: all 0.3s linear;
}

/* Nav Active State (Hamburger Animation) */
.nav-active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-active .hamburger span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.nav-active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: var(--hero-height);
    background-image: url('assets/hero-bg.jpg');
    background-size: cover;
    background-position: 50% 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    /* Slight overlay */
}

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

.hero-title {
    font-size: 56px;
    color: var(--color-white);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--color-white);
    font-weight: 500;
}

/* Sections General */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 40px;
    color: var(--color-text-body);
    /* Based on computed style H2 */
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.section-subtitle-ja {
    text-align: center;
    display: block;
    margin-bottom: 40px;
    font-size: 16px;
}

/* Consulting Slider (Revamped) */
/* Consulting Slider (Revamped) */
.consulting-section-wrapper {
    width: 100%;
    max-width: var(--feature-media-max-width);
    /* Standard Content Container */
    margin: 0 auto;
    /* Centered */
    padding: 80px 0 60px;
    /* Strict Match: 80px Top Padding from Analysis */
    position: relative;
}

.slider-container-full {
    position: relative;
    width: var(--feature-media-width);
    max-width: var(--feature-media-max-width);
    /* Strict Cap */
    margin: 0 auto 40px;
    /* Horizontal Centering */
}

.slide {
    display: none;
    width: 100%;
    height: var(--feature-media-height);
    /* Strict Match: Measured 380.67px */
    background-size: cover;
    background-position: center;
    position: relative;
}

.slide.active {
    display: block;
    animation: fadeEffect 1.5s;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Dark overlay for readability */
    display: flex;
    align-items: center;
}

.slide-content {
    color: #fff;
    padding: 0 20px;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.slide-title {
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 1px;
    color: #fff;
}

.slide-subtitle {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.consulting-text-ja {
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.8;
}

.consulting-text-en {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
}

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

.text-left {
    text-align: center;
}

.text-center {
    text-align: center;
}

/* Dots Overlay */
.slider-dots-overlay {
    position: absolute;
    bottom: 30px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active,
.dot:hover {
    background-color: #fff;
}

.slider-btn-wrapper {
    text-align: center;
}

@keyframes fadeEffect {
    from {
        opacity: 0.4
    }

    to {
        opacity: 1
    }
}

/* Responsive Slider */
@media (max-width: 768px) {
    .slide {
        height: 260px;
    }

    /* Match Hero on mobile */
    .hero-section {
        height: var(--hero-height-mobile);
    }

    .slider-container-full {
        width: 100%;
        padding: 0 12px;
    }

    .slide-title {
        font-size: 28px;
    }

    .slide-subtitle {
        font-size: 16px;
    }

    .consulting-text-ja {
        font-size: 15px;
    }
}

.btn-primary {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 9px 22px;
    border-radius: 4px;
    /* Default bootstrap-ish radius */
    font-weight: 500;
}

.btn-primary:hover {
    opacity: 0.8;
}

/* Concerns Section Layout */
.concerns-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.concern-item {
    background: #fff;
    border: 1px solid #eee;
    padding: 30px;
    width: 300px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Responsive Styles */
@media (max-width: 768px) {

    /* Header Mobile */
    .header-container {
        padding: 0 20px;
    }

    .hamburger {
        display: flex;
        position: absolute;
        /* Fix position relative to header */
        right: 20px;
        top: 26px;
        /* Adjust based on header height centering */
    }

    .site-nav {
        /* display: none; Removed: replaced with Fixed Mobile Overlay */
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden off-screen */
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease-in-out;
        z-index: 1500;
    }

    .nav-active .site-nav {
        right: 0;
        /* Slide in */
    }

    .site-nav ul {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .site-nav a {
        font-size: 24px;
        display: block;
        padding: 15px;
    }

    /* Hero Mobile */
    .hero-title {
        font-size: 28.8px;
        /* Strict value from analysis */
    }

    .hero-subtitle {
        font-size: 16px;
    }

    /* Section Mobile */
    .section-title {
        font-size: 28px;
        /* Estimated reduction */
    }

    .concerns-list {
        flex-direction: column;
        align-items: center;
    }
}

/* Updated Concerns Section (Split Layout) */
.concerns-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    width: var(--feature-media-width);
    max-width: var(--feature-media-max-width);
    margin: 0 auto;
    text-align: center;
    padding-left: 0;
    padding-right: 0;
}

.concerns-text {
    flex: 0 1 460px;
}

.concerns-image {
    flex: 0 1 460px;
    text-align: center;
}

.concerns-image img {
    border-radius: 50%;
    /* Circular image */
    max-width: 400px;
    width: 100%;
}

.concerns-list-styled {
    margin-top: 30px;
    display: inline-block;
    text-align: left;
}

.concern-item-styled {
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
    line-height: 1.6;
    font-weight: 500;
}

.concern-item-styled::before {
    content: "\2713";
    /* Simple checkmark, replacing icon based on analysis */
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-primary);
    font-weight: 700;
}

.ja-small {
    font-size: 14px;
    color: #888;
    font-weight: 400;
}

/* Services Grid */
.services-grid {
    display: grid;
    /* Reduced min-width to 280px to support iPhone SE (320px width) without breaking */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* ... existing service styles ... */

/* Mobile adjustments for new sections */
@media (max-width: 768px) {
    .concerns-container {
        flex-direction: column-reverse;
        /* Text atop image */
        text-align: center;
        padding-left: 12px;
        padding-right: 12px;
    }

    .concerns-text h2.section-title,
    .concerns-text p.section-subtitle-ja {
        text-align: center;
        /* Center align title on mobile */
    }

    .concerns-image img {
        max-width: 80%;
        /* Reduced from fixed pixel width */
        margin-bottom: 20px;
    }

    .section {
        padding: 50px 0;
        /* Reduced padding for mobile */
    }

    .strengths-grid {
        gap: 30px;
        /* Reduced gap */
    }

    .strength-desc-en,
    .strength-desc-ja {
        max-width: 100%;
        /* Allow full width text */
    }
}

/* Page Header Simple (Contact/Privacy) */
.page-header-simple {
    background-color: #f8f9fa;
    padding: 140px 0 60px;
    /* Account for absolute header */
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 36px;
    text-transform: uppercase;
}

/* Contact Form Styles */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-message {
    max-width: 700px;
    margin: 0 auto 20px;
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid transparent;
}

.form-message.success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.form-message.error {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.form-group {
    margin-bottom: 24px;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.required {
    color: red;
    margin-left: 4px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
}

textarea.form-control {
    height: 180px;
    resize: vertical;
}

.form-submit {
    text-align: center;
    margin-top: 40px;
}

/* Privacy Policy Styles */
.privacy-content h2 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.privacy-content p {
    margin-bottom: 16px;
    color: #555;
    line-height: 1.8;
}

/* Service Section Background Reversion & Split */
.services-section {
    padding: 0 0 80px;
    /* Remove top padding as banner handles it */
    background-color: transparent;
}

.service-header-banner {
    background-image: url('assets/service-bg.jpg');
    background-size: cover;
    background-position: center;
    height: var(--feature-media-height);
    margin-bottom: 60px;
    width: var(--feature-media-width);
    max-width: var(--feature-media-max-width);
    margin-left: auto;
    margin-right: auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-header-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    /* Darker overlay for text legibility */
}

.service-header-banner .container {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.service-banner-title {
    color: #fff;
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.service-banner-subtitle {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .service-header-banner {
        width: 100%;
        max-width: none;
        height: 220px;
    }
}

.service-content-container {
    width: var(--feature-media-width);
    max-width: var(--feature-media-max-width);
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
}

/* Footer */
.site-footer {
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 28px 0 22px;
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.site-copyright {
    font-size: 14px;
    color: #777;
    line-height: 1.4;
}


/* News/Information Section */
.news-section {
    padding: 80px 0;
    background-color: #fff;
}

/* Strengths Section */
.strength-section {
    display: none;
}

.strengths-section {
    background-color: #ffffff;
    padding: 70px 0 40px;
}

.strengths-panel {
    background-color: #efefef;
    width: var(--feature-media-width);
    margin: 0 auto;
    padding: 70px 34px 62px;
    text-align: center;
}

.section-title-strengths {
    font-size: clamp(28px, 2.2vw, 36px);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 6px;
    color: #111111;
    text-transform: none;
}

.section-subtitle-ja-strengths {
    font-size: clamp(24px, 1.9vw, 32px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 50px;
    color: #111111;
}

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

.strength-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.strength-img-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
}

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

.strength-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    min-height: 56px;
    color: #111111;
}

.strength-subtitle {
    font-size: 14px;
    margin-bottom: 14px;
    color: #111111;
    min-height: 36px;
}

.strength-desc-en,
.strength-desc-ja {
    font-size: 13px;
    color: #111111;
    line-height: 1.7;
}

.strength-desc-en {
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .strengths-panel {
        width: calc(100% - 24px);
        padding: 50px 16px 42px;
    }

    .section-title-strengths {
        font-size: 24px;
    }

    .section-subtitle-ja-strengths {
        font-size: 20px;
        margin-bottom: 30px;
    }

    .strengths-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .strength-item {
        margin-bottom: 0;
    }

    .strength-title {
        font-size: 20px;
        min-height: auto;
    }

    .strength-subtitle {
        min-height: auto;
    }

    .strength-desc-en,
    .strength-desc-ja {
        font-size: 14px;
    }
}

.news-list {
    width: 100%;
    max-width: var(--feature-media-max-width);
    margin: 0 auto;
    border-top: 1px solid #eee;
}

.news-section .container {
    max-width: var(--feature-media-max-width);
    padding-left: 0;
    padding-right: 0;
}

.news-item {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    align-items: baseline;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
}

.news-date {
    font-family: 'Jost', sans-serif;
    color: #999;
    width: 120px;
    flex-shrink: 0;
}

.news-title {
    flex: 1;
    color: var(--color-text-body);
    font-weight: 500;
}

.news-title:hover {
    color: var(--color-primary);
    text-decoration: underline;
    cursor: pointer;
}

.view-all-btn {
    text-align: center;
    margin-top: 40px;
}

.btn-secondary {
    display: inline-block;
    border: 1px solid #ddd;
    color: #555;
    padding: 10px 30px;
    border-radius: 4px;
    font-size: 14px;
    transition: 0.3s;
}

.btn-secondary:hover {
    background-color: #f8f9fa;
    color: #000;
}

/* Responsive News */
@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
    }

    .news-date {
        margin-bottom: 5px;
        font-size: 14px;
    }
}

