/* CSS for Service Page */

/* Base Layout */
main {
    background-color: #f0f4f8;
    /* Light blue-grey background from screenshots */
}

/* Breadcrumb */
.breadcrumb-container {
    padding: 100px 0 20px;
    background-color: #f0f4f8;
}

.breadcrumb-container p {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

/* Hero Section */
#service-hero {
    padding: 40px 0 60px;
    text-align: center;
    position: relative;
}

/* Logo Mark Reconstruction */
.logo-mark {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.mark-blue {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #004080;
    border-radius: 0 50% 50% 50%;
    /* Approx shape */
}

.mark-dot {
    display: inline-block;
    width: 15px;
    height: 15px;
    background-color: #0088cc;
    border-radius: 50%;
    margin-bottom: 20px;
    /* Offset like logo */
}

.mark-text {
    font-size: 60px;
    font-weight: bold;
    margin-left: 10px;
}

.page-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.page-subtitle {
    font-size: 16px;
    color: #333;
    font-weight: normal;
}


/* Service Heading & Subheading (inside service-cycle section) */
.service-heading {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
}

.service-subheading {
    font-size: 16px;
    color: #333;
    font-weight: normal;
    text-align: center;
    margin-bottom: 50px;
}

/* Cycle Diagram */
#service-cycle {
    padding: 60px 0 100px;
    position: relative;
}

.cycle-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 500 / 450;
    margin: 0 auto;
}

/* SVG arrows layer */
.cycle-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cycle-circle {
    position: absolute;
    width: 32%;
    /* 160/500 = 32% of wrapper width */
    aspect-ratio: 1;
    /* Perfect circle */
    border-radius: 50%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(0, 136, 204, 0.3);
    border: 2px solid #a0d8ef;
    z-index: 2;
    font-weight: bold;
    color: #333;
    font-size: 18px;
}

.circle-top {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.circle-left {
    bottom: 0;
    left: 4%;
    /* 20/500 = 4% */
}

.circle-right {
    bottom: 0;
    right: 4%;
    /* 20/500 = 4% */
}

/* Center Content — slightly smaller than outer circles for breathing room */
.cycle-center {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 28%;
    /* Even smaller than 28% outer circles */
    aspect-ratio: 1;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 15px rgba(0, 136, 204, 0.3);
    border: 2px solid #a0d8ef;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.center-ai {
    font-weight: bold;
    font-size: 16px;
}

.center-revops {
    font-weight: bold;
    font-size: 16px;
}

.center-x {
    color: #999;
    font-size: 20px;
    margin: 1px 0;
    /* Adjust spacing */
}

/* Step Section */
#service-steps {
    padding: 0 0 100px;
}

.step-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin-bottom: 20px;
}

.step-row.reverse {
    flex-direction: row-reverse;
    background-color: transparent;
}

.step-image {
    width: 45%;
}

.step-image img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.step-content {
    width: 40%;
}

/* Step Header Box */
.step-header {
    display: flex;
    align-items: stretch;
    margin-bottom: 20px;
    width: fit-content;
    /* Shrink to fit content */
    margin-left: auto;
    margin-right: auto;
    /* Center the header box itself */
}

.step-number {
    background-color: #004080;
    color: white;
    font-size: 24px;
    font-weight: bold;
    padding: 15px 25px;
    /* Slight adjustment */
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-title-box {
    background-color: white;
    padding: 15px 40px;
    /* Increase vertical padding, specific horizontal */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Center text horizontally */
    min-width: 180px;
    /* Ensure specific width control */
}

.step-phase {
    /* --- ADJUST DESKTOP STEP PHASE FONT SIZE HERE --- */
    font-size: 20px;
    /* Larger Japanese text */
    font-weight: bold;
    margin-bottom: 5px;
}

.step-name {
    /* --- ADJUST DESKTOP STEP NAME FONT SIZE HERE --- */
    font-size: 18px;
    /* English Subtitle */
    color: #333;
    font-weight: bold;
}

.step-catch {
    /* --- ADJUST DESKTOP STEP TITLE FONT SIZE HERE --- */
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    /* Keep center */
}

.step-list {
    list-style: none;
    padding: 0;
    /* --- ADJUST DESKTOP STEP LIST FONT SIZE HERE --- */
    font-size: 17px;
    color: #444;
    display: table;
    /* Trick to center the block of list items */
    margin: 0 auto;
    /* Center the table */
    text-align: left;
    /* Keep text left aligned inside the centered block */
}

.step-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.step-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #0066cc;
    /* Blue check */
    font-weight: bold;
}

/* Arrow Dividers */
.step-arrow-divider {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-top: 40px solid #cceeff;
    /* Light blue arrow */
    margin: 50px auto;
}

/* Conclusion */
.service-conclusion {
    text-align: center;
    margin-top: 80px;
    padding: 20px;
}

.conclusion-text {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    display: inline-block;
    position: relative;
    z-index: 2;
}

.conclusion-underline {
    height: 10px;
    background-color: #ffd700;
    /* Yellow paint style */
    width: 100%;
    max-width: 400px;
    margin: -15px auto 0;
    border-radius: 5px;
    opacity: 0.6;
}

/* Mobile Responsive */
/* Mobile Responsive */
@media (max-width: 900px) {
    .service-heading {
        font-size: 28px;
    }

    .service-subheading {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .logo-mark {
        transform: scale(0.7);
    }

    /* Cycle diagram scales automatically via percentages + aspect-ratio */
    /* Only font-size adjustments needed for mobile */
    .cycle-circle {
        font-size: 14px;
    }

    .center-ai,
    .center-revops {
        font-size: 12px;
    }

    .center-x {
        font-size: 14px;
        margin: 0;
    }

    /* Reorder Steps: Header -> Image -> Text */
    .step-content {
        display: contents;
        /* Flattens structure so children participate in step-row flex */
    }

    .step-row,
    .step-row.reverse {
        display: flex;
        flex-direction: column;
        gap: 0;
        /* Managed by margins */
        padding: 0 15px;
        margin-bottom: 40px;
    }

    .step-header {
        order: 1;
        margin-bottom: 20px;
        /* Keep fit-content and centering from desktop */
    }

    .step-image {
        order: 2;
        /* --- ADJUST IMAGE WIDTH HERE --- */
        width: 83%;
        margin: 0 auto 25px;
        /* Centered with bottom margin */
    }

    .step-catch {
        order: 3;
        /* --- ADJUST MOBILE STEP TITLE FONT SIZE HERE --- */
        font-size: 20px;
        /* Slightly smaller for mobile */
        margin-bottom: 15px;
    }

    .step-list {
        order: 4;
        /* --- ADJUST MOBILE STEP LIST FONT SIZE HERE --- */
        font-size: 16px;
        /* Default to 14px, change if needed */
        /* width: fit-content or auto (default for table) to center */
        display: table;
        margin: 0 auto;
        text-align: left;
    }

    .step-number {
        font-size: 20px;
        padding: 10px 15px;
    }

    .step-title-box {
        padding: 10px 20px;
        min-width: 140px;
    }

    .step-phase {
        /* --- ADJUST MOBILE STEP PHASE FONT SIZE HERE --- */
        font-size: 18px;
    }

    .step-name {
        /* --- ADJUST MOBILE STEP NAME FONT SIZE HERE --- */
        font-size: 16px;
    }

    .step-arrow-divider {
        margin: 30px auto;
        border-left-width: 80px;
        /* Wider arrow */
        border-right-width: 80px;
        border-top-width: 30px;
    }

    .conclusion-text {
        font-size: 20px;
    }
}