/* Roasync flow section — adapted from KING OF TIME map UI */
.ra-flow {
  --ra-blue: #2563EB;
  --ra-accent: #60A5FA;
  --ra-text: #1B2B4B;
  --step-point: 34px;
  --step-stroke: 5px;
}
.ra-flow .sp_only { display: none; }
.ra-flow .pc_only { display: inline; }
@media screen and (max-width: 1080px) {
  .ra-flow .pc_only { display: none !important; }
  .ra-flow .sp_only { display: inline !important; }
}
.ra-flow .container {
  max-width: 1080px;
  margin: auto;
  padding: 0 20px;
  overflow: visible;
}
.ra-flow h2 {
  margin: 0 0 40px;
  color: #1B2B4B;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}
.ra-flow .text_logo {
  display: inline-block;
  width: auto;
  height: 42px;
  vertical-align: middle;
}
.ra-flow .text_logo img {
  width: auto;
  height: 100%;
  vertical-align: text-top;
}
.ra-flow .text_logo_line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 8px 0 4px;
}
.ra-flow .series_text,
.ra-flow .realize_text {
  display: inline;
  font-weight: 800;
}
.ra-flow .ra_map_label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 72px;
  padding: 12px 14px;
  border: 2px solid #2563EB;
  border-radius: 12px;
  color: #2563EB;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  background: #EFF6FF;
}
.ra-flow .ra_map_item_plus .ra_map_label {
  background: #DBEAFE;
}
.ra-flow .ra_map_logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto !important;
  min-height: 72px;
  margin-bottom: 8px;
}
.ra-flow .ra_map_item:nth-child(1) .ra_map_logo img,
.ra-flow .ra_map_item:nth-child(2) .ra_map_logo img,
.ra-flow .ra_map_item:nth-child(3) .ra_map_logo img {
  width: auto;
}

/* =========================================================
    SECTION: Roasync 導入までの流れ（PC標準）
========================================= */

.ra-flow {
    padding: 73px 0 105px;
    background: #2563EB;
}

.ra-flow .map_inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 47px 0 80px;
    background: #fff;
    border-radius: 16px;
    overflow: visible;
}

.ra-flow .container {
    overflow: visible;
}

.ra-flow .map_text {
    margin: 40px 0 0;
    font-size: 24px;
    font-weight: bold;
    line-height: 1.7;
    text-align: center;
}

.ra_map,
.ra_map *,
.ra_map *::before,
.ra_map *::after {
    box-sizing: border-box;
}

.ra_map {
    --ra-blue: #2563EB;
    --ra-accent: #60A5FA;
    --ra-text: #333;
    --step-point: 34px;
    --step-stroke: 5px;
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    margin: 68px auto 0;
    padding: 0;
    background: transparent;
    overflow: visible;
}

.ra_map_item {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
}

.ra_map_item:first-child {
    z-index: 4;
}

.ra_map_item:nth-child(2) {
    z-index: 3;
}

.ra_map_item:nth-child(3) {
    z-index: 2;
}

.ra_map_item_plus {
    z-index: 1;
}

.ra_map_step {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 138px;
    min-height: 138px;
    padding: 24px 10px 22px;
    background: transparent;
    color: #fff;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    overflow: visible;
}

.ra_map_step_text {
    position: relative;
    z-index: 1;
    display: block;
    transform: translateX(10px);
}

/* このブレークポイントはra_mapのPC専用4カラムレイアウトの微調整のため必要（例外） */
@media screen and (min-width: 1081px) {
    .ra_map_item:nth-child(3) .ra_map_step_text {
        transform: translateX(20px);
    }
}

.ra_map_step::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: -2;
    width: calc(100% + var(--step-point));
    height: 100%;
    background: #fff;
    clip-path: polygon(
        0 0,
        calc(100% - var(--step-point)) 0,
        100% 50%,
        calc(100% - var(--step-point)) 100%,
        0 100%
    );
}

.ra_map_step::after {
    content: "";
    position: absolute;
    top: var(--step-stroke);
    left: var(--step-stroke);
    z-index: -1;
    width: calc(100% + var(--step-point) - 2 * var(--step-stroke));
    height: calc(100% - 2 * var(--step-stroke));
    background: var(--ra-blue);
    clip-path: polygon(
        0 0,
        calc(101.5% - var(--step-point)) 0,
        100% 50%,
        calc(101.5% - var(--step-point)) 100%,
        0 100%
    );
}

.ra_map_item:not(:first-child) .ra_map_step::before {
    clip-path: polygon(
        0 0,
        calc(100% - var(--step-point)) 0,
        100% 50%,
        calc(100% - var(--step-point)) 100%,
        0 100%,
        var(--step-point) 50%
    );
}

.ra_map_item:not(:first-child) .ra_map_step::after {
    clip-path: polygon(
        0 0,
        calc(101.5% - var(--step-point)) 0,
        100% 50%,
        calc(101.5% - var(--step-point)) 100%,
        0 100%,
        calc(var(--step-point) - var(--step-stroke)) 50%
    );
}

.ra_map_number {
    position: absolute;
    top: -52px;
    left: 12px;
    z-index: 20;
    display: block;
    padding: 0;
    background: transparent !important;
    color: var(--ra-blue);
    font-size: 78px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.06em;
    -webkit-text-stroke: 12px #fff;
    paint-order: stroke fill;
    text-shadow: none;
}

.ra_map_content {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 42px 28px 34px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.ra_map_logo {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    height: 90px;
}

.ra_map_logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: contain;
}

.ra_map_item:nth-child(1) .ra_map_logo img,
.ra_map_item:nth-child(2) .ra_map_logo img {
    width: 220px;
}

.ra_map_item:nth-child(3) .ra_map_logo img {
    width: 185px;
}

.ra_map_logo_data {
    height: 90px;
}

.ra_map_logo_data img {
    width: 220px;
}

.ra_map_logo_systemlog {
    height: 75px;
    margin-top: 18px;
}

.ra_map_logo_systemlog img {
    width: 220px;
}

.ra_map_features {
    margin: 16px 0 28px;
    padding: 0;
    list-style: none;
}

.ra_map_features li {
    position: relative;
    margin: 0 0 18px;
    padding-left: 40px;
    color: var(--ra-text);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.55;
}

.ra_map_features li::before {
    content: "✓";
    position: absolute;
    top: .12em;
    left: 0;
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    background: var(--ra-accent);
    border-radius: 50%;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
}

.ra_map_item_plus .ra_map_content {
    padding-top: 39px;
}

.ra_map_item_plus .ra_map_features {
    margin-top: 16px;
    margin-bottom: 8px;
}

.ra_map_features_last,
.ra_map_item_plus .ra_map_features_last {
    margin-top: 12px;
    margin-bottom: 0;
}

.ra_map_button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    margin-top: auto;
    padding: 10px 28px 10px 20px;
    background-color: #2563EB;
    border: 2px solid #2563EB;
    border-radius: 999px;
    color: #fff !important;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .08em;
    text-decoration: none;
    transition: opacity .3s;
}

.ra_map_button::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 27px;
    width: 11px;
    height: 11px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: translateY(-50%) rotate(45deg);
}

.ra_map_button:hover {
    background-color: #2563EB;
    border-color: #2563EB;
    color: #fff !important;
    opacity: .6;
}


@media screen and (max-width: 1080px) {
    .ra-flow {
        padding: 40px 0 60px;
        background-color: #1D4ED8;
    }

    .ra-flow .map_inner {
        width: calc(100% - 40px);
        max-width: 600px;
        margin: 0 auto;
        padding: 32px 0 40px;
        background: #ffffff;
        border-radius: 12px;
        box-sizing: border-box;
    }

    .ra_map {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 24px auto 0;
        padding: 0;
    }

    .ra_map_item {
        display: grid;
        grid-template-columns: 68px minmax(0, 1fr);
        align-items: stretch;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .ra_map_step {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 68px;
        height: 100%;
        padding: 14px 4px 24px;
        background-color: #1D4ED8;
        color: #ffffff;
        z-index: 2;
        clip-path: polygon(0 0, 50% 16px, 100% 0, 100% calc(100% - 16px), 50% 100%, 0 calc(100% - 16px));
    }

    .ra_map > .ra_map_item:first-child > .ra_map_step {
        clip-path: polygon(
            0 0,
            100% 0,
            100% calc(100% - 16px),
            50% 100%,
            0 calc(100% - 16px)
        );
    }

    .ra_map_step::before,
    .ra_map_step::after {
        content: none !important;
    }

    .ra_map_number {
        position: relative;
        top: auto;
        left: auto;
        display: block;
        color: #ffffff !important;
        font-size: 28px;
        font-weight: 800;
        line-height: 1;
        letter-spacing: -0.02em;
        writing-mode: horizontal-tb;
        -webkit-text-stroke: 0;
        text-shadow: none;
        margin-bottom: 8px;
    }

    .ra_map_step_text {
        display: block;
        writing-mode: vertical-rl;
        -webkit-writing-mode: vertical-rl;
        text-orientation: upright;
        color: #ffffff;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.35;
        letter-spacing: 0.08em;
        white-space: nowrap;
        text-align: center;
        transform: none !important;
    }

    .ra_map_content {
        display: flex;
        flex-direction: column;
        width: 100%;
        min-height: 0;
        margin: 0;
        padding: 20px 16px;
        background: #ffffff;
        border-radius: 4px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
        border-top: none !important;
    }

    .ra_map_logo {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        height: auto;
        margin: 0 0 16px;
    }

    .ra_map_logo img {
        display: block;
        height: auto;
        max-width: 85%;
        object-fit: contain;
    }

    .ra_map_logo_systemlog {
        margin-top: 18px;
        margin-bottom: 12px;
        padding-top: 16px;
    }

    .ra_map_features {
        width: 100%;
        margin: 0 0 20px;
        padding: 0;
        list-style: none;
    }

    .ra_map_features li {
        position: relative;
        margin: 0 0 10px;
        padding-left: 28px;
        color: #333333;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.5;
    }

    .ra_map_features li:last-child {
        margin-bottom: 0;
    }

    .ra_map_features li::before {
        content: "" !important;
        position: absolute;
        top: 2px;
        left: 0;
        width: 18px;
        height: 18px;
        background-color: #60A5FA !important;
        border-radius: 50%;
        display: block;
    }

    .ra_map_features li::after {
        content: "";
        position: absolute;
        top: 6px;
        left: 6px;
        width: 4px;
        height: 7px;
        border: solid #ffffff;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

    .ra_map_button {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 44px;
        margin-top: auto;
        padding: 0 20px;
        background: #1D4ED8;
        border: none;
        border-radius: 22px;
        color: #ffffff !important;
        font-size: 16px;
        font-weight: 700;
        text-decoration: none;
    }

    .ra_map_button::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 16px;
        width: 7px;
        height: 7px;
        border-top: 2px solid #ffffff;
        border-right: 2px solid #ffffff;
        transform: translateY(-50%) rotate(45deg);
    }

}
    .ra-flow .text_logo_line {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        width: 100%;
        min-width: 0;
        white-space: nowrap;
    }

    .ra-flow .text_logo {
        flex: 0 1 220px;
        width: 220px;
        max-width: 220px;
        min-width: 0;
        height: auto;
    }

    .ra-flow .text_logo img {
        display: block;
        width: 100%;
        height: auto;
    }

    .ra-flow .series_text {
        flex: 0 0 auto;
        line-height: 1;
        transform: translateY(1px);
    }

    .ra-flow .realize_text {
        display: block;
    }
}

.ra_map_content .ra_map_features { margin-bottom: 0; }
.ra_map_content { justify-content: flex-start; }
